@qld-gov-au/qgds-bootstrap5 1.0.1 → 1.0.2
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/.esbuild/helpers/listfiles.js +16 -0
- package/.esbuild/helpers/logger.js +19 -0
- package/.esbuild/plugins/qgds-plugin-build-log.js +47 -0
- package/.esbuild/plugins/qgds-plugin-clean-output-folders.js +31 -0
- package/.esbuild/plugins/qgds-plugin-copy-assets.js +32 -0
- package/.esbuild/plugins/qgds-plugin-raw-loader.js +18 -0
- package/.eslintrc.cjs +52 -0
- package/.storybook/main.js +52 -0
- package/.storybook/modes.js +31 -0
- package/.storybook/preview-head.html +24 -0
- package/.storybook/preview.js +93 -0
- package/.storybook/webpack.config.js +8 -0
- package/.vscode/settings.json +4 -0
- package/README.md +6 -3
- package/dist/assets/js/handlebars.helpers.bundle.js +22 -1
- package/dist/assets/js/handlebars.helpers.bundle.js.map +4 -4
- package/dist/assets/js/handlebars.init.js +6 -0
- package/dist/components/bs5/formcheck/formcheck.hbs +1 -1
- package/dist/components/handlebars.helpers.bundle.js +23 -0
- package/dist/components/handlebars.helpers.bundle.js.map +7 -0
- package/dist/components/handlebars.init.js +6 -0
- package/dist/sample-data/formcheck/stories/checkbox/checkbox.data.json +5 -5
- package/dist/sample-data/formcheck/stories/radio/radio.data.json +5 -5
- package/esbuild.js +89 -0
- package/jsconfig.json +18 -0
- package/package.json +14 -2
- package/pom.xml +130 -0
- package/src/components/bs5/accordion/Accordion.js +11 -0
- package/src/components/bs5/accordion/Accordion.mdx +16 -0
- package/src/components/bs5/accordion/accordion.functions.js +135 -0
- package/src/components/bs5/accordion/accordion.scss +156 -0
- package/src/components/bs5/accordion/accordion.stories.js +165 -0
- package/src/components/bs5/accordion/manifest.json +1 -0
- package/src/components/bs5/banner/Banner.js +11 -0
- package/src/components/bs5/banner/Banner.mdx +15 -0
- package/src/components/bs5/banner/banner.scss +134 -0
- package/src/components/bs5/banner/banner.stories.js +160 -0
- package/src/components/bs5/blockquote/Blockquote.js +13 -0
- package/src/components/bs5/blockquote/Blockquote.mdx +15 -0
- package/src/components/bs5/blockquote/blockquote.scss +36 -0
- package/src/components/bs5/blockquote/blockquote.stories.js +63 -0
- package/src/components/bs5/breadcrumbs/Breadcrumbs.js +13 -0
- package/src/components/bs5/breadcrumbs/Breadcrumbs.mdx +16 -0
- package/src/components/bs5/breadcrumbs/breadcrumbs.scss +96 -0
- package/src/components/bs5/breadcrumbs/breadcrumbs.stories.js +72 -0
- package/src/components/bs5/button/Button.js +13 -0
- package/src/components/bs5/button/Button.mdx +16 -0
- package/src/components/bs5/button/button.scss +226 -0
- package/src/components/bs5/button/button.stories.js +84 -0
- package/src/components/bs5/callout/Callout.js +13 -0
- package/src/components/bs5/callout/Callout.mdx +15 -0
- package/src/components/bs5/callout/callout.scss +69 -0
- package/src/components/bs5/callout/callout.stories.js +155 -0
- package/src/components/bs5/card/Card.js +8 -0
- package/src/components/bs5/card/Card.mdx +16 -0
- package/src/components/bs5/card/Cardblock.js +14 -0
- package/src/components/bs5/card/card--multi-action.stories.js +82 -0
- package/src/components/bs5/card/card--no-action.stories.js +64 -0
- package/src/components/bs5/card/card--single-action.stories.js +73 -0
- package/src/components/bs5/card/card.scss +444 -0
- package/src/components/bs5/card/cardblock-hbs-backup.txt +29 -0
- package/src/components/bs5/card/cardblock.stories.js +60 -0
- package/src/components/bs5/correctincorrect/CorrectIncorrect.js +14 -0
- package/src/components/bs5/correctincorrect/correctincorrect.scss +189 -0
- package/src/components/bs5/correctincorrect/correctincorrect.stories.js +116 -0
- package/src/components/bs5/dateinput/Dateinput.js +43 -0
- package/src/components/bs5/dateinput/Dateinput.stories.js +131 -0
- package/src/components/bs5/dateinput/dateinput.scss +12 -0
- package/src/components/bs5/footer/Footer.js +20 -0
- package/src/components/bs5/footer/Footer.mdx +15 -0
- package/src/components/bs5/footer/footer.scss +205 -0
- package/src/components/bs5/footer/footer.stories.js +61 -0
- package/src/components/bs5/formcheck/Formcheck.js +13 -0
- package/src/components/bs5/formcheck/_formcheck.stories.bak.js +432 -0
- package/{docs/storybook-static/assets → src}/components/bs5/formcheck/formcheck.hbs +1 -1
- package/src/components/bs5/formcheck/formcheck.scss +284 -0
- package/src/components/bs5/formcheck/stories/checkbox/Checkbox.mdx +18 -0
- package/{docs/storybook-static/assets/sample-data → src/components/bs5}/formcheck/stories/checkbox/checkbox.data.json +5 -5
- package/src/components/bs5/formcheck/stories/checkbox/checkbox.stories.js +222 -0
- package/src/components/bs5/formcheck/stories/radio/Radio.mdx +17 -0
- package/{docs/sample-data → src/components/bs5}/formcheck/stories/radio/radio.data.json +5 -5
- package/src/components/bs5/formcheck/stories/radio/radio.stories.js +228 -0
- package/src/components/bs5/globalAlert/GlobalAlert.js +12 -0
- package/src/components/bs5/globalAlert/GlobalAlert.mdx +15 -0
- package/src/components/bs5/globalAlert/globalAlert.scss +115 -0
- package/src/components/bs5/globalAlert/globalAlert.stories.js +44 -0
- package/src/components/bs5/header/Header.js +12 -0
- package/src/components/bs5/header/Header.mdx +16 -0
- package/src/components/bs5/header/_colours.scss +192 -0
- package/src/components/bs5/header/_icons.scss +10 -0
- package/src/components/bs5/header/header.functions.js +30 -0
- package/src/components/bs5/header/header.scss +504 -0
- package/src/components/bs5/header/header.stories.js +67 -0
- package/src/components/bs5/icons/icons.html +1 -0
- package/src/components/bs5/icons/icons.scss +43 -0
- package/src/components/bs5/icons/manifest.json +0 -0
- package/src/components/bs5/inpageAlert/InpageAlert.js +22 -0
- package/src/components/bs5/inpageAlert/InpageAlert.mdx +16 -0
- package/src/components/bs5/inpageAlert/inpageAlert.scss +135 -0
- package/src/components/bs5/inpageAlert/inpageAlert.stories.js +96 -0
- package/src/components/bs5/inpageAlert/manifest.json +0 -0
- package/src/components/bs5/inpagenav/Inpagenav.js +13 -0
- package/src/components/bs5/inpagenav/Inpagenav.mdx +16 -0
- package/src/components/bs5/inpagenav/inpagenav.scss +49 -0
- package/src/components/bs5/inpagenav/inpagenav.stories.js +67 -0
- package/src/components/bs5/inpagenav/manifest.json +0 -0
- package/src/components/bs5/modal/Modal.js +13 -0
- package/src/components/bs5/modal/Modal.mdx +19 -0
- package/src/components/bs5/modal/manifest.json +0 -0
- package/src/components/bs5/modal/modal.functions.js +9 -0
- package/src/components/bs5/modal/modal.scss +99 -0
- package/src/components/bs5/modal/modal.stories.js +116 -0
- package/src/components/bs5/navbar/Navbar.js +15 -0
- package/src/components/bs5/navbar/_colours.scss +100 -0
- package/src/components/bs5/navbar/_icons.scss +61 -0
- package/src/components/bs5/navbar/navbar.functions.js +104 -0
- package/src/components/bs5/navbar/navbar.scss +441 -0
- package/src/components/bs5/pagination/Pagination.js +13 -0
- package/src/components/bs5/pagination/Pagination.mdx +16 -0
- package/{docs/storybook-static/assets/img/svg-icons.svg → src/components/bs5/pagination/health-icon-sprite.svg} +155 -154
- package/src/components/bs5/pagination/manifest.json +0 -0
- package/src/components/bs5/pagination/pagination.scss +285 -0
- package/src/components/bs5/pagination/pagination.stories.js +145 -0
- package/src/components/bs5/quickexit/Quickexit.js +12 -0
- package/src/components/bs5/quickexit/manifest.json +0 -0
- package/src/components/bs5/quickexit/quickexit.functions.js +79 -0
- package/src/components/bs5/quickexit/quickexit.scss +178 -0
- package/src/components/bs5/quickexit/quickexit.stories.js +55 -0
- package/src/components/bs5/select/Select.js +13 -0
- package/src/components/bs5/select/Select.stories.js +131 -0
- package/src/components/bs5/select/manifest.json +0 -0
- package/src/components/bs5/sidenav/Sidenav.js +13 -0
- package/src/components/bs5/sidenav/Sidenav.mdx +14 -0
- package/src/components/bs5/sidenav/manifest.json +0 -0
- package/src/components/bs5/sidenav/sidenav.scss +160 -0
- package/src/components/bs5/sidenav/sidenav.stories.js +67 -0
- package/src/components/bs5/spinner/Spinner.js +13 -0
- package/src/components/bs5/spinner/Spinner.stories.js +76 -0
- package/src/components/bs5/spinner/manifest.json +0 -0
- package/src/components/bs5/spinner/spinner.scss +37 -0
- package/src/components/bs5/table/Table.js +13 -0
- package/src/components/bs5/table/Table.mdx +16 -0
- package/src/components/bs5/table/manifest.json +0 -0
- package/src/components/bs5/table/table.scss +77 -0
- package/src/components/bs5/table/table.stories.js +206 -0
- package/src/components/bs5/tag/Tag.js +12 -0
- package/src/components/bs5/tag/Tag.mdx +15 -0
- package/src/components/bs5/tag/manifest.json +0 -0
- package/src/components/bs5/tag/tag.scss +92 -0
- package/src/components/bs5/tag/tag.stories.js +54 -0
- package/src/components/bs5/textarea/Textarea.js +13 -0
- package/src/components/bs5/textarea/Textarea.stories.js +131 -0
- package/src/components/bs5/textarea/manifest.json +0 -0
- package/src/components/bs5/textbox/Textbox.js +13 -0
- package/src/components/bs5/textbox/Textbox.stories.js +131 -0
- package/src/components/bs5/textbox/manifest.json +0 -0
- package/src/components/bs5/textbox/textInput.scss +272 -0
- package/src/components/bs5/typography/Typography.mdx +16 -0
- package/src/components/bs5/typography/manifest.json +0 -0
- package/src/components/bs5/typography/typography.data.json +0 -0
- package/src/components/bs5/typography/typography.scss +51 -0
- package/src/components/bs5/typography/typography.stories.js +144 -0
- package/src/components/bs5/video/Video.js +13 -0
- package/src/components/bs5/video/Video.mdx +14 -0
- package/src/components/bs5/video/manifest.json +0 -0
- package/src/components/bs5/video/video.functions.js +46 -0
- package/src/components/bs5/video/video.scss +210 -0
- package/src/components/bs5/video/video.stories.js +183 -0
- package/src/components/common/footer/footer.html +307 -0
- package/src/components/common/footer/footer.scss +150 -0
- package/src/components/common/header/Header.js +11 -0
- package/src/components/common/header/header.html +259 -0
- package/src/components/common/header/header.scss +118 -0
- package/src/components/common/layout/content.scss +3 -0
- package/src/js/QGDSComponent.js +29 -0
- package/{docs/storybook-static/assets/assets → src}/js/handlebars.helpers.js +7 -1
- package/src/js/handlebars.init.js +6 -0
- package/src/main.js +79 -0
- package/src/main.scss +115 -0
- package/src/scss/qld-theme.scss +29 -0
- package/src/scss/qld-type.scss +134 -0
- package/src/scss/qld-variables.scss +285 -0
- package/src/stories/Introduction.mdx +14 -0
- package/src/stories/helpers/getDecoratedParameters.js +7 -0
- package/src/stories/helpers/getMobileProps.js +21 -0
- package/src/stories/helpers/index.js +2 -0
- package/src/stories/templates/ContentPage/ContentPage.mdx +40 -0
- package/src/stories/templates/ContentPage/ContentPage.stories.js +36 -0
- package/src/stories/templates/LandingPage/LandingPage.mdx +20 -0
- package/src/stories/templates/LandingPage/LandingPage.stories.js +25 -0
- package/src/templates/_cheatsheet/cheatsheet-body.html +40 -0
- package/src/templates/_cheatsheet/cheatsheet-data.json +25 -0
- package/src/templates/_cheatsheet/cheatsheet-sidenav.html +21 -0
- package/src/templates/_cheatsheet/cheatsheet-template.html +46 -0
- package/src/templates/content/component-examples/accordion.html +0 -0
- package/src/templates/content/component-examples/alert.html +1 -0
- package/src/templates/content/component-examples/blockquote.html +0 -0
- package/src/templates/content/component-examples/breadcrumbs.html +0 -0
- package/src/templates/content/component-examples/button.html +0 -0
- package/src/templates/content/component-examples/callout.html +0 -0
- package/src/templates/content/component-examples/card.html +0 -0
- package/src/templates/content/component-examples/inpagenav.html +0 -0
- package/src/templates/content/component-examples/pagination.html +0 -0
- package/src/templates/content/component-examples/table.html +0 -0
- package/src/templates/content/components-all.html +681 -0
- package/src/templates/content/form-example.html +89 -0
- package/src/templates/content/landing-with-cards.html +3 -0
- package/src/templates/content/landing.html +1 -0
- package/src/templates/content/main.html +81 -0
- package/src/templates/content/reference-sheet-body.html +66 -0
- package/src/templates/content/sidenav-components.html +75 -0
- package/src/templates/index-old.html +744 -0
- package/src/templates/index.html +58 -0
- package/src/templates/page/contentpage.html +51 -0
- package/src/templates/page/landingpage.html +65 -0
- package/src/templates/template.html +846 -0
- package/src/templates/templates.yml +33 -0
- package/vite.config.js +16 -0
- package/docs/assets/css/qld.bootstrap.css +0 -7
- package/docs/assets/css/qld.bootstrap.css.map +0 -7
- package/docs/assets/js/bootstrap.min.js +0 -11
- package/docs/assets/js/bootstrap.min.js.map +0 -7
- package/docs/assets/js/handlebars.helpers.bundle.js +0 -2
- package/docs/assets/js/handlebars.helpers.bundle.js.map +0 -7
- package/docs/assets/js/qld.bootstrap.min.js +0 -2
- package/docs/assets/js/qld.bootstrap.min.js.map +0 -7
- package/docs/banner-texture-tile-dark-Z4F253VX.png +0 -0
- package/docs/banner-texture-tile-light-IXL3Y4HE.png +0 -0
- package/docs/components/bs5/formcheck/formcheck.hbs +0 -23
- package/docs/sample-data/formcheck/stories/checkbox/checkbox.data.json +0 -48
- package/docs/storybook-static/assets/Accordion-Bg8lsV91.js +0 -10
- package/docs/storybook-static/assets/Accordion-DU8x-iDa.js +0 -29
- package/docs/storybook-static/assets/Banner-BjS7fZxq.js +0 -9
- package/docs/storybook-static/assets/Blockquote-Pp4ten77.js +0 -9
- package/docs/storybook-static/assets/Breadcrumbs-BUlsW4pT.js +0 -10
- package/docs/storybook-static/assets/Button-zXSIfpJc.js +0 -10
- package/docs/storybook-static/assets/Callout-BSTNxKvR.js +0 -9
- package/docs/storybook-static/assets/Card-Ba8r2eY0.js +0 -10
- package/docs/storybook-static/assets/Checkbox-iKDXPAYB.js +0 -14
- package/docs/storybook-static/assets/Color-RQJUDNI5-CnOnbPxh.js +0 -1
- package/docs/storybook-static/assets/ContentPage-CQN3m7qC.js +0 -6
- package/docs/storybook-static/assets/ContentPage.stories-CjoDGbRE.js +0 -23
- package/docs/storybook-static/assets/Dateinput.stories-r2Nz3ad9.js +0 -121
- package/docs/storybook-static/assets/DocsRenderer-K4EAMTCU-CrCTXz-J.js +0 -2
- package/docs/storybook-static/assets/Footer-BwGuOgU2.js +0 -9
- package/docs/storybook-static/assets/Formcheck-CS59DsB9.js +0 -23
- package/docs/storybook-static/assets/GlobalAlert-DebPsRz7.js +0 -9
- package/docs/storybook-static/assets/InpageAlert-BoRV3Cea.js +0 -10
- package/docs/storybook-static/assets/Inpagenav-bSi2jRuO.js +0 -10
- package/docs/storybook-static/assets/Introduction-Cjjb01qm.js +0 -77
- package/docs/storybook-static/assets/LandingPage-BGl9E5W7.js +0 -6
- package/docs/storybook-static/assets/LandingPage.stories-Cqafaq7A.js +0 -23
- package/docs/storybook-static/assets/Pagination-C6-siAAB.js +0 -10
- package/docs/storybook-static/assets/QGDSComponent-CRuos6yj.js +0 -22
- package/docs/storybook-static/assets/Radio-KwHLTPgv.js +0 -13
- package/docs/storybook-static/assets/Select.stories-eAqncE3l.js +0 -92
- package/docs/storybook-static/assets/Sidenav-DlpWm9_k.js +0 -8
- package/docs/storybook-static/assets/Spinner.stories-Ci6qOhLQ.js +0 -49
- package/docs/storybook-static/assets/Table-CDbgNHxo.js +0 -10
- package/docs/storybook-static/assets/Tag-DuSb8U96.js +0 -9
- package/docs/storybook-static/assets/Textarea.stories-D_ZPpWcK.js +0 -90
- package/docs/storybook-static/assets/Textbox.stories-DrQkkLBx.js +0 -89
- package/docs/storybook-static/assets/Typography-CHGmzoq_.js +0 -10
- package/docs/storybook-static/assets/Video-BTgHkDZS.js +0 -8
- package/docs/storybook-static/assets/WithTooltip-Y7J54OF7-BIP8lth1.js +0 -1
- package/docs/storybook-static/assets/_commonjsHelpers-Cpj98o6Y.js +0 -1
- package/docs/storybook-static/assets/accordion.stories-QoYPaT8T.js +0 -173
- package/docs/storybook-static/assets/assets/css/qld.bootstrap.css +0 -7
- package/docs/storybook-static/assets/assets/css/qld.bootstrap.css.map +0 -7
- package/docs/storybook-static/assets/assets/img/100x100.jpg +0 -0
- package/docs/storybook-static/assets/assets/img/600x260.jpg +0 -0
- package/docs/storybook-static/assets/assets/img/Heart-Pattern-Dark.png +0 -0
- package/docs/storybook-static/assets/assets/img/Heart-Pattern.png +0 -0
- package/docs/storybook-static/assets/assets/img/banner-background--mobile.png +0 -0
- package/docs/storybook-static/assets/assets/img/banner-background-alt--desktop.jpg +0 -0
- package/docs/storybook-static/assets/assets/img/banner-background-dark--desktop.jpg +0 -0
- package/docs/storybook-static/assets/assets/img/banner-background-dark-alt--desktop.jpg +0 -0
- package/docs/storybook-static/assets/assets/img/banner-background-default--desktop.jpg +0 -0
- package/docs/storybook-static/assets/assets/img/banner-bg.png +0 -0
- package/docs/storybook-static/assets/assets/img/banner-example-3-to-2.jpg +0 -0
- package/docs/storybook-static/assets/assets/img/banner.png +0 -0
- package/docs/storybook-static/assets/assets/img/card--brand.png +0 -0
- package/docs/storybook-static/assets/assets/img/card--components.png +0 -0
- package/docs/storybook-static/assets/assets/img/card--content.png +0 -0
- package/docs/storybook-static/assets/assets/img/colour-photo-example.jpg +0 -0
- package/docs/storybook-static/assets/assets/img/demo-image-unsplash-motorbike.jpg +0 -0
- package/docs/storybook-static/assets/assets/img/ds-example-image-1.jpg +0 -0
- package/docs/storybook-static/assets/assets/img/ds-example-image-2.jpg +0 -0
- package/docs/storybook-static/assets/assets/img/ds-example-image-3.jpg +0 -0
- package/docs/storybook-static/assets/assets/img/header-logo-agov.png +0 -0
- package/docs/storybook-static/assets/assets/img/header-logo-qgov--dark.svg +0 -63
- package/docs/storybook-static/assets/assets/img/header-logo-qgov--default.svg +0 -171
- package/docs/storybook-static/assets/assets/img/header-logo-qgov--light.svg +0 -56
- package/docs/storybook-static/assets/assets/img/header-logo-qgov--pre-dark.svg +0 -56
- package/docs/storybook-static/assets/assets/img/header-logo-qgov-masterbrand--dark.svg +0 -56
- package/docs/storybook-static/assets/assets/img/header-logo-qgov-masterbrand--default.svg +0 -56
- package/docs/storybook-static/assets/assets/img/header-search.svg +0 -3
- package/docs/storybook-static/assets/assets/img/health-icon-sprite.svg +0 -156
- package/docs/storybook-static/assets/assets/img/icon-exclamation.svg +0 -6
- package/docs/storybook-static/assets/assets/img/icon-home.svg +0 -4
- package/docs/storybook-static/assets/assets/img/icon-nav-chevron.svg +0 -3
- package/docs/storybook-static/assets/assets/img/icon-right-arrow.svg +0 -4
- package/docs/storybook-static/assets/assets/img/icon-search.svg +0 -6
- package/docs/storybook-static/assets/assets/img/image-placeholder.png +0 -0
- package/docs/storybook-static/assets/assets/img/layers-2x.png +0 -0
- package/docs/storybook-static/assets/assets/img/layers.png +0 -0
- package/docs/storybook-static/assets/assets/img/marker-icon.png +0 -0
- package/docs/storybook-static/assets/assets/img/sample-header-pic.jpg +0 -0
- package/docs/storybook-static/assets/assets/img/svg-icons.svg +0 -155
- package/docs/storybook-static/assets/assets/img/video-play.svg +0 -3
- package/docs/storybook-static/assets/assets/js/bootstrap.min.js +0 -11
- package/docs/storybook-static/assets/assets/js/bootstrap.min.js.map +0 -7
- package/docs/storybook-static/assets/assets/js/qld.bootstrap.min.js +0 -2
- package/docs/storybook-static/assets/assets/js/qld.bootstrap.min.js.map +0 -7
- package/docs/storybook-static/assets/banner.stories-CODxxeKu.js +0 -34
- package/docs/storybook-static/assets/blockquote.stories-BofwgOKX.js +0 -59
- package/docs/storybook-static/assets/breadcrumbs.data-BrGcuny2.js +0 -17
- package/docs/storybook-static/assets/breadcrumbs.stories-BU99gce1.js +0 -28
- package/docs/storybook-static/assets/button.stories-CXzXRP9s.js +0 -39
- package/docs/storybook-static/assets/callout.stories-60sfA-gD.js +0 -117
- package/docs/storybook-static/assets/card--multi-action.stories-DnpwvhlM.js +0 -33
- package/docs/storybook-static/assets/card--no-action.stories-BvOqeSlu.js +0 -28
- package/docs/storybook-static/assets/card--single-action.stories-vClCJvN2.js +0 -30
- package/docs/storybook-static/assets/card.data-B5GotbH5.js +0 -66
- package/docs/storybook-static/assets/cardblock.stories-0drBm8hy.js +0 -22
- package/docs/storybook-static/assets/checkbox.stories-DglTXcpr.js +0 -258
- package/docs/storybook-static/assets/components/bs5/accordion/accordion.hbs +0 -28
- package/docs/storybook-static/assets/components/bs5/banner/banner.hbs +0 -24
- package/docs/storybook-static/assets/components/bs5/blockquote/blockquote.hbs +0 -13
- package/docs/storybook-static/assets/components/bs5/breadcrumbs/breadcrumbs.hbs +0 -16
- package/docs/storybook-static/assets/components/bs5/button/button.hbs +0 -12
- package/docs/storybook-static/assets/components/bs5/callout/callout.hbs +0 -8
- package/docs/storybook-static/assets/components/bs5/card/card.hbs +0 -65
- package/docs/storybook-static/assets/components/bs5/card/cardblock.hbs +0 -14
- package/docs/storybook-static/assets/components/bs5/correctincorrect/correctincorrect.hbs +0 -6
- package/docs/storybook-static/assets/components/bs5/dateinput/dateinput.hbs +0 -64
- package/docs/storybook-static/assets/components/bs5/footer/footer.hbs +0 -326
- package/docs/storybook-static/assets/components/bs5/footer/footerForgov.hbs +0 -259
- package/docs/storybook-static/assets/components/bs5/globalAlert/globalAlert.hbs +0 -24
- package/docs/storybook-static/assets/components/bs5/header/header.hbs +0 -142
- package/docs/storybook-static/assets/components/bs5/inpageAlert/inpageAlert.hbs +0 -4
- package/docs/storybook-static/assets/components/bs5/inpagenav/inpagenav.hbs +0 -15
- package/docs/storybook-static/assets/components/bs5/navbar/navbar.hbs +0 -86
- package/docs/storybook-static/assets/components/bs5/pagination/pagination.hbs +0 -43
- package/docs/storybook-static/assets/components/bs5/select/select.hbs +0 -34
- package/docs/storybook-static/assets/components/bs5/sidenav/sidenav.hbs +0 -66
- package/docs/storybook-static/assets/components/bs5/spinner/spinner.hbs +0 -8
- package/docs/storybook-static/assets/components/bs5/table/table.hbs +0 -49
- package/docs/storybook-static/assets/components/bs5/tag/tag.hbs +0 -9
- package/docs/storybook-static/assets/components/bs5/textarea/textarea.hbs +0 -32
- package/docs/storybook-static/assets/components/bs5/textbox/textbox.hbs +0 -31
- package/docs/storybook-static/assets/components/bs5/typography/typography.hbs +0 -1
- package/docs/storybook-static/assets/components/bs5/video/video.hbs +0 -50
- package/docs/storybook-static/assets/entry-preview-D5Ui7gv5.js +0 -7
- package/docs/storybook-static/assets/entry-preview-docs-DfnH8ox-.js +0 -1
- package/docs/storybook-static/assets/footer.stories-CR8V0HKV.js +0 -618
- package/docs/storybook-static/assets/formatter-B5HCVTEV-Dyd-7oLF.js +0 -58
- package/docs/storybook-static/assets/getMobileProps-DGgpBmPb.js +0 -1
- package/docs/storybook-static/assets/globalAlert.stories-Bem0bub7.js +0 -33
- package/docs/storybook-static/assets/header.stories-jCmcS6sI.js +0 -200
- package/docs/storybook-static/assets/iframe-DKCbiNeM.js +0 -2
- package/docs/storybook-static/assets/img/100x100.jpg +0 -0
- package/docs/storybook-static/assets/img/600x260.jpg +0 -0
- package/docs/storybook-static/assets/img/Heart-Pattern-Dark.png +0 -0
- package/docs/storybook-static/assets/img/Heart-Pattern.png +0 -0
- package/docs/storybook-static/assets/img/banner-background--mobile.png +0 -0
- package/docs/storybook-static/assets/img/banner-background-alt--desktop.jpg +0 -0
- package/docs/storybook-static/assets/img/banner-background-dark--desktop.jpg +0 -0
- package/docs/storybook-static/assets/img/banner-background-dark-alt--desktop.jpg +0 -0
- package/docs/storybook-static/assets/img/banner-background-default--desktop.jpg +0 -0
- package/docs/storybook-static/assets/img/banner-bg.png +0 -0
- package/docs/storybook-static/assets/img/banner-example-3-to-2.jpg +0 -0
- package/docs/storybook-static/assets/img/banner.png +0 -0
- package/docs/storybook-static/assets/img/card--brand.png +0 -0
- package/docs/storybook-static/assets/img/card--components.png +0 -0
- package/docs/storybook-static/assets/img/card--content.png +0 -0
- package/docs/storybook-static/assets/img/colour-photo-example.jpg +0 -0
- package/docs/storybook-static/assets/img/demo-image-unsplash-motorbike.jpg +0 -0
- package/docs/storybook-static/assets/img/ds-example-image-1.jpg +0 -0
- package/docs/storybook-static/assets/img/ds-example-image-2.jpg +0 -0
- package/docs/storybook-static/assets/img/ds-example-image-3.jpg +0 -0
- package/docs/storybook-static/assets/img/header-logo-agov.png +0 -0
- package/docs/storybook-static/assets/img/header-logo-qgov--dark.svg +0 -63
- package/docs/storybook-static/assets/img/header-logo-qgov--default.svg +0 -171
- package/docs/storybook-static/assets/img/header-logo-qgov--light.svg +0 -56
- package/docs/storybook-static/assets/img/header-logo-qgov--pre-dark.svg +0 -56
- package/docs/storybook-static/assets/img/header-logo-qgov-masterbrand--dark.svg +0 -56
- package/docs/storybook-static/assets/img/header-logo-qgov-masterbrand--default.svg +0 -56
- package/docs/storybook-static/assets/img/header-search.svg +0 -3
- package/docs/storybook-static/assets/img/health-icon-sprite.svg +0 -156
- package/docs/storybook-static/assets/img/icon-exclamation.svg +0 -6
- package/docs/storybook-static/assets/img/icon-home.svg +0 -4
- package/docs/storybook-static/assets/img/icon-nav-chevron.svg +0 -3
- package/docs/storybook-static/assets/img/icon-right-arrow.svg +0 -4
- package/docs/storybook-static/assets/img/icon-search.svg +0 -6
- package/docs/storybook-static/assets/img/image-placeholder.png +0 -0
- package/docs/storybook-static/assets/img/layers-2x.png +0 -0
- package/docs/storybook-static/assets/img/layers.png +0 -0
- package/docs/storybook-static/assets/img/marker-icon.png +0 -0
- package/docs/storybook-static/assets/img/sample-header-pic.jpg +0 -0
- package/docs/storybook-static/assets/img/video-play.svg +0 -3
- package/docs/storybook-static/assets/index-CArbswWF.js +0 -500
- package/docs/storybook-static/assets/index-COxJNofV.js +0 -1
- package/docs/storybook-static/assets/index-DH5ua8nC.js +0 -9
- package/docs/storybook-static/assets/index-Dkj0J1ds.js +0 -1
- package/docs/storybook-static/assets/index-DrFu-skq.js +0 -6
- package/docs/storybook-static/assets/index-DvzDrELh.js +0 -3
- package/docs/storybook-static/assets/inpageAlert.stories-BOYHBS8c.js +0 -29
- package/docs/storybook-static/assets/inpagenav.stories-DcyT4gR-.js +0 -74
- package/docs/storybook-static/assets/jsx-runtime-DQ32znRX.js +0 -9
- package/docs/storybook-static/assets/modes-Don9gm5X.js +0 -1
- package/docs/storybook-static/assets/navbar.data-Btei8HjP.js +0 -86
- package/docs/storybook-static/assets/navbar.stories-CJ-gTf44.js +0 -109
- package/docs/storybook-static/assets/pagination.stories-ni5JkEtc.js +0 -133
- package/docs/storybook-static/assets/preview-B0VXCrkS.js +0 -13
- package/docs/storybook-static/assets/preview-B4GcaC1c.js +0 -1
- package/docs/storybook-static/assets/preview-BAz7FMXc.js +0 -396
- package/docs/storybook-static/assets/preview-Cv3rAi2i.js +0 -7
- package/docs/storybook-static/assets/preview-CwqMn10d.js +0 -20
- package/docs/storybook-static/assets/preview-D2d-74FL.js +0 -193
- package/docs/storybook-static/assets/preview-DF-d5FoE.js +0 -1
- package/docs/storybook-static/assets/preview-DTU5u3qD.js +0 -2
- package/docs/storybook-static/assets/preview-Db4Idchh.js +0 -1
- package/docs/storybook-static/assets/preview-DbT1mggi.js +0 -1
- package/docs/storybook-static/assets/preview-My2Yyl98.css +0 -5
- package/docs/storybook-static/assets/preview-PxUn-cIn.js +0 -1
- package/docs/storybook-static/assets/radio.stories-CeQpNjQu.js +0 -257
- package/docs/storybook-static/assets/sample-data/accordion/accordion.data.json +0 -24
- package/docs/storybook-static/assets/sample-data/banner/banner.data.json +0 -9
- package/docs/storybook-static/assets/sample-data/blockquote/blockquote.data.json +0 -6
- package/docs/storybook-static/assets/sample-data/breadcrumbs/breadcrumbs.data.json +0 -46
- package/docs/storybook-static/assets/sample-data/button/button.data.json +0 -9
- package/docs/storybook-static/assets/sample-data/callout/callout.data.json +0 -9
- package/docs/storybook-static/assets/sample-data/card/card.data.json +0 -53
- package/docs/storybook-static/assets/sample-data/card/cardblock.data.json +0 -33
- package/docs/storybook-static/assets/sample-data/correctincorrect/correctincorrect.data.json +0 -8
- package/docs/storybook-static/assets/sample-data/dateinput/dateinput.data.json +0 -13
- package/docs/storybook-static/assets/sample-data/footer/footer.data.json +0 -101
- package/docs/storybook-static/assets/sample-data/formcheck/stories/radio/radio.data.json +0 -48
- package/docs/storybook-static/assets/sample-data/globalAlert/globalAlert.data.json +0 -64
- package/docs/storybook-static/assets/sample-data/header/header.data.json +0 -142
- package/docs/storybook-static/assets/sample-data/inpageAlert/inpageAlert.data.json +0 -5
- package/docs/storybook-static/assets/sample-data/inpagenav/inpagenav.data.json +0 -26
- package/docs/storybook-static/assets/sample-data/navbar/navbar.data.json +0 -208
- package/docs/storybook-static/assets/sample-data/pagination/pagination.data.json +0 -21
- package/docs/storybook-static/assets/sample-data/select/select.data.json +0 -11
- package/docs/storybook-static/assets/sample-data/sidenav/sidenav.data.json +0 -88
- package/docs/storybook-static/assets/sample-data/spinner/spinner.data.json +0 -4
- package/docs/storybook-static/assets/sample-data/table/table.data.json +0 -26
- package/docs/storybook-static/assets/sample-data/tag/tag.data.json +0 -112
- package/docs/storybook-static/assets/sample-data/textarea/textarea.data.json +0 -12
- package/docs/storybook-static/assets/sample-data/textbox/textbox.data.json +0 -11
- package/docs/storybook-static/assets/sample-data/video/video.data.json +0 -37
- package/docs/storybook-static/assets/sidenav.stories-0M33mw94.js +0 -112
- package/docs/storybook-static/assets/syntaxhighlighter-JOJW2KGS-p1Nzekqu.js +0 -1
- package/docs/storybook-static/assets/table.stories-CJc-nOdH.js +0 -134
- package/docs/storybook-static/assets/tag.data-CHGgEcoZ.js +0 -10
- package/docs/storybook-static/assets/tag.stories-DSRCcGKc.js +0 -13
- package/docs/storybook-static/assets/typography.stories-BlP0HvTw.js +0 -111
- package/docs/storybook-static/assets/video.stories-KOyKicDc.js +0 -139
- package/docs/storybook-static/favicon.svg +0 -7
- package/docs/storybook-static/iframe.html +0 -515
- package/docs/storybook-static/index.html +0 -167
- package/docs/storybook-static/index.json +0 -1
- package/docs/storybook-static/preview-stats.json +0 -1498
- package/docs/storybook-static/project.json +0 -1
- package/docs/storybook-static/sb-addons/chromatic-com-storybook-11/manager-bundle.js +0 -327
- package/docs/storybook-static/sb-addons/chromatic-com-storybook-11/manager-bundle.js.LEGAL.txt +0 -40
- package/docs/storybook-static/sb-addons/essentials-actions-3/manager-bundle.js +0 -3
- package/docs/storybook-static/sb-addons/essentials-backgrounds-4/manager-bundle.js +0 -12
- package/docs/storybook-static/sb-addons/essentials-controls-2/manager-bundle.js +0 -60
- package/docs/storybook-static/sb-addons/essentials-controls-2/manager-bundle.js.LEGAL.txt +0 -18
- package/docs/storybook-static/sb-addons/essentials-measure-7/manager-bundle.js +0 -3
- package/docs/storybook-static/sb-addons/essentials-outline-8/manager-bundle.js +0 -3
- package/docs/storybook-static/sb-addons/essentials-toolbars-6/manager-bundle.js +0 -3
- package/docs/storybook-static/sb-addons/essentials-viewport-5/manager-bundle.js +0 -3
- package/docs/storybook-static/sb-addons/interactions-9/manager-bundle.js +0 -33
- package/docs/storybook-static/sb-addons/links-10/manager-bundle.js +0 -3
- package/docs/storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +0 -3
- package/docs/storybook-static/sb-addons/themes-1/manager-bundle.js +0 -3
- package/docs/storybook-static/sb-common-assets/fonts.css +0 -31
- package/docs/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/docs/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/docs/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/docs/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/docs/storybook-static/sb-manager/WithTooltip-Y7J54OF7-CEHQ77YF.js +0 -1
- package/docs/storybook-static/sb-manager/chunk-FEE35O7J.js +0 -9
- package/docs/storybook-static/sb-manager/chunk-GFFGH77H.js +0 -183
- package/docs/storybook-static/sb-manager/chunk-KCHUFUTG.js +0 -234
- package/docs/storybook-static/sb-manager/chunk-S4VOIVUE.js +0 -347
- package/docs/storybook-static/sb-manager/chunk-XCO5HRLK.js +0 -6
- package/docs/storybook-static/sb-manager/chunk-XP3HGWTR.js +0 -1
- package/docs/storybook-static/sb-manager/formatter-B5HCVTEV-7DCBOGO6.js +0 -58
- package/docs/storybook-static/sb-manager/globals-module-info.js +0 -1
- package/docs/storybook-static/sb-manager/globals-runtime.js +0 -1
- package/docs/storybook-static/sb-manager/globals.js +0 -1
- package/docs/storybook-static/sb-manager/index.js +0 -1
- package/docs/storybook-static/sb-manager/runtime.js +0 -1
- package/docs/storybook-static/sb-manager/syntaxhighlighter-JOJW2KGS-VF6EEVPI.js +0 -1
- package/docs/storybook-static/sb-preview/globals.js +0 -1
- package/docs/storybook-static/sb-preview/runtime.js +0 -139
- /package/{docs/assets/js → dist/components}/handlebars.helpers.js +0 -0
- /package/{docs → src}/assets/img/100x100.jpg +0 -0
- /package/{docs → src}/assets/img/600x260.jpg +0 -0
- /package/{docs → src}/assets/img/Heart-Pattern-Dark.png +0 -0
- /package/{docs → src}/assets/img/Heart-Pattern.png +0 -0
- /package/{docs → src}/assets/img/_coa_header-logo-qgov--stacked.svg +0 -0
- /package/{docs → src}/assets/img/_coa_header-logo-qgov-masterbrand.svg +0 -0
- /package/{docs → src}/assets/img/_coa_preheader-logo-qgov.svg +0 -0
- /package/{docs → src}/assets/img/banner-background--mobile.png +0 -0
- /package/{docs → src}/assets/img/banner-background-alt--desktop.jpg +0 -0
- /package/{docs → src}/assets/img/banner-background-dark--desktop.jpg +0 -0
- /package/{docs → src}/assets/img/banner-background-dark-alt--desktop.jpg +0 -0
- /package/{docs → src}/assets/img/banner-background-default--desktop.jpg +0 -0
- /package/{docs → src}/assets/img/banner-bg.png +0 -0
- /package/{docs → src}/assets/img/banner-example-3-to-2.jpg +0 -0
- /package/{docs → src}/assets/img/banner-texture-tile-dark.png +0 -0
- /package/{docs → src}/assets/img/banner-texture-tile-light.png +0 -0
- /package/{docs → src}/assets/img/banner.png +0 -0
- /package/{docs → src}/assets/img/card--brand.png +0 -0
- /package/{docs → src}/assets/img/card--components.png +0 -0
- /package/{docs → src}/assets/img/card--content.png +0 -0
- /package/{docs → src}/assets/img/colour-photo-example.jpg +0 -0
- /package/{docs → src}/assets/img/demo-image-unsplash-motorbike.jpg +0 -0
- /package/{docs → src}/assets/img/ds-example-image-1.jpg +0 -0
- /package/{docs → src}/assets/img/ds-example-image-2.jpg +0 -0
- /package/{docs → src}/assets/img/ds-example-image-3.jpg +0 -0
- /package/{docs → src}/assets/img/header-search.svg +0 -0
- /package/{docs → src}/assets/img/health-icon-sprite.svg +0 -0
- /package/{docs → src}/assets/img/icon-exclamation.svg +0 -0
- /package/{docs → src}/assets/img/icon-home.svg +0 -0
- /package/{docs → src}/assets/img/icon-nav-chevron.svg +0 -0
- /package/{docs → src}/assets/img/icon-right-arrow.svg +0 -0
- /package/{docs → src}/assets/img/icon-search.svg +0 -0
- /package/{docs → src}/assets/img/image-placeholder.png +0 -0
- /package/{docs → src}/assets/img/layers-2x.png +0 -0
- /package/{docs → src}/assets/img/layers.png +0 -0
- /package/{docs → src}/assets/img/marker-icon.png +0 -0
- /package/{docs → src}/assets/img/sample-header-pic.jpg +0 -0
- /package/{docs → src}/assets/img/svg-icons.svg +0 -0
- /package/{docs → src}/assets/img/video-play.svg +0 -0
- /package/{docs/sample-data → src/components/bs5}/accordion/accordion.data.json +0 -0
- /package/{docs → src}/components/bs5/accordion/accordion.hbs +0 -0
- /package/{docs/sample-data → src/components/bs5}/banner/banner.data.json +0 -0
- /package/{docs → src}/components/bs5/banner/banner.hbs +0 -0
- /package/{docs/components/bs5/correctincorrect/correctincorrect.hbs → src/components/bs5/banner/manifest.json} +0 -0
- /package/{docs/sample-data → src/components/bs5}/blockquote/blockquote.data.json +0 -0
- /package/{docs → src}/components/bs5/blockquote/blockquote.hbs +0 -0
- /package/{docs/sample-data/correctincorrect/correctincorrect.data.json → src/components/bs5/blockquote/manifest.json} +0 -0
- /package/{docs/sample-data → src/components/bs5}/breadcrumbs/breadcrumbs.data.json +0 -0
- /package/{docs → src}/components/bs5/breadcrumbs/breadcrumbs.hbs +0 -0
- /package/{docs/sample-data/typography/typography.data.json → src/components/bs5/breadcrumbs/manifest.json} +0 -0
- /package/{docs/sample-data → src/components/bs5}/button/button.data.json +0 -0
- /package/{docs → src}/components/bs5/button/button.hbs +0 -0
- /package/{docs/storybook-static/assets/sample-data/typography/typography.data.json → src/components/bs5/button/manifest.json} +0 -0
- /package/{docs/sample-data → src/components/bs5}/callout/callout.data.json +0 -0
- /package/{docs → src}/components/bs5/callout/callout.hbs +0 -0
- /package/{docs/storybook-static/sb-addons/essentials-actions-3/manager-bundle.js.LEGAL.txt → src/components/bs5/callout/manifest.json} +0 -0
- /package/{docs/sample-data → src/components/bs5}/card/card.data.json +0 -0
- /package/{docs → src}/components/bs5/card/card.hbs +0 -0
- /package/{docs/sample-data → src/components/bs5}/card/cardblock.data.json +0 -0
- /package/{docs → src}/components/bs5/card/cardblock.hbs +0 -0
- /package/{docs/storybook-static/sb-addons/essentials-backgrounds-4/manager-bundle.js.LEGAL.txt → src/components/bs5/card/manifest.json} +0 -0
- /package/{docs/storybook-static/sb-addons/essentials-measure-7/manager-bundle.js.LEGAL.txt → src/components/bs5/correctincorrect/correctincorrect.data.json} +0 -0
- /package/{docs/storybook-static/sb-addons/essentials-outline-8/manager-bundle.js.LEGAL.txt → src/components/bs5/correctincorrect/correctincorrect.hbs} +0 -0
- /package/{docs/storybook-static/sb-addons/essentials-toolbars-6/manager-bundle.js.LEGAL.txt → src/components/bs5/correctincorrect/manifest.json} +0 -0
- /package/{docs/sample-data → src/components/bs5}/dateinput/dateinput.data.json +0 -0
- /package/{docs → src}/components/bs5/dateinput/dateinput.hbs +0 -0
- /package/{docs/storybook-static/sb-addons/essentials-viewport-5/manager-bundle.js.LEGAL.txt → src/components/bs5/dateinput/manifest.json} +0 -0
- /package/{docs/sample-data → src/components/bs5}/footer/footer.data.json +0 -0
- /package/{docs → src}/components/bs5/footer/footer.hbs +0 -0
- /package/{docs → src}/components/bs5/footer/footerForgov.hbs +0 -0
- /package/{docs/storybook-static/sb-addons/interactions-9/manager-bundle.js.LEGAL.txt → src/components/bs5/formcheck/manifest.json} +0 -0
- /package/{docs/sample-data → src/components/bs5}/globalAlert/globalAlert.data.json +0 -0
- /package/{docs → src}/components/bs5/globalAlert/globalAlert.hbs +0 -0
- /package/{docs/storybook-static/sb-addons/links-10/manager-bundle.js.LEGAL.txt → src/components/bs5/globalAlert/manifest.json} +0 -0
- /package/{docs/sample-data → src/components/bs5}/header/header.data.json +0 -0
- /package/{docs → src}/components/bs5/header/header.hbs +0 -0
- /package/{docs/storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js.LEGAL.txt → src/components/bs5/header/manifest.json} +0 -0
- /package/{docs/storybook-static/sb-addons/themes-1/manager-bundle.js.LEGAL.txt → src/components/bs5/icons/data.json} +0 -0
- /package/{docs/sample-data → src/components/bs5}/inpageAlert/inpageAlert.data.json +0 -0
- /package/{docs → src}/components/bs5/inpageAlert/inpageAlert.hbs +0 -0
- /package/{docs/sample-data → src/components/bs5}/inpagenav/inpagenav.data.json +0 -0
- /package/{docs → src}/components/bs5/inpagenav/inpagenav.hbs +0 -0
- /package/{docs/sample-data → src/components/bs5}/modal/modal.data.json +0 -0
- /package/{docs → src}/components/bs5/modal/modal.hbs +0 -0
- /package/{docs/sample-data → src/components/bs5}/navbar/navbar.data.json +0 -0
- /package/{docs → src}/components/bs5/navbar/navbar.hbs +0 -0
- /package/{docs/sample-data → src/components/bs5}/pagination/pagination.data.json +0 -0
- /package/{docs → src}/components/bs5/pagination/pagination.hbs +0 -0
- /package/{docs/sample-data → src/components/bs5}/quickexit/quickexit.data.json +0 -0
- /package/{docs → src}/components/bs5/quickexit/quickexit.hbs +0 -0
- /package/{docs/sample-data → src/components/bs5}/select/select.data.json +0 -0
- /package/{docs → src}/components/bs5/select/select.hbs +0 -0
- /package/{docs/sample-data → src/components/bs5}/sidenav/sidenav.data.json +0 -0
- /package/{docs → src}/components/bs5/sidenav/sidenav.hbs +0 -0
- /package/{docs/sample-data → src/components/bs5}/spinner/spinner.data.json +0 -0
- /package/{docs → src}/components/bs5/spinner/spinner.hbs +0 -0
- /package/{docs/sample-data → src/components/bs5}/table/table.data.json +0 -0
- /package/{docs → src}/components/bs5/table/table.hbs +0 -0
- /package/{docs/sample-data → src/components/bs5}/tag/tag.data.json +0 -0
- /package/{docs → src}/components/bs5/tag/tag.hbs +0 -0
- /package/{docs/sample-data → src/components/bs5}/textarea/textarea.data.json +0 -0
- /package/{docs → src}/components/bs5/textarea/textarea.hbs +0 -0
- /package/{docs/sample-data → src/components/bs5}/textbox/textbox.data.json +0 -0
- /package/{docs → src}/components/bs5/textbox/textbox.hbs +0 -0
- /package/{docs → src}/components/bs5/typography/typography.hbs +0 -0
- /package/{docs/sample-data → src/components/bs5}/video/video.data.json +0 -0
- /package/{docs → src}/components/bs5/video/video.hbs +0 -0
- /package/{docs → src/templates/compiled}/index.html +0 -0
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
// ComponentExample.stories.js
|
|
2
|
+
import { Table } from "./Table.js";
|
|
3
|
+
import defaultdata from "./table.data.json";
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
tags: ["autodocs"],
|
|
7
|
+
title: "Components/Table",
|
|
8
|
+
render: (args) => {
|
|
9
|
+
|
|
10
|
+
//Storybook produces a comma delimited string when using the check control type (table-striped, table-bordered) etc.
|
|
11
|
+
//We can't use commas on our class="..." attribute, so we need to replace the commas with spaces.
|
|
12
|
+
if( typeof(args.variantClass) === 'string' ) {
|
|
13
|
+
args.variantClass = args.variantClass.replaceAll(","," ");
|
|
14
|
+
} else if ( typeof(args.variantClass) === 'object' ) {
|
|
15
|
+
args.variantClass = args.variantClass.join(" ");
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
return new Table(args).html;
|
|
19
|
+
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
//https://storybook.js.org/docs/api/arg-types
|
|
23
|
+
argTypes: {
|
|
24
|
+
variantClass: {
|
|
25
|
+
name: "Classes",
|
|
26
|
+
description: `Settable classes for the component`,
|
|
27
|
+
control: {
|
|
28
|
+
type: "check",
|
|
29
|
+
labels: {
|
|
30
|
+
"table-dark": "Dark",
|
|
31
|
+
"table-striped": "Striped",
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
options: [
|
|
35
|
+
"table-dark",
|
|
36
|
+
"table-striped",
|
|
37
|
+
],
|
|
38
|
+
},
|
|
39
|
+
|
|
40
|
+
caption: {
|
|
41
|
+
name: "Caption",
|
|
42
|
+
description: `Table caption`,
|
|
43
|
+
control: {
|
|
44
|
+
type: "text",
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
|
|
48
|
+
subcaption: {
|
|
49
|
+
name: "Subcaption",
|
|
50
|
+
description: `Table subcaption`,
|
|
51
|
+
control: {
|
|
52
|
+
type: "text",
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
|
|
56
|
+
},
|
|
57
|
+
|
|
58
|
+
parameters: {
|
|
59
|
+
// design: {
|
|
60
|
+
// name: "QGDS Figma Reference",
|
|
61
|
+
// type: "figma",
|
|
62
|
+
// url: "https://www.figma.com/file/qKsxl3ogIlBp7dafgxXuCA/QLD-GOV-DDS?type=design&node-id=23167-395552&mode=design&t=qoWXcELpZe1uqHs8-0",
|
|
63
|
+
// },
|
|
64
|
+
docs: {
|
|
65
|
+
controls: {
|
|
66
|
+
exclude: ["headers", "rows", "footer"],
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* For data tables with a small amount of rows use the default table:
|
|
75
|
+
* - Align text columns and corresponding data cells to the left
|
|
76
|
+
* - When comparing numbers in a column, align data cells and column headers to the right
|
|
77
|
+
* - For data tables with more rows, use the striped alternative
|
|
78
|
+
*
|
|
79
|
+
* Example full table including headers, rows and footer, caption and subcaption
|
|
80
|
+
*/
|
|
81
|
+
export const Default = {
|
|
82
|
+
args: defaultdata,
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Table with striping (or banding) <code>.table-striped</code>
|
|
87
|
+
*/
|
|
88
|
+
|
|
89
|
+
export const Striped = {
|
|
90
|
+
args: {
|
|
91
|
+
...defaultdata,
|
|
92
|
+
...{variantClass: "table-striped"},
|
|
93
|
+
},
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Also known as: Quiet Table
|
|
99
|
+
*
|
|
100
|
+
* When seeking to integrate and expand the information that accompanies a text, a borderless table can prove advantageous. It imparts a sense of continuity and cohesion, making the data feel more seamlessly integrated with the surrounding text.
|
|
101
|
+
*/
|
|
102
|
+
|
|
103
|
+
export const Borderless = {
|
|
104
|
+
args: {
|
|
105
|
+
...defaultdata,
|
|
106
|
+
...{customClass: "qld-table--borderless"},
|
|
107
|
+
},
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Table with row hover <code>.table-hover</code>
|
|
113
|
+
*/
|
|
114
|
+
export const WithHover = {
|
|
115
|
+
args: {
|
|
116
|
+
...defaultdata,
|
|
117
|
+
...{variantClass: "table-hover"},
|
|
118
|
+
},
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Alternate (Dark) table. <code>.table-dark</code>
|
|
125
|
+
*/
|
|
126
|
+
export const Dark = {
|
|
127
|
+
args: {
|
|
128
|
+
...defaultdata,
|
|
129
|
+
...{variantClass: "table-dark"},
|
|
130
|
+
},
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Alternate (Dark) table. <code>.table-dark .table-hover</code>
|
|
136
|
+
*/
|
|
137
|
+
export const DarkWithHover = {
|
|
138
|
+
args: {
|
|
139
|
+
...defaultdata,
|
|
140
|
+
...{ variantClass: ["table-dark","table-hover"] },
|
|
141
|
+
},
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Responsive table example <code>.table-responsive</code>
|
|
147
|
+
*/
|
|
148
|
+
export const Responsive = {
|
|
149
|
+
decorators: [
|
|
150
|
+
(Story) => {
|
|
151
|
+
return `
|
|
152
|
+
<div class="container-fluid"><div class="row">
|
|
153
|
+
<div class="col-6">
|
|
154
|
+
${Story()}
|
|
155
|
+
</div>
|
|
156
|
+
</div></div>
|
|
157
|
+
`;
|
|
158
|
+
},
|
|
159
|
+
],
|
|
160
|
+
args: {
|
|
161
|
+
...defaultdata,
|
|
162
|
+
...{
|
|
163
|
+
"headers": [
|
|
164
|
+
"Header",
|
|
165
|
+
"Header",
|
|
166
|
+
"Header",
|
|
167
|
+
"Header",
|
|
168
|
+
"Header",
|
|
169
|
+
"Header",
|
|
170
|
+
"Header",
|
|
171
|
+
"Header",
|
|
172
|
+
"Header",
|
|
173
|
+
"Header",
|
|
174
|
+
"Header",
|
|
175
|
+
"Header",
|
|
176
|
+
],
|
|
177
|
+
"rows": [
|
|
178
|
+
{ "cells": ["Cell", "Longer cell", "Cell", "Cell", "Longer cell", "Cell", "Cell", "Cell", "Cell", "Cell", "Longer Cell", "Cell"] },
|
|
179
|
+
{ "cells": ["Cell", "Longer cell", "Cell", "Cell", "Longer cell", "Cell", "Cell", "Cell", "Cell", "Cell", "Longer Cell", "Cell"] },
|
|
180
|
+
{ "cells": ["Cell", "Longer cell", "Cell", "Cell", "Longer cell", "Cell", "Cell", "Cell", "Cell", "Cell", "Longer Cell", "Cell"] },
|
|
181
|
+
{ "cells": ["Cell", "Longer cell", "Cell", "Cell", "Longer cell", "Cell", "Cell", "Cell", "Cell", "Cell", "Longer Cell", "Cell"] },
|
|
182
|
+
{ "cells": ["Cell", "Longer cell", "Cell", "Cell", "Longer cell", "Cell", "Cell", "Cell", "Cell", "Cell", "Longer Cell", "Cell"] },
|
|
183
|
+
{ "cells": ["Cell", "Longer cell", "Cell", "Cell", "Longer cell", "Cell", "Cell", "Cell", "Cell", "Cell", "Longer Cell", "Cell"] },
|
|
184
|
+
],
|
|
185
|
+
"footer": [
|
|
186
|
+
{
|
|
187
|
+
"cells": [
|
|
188
|
+
"Footer",
|
|
189
|
+
"Footer",
|
|
190
|
+
"Footer",
|
|
191
|
+
"Footer",
|
|
192
|
+
"Footer",
|
|
193
|
+
"Footer",
|
|
194
|
+
"Footer",
|
|
195
|
+
"Footer",
|
|
196
|
+
"Footer",
|
|
197
|
+
"Footer",
|
|
198
|
+
"Footer",
|
|
199
|
+
"Footer",
|
|
200
|
+
],
|
|
201
|
+
},
|
|
202
|
+
],
|
|
203
|
+
},
|
|
204
|
+
...{ variantClass: ["table-striped","table-hover"] },
|
|
205
|
+
},
|
|
206
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Component from '../../../js/QGDSComponent.js'
|
|
2
|
+
import template from "./tag.hbs?raw";
|
|
3
|
+
|
|
4
|
+
export class Tag {
|
|
5
|
+
|
|
6
|
+
// Use the global Component class to create a new instance of the Tag component.
|
|
7
|
+
// A data object, containing the mustache placeholder replacement strings, should be provided as an argument.
|
|
8
|
+
|
|
9
|
+
constructor( data = {} ) {
|
|
10
|
+
return new Component(template, data);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Canvas, Meta, Story } from "@storybook/blocks"
|
|
2
|
+
import * as TagStories from "./tag.stories"
|
|
3
|
+
|
|
4
|
+
<Meta of={TagStories} />
|
|
5
|
+
|
|
6
|
+
# Tag
|
|
7
|
+
<Canvas>
|
|
8
|
+
<Story of={TagStories.Default} />
|
|
9
|
+
</Canvas>
|
|
10
|
+
|
|
11
|
+
## Design resources
|
|
12
|
+
|
|
13
|
+
- [Component library (Figma)](https://www.figma.com/file/qKsxl3ogIlBp7dafgxXuCA/QLD-GOV-DDS?type=design&node-id=23167-395550&mode=design&t=NREcuP5UOBB2Y6G4-4)
|
|
14
|
+
- [Master component file (Figma)](https://www.figma.com/file/qKsxl3ogIlBp7dafgxXuCA/QLD-GOV-DDS?type=design&node-id=5990-97596&mode=design&t=YLfxdziHdqD2Ty0o-0)
|
|
15
|
+
- [Design System website](https://www.designsystem.qld.gov.au/components/tags)
|
|
File without changes
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
.tag-list {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: row;
|
|
4
|
+
padding: 0;
|
|
5
|
+
list-style-type: none;
|
|
6
|
+
flex-wrap: wrap;
|
|
7
|
+
margin: 0.5rem 0;
|
|
8
|
+
padding: 30px;
|
|
9
|
+
&.tag-default {
|
|
10
|
+
.tag-item {
|
|
11
|
+
border-color: $qld-light-grey;
|
|
12
|
+
color: $qld-dark-grey-muted;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
&.tag-dark {
|
|
16
|
+
background-color: $qld-sapphire-blue;
|
|
17
|
+
.tag-item {
|
|
18
|
+
color: $qld-dark-text;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
&.tag-alt {
|
|
22
|
+
background-color: $qld-light-grey-alt;
|
|
23
|
+
.tag-item {
|
|
24
|
+
color: $qld-dark-grey-muted;
|
|
25
|
+
border-color: $qld-soft-grey;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
&.tag-dark-alt {
|
|
29
|
+
background-color: $qld-dark-blue;
|
|
30
|
+
.tag-item {
|
|
31
|
+
color: $qld-dark-text;
|
|
32
|
+
border-color: $qld-dark-border;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.tag-item {
|
|
38
|
+
margin: 0 0.5rem 0 0;
|
|
39
|
+
list-style-type: none;
|
|
40
|
+
display: inline-block;
|
|
41
|
+
border-radius: 16px;
|
|
42
|
+
padding: 0 0.5rem;
|
|
43
|
+
border-width: 1px;
|
|
44
|
+
border-style: solid;
|
|
45
|
+
font-size: 0.875rem;
|
|
46
|
+
line-height: 1.5rem;
|
|
47
|
+
text-align: center;
|
|
48
|
+
&.tag-large {
|
|
49
|
+
line-height: 1.5;
|
|
50
|
+
font-size: 1rem;
|
|
51
|
+
padding: 0.5rem 1rem;
|
|
52
|
+
border-radius: 32px;
|
|
53
|
+
}
|
|
54
|
+
&.tag-link {
|
|
55
|
+
color: $qld-sapphire-blue;
|
|
56
|
+
border-color: $qld-sapphire-blue;
|
|
57
|
+
a {
|
|
58
|
+
text-decoration: none;
|
|
59
|
+
}
|
|
60
|
+
&:hover,
|
|
61
|
+
&:active,
|
|
62
|
+
&:focus {
|
|
63
|
+
background-color: $qld-sapphire-blue;
|
|
64
|
+
a {
|
|
65
|
+
color: white;
|
|
66
|
+
text-decoration: underline;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
&.tag-info {
|
|
71
|
+
color: $qld-dark-grey-muted;
|
|
72
|
+
border-color: $qld-extra-light-grey;
|
|
73
|
+
background-color: $qld-extra-light-grey;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
$close-icon: "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='currentColor' d='M180.7 180.7C186.9 174.4 197.1 174.4 203.3 180.7L256 233.4L308.7 180.7C314.9 174.4 325.1 174.4 331.3 180.7C337.6 186.9 337.6 197.1 331.3 203.3L278.6 256L331.3 308.7C337.6 314.9 337.6 325.1 331.3 331.3C325.1 337.6 314.9 337.6 308.7 331.3L256 278.6L203.3 331.3C197.1 337.6 186.9 337.6 180.7 331.3C174.4 325.1 174.4 314.9 180.7 308.7L233.4 256L180.7 203.3C174.4 197.1 174.4 186.9 180.7 180.7zM512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 32C132.3 32 32 132.3 32 256C32 379.7 132.3 480 256 480C379.7 480 480 379.7 480 256C480 132.3 379.7 32 256 32z'/%3E%3C/svg%3E";
|
|
78
|
+
$close-icon-hover: "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='currentColor' d='M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM175 208.1L222.1 255.1L175 303C165.7 312.4 165.7 327.6 175 336.1C184.4 346.3 199.6 346.3 208.1 336.1L255.1 289.9L303 336.1C312.4 346.3 327.6 346.3 336.1 336.1C346.3 327.6 346.3 312.4 336.1 303L289.9 255.1L336.1 208.1C346.3 199.6 346.3 184.4 336.1 175C327.6 165.7 312.4 165.7 303 175L255.1 222.1L208.1 175C199.6 165.7 184.4 165.7 175 175C165.7 184.4 165.7 199.6 175 208.1V208.1z'/%3E%3C/svg%3E";
|
|
79
|
+
.close-icon {
|
|
80
|
+
mask-image: url($close-icon);
|
|
81
|
+
background-color: $qld-dark-green;
|
|
82
|
+
height: 1.25rem;
|
|
83
|
+
width: 1.25rem;
|
|
84
|
+
vertical-align: middle;
|
|
85
|
+
border: none;
|
|
86
|
+
margin-left: 0.5rem;
|
|
87
|
+
cursor: pointer;
|
|
88
|
+
&:hover {
|
|
89
|
+
background-color: $qld-alt-button-hover;
|
|
90
|
+
mask-image: url($close-icon-hover);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// Tag.stories.js
|
|
2
|
+
import { Tag } from './Tag.js';
|
|
3
|
+
import defaultdata from './tag.data.json';
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
tags: ['autodocs'],
|
|
7
|
+
title: 'Components/Tag',
|
|
8
|
+
render: (args) => new Tag(args).html,
|
|
9
|
+
argTypes: {
|
|
10
|
+
variant: {
|
|
11
|
+
description: `Tags theme`,
|
|
12
|
+
control: {
|
|
13
|
+
type: "radio",
|
|
14
|
+
labels: {
|
|
15
|
+
"tag-default": "Default",
|
|
16
|
+
"tag-alt": "Alt",
|
|
17
|
+
"tag-dark": "Dark",
|
|
18
|
+
"tag-dark-alt": "Dark-alt",
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
options: ["tag-default", "tag-alt", "tag-dark", "tag-dark-alt"],
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
// Default Tag story
|
|
27
|
+
export const Default = {
|
|
28
|
+
args: defaultdata.default,
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
// Large Tag story
|
|
32
|
+
export const Large = {
|
|
33
|
+
args: defaultdata.large,
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
// Action Tag story
|
|
37
|
+
export const Action = {
|
|
38
|
+
args: defaultdata.action,
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
// Dark Tag story
|
|
42
|
+
export const Dark = {
|
|
43
|
+
args: defaultdata.dark,
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
// Info Tag story
|
|
47
|
+
export const Information = {
|
|
48
|
+
args: defaultdata.info,
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
// Filter Tag story
|
|
52
|
+
export const Filter = {
|
|
53
|
+
args: defaultdata.filter,
|
|
54
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import Component from '../../../js/QGDSComponent.js'
|
|
2
|
+
import template from "./textarea.hbs?raw";
|
|
3
|
+
|
|
4
|
+
export class Textarea {
|
|
5
|
+
|
|
6
|
+
// Use the global Component class to create a new instance of the Textarea component.
|
|
7
|
+
// A data object, containing the Handlebars placeholder replacement strings, should be provided as an argument.
|
|
8
|
+
|
|
9
|
+
constructor( data = {} ) {
|
|
10
|
+
return new Component(template, data);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
// ComponentExample.stories.js
|
|
2
|
+
import { Textarea } from "./Textarea.js";
|
|
3
|
+
import defaultdata from "./textarea.data.json";
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
tags: ["autodocs"],
|
|
7
|
+
title: "Components/Textarea",
|
|
8
|
+
render: (args) => {
|
|
9
|
+
|
|
10
|
+
//Storybook produces a comma delimited string when using the check control type (table-striped, table-bordered) etc.
|
|
11
|
+
//We can't use commas on our class="..." attribute, so we need to replace the commas with spaces.
|
|
12
|
+
|
|
13
|
+
if( typeof(args.customClass) === 'string' ) {
|
|
14
|
+
args.customClass = args.customClass.replaceAll(","," ");
|
|
15
|
+
} else if ( typeof(args.customClass) === 'object' ) {
|
|
16
|
+
args.customClass = args.customClass.join(" ");
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
return new Textarea(args).html;
|
|
20
|
+
|
|
21
|
+
},
|
|
22
|
+
|
|
23
|
+
//https://storybook.js.org/docs/api/arg-types
|
|
24
|
+
argTypes: {
|
|
25
|
+
customClass: {
|
|
26
|
+
name: "Classes",
|
|
27
|
+
description: 'Settable classes for the component',
|
|
28
|
+
control: {
|
|
29
|
+
type: "check",
|
|
30
|
+
labels: {
|
|
31
|
+
"form-style-filled": "Filled",
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
options: [
|
|
35
|
+
"form-style-filled",
|
|
36
|
+
],
|
|
37
|
+
},
|
|
38
|
+
states: {
|
|
39
|
+
name: "States",
|
|
40
|
+
description: `Valid/Invalid states`,
|
|
41
|
+
control: {
|
|
42
|
+
type: "radio",
|
|
43
|
+
labels: {
|
|
44
|
+
"default": "Default",
|
|
45
|
+
"qld-input-success": "Success",
|
|
46
|
+
"qld-input-error": "Error",
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
options: [
|
|
50
|
+
"default",
|
|
51
|
+
"qld-input-success",
|
|
52
|
+
"qld-input-error",
|
|
53
|
+
],
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Default textarea
|
|
60
|
+
*/
|
|
61
|
+
export const Default = {
|
|
62
|
+
args: defaultdata,
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Dark themed textarea
|
|
67
|
+
*/
|
|
68
|
+
export const Dark = {
|
|
69
|
+
args: {
|
|
70
|
+
...defaultdata,
|
|
71
|
+
...{isDisabled: false},
|
|
72
|
+
},
|
|
73
|
+
parameters: {
|
|
74
|
+
backgrounds: {
|
|
75
|
+
default: 'Dark',
|
|
76
|
+
values: [
|
|
77
|
+
{ name: 'Dark', value: 'var(--qld-brand-primary)' },
|
|
78
|
+
],
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
decorators: [
|
|
82
|
+
(Story) => {
|
|
83
|
+
return `
|
|
84
|
+
<div class="dark">
|
|
85
|
+
${Story()}
|
|
86
|
+
</div>
|
|
87
|
+
`;
|
|
88
|
+
},
|
|
89
|
+
],
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Filled style textarea
|
|
94
|
+
*/
|
|
95
|
+
export const Filled = {
|
|
96
|
+
args: {
|
|
97
|
+
...defaultdata,
|
|
98
|
+
...{customClass: "form-style-filled"},
|
|
99
|
+
},
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Disabled textarea
|
|
105
|
+
*/
|
|
106
|
+
export const Disabled = {
|
|
107
|
+
args: {
|
|
108
|
+
...defaultdata,
|
|
109
|
+
...{isDisabled: true, isRequired: false},
|
|
110
|
+
},
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Valid textbox
|
|
115
|
+
*/
|
|
116
|
+
export const Valid = {
|
|
117
|
+
args: {
|
|
118
|
+
...defaultdata,
|
|
119
|
+
...{states: "qld-input-success"},
|
|
120
|
+
},
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Invalid textbox
|
|
125
|
+
*/
|
|
126
|
+
export const Invalid = {
|
|
127
|
+
args: {
|
|
128
|
+
...defaultdata,
|
|
129
|
+
...{states: "qld-input-error"},
|
|
130
|
+
},
|
|
131
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import Component from '../../../js/QGDSComponent.js'
|
|
2
|
+
import template from "./textbox.hbs?raw";
|
|
3
|
+
|
|
4
|
+
export class Textbox {
|
|
5
|
+
|
|
6
|
+
// Use the global Component class to create a new instance of the Textbox component.
|
|
7
|
+
// A data object, containing the Handlebars placeholder replacement strings, should be provided as an argument.
|
|
8
|
+
|
|
9
|
+
constructor( data = {} ) {
|
|
10
|
+
return new Component(template, data);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
// ComponentExample.stories.js
|
|
2
|
+
import { Textbox } from "./Textbox.js";
|
|
3
|
+
import defaultdata from "./textbox.data.json";
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
tags: ["autodocs"],
|
|
7
|
+
title: "Components/Textbox",
|
|
8
|
+
render: (args) => {
|
|
9
|
+
|
|
10
|
+
//Storybook produces a comma delimited string when using the check control type (table-striped, table-bordered) etc.
|
|
11
|
+
//We can't use commas on our class="..." attribute, so we need to replace the commas with spaces.
|
|
12
|
+
|
|
13
|
+
if( typeof(args.customClass) === 'string' ) {
|
|
14
|
+
args.customClass = args.customClass.replaceAll(","," ");
|
|
15
|
+
} else if ( typeof(args.customClass) === 'object' ) {
|
|
16
|
+
args.customClass = args.customClass.join(" ");
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
return new Textbox(args).html;
|
|
20
|
+
|
|
21
|
+
},
|
|
22
|
+
|
|
23
|
+
//https://storybook.js.org/docs/api/arg-types
|
|
24
|
+
argTypes: {
|
|
25
|
+
customClass: {
|
|
26
|
+
name: "Classes",
|
|
27
|
+
description: 'Settable classes for the component',
|
|
28
|
+
control: {
|
|
29
|
+
type: "check",
|
|
30
|
+
labels: {
|
|
31
|
+
"form-style-filled": "Filled",
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
options: [
|
|
35
|
+
"form-style-filled",
|
|
36
|
+
],
|
|
37
|
+
},
|
|
38
|
+
states: {
|
|
39
|
+
name: "States",
|
|
40
|
+
description: `Valid/Invalid states`,
|
|
41
|
+
control: {
|
|
42
|
+
type: "radio",
|
|
43
|
+
labels: {
|
|
44
|
+
"default": "Default",
|
|
45
|
+
"qld-input-success": "Success",
|
|
46
|
+
"qld-input-error": "Error",
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
options: [
|
|
50
|
+
"default",
|
|
51
|
+
"qld-input-success",
|
|
52
|
+
"qld-input-error",
|
|
53
|
+
],
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Default textbox
|
|
60
|
+
*/
|
|
61
|
+
export const Default = {
|
|
62
|
+
args: defaultdata,
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Dark themed textbox
|
|
67
|
+
*/
|
|
68
|
+
export const Dark = {
|
|
69
|
+
args: {
|
|
70
|
+
...defaultdata,
|
|
71
|
+
...{isDisabled: false},
|
|
72
|
+
},
|
|
73
|
+
parameters: {
|
|
74
|
+
backgrounds: {
|
|
75
|
+
default: 'Dark',
|
|
76
|
+
values: [
|
|
77
|
+
{ name: 'Dark', value: 'var(--qld-brand-primary)' },
|
|
78
|
+
],
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
decorators: [
|
|
82
|
+
(Story) => {
|
|
83
|
+
return `
|
|
84
|
+
<div class="dark">
|
|
85
|
+
${Story()}
|
|
86
|
+
</div>
|
|
87
|
+
`;
|
|
88
|
+
},
|
|
89
|
+
],
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Filled style textbox
|
|
94
|
+
*/
|
|
95
|
+
export const Filled = {
|
|
96
|
+
args: {
|
|
97
|
+
...defaultdata,
|
|
98
|
+
...{customClass: "form-style-filled"},
|
|
99
|
+
},
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Disabled textbox
|
|
105
|
+
*/
|
|
106
|
+
export const Disabled = {
|
|
107
|
+
args: {
|
|
108
|
+
...defaultdata,
|
|
109
|
+
...{isDisabled: true},
|
|
110
|
+
},
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Valid textbox
|
|
115
|
+
*/
|
|
116
|
+
export const Valid = {
|
|
117
|
+
args: {
|
|
118
|
+
...defaultdata,
|
|
119
|
+
...{states: "qld-input-success"},
|
|
120
|
+
},
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Invalid textbox
|
|
125
|
+
*/
|
|
126
|
+
export const Invalid = {
|
|
127
|
+
args: {
|
|
128
|
+
...defaultdata,
|
|
129
|
+
...{states: "qld-input-error"},
|
|
130
|
+
},
|
|
131
|
+
};
|
|
File without changes
|