@scania/tegel 0.0.1-beta.6 → 0.0.1-beta.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/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/tegel.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/tegel.js +1 -1
- package/package.json +4 -4
- package/dist/collection/components/accordion/accordion.stories.js +0 -91
- package/dist/collection/components/badge/badge.stories.js +0 -101
- package/dist/collection/components/banner/banner.stories.js +0 -93
- package/dist/collection/components/block/block.stories.js +0 -46
- package/dist/collection/components/breadcrumb/breadcrumb.stories.js +0 -26
- package/dist/collection/components/button/button-native.stories.js +0 -183
- package/dist/collection/components/button/button-webcomponent.stories.js +0 -182
- package/dist/collection/components/card/card.stories.js +0 -181
- package/dist/collection/components/checkbox/checkbox.stories.js +0 -54
- package/dist/collection/components/chips/chips.stories.js +0 -124
- package/dist/collection/components/data-table/native-table.stories.js +0 -182
- package/dist/collection/components/data-table/table-component-basic.stories.js +0 -163
- package/dist/collection/components/data-table/table-component-batch-actions.stories.js +0 -129
- package/dist/collection/components/data-table/table-component-bodydata.stories.js +0 -58
- package/dist/collection/components/data-table/table-component-custom-width.stories.js +0 -198
- package/dist/collection/components/data-table/table-component-event-listeners.stories.js +0 -153
- package/dist/collection/components/data-table/table-component-expandable-rows.stories.js +0 -137
- package/dist/collection/components/data-table/table-component-filtering.stories.js +0 -139
- package/dist/collection/components/data-table/table-component-multiselect.stories.js +0 -160
- package/dist/collection/components/data-table/table-component-pagination.stories.js +0 -129
- package/dist/collection/components/data-table/table-component-sorting.stories.js +0 -107
- package/dist/collection/components/datetime/datetime.stories.js +0 -149
- package/dist/collection/components/divider/divider.stories.js +0 -116
- package/dist/collection/components/dropdown/dropdown-filter/dropdown-filter.stories.js +0 -130
- package/dist/collection/components/dropdown/dropdown-native.stories.js +0 -90
- package/dist/collection/components/dropdown/dropdown-wc-default.stories.js +0 -151
- package/dist/collection/components/dropdown/dropdown-wc-multiselect.stories.js +0 -146
- package/dist/collection/components/footer/footer.stories.js +0 -100
- package/dist/collection/components/header/header-all.stories.js +0 -217
- package/dist/collection/components/header/header-default.stories.js +0 -47
- package/dist/collection/components/header/header-inline.stories.js +0 -113
- package/dist/collection/components/header/header-search.stories.js +0 -263
- package/dist/collection/components/header/header-toolbar.stories.js +0 -204
- package/dist/collection/components/icon/icon-font.stories.js +0 -57
- package/dist/collection/components/icon/icon-web-component.stories.js +0 -51
- package/dist/collection/components/link/link.stories.js +0 -45
- package/dist/collection/components/message/message.stories.js +0 -117
- package/dist/collection/components/modal/modal-native.stories.js +0 -121
- package/dist/collection/components/modal/modal-webcomponent.stories.js +0 -78
- package/dist/collection/components/popover-canvas/popover-canvas.stories.js +0 -87
- package/dist/collection/components/popover-menu/popover-menu-icons.stories.js +0 -132
- package/dist/collection/components/popover-menu/popover-menu.stories.js +0 -109
- package/dist/collection/components/radio-button/radio-button.stories.js +0 -68
- package/dist/collection/components/side-menu/side-menu.stories.js +0 -182
- package/dist/collection/components/slider/slider.stories.js +0 -251
- package/dist/collection/components/spinner/spinner.stories.js +0 -59
- package/dist/collection/components/stepper/stepper.stories.js +0 -139
- package/dist/collection/components/tabs/inline-tabs-default/inline-tabs.stories.js +0 -65
- package/dist/collection/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.stories.js +0 -43
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.stories.js +0 -32
- package/dist/collection/components/textarea/textarea.stories.js +0 -149
- package/dist/collection/components/textfield/textfield.stories.js +0 -222
- package/dist/collection/components/toast/toast.stories.js +0 -119
- package/dist/collection/components/toggle/toggle.stories.js +0 -62
- package/dist/collection/components/tooltip/tooltip.stories.js +0 -113
- package/dist/collection/components/utility/colour/background-color.stories.js +0 -96
- package/dist/collection/components/utility/colour/text-color.stories.js +0 -94
- package/dist/collection/foundations-stories/colour/colour-brand.stories.js +0 -38
- package/dist/collection/foundations-stories/colour/colour-scales.stories.js +0 -71
- package/dist/collection/foundations-stories/colour/colour-semantic.stories.js +0 -40
- package/dist/collection/foundations-stories/grid/grid.stories.js +0 -386
- package/dist/collection/foundations-stories/spacing/spacing-element.stories.js +0 -100
- package/dist/collection/foundations-stories/spacing/spacing-layout.stories.js +0 -94
- package/dist/collection/foundations-stories/typography/typography-body.stories.js +0 -16
- package/dist/collection/foundations-stories/typography/typography-detail.stories.js +0 -17
- package/dist/collection/foundations-stories/typography/typography-headline.stories.js +0 -39
- package/dist/collection/foundations-stories/typography/typography-paragraph.stories.js +0 -12
- package/dist/types/components/accordion/accordion.stories.d.ts +0 -77
- package/dist/types/components/badge/badge.stories.d.ts +0 -66
- package/dist/types/components/banner/banner.stories.d.ts +0 -68
- package/dist/types/components/block/block.stories.d.ts +0 -31
- package/dist/types/components/breadcrumb/breadcrumb.stories.d.ts +0 -12
- package/dist/types/components/button/button-native.stories.d.ts +0 -144
- package/dist/types/components/button/button-webcomponent.stories.d.ts +0 -143
- package/dist/types/components/card/card.stories.d.ts +0 -114
- package/dist/types/components/checkbox/checkbox.stories.d.ts +0 -39
- package/dist/types/components/chips/chips.stories.d.ts +0 -81
- package/dist/types/components/data-table/native-table.stories.d.ts +0 -147
- package/dist/types/components/data-table/table-component-basic.stories.d.ts +0 -100
- package/dist/types/components/data-table/table-component-batch-actions.stories.d.ts +0 -98
- package/dist/types/components/data-table/table-component-bodydata.stories.d.ts +0 -38
- package/dist/types/components/data-table/table-component-custom-width.stories.d.ts +0 -147
- package/dist/types/components/data-table/table-component-event-listeners.stories.d.ts +0 -87
- package/dist/types/components/data-table/table-component-expandable-rows.stories.d.ts +0 -87
- package/dist/types/components/data-table/table-component-filtering.stories.d.ts +0 -100
- package/dist/types/components/data-table/table-component-multiselect.stories.d.ts +0 -100
- package/dist/types/components/data-table/table-component-pagination.stories.d.ts +0 -100
- package/dist/types/components/data-table/table-component-sorting.stories.d.ts +0 -79
- package/dist/types/components/datetime/datetime.stories.d.ts +0 -80
- package/dist/types/components/divider/divider.stories.d.ts +0 -72
- package/dist/types/components/dropdown/dropdown-filter/dropdown-filter.stories.d.ts +0 -73
- package/dist/types/components/dropdown/dropdown-native.stories.d.ts +0 -57
- package/dist/types/components/dropdown/dropdown-wc-default.stories.d.ts +0 -115
- package/dist/types/components/dropdown/dropdown-wc-multiselect.stories.d.ts +0 -115
- package/dist/types/components/footer/footer.stories.d.ts +0 -23
- package/dist/types/components/header/header-all.stories.d.ts +0 -29
- package/dist/types/components/header/header-default.stories.d.ts +0 -29
- package/dist/types/components/header/header-inline.stories.d.ts +0 -29
- package/dist/types/components/header/header-search.stories.d.ts +0 -29
- package/dist/types/components/header/header-toolbar.stories.d.ts +0 -29
- package/dist/types/components/icon/icon-font.stories.d.ts +0 -38
- package/dist/types/components/icon/icon-web-component.stories.d.ts +0 -38
- package/dist/types/components/link/link.stories.d.ts +0 -33
- package/dist/types/components/message/message.stories.d.ts +0 -67
- package/dist/types/components/modal/modal-native.stories.d.ts +0 -51
- package/dist/types/components/modal/modal-webcomponent.stories.d.ts +0 -44
- package/dist/types/components/popover-canvas/popover-canvas.stories.d.ts +0 -25
- package/dist/types/components/popover-menu/popover-menu-icons.stories.d.ts +0 -27
- package/dist/types/components/popover-menu/popover-menu.stories.d.ts +0 -27
- package/dist/types/components/radio-button/radio-button.stories.d.ts +0 -41
- package/dist/types/components/side-menu/side-menu.stories.d.ts +0 -42
- package/dist/types/components/slider/slider.stories.d.ts +0 -156
- package/dist/types/components/spinner/spinner.stories.d.ts +0 -37
- package/dist/types/components/stepper/stepper.stories.d.ts +0 -56
- package/dist/types/components/tabs/inline-tabs-default/inline-tabs.stories.d.ts +0 -41
- package/dist/types/components/tabs/inline-tabs-fullbleed/inline-tabs-fullbleed.stories.d.ts +0 -25
- package/dist/types/components/tabs/navigation-tabs/navigation-tabs.stories.d.ts +0 -13
- package/dist/types/components/textarea/textarea.stories.d.ts +0 -111
- package/dist/types/components/textfield/textfield.stories.d.ts +0 -176
- package/dist/types/components/toast/toast.stories.d.ts +0 -58
- package/dist/types/components/toggle/toggle.stories.d.ts +0 -42
- package/dist/types/components/tooltip/tooltip.stories.d.ts +0 -54
- package/dist/types/components/utility/colour/background-color.stories.d.ts +0 -58
- package/dist/types/components/utility/colour/text-color.stories.d.ts +0 -58
- package/dist/types/foundations-stories/colour/colour-brand.stories.d.ts +0 -13
- package/dist/types/foundations-stories/colour/colour-scales.stories.d.ts +0 -13
- package/dist/types/foundations-stories/colour/colour-semantic.stories.d.ts +0 -13
- package/dist/types/foundations-stories/grid/grid.stories.d.ts +0 -35
- package/dist/types/foundations-stories/spacing/spacing-element.stories.d.ts +0 -8
- package/dist/types/foundations-stories/spacing/spacing-layout.stories.d.ts +0 -8
- package/dist/types/foundations-stories/typography/typography-body.stories.d.ts +0 -8
- package/dist/types/foundations-stories/typography/typography-detail.stories.d.ts +0 -8
- package/dist/types/foundations-stories/typography/typography-headline.stories.d.ts +0 -21
- package/dist/types/foundations-stories/typography/typography-paragraph.stories.d.ts +0 -8
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { formatHtmlPreview } from '../../../utils/utils';
|
|
2
|
-
export default {
|
|
3
|
-
title: 'Utilities/Colours',
|
|
4
|
-
parameters: {
|
|
5
|
-
layout: 'centered',
|
|
6
|
-
},
|
|
7
|
-
argTypes: {
|
|
8
|
-
backgroundColor: {
|
|
9
|
-
name: 'Background colour',
|
|
10
|
-
description: 'The colour of the text',
|
|
11
|
-
control: {
|
|
12
|
-
type: 'select',
|
|
13
|
-
},
|
|
14
|
-
options: { Red: 'red', Blue: 'blue', Grey: 'grey' },
|
|
15
|
-
},
|
|
16
|
-
greyScale: {
|
|
17
|
-
name: 'Scale',
|
|
18
|
-
description: 'The colour scale used.',
|
|
19
|
-
control: {
|
|
20
|
-
type: 'select',
|
|
21
|
-
},
|
|
22
|
-
options: [
|
|
23
|
-
'50',
|
|
24
|
-
'100',
|
|
25
|
-
'200',
|
|
26
|
-
'300',
|
|
27
|
-
'400',
|
|
28
|
-
'500',
|
|
29
|
-
'600',
|
|
30
|
-
'700',
|
|
31
|
-
'800',
|
|
32
|
-
'846',
|
|
33
|
-
'868',
|
|
34
|
-
'900',
|
|
35
|
-
'958',
|
|
36
|
-
],
|
|
37
|
-
if: { arg: 'backgroundColor', eq: 'grey' },
|
|
38
|
-
},
|
|
39
|
-
redScale: {
|
|
40
|
-
name: 'Scale',
|
|
41
|
-
description: 'The colour scale used.',
|
|
42
|
-
control: {
|
|
43
|
-
type: 'select',
|
|
44
|
-
},
|
|
45
|
-
options: ['50', '100', '200', '300', '400', '500', '600', '700', '800', '900'],
|
|
46
|
-
if: { arg: 'backgroundColor', eq: 'red' },
|
|
47
|
-
},
|
|
48
|
-
blueScale: {
|
|
49
|
-
name: 'Scale',
|
|
50
|
-
description: 'The colour scale used.',
|
|
51
|
-
control: {
|
|
52
|
-
type: 'select',
|
|
53
|
-
},
|
|
54
|
-
options: ['50', '100', '200', '300', '400', '500', '600', '700', '800', '900'],
|
|
55
|
-
if: { arg: 'backgroundColor', eq: 'blue' },
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
};
|
|
59
|
-
const Template = ({ backgroundColor, greyScale, blueScale, redScale }) => {
|
|
60
|
-
let scale = 100;
|
|
61
|
-
switch (backgroundColor) {
|
|
62
|
-
case 'blue':
|
|
63
|
-
scale = blueScale;
|
|
64
|
-
break;
|
|
65
|
-
case 'grey':
|
|
66
|
-
scale = greyScale;
|
|
67
|
-
break;
|
|
68
|
-
case 'red':
|
|
69
|
-
scale = redScale;
|
|
70
|
-
break;
|
|
71
|
-
default:
|
|
72
|
-
scale = blueScale;
|
|
73
|
-
break;
|
|
74
|
-
}
|
|
75
|
-
return formatHtmlPreview(`
|
|
76
|
-
<style>
|
|
77
|
-
.demo-wrapper{
|
|
78
|
-
height: 400px;
|
|
79
|
-
width: 400px;
|
|
80
|
-
display: flex;
|
|
81
|
-
justify-content: center;
|
|
82
|
-
align-items: center;
|
|
83
|
-
}
|
|
84
|
-
</style>
|
|
85
|
-
<div class="sdds-background-${backgroundColor}-${scale} demo-wrapper">
|
|
86
|
-
<h1>background-color:${backgroundColor}</h1>
|
|
87
|
-
</div>
|
|
88
|
-
`);
|
|
89
|
-
};
|
|
90
|
-
export const backgroundColor = Template.bind({});
|
|
91
|
-
backgroundColor.args = {
|
|
92
|
-
backgroundColor: 'blue',
|
|
93
|
-
blueScale: '500',
|
|
94
|
-
redScale: '500',
|
|
95
|
-
greyScale: '958',
|
|
96
|
-
};
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { formatHtmlPreview } from '../../../utils/utils';
|
|
2
|
-
export default {
|
|
3
|
-
title: 'Utilities/Colours',
|
|
4
|
-
parameters: {
|
|
5
|
-
layout: 'centered',
|
|
6
|
-
},
|
|
7
|
-
argTypes: {
|
|
8
|
-
colour: {
|
|
9
|
-
name: 'Colour',
|
|
10
|
-
description: 'The colour of the text',
|
|
11
|
-
control: {
|
|
12
|
-
type: 'select',
|
|
13
|
-
},
|
|
14
|
-
options: { Red: 'red', Blue: 'blue', Grey: 'grey' },
|
|
15
|
-
},
|
|
16
|
-
greyScale: {
|
|
17
|
-
name: 'Scale',
|
|
18
|
-
description: 'The colour scale used.',
|
|
19
|
-
control: {
|
|
20
|
-
type: 'select',
|
|
21
|
-
},
|
|
22
|
-
options: [
|
|
23
|
-
'50',
|
|
24
|
-
'100',
|
|
25
|
-
'200',
|
|
26
|
-
'300',
|
|
27
|
-
'400',
|
|
28
|
-
'500',
|
|
29
|
-
'600',
|
|
30
|
-
'700',
|
|
31
|
-
'800',
|
|
32
|
-
'846',
|
|
33
|
-
'868',
|
|
34
|
-
'900',
|
|
35
|
-
'958',
|
|
36
|
-
],
|
|
37
|
-
if: { arg: 'colour', eq: 'grey' },
|
|
38
|
-
},
|
|
39
|
-
redScale: {
|
|
40
|
-
name: 'Scale',
|
|
41
|
-
description: 'The colour scale used.',
|
|
42
|
-
control: {
|
|
43
|
-
type: 'select',
|
|
44
|
-
},
|
|
45
|
-
options: ['50', '100', '200', '300', '400', '500', '600', '700', '800', '900'],
|
|
46
|
-
if: { arg: 'colour', eq: 'red' },
|
|
47
|
-
},
|
|
48
|
-
blueScale: {
|
|
49
|
-
name: 'Scale',
|
|
50
|
-
description: 'The colour scale used.',
|
|
51
|
-
control: {
|
|
52
|
-
type: 'select',
|
|
53
|
-
},
|
|
54
|
-
options: ['50', '100', '200', '300', '400', '500', '600', '700', '800', '900'],
|
|
55
|
-
if: { arg: 'colour', eq: 'blue' },
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
};
|
|
59
|
-
const Template = ({ colour, greyScale, blueScale, redScale }) => {
|
|
60
|
-
let scale = 100;
|
|
61
|
-
switch (colour) {
|
|
62
|
-
case 'blue':
|
|
63
|
-
scale = blueScale;
|
|
64
|
-
break;
|
|
65
|
-
case 'grey':
|
|
66
|
-
scale = greyScale;
|
|
67
|
-
break;
|
|
68
|
-
case 'red':
|
|
69
|
-
scale = redScale;
|
|
70
|
-
break;
|
|
71
|
-
default:
|
|
72
|
-
scale = blueScale;
|
|
73
|
-
break;
|
|
74
|
-
}
|
|
75
|
-
return formatHtmlPreview(`
|
|
76
|
-
<style>
|
|
77
|
-
.demo-wrapper h1 {
|
|
78
|
-
margin: 0;
|
|
79
|
-
width: 300px;
|
|
80
|
-
}
|
|
81
|
-
</style>
|
|
82
|
-
<div class="demo-wrapper">
|
|
83
|
-
<h1 class="sdds-text-${colour}-${scale}">A text ${colour} heading</h1>
|
|
84
|
-
<p class="sdds-text-${colour}-${scale}">A text ${colour} paragraph</p>
|
|
85
|
-
</div>
|
|
86
|
-
`);
|
|
87
|
-
};
|
|
88
|
-
export const textColor = Template.bind({});
|
|
89
|
-
textColor.args = {
|
|
90
|
-
colour: 'blue',
|
|
91
|
-
blueScale: '500',
|
|
92
|
-
redScale: '500',
|
|
93
|
-
greyScale: '958',
|
|
94
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { formatHtmlPreview } from '../../utils/utils';
|
|
2
|
-
export default {
|
|
3
|
-
title: 'Foundations/Colour',
|
|
4
|
-
parameters: {
|
|
5
|
-
layout: 'fullscreen',
|
|
6
|
-
docs: {
|
|
7
|
-
source: {
|
|
8
|
-
state: 'closed',
|
|
9
|
-
},
|
|
10
|
-
},
|
|
11
|
-
},
|
|
12
|
-
};
|
|
13
|
-
const Template = () => formatHtmlPreview(`
|
|
14
|
-
<style>
|
|
15
|
-
/* Demo code for presentation purposes */
|
|
16
|
-
.demo-wrapper {
|
|
17
|
-
height: 90px;
|
|
18
|
-
}
|
|
19
|
-
.demo-wrapper span {
|
|
20
|
-
color: white;
|
|
21
|
-
background-color: black;
|
|
22
|
-
border: 1px solid white;
|
|
23
|
-
padding: 4px;
|
|
24
|
-
position: absolute;
|
|
25
|
-
}
|
|
26
|
-
</style>
|
|
27
|
-
|
|
28
|
-
<div class="demo-wrapper" style="background-color: var(--sdds-black)">
|
|
29
|
-
<span>--sdds-black</span>
|
|
30
|
-
</div>
|
|
31
|
-
<div class="demo-wrapper" style="background-color: var(--sdds-white)">
|
|
32
|
-
<span>--sdds-white</span>
|
|
33
|
-
</div>
|
|
34
|
-
<div class="demo-wrapper" style="background-color: var(--sdds-blue)">
|
|
35
|
-
<span>--sdds-blue</span>
|
|
36
|
-
</div>
|
|
37
|
-
`);
|
|
38
|
-
export const Brand = Template.bind({});
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { formatHtmlPreview } from '../../utils/utils';
|
|
2
|
-
export default {
|
|
3
|
-
title: 'Foundations/Colour',
|
|
4
|
-
parameters: {
|
|
5
|
-
layout: 'fullscreen',
|
|
6
|
-
docs: {
|
|
7
|
-
source: {
|
|
8
|
-
state: 'closed',
|
|
9
|
-
},
|
|
10
|
-
},
|
|
11
|
-
},
|
|
12
|
-
};
|
|
13
|
-
const Template = ({ colour }) => {
|
|
14
|
-
const scale = {
|
|
15
|
-
grey: [
|
|
16
|
-
'50',
|
|
17
|
-
'100',
|
|
18
|
-
'200',
|
|
19
|
-
'300',
|
|
20
|
-
'400',
|
|
21
|
-
'500',
|
|
22
|
-
'600',
|
|
23
|
-
'700',
|
|
24
|
-
'800',
|
|
25
|
-
'846',
|
|
26
|
-
'868',
|
|
27
|
-
'900',
|
|
28
|
-
'958',
|
|
29
|
-
],
|
|
30
|
-
blue: ['50', '100', '200', '300', '400', '500', '600', '700', '800', '900'],
|
|
31
|
-
red: ['50', '100', '200', '300', '400', '500', '600', '700', '800', '900'],
|
|
32
|
-
};
|
|
33
|
-
const picked = scale[colour];
|
|
34
|
-
let div = '';
|
|
35
|
-
picked.forEach((num) => {
|
|
36
|
-
div += `<div id="test" class="demo-wrapper" style="background-color: var(--sdds-${colour}-${num})">
|
|
37
|
-
<span>--sdds-${colour}-${num}</span>
|
|
38
|
-
</div>`;
|
|
39
|
-
});
|
|
40
|
-
return formatHtmlPreview(`
|
|
41
|
-
<style>
|
|
42
|
-
/* Demo code for presentation purposes */
|
|
43
|
-
.demo-wrapper {
|
|
44
|
-
height: 90px;
|
|
45
|
-
}
|
|
46
|
-
.demo-wrapper span {
|
|
47
|
-
color: white;
|
|
48
|
-
background-color: black;
|
|
49
|
-
border: 1px solid white;
|
|
50
|
-
padding: 4px;
|
|
51
|
-
position: absolute;
|
|
52
|
-
}
|
|
53
|
-
</style>
|
|
54
|
-
|
|
55
|
-
${div}
|
|
56
|
-
`);
|
|
57
|
-
};
|
|
58
|
-
export const Scales = Template.bind({});
|
|
59
|
-
Scales.argTypes = {
|
|
60
|
-
colour: {
|
|
61
|
-
name: 'Colour',
|
|
62
|
-
description: 'Choose colour scale to display',
|
|
63
|
-
control: {
|
|
64
|
-
type: 'select',
|
|
65
|
-
},
|
|
66
|
-
options: { Grey: 'grey', Blue: 'blue', Red: 'red' },
|
|
67
|
-
},
|
|
68
|
-
};
|
|
69
|
-
Scales.args = {
|
|
70
|
-
colour: 'grey',
|
|
71
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { formatHtmlPreview } from '../../utils/utils';
|
|
2
|
-
export default {
|
|
3
|
-
title: 'Foundations/Colour',
|
|
4
|
-
parameters: {
|
|
5
|
-
layout: 'fullscreen',
|
|
6
|
-
docs: {
|
|
7
|
-
source: {
|
|
8
|
-
state: 'closed',
|
|
9
|
-
},
|
|
10
|
-
},
|
|
11
|
-
},
|
|
12
|
-
};
|
|
13
|
-
const Template = () => formatHtmlPreview(`
|
|
14
|
-
<style>
|
|
15
|
-
/* Demo code for presentation purposes */
|
|
16
|
-
.demo-wrapper {
|
|
17
|
-
height: 90px;
|
|
18
|
-
}
|
|
19
|
-
.demo-wrapper span {
|
|
20
|
-
color: white;
|
|
21
|
-
background-color: black;
|
|
22
|
-
border: 1px solid white;
|
|
23
|
-
padding: 4px;
|
|
24
|
-
position: absolute;
|
|
25
|
-
}
|
|
26
|
-
</style>
|
|
27
|
-
|
|
28
|
-
<div class="demo-wrapper" style="background-color: var(--sdds-positive)">
|
|
29
|
-
<span>--sdds-positive</span>
|
|
30
|
-
</div>
|
|
31
|
-
<div class="demo-wrapper" style="background-color: var(--sdds-warning)">
|
|
32
|
-
<span>--sdds-warning</span>
|
|
33
|
-
</div>
|
|
34
|
-
<div class="demo-wrapper" style="background-color: var(--sdds-negative)">
|
|
35
|
-
<span>--sdds-negative</span>
|
|
36
|
-
</div>
|
|
37
|
-
<div class="demo-wrapper" style="background-color: var(--sdds-information)">
|
|
38
|
-
<span>--sdds-information</span>
|
|
39
|
-
</div>`);
|
|
40
|
-
export const Sematic = Template.bind({});
|