@qld-gov-au/qgds-bootstrap5 2.0.6 → 2.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.esbuild/plugins/qgds-plugin-build-log.js +2 -2
- package/.esbuild/plugins/qgds-plugin-copy-assets.js +0 -3
- package/.storybook/README.md +10 -0
- package/.storybook/{main.js → main.mjs} +4 -5
- package/.storybook/modes.js +3 -12
- package/.storybook/preview.js +13 -10
- package/dist/assets/components/bs5/head/head.hbs +1 -1
- package/dist/assets/css/qld.bootstrap.css +1 -1
- package/dist/assets/css/qld.bootstrap.css.map +2 -2
- package/dist/assets/css/qld.bootstrap.legacy.css +1 -1
- package/dist/assets/css/qld.bootstrap.legacy.css.map +2 -2
- package/dist/assets/js/handlebars.init.min.js +1 -1
- package/dist/assets/js/handlebars.partials.js +2398 -136
- package/dist/assets/js/handlebars.partials.js.map +7 -0
- package/dist/assets/node/handlebars.init.min.js +1 -1
- package/dist/components/bs5/head/head.hbs +1 -1
- package/dist/package.json +25 -27
- package/dist/sample-data/correctincorrect/correctincorrect.data.json +1 -0
- package/dist/sample-data/tabs/tabs.data.json +1 -2
- package/dist/sample-data/typography/typography.data.json +1 -0
- package/esbuild.js +16 -4
- package/package.json +25 -27
- package/pom.xml +3 -3
- package/src/components/bs5/accordion/Accordion.mdx +1 -1
- package/src/components/bs5/accordion/accordion.stories.js +17 -22
- package/src/components/bs5/backToTop/backToTop.mdx +1 -1
- package/src/components/bs5/banner/Banner.mdx +1 -1
- package/src/components/bs5/blockquote/Blockquote.mdx +1 -1
- package/src/components/bs5/blockquote/manifest.json +1 -0
- package/src/components/bs5/breadcrumbs/Breadcrumbs.mdx +1 -1
- package/src/components/bs5/breadcrumbs/breadcrumbs.stories.js +19 -10
- package/src/components/bs5/breadcrumbs/manifest.json +1 -0
- package/src/components/bs5/breadcumbsWrapper/manifest.json +1 -0
- package/src/components/bs5/button/Button.mdx +1 -1
- package/src/components/bs5/button/manifest.json +1 -0
- package/src/components/bs5/callToAction/callToAction.mdx +1 -1
- package/src/components/bs5/callToAction/callToAction.stories.js +15 -50
- package/src/components/bs5/callout/Callout.mdx +1 -1
- package/src/components/bs5/callout/callout.stories.js +7 -26
- package/src/components/bs5/callout/manifest.json +1 -0
- package/src/components/bs5/card/Card.mdx +1 -1
- package/src/components/bs5/card/manifest.json +1 -0
- package/src/components/bs5/contentFooter/manifest.json +1 -0
- package/src/components/bs5/contentFooterWrapper/manifest.json +1 -0
- package/src/components/bs5/contentWrapper/manifest.json +1 -0
- package/src/components/bs5/correctincorrect/correctincorrect.data.json +1 -0
- package/src/components/bs5/correctincorrect/manifest.json +1 -0
- package/src/components/bs5/dateinput/Dateinput.stories.js +23 -31
- package/src/components/bs5/dateinput/manifest.json +1 -0
- package/src/components/bs5/directionLinks/DirectionLinks.mdx +1 -1
- package/src/components/bs5/directionLinks/directionLinks.stories.js +14 -12
- package/src/components/bs5/footer/Footer.mdx +1 -1
- package/src/components/bs5/formcheck/manifest.json +1 -0
- package/src/components/bs5/formcheck/stories/checkbox/Checkbox.mdx +1 -1
- package/src/components/bs5/formcheck/stories/checkbox/checkbox.stories.js +44 -87
- package/src/components/bs5/formcheck/stories/radio/Radio.mdx +1 -1
- package/src/components/bs5/formcheck/stories/radio/radio.stories.js +9 -36
- package/src/components/bs5/fullPageWrapper/manifest.json +1 -0
- package/src/components/bs5/globalAlert/GlobalAlert.mdx +1 -1
- package/src/components/bs5/globalAlert/globalAlert.test.js +3 -3
- package/src/components/bs5/globalAlert/manifest.json +1 -0
- package/src/components/bs5/head/manifest.json +1 -0
- package/src/components/bs5/header/Header.mdx +1 -1
- package/src/components/bs5/header/header.stories.js +1 -30
- package/src/components/bs5/header/manifest.json +1 -0
- package/src/components/bs5/icons/Icons.mdx +1 -1
- package/src/components/bs5/icons/manifest.json +1 -0
- package/src/components/bs5/icons/mdx/_IconsSizes.mdx +1 -1
- package/src/components/bs5/image/Image.mdx +1 -1
- package/src/components/bs5/inpageAlert/InpageAlert.mdx +1 -1
- package/src/components/bs5/inpageAlert/inpageAlert.stories.js +7 -23
- package/src/components/bs5/inpageAlert/manifest.json +1 -0
- package/src/components/bs5/inpagenav/Inpagenav.mdx +1 -1
- package/src/components/bs5/inpagenav/inpagenav.stories.js +4 -6
- package/src/components/bs5/inpagenav/manifest.json +1 -0
- package/src/components/bs5/link/link.mdx +1 -1
- package/src/components/bs5/link/link.stories.js +4 -6
- package/src/components/bs5/linkColumns/linkColumns.mdx +1 -1
- package/src/components/bs5/logo/Logo.mdx +1 -1
- package/src/components/bs5/mainContainerWrapper/manifest.json +1 -0
- package/src/components/bs5/metaDcTerms/manifest.json +1 -0
- package/src/components/bs5/metaOpenGraph/manifest.json +1 -0
- package/src/components/bs5/modal/Modal.mdx +1 -1
- package/src/components/bs5/modal/manifest.json +1 -0
- package/src/components/bs5/pagination/Pagination.mdx +1 -1
- package/src/components/bs5/pagination/manifest.json +1 -0
- package/src/components/bs5/pagination/pagination.stories.js +12 -21
- package/src/components/bs5/promotionalPanel/PromotionalPanel.mdx +1 -1
- package/src/components/bs5/quickexit/manifest.json +1 -0
- package/src/components/bs5/searchInput/SearchInput.mdx +1 -1
- package/src/components/bs5/searchInput/manifest.json +1 -0
- package/src/components/bs5/searchInput/searchInput.stories.js +10 -12
- package/src/components/bs5/select/manifest.json +1 -0
- package/src/components/bs5/sidenav/Sidenav.mdx +1 -1
- package/src/components/bs5/sidenav/manifest.json +1 -0
- package/src/components/bs5/sidenav/sidenav.stories.js +4 -7
- package/src/components/bs5/sidenavWrapper/manifest.json +1 -0
- package/src/components/bs5/skiplinks/SkipLinks.mdx +1 -1
- package/src/components/bs5/spinner/manifest.json +1 -0
- package/src/components/bs5/table/Table.mdx +1 -1
- package/src/components/bs5/table/manifest.json +1 -0
- package/src/components/bs5/tabs/Tabs.mdx +1 -1
- package/src/components/bs5/tabs/tabs.data.json +1 -2
- package/src/components/bs5/tabs/tabs.stories.js +38 -215
- package/src/components/bs5/tag/Tag.mdx +1 -1
- package/src/components/bs5/tag/manifest.json +1 -0
- package/src/components/bs5/textarea/manifest.json +1 -0
- package/src/components/bs5/textbox/manifest.json +1 -0
- package/src/components/bs5/typography/Typography.mdx +1 -1
- package/src/components/bs5/typography/manifest.json +1 -0
- package/src/components/bs5/typography/typography.data.json +1 -0
- package/src/components/bs5/typography/typography.stories.js +6 -24
- package/src/components/bs5/video/Video.mdx +1 -1
- package/src/components/bs5/video/manifest.json +1 -0
- package/src/components/bs5/video/video.stories.js +6 -24
- package/src/css/qld-print.scss +426 -304
- package/src/stories/Introduction.mdx +1 -1
- package/vite.config.js +17 -0
- package/.eslintrc.cjs +0 -52
- package/dist/assets/js/bootstrap.js +0 -6312
- package/dist/assets/js/handlebars.helpers.js +0 -292
- package/dist/assets/js/handlebars.init.cjs +0 -6
- package/dist/assets/js/handlebars.init.js +0 -34
- package/dist/components/handlebars.helpers.js +0 -292
- package/dist/components/handlebars.init.cjs +0 -6
- package/dist/components/handlebars.init.js +0 -34
- package/dist/components/handlebars.partials.js +0 -136
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -163,6 +163,7 @@ export default {
|
|
|
163
163
|
docs: {
|
|
164
164
|
story: { height: "400px" },
|
|
165
165
|
},
|
|
166
|
+
backgrounds: { disable: true },
|
|
166
167
|
},
|
|
167
168
|
};
|
|
168
169
|
|
|
@@ -172,12 +173,6 @@ export const MasterBrand = {
|
|
|
172
173
|
...masterbrand_variant,
|
|
173
174
|
...menu_state,
|
|
174
175
|
},
|
|
175
|
-
parameters: {
|
|
176
|
-
backgrounds: {
|
|
177
|
-
default: "Light",
|
|
178
|
-
values: [{ name: "Light", value: "var(--qld-light-background)" }],
|
|
179
|
-
},
|
|
180
|
-
},
|
|
181
176
|
decorators: [
|
|
182
177
|
(Story) => {
|
|
183
178
|
return `
|
|
@@ -193,12 +188,6 @@ export const SubBrand = {
|
|
|
193
188
|
...subbrand_variant,
|
|
194
189
|
...menu_state,
|
|
195
190
|
},
|
|
196
|
-
parameters: {
|
|
197
|
-
backgrounds: {
|
|
198
|
-
default: "Light",
|
|
199
|
-
values: [{ name: "Light", value: "var(--qld-light-background)" }],
|
|
200
|
-
},
|
|
201
|
-
},
|
|
202
191
|
decorators: [
|
|
203
192
|
(Story) => {
|
|
204
193
|
return `
|
|
@@ -212,12 +201,6 @@ export const SubBrand = {
|
|
|
212
201
|
export const CoBrand = {
|
|
213
202
|
args: mergeArgs(alternative_palette, cobrand_variant, menu_state),
|
|
214
203
|
argTypes: arg_types,
|
|
215
|
-
parameters: {
|
|
216
|
-
backgrounds: {
|
|
217
|
-
default: "Light",
|
|
218
|
-
values: [{ name: "Light", value: "var(--qld-light-background)" }],
|
|
219
|
-
},
|
|
220
|
-
},
|
|
221
204
|
decorators: [
|
|
222
205
|
(Story, context) => {
|
|
223
206
|
const args = context.args;
|
|
@@ -249,12 +232,6 @@ export const CoBrand = {
|
|
|
249
232
|
export const EndorsedBrand = {
|
|
250
233
|
args: mergeArgs(sample_argtypes, endorsed_variant, menu_state),
|
|
251
234
|
argTypes: arg_types,
|
|
252
|
-
parameters: {
|
|
253
|
-
backgrounds: {
|
|
254
|
-
default: "Light",
|
|
255
|
-
values: [{ name: "Light", value: "var(--qld-light-background)" }],
|
|
256
|
-
},
|
|
257
|
-
},
|
|
258
235
|
decorators: [
|
|
259
236
|
(Story, context) => {
|
|
260
237
|
const args = context.args;
|
|
@@ -286,12 +263,6 @@ export const EndorsedBrand = {
|
|
|
286
263
|
export const StandaloneBrand = {
|
|
287
264
|
args: mergeArgs(sample_argtypes, standalone_variant, menu_state),
|
|
288
265
|
argTypes: arg_types,
|
|
289
|
-
parameters: {
|
|
290
|
-
backgrounds: {
|
|
291
|
-
default: "Light",
|
|
292
|
-
values: [{ name: "Light", value: "var(--qld-light-background)" }],
|
|
293
|
-
},
|
|
294
|
-
},
|
|
295
266
|
decorators: [
|
|
296
267
|
(Story, context) => {
|
|
297
268
|
const args = context.args;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -3,7 +3,7 @@ import defaultdata from "./inpageAlert.data.json";
|
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The Inpage Alert is also known as Page Alert or Alert
|
|
6
|
-
*
|
|
6
|
+
*
|
|
7
7
|
* Inpage alert accepts the following classes: <code>.alert-success</code>, <code>.alert-info</code>, <code>.alert-warning</code>, and <code>.alert-danger</code>
|
|
8
8
|
*/
|
|
9
9
|
|
|
@@ -32,7 +32,8 @@ export default {
|
|
|
32
32
|
render: (args) => {
|
|
33
33
|
return new InpageAlert({ ...defaultdata, ...args }).html;
|
|
34
34
|
},
|
|
35
|
-
|
|
35
|
+
globals: { backgrounds: { value: "default" } },
|
|
36
|
+
parameters: { backgrounds: { disable: false } },
|
|
36
37
|
argTypes: {
|
|
37
38
|
variantClass: {
|
|
38
39
|
name: "Classes",
|
|
@@ -46,12 +47,7 @@ export default {
|
|
|
46
47
|
"alert-error": "Error",
|
|
47
48
|
},
|
|
48
49
|
},
|
|
49
|
-
options: [
|
|
50
|
-
"alert-success",
|
|
51
|
-
"alert-info",
|
|
52
|
-
"alert-warning",
|
|
53
|
-
"alert-error",
|
|
54
|
-
],
|
|
50
|
+
options: ["alert-success", "alert-info", "alert-warning", "alert-error"],
|
|
55
51
|
},
|
|
56
52
|
alertType: {
|
|
57
53
|
name: "Alert Type",
|
|
@@ -59,15 +55,14 @@ export default {
|
|
|
59
55
|
},
|
|
60
56
|
headingTag: {
|
|
61
57
|
name: "Heading Tag",
|
|
62
|
-
description:
|
|
58
|
+
description:
|
|
59
|
+
"Heading tag for the In-page Alert component. Can be h2, h3, h4, h5 or h6.",
|
|
63
60
|
control: "select",
|
|
64
61
|
options: ["h2", "h3", "h4", "h5", "h6"],
|
|
65
62
|
},
|
|
66
63
|
},
|
|
67
|
-
|
|
68
64
|
};
|
|
69
65
|
|
|
70
|
-
|
|
71
66
|
/**
|
|
72
67
|
* Default In-page Alert component.
|
|
73
68
|
*/
|
|
@@ -76,23 +71,12 @@ export const Default = {
|
|
|
76
71
|
args: defaultdata,
|
|
77
72
|
};
|
|
78
73
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
74
|
/**
|
|
83
75
|
* In-page Alert when presented inside a <code>.dark</code> or <code>.dark-alt</code> container.
|
|
84
76
|
*/
|
|
85
77
|
|
|
86
|
-
|
|
87
78
|
export const Dark = {
|
|
88
|
-
|
|
89
|
-
backgrounds: {
|
|
90
|
-
default: 'Dark',
|
|
91
|
-
values: [
|
|
92
|
-
{ name: 'Dark', value: 'var(--qld-dark-background)' },
|
|
93
|
-
],
|
|
94
|
-
},
|
|
95
|
-
},
|
|
79
|
+
globals: { backgrounds: { value: "dark" } },
|
|
96
80
|
|
|
97
81
|
decorators: [
|
|
98
82
|
(Story) => {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -13,7 +13,9 @@ export default {
|
|
|
13
13
|
exclude: ["variantClass", "navitems"],
|
|
14
14
|
},
|
|
15
15
|
},
|
|
16
|
+
backgrounds: { disable: false },
|
|
16
17
|
},
|
|
18
|
+
globals: { backgrounds: { value: "default" } },
|
|
17
19
|
};
|
|
18
20
|
|
|
19
21
|
/**
|
|
@@ -21,6 +23,7 @@ export default {
|
|
|
21
23
|
*/
|
|
22
24
|
export const Default = {
|
|
23
25
|
args: defaultdata,
|
|
26
|
+
globals: { backgrounds: { value: "default" } },
|
|
24
27
|
decorators: [
|
|
25
28
|
(Story) => {
|
|
26
29
|
return `
|
|
@@ -43,12 +46,7 @@ export const Default = {
|
|
|
43
46
|
*/
|
|
44
47
|
export const Dark = {
|
|
45
48
|
args: defaultdata,
|
|
46
|
-
|
|
47
|
-
backgrounds: {
|
|
48
|
-
default: "Dark",
|
|
49
|
-
values: [{ name: "Dark", value: "var(--qld-dark-background)" }],
|
|
50
|
-
},
|
|
51
|
-
},
|
|
49
|
+
globals: { backgrounds: { value: "dark" } },
|
|
52
50
|
decorators: [
|
|
53
51
|
(Story) => {
|
|
54
52
|
return `
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -13,6 +13,7 @@ export default {
|
|
|
13
13
|
|
|
14
14
|
render: (args) => new Link(args).html,
|
|
15
15
|
// args: defaultdata,
|
|
16
|
+
globals: { backgrounds: { value: "default" } },
|
|
16
17
|
argTypes: {
|
|
17
18
|
url: {
|
|
18
19
|
description: "The URL that the link points to",
|
|
@@ -61,6 +62,7 @@ export default {
|
|
|
61
62
|
* @property {string} design.url - URL of the design parameter.
|
|
62
63
|
*/
|
|
63
64
|
parameters: {
|
|
65
|
+
backgrounds: { disable: false },
|
|
64
66
|
design: {
|
|
65
67
|
name: "QGDS Figma Reference",
|
|
66
68
|
type: "figma",
|
|
@@ -78,18 +80,14 @@ export const Default = {
|
|
|
78
80
|
args: {
|
|
79
81
|
...defaultdata.default,
|
|
80
82
|
},
|
|
83
|
+
globals: { backgrounds: { value: "default" } },
|
|
81
84
|
};
|
|
82
85
|
|
|
83
86
|
/**
|
|
84
87
|
* Link in 'Dark' colour theme.
|
|
85
88
|
*/
|
|
86
89
|
export const Dark = {
|
|
87
|
-
|
|
88
|
-
backgrounds: {
|
|
89
|
-
default: "Dark",
|
|
90
|
-
values: [{ name: "Dark", value: "var(--qld-dark-background)" }],
|
|
91
|
-
},
|
|
92
|
-
},
|
|
90
|
+
globals: { backgrounds: { value: "dark" } },
|
|
93
91
|
args: {
|
|
94
92
|
...defaultdata.default,
|
|
95
93
|
class: "dark",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -14,13 +14,14 @@ export default {
|
|
|
14
14
|
hideNoControlsWarning: true,
|
|
15
15
|
},
|
|
16
16
|
},
|
|
17
|
+
backgrounds: { disable: false },
|
|
17
18
|
},
|
|
19
|
+
globals: { backgrounds: { value: "default" } },
|
|
18
20
|
};
|
|
19
21
|
|
|
20
22
|
/**
|
|
21
23
|
* Pagination (Default)
|
|
22
24
|
*/
|
|
23
|
-
|
|
24
25
|
export const Default = {
|
|
25
26
|
args: defaultdata,
|
|
26
27
|
};
|
|
@@ -28,21 +29,18 @@ export const Default = {
|
|
|
28
29
|
/**
|
|
29
30
|
* Pagination when used inside a <code>.light</code> container
|
|
30
31
|
*/
|
|
31
|
-
|
|
32
32
|
export const Light = {
|
|
33
33
|
args: defaultdata,
|
|
34
|
-
|
|
35
|
-
parameters: {
|
|
34
|
+
globals: {
|
|
36
35
|
backgrounds: {
|
|
37
|
-
|
|
38
|
-
values: [{ name: "Light", value: "var(--qld-light-background)" }],
|
|
36
|
+
value: "light",
|
|
39
37
|
},
|
|
40
38
|
},
|
|
41
39
|
|
|
42
40
|
decorators: [
|
|
43
41
|
(Story) => {
|
|
44
42
|
return `
|
|
45
|
-
<div class="">
|
|
43
|
+
<div class="light">
|
|
46
44
|
${Story()}
|
|
47
45
|
</div>
|
|
48
46
|
`;
|
|
@@ -51,18 +49,15 @@ export const Light = {
|
|
|
51
49
|
};
|
|
52
50
|
|
|
53
51
|
/**
|
|
54
|
-
* Pagination when used inside a <code>.
|
|
52
|
+
* Pagination when used inside a <code>.alt</code> container
|
|
55
53
|
*/
|
|
56
54
|
|
|
57
55
|
export const LightAlternative = {
|
|
58
56
|
args: defaultdata,
|
|
59
57
|
|
|
60
|
-
|
|
58
|
+
globals: {
|
|
61
59
|
backgrounds: {
|
|
62
|
-
|
|
63
|
-
values: [
|
|
64
|
-
{ name: "Light Alternative", value: "var(--qld-light-alt-background)" },
|
|
65
|
-
],
|
|
60
|
+
value: "alt",
|
|
66
61
|
},
|
|
67
62
|
},
|
|
68
63
|
|
|
@@ -84,10 +79,9 @@ export const LightAlternative = {
|
|
|
84
79
|
export const Dark = {
|
|
85
80
|
args: defaultdata,
|
|
86
81
|
|
|
87
|
-
|
|
82
|
+
globals: {
|
|
88
83
|
backgrounds: {
|
|
89
|
-
|
|
90
|
-
values: [{ name: "Dark", value: "var(--qld-dark-background)" }],
|
|
84
|
+
value: "dark",
|
|
91
85
|
},
|
|
92
86
|
},
|
|
93
87
|
|
|
@@ -109,12 +103,9 @@ export const Dark = {
|
|
|
109
103
|
export const DarkAlternative = {
|
|
110
104
|
args: defaultdata,
|
|
111
105
|
|
|
112
|
-
|
|
106
|
+
globals: {
|
|
113
107
|
backgrounds: {
|
|
114
|
-
|
|
115
|
-
values: [
|
|
116
|
-
{ name: "Dark Alternative", value: "var(--qld-dark-alt-background)" },
|
|
117
|
-
],
|
|
108
|
+
value: "darkAlt",
|
|
118
109
|
},
|
|
119
110
|
},
|
|
120
111
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Canvas, Meta, Story, Source } from "@storybook/blocks";
|
|
1
|
+
import { Canvas, Meta, Story, Source } from "@storybook/addon-docs/blocks";
|
|
2
2
|
import * as promotionalPanelStories from "./promotionalPanel.stories";
|
|
3
3
|
import defaultdata from "./promotionalPanel.data.json";
|
|
4
4
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -17,6 +17,14 @@ export default {
|
|
|
17
17
|
},
|
|
18
18
|
story: { height: "400px" },
|
|
19
19
|
},
|
|
20
|
+
backgrounds: {
|
|
21
|
+
disable: false,
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
globals: {
|
|
25
|
+
backgrounds: {
|
|
26
|
+
value: "default",
|
|
27
|
+
},
|
|
20
28
|
},
|
|
21
29
|
};
|
|
22
30
|
|
|
@@ -48,12 +56,7 @@ export const Dark = {
|
|
|
48
56
|
args: {
|
|
49
57
|
...defaultdata,
|
|
50
58
|
},
|
|
51
|
-
|
|
52
|
-
backgrounds: {
|
|
53
|
-
default: "Dark",
|
|
54
|
-
values: [{ name: "Dark", value: "var(--qld-dark-background)" }],
|
|
55
|
-
},
|
|
56
|
-
},
|
|
59
|
+
globals: { backgrounds: { value: "dark" } },
|
|
57
60
|
decorators: [
|
|
58
61
|
(Story) => {
|
|
59
62
|
return `
|
|
@@ -72,12 +75,7 @@ export const Dark = {
|
|
|
72
75
|
*/
|
|
73
76
|
export const DarkFilled = {
|
|
74
77
|
args: { ...defaultdata, customClass: "is-filled" },
|
|
75
|
-
|
|
76
|
-
backgrounds: {
|
|
77
|
-
default: "Dark",
|
|
78
|
-
values: [{ name: "Dark", value: "var(--qld-dark-background)" }],
|
|
79
|
-
},
|
|
80
|
-
},
|
|
78
|
+
globals: { backgrounds: { value: "dark" } },
|
|
81
79
|
decorators: [
|
|
82
80
|
(Story) => {
|
|
83
81
|
return `
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -10,8 +10,9 @@ export default {
|
|
|
10
10
|
},
|
|
11
11
|
|
|
12
12
|
argTypes: {},
|
|
13
|
-
|
|
13
|
+
globals: { backgrounds: { value: "default" } },
|
|
14
14
|
parameters: {
|
|
15
|
+
backgrounds: { disable: false },
|
|
15
16
|
docs: {
|
|
16
17
|
controls: {
|
|
17
18
|
exclude: ["navlist", "navtitlelink"],
|
|
@@ -26,6 +27,7 @@ export default {
|
|
|
26
27
|
*/
|
|
27
28
|
export const Default = {
|
|
28
29
|
args: defaultdata,
|
|
30
|
+
globals: { backgrounds: { value: "default" } },
|
|
29
31
|
decorators: [
|
|
30
32
|
(Story) => {
|
|
31
33
|
return `
|
|
@@ -46,12 +48,7 @@ export const Default = {
|
|
|
46
48
|
*
|
|
47
49
|
*/
|
|
48
50
|
export const Dark = {
|
|
49
|
-
|
|
50
|
-
backgrounds: {
|
|
51
|
-
default: "Dark",
|
|
52
|
-
values: [{ name: "Dark", value: "var(--qld-dark-background)" }],
|
|
53
|
-
},
|
|
54
|
-
},
|
|
51
|
+
globals: { backgrounds: { value: "dark" } },
|
|
55
52
|
args: defaultdata,
|
|
56
53
|
decorators: [
|
|
57
54
|
(Story) => {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -28,8 +28,7 @@
|
|
|
28
28
|
{
|
|
29
29
|
"tab_text": "Tab label 4",
|
|
30
30
|
"title": "Section Heading Item 4",
|
|
31
|
-
"content": "<p>Lorem ipsum dolor sit amet consectetur. Viverra eu pulvinar a eu mauris ac at ultricies est. Tincidunt ultrices commodo vestibulum non netus. Mauris maecenas lacus hendrerit urna ultricies auctor. Sed tristique nascetur sapien condimentum adipiscing augue quisque eu. Facilisi ligula quam faucibus feugiat. Sapien at at eget malesuada senectus donec pellentesque pellentesque odio.</p>"
|
|
32
|
-
"disabled": true
|
|
31
|
+
"content": "<p>Lorem ipsum dolor sit amet consectetur. Viverra eu pulvinar a eu mauris ac at ultricies est. Tincidunt ultrices commodo vestibulum non netus. Mauris maecenas lacus hendrerit urna ultricies auctor. Sed tristique nascetur sapien condimentum adipiscing augue quisque eu. Facilisi ligula quam faucibus feugiat. Sapien at at eget malesuada senectus donec pellentesque pellentesque odio.</p>"
|
|
33
32
|
},
|
|
34
33
|
{
|
|
35
34
|
"tab_text": "Tab label 5",
|