@qld-gov-au/qgds-bootstrap5 2.0.0 → 2.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/dist/assets/components/bs5/accordion/accordion.hbs +3 -3
- package/dist/assets/components/bs5/banner/banner.hbs +0 -7
- package/dist/assets/components/bs5/head/head.hbs +1 -1
- package/dist/assets/components/bs5/quickexit/quickexit.hbs +1 -1
- package/dist/assets/css/qld.bootstrap.css +1 -1
- package/dist/assets/css/qld.bootstrap.css.map +3 -3
- package/dist/assets/js/handlebars.init.min.js +5 -12
- package/dist/assets/js/handlebars.init.min.js.map +2 -2
- package/dist/assets/node/handlebars.init.min.js +32 -4
- package/dist/assets/node/handlebars.init.min.js.map +2 -2
- package/dist/components/bs5/accordion/accordion.hbs +3 -3
- package/dist/components/bs5/banner/banner.hbs +0 -7
- package/dist/components/bs5/head/head.hbs +1 -1
- package/dist/components/bs5/quickexit/quickexit.hbs +1 -1
- package/dist/package.json +1 -1
- package/dist/sample-data/accordion/accordion.data.json +24 -23
- package/package.json +1 -1
- package/src/components/bs5/accordion/Accordion.mdx +1 -3
- package/src/components/bs5/accordion/__snapshots__/accordion.test.js.snap +3 -3
- package/src/components/bs5/accordion/accordion.data.json +24 -23
- package/src/components/bs5/accordion/accordion.hbs +3 -3
- package/src/components/bs5/accordion/accordion.scss +19 -9
- package/src/components/bs5/accordion/accordion.stories.js +8 -0
- package/src/components/bs5/accordion/accordion.test.js +5 -0
- package/src/components/bs5/backToTop/backToTop.mdx +4 -5
- package/src/components/bs5/banner/Banner.mdx +1 -3
- package/src/components/bs5/banner/banner.hbs +0 -7
- package/src/components/bs5/blockquote/Blockquote.mdx +4 -5
- package/src/components/bs5/breadcrumbs/Breadcrumbs.mdx +1 -3
- package/src/components/bs5/button/Button.mdx +4 -5
- package/src/components/bs5/button/button.scss +9 -1
- package/src/components/bs5/callToAction/callToAction.mdx +1 -3
- package/src/components/bs5/callout/Callout.mdx +4 -5
- package/src/components/bs5/card/Card.mdx +1 -3
- package/src/components/bs5/card/card.scss +1 -25
- package/src/components/bs5/directionLinks/DirectionLinks.mdx +4 -5
- package/src/components/bs5/footer/Footer.mdx +1 -3
- package/src/components/bs5/footer/footer.scss +4 -11
- package/src/components/bs5/formcheck/stories/checkbox/Checkbox.mdx +7 -6
- package/src/components/bs5/formcheck/stories/radio/Radio.mdx +7 -6
- package/src/components/bs5/globalAlert/GlobalAlert.mdx +1 -3
- package/src/components/bs5/globalAlert/globalAlert.scss +6 -0
- package/src/components/bs5/header/Header.mdx +1 -3
- package/src/components/bs5/header/header.scss +6 -2
- package/src/components/bs5/icons/Icons.mdx +167 -7
- package/src/components/bs5/icons/_icons.sizes.scss +9 -0
- package/src/components/bs5/icons/icons.scss +23 -71
- package/src/components/bs5/icons/icons.stories.js +34 -57
- package/src/components/bs5/icons/mdx/_IconsSizes.mdx +112 -0
- package/src/components/bs5/icons/stories/storyFlexContainer.html +18 -0
- package/src/components/bs5/icons/stories/storyInlineWithText.html +18 -0
- package/src/components/bs5/icons/stories/storySizes.html +89 -0
- package/src/components/bs5/image/Image.mdx +1 -4
- package/src/components/bs5/inpageAlert/InpageAlert.mdx +1 -3
- package/src/components/bs5/inpagenav/Inpagenav.mdx +4 -5
- package/src/components/bs5/link/link.mdx +1 -3
- package/src/components/bs5/link/link.scss +2 -15
- package/src/components/bs5/linkColumns/linkColumns.mdx +1 -3
- package/src/components/bs5/logo/Logo.mdx +1 -3
- package/src/components/bs5/pageLayout/ThemeShowcase.stories.js +249 -0
- package/src/components/bs5/pagination/Pagination.mdx +4 -5
- package/src/components/bs5/promotionalPanel/PromotionalPanel.mdx +1 -3
- package/src/components/bs5/quickexit/quickexit.hbs +1 -1
- package/src/components/bs5/quickexit/quickexit.scss +23 -10
- package/src/components/bs5/searchInput/SearchInput.mdx +5 -5
- package/src/components/bs5/sidenav/Sidenav.mdx +4 -5
- package/src/components/bs5/skiplinks/SkipLinks.mdx +1 -3
- package/src/components/bs5/table/Table.mdx +4 -5
- package/src/components/bs5/tabs/Tabs.mdx +4 -5
- package/src/components/bs5/tabs/tabs.scss +22 -1
- package/src/components/bs5/tag/Tag.mdx +4 -5
- package/src/components/bs5/typography/Typography.mdx +4 -5
- package/src/components/bs5/video/Video.mdx +4 -5
- package/src/css/functions/_index.scss +1 -0
- package/src/css/functions/in-list.scss +5 -0
- package/src/css/main.scss +4 -3
- package/src/css/mixins/_index.scss +3 -0
- package/src/css/mixins/make-icon.scss +87 -0
- package/src/css/qld-theme.scss +73 -31
- package/src/css/qld-type.scss +26 -140
- package/src/css/qld-utilities.scss +29 -14
- package/src/css/qld-variables.scss +4 -4
- package/src/css/variables/_index.scss +1 -0
- package/src/css/variables/type.scss +58 -0
- package/src/components/bs5/icons/story-icon-sizing.html +0 -131
- package/src/components/bs5/icons/story-icon-usage.html +0 -89
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { Sizes } from "../icons.stories";
|
|
2
|
+
import { Story } from "@storybook/blocks";
|
|
3
|
+
|
|
4
|
+
## Sizes
|
|
5
|
+
|
|
6
|
+
We have 6 preset sizes for icons ranging from extra small (xs) to extra
|
|
7
|
+
extra large (xxl) and a dedicated feature size for large or detailed icons.
|
|
8
|
+
Feature icons use a background shade to help make it stand out from other
|
|
9
|
+
elements on the page.
|
|
10
|
+
|
|
11
|
+
This size range allows for flexibility and adaptability in various design
|
|
12
|
+
contexts while maintaining visual harmony and balance. These predefined
|
|
13
|
+
sizes ensure that icons are proportionate and legible, enhancing their
|
|
14
|
+
effectiveness and the overall aesthetic of the site.
|
|
15
|
+
|
|
16
|
+
<Story of={Sizes} />
|
|
17
|
+
|
|
18
|
+
#### Usage
|
|
19
|
+
|
|
20
|
+
Combine base class <code>qld-icon</code> with specific icon name and size
|
|
21
|
+
class as listed here to set the icon size.
|
|
22
|
+
|
|
23
|
+
<table class="table table-responsive">
|
|
24
|
+
<thead class="table-light">
|
|
25
|
+
<tr>
|
|
26
|
+
<th scope="col">Class</th>
|
|
27
|
+
<th scope="col">REM size</th>
|
|
28
|
+
<th scope="col">Pixel size</th>
|
|
29
|
+
</tr>
|
|
30
|
+
</thead>
|
|
31
|
+
<tbody>
|
|
32
|
+
<tr>
|
|
33
|
+
<td>
|
|
34
|
+
<code>.qld-icon-xs</code>
|
|
35
|
+
</td>
|
|
36
|
+
<td>
|
|
37
|
+
<pre>1rem</pre>
|
|
38
|
+
</td>
|
|
39
|
+
<td>
|
|
40
|
+
<pre>16x16</pre>
|
|
41
|
+
</td>
|
|
42
|
+
</tr>
|
|
43
|
+
<tr>
|
|
44
|
+
<td>
|
|
45
|
+
<code>.qld-icon-sm</code>
|
|
46
|
+
</td>
|
|
47
|
+
<td>
|
|
48
|
+
<pre>1.25rem</pre>
|
|
49
|
+
</td>
|
|
50
|
+
<td>
|
|
51
|
+
<pre>20x20</pre>
|
|
52
|
+
</td>
|
|
53
|
+
</tr>
|
|
54
|
+
<tr>
|
|
55
|
+
<td>
|
|
56
|
+
<code>.qld-icon-md</code>
|
|
57
|
+
</td>
|
|
58
|
+
<td>
|
|
59
|
+
<pre>1.5rem</pre>
|
|
60
|
+
</td>
|
|
61
|
+
<td>
|
|
62
|
+
<pre>24x24</pre>
|
|
63
|
+
</td>
|
|
64
|
+
</tr>
|
|
65
|
+
<tr>
|
|
66
|
+
<td>
|
|
67
|
+
<code>.qld-icon-lg</code>
|
|
68
|
+
</td>
|
|
69
|
+
<td>
|
|
70
|
+
<pre>2rem</pre>
|
|
71
|
+
</td>
|
|
72
|
+
<td>
|
|
73
|
+
<pre>32x32</pre>
|
|
74
|
+
</td>
|
|
75
|
+
</tr>
|
|
76
|
+
<tr>
|
|
77
|
+
<td>
|
|
78
|
+
<code>.qld-icon-xl</code>
|
|
79
|
+
</td>
|
|
80
|
+
<td>
|
|
81
|
+
<pre>2.5rem</pre>
|
|
82
|
+
</td>
|
|
83
|
+
<td>
|
|
84
|
+
<pre>40x40</pre>
|
|
85
|
+
</td>
|
|
86
|
+
</tr>
|
|
87
|
+
<tr>
|
|
88
|
+
<td>
|
|
89
|
+
<code>.qld-icon-xxl</code>
|
|
90
|
+
</td>
|
|
91
|
+
<td>
|
|
92
|
+
<pre>3rem</pre>
|
|
93
|
+
</td>
|
|
94
|
+
<td>
|
|
95
|
+
<pre>48x48</pre>
|
|
96
|
+
</td>
|
|
97
|
+
</tr>
|
|
98
|
+
</tbody>
|
|
99
|
+
</table>
|
|
100
|
+
|
|
101
|
+
<h5 class="mt-5">Example code:</h5>
|
|
102
|
+
|
|
103
|
+
{/* prettier-ignore-start */}
|
|
104
|
+
```html
|
|
105
|
+
<span class="qld-icon qld-icon-xxl qld-icon-design" aria-hidden="true"></span>
|
|
106
|
+
<span class="qld-icon qld-icon-xl qld-icon-design" aria-hidden="true"></span>
|
|
107
|
+
<span class="qld-icon qld-icon-lg qld-icon-design" aria-hidden="true"></span>
|
|
108
|
+
<span class="qld-icon qld-icon-md qld-icon-design" aria-hidden="true"></span>
|
|
109
|
+
<span class="qld-icon qld-icon-sm qld-icon-design" aria-hidden="true"></span>
|
|
110
|
+
<span class="qld-icon qld-icon-xs qld-icon-design" aria-hidden="true"></span>
|
|
111
|
+
```
|
|
112
|
+
{/* prettier-ignore-end */}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<div class="d-flex align-items-center">
|
|
2
|
+
<span class="qld-icon qld-icon-xxl qld-icon-alert-information"></span>Icon XXL
|
|
3
|
+
</div>
|
|
4
|
+
<div class="d-flex align-items-center">
|
|
5
|
+
<span class="qld-icon qld-icon-xl qld-icon-alert-information"></span>Icon XL
|
|
6
|
+
</div>
|
|
7
|
+
<div class="d-flex align-items-center">
|
|
8
|
+
<span class="qld-icon qld-icon-lg qld-icon-alert-information"></span>Icon LG
|
|
9
|
+
</div>
|
|
10
|
+
<div class="d-flex align-items-center">
|
|
11
|
+
<span class="qld-icon qld-icon-md qld-icon-alert-information"></span>Icon XXL
|
|
12
|
+
</div>
|
|
13
|
+
<div class="d-flex align-items-center">
|
|
14
|
+
<span class="qld-icon qld-icon-sm qld-icon-alert-information"></span>Icon XXL
|
|
15
|
+
</div>
|
|
16
|
+
<div class="d-flex align-items-center">
|
|
17
|
+
<span class="qld-icon qld-icon-xs qld-icon-alert-information"></span>Icon XXL
|
|
18
|
+
</div>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<p>
|
|
2
|
+
<span
|
|
3
|
+
class="qld-icon is-inline qld-icon-xxl qld-icon-alert-information"
|
|
4
|
+
></span
|
|
5
|
+
>Lorem ipsum dolor sit amet,
|
|
6
|
+
<span class="qld-icon is-inline qld-icon-xl qld-icon-alert-information"></span
|
|
7
|
+
>consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et
|
|
8
|
+
dolore magna aliqua.
|
|
9
|
+
<span class="qld-icon is-inline qld-icon-lg qld-icon-alert-information"></span
|
|
10
|
+
>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
|
|
11
|
+
aliquip ex ea commodo consequat.
|
|
12
|
+
<span class="qld-icon is-inline qld-icon-md qld-icon-alert-information"></span
|
|
13
|
+
>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore
|
|
14
|
+
eu fugiat nulla pariatur.
|
|
15
|
+
<span class="qld-icon is-inline qld-icon-xs qld-icon-alert-information"></span
|
|
16
|
+
>Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia
|
|
17
|
+
deserunt mollit anim id est laborum.
|
|
18
|
+
</p>
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
<div class="row align-items-end text-start">
|
|
2
|
+
<div class="col d-flex flex-column flex-grow-0 align-items-start">
|
|
3
|
+
<span
|
|
4
|
+
class="qld-icon qld-icon-xxl qld-icon-design"
|
|
5
|
+
aria-hidden="true"
|
|
6
|
+
></span>
|
|
7
|
+
<pre><strong class="mt-2">XXL:</strong> 64x64</pre>
|
|
8
|
+
</div>
|
|
9
|
+
<div class="col d-flex flex-column flex-grow-0 align-items-start">
|
|
10
|
+
<span
|
|
11
|
+
class="qld-icon qld-icon-xl qld-icon-design"
|
|
12
|
+
aria-hidden="true"
|
|
13
|
+
></span>
|
|
14
|
+
<pre class="mt-2"><strong>XL:</strong> 48x48</pre>
|
|
15
|
+
</div>
|
|
16
|
+
<div class="col d-flex flex-column flex-grow-0 align-items-start">
|
|
17
|
+
<span
|
|
18
|
+
class="qld-icon qld-icon-lg qld-icon-design"
|
|
19
|
+
aria-hidden="true"
|
|
20
|
+
></span>
|
|
21
|
+
<pre class="mt-2"><strong>LG:</strong> 32x32</pre>
|
|
22
|
+
</div>
|
|
23
|
+
<div class="col d-flex flex-column flex-grow-0 align-items-start">
|
|
24
|
+
<span
|
|
25
|
+
class="qld-icon qld-icon-md qld-icon-design"
|
|
26
|
+
aria-hidden="true"
|
|
27
|
+
></span>
|
|
28
|
+
<pre class="mt-2"><strong>MD:</strong> 24x24</pre>
|
|
29
|
+
</div>
|
|
30
|
+
<div class="col d-flex flex-column flex-grow-0 align-items-start">
|
|
31
|
+
<span
|
|
32
|
+
class="qld-icon qld-icon-sm qld-icon-design"
|
|
33
|
+
aria-hidden="true"
|
|
34
|
+
></span>
|
|
35
|
+
<pre class="mt-2"><strong>SM:</strong> 20x20</pre>
|
|
36
|
+
</div>
|
|
37
|
+
<div class="col d-flex flex-column flex-grow-0 align-items-start">
|
|
38
|
+
<span
|
|
39
|
+
class="qld-icon qld-icon-xs qld-icon-design"
|
|
40
|
+
aria-hidden="true"
|
|
41
|
+
></span>
|
|
42
|
+
<pre class="mt-2"><strong>XS:</strong> 16x16</pre>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
<div class="row align-items-end text-start">
|
|
47
|
+
<div class="col d-flex flex-column flex-grow-0 align-items-start">
|
|
48
|
+
<span
|
|
49
|
+
class="qld-icon qld-icon-xxl qld-icon-alert-cancel"
|
|
50
|
+
aria-hidden="true"
|
|
51
|
+
></span>
|
|
52
|
+
<pre class="mt-2"><strong>XXL:</strong> 64x64</pre>
|
|
53
|
+
</div>
|
|
54
|
+
<div class="col d-flex flex-column flex-grow-0 align-items-start">
|
|
55
|
+
<span
|
|
56
|
+
class="qld-icon qld-icon-xl qld-icon-alert-cancel"
|
|
57
|
+
aria-hidden="true"
|
|
58
|
+
></span>
|
|
59
|
+
<pre class="mt-2"><strong>XL:</strong> 48x48</pre>
|
|
60
|
+
</div>
|
|
61
|
+
<div class="col d-flex flex-column flex-grow-0 align-items-start">
|
|
62
|
+
<span
|
|
63
|
+
class="qld-icon qld-icon-lg qld-icon-alert-cancel"
|
|
64
|
+
aria-hidden="true"
|
|
65
|
+
></span>
|
|
66
|
+
<pre class="mt-2"><strong>LG:</strong> 32x32</pre>
|
|
67
|
+
</div>
|
|
68
|
+
<div class="col d-flex flex-column flex-grow-0 align-items-start">
|
|
69
|
+
<span
|
|
70
|
+
class="qld-icon qld-icon-md qld-icon-alert-cancel"
|
|
71
|
+
aria-hidden="true"
|
|
72
|
+
></span>
|
|
73
|
+
<pre class="mt-2"><strong>MD:</strong> 24x24</pre>
|
|
74
|
+
</div>
|
|
75
|
+
<div class="col d-flex flex-column flex-grow-0 align-items-start">
|
|
76
|
+
<span
|
|
77
|
+
class="qld-icon qld-icon-sm qld-icon-alert-cancel"
|
|
78
|
+
aria-hidden="true"
|
|
79
|
+
></span>
|
|
80
|
+
<pre class="mt-2"><strong>SM:</strong> 20x20</pre>
|
|
81
|
+
</div>
|
|
82
|
+
<div class="col d-flex flex-column flex-grow-0 align-items-start">
|
|
83
|
+
<span
|
|
84
|
+
class="qld-icon qld-icon-xs qld-icon-alert-cancel"
|
|
85
|
+
aria-hidden="true"
|
|
86
|
+
></span>
|
|
87
|
+
<pre class="mt-2"><strong>XS:</strong> 16x16</pre>
|
|
88
|
+
</div>
|
|
89
|
+
</div>
|
|
@@ -5,10 +5,7 @@ import * as ImageStories from "./image.stories";
|
|
|
5
5
|
|
|
6
6
|
# Image
|
|
7
7
|
|
|
8
|
-
<Canvas
|
|
9
|
-
{/* Explicitly reference a specific story to avoid ambiguity */}
|
|
10
|
-
<Story of={ImageStories.FixedRatio} />
|
|
11
|
-
</Canvas>
|
|
8
|
+
<Canvas of={ImageStories.DefaultImage} />
|
|
12
9
|
|
|
13
10
|
## Design resources
|
|
14
11
|
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { Canvas, Meta, Story } from "@storybook/blocks"
|
|
2
|
-
import * as InpagenavStories from "./inpagenav.stories"
|
|
1
|
+
import { Canvas, Meta, Story } from "@storybook/blocks";
|
|
2
|
+
import * as InpagenavStories from "./inpagenav.stories";
|
|
3
3
|
|
|
4
4
|
<Meta of={InpagenavStories} />
|
|
5
5
|
|
|
6
6
|
# Pagination
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
</Canvas>
|
|
7
|
+
|
|
8
|
+
<Canvas of={InpagenavStories.Default} />
|
|
10
9
|
|
|
11
10
|
## Design resources
|
|
12
11
|
|
|
@@ -2,20 +2,12 @@
|
|
|
2
2
|
text-underline-offset: var(--qld-link-underline-offset);
|
|
3
3
|
text-decoration-thickness: var(--qld-link-underline-thickness);
|
|
4
4
|
|
|
5
|
-
--#{$prefix}icon-background-color: var(--#{$prefix}light-action-secondary);
|
|
6
|
-
--#{$prefix}icon-background-color-hover: var(
|
|
7
|
-
--#{$prefix}light-action-secondary-hover
|
|
8
|
-
);
|
|
9
5
|
--#{$prefix}link-color: var(--#{$prefix}light-link);
|
|
10
6
|
--#{$prefix}link-text-decoration-color: var(--#{$prefix}light-link);
|
|
11
7
|
--#{$prefix}link-gap: 0.5rem;
|
|
12
8
|
|
|
13
9
|
.dark &,
|
|
14
10
|
.dark-alt & {
|
|
15
|
-
--#{$prefix}icon-background-color: var(--#{$prefix}dark-action-secondary);
|
|
16
|
-
--#{$prefix}icon-background-color-hover: var(
|
|
17
|
-
--#{$prefix}dark-action-secondary-hover
|
|
18
|
-
);
|
|
19
11
|
--#{$prefix}link-color: var(--#{$prefix}dark-link);
|
|
20
12
|
--#{$prefix}link-text-decoration-color: var(--#{$prefix}dark-link);
|
|
21
13
|
&:visited {
|
|
@@ -38,13 +30,12 @@
|
|
|
38
30
|
width: fit-content;
|
|
39
31
|
|
|
40
32
|
&:hover {
|
|
33
|
+
--#{$prefix}icon-color: var(--#{$prefix}action-icon-hover-color);
|
|
34
|
+
|
|
41
35
|
text-decoration-thickness: var(--qld-link-underline-thickness-hover);
|
|
42
36
|
text-decoration-color: var(
|
|
43
37
|
--#{$prefix}color-default-color-light-underline-default
|
|
44
38
|
);
|
|
45
|
-
.qld-icon {
|
|
46
|
-
background-color: var(--#{$prefix}icon-background-color-hover);
|
|
47
|
-
}
|
|
48
39
|
}
|
|
49
40
|
|
|
50
41
|
&:visited {
|
|
@@ -61,10 +52,6 @@
|
|
|
61
52
|
outline-offset: 2px;
|
|
62
53
|
border-radius: 4px;
|
|
63
54
|
}
|
|
64
|
-
|
|
65
|
-
.qld-icon {
|
|
66
|
-
background-color: var(--#{$prefix}icon-background-color);
|
|
67
|
-
}
|
|
68
55
|
}
|
|
69
56
|
|
|
70
57
|
.link-list {
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
title: "5. Templates/Theme Showcase",
|
|
3
|
+
render: (args) => {
|
|
4
|
+
return args.content;
|
|
5
|
+
},
|
|
6
|
+
argTypes: {
|
|
7
|
+
themeClass: {
|
|
8
|
+
control: { type: 'select' },
|
|
9
|
+
options: ['', 'default', 'light', 'alt', 'dark', 'dark-alt'],
|
|
10
|
+
description: 'Theme class to apply to the content area',
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
parameters: {
|
|
14
|
+
layout: "padded",
|
|
15
|
+
docs: {
|
|
16
|
+
description: {
|
|
17
|
+
story: 'This showcase demonstrates the theme palette classes (.default, .light, .alt, .dark, .dark-alt) that automatically apply color and background-color styling.',
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Default Theme
|
|
25
|
+
* The default theme uses the base color scheme without additional background styling
|
|
26
|
+
*/
|
|
27
|
+
export const DefaultTheme = {
|
|
28
|
+
args: {
|
|
29
|
+
content: `
|
|
30
|
+
<div class="default p-4 mb-4 border">
|
|
31
|
+
<h2>Default Theme</h2>
|
|
32
|
+
<p>This demonstrates the default theme palette. It provides a clean, neutral appearance suitable for most content.</p>
|
|
33
|
+
<a href="#" class="btn btn-primary me-2">Primary Button</a>
|
|
34
|
+
<a href="#" class="btn btn-secondary">Secondary Button</a>
|
|
35
|
+
|
|
36
|
+
<h3 class="mt-4">Background Utilities</h3>
|
|
37
|
+
<div class="row g-3">
|
|
38
|
+
<div class="col-md-4">
|
|
39
|
+
<div class="bg-default p-3 rounded">
|
|
40
|
+
<strong>.bg-default</strong><br>
|
|
41
|
+
Background using default theme color
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
<div class="col-md-4">
|
|
45
|
+
<div class="bg-light p-3 rounded">
|
|
46
|
+
<strong>.bg-light</strong><br>
|
|
47
|
+
Background using light theme color
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
<div class="col-md-4">
|
|
51
|
+
<div class="bg-light-alt p-3 rounded">
|
|
52
|
+
<strong>.bg-light-alt</strong><br>
|
|
53
|
+
Background using light alt color
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
`,
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Light Theme
|
|
64
|
+
* The light theme provides a bright, clean appearance
|
|
65
|
+
*/
|
|
66
|
+
export const LightTheme = {
|
|
67
|
+
args: {
|
|
68
|
+
content: `
|
|
69
|
+
<div class="light p-4 mb-4 border">
|
|
70
|
+
<h2>Light Theme</h2>
|
|
71
|
+
<p>This demonstrates the light theme palette. It provides enhanced readability with a light background.</p>
|
|
72
|
+
<a href="#" class="btn btn-primary me-2">Primary Button</a>
|
|
73
|
+
<a href="#" class="btn btn-secondary">Secondary Button</a>
|
|
74
|
+
|
|
75
|
+
<h3 class="mt-4">Theme Features</h3>
|
|
76
|
+
<ul>
|
|
77
|
+
<li>Automatic color and background-color application</li>
|
|
78
|
+
<li>Optimized contrast ratios</li>
|
|
79
|
+
<li>Consistent styling across components</li>
|
|
80
|
+
</ul>
|
|
81
|
+
</div>
|
|
82
|
+
`,
|
|
83
|
+
},
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Alt Theme
|
|
88
|
+
* The alt theme provides an alternative light styling
|
|
89
|
+
*/
|
|
90
|
+
export const AltTheme = {
|
|
91
|
+
args: {
|
|
92
|
+
content: `
|
|
93
|
+
<div class="alt p-4 mb-4 border">
|
|
94
|
+
<h2>Alt Theme</h2>
|
|
95
|
+
<p>This demonstrates the alt theme palette. It provides a subtle alternative to the standard light theme.</p>
|
|
96
|
+
<a href="#" class="btn btn-primary me-2">Primary Button</a>
|
|
97
|
+
<a href="#" class="btn btn-secondary">Secondary Button</a>
|
|
98
|
+
|
|
99
|
+
<blockquote class="blockquote mt-4">
|
|
100
|
+
<p>"The alt theme provides visual variety while maintaining accessibility standards."</p>
|
|
101
|
+
<footer class="blockquote-footer">QLD Design System</footer>
|
|
102
|
+
</blockquote>
|
|
103
|
+
</div>
|
|
104
|
+
`,
|
|
105
|
+
},
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Dark Theme
|
|
110
|
+
* The dark theme provides a bold, high-contrast appearance
|
|
111
|
+
*/
|
|
112
|
+
export const DarkTheme = {
|
|
113
|
+
args: {
|
|
114
|
+
content: `
|
|
115
|
+
<div class="dark p-4 mb-4 border">
|
|
116
|
+
<h2>Dark Theme</h2>
|
|
117
|
+
<p>This demonstrates the dark theme palette. It provides excellent contrast and a modern appearance.</p>
|
|
118
|
+
<a href="#" class="btn btn-primary me-2">Primary Button</a>
|
|
119
|
+
<a href="#" class="btn btn-secondary">Secondary Button</a>
|
|
120
|
+
|
|
121
|
+
<div class="alert alert-info mt-4">
|
|
122
|
+
<h4 class="alert-heading">Dark Theme Benefits</h4>
|
|
123
|
+
<p class="mb-0">Reduces eye strain in low-light conditions and provides a sophisticated appearance.</p>
|
|
124
|
+
</div>
|
|
125
|
+
</div>
|
|
126
|
+
`,
|
|
127
|
+
},
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Dark Alt Theme
|
|
132
|
+
* The dark alt theme provides an alternative dark styling
|
|
133
|
+
*/
|
|
134
|
+
export const DarkAltTheme = {
|
|
135
|
+
args: {
|
|
136
|
+
content: `
|
|
137
|
+
<div class="dark-alt p-4 mb-4 border">
|
|
138
|
+
<h2>Dark Alt Theme</h2>
|
|
139
|
+
<p>This demonstrates the dark alt theme palette. It provides a variation of the dark theme with different background styling.</p>
|
|
140
|
+
<a href="#" class="btn btn-primary me-2">Primary Button</a>
|
|
141
|
+
<a href="#" class="btn btn-secondary">Secondary Button</a>
|
|
142
|
+
|
|
143
|
+
<h3 class="mt-4">Dark Utility Examples</h3>
|
|
144
|
+
<div class="row g-3">
|
|
145
|
+
<div class="col-md-6">
|
|
146
|
+
<div class="bg-dark p-3 rounded text-white">
|
|
147
|
+
<strong>.bg-dark</strong><br>
|
|
148
|
+
Dark background utility
|
|
149
|
+
</div>
|
|
150
|
+
</div>
|
|
151
|
+
<div class="col-md-6">
|
|
152
|
+
<div class="bg-dark-alt p-3 rounded text-white">
|
|
153
|
+
<strong>.bg-dark-alt</strong><br>
|
|
154
|
+
Dark alt background utility
|
|
155
|
+
</div>
|
|
156
|
+
</div>
|
|
157
|
+
</div>
|
|
158
|
+
</div>
|
|
159
|
+
`,
|
|
160
|
+
},
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Theme Comparison
|
|
165
|
+
* Shows all themes in a single view for comparison
|
|
166
|
+
*/
|
|
167
|
+
export const ThemeComparison = {
|
|
168
|
+
args: {
|
|
169
|
+
content: `
|
|
170
|
+
<div class="mb-4">
|
|
171
|
+
<h2>Theme Palette Comparison</h2>
|
|
172
|
+
<p>Compare all available theme classes side by side. Each theme automatically applies appropriate color and background-color styling.</p>
|
|
173
|
+
</div>
|
|
174
|
+
|
|
175
|
+
<div class="row g-4">
|
|
176
|
+
<div class="col-lg-6">
|
|
177
|
+
<div class="default p-3 border">
|
|
178
|
+
<h3>Default Theme</h3>
|
|
179
|
+
<p>Base theme with neutral styling.</p>
|
|
180
|
+
<a href="#" class="btn btn-sm btn-primary">Button</a>
|
|
181
|
+
</div>
|
|
182
|
+
</div>
|
|
183
|
+
|
|
184
|
+
<div class="col-lg-6">
|
|
185
|
+
<div class="light p-3 border">
|
|
186
|
+
<h3>Light Theme</h3>
|
|
187
|
+
<p>Clean, bright appearance.</p>
|
|
188
|
+
<a href="#" class="btn btn-sm btn-primary">Button</a>
|
|
189
|
+
</div>
|
|
190
|
+
</div>
|
|
191
|
+
|
|
192
|
+
<div class="col-lg-6">
|
|
193
|
+
<div class="alt p-3 border">
|
|
194
|
+
<h3>Alt Theme</h3>
|
|
195
|
+
<p>Alternative light styling.</p>
|
|
196
|
+
<a href="#" class="btn btn-sm btn-primary">Button</a>
|
|
197
|
+
</div>
|
|
198
|
+
</div>
|
|
199
|
+
|
|
200
|
+
<div class="col-lg-6">
|
|
201
|
+
<div class="dark p-3 border">
|
|
202
|
+
<h3>Dark Theme</h3>
|
|
203
|
+
<p>High contrast, modern look.</p>
|
|
204
|
+
<a href="#" class="btn btn-sm btn-primary">Button</a>
|
|
205
|
+
</div>
|
|
206
|
+
</div>
|
|
207
|
+
|
|
208
|
+
<div class="col-12">
|
|
209
|
+
<div class="dark-alt p-3 border">
|
|
210
|
+
<h3>Dark Alt Theme</h3>
|
|
211
|
+
<p>Alternative dark styling with different background treatment.</p>
|
|
212
|
+
<a href="#" class="btn btn-sm btn-primary">Button</a>
|
|
213
|
+
</div>
|
|
214
|
+
</div>
|
|
215
|
+
</div>
|
|
216
|
+
|
|
217
|
+
<div class="mt-5">
|
|
218
|
+
<h3>Background Utility Classes</h3>
|
|
219
|
+
<p>These utilities can be used independently of theme classes for specific background styling:</p>
|
|
220
|
+
<div class="row g-3">
|
|
221
|
+
<div class="col-md-3">
|
|
222
|
+
<div class="bg-default p-2 text-center rounded">.bg-default</div>
|
|
223
|
+
</div>
|
|
224
|
+
<div class="col-md-3">
|
|
225
|
+
<div class="bg-light p-2 text-center rounded">.bg-light</div>
|
|
226
|
+
</div>
|
|
227
|
+
<div class="col-md-3">
|
|
228
|
+
<div class="bg-light-alt p-2 text-center rounded">.bg-light-alt</div>
|
|
229
|
+
</div>
|
|
230
|
+
<div class="col-md-3">
|
|
231
|
+
<div class="bg-dark p-2 text-center rounded text-white">.bg-dark</div>
|
|
232
|
+
</div>
|
|
233
|
+
<div class="col-md-3">
|
|
234
|
+
<div class="bg-dark-alt p-2 text-center rounded text-white">.bg-dark-alt</div>
|
|
235
|
+
</div>
|
|
236
|
+
<div class="col-md-3">
|
|
237
|
+
<div class="bg-default-shade p-2 text-center rounded">.bg-default-shade</div>
|
|
238
|
+
</div>
|
|
239
|
+
<div class="col-md-3">
|
|
240
|
+
<div class="bg-light-shade p-2 text-center rounded">.bg-light-shade</div>
|
|
241
|
+
</div>
|
|
242
|
+
<div class="col-md-3">
|
|
243
|
+
<div class="bg-light-alt-shade p-2 text-center rounded">.bg-light-alt-shade</div>
|
|
244
|
+
</div>
|
|
245
|
+
</div>
|
|
246
|
+
</div>
|
|
247
|
+
`,
|
|
248
|
+
},
|
|
249
|
+
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { Canvas, Meta, Story } from "@storybook/blocks"
|
|
2
|
-
import * as PaginationStories from "./pagination.stories"
|
|
1
|
+
import { Canvas, Meta, Story } from "@storybook/blocks";
|
|
2
|
+
import * as PaginationStories from "./pagination.stories";
|
|
3
3
|
|
|
4
4
|
<Meta of={PaginationStories} />
|
|
5
5
|
|
|
6
6
|
# Pagination
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
</Canvas>
|
|
7
|
+
|
|
8
|
+
<Canvas of={PaginationStories.Default} />
|
|
10
9
|
|
|
11
10
|
## Design resources
|
|
12
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<div class="qld-quick-exit-inner container-fluid {{#if hasIconInfo}} has-icon-info{{/if}}{{#if hasTooltip}} has-tooltip{{/if}}">
|
|
6
6
|
<div class="qg-quick-exit__tips">
|
|
7
7
|
{{#if hasIconInfo}}
|
|
8
|
-
<span class="
|
|
8
|
+
<span class="icon-info"></span>
|
|
9
9
|
{{/if}}
|
|
10
10
|
<p class="qld-quick-exit-tip-title">{{{exitMessage}}}</p>
|
|
11
11
|
<a href="{{browseSafelyOnlineURL}}" class="qld-quick-exit-tip-link">
|