dso-toolkit 34.2.1 → 35.0.0
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/library/@dso-toolkit/core/cjs/dso-autosuggest.cjs.entry.js +5 -1
- package/dist/library/@dso-toolkit/core/cjs/dso-image-overlay.cjs.entry.js +62 -0
- package/dist/library/@dso-toolkit/core/cjs/dso-ozon-content.cjs.entry.js +281 -423
- package/dist/library/@dso-toolkit/core/cjs/dso-toolkit.cjs.js +1 -1
- package/dist/library/@dso-toolkit/core/cjs/dso-viewer-grid.cjs.entry.js +5 -711
- package/dist/library/@dso-toolkit/core/cjs/focus-trap.esm-8d3e3fb6.js +712 -0
- package/dist/library/@dso-toolkit/core/cjs/loader.cjs.js +1 -1
- package/dist/library/@dso-toolkit/core/collection/collection-manifest.json +1 -0
- package/dist/library/@dso-toolkit/core/collection/components/autosuggest/autosuggest.js +6 -2
- package/dist/library/@dso-toolkit/core/collection/components/highlight-box/highlight-box.template.js +4 -1
- package/dist/library/@dso-toolkit/core/collection/components/image-overlay/image-overlay.css +263 -0
- package/dist/library/@dso-toolkit/core/collection/components/image-overlay/image-overlay.js +72 -0
- package/dist/library/@dso-toolkit/core/collection/components/image-overlay/image-overlay.stories.js +11 -0
- package/dist/library/@dso-toolkit/core/collection/components/image-overlay/image-overlay.template.js +7 -0
- package/dist/library/@dso-toolkit/core/collection/components/ozon-content/nodes/al.node.js +13 -0
- package/dist/library/@dso-toolkit/core/collection/components/ozon-content/nodes/document.node.js +9 -0
- package/dist/library/@dso-toolkit/core/collection/components/ozon-content/nodes/ext-ref.node.js +15 -0
- package/dist/library/@dso-toolkit/core/collection/components/ozon-content/nodes/fallback.node.js +10 -0
- package/dist/library/@dso-toolkit/core/collection/components/ozon-content/nodes/illustratie.node.js +13 -0
- package/dist/library/@dso-toolkit/core/collection/components/ozon-content/nodes/inhoud.node.js +14 -0
- package/dist/library/@dso-toolkit/core/collection/components/ozon-content/nodes/inline.nodes.js +21 -0
- package/dist/library/@dso-toolkit/core/collection/components/ozon-content/nodes/int-ref.node.js +26 -0
- package/dist/library/@dso-toolkit/core/collection/components/ozon-content/nodes/noot.node.js +27 -0
- package/dist/library/@dso-toolkit/core/collection/components/ozon-content/nodes/table.node/colspec/colspec-mapper.js +39 -0
- package/dist/library/@dso-toolkit/core/collection/components/ozon-content/nodes/table.node/colspec/colspec.interface.js +2 -0
- package/dist/library/@dso-toolkit/core/collection/components/ozon-content/nodes/table.node/index.js +1 -0
- package/dist/library/@dso-toolkit/core/collection/components/ozon-content/nodes/table.node/table-cell.js +25 -0
- package/dist/library/@dso-toolkit/core/collection/components/ozon-content/nodes/table.node/table-colgroup.js +4 -0
- package/dist/library/@dso-toolkit/core/collection/components/ozon-content/nodes/table.node/table-rows.js +5 -0
- package/dist/library/@dso-toolkit/core/collection/components/ozon-content/nodes/table.node/table.node.js +32 -0
- package/dist/library/@dso-toolkit/core/collection/components/ozon-content/nodes/text.node.js +9 -0
- package/dist/library/@dso-toolkit/core/collection/components/ozon-content/ozon-content-context.interface.js +1 -0
- package/dist/library/@dso-toolkit/core/collection/components/ozon-content/ozon-content-mapper.js +76 -0
- package/dist/library/@dso-toolkit/core/collection/components/ozon-content/ozon-content-node-context.interface.js +1 -0
- package/dist/library/@dso-toolkit/core/collection/components/ozon-content/ozon-content-node-state.interface.js +1 -0
- package/dist/library/@dso-toolkit/core/collection/components/ozon-content/ozon-content-node.interface.js +1 -0
- package/dist/library/@dso-toolkit/core/collection/components/ozon-content/ozon-content.css +15 -7
- package/dist/library/@dso-toolkit/core/collection/components/ozon-content/ozon-content.js +21 -33
- package/dist/library/@dso-toolkit/core/collection/components/viewer-grid/viewer-grid.css +30 -2
- package/dist/library/@dso-toolkit/core/collection/components/viewer-grid/viewer-grid.stories.js +28 -4
- package/dist/library/@dso-toolkit/core/custom-elements/index.d.ts +6 -0
- package/dist/library/@dso-toolkit/core/custom-elements/index.js +3022 -3103
- package/dist/library/@dso-toolkit/core/dso-toolkit/dso-toolkit.css +1 -1
- package/dist/library/@dso-toolkit/core/dso-toolkit/dso-toolkit.esm.js +1 -1
- package/dist/library/@dso-toolkit/core/dso-toolkit/{p-de3ab027.entry.js → p-225bbb28.entry.js} +1 -5
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-44905fb1.js +5 -0
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-c6f467b3.entry.js +1 -0
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-f193c258.entry.js +1 -0
- package/dist/library/@dso-toolkit/core/esm/dso-autosuggest.entry.js +5 -1
- package/dist/library/@dso-toolkit/core/esm/dso-image-overlay.entry.js +58 -0
- package/dist/library/@dso-toolkit/core/esm/dso-ozon-content.entry.js +282 -424
- package/dist/library/@dso-toolkit/core/esm/dso-toolkit.js +1 -1
- package/dist/library/@dso-toolkit/core/esm/dso-viewer-grid.entry.js +3 -709
- package/dist/library/@dso-toolkit/core/esm/focus-trap.esm-299989f2.js +710 -0
- package/dist/library/@dso-toolkit/core/esm/loader.js +1 -1
- package/dist/library/@dso-toolkit/core/types/components/autosuggest/autosuggest.d.ts +15 -1
- package/dist/library/@dso-toolkit/core/types/components/image-overlay/image-overlay.d.ts +15 -0
- package/dist/library/@dso-toolkit/core/types/components/image-overlay/image-overlay.stories.d.ts +1 -0
- package/dist/library/@dso-toolkit/core/types/components/image-overlay/image-overlay.template.d.ts +2 -0
- package/dist/library/@dso-toolkit/core/types/components/ozon-content/nodes/al.node.d.ts +6 -0
- package/dist/library/@dso-toolkit/core/types/components/ozon-content/nodes/document.node.d.ts +6 -0
- package/dist/library/@dso-toolkit/core/types/components/ozon-content/nodes/ext-ref.node.d.ts +6 -0
- package/dist/library/@dso-toolkit/core/types/components/ozon-content/nodes/fallback.node.d.ts +6 -0
- package/dist/library/@dso-toolkit/core/types/components/ozon-content/nodes/illustratie.node.d.ts +5 -0
- package/dist/library/@dso-toolkit/core/types/components/ozon-content/nodes/inhoud.node.d.ts +6 -0
- package/dist/library/@dso-toolkit/core/types/components/ozon-content/nodes/inline.nodes.d.ts +6 -0
- package/dist/library/@dso-toolkit/core/types/components/ozon-content/nodes/int-ref.node.d.ts +6 -0
- package/dist/library/@dso-toolkit/core/types/components/ozon-content/nodes/noot.node.d.ts +8 -0
- package/dist/library/@dso-toolkit/core/types/components/ozon-content/nodes/table.node/colspec/colspec-mapper.d.ts +2 -0
- package/dist/library/@dso-toolkit/core/types/components/ozon-content/nodes/table.node/colspec/colspec.interface.d.ts +10 -0
- package/dist/library/@dso-toolkit/core/types/components/ozon-content/nodes/table.node/index.d.ts +1 -0
- package/dist/library/@dso-toolkit/core/types/components/ozon-content/nodes/table.node/table-cell.d.ts +8 -0
- package/dist/library/@dso-toolkit/core/types/components/ozon-content/nodes/table.node/table-colgroup.d.ts +5 -0
- package/dist/library/@dso-toolkit/core/types/components/ozon-content/nodes/table.node/table-rows.d.ts +8 -0
- package/dist/library/@dso-toolkit/core/types/components/ozon-content/nodes/table.node/table.node.d.ts +7 -0
- package/dist/library/@dso-toolkit/core/types/components/ozon-content/nodes/text.node.d.ts +5 -0
- package/dist/library/@dso-toolkit/core/types/components/ozon-content/ozon-content-context.interface.d.ts +8 -0
- package/dist/library/@dso-toolkit/core/types/components/ozon-content/ozon-content-mapper.d.ts +12 -0
- package/dist/library/@dso-toolkit/core/types/components/ozon-content/ozon-content-node-context.interface.d.ts +8 -0
- package/dist/library/@dso-toolkit/core/types/components/ozon-content/ozon-content-node-state.interface.d.ts +3 -0
- package/dist/library/@dso-toolkit/core/types/components/ozon-content/ozon-content-node.interface.d.ts +8 -0
- package/dist/library/@dso-toolkit/core/types/components/ozon-content/ozon-content.d.ts +8 -10
- package/dist/library/@dso-toolkit/core/types/components/ozon-content/ozon-content.interfaces.d.ts +2 -2
- package/dist/library/@dso-toolkit/core/types/components.d.ts +19 -6
- package/dist/library/components/detail/form--autocomplete.html +1 -1
- package/dist/library/components/detail/form--form-horizontal.html +1 -1
- package/dist/library/components/detail/form--form-vertical.html +1 -1
- package/dist/library/components/detail/form--multi-page.html +1 -1
- package/dist/library/components/detail/form--sections.html +1 -1
- package/dist/library/components/detail/form--simple-form.html +1 -1
- package/dist/library/components/detail/form--single-page.html +1 -1
- package/dist/library/components/detail/form.html +1 -1
- package/dist/library/styles/dso.css +204 -465
- package/dist/toolkit/core/dso-toolkit.css +1 -1
- package/dist/toolkit/core/dso-toolkit.esm.js +1 -1
- package/dist/toolkit/core/{p-de3ab027.entry.js → p-225bbb28.entry.js} +1 -5
- package/dist/toolkit/core/p-44905fb1.js +5 -0
- package/dist/toolkit/core/p-c6f467b3.entry.js +1 -0
- package/dist/toolkit/core/p-f193c258.entry.js +1 -0
- package/dist/toolkit/styles/dso.css +204 -465
- package/hydrate/index.js +3102 -3174
- package/libs/@dso-toolkit/css/src/components/list/list.scss +8 -0
- package/libs/@dso-toolkit/css/src/components/tile-grid/tile-grid.scss +3 -0
- package/libs/@dso-toolkit/css/src/dso.scss +1 -0
- package/libs/@dso-toolkit/css/src/global/global.scss +5 -0
- package/libs/@dso-toolkit/sources/src/components/autosuggest/autosuggest.demo.ts +1 -0
- package/libs/@dso-toolkit/sources/src/components/autosuggest/autosuggest.models.ts +1 -0
- package/libs/@dso-toolkit/sources/src/components/highlight-box/highlight-box.models.ts +2 -2
- package/libs/@dso-toolkit/sources/src/components/image/image.models.ts +2 -0
- package/libs/@dso-toolkit/sources/src/components/image-overlay/image-overlay.args.ts +29 -0
- package/libs/@dso-toolkit/sources/src/components/image-overlay/image-overlay.content.ts +24 -0
- package/libs/@dso-toolkit/sources/src/components/image-overlay/image-overlay.models.ts +5 -0
- package/libs/@dso-toolkit/sources/src/components/image-overlay/image-overlay.stories.ts +26 -0
- package/libs/@dso-toolkit/sources/src/components/ozon-content/ozon-content.args.ts +7 -6
- package/libs/@dso-toolkit/sources/src/components/ozon-content/ozon-content.content.ts +768 -319
- package/libs/@dso-toolkit/sources/src/components/ozon-content/ozon-content.stories.ts +24 -48
- package/libs/@dso-toolkit/sources/src/components/row-equal-heights/row-equal-heights.args.ts +7 -0
- package/libs/@dso-toolkit/sources/src/components/row-equal-heights/row-equal-heights.content.ts +119 -0
- package/libs/@dso-toolkit/sources/src/components/row-equal-heights/row-equal-heights.models.ts +3 -0
- package/libs/@dso-toolkit/sources/src/components/row-equal-heights/row-equal-heights.stories.ts +56 -0
- package/libs/@dso-toolkit/sources/src/components/tile/tile.args.ts +13 -1
- package/libs/@dso-toolkit/sources/src/components/tile/tile.models.ts +1 -0
- package/libs/@dso-toolkit/sources/src/components/tile/tile.scss +37 -7
- package/libs/@dso-toolkit/sources/src/components/tile/tile.stories.ts +11 -1
- package/libs/@dso-toolkit/sources/src/components/tile-grid/tile-grid.args.ts +7 -0
- package/libs/@dso-toolkit/sources/src/components/tile-grid/tile-grid.content.ts +139 -0
- package/libs/@dso-toolkit/sources/src/components/tile-grid/tile-grid.models.ts +3 -0
- package/libs/@dso-toolkit/sources/src/components/tile-grid/tile-grid.scss +6 -0
- package/libs/@dso-toolkit/sources/src/components/tile-grid/tile-grid.stories.ts +36 -0
- package/libs/@dso-toolkit/sources/src/components/viewer-grid/viewer-grid.args.ts +25 -6
- package/libs/@dso-toolkit/sources/src/components/viewer-grid/viewer-grid.content.ts +1 -0
- package/libs/@dso-toolkit/sources/src/components/viewer-grid/viewer-grid.models.ts +9 -2
- package/libs/@dso-toolkit/sources/src/components/viewer-grid/viewer-grid.stories.ts +35 -24
- package/libs/@dso-toolkit/sources/src/components.scss +1 -0
- package/libs/@dso-toolkit/sources/src/index.ts +6 -0
- package/libs/@dso-toolkit/sources/src/styling/global/blockquote.scss +12 -0
- package/libs/@dso-toolkit/sources/src/styling/global/del.scss +3 -0
- package/libs/@dso-toolkit/sources/src/styling/global/headings.scss +30 -2
- package/libs/@dso-toolkit/sources/src/styling/global/ins.scss +4 -0
- package/libs/@dso-toolkit/sources/src/styling/global/p.scss +3 -0
- package/libs/@dso-toolkit/sources/src/styling/global/utilities.scss +32 -0
- package/libs/@dso-toolkit/sources/src/styling/grid/grid.scss +4 -0
- package/libs/@dso-toolkit/sources/src/styling/mixins/center-block.scss +5 -0
- package/{src/styles/components/_equal-heights.scss → libs/@dso-toolkit/sources/src/styling/mixins/equal-heights.scss} +1 -1
- package/libs/@dso-toolkit/sources/src/styling/mixins.scss +2 -0
- package/libs/@dso-toolkit/sources/src/styling/variables/colors.scss +4 -0
- package/libs/@dso-toolkit/sources/src/styling/variables/typography.scss +1 -1
- package/libs/@dso-toolkit/sources/storybook-assets/images/canvas-home_iplo-min.png +0 -0
- package/libs/@dso-toolkit/sources/storybook-assets/images/houtkachel-of-open-haard-infographic.jpg +0 -0
- package/libs/@dso-toolkit/sources/storybook-assets/images/icon-tree.png +0 -0
- package/libs/@dso-toolkit/sources/storybook-assets/images/klimaatambities_agv_infographic_002_1.jpg +0 -0
- package/libs/@dso-toolkit/sources/storybook-assets/images/schakeldag-8-maart-2022-schakeljournaal-ads.jpg +0 -0
- package/libs/_bootstrap.scss +2 -2
- package/libs/bootstrap/_variables.scss +3 -3
- package/package.json +2 -2
- package/src/styles/components/_jumbotron.scss +1 -2
- package/src/styles/components/_modal.scss +1 -1
- package/src/styles/components/_panel.scss +1 -1
- package/src/styles/dso.scss +3 -3
- package/dist/library/@dso-toolkit/core/collection/components/ozon-content/ozon-content.transformer.js +0 -105
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-20856f91.entry.js +0 -1
- package/dist/library/@dso-toolkit/core/types/components/ozon-content/ozon-content.transformer.d.ts +0 -15
- package/dist/toolkit/core/p-20856f91.entry.js +0 -1
- package/libs/bootstrap/_type.scss +0 -233
- package/libs/bootstrap/_utilities.scss +0 -55
- package/src/styles/components/_rich-content.scss +0 -56
- package/src/styles/mixins/_typography.scss +0 -56
|
@@ -33,6 +33,9 @@ $list-group-border-radius: $border-radius-base;
|
|
|
33
33
|
|
|
34
34
|
ul,
|
|
35
35
|
ol {
|
|
36
|
+
margin-top: 0;
|
|
37
|
+
margin-bottom: $u2;
|
|
38
|
+
|
|
36
39
|
&.dso-columns-list {
|
|
37
40
|
list-style: none;
|
|
38
41
|
margin: 0;
|
|
@@ -55,4 +58,9 @@ ol {
|
|
|
55
58
|
margin-bottom: $u1;
|
|
56
59
|
margin-top: $u1;
|
|
57
60
|
}
|
|
61
|
+
|
|
62
|
+
ul,
|
|
63
|
+
ol {
|
|
64
|
+
margin-bottom: 0;
|
|
65
|
+
}
|
|
58
66
|
}
|
|
@@ -8,8 +8,10 @@
|
|
|
8
8
|
|
|
9
9
|
@import "../../../sources/src/styling/global/a";
|
|
10
10
|
@import "../../../sources/src/styling/global/b";
|
|
11
|
+
@import "../../../sources/src/styling/global/blockquote";
|
|
11
12
|
@import "../../../sources/src/styling/global/button";
|
|
12
13
|
@import "../../../sources/src/styling/global/code";
|
|
14
|
+
@import "../../../sources/src/styling/global/del";
|
|
13
15
|
@import "../../../sources/src/styling/global/dl";
|
|
14
16
|
@import "../../../sources/src/styling/global/fieldset";
|
|
15
17
|
@import "../../../sources/src/styling/global/footer";
|
|
@@ -18,10 +20,12 @@
|
|
|
18
20
|
@import "../../../sources/src/styling/global/hr";
|
|
19
21
|
@import "../../../sources/src/styling/global/img";
|
|
20
22
|
@import "../../../sources/src/styling/global/input";
|
|
23
|
+
@import "../../../sources/src/styling/global/ins";
|
|
21
24
|
@import "../../../sources/src/styling/global/label";
|
|
22
25
|
@import "../../../sources/src/styling/global/main";
|
|
23
26
|
@import "../../../sources/src/styling/global/mark";
|
|
24
27
|
@import "../../../sources/src/styling/global/nav";
|
|
28
|
+
@import "../../../sources/src/styling/global/p";
|
|
25
29
|
@import "../../../sources/src/styling/global/section";
|
|
26
30
|
@import "../../../sources/src/styling/global/select";
|
|
27
31
|
@import "../../../sources/src/styling/global/strong";
|
|
@@ -29,6 +33,7 @@
|
|
|
29
33
|
@import "../../../sources/src/styling/global/sup";
|
|
30
34
|
@import "../../../sources/src/styling/global/table";
|
|
31
35
|
@import "../../../sources/src/styling/global/textarea";
|
|
36
|
+
@import "../../../sources/src/styling/global/utilities";
|
|
32
37
|
|
|
33
38
|
@import "../../../sources/src/styling/grid/grid";
|
|
34
39
|
/* stylelint-enable no-invalid-position-at-import-rule */
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export interface HighlightBox<TemplateFnReturnType> {
|
|
1
|
+
export interface HighlightBox<TemplateFnReturnType = string> {
|
|
2
2
|
yellow?: boolean;
|
|
3
3
|
white?: boolean;
|
|
4
4
|
dropShadow?: boolean;
|
|
5
5
|
border?: boolean;
|
|
6
6
|
step?: number;
|
|
7
7
|
icon?: string;
|
|
8
|
-
richContent: TemplateFnReturnType;
|
|
8
|
+
richContent: TemplateFnReturnType | string;
|
|
9
9
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ArgTypes } from "../../stories-helpers";
|
|
2
|
+
import { images } from './image-overlay.content';
|
|
3
|
+
import { ImageOverlay } from "./image-overlay.models";
|
|
4
|
+
|
|
5
|
+
export interface ImageOverlayArgs {
|
|
6
|
+
image: number;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const imageOverlayArgTypes: ArgTypes<ImageOverlayArgs> = {
|
|
10
|
+
image: {
|
|
11
|
+
defaultValue: 0,
|
|
12
|
+
options: [0, 1, 2, 3],
|
|
13
|
+
control: {
|
|
14
|
+
type: 'select',
|
|
15
|
+
labels: {
|
|
16
|
+
0: 'wide',
|
|
17
|
+
1: 'small',
|
|
18
|
+
2: 'tall',
|
|
19
|
+
3: 'big'
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export function imageOverlayArgsMapper(a: ImageOverlayArgs): ImageOverlay {
|
|
26
|
+
return {
|
|
27
|
+
image: images[a.image]
|
|
28
|
+
};
|
|
29
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Image } from '../image/image.models'
|
|
2
|
+
|
|
3
|
+
export const images: Image[] = [
|
|
4
|
+
{
|
|
5
|
+
alt: 'Kanaal met windmolens',
|
|
6
|
+
source: 'images/canvas-home_iplo-min.png',
|
|
7
|
+
width: 400
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
alt: 'Schakeldag',
|
|
11
|
+
source: 'images/schakeldag-8-maart-2022-schakeljournaal-ads.jpg',
|
|
12
|
+
width: 400
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
alt: 'Houtkachel',
|
|
16
|
+
source: 'images/houtkachel-of-open-haard-infographic.jpg',
|
|
17
|
+
width: 400
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
alt: 'Klimaatambities',
|
|
21
|
+
source: 'images/klimaatambities_agv_infographic_002_1.jpg',
|
|
22
|
+
width: 400
|
|
23
|
+
}
|
|
24
|
+
];
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { bindTemplate, StorybookParameters } from "../../stories-helpers";
|
|
2
|
+
import { imageOverlayArgsMapper, imageOverlayArgTypes } from "./image-overlay.args";
|
|
3
|
+
import { ImageOverlay } from "./image-overlay.models";
|
|
4
|
+
|
|
5
|
+
export interface ImageOverlayParameters<TemplateFnReturnType> {
|
|
6
|
+
imageOverlayTemplate: (
|
|
7
|
+
imageOverlayProperties: ImageOverlay
|
|
8
|
+
) => TemplateFnReturnType;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export function storiesOfImageOverlay<TemplateFnReturnType>(
|
|
12
|
+
{ module: mainModule, storiesOf, readme }: StorybookParameters,
|
|
13
|
+
{ imageOverlayTemplate }: ImageOverlayParameters<TemplateFnReturnType>
|
|
14
|
+
) {
|
|
15
|
+
const template = bindTemplate(imageOverlayArgsMapper, imageOverlayTemplate);
|
|
16
|
+
|
|
17
|
+
const stories = storiesOf("Image Overlay", mainModule).addParameters({
|
|
18
|
+
docs: {
|
|
19
|
+
page: readme,
|
|
20
|
+
},
|
|
21
|
+
argTypes: imageOverlayArgTypes,
|
|
22
|
+
layout: 'fullscreen'
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
stories.add("Image Overlay", template, {});
|
|
26
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { HandlerFunction } from
|
|
2
|
-
import { ArgTypes } from
|
|
1
|
+
import { HandlerFunction } from "@storybook/addon-actions";
|
|
2
|
+
import { ArgTypes, noControl } from "../../stories-helpers";
|
|
3
3
|
|
|
4
|
-
import { OzonContent } from
|
|
4
|
+
import { OzonContent } from "./ozon-content.models";
|
|
5
5
|
|
|
6
6
|
export interface OzonContentArgs {
|
|
7
7
|
content: string;
|
|
@@ -15,13 +15,14 @@ export const ozonContentArgTypes: ArgTypes<OzonContentArgs> = {
|
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
onAnchorClick: {
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
...noControl,
|
|
19
|
+
action: "anchorClick",
|
|
20
|
+
},
|
|
20
21
|
};
|
|
21
22
|
|
|
22
23
|
export function ozonContentArgsMapper(a: OzonContentArgs): OzonContent {
|
|
23
24
|
return {
|
|
24
25
|
content: a.content,
|
|
25
|
-
onAnchorClick: (e: any) => a.onAnchorClick(e.detail)
|
|
26
|
+
onAnchorClick: (e: any) => a.onAnchorClick(e.detail),
|
|
26
27
|
};
|
|
27
28
|
}
|