@digigov/ui 1.0.0-002c630d → 1.0.0-6b93ebf2
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/app/Header/__snapshots__/index.spec.tsx.snap +0 -3
- package/app/Header/index.d.ts +0 -1
- package/app/Header/index.js +0 -14
- package/app/Header/index.spec.js +1 -1
- package/app/Masthead/Masthead.stories.playwright.json +1 -1
- package/app/NotFound/index.js +9 -5
- package/app/PageTitle/index.d.ts +4 -5
- package/app/PageTitle/index.js +14 -34
- package/app/{Confirmation/Confirmation.stories.d.ts → Panel/Panel.stories.d.ts} +3 -3
- package/app/{Confirmation/Confirmation.stories.js → Panel/Panel.stories.js} +7 -7
- package/app/Panel/__stories__/Default.js +22 -0
- package/app/Panel/index.d.ts +5 -0
- package/app/{Confirmation → Panel}/index.js +13 -13
- package/app/Panel/index.mdx +20 -0
- package/app/ThemeOptions/index.js +4 -4
- package/app/index.d.ts +1 -1
- package/app/index.js +4 -4
- package/content/Table/Table.stories.d.ts +1 -0
- package/content/Table/Table.stories.js +14 -0
- package/content/Table/__stories__/DarkVariant.js +1 -1
- package/content/Table/__stories__/DarkVariantWithVerticalHeaders.js +1 -1
- package/content/Table/__stories__/Full.js +2 -2
- package/content/Table/__stories__/MultipleProps.js +2 -2
- package/content/Table/__stories__/RowColors.d.ts +2 -0
- package/content/Table/__stories__/RowColors.js +76 -0
- package/content/Table/__stories__/ZebraProp.js +1 -1
- package/content/Table/index.mdx +14 -40
- package/es/app/Header/__snapshots__/index.spec.tsx.snap +0 -3
- package/es/app/Header/index.js +0 -1
- package/es/app/Header/index.spec.js +2 -2
- package/es/app/Masthead/Masthead.stories.playwright.json +1 -1
- package/es/app/NotFound/index.js +3 -4
- package/es/app/PageTitle/index.js +4 -5
- package/es/app/Panel/Panel.stories.js +9 -0
- package/es/app/Panel/__stories__/Default.js +9 -0
- package/es/app/Panel/index.js +5 -0
- package/es/app/Panel/index.mdx +20 -0
- package/es/app/ThemeOptions/index.js +4 -4
- package/es/app/index.js +1 -1
- package/es/content/Table/Table.stories.js +1 -0
- package/es/content/Table/__stories__/DarkVariant.js +1 -1
- package/es/content/Table/__stories__/DarkVariantWithVerticalHeaders.js +1 -1
- package/es/content/Table/__stories__/Full.js +2 -2
- package/es/content/Table/__stories__/MultipleProps.js +2 -2
- package/es/content/Table/__stories__/RowColors.js +60 -0
- package/es/content/Table/__stories__/ZebraProp.js +1 -1
- package/es/content/Table/index.mdx +14 -40
- package/es/feedback/CopyToClipboard/__stories__/Default.js +2 -1
- package/es/feedback/CopyToClipboard/index.js +4 -2
- package/es/feedback/NotificationBanner/__stories__/Default.js +2 -2
- package/es/feedback/NotificationBanner/index.js +3 -6
- package/es/form/Checkbox/Checkbox.stories.js +2 -0
- package/es/form/Checkbox/__stories__/Inline.js +23 -0
- package/es/form/Checkbox/__stories__/InlineWithDivider.js +24 -0
- package/es/form/Checkbox/__stories__/NoneAnswer.js +1 -1
- package/es/form/Checkbox/__stories__/NoneAnswerWithError.js +1 -1
- package/es/form/RadioContainer/RadioContainer.stories.js +2 -1
- package/es/form/RadioContainer/__stories__/Inline.js +1 -1
- package/es/form/RadioContainer/__stories__/InlineWithDivider.js +24 -0
- package/es/layouts/Basic/__snapshots__/index.spec.tsx.snap +2 -2
- package/es/layouts/Divider/index.js +1 -1
- package/es/navigation/Link/Link.stories.playwright.json +2 -2
- package/es/registry.js +4 -6
- package/esm/app/Header/__snapshots__/index.spec.tsx.snap +0 -3
- package/esm/app/Header/index.js +0 -1
- package/esm/app/Header/index.spec.js +2 -2
- package/esm/app/Masthead/Masthead.stories.playwright.json +1 -1
- package/esm/app/NotFound/index.js +3 -4
- package/esm/app/PageTitle/index.js +4 -5
- package/esm/app/Panel/Panel.stories.js +9 -0
- package/esm/app/Panel/__stories__/Default.js +9 -0
- package/esm/app/Panel/index.js +5 -0
- package/esm/app/Panel/index.mdx +20 -0
- package/esm/app/ThemeOptions/index.js +4 -4
- package/esm/app/index.js +1 -1
- package/esm/content/Table/Table.stories.js +1 -0
- package/esm/content/Table/__stories__/DarkVariant.js +1 -1
- package/esm/content/Table/__stories__/DarkVariantWithVerticalHeaders.js +1 -1
- package/esm/content/Table/__stories__/Full.js +2 -2
- package/esm/content/Table/__stories__/MultipleProps.js +2 -2
- package/esm/content/Table/__stories__/RowColors.js +60 -0
- package/esm/content/Table/__stories__/ZebraProp.js +1 -1
- package/esm/content/Table/index.mdx +14 -40
- package/esm/feedback/CopyToClipboard/__stories__/Default.js +2 -1
- package/esm/feedback/CopyToClipboard/index.js +4 -2
- package/esm/feedback/NotificationBanner/__stories__/Default.js +2 -2
- package/esm/feedback/NotificationBanner/index.js +3 -6
- package/esm/form/Checkbox/Checkbox.stories.js +2 -0
- package/esm/form/Checkbox/__stories__/Inline.js +23 -0
- package/esm/form/Checkbox/__stories__/InlineWithDivider.js +24 -0
- package/esm/form/Checkbox/__stories__/NoneAnswer.js +1 -1
- package/esm/form/Checkbox/__stories__/NoneAnswerWithError.js +1 -1
- package/esm/form/RadioContainer/RadioContainer.stories.js +2 -1
- package/esm/form/RadioContainer/__stories__/Inline.js +1 -1
- package/esm/form/RadioContainer/__stories__/InlineWithDivider.js +24 -0
- package/esm/index.js +1 -1
- package/esm/layouts/Basic/__snapshots__/index.spec.tsx.snap +2 -2
- package/esm/layouts/Divider/index.js +1 -1
- package/esm/navigation/Link/Link.stories.playwright.json +2 -2
- package/esm/registry.js +4 -6
- package/feedback/CopyToClipboard/__stories__/Default.js +2 -1
- package/feedback/CopyToClipboard/index.d.ts +3 -5
- package/feedback/CopyToClipboard/index.js +4 -2
- package/feedback/NotificationBanner/__stories__/Default.js +2 -2
- package/feedback/NotificationBanner/index.d.ts +1 -1
- package/feedback/NotificationBanner/index.js +3 -6
- package/form/Checkbox/Checkbox.stories.d.ts +2 -0
- package/form/Checkbox/Checkbox.stories.js +28 -0
- package/form/Checkbox/__stories__/Inline.d.ts +2 -0
- package/form/Checkbox/__stories__/Inline.js +38 -0
- package/form/Checkbox/__stories__/InlineWithDivider.d.ts +2 -0
- package/form/Checkbox/__stories__/InlineWithDivider.js +39 -0
- package/form/Checkbox/__stories__/NoneAnswer.js +1 -1
- package/form/Checkbox/__stories__/NoneAnswerWithError.js +1 -1
- package/form/RadioContainer/RadioContainer.stories.d.ts +1 -0
- package/form/RadioContainer/RadioContainer.stories.js +14 -0
- package/form/RadioContainer/__stories__/Inline.js +1 -1
- package/form/RadioContainer/__stories__/InlineWithDivider.d.ts +2 -0
- package/form/RadioContainer/__stories__/InlineWithDivider.js +39 -0
- package/layouts/Basic/Content/index.d.ts +1 -1
- package/layouts/Basic/__snapshots__/index.spec.tsx.snap +2 -2
- package/layouts/Divider/index.d.ts +1 -1
- package/layouts/Divider/index.js +4 -4
- package/navigation/Link/Link.stories.playwright.json +2 -2
- package/package.json +3 -3
- package/registry.d.ts +3 -4
- package/registry.js +6 -9
- package/src/app/Header/__snapshots__/index.spec.tsx.snap +0 -3
- package/src/app/Header/index.spec.tsx +1 -6
- package/src/app/Header/index.tsx +0 -1
- package/src/app/Masthead/Masthead.stories.playwright.json +1 -1
- package/src/app/NotFound/index.tsx +4 -5
- package/src/app/PageTitle/index.tsx +4 -5
- package/src/app/Panel/Panel.stories.js +10 -0
- package/src/app/Panel/__stories__/Default.tsx +19 -0
- package/src/app/Panel/index.mdx +20 -0
- package/src/app/Panel/index.tsx +6 -0
- package/src/app/ThemeOptions/index.tsx +4 -4
- package/src/app/index.ts +1 -1
- package/src/content/Table/Table.stories.js +1 -0
- package/src/content/Table/__stories__/DarkVariant.tsx +1 -1
- package/src/content/Table/__stories__/DarkVariantWithVerticalHeaders.tsx +1 -1
- package/src/content/Table/__stories__/Full.tsx +1 -1
- package/src/content/Table/__stories__/MultipleProps.tsx +1 -1
- package/src/content/Table/__stories__/RowColors.tsx +96 -0
- package/src/content/Table/__stories__/ZebraProp.tsx +1 -1
- package/src/content/Table/index.mdx +14 -40
- package/src/feedback/CopyToClipboard/__stories__/Default.tsx +2 -1
- package/src/feedback/CopyToClipboard/index.tsx +4 -6
- package/src/feedback/NotificationBanner/__stories__/Default.tsx +2 -2
- package/src/feedback/NotificationBanner/index.tsx +6 -6
- package/src/form/Checkbox/Checkbox.stories.js +2 -0
- package/src/form/Checkbox/__stories__/Inline.tsx +32 -0
- package/src/form/Checkbox/__stories__/InlineWithDivider.tsx +32 -0
- package/src/form/Checkbox/__stories__/NoneAnswer.tsx +1 -1
- package/src/form/Checkbox/__stories__/NoneAnswerWithError.tsx +1 -1
- package/src/form/RadioContainer/RadioContainer.stories.js +1 -0
- package/src/form/RadioContainer/__stories__/Inline.tsx +1 -1
- package/src/form/RadioContainer/__stories__/InlineWithDivider.tsx +32 -0
- package/src/layouts/Basic/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/layouts/Divider/index.tsx +1 -1
- package/src/navigation/Link/Link.stories.playwright.json +2 -2
- package/src/registry.js +6 -8
- package/app/Confirmation/__stories__/Default.js +0 -22
- package/app/Confirmation/index.d.ts +0 -5
- package/app/Confirmation/index.mdx +0 -20
- package/app/Header/HeaderSubtitle.d.ts +0 -3
- package/app/Header/HeaderSubtitle.js +0 -19
- package/es/app/Confirmation/Confirmation.stories.js +0 -9
- package/es/app/Confirmation/__stories__/Default.js +0 -9
- package/es/app/Confirmation/index.js +0 -5
- package/es/app/Confirmation/index.mdx +0 -20
- package/es/app/Header/HeaderSubtitle.js +0 -3
- package/esm/app/Confirmation/Confirmation.stories.js +0 -9
- package/esm/app/Confirmation/__stories__/Default.js +0 -9
- package/esm/app/Confirmation/index.js +0 -5
- package/esm/app/Confirmation/index.mdx +0 -20
- package/esm/app/Header/HeaderSubtitle.js +0 -3
- package/src/app/Confirmation/Confirmation.stories.js +0 -10
- package/src/app/Confirmation/__stories__/Default.tsx +0 -19
- package/src/app/Confirmation/index.mdx +0 -20
- package/src/app/Confirmation/index.tsx +0 -6
- package/src/app/Header/HeaderSubtitle.tsx +0 -4
- /package/app/{Confirmation → Panel}/__stories__/Default.d.ts +0 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TableContainer, Table, TableCaption, TableHead, TableRow, TableBody, TableHeadCell, TableDataCell } from '@digigov/ui/content/Table';
|
|
3
|
+
import Link from '@digigov/ui/navigation/Link';
|
|
4
|
+
var data = {
|
|
5
|
+
title: 'Ειδοποιήσεις',
|
|
6
|
+
labels: {
|
|
7
|
+
date: 'Ημερομηνία',
|
|
8
|
+
title: 'Τίτλος',
|
|
9
|
+
actions: 'Ενέργειες'
|
|
10
|
+
},
|
|
11
|
+
content: [{
|
|
12
|
+
date: '24-07-23 16:34',
|
|
13
|
+
title: 'Ειδοποίηση',
|
|
14
|
+
actions: 'λεπτομέρειες',
|
|
15
|
+
"new": true
|
|
16
|
+
}, {
|
|
17
|
+
date: '24-07-23 12:41',
|
|
18
|
+
title: 'Μήνυμα υπηρεσίας',
|
|
19
|
+
actions: 'λεπτομέρειες',
|
|
20
|
+
"new": true
|
|
21
|
+
}, {
|
|
22
|
+
date: '24-07-23 12:40',
|
|
23
|
+
title: 'Μήνυμα από τον διαχειριστή',
|
|
24
|
+
actions: 'λεπτομέρειες',
|
|
25
|
+
"new": false
|
|
26
|
+
}, {
|
|
27
|
+
date: '23-07-23 15:14',
|
|
28
|
+
title: 'Έχετε συνδεθεί',
|
|
29
|
+
actions: 'λεπτομέρειες',
|
|
30
|
+
"new": false
|
|
31
|
+
}, {
|
|
32
|
+
date: '23-07-23 13:25',
|
|
33
|
+
title: 'Ο κωδικός άλλαξε',
|
|
34
|
+
actions: 'λεπτομέρειες',
|
|
35
|
+
"new": false
|
|
36
|
+
}]
|
|
37
|
+
};
|
|
38
|
+
export var RowColors = function RowColors() {
|
|
39
|
+
return /*#__PURE__*/React.createElement(TableContainer, null, /*#__PURE__*/React.createElement(Table, {
|
|
40
|
+
variant: "default"
|
|
41
|
+
}, data && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(TableCaption, null, data.title), /*#__PURE__*/React.createElement(TableHead, null, /*#__PURE__*/React.createElement(TableRow, null, data.labels && Object.keys(data.labels).map(function (key) {
|
|
42
|
+
return /*#__PURE__*/React.createElement(TableHeadCell, {
|
|
43
|
+
key: key
|
|
44
|
+
}, data.labels[key]);
|
|
45
|
+
}))), /*#__PURE__*/React.createElement(TableBody, null, data.content && data.content.map(function (item, index) {
|
|
46
|
+
return /*#__PURE__*/React.createElement(TableRow, {
|
|
47
|
+
key: index,
|
|
48
|
+
color: item["new"] ? 'primary' : 'secondary'
|
|
49
|
+
}, /*#__PURE__*/React.createElement(TableDataCell, {
|
|
50
|
+
"data-label": data.labels.date
|
|
51
|
+
}, item.date), /*#__PURE__*/React.createElement(TableDataCell, {
|
|
52
|
+
"data-label": data.labels.title
|
|
53
|
+
}, item.title), /*#__PURE__*/React.createElement(TableDataCell, {
|
|
54
|
+
"data-label": data.labels.actions
|
|
55
|
+
}, /*#__PURE__*/React.createElement(Link, {
|
|
56
|
+
href: "#"
|
|
57
|
+
}, item.actions)));
|
|
58
|
+
})))));
|
|
59
|
+
};
|
|
60
|
+
export default RowColors;
|
|
@@ -27,7 +27,7 @@ var data = {
|
|
|
27
27
|
};
|
|
28
28
|
export var ZebraProp = function ZebraProp() {
|
|
29
29
|
return /*#__PURE__*/React.createElement(TableContainer, null, /*#__PURE__*/React.createElement(Table, {
|
|
30
|
-
|
|
30
|
+
variant: "zebra"
|
|
31
31
|
}, data && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(TableCaption, null, data.title), /*#__PURE__*/React.createElement(TableHead, null, /*#__PURE__*/React.createElement(TableRow, null, data.labels && Object.keys(data.labels).map(function (key) {
|
|
32
32
|
return /*#__PURE__*/React.createElement(TableHeadCell, {
|
|
33
33
|
key: key
|
|
@@ -20,53 +20,35 @@ import {
|
|
|
20
20
|
|
|
21
21
|
## How to use
|
|
22
22
|
|
|
23
|
-
<Story
|
|
24
|
-
packageName="@digigov/ui"
|
|
25
|
-
component="content/Table"
|
|
26
|
-
story="Default.tsx"
|
|
27
|
-
/>
|
|
23
|
+
<Story packageName="@digigov/ui" component="content/Table" story="Default.tsx"/>
|
|
28
24
|
|
|
29
25
|
### Table with dark header
|
|
30
26
|
|
|
31
|
-
<Story
|
|
32
|
-
packageName="@digigov/ui"
|
|
33
|
-
component="content/Table"
|
|
34
|
-
story="DarkVariant.tsx"
|
|
35
|
-
/>
|
|
27
|
+
<Story packageName="@digigov/ui" component="content/Table" story="DarkVariant.tsx"/>
|
|
36
28
|
|
|
37
29
|
### Table captions
|
|
38
30
|
|
|
39
31
|
Use the `<TableCaption>` element to describe a table in the same way you would use a heading. A caption helps users find, navigate and understand tables.
|
|
40
32
|
|
|
41
|
-
<Story
|
|
42
|
-
packageName="@digigov/ui"
|
|
43
|
-
component="content/Table"
|
|
44
|
-
story="TableCaptions.tsx"
|
|
45
|
-
/>
|
|
33
|
+
<Story packageName="@digigov/ui" component="content/Table" story="TableCaptions.tsx"/>
|
|
46
34
|
|
|
47
35
|
### Numbers in a table
|
|
48
36
|
|
|
49
|
-
<Story
|
|
50
|
-
packageName="@digigov/ui"
|
|
51
|
-
component="content/Table"
|
|
52
|
-
story="NumericDataType.tsx"
|
|
53
|
-
/>
|
|
37
|
+
<Story packageName="@digigov/ui" component="content/Table" story="NumericDataType.tsx"/>
|
|
54
38
|
|
|
55
39
|
### Zebra rows
|
|
56
40
|
|
|
57
|
-
<Story
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
41
|
+
<Story packageName="@digigov/ui" component="content/Table" story="ZebraProp.tsx"/>
|
|
42
|
+
|
|
43
|
+
### Rows with primary or secondary color
|
|
44
|
+
|
|
45
|
+
The prop `color='primary'` or `color='secondary'` is only functional when Table component has `variant='default'`.
|
|
46
|
+
|
|
47
|
+
<Story packageName="@digigov/ui" component="content/Table" story="RowColors.tsx"/>
|
|
62
48
|
|
|
63
49
|
### Vertical lines
|
|
64
50
|
|
|
65
|
-
<Story
|
|
66
|
-
packageName="@digigov/ui"
|
|
67
|
-
component="content/Table"
|
|
68
|
-
story="VerticalBorders.tsx"
|
|
69
|
-
/>
|
|
51
|
+
<Story packageName="@digigov/ui" component="content/Table" story="VerticalBorders.tsx" />
|
|
70
52
|
|
|
71
53
|
### Dense tables
|
|
72
54
|
|
|
@@ -74,11 +56,7 @@ Use the `<TableCaption>` element to describe a table in the same way you would u
|
|
|
74
56
|
|
|
75
57
|
### Custom column widths
|
|
76
58
|
|
|
77
|
-
<Story
|
|
78
|
-
packageName="@digigov/ui"
|
|
79
|
-
component="content/Table"
|
|
80
|
-
story="DefinedWidth.tsx"
|
|
81
|
-
/>
|
|
59
|
+
<Story packageName="@digigov/ui" component="content/Table" story="DefinedWidth.tsx"/>
|
|
82
60
|
|
|
83
61
|
### No data
|
|
84
62
|
|
|
@@ -86,11 +64,7 @@ Use the `<TableCaption>` element to describe a table in the same way you would u
|
|
|
86
64
|
|
|
87
65
|
### Using loader
|
|
88
66
|
|
|
89
|
-
<Story
|
|
90
|
-
packageName="@digigov/ui"
|
|
91
|
-
component="content/Table"
|
|
92
|
-
story="WithLoader.tsx"
|
|
93
|
-
/>
|
|
67
|
+
<Story packageName="@digigov/ui" component="content/Table" story="WithLoader.tsx"/>
|
|
94
68
|
|
|
95
69
|
## Accessibility
|
|
96
70
|
|
|
@@ -4,7 +4,8 @@ import { Button } from '@digigov/ui/form/Button';
|
|
|
4
4
|
|
|
5
5
|
var _ref = /*#__PURE__*/React.createElement(CopyToClipboard, {
|
|
6
6
|
text: "copied-text",
|
|
7
|
-
variant: "tooltip
|
|
7
|
+
variant: "tooltip",
|
|
8
|
+
tooltipAlign: "left",
|
|
8
9
|
message: "\u0391\u03BD\u03C4\u03B9\u03B3\u03C1\u03AC\u03C6\u03B7\u03BA\u03B5 \u03C3\u03C4\u03BF \u03C0\u03C1\u03CC\u03C7\u03B5\u03B9\u03C1\u03BF",
|
|
9
10
|
id: "copy-to-clipboard"
|
|
10
11
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
@@ -7,7 +7,9 @@ import NormalText from '@digigov/ui/typography/NormalText';
|
|
|
7
7
|
export var CopyToClipboard = /*#__PURE__*/React.forwardRef(function CopyToClipboard(_ref, ref) {
|
|
8
8
|
var text = _ref.text,
|
|
9
9
|
_ref$variant = _ref.variant,
|
|
10
|
-
variant = _ref$variant === void 0 ? 'tooltip
|
|
10
|
+
variant = _ref$variant === void 0 ? 'tooltip' : _ref$variant,
|
|
11
|
+
_ref$tooltipAlign = _ref.tooltipAlign,
|
|
12
|
+
tooltipAlign = _ref$tooltipAlign === void 0 ? 'right' : _ref$tooltipAlign,
|
|
11
13
|
message = _ref.message,
|
|
12
14
|
_ref$timeout = _ref.timeout,
|
|
13
15
|
timeout = _ref$timeout === void 0 ? 3000 : _ref$timeout,
|
|
@@ -38,9 +40,9 @@ export var CopyToClipboard = /*#__PURE__*/React.forwardRef(function CopyToClipbo
|
|
|
38
40
|
return /*#__PURE__*/React.createElement(CopyToClipboardContainer, {
|
|
39
41
|
onClick: copyToClipboard,
|
|
40
42
|
variant: variant,
|
|
43
|
+
tooltipAlign: tooltipAlign,
|
|
41
44
|
ref: ref
|
|
42
45
|
}, children, enabled && /*#__PURE__*/React.createElement(CopyToClipboardMessage, {
|
|
43
|
-
variant: variant,
|
|
44
46
|
enabled: enabled,
|
|
45
47
|
role: "tooltip"
|
|
46
48
|
}, /*#__PURE__*/React.createElement(NormalText, null, message || t('copy-to-clipboard.message'))));
|
|
@@ -2,11 +2,11 @@ import React from 'react';
|
|
|
2
2
|
import { NotificationBanner } from '@digigov/ui/feedback/NotificationBanner';
|
|
3
3
|
export var Default = function Default() {
|
|
4
4
|
return /*#__PURE__*/React.createElement(NotificationBanner, {
|
|
5
|
-
title: "\
|
|
5
|
+
title: "\u0395\u03B9\u03B4\u03BF\u03C0\u03BF\u03AF\u03B7\u03C3\u03B7",
|
|
6
6
|
link: {
|
|
7
7
|
label: 'Προβολή αίτησης',
|
|
8
8
|
href: '#link?name=NotificationBannerDefault'
|
|
9
9
|
}
|
|
10
|
-
}, "\
|
|
10
|
+
}, "\u03A3\u03B5 7 \u03B7\u03BC\u03AD\u03C1\u03B5\u03C2 \u03B8\u03B1 \u03BC\u03C0\u03BF\u03C1\u03B5\u03AF\u03C4\u03B5 \u03BD\u03B1 \u03C5\u03C0\u03BF\u03B2\u03AC\u03BB\u03B5\u03C4\u03B5 \u03C4\u03B7\u03BD \u03B1\u03AF\u03C4\u03B7\u03C3\u03B7.");
|
|
11
11
|
};
|
|
12
12
|
export default Default;
|
|
@@ -11,18 +11,15 @@ import NotificationBannerLink from '@digigov/react-core/NotificationBannerLink';
|
|
|
11
11
|
var _ref2 = /*#__PURE__*/React.createElement("br", null);
|
|
12
12
|
|
|
13
13
|
export var NotificationBanner = function NotificationBanner(_ref) {
|
|
14
|
-
var
|
|
15
|
-
variant = _ref$variant === void 0 ? 'important' : _ref$variant,
|
|
14
|
+
var variant = _ref.variant,
|
|
16
15
|
title = _ref.title,
|
|
17
16
|
link = _ref.link,
|
|
18
17
|
children = _ref.children,
|
|
19
18
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
20
19
|
|
|
21
|
-
var success = variant === 'success';
|
|
22
|
-
title = title ? title : success ? 'Success' : 'Important';
|
|
23
20
|
return /*#__PURE__*/React.createElement(NotificationBannerContainer, _extends({
|
|
24
|
-
|
|
25
|
-
}, props), /*#__PURE__*/React.createElement(NotificationBannerHeader, null, title), /*#__PURE__*/React.createElement(NotificationBannerContent, null, /*#__PURE__*/React.createElement(NotificationBannerHeading, null, children, _ref2, link && /*#__PURE__*/React.createElement(NotificationBannerLink, {
|
|
21
|
+
variant: variant
|
|
22
|
+
}, props), title && /*#__PURE__*/React.createElement(NotificationBannerHeader, null, title), /*#__PURE__*/React.createElement(NotificationBannerContent, null, /*#__PURE__*/React.createElement(NotificationBannerHeading, null, children, _ref2, link && /*#__PURE__*/React.createElement(NotificationBannerLink, {
|
|
26
23
|
href: link.href
|
|
27
24
|
}, link.label))));
|
|
28
25
|
};
|
|
@@ -7,6 +7,8 @@ export default {
|
|
|
7
7
|
displayName: 'Checkbox'
|
|
8
8
|
};
|
|
9
9
|
export * from '@digigov/ui/form/Checkbox/__stories__/Default';
|
|
10
|
+
export * from '@digigov/ui/form/Checkbox/__stories__/Inline';
|
|
11
|
+
export * from '@digigov/ui/form/Checkbox/__stories__/InlineWithDivider';
|
|
10
12
|
export * from '@digigov/ui/form/Checkbox/__stories__/MultipleQuestions';
|
|
11
13
|
export * from '@digigov/ui/form/Checkbox/__stories__/WithHint';
|
|
12
14
|
export * from '@digigov/ui/form/Checkbox/__stories__/NoneAnswer';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Checkbox, CheckboxItem } from '@digigov/ui/form/Checkbox';
|
|
3
|
+
import { FieldContainer, Fieldset, FieldsetLegend } from '@digigov/ui/form/FieldContainer';
|
|
4
|
+
import { Hint } from '@digigov/ui/typography/Hint';
|
|
5
|
+
|
|
6
|
+
var _ref = /*#__PURE__*/React.createElement(FieldContainer, null, /*#__PURE__*/React.createElement(Fieldset, {
|
|
7
|
+
"aria-describedby": "feeling-hint"
|
|
8
|
+
}, /*#__PURE__*/React.createElement(FieldsetLegend, null, "\u03A0\u03CE\u03C2 \u03B1\u03B9\u03C3\u03B8\u03AC\u03BD\u03B5\u03C4\u03B1\u03B9 \u03B1\u03C5\u03C4\u03AE \u03C4\u03B7 \u03C3\u03C4\u03B9\u03B3\u03BC\u03AE;"), /*#__PURE__*/React.createElement(Hint, {
|
|
9
|
+
id: "feeling-hint"
|
|
10
|
+
}, "\u03A0\u03B5\u03AF\u03C4\u03B5 \u03BC\u03B1\u03C2 \u03C3\u03C7\u03B5\u03C4\u03B9\u03BA\u03AC \u03BC\u03B5 \u03C0\u03C1\u03CC\u03C3\u03C6\u03B1\u03C4\u03B5\u03C2 \u03B1\u03BB\u03BB\u03B1\u03B3\u03AD\u03C2. \u0395\u03C0\u03B9\u03BB\u03AD\u03BE\u03C4\u03B5 \u03CC,\u03C4\u03B9 \u03B9\u03C3\u03C7\u03CD\u03B5\u03B9."), /*#__PURE__*/React.createElement(Checkbox, {
|
|
11
|
+
layout: "horizontal"
|
|
12
|
+
}, /*#__PURE__*/React.createElement(CheckboxItem, {
|
|
13
|
+
name: "feeling",
|
|
14
|
+
value: "cold"
|
|
15
|
+
}, "\u0388\u03C7\u03C9 \u03C3\u03C5\u03BD\u03AC\u03C7\u03B9"), /*#__PURE__*/React.createElement(CheckboxItem, {
|
|
16
|
+
name: "feeling",
|
|
17
|
+
value: "fever"
|
|
18
|
+
}, "\u0388\u03C7\u03C9 \u03C0\u03C5\u03C1\u03B5\u03C4\u03CC"))));
|
|
19
|
+
|
|
20
|
+
export var Inline = function Inline() {
|
|
21
|
+
return _ref;
|
|
22
|
+
};
|
|
23
|
+
export default Inline;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Checkbox, CheckboxItem } from '@digigov/ui/form/Checkbox';
|
|
3
|
+
import { FieldContainer, Fieldset, FieldsetLegend } from '@digigov/ui/form/FieldContainer';
|
|
4
|
+
import { Hint } from '@digigov/ui/typography/Hint';
|
|
5
|
+
|
|
6
|
+
var _ref = /*#__PURE__*/React.createElement(FieldContainer, null, /*#__PURE__*/React.createElement(Fieldset, {
|
|
7
|
+
"aria-describedby": "feeling-hint"
|
|
8
|
+
}, /*#__PURE__*/React.createElement(FieldsetLegend, null, "\u03A0\u03CE\u03C2 \u03B1\u03B9\u03C3\u03B8\u03AC\u03BD\u03B5\u03C4\u03B1\u03B9 \u03B1\u03C5\u03C4\u03AE \u03C4\u03B7 \u03C3\u03C4\u03B9\u03B3\u03BC\u03AE;"), /*#__PURE__*/React.createElement(Hint, {
|
|
9
|
+
id: "feeling-hint"
|
|
10
|
+
}, "\u03A0\u03B5\u03AF\u03C4\u03B5 \u03BC\u03B1\u03C2 \u03C3\u03C7\u03B5\u03C4\u03B9\u03BA\u03AC \u03BC\u03B5 \u03C0\u03C1\u03CC\u03C3\u03C6\u03B1\u03C4\u03B5\u03C2 \u03B1\u03BB\u03BB\u03B1\u03B3\u03AD\u03C2. \u0395\u03C0\u03B9\u03BB\u03AD\u03BE\u03C4\u03B5 \u03CC,\u03C4\u03B9 \u03B9\u03C3\u03C7\u03CD\u03B5\u03B9."), /*#__PURE__*/React.createElement(Checkbox, {
|
|
11
|
+
layout: "horizontal"
|
|
12
|
+
}, /*#__PURE__*/React.createElement(CheckboxItem, {
|
|
13
|
+
name: "feeling",
|
|
14
|
+
value: "cold"
|
|
15
|
+
}, "\u0388\u03C7\u03C9 \u03C3\u03C5\u03BD\u03AC\u03C7\u03B9"), /*#__PURE__*/React.createElement(CheckboxItem, {
|
|
16
|
+
name: "feeling",
|
|
17
|
+
value: "fever",
|
|
18
|
+
dividerText: "\u03AE"
|
|
19
|
+
}, "\u0388\u03C7\u03C9 \u03C0\u03C5\u03C1\u03B5\u03C4\u03CC"))));
|
|
20
|
+
|
|
21
|
+
export var InlineWithDivider = function InlineWithDivider() {
|
|
22
|
+
return _ref;
|
|
23
|
+
};
|
|
24
|
+
export default InlineWithDivider;
|
|
@@ -11,7 +11,7 @@ var _ref = /*#__PURE__*/React.createElement(FieldContainer, null, /*#__PURE__*/R
|
|
|
11
11
|
}, "\u0393\u03B1\u03BB\u03BB\u03AF\u03B1"), /*#__PURE__*/React.createElement(CheckboxItem, {
|
|
12
12
|
name: "fatigue",
|
|
13
13
|
value: "fatigue",
|
|
14
|
-
|
|
14
|
+
dividerText: "\u03AE"
|
|
15
15
|
}, "\u038C\u03C7\u03B9, \u03B4\u03B5\u03BD \u03B8\u03B1 \u03C4\u03B1\u03BE\u03B9\u03B4\u03AD\u03C8\u03C9 \u03C3\u03B5 \u03BA\u03B1\u03BC\u03AF\u03B1 \u03B1\u03C0\u03CC \u03B1\u03C5\u03C4\u03AD\u03C2 \u03C4\u03B9\u03C2 \u03C7\u03CE\u03C1\u03B5\u03C2"))));
|
|
16
16
|
|
|
17
17
|
export var NoneAnswer = function NoneAnswer() {
|
|
@@ -15,7 +15,7 @@ var _ref = /*#__PURE__*/React.createElement(FieldContainer, {
|
|
|
15
15
|
name: "country",
|
|
16
16
|
value: "fr"
|
|
17
17
|
}, "\u0393\u03B1\u03BB\u03BB\u03AF\u03B1"), /*#__PURE__*/React.createElement(CheckboxItem, {
|
|
18
|
-
|
|
18
|
+
dividerText: "\u03AE",
|
|
19
19
|
name: "country",
|
|
20
20
|
value: "none"
|
|
21
21
|
}, "\u038C\u03C7\u03B9, \u03B4\u03B5\u03BD \u03B8\u03B1 \u03C4\u03B1\u03BE\u03B9\u03B4\u03AD\u03C8\u03C9 \u03C3\u03B5 \u03BA\u03B1\u03BC\u03AF\u03B1 \u03B1\u03C0\u03CC \u03B1\u03C5\u03C4\u03AD\u03C2 \u03C4\u03B9\u03C2 \u03C7\u03CE\u03C1\u03B5\u03C2"))));
|
|
@@ -12,4 +12,5 @@ export * from '@digigov/ui/form/RadioContainer/__stories__/Inline';
|
|
|
12
12
|
export * from '@digigov/ui/form/RadioContainer/__stories__/WithHints';
|
|
13
13
|
export * from '@digigov/ui/form/RadioContainer/__stories__/NoneAnswer';
|
|
14
14
|
export * from '@digigov/ui/form/RadioContainer/__stories__/WithErrorMessage';
|
|
15
|
-
export * from '@digigov/ui/form/RadioContainer/__stories__/ConditionalReveal';
|
|
15
|
+
export * from '@digigov/ui/form/RadioContainer/__stories__/ConditionalReveal';
|
|
16
|
+
export * from '@digigov/ui/form/RadioContainer/__stories__/InlineWithDivider';
|
|
@@ -8,7 +8,7 @@ var _ref = /*#__PURE__*/React.createElement(FieldContainer, null, /*#__PURE__*/R
|
|
|
8
8
|
}, /*#__PURE__*/React.createElement(FieldsetLegend, null, "\u0388\u03C7\u03B5\u03C4\u03B5 \u03B1\u03BB\u03BB\u03AC\u03BE\u03B5\u03B9 \u03C4\u03BF \u03CC\u03BD\u03BF\u03BC\u03B1 \u03C3\u03B1\u03C2;"), /*#__PURE__*/React.createElement(Hint, {
|
|
9
9
|
id: "name-hint"
|
|
10
10
|
}, "\u03A3\u03C5\u03BC\u03C0\u03B5\u03C1\u03B9\u03BB\u03B1\u03BC\u03B2\u03AC\u03BD\u03B5\u03C4\u03B1\u03B9 \u03B1\u03BB\u03BB\u03B1\u03B3\u03AE \u03C4\u03BF\u03C5 \u03B5\u03C0\u03AF\u03B8\u03B5\u03C4\u03BF\u03C5 \u03C3\u03B1\u03C2 \u03AE \u03B1\u03BB\u03BB\u03B1\u03B3\u03AE \u03C4\u03BF\u03C5 \u03C4\u03C1\u03CC\u03C0\u03BF\u03C5 \u03C0\u03BF\u03C5 \u03B3\u03C1\u03AC\u03C6\u03B5\u03C4\u03B5 \u03C4\u03BF \u03CC\u03BD\u03BF\u03BC\u03B1 \u03C3\u03B1\u03C2."), /*#__PURE__*/React.createElement(RadioContainer, {
|
|
11
|
-
|
|
11
|
+
layout: "horizontal"
|
|
12
12
|
}, /*#__PURE__*/React.createElement(RadioItem, {
|
|
13
13
|
name: "changed_name",
|
|
14
14
|
value: "yes"
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FieldContainer, Fieldset, FieldsetLegend } from '@digigov/ui/form/FieldContainer';
|
|
3
|
+
import { RadioContainer, RadioItem } from '@digigov/ui/form/RadioContainer';
|
|
4
|
+
import { Hint } from '@digigov/ui/typography/Hint';
|
|
5
|
+
|
|
6
|
+
var _ref = /*#__PURE__*/React.createElement(FieldContainer, null, /*#__PURE__*/React.createElement(Fieldset, {
|
|
7
|
+
"aria-describedby": "name-hint"
|
|
8
|
+
}, /*#__PURE__*/React.createElement(FieldsetLegend, null, "\u0388\u03C7\u03B5\u03C4\u03B5 \u03B1\u03BB\u03BB\u03AC\u03BE\u03B5\u03B9 \u03C4\u03BF \u03CC\u03BD\u03BF\u03BC\u03B1 \u03C3\u03B1\u03C2;"), /*#__PURE__*/React.createElement(Hint, {
|
|
9
|
+
id: "name-hint"
|
|
10
|
+
}, "\u03A3\u03C5\u03BC\u03C0\u03B5\u03C1\u03B9\u03BB\u03B1\u03BC\u03B2\u03AC\u03BD\u03B5\u03C4\u03B1\u03B9 \u03B1\u03BB\u03BB\u03B1\u03B3\u03AE \u03C4\u03BF\u03C5 \u03B5\u03C0\u03AF\u03B8\u03B5\u03C4\u03BF\u03C5 \u03C3\u03B1\u03C2 \u03AE \u03B1\u03BB\u03BB\u03B1\u03B3\u03AE \u03C4\u03BF\u03C5 \u03C4\u03C1\u03CC\u03C0\u03BF\u03C5 \u03C0\u03BF\u03C5 \u03B3\u03C1\u03AC\u03C6\u03B5\u03C4\u03B5 \u03C4\u03BF \u03CC\u03BD\u03BF\u03BC\u03B1 \u03C3\u03B1\u03C2."), /*#__PURE__*/React.createElement(RadioContainer, {
|
|
11
|
+
layout: "horizontal"
|
|
12
|
+
}, /*#__PURE__*/React.createElement(RadioItem, {
|
|
13
|
+
name: "changed_name",
|
|
14
|
+
value: "yes"
|
|
15
|
+
}, "\u039D\u03B1\u03B9"), /*#__PURE__*/React.createElement(RadioItem, {
|
|
16
|
+
name: "changed_name",
|
|
17
|
+
value: "no",
|
|
18
|
+
divider: "\u03AE"
|
|
19
|
+
}, "\u038C\u03C7\u03B9"))));
|
|
20
|
+
|
|
21
|
+
export var InlineWithDivider = function InlineWithDivider() {
|
|
22
|
+
return _ref;
|
|
23
|
+
};
|
|
24
|
+
export default InlineWithDivider;
|
package/esm/index.js
CHANGED
|
@@ -25,10 +25,10 @@ exports[`renders the BasicLayout with Top, Content, Bottom, Main and Side childr
|
|
|
25
25
|
<ForwardRef(Container)>
|
|
26
26
|
<ForwardRef(Base)
|
|
27
27
|
as="div"
|
|
28
|
-
className="govgr-
|
|
28
|
+
className="govgr-container"
|
|
29
29
|
>
|
|
30
30
|
<div
|
|
31
|
-
className="govgr-
|
|
31
|
+
className="govgr-container"
|
|
32
32
|
>
|
|
33
33
|
<ForwardRef(Base)
|
|
34
34
|
as="div"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import CoreSectionBreak from '@digigov/react-core/SectionBreak';
|
|
2
2
|
import withDeprecation from '@digigov/ui/utils/withDeprecation';
|
|
3
|
-
export * from '@digigov/react-core/
|
|
3
|
+
export * from '@digigov/react-core/ChoiceDividerText';
|
|
4
4
|
export var Divider = withDeprecation(CoreSectionBreak, {
|
|
5
5
|
name: 'Divider',
|
|
6
6
|
rename: 'SectionBreak'
|
|
@@ -46,13 +46,13 @@
|
|
|
46
46
|
{
|
|
47
47
|
"name": "hover",
|
|
48
48
|
"args": {
|
|
49
|
-
"selector": "html>body>div:nth-child(5)>
|
|
49
|
+
"selector": "html>body>div:nth-child(5)>section>a"
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
"name": "click",
|
|
54
54
|
"args": {
|
|
55
|
-
"selector": "html>body>div:nth-child(5)>
|
|
55
|
+
"selector": "html>body>div:nth-child(5)>section>a"
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
],
|
package/esm/registry.js
CHANGED
|
@@ -10,7 +10,6 @@ import * as _digigov_ui_app_AccessibilityMenu from '@digigov/ui/app/Accessibilit
|
|
|
10
10
|
import * as _digigov_ui_app_App from '@digigov/ui/app/App';
|
|
11
11
|
import * as _digigov_ui_app_BannerContainer from '@digigov/ui/app/BannerContainer';
|
|
12
12
|
import * as _digigov_ui_app_BottomInfo from '@digigov/ui/app/BottomInfo';
|
|
13
|
-
import * as _digigov_ui_app_Confirmation from '@digigov/ui/app/Confirmation';
|
|
14
13
|
import * as _digigov_ui_app_FilterSection from '@digigov/ui/app/FilterSection';
|
|
15
14
|
import * as _digigov_ui_app_Footer from '@digigov/ui/app/Footer';
|
|
16
15
|
import * as _digigov_ui_app_Header_HeaderContent from '@digigov/ui/app/Header/HeaderContent';
|
|
@@ -18,7 +17,6 @@ import * as _digigov_ui_app_Header_HeaderLogo from '@digigov/ui/app/Header/Heade
|
|
|
18
17
|
import * as _digigov_ui_app_Header_HeaderNavMenuContent from '@digigov/ui/app/Header/HeaderNavMenuContent';
|
|
19
18
|
import * as _digigov_ui_app_Header_HeaderSecondaryLogo from '@digigov/ui/app/Header/HeaderSecondaryLogo';
|
|
20
19
|
import * as _digigov_ui_app_Header_HeaderSection from '@digigov/ui/app/Header/HeaderSection';
|
|
21
|
-
import * as _digigov_ui_app_Header_HeaderSubtitle from '@digigov/ui/app/Header/HeaderSubtitle';
|
|
22
20
|
import * as _digigov_ui_app_Header_HeaderTitle from '@digigov/ui/app/Header/HeaderTitle';
|
|
23
21
|
import * as _digigov_ui_app_Header from '@digigov/ui/app/Header';
|
|
24
22
|
import * as _digigov_ui_app_hooks_useFontSize from '@digigov/ui/app/hooks/useFontSize';
|
|
@@ -36,6 +34,7 @@ import * as _digigov_ui_app_OutdatedBrowserBanner_hooks_evaluateBrowserVersion f
|
|
|
36
34
|
import * as _digigov_ui_app_OutdatedBrowserBanner_hooks_useOutdatedBrowserCheck from '@digigov/ui/app/OutdatedBrowserBanner/hooks/useOutdatedBrowserCheck';
|
|
37
35
|
import * as _digigov_ui_app_OutdatedBrowserBanner from '@digigov/ui/app/OutdatedBrowserBanner';
|
|
38
36
|
import * as _digigov_ui_app_PageTitle from '@digigov/ui/app/PageTitle';
|
|
37
|
+
import * as _digigov_ui_app_Panel from '@digigov/ui/app/Panel';
|
|
39
38
|
import * as _digigov_ui_app_PhaseBannerHeader from '@digigov/ui/app/PhaseBannerHeader';
|
|
40
39
|
import * as _digigov_ui_app_QrCodeScanner from '@digigov/ui/app/QrCodeScanner';
|
|
41
40
|
import * as _digigov_ui_app_QrCodeViewer from '@digigov/ui/app/QrCodeViewer';
|
|
@@ -221,7 +220,6 @@ export default {
|
|
|
221
220
|
'@digigov/ui/app/App': lazyImport(_digigov_ui_app_App),
|
|
222
221
|
'@digigov/ui/app/BannerContainer': lazyImport(_digigov_ui_app_BannerContainer),
|
|
223
222
|
'@digigov/ui/app/BottomInfo': lazyImport(_digigov_ui_app_BottomInfo),
|
|
224
|
-
'@digigov/ui/app/Confirmation': lazyImport(_digigov_ui_app_Confirmation),
|
|
225
223
|
'@digigov/ui/app/FilterSection': lazyImport(_digigov_ui_app_FilterSection),
|
|
226
224
|
'@digigov/ui/app/Footer': lazyImport(_digigov_ui_app_Footer),
|
|
227
225
|
'@digigov/ui/app/Header/HeaderContent': lazyImport(_digigov_ui_app_Header_HeaderContent),
|
|
@@ -229,7 +227,6 @@ export default {
|
|
|
229
227
|
'@digigov/ui/app/Header/HeaderNavMenuContent': lazyImport(_digigov_ui_app_Header_HeaderNavMenuContent),
|
|
230
228
|
'@digigov/ui/app/Header/HeaderSecondaryLogo': lazyImport(_digigov_ui_app_Header_HeaderSecondaryLogo),
|
|
231
229
|
'@digigov/ui/app/Header/HeaderSection': lazyImport(_digigov_ui_app_Header_HeaderSection),
|
|
232
|
-
'@digigov/ui/app/Header/HeaderSubtitle': lazyImport(_digigov_ui_app_Header_HeaderSubtitle),
|
|
233
230
|
'@digigov/ui/app/Header/HeaderTitle': lazyImport(_digigov_ui_app_Header_HeaderTitle),
|
|
234
231
|
'@digigov/ui/app/Header': lazyImport(_digigov_ui_app_Header),
|
|
235
232
|
'@digigov/ui/app/hooks/useFontSize': lazyImport(_digigov_ui_app_hooks_useFontSize),
|
|
@@ -247,6 +244,7 @@ export default {
|
|
|
247
244
|
'@digigov/ui/app/OutdatedBrowserBanner/hooks/useOutdatedBrowserCheck': lazyImport(_digigov_ui_app_OutdatedBrowserBanner_hooks_useOutdatedBrowserCheck),
|
|
248
245
|
'@digigov/ui/app/OutdatedBrowserBanner': lazyImport(_digigov_ui_app_OutdatedBrowserBanner),
|
|
249
246
|
'@digigov/ui/app/PageTitle': lazyImport(_digigov_ui_app_PageTitle),
|
|
247
|
+
'@digigov/ui/app/Panel': lazyImport(_digigov_ui_app_Panel),
|
|
250
248
|
'@digigov/ui/app/PhaseBannerHeader': lazyImport(_digigov_ui_app_PhaseBannerHeader),
|
|
251
249
|
'@digigov/ui/app/QrCodeScanner': lazyImport(_digigov_ui_app_QrCodeScanner),
|
|
252
250
|
'@digigov/ui/app/QrCodeViewer': lazyImport(_digigov_ui_app_QrCodeViewer),
|
|
@@ -404,13 +402,13 @@ export default {
|
|
|
404
402
|
'@digigov/ui/utils/VisuallyHidden': lazyImport(_digigov_ui_utils_VisuallyHidden),
|
|
405
403
|
'@digigov/ui/utils/withDeprecation': lazyImport(_digigov_ui_utils_withDeprecation)
|
|
406
404
|
};
|
|
407
|
-
import * as _digigov_ui_app_Confirmation_Confirmation_stories from '@digigov/ui/app/Confirmation/Confirmation.stories';
|
|
408
405
|
import * as _digigov_ui_app_Footer_Footer_stories from '@digigov/ui/app/Footer/Footer.stories';
|
|
409
406
|
import * as _digigov_ui_app_Header_Header_stories from '@digigov/ui/app/Header/Header.stories';
|
|
410
407
|
import * as _digigov_ui_app_Loader_Loader_stories from '@digigov/ui/app/Loader/Loader.stories';
|
|
411
408
|
import * as _digigov_ui_app_Masthead_Masthead_stories from '@digigov/ui/app/Masthead/Masthead.stories';
|
|
412
409
|
import * as _digigov_ui_app_Modal_Modal_stories from '@digigov/ui/app/Modal/Modal.stories';
|
|
413
410
|
import * as _digigov_ui_app_NotFound_NotFound_stories from '@digigov/ui/app/NotFound/NotFound.stories';
|
|
411
|
+
import * as _digigov_ui_app_Panel_Panel_stories from '@digigov/ui/app/Panel/Panel.stories';
|
|
414
412
|
import * as _digigov_ui_app_PhaseBannerHeader_PhaseBannerHeader_stories from '@digigov/ui/app/PhaseBannerHeader/PhaseBannerHeader.stories';
|
|
415
413
|
import * as _digigov_ui_app_QrCodeScanner_QrCodeScanner_stories from '@digigov/ui/app/QrCodeScanner/QrCodeScanner.stories';
|
|
416
414
|
import * as _digigov_ui_app_QrCodeViewer_QRCode_stories from '@digigov/ui/app/QrCodeViewer/QRCode.stories';
|
|
@@ -459,13 +457,13 @@ import * as _digigov_ui_typography_NormalText_NormalText_stories from '@digigov/
|
|
|
459
457
|
import * as _digigov_ui_typography_Paragraph_Paragraph_stories from '@digigov/ui/typography/Paragraph/Paragraph.stories';
|
|
460
458
|
import * as _digigov_ui_utils_VisuallyHidden_VisuallyHidden_stories from '@digigov/ui/utils/VisuallyHidden/VisuallyHidden.stories';
|
|
461
459
|
export var stories = {
|
|
462
|
-
'@digigov/ui/app/Confirmation/Confirmation.stories': _digigov_ui_app_Confirmation_Confirmation_stories,
|
|
463
460
|
'@digigov/ui/app/Footer/Footer.stories': _digigov_ui_app_Footer_Footer_stories,
|
|
464
461
|
'@digigov/ui/app/Header/Header.stories': _digigov_ui_app_Header_Header_stories,
|
|
465
462
|
'@digigov/ui/app/Loader/Loader.stories': _digigov_ui_app_Loader_Loader_stories,
|
|
466
463
|
'@digigov/ui/app/Masthead/Masthead.stories': _digigov_ui_app_Masthead_Masthead_stories,
|
|
467
464
|
'@digigov/ui/app/Modal/Modal.stories': _digigov_ui_app_Modal_Modal_stories,
|
|
468
465
|
'@digigov/ui/app/NotFound/NotFound.stories': _digigov_ui_app_NotFound_NotFound_stories,
|
|
466
|
+
'@digigov/ui/app/Panel/Panel.stories': _digigov_ui_app_Panel_Panel_stories,
|
|
469
467
|
'@digigov/ui/app/PhaseBannerHeader/PhaseBannerHeader.stories': _digigov_ui_app_PhaseBannerHeader_PhaseBannerHeader_stories,
|
|
470
468
|
'@digigov/ui/app/QrCodeScanner/QrCodeScanner.stories': _digigov_ui_app_QrCodeScanner_QrCodeScanner_stories,
|
|
471
469
|
'@digigov/ui/app/QrCodeViewer/QRCode.stories': _digigov_ui_app_QrCodeViewer_QRCode_stories,
|
|
@@ -15,7 +15,8 @@ var _Button = require("@digigov/ui/form/Button");
|
|
|
15
15
|
|
|
16
16
|
var _ref = /*#__PURE__*/_react["default"].createElement(_CopyToClipboard.CopyToClipboard, {
|
|
17
17
|
text: "copied-text",
|
|
18
|
-
variant: "tooltip
|
|
18
|
+
variant: "tooltip",
|
|
19
|
+
tooltipAlign: "left",
|
|
19
20
|
message: "\u0391\u03BD\u03C4\u03B9\u03B3\u03C1\u03AC\u03C6\u03B7\u03BA\u03B5 \u03C3\u03C4\u03BF \u03C0\u03C1\u03CC\u03C7\u03B5\u03B9\u03C1\u03BF",
|
|
20
21
|
id: "copy-to-clipboard"
|
|
21
22
|
}, /*#__PURE__*/_react["default"].createElement(_Button.Button, {
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import CopyToClipboardContainer from '@digigov/react-core/CopyToClipboardContainer';
|
|
2
|
+
import CopyToClipboardContainer, { CopyToClipboardContainerProps } from '@digigov/react-core/CopyToClipboardContainer';
|
|
3
3
|
import CopyToClipboardMessage from '@digigov/react-core/CopyToClipboardMessage';
|
|
4
|
-
|
|
5
|
-
export interface CopyToClipboardProps extends DivElementAttributes {
|
|
4
|
+
export interface CopyToClipboardProps extends CopyToClipboardContainerProps {
|
|
6
5
|
text: string;
|
|
7
|
-
variant?: 'tooltip-right' | 'tooltip-left' | 'banner';
|
|
8
6
|
message?: string;
|
|
9
7
|
timeout?: number;
|
|
10
8
|
}
|
|
11
|
-
export declare const CopyToClipboard: React.ForwardRefExoticComponent<Pick<CopyToClipboardProps, "children" | "slot" | "style" | "title" | "text" | "className" | "color" | "id" | "lang" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "variant" | "message" | "timeout"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
export declare const CopyToClipboard: React.ForwardRefExoticComponent<Pick<CopyToClipboardProps, "children" | "slot" | "style" | "title" | "text" | "as" | "className" | "color" | "id" | "lang" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "margin" | "marginTop" | "marginBottom" | "marginLeft" | "marginRight" | "padding" | "paddingTop" | "paddingBottom" | "paddingLeft" | "paddingRight" | "printHidden" | "printVisible" | "xsUpHidden" | "smUpHidden" | "mdUpHidden" | "lgUpHidden" | "xlUpHidden" | "xsHidden" | "smHidden" | "mdHidden" | "lgHidden" | "xlHidden" | "variant" | "tooltipAlign" | "message" | "timeout"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
10
|
export default CopyToClipboard;
|
|
13
11
|
export { CopyToClipboardContainer, CopyToClipboardMessage };
|
|
@@ -41,7 +41,9 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
41
41
|
var CopyToClipboard = /*#__PURE__*/_react["default"].forwardRef(function CopyToClipboard(_ref, ref) {
|
|
42
42
|
var text = _ref.text,
|
|
43
43
|
_ref$variant = _ref.variant,
|
|
44
|
-
variant = _ref$variant === void 0 ? 'tooltip
|
|
44
|
+
variant = _ref$variant === void 0 ? 'tooltip' : _ref$variant,
|
|
45
|
+
_ref$tooltipAlign = _ref.tooltipAlign,
|
|
46
|
+
tooltipAlign = _ref$tooltipAlign === void 0 ? 'right' : _ref$tooltipAlign,
|
|
45
47
|
message = _ref.message,
|
|
46
48
|
_ref$timeout = _ref.timeout,
|
|
47
49
|
timeout = _ref$timeout === void 0 ? 3000 : _ref$timeout,
|
|
@@ -72,9 +74,9 @@ var CopyToClipboard = /*#__PURE__*/_react["default"].forwardRef(function CopyToC
|
|
|
72
74
|
return /*#__PURE__*/_react["default"].createElement(_CopyToClipboardContainer["default"], {
|
|
73
75
|
onClick: copyToClipboard,
|
|
74
76
|
variant: variant,
|
|
77
|
+
tooltipAlign: tooltipAlign,
|
|
75
78
|
ref: ref
|
|
76
79
|
}, children, enabled && /*#__PURE__*/_react["default"].createElement(_CopyToClipboardMessage["default"], {
|
|
77
|
-
variant: variant,
|
|
78
80
|
enabled: enabled,
|
|
79
81
|
role: "tooltip"
|
|
80
82
|
}, /*#__PURE__*/_react["default"].createElement(_NormalText["default"], null, message || t('copy-to-clipboard.message'))));
|
|
@@ -13,12 +13,12 @@ var _NotificationBanner = require("@digigov/ui/feedback/NotificationBanner");
|
|
|
13
13
|
|
|
14
14
|
var Default = function Default() {
|
|
15
15
|
return /*#__PURE__*/_react["default"].createElement(_NotificationBanner.NotificationBanner, {
|
|
16
|
-
title: "\
|
|
16
|
+
title: "\u0395\u03B9\u03B4\u03BF\u03C0\u03BF\u03AF\u03B7\u03C3\u03B7",
|
|
17
17
|
link: {
|
|
18
18
|
label: 'Προβολή αίτησης',
|
|
19
19
|
href: '#link?name=NotificationBannerDefault'
|
|
20
20
|
}
|
|
21
|
-
}, "\
|
|
21
|
+
}, "\u03A3\u03B5 7 \u03B7\u03BC\u03AD\u03C1\u03B5\u03C2 \u03B8\u03B1 \u03BC\u03C0\u03BF\u03C1\u03B5\u03AF\u03C4\u03B5 \u03BD\u03B1 \u03C5\u03C0\u03BF\u03B2\u03AC\u03BB\u03B5\u03C4\u03B5 \u03C4\u03B7\u03BD \u03B1\u03AF\u03C4\u03B7\u03C3\u03B7.");
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
exports.Default = Default;
|
|
@@ -5,7 +5,7 @@ import NotificationBannerHeader from '@digigov/react-core/NotificationBannerHead
|
|
|
5
5
|
import NotificationBannerHeading from '@digigov/react-core/NotificationBannerHeading';
|
|
6
6
|
import NotificationBannerLink from '@digigov/react-core/NotificationBannerLink';
|
|
7
7
|
export interface NotificationBannerProps extends NotificationBannerContainerProps {
|
|
8
|
-
variant?: '
|
|
8
|
+
variant?: 'info' | 'success' | 'error';
|
|
9
9
|
title?: string;
|
|
10
10
|
link?: {
|
|
11
11
|
href: string;
|
|
@@ -59,17 +59,14 @@ var _excluded = ["variant", "title", "link", "children"];
|
|
|
59
59
|
var _ref2 = /*#__PURE__*/_react["default"].createElement("br", null);
|
|
60
60
|
|
|
61
61
|
var NotificationBanner = function NotificationBanner(_ref) {
|
|
62
|
-
var
|
|
63
|
-
variant = _ref$variant === void 0 ? 'important' : _ref$variant,
|
|
62
|
+
var variant = _ref.variant,
|
|
64
63
|
title = _ref.title,
|
|
65
64
|
link = _ref.link,
|
|
66
65
|
children = _ref.children,
|
|
67
66
|
props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
68
|
-
var success = variant === 'success';
|
|
69
|
-
title = title ? title : success ? 'Success' : 'Important';
|
|
70
67
|
return /*#__PURE__*/_react["default"].createElement(_NotificationBannerContainer["default"], (0, _extends2["default"])({
|
|
71
|
-
|
|
72
|
-
}, props), /*#__PURE__*/_react["default"].createElement(_NotificationBannerHeader["default"], null, title), /*#__PURE__*/_react["default"].createElement(_NotificationBannerContent["default"], null, /*#__PURE__*/_react["default"].createElement(_NotificationBannerHeading["default"], null, children, _ref2, link && /*#__PURE__*/_react["default"].createElement(_NotificationBannerLink["default"], {
|
|
68
|
+
variant: variant
|
|
69
|
+
}, props), title && /*#__PURE__*/_react["default"].createElement(_NotificationBannerHeader["default"], null, title), /*#__PURE__*/_react["default"].createElement(_NotificationBannerContent["default"], null, /*#__PURE__*/_react["default"].createElement(_NotificationBannerHeading["default"], null, children, _ref2, link && /*#__PURE__*/_react["default"].createElement(_NotificationBannerLink["default"], {
|
|
73
70
|
href: link.href
|
|
74
71
|
}, link.label))));
|
|
75
72
|
};
|