@digigov/ui 0.26.1 → 0.26.3

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 (155) hide show
  1. package/CHANGELOG.md +17 -1
  2. package/admin/CopyToClipboard/CopyToClipboard.stories.playwright.json +37 -0
  3. package/admin/Dropdown/Dropdown.stories.playwright.json +21 -0
  4. package/admin/Modal/Modal.stories.playwright.json +37 -0
  5. package/admin/Pagination/Pagination.stories.playwright.json +27 -0
  6. package/admin/StepNav/StepNav.stories.playwright.json +33 -0
  7. package/app/Footer/Footer.stories.playwright.json +27 -0
  8. package/app/Header/Header.stories.playwright.json +33 -0
  9. package/app/QrCodeViewer/QRCode.stories.d.ts +8 -0
  10. package/app/QrCodeViewer/QRCode.stories.js +46 -0
  11. package/app/QrCodeViewer/__stories__/Custom.d.ts +2 -0
  12. package/app/QrCodeViewer/__stories__/Custom.js +37 -0
  13. package/app/QrCodeViewer/__stories__/Default.d.ts +2 -0
  14. package/app/QrCodeViewer/__stories__/Default.js +24 -0
  15. package/app/QrCodeViewer/index.d.ts +8 -0
  16. package/app/QrCodeViewer/index.js +248 -0
  17. package/app/QrCodeViewer/index.mdx +21 -0
  18. package/app/QrCodeViewer/qrcodegen.d.ts +100 -0
  19. package/app/QrCodeViewer/qrcodegen.js +1086 -0
  20. package/app/QrCodeViewer/types.d.ts +29 -0
  21. package/app/QrCodeViewer/types.js +5 -0
  22. package/app/QrCodeViewer/utils.d.ts +11 -0
  23. package/app/QrCodeViewer/utils.js +108 -0
  24. package/app/index.d.ts +1 -0
  25. package/app/index.js +13 -0
  26. package/core/Accordion/Accordion.stories.playwright.json +27 -0
  27. package/core/BackLink/BackLink.stories.playwright.json +21 -0
  28. package/core/Breadcrumbs/Breadcrumbs.stories.playwright.json +33 -0
  29. package/core/Button/Button.stories.playwright.json +93 -0
  30. package/core/Card/Card.stories.playwright.json +21 -0
  31. package/core/Checkboxes/Checkbox.stories.playwright.json +55 -0
  32. package/core/DateInput/DateInput.stories.playwright.json +61 -0
  33. package/core/Details/Details.stories.playwright.json +27 -0
  34. package/core/ErrorSummary/ErrorSummary.stories.playwright.json +27 -0
  35. package/core/FileUpload/__stories__/Default.js +1 -1
  36. package/core/FileUpload/__stories__/WithErrorMessage.js +1 -1
  37. package/core/Link/Link.stories.playwright.json +65 -0
  38. package/core/List/List.stories.playwright.json +27 -0
  39. package/core/Masthead/Masthead.stories.playwright.json +21 -0
  40. package/core/NavList/NavList.stories.playwright.json +33 -0
  41. package/core/NotificationBanner/NotificationBanner.stories.playwright.json +49 -0
  42. package/core/PhaseBanner/PhaseBanner.stories.playwright.json +21 -0
  43. package/core/Radios/Radios.stories.playwright.json +49 -0
  44. package/core/Select/Select.stories.playwright.json +21 -0
  45. package/core/SummaryList/SummaryList.stories.playwright.json +27 -0
  46. package/core/Table/Table.stories.playwright.json +21 -0
  47. package/core/Tabs/Tabs.stories.playwright.json +27 -0
  48. package/core/TextArea/TextArea.stories.playwright.json +59 -0
  49. package/core/TextInput/TextInput.stories.playwright.json +43 -0
  50. package/es/admin/CopyToClipboard/CopyToClipboard.stories.playwright.json +37 -0
  51. package/es/admin/Dropdown/Dropdown.stories.playwright.json +21 -0
  52. package/es/admin/Modal/Modal.stories.playwright.json +37 -0
  53. package/es/admin/Pagination/Pagination.stories.playwright.json +27 -0
  54. package/es/admin/StepNav/StepNav.stories.playwright.json +33 -0
  55. package/es/app/Footer/Footer.stories.playwright.json +27 -0
  56. package/es/app/Header/Header.stories.playwright.json +33 -0
  57. package/es/app/QrCodeViewer/QRCode.stories.js +8 -0
  58. package/es/app/QrCodeViewer/__stories__/Custom.js +22 -0
  59. package/es/app/QrCodeViewer/__stories__/Default.js +11 -0
  60. package/es/app/QrCodeViewer/index.js +224 -0
  61. package/es/app/QrCodeViewer/index.mdx +21 -0
  62. package/es/app/QrCodeViewer/qrcodegen.js +1085 -0
  63. package/es/app/QrCodeViewer/types.js +1 -0
  64. package/es/app/QrCodeViewer/utils.js +95 -0
  65. package/es/app/index.js +1 -0
  66. package/es/core/Accordion/Accordion.stories.playwright.json +27 -0
  67. package/es/core/BackLink/BackLink.stories.playwright.json +21 -0
  68. package/es/core/Breadcrumbs/Breadcrumbs.stories.playwright.json +33 -0
  69. package/es/core/Button/Button.stories.playwright.json +93 -0
  70. package/es/core/Card/Card.stories.playwright.json +21 -0
  71. package/es/core/Checkboxes/Checkbox.stories.playwright.json +55 -0
  72. package/es/core/DateInput/DateInput.stories.playwright.json +61 -0
  73. package/es/core/Details/Details.stories.playwright.json +27 -0
  74. package/es/core/ErrorSummary/ErrorSummary.stories.playwright.json +27 -0
  75. package/es/core/FileUpload/__stories__/Default.js +1 -1
  76. package/es/core/FileUpload/__stories__/WithErrorMessage.js +1 -1
  77. package/es/core/Link/Link.stories.playwright.json +65 -0
  78. package/es/core/List/List.stories.playwright.json +27 -0
  79. package/es/core/Masthead/Masthead.stories.playwright.json +21 -0
  80. package/es/core/NavList/NavList.stories.playwright.json +33 -0
  81. package/es/core/NotificationBanner/NotificationBanner.stories.playwright.json +49 -0
  82. package/es/core/PhaseBanner/PhaseBanner.stories.playwright.json +21 -0
  83. package/es/core/Radios/Radios.stories.playwright.json +49 -0
  84. package/es/core/Select/Select.stories.playwright.json +21 -0
  85. package/es/core/SummaryList/SummaryList.stories.playwright.json +27 -0
  86. package/es/core/Table/Table.stories.playwright.json +21 -0
  87. package/es/core/Tabs/Tabs.stories.playwright.json +27 -0
  88. package/es/core/TextArea/TextArea.stories.playwright.json +59 -0
  89. package/es/core/TextInput/TextInput.stories.playwright.json +43 -0
  90. package/es/govgr/images/index.js +4 -0
  91. package/es/govgr/index.js +2 -1
  92. package/es/locales/el.js +1 -1
  93. package/es/locales/en.js +1 -1
  94. package/es/registry.js +18 -0
  95. package/esm/admin/CopyToClipboard/CopyToClipboard.stories.playwright.json +37 -0
  96. package/esm/admin/Dropdown/Dropdown.stories.playwright.json +21 -0
  97. package/esm/admin/Modal/Modal.stories.playwright.json +37 -0
  98. package/esm/admin/Pagination/Pagination.stories.playwright.json +27 -0
  99. package/esm/admin/StepNav/StepNav.stories.playwright.json +33 -0
  100. package/esm/app/Footer/Footer.stories.playwright.json +27 -0
  101. package/esm/app/Header/Header.stories.playwright.json +33 -0
  102. package/esm/app/QrCodeViewer/QRCode.stories.js +8 -0
  103. package/esm/app/QrCodeViewer/__stories__/Custom.js +22 -0
  104. package/esm/app/QrCodeViewer/__stories__/Default.js +11 -0
  105. package/esm/app/QrCodeViewer/index.js +224 -0
  106. package/esm/app/QrCodeViewer/index.mdx +21 -0
  107. package/esm/app/QrCodeViewer/qrcodegen.js +1085 -0
  108. package/esm/app/QrCodeViewer/types.js +1 -0
  109. package/esm/app/QrCodeViewer/utils.js +95 -0
  110. package/esm/app/index.js +1 -0
  111. package/esm/core/Accordion/Accordion.stories.playwright.json +27 -0
  112. package/esm/core/BackLink/BackLink.stories.playwright.json +21 -0
  113. package/esm/core/Breadcrumbs/Breadcrumbs.stories.playwright.json +33 -0
  114. package/esm/core/Button/Button.stories.playwright.json +93 -0
  115. package/esm/core/Card/Card.stories.playwright.json +21 -0
  116. package/esm/core/Checkboxes/Checkbox.stories.playwright.json +55 -0
  117. package/esm/core/DateInput/DateInput.stories.playwright.json +61 -0
  118. package/esm/core/Details/Details.stories.playwright.json +27 -0
  119. package/esm/core/ErrorSummary/ErrorSummary.stories.playwright.json +27 -0
  120. package/esm/core/FileUpload/__stories__/Default.js +1 -1
  121. package/esm/core/FileUpload/__stories__/WithErrorMessage.js +1 -1
  122. package/esm/core/Link/Link.stories.playwright.json +65 -0
  123. package/esm/core/List/List.stories.playwright.json +27 -0
  124. package/esm/core/Masthead/Masthead.stories.playwright.json +21 -0
  125. package/esm/core/NavList/NavList.stories.playwright.json +33 -0
  126. package/esm/core/NotificationBanner/NotificationBanner.stories.playwright.json +49 -0
  127. package/esm/core/PhaseBanner/PhaseBanner.stories.playwright.json +21 -0
  128. package/esm/core/Radios/Radios.stories.playwright.json +49 -0
  129. package/esm/core/Select/Select.stories.playwright.json +21 -0
  130. package/esm/core/SummaryList/SummaryList.stories.playwright.json +27 -0
  131. package/esm/core/Table/Table.stories.playwright.json +21 -0
  132. package/esm/core/Tabs/Tabs.stories.playwright.json +27 -0
  133. package/esm/core/TextArea/TextArea.stories.playwright.json +59 -0
  134. package/esm/core/TextInput/TextInput.stories.playwright.json +43 -0
  135. package/esm/govgr/images/index.js +4 -0
  136. package/esm/govgr/index.js +2 -1
  137. package/esm/index.js +1 -1
  138. package/esm/locales/el.js +1 -1
  139. package/esm/locales/en.js +1 -1
  140. package/esm/registry.js +18 -0
  141. package/govgr/images/govgr-logo-base64.d.ts +1 -1
  142. package/govgr/images/greek-government-base64.d.ts +1 -1
  143. package/govgr/images/grnet-logo-base64.d.ts +1 -1
  144. package/govgr/images/index.d.ts +4 -0
  145. package/govgr/images/index.js +57 -0
  146. package/govgr/images/minedu-logo-base64.d.ts +1 -1
  147. package/govgr/index.d.ts +1 -0
  148. package/govgr/index.js +13 -0
  149. package/locales/el.d.ts +1 -1
  150. package/locales/el.js +1 -1
  151. package/locales/en.d.ts +1 -1
  152. package/locales/en.js +1 -1
  153. package/package.json +3 -3
  154. package/registry.d.ts +9 -0
  155. package/registry.js +27 -0
@@ -0,0 +1,29 @@
1
+ import type { CSSProperties } from 'react';
2
+ import qrcodegen from '@digigov/ui/app/QrCodeViewer/qrcodegen';
3
+ export declare type QRProps = {
4
+ value: string;
5
+ size?: number;
6
+ level?: string;
7
+ bgColor?: string;
8
+ fgColor?: string;
9
+ style?: CSSProperties;
10
+ includeMargin?: boolean;
11
+ imageSettings?: ImageSettings;
12
+ };
13
+ export declare type QRPropsCanvas = QRProps & React.CanvasHTMLAttributes<HTMLCanvasElement>;
14
+ export declare type QRPropsSVG = QRProps & React.SVGProps<SVGSVGElement>;
15
+ export declare type Modules = ReturnType<qrcodegen.QrCode['getModules']>;
16
+ export declare type Excavation = {
17
+ x: number;
18
+ y: number;
19
+ w: number;
20
+ h: number;
21
+ };
22
+ export declare type ImageSettings = {
23
+ src: string;
24
+ height: number;
25
+ width: number;
26
+ excavate: boolean;
27
+ x?: number;
28
+ y?: number;
29
+ };
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1,11 @@
1
+ import { Modules, Excavation, ImageSettings } from '@digigov/ui/app/QrCodeViewer/types';
2
+ export declare const MARGIN_SIZE = 4;
3
+ export declare function generatePath(modules: Modules, margin?: number): string;
4
+ export declare function excavateModules(modules: Modules, excavation: Excavation): Modules;
5
+ export declare function getImageSettings(cells: Modules, size: number, includeMargin: boolean, imageSettings?: ImageSettings): null | {
6
+ x: number;
7
+ y: number;
8
+ h: number;
9
+ w: number;
10
+ excavation: Excavation | null;
11
+ };
@@ -0,0 +1,108 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.MARGIN_SIZE = void 0;
7
+ exports.excavateModules = excavateModules;
8
+ exports.generatePath = generatePath;
9
+ exports.getImageSettings = getImageSettings;
10
+ var DEFAULT_IMG_SCALE = 0.1;
11
+ var MARGIN_SIZE = 4;
12
+ exports.MARGIN_SIZE = MARGIN_SIZE;
13
+
14
+ function generatePath(modules) {
15
+ var margin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
16
+ var ops = [];
17
+ modules.forEach(function (row, y) {
18
+ var start = null;
19
+ row.forEach(function (cell, x) {
20
+ if (!cell && start !== null) {
21
+ // M0 0h7v1H0z injects the space with the move and drops the comma,
22
+ // saving a char per operation
23
+ ops.push("M".concat(start + margin, " ").concat(y + margin, "h").concat(x - start, "v1H").concat(start + margin, "z"));
24
+ start = null;
25
+ return;
26
+ } // end of row, clean up or skip
27
+
28
+
29
+ if (x === row.length - 1) {
30
+ if (!cell) {
31
+ // We would have closed the op above already so this can only mean
32
+ // 2+ light modules in a row.
33
+ return;
34
+ }
35
+
36
+ if (start === null) {
37
+ // Just a single dark module.
38
+ ops.push("M".concat(x + margin, ",").concat(y + margin, " h1v1H").concat(x + margin, "z"));
39
+ } else {
40
+ // Otherwise finish the current line.
41
+ ops.push("M".concat(start + margin, ",").concat(y + margin, " h").concat(x + 1 - start, "v1H").concat(start + margin, "z"));
42
+ }
43
+
44
+ return;
45
+ }
46
+
47
+ if (cell && start === null) {
48
+ start = x;
49
+ }
50
+ });
51
+ });
52
+ return ops.join('');
53
+ } // We could just do this in generatePath, except that we want to support
54
+ // non-Path2D canvas, so we need to keep it an explicit step.
55
+
56
+
57
+ function excavateModules(modules, excavation) {
58
+ return modules.slice().map(function (row, y) {
59
+ if (y < excavation.y || y >= excavation.y + excavation.h) {
60
+ return row;
61
+ }
62
+
63
+ return row.map(function (cell, x) {
64
+ if (x < excavation.x || x >= excavation.x + excavation.w) {
65
+ return cell;
66
+ }
67
+
68
+ return false;
69
+ });
70
+ });
71
+ }
72
+
73
+ function getImageSettings(cells, size, includeMargin, imageSettings) {
74
+ if (imageSettings == null) {
75
+ return null;
76
+ }
77
+
78
+ var margin = includeMargin ? MARGIN_SIZE : 0;
79
+ var numCells = cells.length + margin * 2;
80
+ var defaultSize = Math.floor(size * DEFAULT_IMG_SCALE);
81
+ var scale = numCells / size;
82
+ var w = (imageSettings.width || defaultSize) * scale;
83
+ var h = (imageSettings.height || defaultSize) * scale;
84
+ var x = imageSettings.x == null ? cells.length / 2 - w / 2 : imageSettings.x * scale;
85
+ var y = imageSettings.y == null ? cells.length / 2 - h / 2 : imageSettings.y * scale;
86
+ var excavation;
87
+
88
+ if (imageSettings.excavate) {
89
+ var floorX = Math.floor(x);
90
+ var floorY = Math.floor(y);
91
+ var ceilW = Math.ceil(w + x - floorX);
92
+ var ceilH = Math.ceil(h + y - floorY);
93
+ excavation = {
94
+ x: floorX,
95
+ y: floorY,
96
+ w: ceilW,
97
+ h: ceilH
98
+ };
99
+ }
100
+
101
+ return {
102
+ x: x,
103
+ y: y,
104
+ h: h,
105
+ w: w,
106
+ excavation: excavation
107
+ };
108
+ }
package/app/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from '@digigov/ui/app/App';
2
2
  export * from '@digigov/ui/app/PageTitle';
3
3
  export * from '@digigov/ui/app/QrCodeScanner';
4
+ export * from '@digigov/ui/app/QrCodeViewer';
4
5
  export * from '@digigov/ui/app/Header';
5
6
  export * from '@digigov/ui/app/i18n';
6
7
  export * from '@digigov/ui/app/I18nText';
package/app/index.js CHANGED
@@ -43,6 +43,19 @@ Object.keys(_QrCodeScanner).forEach(function (key) {
43
43
  });
44
44
  });
45
45
 
46
+ var _QrCodeViewer = require("@digigov/ui/app/QrCodeViewer");
47
+
48
+ Object.keys(_QrCodeViewer).forEach(function (key) {
49
+ if (key === "default" || key === "__esModule") return;
50
+ if (key in exports && exports[key] === _QrCodeViewer[key]) return;
51
+ Object.defineProperty(exports, key, {
52
+ enumerable: true,
53
+ get: function get() {
54
+ return _QrCodeViewer[key];
55
+ }
56
+ });
57
+ });
58
+
46
59
  var _Header = require("@digigov/ui/app/Header");
47
60
 
48
61
  Object.keys(_Header).forEach(function (key) {
@@ -0,0 +1,27 @@
1
+ {
2
+ "version": "4",
3
+ "stories": {
4
+ "digigov-ui-core-accordion--default": {
5
+ "actionSets": [
6
+ {
7
+ "actions": [
8
+ {
9
+ "name": "click",
10
+ "args": {
11
+ "selector": "html>body>div:nth-child(5)>div>details:nth-child(2)>summary"
12
+ }
13
+ },
14
+ {
15
+ "name": "click",
16
+ "args": {
17
+ "selector": "html>body>div:nth-child(5)>div>details:nth-child(2)>div>p"
18
+ }
19
+ }
20
+ ],
21
+ "id": "nJuTGfjq9kyK",
22
+ "title": "Mouse navigation"
23
+ }
24
+ ]
25
+ }
26
+ }
27
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "version": "4",
3
+ "stories": {
4
+ "digigov-ui-core-backlink--default": {
5
+ "actionSets": [
6
+ {
7
+ "actions": [
8
+ {
9
+ "name": "click",
10
+ "args": {
11
+ "selector": "html>body>div:nth-child(5)>a"
12
+ }
13
+ }
14
+ ],
15
+ "id": "a_FlKpwUM63r",
16
+ "title": "Click link"
17
+ }
18
+ ]
19
+ }
20
+ }
21
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "version": "4",
3
+ "stories": {
4
+ "digigov-ui-core-breadcrumbs--default": {
5
+ "actionSets": [
6
+ {
7
+ "actions": [
8
+ {
9
+ "name": "hover",
10
+ "args": {
11
+ "selector": "html>body>div:nth-child(5)>div>ol>li:nth-child(1)>a"
12
+ }
13
+ },
14
+ {
15
+ "name": "click",
16
+ "args": {
17
+ "selector": "html>body>div:nth-child(5)>div>ol>li:nth-child(1)>a"
18
+ }
19
+ },
20
+ {
21
+ "name": "keyboard.press",
22
+ "args": {
23
+ "key": "Tab"
24
+ }
25
+ }
26
+ ],
27
+ "id": "e5Uhj3zx5pff",
28
+ "title": "Hover and click"
29
+ }
30
+ ]
31
+ }
32
+ }
33
+ }
@@ -0,0 +1,93 @@
1
+ {
2
+ "version": "4",
3
+ "stories": {
4
+ "digigov-ui-core-button--primary": {
5
+ "actionSets": [
6
+ {
7
+ "actions": [
8
+ {
9
+ "name": "hover",
10
+ "args": {
11
+ "selector": "html>body>div:nth-child(5)>button"
12
+ }
13
+ },
14
+ {
15
+ "name": "click",
16
+ "args": {
17
+ "selector": "html>body>div:nth-child(5)>button"
18
+ }
19
+ }
20
+ ],
21
+ "id": "cxND_XOGkFHP",
22
+ "title": "Hover and click"
23
+ }
24
+ ]
25
+ },
26
+ "digigov-ui-core-button--secondary": {
27
+ "actionSets": [
28
+ {
29
+ "actions": [
30
+ {
31
+ "name": "hover",
32
+ "args": {
33
+ "selector": "html>body>div:nth-child(5)>button"
34
+ }
35
+ },
36
+ {
37
+ "name": "click",
38
+ "args": {
39
+ "selector": "html>body>div:nth-child(5)>button"
40
+ }
41
+ }
42
+ ],
43
+ "id": "7b4sRaZez9gb",
44
+ "title": "Hover and click"
45
+ }
46
+ ]
47
+ },
48
+ "digigov-ui-core-button--warning": {
49
+ "actionSets": [
50
+ {
51
+ "actions": [
52
+ {
53
+ "name": "hover",
54
+ "args": {
55
+ "selector": "html>body>div:nth-child(5)>button"
56
+ }
57
+ },
58
+ {
59
+ "name": "click",
60
+ "args": {
61
+ "selector": "html>body>div:nth-child(5)>button"
62
+ }
63
+ }
64
+ ],
65
+ "id": "-dtZHnNLRC7t",
66
+ "title": "Hover and click"
67
+ }
68
+ ]
69
+ },
70
+ "digigov-ui-core-button--grouping-buttons-and-links": {
71
+ "actionSets": [
72
+ {
73
+ "actions": [
74
+ {
75
+ "name": "keyboard.press",
76
+ "args": {
77
+ "key": "Tab"
78
+ }
79
+ },
80
+ {
81
+ "name": "keyboard.press",
82
+ "args": {
83
+ "key": "Tab"
84
+ }
85
+ }
86
+ ],
87
+ "id": "laasT0Qg9kvq",
88
+ "title": "Keyboard navigation"
89
+ }
90
+ ]
91
+ }
92
+ }
93
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "version": "4",
3
+ "stories": {
4
+ "digigov-ui-core-card--with-clickable-content": {
5
+ "actionSets": [
6
+ {
7
+ "actions": [
8
+ {
9
+ "name": "click",
10
+ "args": {
11
+ "selector": "html>body>div:nth-child(5)>div>div>div:nth-child(1)>a"
12
+ }
13
+ }
14
+ ],
15
+ "id": "BMjcXsopUT_n",
16
+ "title": "Click card"
17
+ }
18
+ ]
19
+ }
20
+ }
21
+ }
@@ -0,0 +1,55 @@
1
+ {
2
+ "version": "4",
3
+ "stories": {
4
+ "digigov-ui-core-checkboxes--multiple-questions": {
5
+ "actionSets": [
6
+ {
7
+ "actions": [
8
+ {
9
+ "name": "click",
10
+ "args": {
11
+ "selector": "html>body>div:nth-child(5)>div>fieldset>div>div:nth-child(1)>label>input"
12
+ }
13
+ }
14
+ ],
15
+ "id": "nEKElVkTn9rV",
16
+ "title": "check first box"
17
+ }
18
+ ]
19
+ },
20
+ "digigov-ui-core-checkboxes--with-hint": {
21
+ "actionSets": [
22
+ {
23
+ "actions": [
24
+ {
25
+ "name": "click",
26
+ "args": {
27
+ "selector": "html>body>div:nth-child(5)>div>fieldset>div>div:nth-child(1)>label>input"
28
+ }
29
+ },
30
+ {
31
+ "name": "click",
32
+ "args": {
33
+ "selector": "html>body>div:nth-child(5)>div>fieldset>div>div:nth-child(2)>label>input"
34
+ }
35
+ },
36
+ {
37
+ "name": "keyboard.press",
38
+ "args": {
39
+ "key": "Tab"
40
+ }
41
+ },
42
+ {
43
+ "name": "keyboard.press",
44
+ "args": {
45
+ "key": "Space"
46
+ }
47
+ }
48
+ ],
49
+ "id": "tlp6twL--N_s",
50
+ "title": "click first option"
51
+ }
52
+ ]
53
+ }
54
+ }
55
+ }
@@ -0,0 +1,61 @@
1
+ {
2
+ "version": "4",
3
+ "stories": {
4
+ "digigov-ui-core-dateinput--default": {
5
+ "actionSets": [
6
+ {
7
+ "actions": [
8
+ {
9
+ "name": "click",
10
+ "args": {
11
+ "selector": "html>body>div:nth-child(5)>div>fieldset>div>div:nth-child(1)>label>input"
12
+ }
13
+ },
14
+ {
15
+ "name": "keyboard.insertText",
16
+ "args": {
17
+ "text": "11"
18
+ }
19
+ }
20
+ ],
21
+ "id": "HEWnXMsN0nqw",
22
+ "title": "Actions with mouse"
23
+ }
24
+ ]
25
+ },
26
+ "digigov-ui-core-dateinput--with-error-message-for-single-field": {
27
+ "actionSets": [
28
+ {
29
+ "actions": [
30
+ {
31
+ "name": "keyboard.press",
32
+ "args": {
33
+ "key": "Tab"
34
+ }
35
+ },
36
+ {
37
+ "name": "keyboard.press",
38
+ "args": {
39
+ "key": "Tab"
40
+ }
41
+ },
42
+ {
43
+ "name": "keyboard.press",
44
+ "args": {
45
+ "key": "Tab"
46
+ }
47
+ },
48
+ {
49
+ "name": "keyboard.insertText",
50
+ "args": {
51
+ "text": "2022"
52
+ }
53
+ }
54
+ ],
55
+ "id": "5QICoU6J1W8E",
56
+ "title": "Actions with keyboard"
57
+ }
58
+ ]
59
+ }
60
+ }
61
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "version": "4",
3
+ "stories": {
4
+ "digigov-ui-core-details--default": {
5
+ "actionSets": [
6
+ {
7
+ "actions": [
8
+ {
9
+ "name": "click",
10
+ "args": {
11
+ "selector": "html>body>div:nth-child(5)>details>summary"
12
+ }
13
+ },
14
+ {
15
+ "name": "click",
16
+ "args": {
17
+ "selector": "html"
18
+ }
19
+ }
20
+ ],
21
+ "id": "Vmcdm2eBOyC1",
22
+ "title": "Open Details"
23
+ }
24
+ ]
25
+ }
26
+ }
27
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "version": "4",
3
+ "stories": {
4
+ "digigov-ui-core-errorsummary--linked-to-checkbox": {
5
+ "actionSets": [
6
+ {
7
+ "actions": [
8
+ {
9
+ "name": "keyboard.press",
10
+ "args": {
11
+ "key": "Tab"
12
+ }
13
+ },
14
+ {
15
+ "name": "keyboard.press",
16
+ "args": {
17
+ "key": "Enter"
18
+ }
19
+ }
20
+ ],
21
+ "id": "V4VBSZxQfqiJ",
22
+ "title": "Go to checkbox"
23
+ }
24
+ ]
25
+ }
26
+ }
27
+ }
@@ -23,7 +23,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
23
23
 
24
24
  var _ref = /*#__PURE__*/_react["default"].createElement(_Field["default"], null, /*#__PURE__*/_react["default"].createElement(_Field.Fieldset, null, /*#__PURE__*/_react["default"].createElement(_Field.FieldsetLegend, {
25
25
  size: "m"
26
- }, "\u038C\u03BD\u03BF\u03BC\u03B1 \u03B5\u03C0\u03B9\u03C7\u03B5\u03AF\u03C1\u03B7\u03C3\u03B7\u03C2"), /*#__PURE__*/_react["default"].createElement(_Hint["default"], null, "\u03A0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C3\u03C5\u03BC\u03C0\u03BB\u03B7\u03C1\u03CE\u03C3\u03B5\u03C4\u03B5 \u03C4\u03BF \u03C0\u03B5\u03B4\u03AF\u03BF."), /*#__PURE__*/_react["default"].createElement(_FileUpload["default"], null)));
26
+ }, "\u039B\u03BF\u03B3\u03CC\u03C4\u03C5\u03C0\u03BF \u03B5\u03C0\u03B9\u03C7\u03B5\u03AF\u03C1\u03B7\u03C3\u03B7\u03C2"), /*#__PURE__*/_react["default"].createElement(_Hint["default"], null, "\u03A0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C3\u03C5\u03BC\u03C0\u03BB\u03B7\u03C1\u03CE\u03C3\u03B5\u03C4\u03B5 \u03C4\u03BF \u03C0\u03B5\u03B4\u03AF\u03BF."), /*#__PURE__*/_react["default"].createElement(_FileUpload["default"], null, "\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03B1\u03C1\u03C7\u03B5\u03AF\u03BF\u03C5")));
27
27
 
28
28
  var Default = function Default() {
29
29
  return _ref;
@@ -29,7 +29,7 @@ var _ref = /*#__PURE__*/_react["default"].createElement(_Field["default"], {
29
29
  error: true
30
30
  }, /*#__PURE__*/_react["default"].createElement(_Field.Fieldset, null, /*#__PURE__*/_react["default"].createElement(_Field.FieldsetLegend, {
31
31
  size: "m"
32
- }, "\u038C\u03BD\u03BF\u03BC\u03B1 \u03B5\u03C0\u03B9\u03C7\u03B5\u03AF\u03C1\u03B7\u03C3\u03B7\u03C2"), /*#__PURE__*/_react["default"].createElement(_Hint["default"], null, "\u03A0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C3\u03C5\u03BC\u03C0\u03BB\u03B7\u03C1\u03CE\u03C3\u03B5\u03C4\u03B5 \u03C4\u03BF \u03C0\u03B5\u03B4\u03AF\u03BF."), /*#__PURE__*/_react["default"].createElement(_ErrorMessage["default"], null, /*#__PURE__*/_react["default"].createElement(_VisuallyHidden["default"], null, "\u039B\u03AC\u03B8\u03BF\u03C2:"), " \u03A4\u03BF \u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03BF \u03B1\u03C1\u03C7\u03B5\u03AF\u03BF \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03BC\u03B9\u03BA\u03C1\u03CC\u03C4\u03B5\u03C1\u03BF \u03B1\u03C0\u03CC 2MB."), /*#__PURE__*/_react["default"].createElement(_FileUpload["default"], null)));
32
+ }, "\u038C\u03BD\u03BF\u03BC\u03B1 \u03B5\u03C0\u03B9\u03C7\u03B5\u03AF\u03C1\u03B7\u03C3\u03B7\u03C2"), /*#__PURE__*/_react["default"].createElement(_Hint["default"], null, "\u03A0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C3\u03C5\u03BC\u03C0\u03BB\u03B7\u03C1\u03CE\u03C3\u03B5\u03C4\u03B5 \u03C4\u03BF \u03C0\u03B5\u03B4\u03AF\u03BF."), /*#__PURE__*/_react["default"].createElement(_ErrorMessage["default"], null, /*#__PURE__*/_react["default"].createElement(_VisuallyHidden["default"], null, "\u039B\u03AC\u03B8\u03BF\u03C2:"), " \u03A4\u03BF \u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03BF \u03B1\u03C1\u03C7\u03B5\u03AF\u03BF \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03BC\u03B9\u03BA\u03C1\u03CC\u03C4\u03B5\u03C1\u03BF \u03B1\u03C0\u03CC 2MB."), /*#__PURE__*/_react["default"].createElement(_FileUpload["default"], null, "\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03B1\u03C1\u03C7\u03B5\u03AF\u03BF\u03C5")));
33
33
 
34
34
  var WithErrorMessage = function WithErrorMessage() {
35
35
  return _ref;
@@ -0,0 +1,65 @@
1
+ {
2
+ "version": "4",
3
+ "stories": {
4
+ "digigov-ui-core-link--default": {
5
+ "actionSets": [
6
+ {
7
+ "actions": [
8
+ {
9
+ "name": "keyboard.press",
10
+ "args": {
11
+ "key": "Tab"
12
+ }
13
+ }
14
+ ],
15
+ "id": "JREsgOQhRp3C",
16
+ "title": "Focus"
17
+ }
18
+ ]
19
+ },
20
+ "digigov-ui-core-link--no-underline": {
21
+ "actionSets": [
22
+ {
23
+ "actions": [
24
+ {
25
+ "name": "hover",
26
+ "args": {
27
+ "selector": "html>body>div:nth-child(5)>a"
28
+ }
29
+ },
30
+ {
31
+ "name": "click",
32
+ "args": {
33
+ "selector": "html>body>div:nth-child(5)>a"
34
+ }
35
+ }
36
+ ],
37
+ "id": "P7WXxvHHLFfF",
38
+ "title": "Hover and focus"
39
+ }
40
+ ]
41
+ },
42
+ "digigov-ui-core-link--dark-background": {
43
+ "actionSets": [
44
+ {
45
+ "actions": [
46
+ {
47
+ "name": "hover",
48
+ "args": {
49
+ "selector": "html>body>div:nth-child(5)>div>a"
50
+ }
51
+ },
52
+ {
53
+ "name": "click",
54
+ "args": {
55
+ "selector": "html>body>div:nth-child(5)>div>a"
56
+ }
57
+ }
58
+ ],
59
+ "id": "YQJdyCc8F15c",
60
+ "title": "Hover and focus"
61
+ }
62
+ ]
63
+ }
64
+ }
65
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "version": "4",
3
+ "stories": {
4
+ "digigov-ui-core-list--default": {
5
+ "actionSets": [
6
+ {
7
+ "actions": [
8
+ {
9
+ "name": "keyboard.press",
10
+ "args": {
11
+ "key": "Tab"
12
+ }
13
+ },
14
+ {
15
+ "name": "keyboard.press",
16
+ "args": {
17
+ "key": "Tab"
18
+ }
19
+ }
20
+ ],
21
+ "id": "HP7t7DFo8MEt",
22
+ "title": "Navigate with tab"
23
+ }
24
+ ]
25
+ }
26
+ }
27
+ }