,
12 |
13 | document.getElementById('root'),
14 | );
15 |
--------------------------------------------------------------------------------
/.templates/new-module/tests/react/webpack.config.js:
--------------------------------------------------------------------------------
1 | const path = require( 'path' );
2 |
3 | module.exports = {
4 | entry: './index.js',
5 | mode: 'development',
6 | output: {
7 | filename: './bundle.js',
8 | path: path.resolve( __dirname )
9 | },
10 | module: {
11 | rules: [
12 | {
13 | test: /\.js$/,
14 | exclude: /node_modules/,
15 | use: 'babel-loader',
16 | },
17 | ],
18 | },
19 | };
20 |
--------------------------------------------------------------------------------
/.templates/new-module/tests/site/test.scss:
--------------------------------------------------------------------------------
1 | //dependencies
2 | @import '../../src/sass/_dependencies.scss';
3 |
4 | //testing includes
5 | // @import '../../../body/src/sass/_module.scss';
6 |
7 | //styling all test files
8 | @import '../../../../.templates/test-assets/_style.scss';
9 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017 Commonwealth of Australia
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/SUPPORT.md:
--------------------------------------------------------------------------------
1 | # Australian Government Design System - Components - Support
2 |
3 | Stuck? Got an idea? There's several channels available to engage with the Design System community.
4 |
5 | We'd prefer you ask your question in the open, if possible. It's likely that others have the same question - answers posted in a public forum will assist those who come after you.
6 |
7 | - [Post on our Community Forum](https://community.digital.gov.au/c/designsystem)
8 | - [Join our Slack Channel](https://govau-guides.slack.com/)
9 | - [Raise a GitHub issue](https://github.com/govau/design-system-components/issues/new/choose)
10 |
11 | As a last resort, you can email the core development team directly at designsystem@dta.gov.au
12 |
--------------------------------------------------------------------------------
/lerna.json:
--------------------------------------------------------------------------------
1 | {
2 | "lerna": "3.13.4",
3 | "packages": [
4 | "packages/*"
5 | ],
6 | "npmClient": "npm",
7 | "version": "independent"
8 | }
9 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "auds",
3 | "license": "MIT",
4 | "repository": {
5 | "type": "git",
6 | "url": "https://github.com/govau/design-system-components"
7 | },
8 | "devDependencies": {
9 | "autoprefixer": "^9.4.10",
10 | "cfonts": "^2.4.2",
11 | "chalk": "^2.4.2",
12 | "express": "^4.16.4",
13 | "inquirer": "6.2.2",
14 | "jest-cli": "^24.7.1",
15 | "lerna": "^3.14.1",
16 | "node-sass": "^4.14.0",
17 | "pa11y": "^5.1.0",
18 | "postcss": "^8.2.10",
19 | "puppeteer": "^1.13.0",
20 | "rimraf": "^2.6.3",
21 | "semver": "^5.6.0",
22 | "treeify": "^1.1.0"
23 | },
24 | "scripts": {
25 | "scaffolding": "node ./scripts/helper.js scaffolding",
26 | "bootstrap": "lerna bootstrap --hoist",
27 | "build": "lerna run build",
28 | "publish": "lerna version --no-git-tag-version --no-push",
29 | "nuke": "npm run delete:node_modules | npm run delete:lib",
30 | "delete:node_modules": "lerna clean --yes && rimraf node_modules",
31 | "delete:lib": "rimraf packages/*/lib",
32 | "test:unit-test": "jest",
33 | "test": "node scripts/helper.js test && node ./scripts/a11y.js"
34 | },
35 | "jest": {
36 | "testRegex": "\\.spec.js$",
37 | "collectCoverageFrom": [
38 | "packages/*/lib/js/*.js"
39 | ],
40 | "coverageThreshold": {
41 | "global": {
42 | "branches": 0,
43 | "functions": 0,
44 | "lines": 0,
45 | "statements": 0
46 | }
47 | }
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/packages/accordion/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017 Commonwealth of Australia
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/packages/accordion/src/sass/_dependencies.scss:
--------------------------------------------------------------------------------
1 | //dependencies
2 | @import '../../../core/src/sass/_module.scss';
3 |
4 | //this module
5 | @import '_module.scss';
6 |
--------------------------------------------------------------------------------
/packages/accordion/src/sass/_globals.scss:
--------------------------------------------------------------------------------
1 | /*! [replace-name] v[replace-version] */
2 |
3 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
4 | // accordion module globals
5 | // Allow the user to toggle the visibility of an element
6 | //
7 | // Content:
8 | // - Sass versioning
9 | // - Global variables: none so far
10 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
11 |
12 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
13 | // SASS VERSIONING
14 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
15 | $name: "[replace-name]";
16 | $version: "[replace-version]";
17 | $dependencies: (
18 | [replace-dependencies]
19 | );
20 |
21 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
22 | // GLOBAL VARIABLES
23 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
24 |
25 |
26 |
27 | // Boy it sure is quiet here.
28 |
--------------------------------------------------------------------------------
/packages/accordion/src/sass/_print.scss:
--------------------------------------------------------------------------------
1 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
2 | // accordion module
3 | // Allow the user to toggle the visibility of an element
4 | //
5 | // Content:
6 | // - print styles
7 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
8 |
9 |
10 | @media print {
11 | .au-accordion {
12 | border-color: #000 !important;
13 | color: #000 !important;
14 | }
15 |
16 | .au-accordion__title {
17 | background: #fff !important;
18 | color: #000 !important;
19 | border: 1px !important;
20 |
21 | &:after {
22 | display: none;
23 | }
24 | }
25 |
26 | .au-accordion__body-wrapper {
27 | border-color: #000 !important;
28 | }
29 |
30 | .au-accordion__body {
31 | height: auto !important;
32 | display: block !important;
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/packages/accordion/tests/jquery/test.scss:
--------------------------------------------------------------------------------
1 | @import '../site/test.scss';
2 |
--------------------------------------------------------------------------------
/packages/accordion/tests/react/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["@babel/preset-react", "@babel/preset-env"]
3 | }
--------------------------------------------------------------------------------
/packages/accordion/tests/react/index.html:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | Test: accordion
20 |
21 |
24 |
25 |
26 |
27 |
28 |
29 |
32 |
33 | ← back to the module index
34 |
35 |
React test: accordion
36 |
37 |
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/packages/accordion/tests/react/webpack.config.js:
--------------------------------------------------------------------------------
1 | const path = require( 'path' );
2 |
3 | module.exports = {
4 | entry: './index.js',
5 | mode: 'development',
6 | output: {
7 | filename: './bundle.js',
8 | path: path.resolve( __dirname )
9 | },
10 | module: {
11 | rules: [
12 | {
13 | test: /\.js$/,
14 | exclude: /node_modules/,
15 | use: 'babel-loader',
16 | },
17 | ],
18 | },
19 | };
20 |
--------------------------------------------------------------------------------
/packages/accordion/tests/site/test.scss:
--------------------------------------------------------------------------------
1 | //dependencies
2 | @import '../../src/sass/_dependencies.scss';
3 |
4 | //testing includes
5 | @import '../../../body/src/sass/_module.scss';
6 |
7 | //styling all test files
8 | @import '../../../../.templates/test-assets/_style.scss';
9 |
10 | .testing {
11 | border-style: dashed;
12 | }
13 |
--------------------------------------------------------------------------------
/packages/animate/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017 Commonwealth of Australia
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/packages/animate/tests/jquery/index.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/govau/design-system-components/f6517f505e5a65a972c1a88f2ddc52d027237c08/packages/animate/tests/jquery/index.html
--------------------------------------------------------------------------------
/packages/animate/tests/jquery/test.scss:
--------------------------------------------------------------------------------
1 | @import '../site/test.scss';
2 |
--------------------------------------------------------------------------------
/packages/animate/tests/site/test.scss:
--------------------------------------------------------------------------------
1 | //dependencies
2 | // @import '../../src/sass/_dependencies.scss';
3 |
4 | //testing includes
5 | @import '../../../core/src/sass/_module.scss';
6 | @import '../../../grid-12/src/sass/_module.scss';
7 |
8 | //styling all test files
9 | @import '../../../../.templates/test-assets/_style.scss';
10 |
11 |
12 | .au-dropdown-example {
13 | background-color: hotpink;
14 | background-color: rebeccapurple;
15 | @include AU-space( margin-top, 1unit );
16 | }
17 |
18 |
19 | .test-link { //have to to make it look awesome again
20 | @include AU-space( margin-left, 1unit );
21 | }
22 |
--------------------------------------------------------------------------------
/packages/body/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017 Commonwealth of Australia
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/packages/body/src/sass/_dependencies.scss:
--------------------------------------------------------------------------------
1 | //dependencies
2 | @import '../../../core/src/sass/_module.scss';
3 |
4 | //this module
5 | @import '_module.scss';
6 |
--------------------------------------------------------------------------------
/packages/body/src/sass/_globals.scss:
--------------------------------------------------------------------------------
1 | /*! [replace-name] v[replace-version] */
2 |
3 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
4 | // Body module globals
5 | //
6 | // Content:
7 | // - SASS versioning
8 | // - Global variables: none so far
9 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
10 |
11 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
12 | // SASS VERSIONING
13 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
14 | $name: "[replace-name]";
15 | $version: "[replace-version]";
16 | $dependencies: (
17 | [replace-dependencies]
18 | );
19 |
20 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
21 | // GLOBAL VARIABLES
22 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
23 |
24 | // Boy it sure is quiet here.
25 |
--------------------------------------------------------------------------------
/packages/body/tests/site/test.scss:
--------------------------------------------------------------------------------
1 | //dependencies
2 | @import '../../src/sass/_dependencies.scss';
3 |
4 | //testing includes
5 | @import '../../../headings/src/sass/_module.scss';
6 | @import '../../../responsive-media/src/sass/_module.scss';
7 |
8 | //styling all test files
9 | @import '../../../../.templates/test-assets/_style.scss';
10 |
11 |
12 | main {
13 | @include AU-space( margin-top, 1.5unit );
14 | }
15 |
16 | .text-large-links {
17 | font-weight: normal;
18 | }
19 |
--------------------------------------------------------------------------------
/packages/breadcrumbs/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017 Commonwealth of Australia
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/packages/breadcrumbs/src/sass/_dependencies.scss:
--------------------------------------------------------------------------------
1 | //dependencies
2 | @import '../../../core/src/sass/_module.scss';
3 | @import '../../../link-list/src/sass/module.scss';
4 |
5 | @import '../../../body/src/sass/_module.scss'; //link-list dependency
6 |
7 | //this module
8 | @import '_module.scss';
9 |
--------------------------------------------------------------------------------
/packages/breadcrumbs/src/sass/_globals.scss:
--------------------------------------------------------------------------------
1 | /*! [replace-name] v[replace-version] */
2 |
3 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
4 | // breadcrumbs module globals
5 | // Breadcrumbs help users understand where they are in the service and how they got there.
6 | //
7 | // Content:
8 | // - Sass versioning
9 | // - Global variables: none so far
10 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
11 |
12 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
13 | // SASS VERSIONING
14 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
15 | $name: "[replace-name]";
16 | $version: "[replace-version]";
17 | $dependencies: (
18 | [replace-dependencies]
19 | );
20 |
21 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
22 | // GLOBAL VARIABLES
23 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
24 |
25 | // Boy it sure is quiet here.
26 |
--------------------------------------------------------------------------------
/packages/breadcrumbs/src/sass/_print.scss:
--------------------------------------------------------------------------------
1 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
2 | // Breadcrumbs module
3 | // Breadcrumbs help users understand where they are in the service and how they got there.
4 | //
5 | // Content:
6 | // - print styles
7 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
8 |
9 |
10 | @media print {
11 | .au-breadcrumbs > .au-link-list > li:after {
12 | content: ">" !important;
13 | background-image: none !important;
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/packages/breadcrumbs/tests/react/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["@babel/preset-react", "@babel/preset-env"]
3 | }
--------------------------------------------------------------------------------
/packages/breadcrumbs/tests/react/index.html:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | Test: breadcrumbs
20 |
21 |
24 |
25 |
26 |
27 |
28 |
29 |
32 |
33 | ← back to the module index
34 |
35 |
React test: breadcrumbs
36 |
37 |
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/packages/breadcrumbs/tests/react/webpack.config.js:
--------------------------------------------------------------------------------
1 | const path = require( 'path' );
2 |
3 | module.exports = {
4 | entry: './index.js',
5 | mode: 'development',
6 | output: {
7 | filename: './bundle.js',
8 | path: path.resolve( __dirname )
9 | },
10 | module: {
11 | rules: [
12 | {
13 | test: /\.js$/,
14 | exclude: /node_modules/,
15 | use: 'babel-loader',
16 | },
17 | ],
18 | },
19 | };
20 |
--------------------------------------------------------------------------------
/packages/breadcrumbs/tests/site/test.scss:
--------------------------------------------------------------------------------
1 | //dependencies
2 | @import '../../src/sass/_dependencies.scss';
3 |
4 | //testing includes
5 | // @import '../../../body/src/sass/_module.scss';
6 |
7 | //styling all test files
8 | @import '../../../../.templates/test-assets/_style.scss';
9 |
10 | .testing {
11 | border: 2px dashed rebeccapurple;
12 | }
13 |
--------------------------------------------------------------------------------
/packages/buttons/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017 Commonwealth of Australia
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/packages/buttons/src/sass/_dependencies.scss:
--------------------------------------------------------------------------------
1 | //dependencies
2 | @import '../../../core/src/sass/_module.scss';
3 |
4 | //this module
5 | @import '_module.scss';
6 |
--------------------------------------------------------------------------------
/packages/buttons/src/sass/_globals.scss:
--------------------------------------------------------------------------------
1 | /*! [replace-name] v[replace-version] */
2 |
3 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
4 | // buttons module globals
5 | // Buttons signal action. Use them to move the user through the service.
6 | //
7 | // Content:
8 | // - Sass versioning
9 | // - Global variables: none so far
10 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
11 |
12 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
13 | // SASS VERSIONING
14 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
15 | $name: "[replace-name]";
16 | $version: "[replace-version]";
17 | $dependencies: (
18 | [replace-dependencies]
19 | );
20 |
21 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
22 | // GLOBAL VARIABLES
23 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
24 |
25 | // Boy it sure is quiet here.
26 |
--------------------------------------------------------------------------------
/packages/buttons/src/sass/_print.scss:
--------------------------------------------------------------------------------
1 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
2 | // Buttons module
3 | // Buttons signal action. Use them to move the user through the service.
4 | //
5 | // Content:
6 | // - print styles
7 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
8 |
9 |
10 | @media print {
11 | .au-btn {
12 | background-color: #fff !important;
13 | border: 2px solid #000 !important;
14 | color: #000 !important;
15 | text-decoration: none !important;
16 |
17 |
18 | &[disabled] {
19 | background-color: #ccc !important;
20 | border: 2px solid #ccc !important;
21 | }
22 |
23 | &:disabled {
24 | background-color: #ccc !important;
25 | border: 2px solid #ccc !important;
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/packages/buttons/tests/react/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["@babel/preset-react", "@babel/preset-env"]
3 | }
--------------------------------------------------------------------------------
/packages/buttons/tests/react/index.html:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | Test: buttons
20 |
21 |
24 |
25 |
26 |
27 |
28 |
29 |
32 |
33 | ← back to the module index
34 |
35 |
React test: buttons
36 |
37 |
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/packages/buttons/tests/react/webpack.config.js:
--------------------------------------------------------------------------------
1 | const path = require( 'path' );
2 |
3 | module.exports = {
4 | entry: './index.js',
5 | mode: 'development',
6 | output: {
7 | filename: './bundle.js',
8 | path: path.resolve( __dirname )
9 | },
10 | module: {
11 | rules: [
12 | {
13 | test: /\.js$/,
14 | exclude: /node_modules/,
15 | use: 'babel-loader',
16 | },
17 | ],
18 | },
19 | };
20 |
--------------------------------------------------------------------------------
/packages/buttons/tests/site/test.scss:
--------------------------------------------------------------------------------
1 | //dependencies
2 | @import '../../src/sass/_dependencies.scss';
3 |
4 | //testing includes
5 | @import '../../../body/src/sass/_module.scss';
6 | @import '../../../text-inputs/src/sass/_module.scss';
7 | @import '../../../select/src/sass/_module.scss';
8 |
9 | //styling all test files
10 | @import '../../../../.templates/test-assets/_style.scss';
11 |
12 |
13 | .height-test {
14 | position: relative;
15 | margin: 2em 0;
16 | padding: 0 2em;
17 | text-align: center;
18 | background-image: linear-gradient(
19 | 90deg,
20 | transparent 79px,
21 | transparent 79px,
22 | transparent 81px,
23 | transparent 81px
24 | ), linear-gradient(
25 | lighten( $AU-color-foreground-border, 30% ) .1em,
26 | transparent .1em
27 | );
28 | background-size: 100% 4px;
29 |
30 | &:after {
31 | content: 'Alignment test';
32 | position: absolute;
33 | left: 1em;
34 | top: -1em;
35 | font-family: $AU-font;
36 | }
37 |
38 | .no-a11y-test {
39 | display: inline;
40 | }
41 | }
42 |
43 | .testing {
44 | border: 3px dashed hotpink !important;
45 | }
46 |
--------------------------------------------------------------------------------
/packages/callout/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017 Commonwealth of Australia
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/packages/callout/src/sass/_dependencies.scss:
--------------------------------------------------------------------------------
1 | //dependencies
2 | @import '../../../core/src/sass/_module.scss';
3 |
4 | //this module
5 | @import '_module.scss';
6 |
--------------------------------------------------------------------------------
/packages/callout/src/sass/_globals.scss:
--------------------------------------------------------------------------------
1 | /*! [replace-name] v[replace-version] */
2 |
3 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
4 | // callout module globals
5 | // Use callout to notify and alert users of important snippets of information.
6 | //
7 | // Content:
8 | // - Sass versioning
9 | // - Global variables: none so far
10 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
11 |
12 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
13 | // SASS VERSIONING
14 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
15 | $name: "[replace-name]";
16 | $version: "[replace-version]";
17 | $dependencies: (
18 | [replace-dependencies]
19 | );
20 |
21 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
22 | // GLOBAL VARIABLES
23 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
24 |
25 | // Boy it sure is quiet here.
26 |
--------------------------------------------------------------------------------
/packages/callout/src/sass/_print.scss:
--------------------------------------------------------------------------------
1 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
2 | // callout module
3 | // Use callout to notify and alert users of important snippets of information.
4 | //
5 | // Content:
6 | // - print styles
7 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
8 |
9 |
10 | @media print {
11 | .au-callout {
12 | @include AU-space( border-left-width, 1unit !important );
13 | border: 1px solid #000 !important;
14 | color: #000 !important;
15 | background-color: transparent !important;
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/packages/callout/tests/react/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["@babel/preset-react", "@babel/preset-env"]
3 | }
--------------------------------------------------------------------------------
/packages/callout/tests/react/index.html:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | Test: callout
20 |
21 |
24 |
25 |
26 |
27 |
28 |
29 |
32 |
33 | ← back to the module index
34 |
35 |
React test: callout
36 |
37 |
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/packages/callout/tests/react/webpack.config.js:
--------------------------------------------------------------------------------
1 | const path = require( 'path' );
2 |
3 | module.exports = {
4 | entry: './index.js',
5 | mode: 'development',
6 | output: {
7 | filename: './bundle.js',
8 | path: path.resolve( __dirname )
9 | },
10 | module: {
11 | rules: [
12 | {
13 | test: /\.js$/,
14 | exclude: /node_modules/,
15 | use: 'babel-loader',
16 | },
17 | ],
18 | },
19 | };
20 |
--------------------------------------------------------------------------------
/packages/callout/tests/site/test.scss:
--------------------------------------------------------------------------------
1 | //dependencies
2 | @import '../../src/sass/_dependencies.scss';
3 |
4 | //testing includes
5 | @import '../../../body/src/sass/_module.scss';
6 |
7 | //styling all test files
8 | @import '../../../../.templates/test-assets/_style.scss';
9 |
10 | .testing {
11 | border: 2px dashed hotpink;
12 | }
13 |
--------------------------------------------------------------------------------
/packages/card/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2018 Commonwealth of Australia
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/packages/card/src/sass/_dependencies.scss:
--------------------------------------------------------------------------------
1 | //dependencies
2 | @import '../../../core/src/sass/_module.scss';
3 |
4 | //this module
5 | @import '_module.scss';
6 |
--------------------------------------------------------------------------------
/packages/card/src/sass/_globals.scss:
--------------------------------------------------------------------------------
1 | /*! [replace-name] v[replace-version] */
2 |
3 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
4 | // card module globals
5 | // A container for all types of content
6 | //
7 | // Content:
8 | // - Sass versioning
9 | // - Global variables: none so far
10 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
11 |
12 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
13 | // SASS VERSIONING
14 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
15 | $name: "[replace-name]";
16 | $version: "[replace-version]";
17 | $dependencies: (
18 | [replace-dependencies]
19 | );
20 |
21 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
22 | // GLOBAL VARIABLES
23 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
24 |
25 | // Boy it sure is quiet here.
26 |
27 | $AU-card-divider: lightgray;
28 |
--------------------------------------------------------------------------------
/packages/card/src/sass/_print.scss:
--------------------------------------------------------------------------------
1 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
2 | // card module
3 | // A container for all types of content
4 | //
5 | // Content:
6 | // - print styles
7 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
8 |
9 |
10 | @media print {
11 | }
12 |
--------------------------------------------------------------------------------
/packages/card/tests/react/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["@babel/preset-react", "@babel/preset-env"]
3 | }
--------------------------------------------------------------------------------
/packages/card/tests/react/index.html:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | Test: card
20 |
21 |
24 |
25 |
26 |
27 |
28 |
29 |
32 |
33 | ← back to the module index
34 |
35 |
React test: card
36 |
37 |
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/packages/card/tests/react/webpack.config.js:
--------------------------------------------------------------------------------
1 | const path = require( 'path' );
2 |
3 | module.exports = {
4 | entry: './index.js',
5 | mode: 'development',
6 | output: {
7 | filename: './bundle.js',
8 | path: path.resolve( __dirname )
9 | },
10 | module: {
11 | rules: [
12 | {
13 | test: /\.js$/,
14 | exclude: /node_modules/,
15 | use: 'babel-loader',
16 | },
17 | ],
18 | },
19 | };
20 |
--------------------------------------------------------------------------------
/packages/card/tests/site/test.scss:
--------------------------------------------------------------------------------
1 | //dependencies
2 | @import '../../src/sass/_dependencies.scss';
3 |
4 | //testing includes
5 | @import '../../../body/src/sass/_module.scss';
6 | @import '../../../grid-12/src/sass/_module.scss';
7 | @import '../../../buttons/src/sass/_module.scss';
8 | @import '../../../cta-link/src/sass/_module.scss';
9 | @import '../../../responsive-media/src/sass/_module.scss';
10 |
11 |
12 |
13 |
14 | //styling all test files
15 | @import '../../../../.templates/test-assets/_style.scss';
16 |
17 |
18 | .au-card-list li {
19 | @include AU-space( 'margin-top', 1.5unit );
20 | }
21 |
22 |
23 | // .au-card__cta {
24 | // display: block;
25 |
26 | // &.au-card__cta--link {
27 | // color: $AU-color-foreground-action;
28 | // text-decoration: underline;
29 | // text-decoration-skip-ink: auto;
30 | // }
31 |
32 | // &.au-card__cta--align-right {
33 | // float: right;
34 | // @include AU-space( 'margin-bottom', 1rem );
35 |
36 | // &:after {
37 | // @include AU-clearfix();
38 | // }
39 | // }
40 | // }
41 |
42 |
--------------------------------------------------------------------------------
/packages/control-input/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017 Commonwealth of Australia
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/packages/control-input/src/sass/_dependencies.scss:
--------------------------------------------------------------------------------
1 | //dependencies
2 | @import '../../../core/src/sass/_module.scss';
3 |
4 | //this module
5 | @import '_module.scss';
6 |
--------------------------------------------------------------------------------
/packages/control-input/src/sass/_print.scss:
--------------------------------------------------------------------------------
1 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
2 | // control-input module
3 | // Control inputs include radio buttons and checkboxes. They allow users to select one or more options.
4 | //
5 | // Content:
6 | // - print styles
7 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
8 |
9 |
10 | @media print {
11 | .au-control-input__text {
12 | color: #000 !important;
13 |
14 | &:before,
15 | &:after {
16 | display: none !important;
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/packages/control-input/tests/react/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["@babel/preset-react", "@babel/preset-env"]
3 | }
--------------------------------------------------------------------------------
/packages/control-input/tests/react/index.html:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | Test: control-input
20 |
21 |
24 |
25 |
26 |
27 |
28 |
29 |
32 |
33 | ← back to the module index
34 |
35 |
React test: control-input
36 |
37 |
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/packages/control-input/tests/react/webpack.config.js:
--------------------------------------------------------------------------------
1 | const path = require( 'path' );
2 |
3 | module.exports = {
4 | entry: './index.js',
5 | mode: 'development',
6 | output: {
7 | filename: './bundle.js',
8 | path: path.resolve( __dirname )
9 | },
10 | module: {
11 | rules: [
12 | {
13 | test: /\.js$/,
14 | exclude: /node_modules/,
15 | use: 'babel-loader',
16 | },
17 | ],
18 | },
19 | };
20 |
--------------------------------------------------------------------------------
/packages/control-input/tests/site/test.scss:
--------------------------------------------------------------------------------
1 | //dependencies
2 | @import '../../src/sass/_dependencies.scss';
3 |
4 | //testing includes
5 | // @import '../../../body/src/sass/_module.scss';
6 |
7 | //styling all test files
8 | @import '../../../../.templates/test-assets/_style.scss';
9 |
10 | .testing {
11 | border: 3px dashed hotpink;
12 | }
13 |
--------------------------------------------------------------------------------
/packages/core/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017 Commonwealth of Australia
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/packages/core/src/sass/_dependencies.scss:
--------------------------------------------------------------------------------
1 | //dependencies
2 | // @import '../../../core/src/sass/_module.scss';
3 |
4 | //this module
5 | @import '_module.scss';
6 |
--------------------------------------------------------------------------------
/packages/core/src/sass/_module.scss:
--------------------------------------------------------------------------------
1 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
2 | // Core module
3 | //
4 | // Content:
5 | // - sass-versioning
6 | // - globals
7 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
8 |
9 |
10 | @import '_globals.scss';
11 | @import '_print.scss';
12 |
--------------------------------------------------------------------------------
/packages/core/src/sass/_print.scss:
--------------------------------------------------------------------------------
1 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
2 | // Code module
3 | //
4 | //
5 | // Content:
6 | // - print styles
7 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
8 |
9 |
10 | // @media print {
11 | // }
12 |
--------------------------------------------------------------------------------
/packages/cta-link/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017 Commonwealth of Australia
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/packages/cta-link/src/sass/_dependencies.scss:
--------------------------------------------------------------------------------
1 | //dependencies
2 | @import '../../../core/src/sass/_module.scss';
3 |
4 | //this module
5 | @import '_module.scss';
6 |
--------------------------------------------------------------------------------
/packages/cta-link/src/sass/_globals.scss:
--------------------------------------------------------------------------------
1 | /*! [replace-name] v[replace-version] */
2 |
3 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
4 | // cta-link module globals
5 | // Provide a see more/all link when there are too many items to show in the current context.
6 | //
7 | // Content:
8 | // - Sass versioning
9 | // - Global variables: none so far
10 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
11 |
12 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
13 | // SASS VERSIONING
14 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
15 | $name: "[replace-name]";
16 | $version: "[replace-version]";
17 | $dependencies: (
18 | [replace-dependencies]
19 | );
20 |
21 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
22 | // GLOBAL VARIABLES
23 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
24 |
25 | // Boy it sure is quiet here.
26 |
--------------------------------------------------------------------------------
/packages/cta-link/src/sass/_print.scss:
--------------------------------------------------------------------------------
1 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
2 | // cta-link module
3 | // Use cta links to draw attention to a primary call to action
4 | //
5 | // Content:
6 | // - print styles
7 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
8 |
9 |
10 | @media print {
11 | .au-cta-link {
12 | color: #000 !important;
13 | &:after {
14 | background-image: none !important;
15 | content: ' > ' !important;
16 | border: none !important;
17 | transform: rotate( 0deg ) !important;
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/packages/cta-link/tests/react/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["@babel/preset-react", "@babel/preset-env"]
3 | }
--------------------------------------------------------------------------------
/packages/cta-link/tests/react/index.html:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | Test: cta-link
20 |
21 |
24 |
25 |
26 |
27 |
28 |
29 |
32 |
33 | ← back to the module index
34 |
35 |
React test: cta-link
36 |
37 |
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/packages/cta-link/tests/react/webpack.config.js:
--------------------------------------------------------------------------------
1 | const path = require( 'path' );
2 |
3 | module.exports = {
4 | entry: './index.js',
5 | mode: 'development',
6 | output: {
7 | filename: './bundle.js',
8 | path: path.resolve( __dirname )
9 | },
10 | module: {
11 | rules: [
12 | {
13 | test: /\.js$/,
14 | exclude: /node_modules/,
15 | use: 'babel-loader',
16 | },
17 | ],
18 | },
19 | };
20 |
--------------------------------------------------------------------------------
/packages/cta-link/tests/site/test.scss:
--------------------------------------------------------------------------------
1 | //dependencies
2 | @import '../../src/sass/_dependencies.scss';
3 |
4 | //testing includes
5 | @import '../../../body/src/sass/_module.scss';
6 |
7 | //styling all test files
8 | @import '../../../../.templates/test-assets/_style.scss';
9 |
10 | .testing {
11 | border: 3px dashed hotpink;
12 | }
13 |
--------------------------------------------------------------------------------
/packages/direction-links/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017 Commonwealth of Australia
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/packages/direction-links/src/sass/_dependencies.scss:
--------------------------------------------------------------------------------
1 | //dependencies
2 | @import '../../../core/src/sass/_module.scss';
3 |
4 | //this module
5 | @import '_module.scss';
6 |
--------------------------------------------------------------------------------
/packages/direction-links/src/sass/_globals.scss:
--------------------------------------------------------------------------------
1 | /*! [replace-name] v[replace-version] */
2 |
3 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
4 | // direction-links module globals
5 | // Use direction links to link up and down within the DOM or back to a parent page.
6 | //
7 | // Content:
8 | // - Sass versioning
9 | // - Global variables: none so far
10 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
11 |
12 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
13 | // SASS VERSIONING
14 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
15 | $name: "[replace-name]";
16 | $version: "[replace-version]";
17 | $dependencies: (
18 | [replace-dependencies]
19 | );
20 |
21 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
22 | // GLOBAL VARIABLES
23 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
24 |
25 | // Boy it sure is quiet here.
26 |
--------------------------------------------------------------------------------
/packages/direction-links/src/sass/_print.scss:
--------------------------------------------------------------------------------
1 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
2 | // direction-links module
3 | // Use direction links to link up and down within the DOM or back to a parent page.
4 | //
5 | // Content:
6 | // - print styles
7 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
8 |
9 |
10 | @media print {
11 | .au-direction-link {
12 | color: #000 !important;
13 | }
14 |
15 | .au-direction-link__arrow--right:after {
16 | content: '→' !important;
17 | }
18 |
19 | .au-direction-link__arrow--left:before {
20 | content: '←' !important;
21 | }
22 |
23 | .au-direction-link__arrow--up:after {
24 | content: '↑' !important;
25 | }
26 |
27 | .au-direction-link__arrow--down:after {
28 | content: '↓' !important;
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/packages/direction-links/tests/react/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["@babel/preset-react", "@babel/preset-env"]
3 | }
--------------------------------------------------------------------------------
/packages/direction-links/tests/react/index.html:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | Test: direction-links
20 |
21 |
24 |
25 |
26 |
27 |
28 |
29 |
32 |
33 | ← back to the module index
34 |
35 |
React test: direction-links
36 |
37 |
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/packages/direction-links/tests/react/webpack.config.js:
--------------------------------------------------------------------------------
1 | const path = require( 'path' );
2 |
3 | module.exports = {
4 | entry: './index.js',
5 | mode: 'development',
6 | output: {
7 | filename: './bundle.js',
8 | path: path.resolve( __dirname )
9 | },
10 | module: {
11 | rules: [
12 | {
13 | test: /\.js$/,
14 | exclude: /node_modules/,
15 | use: 'babel-loader',
16 | },
17 | ],
18 | },
19 | };
20 |
--------------------------------------------------------------------------------
/packages/direction-links/tests/site/test.scss:
--------------------------------------------------------------------------------
1 | //dependencies
2 | @import '../../src/sass/_dependencies.scss';
3 |
4 | //testing includes
5 | // @import '../../../body/src/sass/_module.scss';
6 |
7 | //styling all test files
8 | @import '../../../../.templates/test-assets/_style.scss';
9 |
10 | .testing {
11 | border: 3px dashed hotpink;
12 | }
13 |
--------------------------------------------------------------------------------
/packages/footer/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017 Commonwealth of Australia
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/packages/footer/src/sass/_dependencies.scss:
--------------------------------------------------------------------------------
1 | //dependencies
2 | @import '../../../core/src/sass/_module.scss';
3 |
4 | //this module
5 | @import '_module.scss';
6 |
--------------------------------------------------------------------------------
/packages/footer/src/sass/_globals.scss:
--------------------------------------------------------------------------------
1 | /*! [replace-name] v[replace-version] */
2 |
3 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
4 | // footer module globals
5 | // Footers help users who reach the bottom of a page without finding what they want.
6 | //
7 | // Content:
8 | // - Sass versioning
9 | // - Global variables: none so far
10 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
11 |
12 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
13 | // SASS VERSIONING
14 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
15 | $name: "[replace-name]";
16 | $version: "[replace-version]";
17 | $dependencies: (
18 | [replace-dependencies]
19 | );
20 |
21 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
22 | // GLOBAL VARIABLES
23 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
24 |
25 | // Boy it sure is quiet here.
26 |
--------------------------------------------------------------------------------
/packages/footer/src/sass/_print.scss:
--------------------------------------------------------------------------------
1 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
2 | // footer module
3 | // Footers help users who reach the bottom of a page without finding what they want.
4 | //
5 | // Content:
6 | // - print styles
7 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
8 |
9 |
10 | @media print {
11 | .au-footer {
12 | color: #000 !important;
13 | background: #fff !important;
14 | border-color: #000 !important;
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/packages/footer/tests/react/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["@babel/preset-react", "@babel/preset-env"]
3 | }
--------------------------------------------------------------------------------
/packages/footer/tests/react/index.html:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | Test: footer
20 |
21 |
24 |
25 |
26 |
27 |
28 |
29 |
32 |
33 | ← back to the module index
34 |
35 |
React test: footer
36 |
37 |
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/packages/footer/tests/react/webpack.config.js:
--------------------------------------------------------------------------------
1 | const path = require( 'path' );
2 |
3 | module.exports = {
4 | entry: './index.js',
5 | mode: 'development',
6 | output: {
7 | filename: './bundle.js',
8 | path: path.resolve( __dirname )
9 | },
10 | module: {
11 | rules: [
12 | {
13 | test: /\.js$/,
14 | exclude: /node_modules/,
15 | use: 'babel-loader',
16 | },
17 | ],
18 | },
19 | };
20 |
--------------------------------------------------------------------------------
/packages/footer/tests/site/test.scss:
--------------------------------------------------------------------------------
1 | //dependencies
2 | @import '../../src/sass/_dependencies.scss';
3 |
4 | //testing includes
5 | @import '../../../body/src/sass/_module.scss';
6 | @import '../../../grid-12/src/sass/_module.scss';
7 | @import '../../../link-list/src/sass/_module.scss';
8 | @import '../../../headings/src/sass/_module.scss';
9 | @import '../../../responsive-media/src/sass/_module.scss';
10 |
11 | //styling all test files
12 | @import '../../../../.templates/test-assets/_style.scss';
13 |
14 | .testing {
15 | border: 3px dashed hotpink;
16 | }
17 |
--------------------------------------------------------------------------------
/packages/form/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2018 Commonwealth of Australia
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/packages/form/src/sass/_dependencies.scss:
--------------------------------------------------------------------------------
1 | //dependencies
2 | @import '../../../core/src/sass/_module.scss';
3 |
4 | //this module
5 | @import '_module.scss';
6 |
--------------------------------------------------------------------------------
/packages/form/src/sass/_globals.scss:
--------------------------------------------------------------------------------
1 | /*! [replace-name] v[replace-version] */
2 |
3 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
4 | // form module globals
5 | //
6 | //
7 | // Content:
8 | // - Sass versioning
9 | // - Global variables: none so far
10 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
11 |
12 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
13 | // SASS VERSIONING
14 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
15 | $name: "[replace-name]";
16 | $version: "[replace-version]";
17 | $dependencies: (
18 | [replace-dependencies]
19 | );
20 |
21 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
22 | // GLOBAL VARIABLES
23 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
24 |
25 | // Boy it sure is quiet here.
26 |
--------------------------------------------------------------------------------
/packages/form/src/sass/_print.scss:
--------------------------------------------------------------------------------
1 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
2 | // form module
3 | //
4 | //
5 | // Content:
6 | // - print styles
7 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
8 |
9 |
10 | @media print {
11 | }
12 |
--------------------------------------------------------------------------------
/packages/form/tests/react/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["@babel/preset-react", "@babel/preset-env"]
3 | }
--------------------------------------------------------------------------------
/packages/form/tests/react/index.html:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | Test: Form
20 |
21 |
24 |
25 |
26 |
27 |
28 |
29 |
32 |
33 | ← back to the module index
34 |
35 |
React test: Form
36 |
37 |
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/packages/form/tests/react/webpack.config.js:
--------------------------------------------------------------------------------
1 | const path = require( 'path' );
2 |
3 | module.exports = {
4 | entry: './index.js',
5 | mode: 'development',
6 | output: {
7 | filename: './bundle.js',
8 | path: path.resolve( __dirname )
9 | },
10 | module: {
11 | rules: [
12 | {
13 | test: /\.js$/,
14 | exclude: /node_modules/,
15 | use: {
16 | loader: 'babel-loader',
17 | options: {
18 | presets: ['@babel/preset-env', '@babel/preset-react']
19 | }
20 | }
21 | },
22 | {
23 | test: /\.(css)$/,
24 | use: 'css-loader'
25 | }
26 | ],
27 | },
28 | };
--------------------------------------------------------------------------------
/packages/form/tests/site/test.scss:
--------------------------------------------------------------------------------
1 | //dependencies
2 | @import '../../src/sass/_dependencies.scss';
3 |
4 | //testing includes
5 | @import '../../../body/src/sass/_module.scss';
6 | @import '../../../control-input/src/sass/_module.scss';
7 | @import '../../../grid-12/src/sass/_module.scss';
8 | @import '../../../headings/src/sass/_module.scss';
9 | @import '../../../select/src/sass/_module.scss';
10 | @import '../../../text-inputs/src/sass/_module.scss';
11 |
12 | //styling all test files
13 | @import '../../../../.templates/test-assets/_style.scss';
14 |
--------------------------------------------------------------------------------
/packages/grid-12/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017 Commonwealth of Australia
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/packages/grid-12/src/sass/_dependencies.scss:
--------------------------------------------------------------------------------
1 |
2 | @import '../../../core/src/sass/_module.scss';
3 |
4 | //this module
5 | @import '_module.scss';
6 |
--------------------------------------------------------------------------------
/packages/grid-12/src/sass/_print.scss:
--------------------------------------------------------------------------------
1 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
2 | // grid-12 module
3 | // Implementation of the Bootstrap 3 grid.
4 | //
5 | // Content:
6 | // - print styles
7 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
8 |
9 |
10 | @media print {
11 | }
12 |
--------------------------------------------------------------------------------
/packages/grid-12/tests/site/test.scss:
--------------------------------------------------------------------------------
1 | //dependencies
2 | @import '../../src/sass/_dependencies.scss';
3 |
4 | //testing includes
5 | // @import '../../../body/src/sass/_module.scss';
6 |
7 | //styling all test files
8 | @import '../../../../.templates/test-assets/_style.scss';
9 |
10 |
11 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
12 | // Grid boxes
13 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
14 | .grids {
15 | padding-top: 10px;
16 | padding-bottom: 10px;
17 | background-color: rgba(rebeccapurple, 0.2);
18 | text-align: center;
19 |
20 | > span {
21 | display: block;
22 | background-color: rgba(rebeccapurple, 0.7);
23 | }
24 | }
25 |
26 | // Same here.
27 | h1 {
28 | @include AU-space( margin-left, 0.5unit );
29 | }
30 |
31 | .test-link { //have to to make it look awesome again
32 | @include AU-space( margin-left, 0.5unit );
33 | }
34 |
--------------------------------------------------------------------------------
/packages/header/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017 Commonwealth of Australia
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/packages/header/src/sass/_dependencies.scss:
--------------------------------------------------------------------------------
1 | //dependencies
2 | @import '../../../core/src/sass/_module.scss';
3 | @import '../../../grid-12/src/sass/_module.scss';
4 |
5 | //this module
6 | @import '_module.scss';
7 |
--------------------------------------------------------------------------------
/packages/header/src/sass/_globals.scss:
--------------------------------------------------------------------------------
1 | /*! [replace-name] v[replace-version] */
2 |
3 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
4 | // header module globals
5 | // Headers provide a consistent start to pages.
6 | //
7 | // Content:
8 | // - Sass versioning
9 | // - Global variables: none so far
10 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
11 |
12 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
13 | // SASS VERSIONING
14 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
15 | $name: "[replace-name]";
16 | $version: "[replace-version]";
17 | $dependencies: (
18 | [replace-dependencies]
19 | );
20 |
21 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
22 | // GLOBAL VARIABLES
23 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
24 |
25 | $AU-logo-width: 12unit !default;
26 | $AU-logo-width-md: 16unit !default;
27 |
--------------------------------------------------------------------------------
/packages/header/src/sass/_print.scss:
--------------------------------------------------------------------------------
1 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
2 | // header module
3 | // Headers provide a consistent start to pages.
4 | //
5 | // Content:
6 | // - print styles
7 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
8 |
9 |
10 | @media print {
11 | .au-header {
12 | background: #fff !important;
13 |
14 | a img {
15 | border: 0 !important;
16 | }
17 | }
18 |
19 | .au-header,
20 | .au-header__brand,
21 | .au-header__subline {
22 | color: #000 !important;
23 | }
24 |
25 | .au-header__brand-image {
26 | display: none !important;
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/packages/header/tests/react/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["@babel/preset-react", "@babel/preset-env"]
3 | }
--------------------------------------------------------------------------------
/packages/header/tests/react/index.html:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | Test: header
20 |
21 |
24 |
25 |
26 |
27 |
28 |
29 |
32 |
33 | ← back to the module index
34 |
35 |
React test: header
36 |
37 |
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/packages/header/tests/react/webpack.config.js:
--------------------------------------------------------------------------------
1 | const path = require( 'path' );
2 |
3 | module.exports = {
4 | entry: './index.js',
5 | mode: 'development',
6 | output: {
7 | filename: './bundle.js',
8 | path: path.resolve( __dirname )
9 | },
10 | module: {
11 | rules: [
12 | {
13 | test: /\.js$/,
14 | exclude: /node_modules/,
15 | use: 'babel-loader',
16 | },
17 | ],
18 | },
19 | };
20 |
--------------------------------------------------------------------------------
/packages/header/tests/site/test.scss:
--------------------------------------------------------------------------------
1 | //dependencies
2 | @import '../../src/sass/_dependencies.scss';
3 |
4 | //testing includes
5 | @import '../../../body/src/sass/_module.scss';
6 |
7 | //styling all test files
8 | @import '../../../../.templates/test-assets/_style.scss';
9 |
10 | .testing {
11 | border: 3px dashed hotpink;
12 | }
13 |
--------------------------------------------------------------------------------
/packages/headings/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017 Commonwealth of Australia
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/packages/headings/src/sass/_dependencies.scss:
--------------------------------------------------------------------------------
1 | //dependencies
2 | @import '../../../core/src/sass/_module.scss';
3 |
4 | //this module
5 | @import '_module.scss';
6 |
--------------------------------------------------------------------------------
/packages/headings/src/sass/_globals.scss:
--------------------------------------------------------------------------------
1 | /*! [replace-name] v[replace-version] */
2 |
3 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
4 | // headings module globals
5 | // Class styles for display headings.
6 | //
7 | // Content:
8 | // - Sass versioning
9 | // - Global variables: none so far
10 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
11 |
12 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
13 | // SASS VERSIONING
14 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
15 | $name: "[replace-name]";
16 | $version: "[replace-version]";
17 | $dependencies: (
18 | [replace-dependencies]
19 | );
20 |
21 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
22 | // GLOBAL VARIABLES
23 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
24 |
25 | // Boy it sure is quiet here.
26 |
--------------------------------------------------------------------------------
/packages/headings/src/sass/_print.scss:
--------------------------------------------------------------------------------
1 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
2 | // headings module
3 | // Class styles for display headings.
4 | //
5 | // Content:
6 | // - print styles
7 | //--------------------------------------------------------------------------------------------------------------------------------------------------------------
8 |
9 |
10 | @media print {
11 | }
12 |
--------------------------------------------------------------------------------
/packages/headings/tests/react/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["@babel/preset-react", "@babel/preset-env"]
3 | }
--------------------------------------------------------------------------------
/packages/headings/tests/react/index.html:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | Test: headings
20 |
21 |
24 |
25 |
26 |
27 |
28 |
29 |
32 |
33 | ← back to the module index
34 |
35 |