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.
Files changed (167) hide show
  1. package/dist/library/@dso-toolkit/core/cjs/dso-autosuggest.cjs.entry.js +5 -1
  2. package/dist/library/@dso-toolkit/core/cjs/dso-image-overlay.cjs.entry.js +62 -0
  3. package/dist/library/@dso-toolkit/core/cjs/dso-ozon-content.cjs.entry.js +281 -423
  4. package/dist/library/@dso-toolkit/core/cjs/dso-toolkit.cjs.js +1 -1
  5. package/dist/library/@dso-toolkit/core/cjs/dso-viewer-grid.cjs.entry.js +5 -711
  6. package/dist/library/@dso-toolkit/core/cjs/focus-trap.esm-8d3e3fb6.js +712 -0
  7. package/dist/library/@dso-toolkit/core/cjs/loader.cjs.js +1 -1
  8. package/dist/library/@dso-toolkit/core/collection/collection-manifest.json +1 -0
  9. package/dist/library/@dso-toolkit/core/collection/components/autosuggest/autosuggest.js +6 -2
  10. package/dist/library/@dso-toolkit/core/collection/components/highlight-box/highlight-box.template.js +4 -1
  11. package/dist/library/@dso-toolkit/core/collection/components/image-overlay/image-overlay.css +263 -0
  12. package/dist/library/@dso-toolkit/core/collection/components/image-overlay/image-overlay.js +72 -0
  13. package/dist/library/@dso-toolkit/core/collection/components/image-overlay/image-overlay.stories.js +11 -0
  14. package/dist/library/@dso-toolkit/core/collection/components/image-overlay/image-overlay.template.js +7 -0
  15. package/dist/library/@dso-toolkit/core/collection/components/ozon-content/nodes/al.node.js +13 -0
  16. package/dist/library/@dso-toolkit/core/collection/components/ozon-content/nodes/document.node.js +9 -0
  17. package/dist/library/@dso-toolkit/core/collection/components/ozon-content/nodes/ext-ref.node.js +15 -0
  18. package/dist/library/@dso-toolkit/core/collection/components/ozon-content/nodes/fallback.node.js +10 -0
  19. package/dist/library/@dso-toolkit/core/collection/components/ozon-content/nodes/illustratie.node.js +13 -0
  20. package/dist/library/@dso-toolkit/core/collection/components/ozon-content/nodes/inhoud.node.js +14 -0
  21. package/dist/library/@dso-toolkit/core/collection/components/ozon-content/nodes/inline.nodes.js +21 -0
  22. package/dist/library/@dso-toolkit/core/collection/components/ozon-content/nodes/int-ref.node.js +26 -0
  23. package/dist/library/@dso-toolkit/core/collection/components/ozon-content/nodes/noot.node.js +27 -0
  24. package/dist/library/@dso-toolkit/core/collection/components/ozon-content/nodes/table.node/colspec/colspec-mapper.js +39 -0
  25. package/dist/library/@dso-toolkit/core/collection/components/ozon-content/nodes/table.node/colspec/colspec.interface.js +2 -0
  26. package/dist/library/@dso-toolkit/core/collection/components/ozon-content/nodes/table.node/index.js +1 -0
  27. package/dist/library/@dso-toolkit/core/collection/components/ozon-content/nodes/table.node/table-cell.js +25 -0
  28. package/dist/library/@dso-toolkit/core/collection/components/ozon-content/nodes/table.node/table-colgroup.js +4 -0
  29. package/dist/library/@dso-toolkit/core/collection/components/ozon-content/nodes/table.node/table-rows.js +5 -0
  30. package/dist/library/@dso-toolkit/core/collection/components/ozon-content/nodes/table.node/table.node.js +32 -0
  31. package/dist/library/@dso-toolkit/core/collection/components/ozon-content/nodes/text.node.js +9 -0
  32. package/dist/library/@dso-toolkit/core/collection/components/ozon-content/ozon-content-context.interface.js +1 -0
  33. package/dist/library/@dso-toolkit/core/collection/components/ozon-content/ozon-content-mapper.js +76 -0
  34. package/dist/library/@dso-toolkit/core/collection/components/ozon-content/ozon-content-node-context.interface.js +1 -0
  35. package/dist/library/@dso-toolkit/core/collection/components/ozon-content/ozon-content-node-state.interface.js +1 -0
  36. package/dist/library/@dso-toolkit/core/collection/components/ozon-content/ozon-content-node.interface.js +1 -0
  37. package/dist/library/@dso-toolkit/core/collection/components/ozon-content/ozon-content.css +15 -7
  38. package/dist/library/@dso-toolkit/core/collection/components/ozon-content/ozon-content.js +21 -33
  39. package/dist/library/@dso-toolkit/core/collection/components/viewer-grid/viewer-grid.css +30 -2
  40. package/dist/library/@dso-toolkit/core/collection/components/viewer-grid/viewer-grid.stories.js +28 -4
  41. package/dist/library/@dso-toolkit/core/custom-elements/index.d.ts +6 -0
  42. package/dist/library/@dso-toolkit/core/custom-elements/index.js +3022 -3103
  43. package/dist/library/@dso-toolkit/core/dso-toolkit/dso-toolkit.css +1 -1
  44. package/dist/library/@dso-toolkit/core/dso-toolkit/dso-toolkit.esm.js +1 -1
  45. package/dist/library/@dso-toolkit/core/dso-toolkit/{p-de3ab027.entry.js → p-225bbb28.entry.js} +1 -5
  46. package/dist/library/@dso-toolkit/core/dso-toolkit/p-44905fb1.js +5 -0
  47. package/dist/library/@dso-toolkit/core/dso-toolkit/p-c6f467b3.entry.js +1 -0
  48. package/dist/library/@dso-toolkit/core/dso-toolkit/p-f193c258.entry.js +1 -0
  49. package/dist/library/@dso-toolkit/core/esm/dso-autosuggest.entry.js +5 -1
  50. package/dist/library/@dso-toolkit/core/esm/dso-image-overlay.entry.js +58 -0
  51. package/dist/library/@dso-toolkit/core/esm/dso-ozon-content.entry.js +282 -424
  52. package/dist/library/@dso-toolkit/core/esm/dso-toolkit.js +1 -1
  53. package/dist/library/@dso-toolkit/core/esm/dso-viewer-grid.entry.js +3 -709
  54. package/dist/library/@dso-toolkit/core/esm/focus-trap.esm-299989f2.js +710 -0
  55. package/dist/library/@dso-toolkit/core/esm/loader.js +1 -1
  56. package/dist/library/@dso-toolkit/core/types/components/autosuggest/autosuggest.d.ts +15 -1
  57. package/dist/library/@dso-toolkit/core/types/components/image-overlay/image-overlay.d.ts +15 -0
  58. package/dist/library/@dso-toolkit/core/types/components/image-overlay/image-overlay.stories.d.ts +1 -0
  59. package/dist/library/@dso-toolkit/core/types/components/image-overlay/image-overlay.template.d.ts +2 -0
  60. package/dist/library/@dso-toolkit/core/types/components/ozon-content/nodes/al.node.d.ts +6 -0
  61. package/dist/library/@dso-toolkit/core/types/components/ozon-content/nodes/document.node.d.ts +6 -0
  62. package/dist/library/@dso-toolkit/core/types/components/ozon-content/nodes/ext-ref.node.d.ts +6 -0
  63. package/dist/library/@dso-toolkit/core/types/components/ozon-content/nodes/fallback.node.d.ts +6 -0
  64. package/dist/library/@dso-toolkit/core/types/components/ozon-content/nodes/illustratie.node.d.ts +5 -0
  65. package/dist/library/@dso-toolkit/core/types/components/ozon-content/nodes/inhoud.node.d.ts +6 -0
  66. package/dist/library/@dso-toolkit/core/types/components/ozon-content/nodes/inline.nodes.d.ts +6 -0
  67. package/dist/library/@dso-toolkit/core/types/components/ozon-content/nodes/int-ref.node.d.ts +6 -0
  68. package/dist/library/@dso-toolkit/core/types/components/ozon-content/nodes/noot.node.d.ts +8 -0
  69. package/dist/library/@dso-toolkit/core/types/components/ozon-content/nodes/table.node/colspec/colspec-mapper.d.ts +2 -0
  70. package/dist/library/@dso-toolkit/core/types/components/ozon-content/nodes/table.node/colspec/colspec.interface.d.ts +10 -0
  71. package/dist/library/@dso-toolkit/core/types/components/ozon-content/nodes/table.node/index.d.ts +1 -0
  72. package/dist/library/@dso-toolkit/core/types/components/ozon-content/nodes/table.node/table-cell.d.ts +8 -0
  73. package/dist/library/@dso-toolkit/core/types/components/ozon-content/nodes/table.node/table-colgroup.d.ts +5 -0
  74. package/dist/library/@dso-toolkit/core/types/components/ozon-content/nodes/table.node/table-rows.d.ts +8 -0
  75. package/dist/library/@dso-toolkit/core/types/components/ozon-content/nodes/table.node/table.node.d.ts +7 -0
  76. package/dist/library/@dso-toolkit/core/types/components/ozon-content/nodes/text.node.d.ts +5 -0
  77. package/dist/library/@dso-toolkit/core/types/components/ozon-content/ozon-content-context.interface.d.ts +8 -0
  78. package/dist/library/@dso-toolkit/core/types/components/ozon-content/ozon-content-mapper.d.ts +12 -0
  79. package/dist/library/@dso-toolkit/core/types/components/ozon-content/ozon-content-node-context.interface.d.ts +8 -0
  80. package/dist/library/@dso-toolkit/core/types/components/ozon-content/ozon-content-node-state.interface.d.ts +3 -0
  81. package/dist/library/@dso-toolkit/core/types/components/ozon-content/ozon-content-node.interface.d.ts +8 -0
  82. package/dist/library/@dso-toolkit/core/types/components/ozon-content/ozon-content.d.ts +8 -10
  83. package/dist/library/@dso-toolkit/core/types/components/ozon-content/ozon-content.interfaces.d.ts +2 -2
  84. package/dist/library/@dso-toolkit/core/types/components.d.ts +19 -6
  85. package/dist/library/components/detail/form--autocomplete.html +1 -1
  86. package/dist/library/components/detail/form--form-horizontal.html +1 -1
  87. package/dist/library/components/detail/form--form-vertical.html +1 -1
  88. package/dist/library/components/detail/form--multi-page.html +1 -1
  89. package/dist/library/components/detail/form--sections.html +1 -1
  90. package/dist/library/components/detail/form--simple-form.html +1 -1
  91. package/dist/library/components/detail/form--single-page.html +1 -1
  92. package/dist/library/components/detail/form.html +1 -1
  93. package/dist/library/styles/dso.css +204 -465
  94. package/dist/toolkit/core/dso-toolkit.css +1 -1
  95. package/dist/toolkit/core/dso-toolkit.esm.js +1 -1
  96. package/dist/toolkit/core/{p-de3ab027.entry.js → p-225bbb28.entry.js} +1 -5
  97. package/dist/toolkit/core/p-44905fb1.js +5 -0
  98. package/dist/toolkit/core/p-c6f467b3.entry.js +1 -0
  99. package/dist/toolkit/core/p-f193c258.entry.js +1 -0
  100. package/dist/toolkit/styles/dso.css +204 -465
  101. package/hydrate/index.js +3102 -3174
  102. package/libs/@dso-toolkit/css/src/components/list/list.scss +8 -0
  103. package/libs/@dso-toolkit/css/src/components/tile-grid/tile-grid.scss +3 -0
  104. package/libs/@dso-toolkit/css/src/dso.scss +1 -0
  105. package/libs/@dso-toolkit/css/src/global/global.scss +5 -0
  106. package/libs/@dso-toolkit/sources/src/components/autosuggest/autosuggest.demo.ts +1 -0
  107. package/libs/@dso-toolkit/sources/src/components/autosuggest/autosuggest.models.ts +1 -0
  108. package/libs/@dso-toolkit/sources/src/components/highlight-box/highlight-box.models.ts +2 -2
  109. package/libs/@dso-toolkit/sources/src/components/image/image.models.ts +2 -0
  110. package/libs/@dso-toolkit/sources/src/components/image-overlay/image-overlay.args.ts +29 -0
  111. package/libs/@dso-toolkit/sources/src/components/image-overlay/image-overlay.content.ts +24 -0
  112. package/libs/@dso-toolkit/sources/src/components/image-overlay/image-overlay.models.ts +5 -0
  113. package/libs/@dso-toolkit/sources/src/components/image-overlay/image-overlay.stories.ts +26 -0
  114. package/libs/@dso-toolkit/sources/src/components/ozon-content/ozon-content.args.ts +7 -6
  115. package/libs/@dso-toolkit/sources/src/components/ozon-content/ozon-content.content.ts +768 -319
  116. package/libs/@dso-toolkit/sources/src/components/ozon-content/ozon-content.stories.ts +24 -48
  117. package/libs/@dso-toolkit/sources/src/components/row-equal-heights/row-equal-heights.args.ts +7 -0
  118. package/libs/@dso-toolkit/sources/src/components/row-equal-heights/row-equal-heights.content.ts +119 -0
  119. package/libs/@dso-toolkit/sources/src/components/row-equal-heights/row-equal-heights.models.ts +3 -0
  120. package/libs/@dso-toolkit/sources/src/components/row-equal-heights/row-equal-heights.stories.ts +56 -0
  121. package/libs/@dso-toolkit/sources/src/components/tile/tile.args.ts +13 -1
  122. package/libs/@dso-toolkit/sources/src/components/tile/tile.models.ts +1 -0
  123. package/libs/@dso-toolkit/sources/src/components/tile/tile.scss +37 -7
  124. package/libs/@dso-toolkit/sources/src/components/tile/tile.stories.ts +11 -1
  125. package/libs/@dso-toolkit/sources/src/components/tile-grid/tile-grid.args.ts +7 -0
  126. package/libs/@dso-toolkit/sources/src/components/tile-grid/tile-grid.content.ts +139 -0
  127. package/libs/@dso-toolkit/sources/src/components/tile-grid/tile-grid.models.ts +3 -0
  128. package/libs/@dso-toolkit/sources/src/components/tile-grid/tile-grid.scss +6 -0
  129. package/libs/@dso-toolkit/sources/src/components/tile-grid/tile-grid.stories.ts +36 -0
  130. package/libs/@dso-toolkit/sources/src/components/viewer-grid/viewer-grid.args.ts +25 -6
  131. package/libs/@dso-toolkit/sources/src/components/viewer-grid/viewer-grid.content.ts +1 -0
  132. package/libs/@dso-toolkit/sources/src/components/viewer-grid/viewer-grid.models.ts +9 -2
  133. package/libs/@dso-toolkit/sources/src/components/viewer-grid/viewer-grid.stories.ts +35 -24
  134. package/libs/@dso-toolkit/sources/src/components.scss +1 -0
  135. package/libs/@dso-toolkit/sources/src/index.ts +6 -0
  136. package/libs/@dso-toolkit/sources/src/styling/global/blockquote.scss +12 -0
  137. package/libs/@dso-toolkit/sources/src/styling/global/del.scss +3 -0
  138. package/libs/@dso-toolkit/sources/src/styling/global/headings.scss +30 -2
  139. package/libs/@dso-toolkit/sources/src/styling/global/ins.scss +4 -0
  140. package/libs/@dso-toolkit/sources/src/styling/global/p.scss +3 -0
  141. package/libs/@dso-toolkit/sources/src/styling/global/utilities.scss +32 -0
  142. package/libs/@dso-toolkit/sources/src/styling/grid/grid.scss +4 -0
  143. package/libs/@dso-toolkit/sources/src/styling/mixins/center-block.scss +5 -0
  144. package/{src/styles/components/_equal-heights.scss → libs/@dso-toolkit/sources/src/styling/mixins/equal-heights.scss} +1 -1
  145. package/libs/@dso-toolkit/sources/src/styling/mixins.scss +2 -0
  146. package/libs/@dso-toolkit/sources/src/styling/variables/colors.scss +4 -0
  147. package/libs/@dso-toolkit/sources/src/styling/variables/typography.scss +1 -1
  148. package/libs/@dso-toolkit/sources/storybook-assets/images/canvas-home_iplo-min.png +0 -0
  149. package/libs/@dso-toolkit/sources/storybook-assets/images/houtkachel-of-open-haard-infographic.jpg +0 -0
  150. package/libs/@dso-toolkit/sources/storybook-assets/images/icon-tree.png +0 -0
  151. package/libs/@dso-toolkit/sources/storybook-assets/images/klimaatambities_agv_infographic_002_1.jpg +0 -0
  152. package/libs/@dso-toolkit/sources/storybook-assets/images/schakeldag-8-maart-2022-schakeljournaal-ads.jpg +0 -0
  153. package/libs/_bootstrap.scss +2 -2
  154. package/libs/bootstrap/_variables.scss +3 -3
  155. package/package.json +2 -2
  156. package/src/styles/components/_jumbotron.scss +1 -2
  157. package/src/styles/components/_modal.scss +1 -1
  158. package/src/styles/components/_panel.scss +1 -1
  159. package/src/styles/dso.scss +3 -3
  160. package/dist/library/@dso-toolkit/core/collection/components/ozon-content/ozon-content.transformer.js +0 -105
  161. package/dist/library/@dso-toolkit/core/dso-toolkit/p-20856f91.entry.js +0 -1
  162. package/dist/library/@dso-toolkit/core/types/components/ozon-content/ozon-content.transformer.d.ts +0 -15
  163. package/dist/toolkit/core/p-20856f91.entry.js +0 -1
  164. package/libs/bootstrap/_type.scss +0 -233
  165. package/libs/bootstrap/_utilities.scss +0 -55
  166. package/src/styles/components/_rich-content.scss +0 -56
  167. 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
  }
@@ -0,0 +1,3 @@
1
+ .dso-tile-grid {
2
+ @include tile-grid_root();
3
+ }
@@ -51,5 +51,6 @@
51
51
  @import "components/shopping-cart/shopping-cart";
52
52
  @import "components/subtitle/subtitle";
53
53
  @import "components/tile/tile";
54
+ @import "components/tile-grid/tile-grid";
54
55
  @import "components/tooltip/tooltip";
55
56
  @import "components/whitebox/whitebox";
@@ -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 */
@@ -63,6 +63,7 @@ const suggestions: AutosuggestSuggestion[] = [
63
63
  {
64
64
  type: 'adres in Rotterdam',
65
65
  value: 'Rotterdamse Rijweg 1A, 3043BE Rotterdam',
66
+ item: 123,
66
67
  },
67
68
  {
68
69
  type: 'adres in Rotterdam',
@@ -9,4 +9,5 @@ export interface Autosuggest {
9
9
  export interface AutosuggestSuggestion {
10
10
  value: string;
11
11
  type?: string;
12
+ item?: unknown;
12
13
  }
@@ -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
  }
@@ -2,4 +2,6 @@ export interface Image {
2
2
  source: string;
3
3
  modifier?: string;
4
4
  alt: string;
5
+ width?: number;
6
+ height?: number;
5
7
  }
@@ -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,5 @@
1
+ import { Image } from '../..';
2
+
3
+ export interface ImageOverlay {
4
+ image: Image;
5
+ }
@@ -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 '@storybook/addon-actions';
2
- import { ArgTypes } from '../../stories-helpers';
1
+ import { HandlerFunction } from "@storybook/addon-actions";
2
+ import { ArgTypes, noControl } from "../../stories-helpers";
3
3
 
4
- import { OzonContent } from './ozon-content.models';
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
- action: 'anchorClick'
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
  }