@digigov/ui 1.0.0-8ae63a77 → 1.0.0-eb2842b4
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/Header.stories.playwright.json +1 -1
- package/app/Header/__stories__/WithHeaderNavigation.js +8 -11
- package/app/Header/__stories__/WithNavigation.js +37 -6
- package/app/Modal/Modal.stories.d.ts +1 -0
- package/app/Modal/Modal.stories.js +14 -0
- package/app/Modal/Modal.stories.playwright.json +21 -0
- package/app/Modal/__stories__/Dense.d.ts +2 -0
- package/app/Modal/__stories__/Dense.js +67 -0
- package/app/Modal/index.d.ts +2 -2
- package/es/app/Header/Header.stories.playwright.json +1 -1
- package/es/app/Header/__stories__/WithHeaderNavigation.js +8 -11
- package/es/app/Header/__stories__/WithNavigation.js +28 -6
- package/es/app/Modal/Modal.stories.js +2 -1
- package/es/app/Modal/Modal.stories.playwright.json +21 -0
- package/es/app/Modal/__stories__/Dense.js +43 -0
- package/es/feedback/CopyToClipboard/CopyToClipboard.stories.js +2 -1
- package/es/feedback/CopyToClipboard/CopyToClipboard.stories.playwright.json +16 -0
- package/es/feedback/CopyToClipboard/__stories__/Dense.js +20 -0
- package/es/feedback/CopyToClipboard/index.js +3 -1
- package/es/feedback/ErrorSummary/ErrorSummary.stories.js +1 -0
- package/es/feedback/ErrorSummary/__stories__/Dense.js +15 -0
- package/es/feedback/NotificationBanner/NotificationBanner.stories.js +2 -1
- package/es/feedback/NotificationBanner/__stories__/Dense.js +13 -0
- package/es/feedback/NotificationBanner/index.js +4 -2
- package/es/feedback/WarningText/WarningText.stories.js +2 -1
- package/es/feedback/WarningText/__stories__/Dense.js +11 -0
- package/es/form/Button/Button.stories.js +1 -0
- package/es/form/Button/__stories__/Dense.js +12 -0
- package/es/form/Checkbox/Checkbox.stories.js +2 -1
- package/es/form/Checkbox/__stories__/Dense.js +26 -0
- package/es/form/DateInputContainer/DateInputContainer.stories.js +2 -1
- package/es/form/DateInputContainer/__stories__/Dense.js +23 -0
- package/es/form/RadioContainer/RadioContainer.stories.js +2 -1
- package/es/form/RadioContainer/__stories__/Dense.js +24 -0
- package/es/form/SelectContainer/SelectContainer.stories.js +2 -1
- package/es/form/SelectContainer/__stories__/Dense.js +23 -0
- package/es/form/TextArea/TextArea.stories.js +2 -1
- package/es/form/TextArea/__stories__/Dense.js +14 -0
- package/es/form/TextInput/TextInput.stories.js +2 -1
- package/es/form/TextInput/__stories__/Dense.js +14 -0
- package/es/navigation/Link/index.js +1 -1
- package/es/navigation/NavList/NavList.stories.js +7 -5
- package/es/navigation/NavList/NavList.stories.playwright.json +24 -4
- package/es/navigation/NavList/NavListAuto/index.js +6 -12
- package/es/navigation/NavList/__stories__/Default.js +16 -26
- package/es/navigation/NavList/__stories__/HorizontalWithDrawer.js +67 -0
- package/{esm/navigation/NavList/__stories__/WithSubMenu.js → es/navigation/NavList/__stories__/HorizontalWithoutDrawer.js} +5 -37
- package/es/navigation/NavList/__stories__/NavLinksOneLevel.json +17 -0
- package/es/navigation/NavList/__stories__/NavLinksWithSubmenu.json +36 -0
- package/es/navigation/NavList/__stories__/NavListWithoutNav.js +19 -0
- package/es/navigation/NavList/__stories__/UsingHeaderButton.js +70 -0
- package/es/navigation/NavList/__stories__/UsingNavListAuto.js +38 -0
- package/es/navigation/NavList/__stories__/Vertical.js +32 -0
- package/{esm/navigation/NavList/__stories__/NavVerticalLayout.js → es/navigation/NavList/__stories__/VerticalWithoutDrawer.js} +6 -38
- package/es/navigation/NavList/index.js +1 -3
- package/es/navigation/NavList/index.mdx +9 -3
- package/es/registry.js +2 -0
- package/es/utils/Typography/index.js +3 -0
- package/esm/app/Header/Header.stories.playwright.json +1 -1
- package/esm/app/Header/__stories__/WithHeaderNavigation.js +8 -11
- package/esm/app/Header/__stories__/WithNavigation.js +28 -6
- package/esm/app/Modal/Modal.stories.js +2 -1
- package/esm/app/Modal/Modal.stories.playwright.json +21 -0
- package/esm/app/Modal/__stories__/Dense.js +43 -0
- package/esm/feedback/CopyToClipboard/CopyToClipboard.stories.js +2 -1
- package/esm/feedback/CopyToClipboard/CopyToClipboard.stories.playwright.json +16 -0
- package/esm/feedback/CopyToClipboard/__stories__/Dense.js +20 -0
- package/esm/feedback/CopyToClipboard/index.js +3 -1
- package/esm/feedback/ErrorSummary/ErrorSummary.stories.js +1 -0
- package/esm/feedback/ErrorSummary/__stories__/Dense.js +15 -0
- package/esm/feedback/NotificationBanner/NotificationBanner.stories.js +2 -1
- package/esm/feedback/NotificationBanner/__stories__/Dense.js +13 -0
- package/esm/feedback/NotificationBanner/index.js +4 -2
- package/esm/feedback/WarningText/WarningText.stories.js +2 -1
- package/esm/feedback/WarningText/__stories__/Dense.js +11 -0
- package/esm/form/Button/Button.stories.js +1 -0
- package/esm/form/Button/__stories__/Dense.js +12 -0
- package/esm/form/Checkbox/Checkbox.stories.js +2 -1
- package/esm/form/Checkbox/__stories__/Dense.js +26 -0
- package/esm/form/DateInputContainer/DateInputContainer.stories.js +2 -1
- package/esm/form/DateInputContainer/__stories__/Dense.js +23 -0
- package/esm/form/RadioContainer/RadioContainer.stories.js +2 -1
- package/esm/form/RadioContainer/__stories__/Dense.js +24 -0
- package/esm/form/SelectContainer/SelectContainer.stories.js +2 -1
- package/esm/form/SelectContainer/__stories__/Dense.js +23 -0
- package/esm/form/TextArea/TextArea.stories.js +2 -1
- package/esm/form/TextArea/__stories__/Dense.js +14 -0
- package/esm/form/TextInput/TextInput.stories.js +2 -1
- package/esm/form/TextInput/__stories__/Dense.js +14 -0
- package/esm/index.js +1 -1
- package/esm/navigation/Link/index.js +1 -1
- package/esm/navigation/NavList/NavList.stories.js +7 -5
- package/esm/navigation/NavList/NavList.stories.playwright.json +24 -4
- package/esm/navigation/NavList/NavListAuto/index.js +6 -12
- package/esm/navigation/NavList/__stories__/Default.js +16 -26
- package/esm/navigation/NavList/__stories__/HorizontalWithDrawer.js +67 -0
- package/{es/navigation/NavList/__stories__/WithSubMenu.js → esm/navigation/NavList/__stories__/HorizontalWithoutDrawer.js} +5 -37
- package/esm/navigation/NavList/__stories__/NavLinksOneLevel.json +17 -0
- package/esm/navigation/NavList/__stories__/NavLinksWithSubmenu.json +36 -0
- package/esm/navigation/NavList/__stories__/NavListWithoutNav.js +19 -0
- package/esm/navigation/NavList/__stories__/UsingHeaderButton.js +70 -0
- package/esm/navigation/NavList/__stories__/UsingNavListAuto.js +38 -0
- package/esm/navigation/NavList/__stories__/Vertical.js +32 -0
- package/{es/navigation/NavList/__stories__/NavVerticalLayout.js → esm/navigation/NavList/__stories__/VerticalWithoutDrawer.js} +6 -38
- package/esm/navigation/NavList/index.js +1 -3
- package/esm/navigation/NavList/index.mdx +9 -3
- package/esm/registry.js +2 -0
- package/esm/utils/Typography/index.js +3 -0
- package/feedback/CopyToClipboard/CopyToClipboard.stories.d.ts +1 -0
- package/feedback/CopyToClipboard/CopyToClipboard.stories.js +14 -0
- package/feedback/CopyToClipboard/CopyToClipboard.stories.playwright.json +16 -0
- package/feedback/CopyToClipboard/__stories__/Dense.d.ts +2 -0
- package/feedback/CopyToClipboard/__stories__/Dense.js +34 -0
- package/feedback/CopyToClipboard/index.d.ts +1 -1
- package/feedback/CopyToClipboard/index.js +3 -1
- package/feedback/ErrorSummary/ErrorSummary.stories.d.ts +1 -0
- package/feedback/ErrorSummary/ErrorSummary.stories.js +14 -0
- package/feedback/ErrorSummary/__stories__/Dense.d.ts +2 -0
- package/feedback/ErrorSummary/__stories__/Dense.js +30 -0
- package/feedback/NotificationBanner/NotificationBanner.stories.d.ts +1 -0
- package/feedback/NotificationBanner/NotificationBanner.stories.js +14 -0
- package/feedback/NotificationBanner/__stories__/Dense.d.ts +2 -0
- package/feedback/NotificationBanner/__stories__/Dense.js +27 -0
- package/feedback/NotificationBanner/index.js +4 -2
- package/feedback/WarningText/WarningText.stories.d.ts +1 -0
- package/feedback/WarningText/WarningText.stories.js +14 -0
- package/feedback/WarningText/__stories__/Dense.d.ts +2 -0
- package/feedback/WarningText/__stories__/Dense.js +24 -0
- package/form/Button/Button.stories.d.ts +1 -0
- package/form/Button/Button.stories.js +14 -0
- package/form/Button/__stories__/Dense.d.ts +2 -0
- package/form/Button/__stories__/Dense.js +25 -0
- package/form/Checkbox/Checkbox.stories.d.ts +1 -0
- package/form/Checkbox/Checkbox.stories.js +14 -0
- package/form/Checkbox/__stories__/Dense.d.ts +2 -0
- package/form/Checkbox/__stories__/Dense.js +41 -0
- package/form/DateInputContainer/DateInputContainer.stories.d.ts +1 -0
- package/form/DateInputContainer/DateInputContainer.stories.js +14 -0
- package/form/DateInputContainer/__stories__/Dense.d.ts +2 -0
- package/form/DateInputContainer/__stories__/Dense.js +37 -0
- package/form/RadioContainer/RadioContainer.stories.d.ts +1 -0
- package/form/RadioContainer/RadioContainer.stories.js +14 -0
- package/form/RadioContainer/__stories__/Dense.d.ts +2 -0
- package/form/RadioContainer/__stories__/Dense.js +38 -0
- package/form/SelectContainer/SelectContainer.stories.d.ts +1 -0
- package/form/SelectContainer/SelectContainer.stories.js +14 -0
- package/form/SelectContainer/__stories__/Dense.d.ts +2 -0
- package/form/SelectContainer/__stories__/Dense.js +38 -0
- package/form/TextArea/TextArea.stories.d.ts +1 -0
- package/form/TextArea/TextArea.stories.js +14 -0
- package/form/TextArea/__stories__/Dense.d.ts +2 -0
- package/form/TextArea/__stories__/Dense.js +29 -0
- package/form/TextInput/TextInput.stories.d.ts +1 -0
- package/form/TextInput/TextInput.stories.js +14 -0
- package/form/TextInput/__stories__/Dense.d.ts +2 -0
- package/form/TextInput/__stories__/Dense.js +29 -0
- package/navigation/Link/index.d.ts +1 -1
- package/navigation/Link/index.js +12 -13
- package/navigation/NavList/NavList.stories.d.ts +7 -5
- package/navigation/NavList/NavList.stories.js +48 -20
- package/navigation/NavList/NavList.stories.playwright.json +24 -4
- package/navigation/NavList/NavListAuto/index.js +6 -12
- package/navigation/NavList/__stories__/Default.js +24 -27
- package/navigation/NavList/__stories__/HorizontalWithDrawer.d.ts +2 -0
- package/navigation/NavList/__stories__/HorizontalWithDrawer.js +93 -0
- package/navigation/NavList/__stories__/HorizontalWithoutDrawer.d.ts +2 -0
- package/navigation/NavList/__stories__/{WithSubMenu.js → HorizontalWithoutDrawer.js} +9 -41
- package/navigation/NavList/__stories__/NavLinksOneLevel.json +17 -0
- package/navigation/NavList/__stories__/NavLinksWithSubmenu.json +36 -0
- package/navigation/NavList/__stories__/NavListWithoutNav.d.ts +2 -0
- package/navigation/NavList/__stories__/NavListWithoutNav.js +35 -0
- package/navigation/NavList/__stories__/UsingHeaderButton.d.ts +2 -0
- package/navigation/NavList/__stories__/UsingHeaderButton.js +98 -0
- package/navigation/NavList/__stories__/UsingNavListAuto.d.ts +2 -0
- package/navigation/NavList/__stories__/UsingNavListAuto.js +55 -0
- package/navigation/NavList/__stories__/Vertical.d.ts +2 -0
- package/navigation/NavList/__stories__/{WithBurgerIcon.js → Vertical.js} +25 -52
- package/navigation/NavList/__stories__/VerticalWithoutDrawer.d.ts +2 -0
- package/navigation/NavList/__stories__/{NavVerticalLayout.js → VerticalWithoutDrawer.js} +9 -41
- package/navigation/NavList/index.d.ts +1 -3
- package/navigation/NavList/index.js +8 -8
- package/navigation/NavList/index.mdx +9 -3
- package/navigation/NavList/types.d.ts +1 -0
- package/package.json +4 -4
- package/registry.d.ts +1 -0
- package/registry.js +3 -0
- package/src/app/Header/Header.stories.playwright.json +1 -1
- package/src/app/Header/__stories__/WithHeaderNavigation.tsx +33 -36
- package/src/app/Header/__stories__/WithNavigation.tsx +21 -15
- package/src/app/Modal/Modal.stories.js +1 -0
- package/src/app/Modal/Modal.stories.playwright.json +21 -0
- package/src/app/Modal/__stories__/Dense.tsx +52 -0
- package/src/feedback/CopyToClipboard/CopyToClipboard.stories.js +1 -0
- package/src/feedback/CopyToClipboard/CopyToClipboard.stories.playwright.json +16 -0
- package/src/feedback/CopyToClipboard/__stories__/Dense.tsx +21 -0
- package/src/feedback/CopyToClipboard/index.tsx +2 -1
- package/src/feedback/ErrorSummary/ErrorSummary.stories.js +1 -0
- package/src/feedback/ErrorSummary/__stories__/Dense.tsx +13 -0
- package/src/feedback/NotificationBanner/NotificationBanner.stories.js +1 -0
- package/src/feedback/NotificationBanner/__stories__/Dense.tsx +17 -0
- package/src/feedback/NotificationBanner/index.tsx +2 -1
- package/src/feedback/WarningText/WarningText.stories.js +1 -0
- package/src/feedback/WarningText/__stories__/Dense.tsx +10 -0
- package/src/form/Button/Button.stories.js +1 -0
- package/src/form/Button/__stories__/Dense.tsx +8 -0
- package/src/form/Checkbox/Checkbox.stories.js +1 -0
- package/src/form/Checkbox/__stories__/Dense.tsx +35 -0
- package/src/form/DateInputContainer/DateInputContainer.stories.js +1 -0
- package/src/form/DateInputContainer/__stories__/Dense.tsx +31 -0
- package/src/form/RadioContainer/RadioContainer.stories.js +1 -0
- package/src/form/RadioContainer/__stories__/Dense.tsx +32 -0
- package/src/form/SelectContainer/SelectContainer.stories.js +1 -0
- package/src/form/SelectContainer/__stories__/Dense.tsx +24 -0
- package/src/form/TextArea/TextArea.stories.js +1 -0
- package/src/form/TextArea/__stories__/Dense.tsx +15 -0
- package/src/form/TextInput/TextInput.stories.js +1 -0
- package/src/form/TextInput/__stories__/Dense.tsx +15 -0
- package/src/navigation/Link/index.tsx +1 -1
- package/src/navigation/NavList/NavList.stories.js +7 -5
- package/src/navigation/NavList/NavList.stories.playwright.json +24 -4
- package/src/navigation/NavList/NavListAuto/index.tsx +30 -28
- package/src/navigation/NavList/__stories__/Default.tsx +11 -16
- package/src/navigation/NavList/__stories__/HorizontalWithDrawer.tsx +84 -0
- package/src/navigation/NavList/__stories__/{WithSubMenu.tsx → HorizontalWithoutDrawer.tsx} +12 -44
- package/src/navigation/NavList/__stories__/NavLinksOneLevel.json +17 -0
- package/src/navigation/NavList/__stories__/NavLinksWithSubmenu.json +36 -0
- package/src/navigation/NavList/__stories__/NavListWithoutNav.tsx +24 -0
- package/src/navigation/NavList/__stories__/UsingHeaderButton.tsx +89 -0
- package/src/navigation/NavList/__stories__/UsingNavListAuto.tsx +32 -0
- package/src/navigation/NavList/__stories__/Vertical.tsx +33 -0
- package/src/navigation/NavList/__stories__/{NavVerticalLayout.tsx → VerticalWithoutDrawer.tsx} +11 -44
- package/src/navigation/NavList/index.mdx +9 -3
- package/src/navigation/NavList/index.tsx +1 -3
- package/src/navigation/NavList/types.tsx +1 -0
- package/src/registry.js +2 -0
- package/src/utils/Typography/index.tsx +4 -0
- package/utils/Typography/index.d.ts +3 -0
- package/utils/Typography/index.js +19 -0
- package/es/navigation/NavList/__stories__/NavVertical.js +0 -37
- package/es/navigation/NavList/__stories__/NavVerticalWithTitle.js +0 -43
- package/es/navigation/NavList/__stories__/WithBurgerIcon.js +0 -56
- package/esm/navigation/NavList/__stories__/NavVertical.js +0 -37
- package/esm/navigation/NavList/__stories__/NavVerticalWithTitle.js +0 -43
- package/esm/navigation/NavList/__stories__/WithBurgerIcon.js +0 -56
- package/navigation/NavList/__stories__/NavVertical.d.ts +0 -2
- package/navigation/NavList/__stories__/NavVertical.js +0 -53
- package/navigation/NavList/__stories__/NavVerticalLayout.d.ts +0 -2
- package/navigation/NavList/__stories__/NavVerticalWithTitle.d.ts +0 -2
- package/navigation/NavList/__stories__/NavVerticalWithTitle.js +0 -59
- package/navigation/NavList/__stories__/WithBurgerIcon.d.ts +0 -2
- package/navigation/NavList/__stories__/WithSubMenu.d.ts +0 -2
- package/src/navigation/NavList/__stories__/NavVertical.tsx +0 -36
- package/src/navigation/NavList/__stories__/NavVerticalWithTitle.tsx +0 -40
- package/src/navigation/NavList/__stories__/WithBurgerIcon.tsx +0 -49
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { NavListAuto } from '@digigov/ui/navigation/NavList';
|
|
4
|
+
import links from './NavLinksWithSubmenu.json';
|
|
5
|
+
import { Button } from '@digigov/ui/form/Button';
|
|
6
|
+
import BurgerIcon from '@digigov/react-icons/BurgerIcon';
|
|
7
|
+
|
|
8
|
+
var _ref = /*#__PURE__*/React.createElement(BurgerIcon, null);
|
|
9
|
+
|
|
10
|
+
export var UsingNavListAuto = function UsingNavListAuto() {
|
|
11
|
+
var layout = 'horizontal';
|
|
12
|
+
var drawer = 'smDown';
|
|
13
|
+
var border = true;
|
|
14
|
+
|
|
15
|
+
var _React$useState = React.useState(false),
|
|
16
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
17
|
+
open = _React$useState2[0],
|
|
18
|
+
setOpen = _React$useState2[1];
|
|
19
|
+
|
|
20
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
|
|
21
|
+
color: "secondary",
|
|
22
|
+
onClick: function onClick() {
|
|
23
|
+
return setOpen(!open);
|
|
24
|
+
},
|
|
25
|
+
smUpHidden: true
|
|
26
|
+
}, "\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AD\u03C2 ", _ref), /*#__PURE__*/React.createElement(NavListAuto, {
|
|
27
|
+
layout: layout,
|
|
28
|
+
border: border,
|
|
29
|
+
drawer: drawer,
|
|
30
|
+
open: open,
|
|
31
|
+
links: links,
|
|
32
|
+
onClose: function onClose() {
|
|
33
|
+
return setOpen(false);
|
|
34
|
+
},
|
|
35
|
+
"aria-label": "Nav list"
|
|
36
|
+
}));
|
|
37
|
+
};
|
|
38
|
+
export default UsingNavListAuto;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
|
+
import React, { useState } from 'react';
|
|
4
|
+
import { Nav, NavList, NavListItemAction, useNavList } from '@digigov/ui/navigation/NavList';
|
|
5
|
+
import links from './NavLinksOneLevel.json';
|
|
6
|
+
export var Vertical = function Vertical() {
|
|
7
|
+
var layout = 'vertical';
|
|
8
|
+
|
|
9
|
+
var _useNavList = useNavList(),
|
|
10
|
+
registerNavItem = _useNavList.registerNavItem;
|
|
11
|
+
|
|
12
|
+
var _useState = useState(""),
|
|
13
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
14
|
+
useActive = _useState2[0],
|
|
15
|
+
setUseActive = _useState2[1];
|
|
16
|
+
|
|
17
|
+
return /*#__PURE__*/React.createElement(Nav, {
|
|
18
|
+
"aria-orientation": layout || 'horizontal',
|
|
19
|
+
"aria-label": "navigation list"
|
|
20
|
+
}, /*#__PURE__*/React.createElement(NavList, {
|
|
21
|
+
layout: layout
|
|
22
|
+
}, links.map(function (item, key) {
|
|
23
|
+
return /*#__PURE__*/React.createElement(NavListItemAction, _extends({}, registerNavItem(item), {
|
|
24
|
+
key: key,
|
|
25
|
+
active: item.name === useActive,
|
|
26
|
+
onClick: function onClick() {
|
|
27
|
+
return setUseActive(item.name);
|
|
28
|
+
}
|
|
29
|
+
}), item.label);
|
|
30
|
+
})));
|
|
31
|
+
};
|
|
32
|
+
export default Vertical;
|
|
@@ -3,41 +3,8 @@ import React from 'react';
|
|
|
3
3
|
import Link from '@digigov/ui/navigation/Link';
|
|
4
4
|
import { Nav, NavList, NavListItemAction, NavMenuContainer, NavMenuContent, NavMenuContentList, NavMenuContentListItem, NavMenuTitle } from '@digigov/ui/navigation/NavList';
|
|
5
5
|
import { useNavList } from '@digigov/ui/navigation/NavList/hooks/useNavList';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
href: '#home',
|
|
9
|
-
label: 'Αρχική'
|
|
10
|
-
}, {
|
|
11
|
-
name: 'educational',
|
|
12
|
-
// href: '#',
|
|
13
|
-
label: 'Εκπαιδευτικό υλικό',
|
|
14
|
-
subMenu: [{
|
|
15
|
-
name: 'elearning',
|
|
16
|
-
href: '#elearning',
|
|
17
|
-
label: 'Εκπαιδευτική πλατφόρμα'
|
|
18
|
-
}, {
|
|
19
|
-
name: 'videos',
|
|
20
|
-
href: '#videos',
|
|
21
|
-
label: 'Βίντεο'
|
|
22
|
-
}, {
|
|
23
|
-
name: 'presentations',
|
|
24
|
-
href: '#presentations',
|
|
25
|
-
label: 'Παρουσιάσεις'
|
|
26
|
-
}, {
|
|
27
|
-
name: 'promoting',
|
|
28
|
-
href: '#promoting',
|
|
29
|
-
label: 'Προωθώντας την αθλητική ακεραιότητα στην νέα γενιά'
|
|
30
|
-
}, {
|
|
31
|
-
name: 'other-texts',
|
|
32
|
-
href: '#other-texts',
|
|
33
|
-
label: 'Άλλα κείμενα'
|
|
34
|
-
}]
|
|
35
|
-
}, {
|
|
36
|
-
name: 'news',
|
|
37
|
-
href: '#news',
|
|
38
|
-
label: 'Νέα'
|
|
39
|
-
}];
|
|
40
|
-
export var NavVerticalLayout = function NavVerticalLayout() {
|
|
6
|
+
import links from './NavLinksWithSubmenu.json';
|
|
7
|
+
export var VerticalWithoutDrawer = function VerticalWithoutDrawer() {
|
|
41
8
|
var layout = 'vertical';
|
|
42
9
|
var border = false;
|
|
43
10
|
|
|
@@ -46,8 +13,9 @@ export var NavVerticalLayout = function NavVerticalLayout() {
|
|
|
46
13
|
registerNavItem = _useNavList.registerNavItem;
|
|
47
14
|
|
|
48
15
|
return /*#__PURE__*/React.createElement(Nav, {
|
|
49
|
-
|
|
50
|
-
|
|
16
|
+
border: border,
|
|
17
|
+
"aria-orientation": layout || 'horizontal',
|
|
18
|
+
"aria-label": "navigation list"
|
|
51
19
|
}, /*#__PURE__*/React.createElement(NavList, {
|
|
52
20
|
layout: layout
|
|
53
21
|
}, links.map(function (item, key) {
|
|
@@ -73,4 +41,4 @@ export var NavVerticalLayout = function NavVerticalLayout() {
|
|
|
73
41
|
})))));
|
|
74
42
|
})));
|
|
75
43
|
};
|
|
76
|
-
export default
|
|
44
|
+
export default VerticalWithoutDrawer;
|
|
@@ -10,10 +10,8 @@ export * from '@digigov/react-core/NavMenuContent';
|
|
|
10
10
|
export * from '@digigov/react-core/NavMenuContentListBase';
|
|
11
11
|
export * from '@digigov/react-core/NavMenuContentListItem';
|
|
12
12
|
export * from '@digigov/react-core/NavMenuTitle';
|
|
13
|
-
export * from '@digigov/react-core/NavListItemAction';
|
|
14
|
-
export * from '@digigov/react-core/NavListItemAction';
|
|
15
13
|
export * from '@digigov/react-core/NavListItemActionContainer';
|
|
14
|
+
export * from '@digigov/react-core/NavListItemAction';
|
|
16
15
|
export * from '@digigov/react-core/NavListItemLink';
|
|
17
16
|
export * from '@digigov/react-core/NavListItemButton';
|
|
18
|
-
export * from '@digigov/react-core/NavListItemAction';
|
|
19
17
|
export default NavList;
|
|
@@ -9,13 +9,19 @@ import NavList, { NavListItem } from '@digigov/ui/navigation/NavList';
|
|
|
9
9
|
|
|
10
10
|
## How to use
|
|
11
11
|
|
|
12
|
-
###
|
|
12
|
+
### Horizontal NavList
|
|
13
13
|
|
|
14
14
|
<Story packageName="@digigov/ui" component="navigation/NavList" story="Default.tsx" />
|
|
15
15
|
|
|
16
|
-
###
|
|
16
|
+
### Vertical NavList
|
|
17
|
+
|
|
18
|
+
<Story packageName="@digigov/ui" component="navigation/NavList" story="Vertical.tsx" />
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### NavListAuto
|
|
22
|
+
|
|
23
|
+
<Story packageName="@digigov/ui" component="navigation/NavList" story="UsingNavListAuto.tsx" />
|
|
17
24
|
|
|
18
|
-
<Story packageName="@digigov/ui" component="navigation/NavList" story="NavVerticalLayout.tsx" />
|
|
19
25
|
|
|
20
26
|
## Accessibility
|
|
21
27
|
|
package/esm/registry.js
CHANGED
|
@@ -176,6 +176,7 @@ import * as _digigov_ui_utils_Kitchensink_KitchensinkByLetter from '@digigov/ui/
|
|
|
176
176
|
import * as _digigov_ui_utils_Kitchensink_KitchensinkComponent from '@digigov/ui/utils/Kitchensink/KitchensinkComponent';
|
|
177
177
|
import * as _digigov_ui_utils_Kitchensink_KitchensinkDashboard from '@digigov/ui/utils/Kitchensink/KitchensinkDashboard';
|
|
178
178
|
import * as _digigov_ui_utils_SvgIcon from '@digigov/ui/utils/SvgIcon';
|
|
179
|
+
import * as _digigov_ui_utils_Typography from '@digigov/ui/utils/Typography';
|
|
179
180
|
import * as _digigov_ui_utils_VisuallyHidden from '@digigov/ui/utils/VisuallyHidden';
|
|
180
181
|
import * as _digigov_ui_utils_withDeprecation from '@digigov/ui/utils/withDeprecation';
|
|
181
182
|
|
|
@@ -373,6 +374,7 @@ export default {
|
|
|
373
374
|
'@digigov/ui/utils/Kitchensink/KitchensinkComponent': lazyImport(_digigov_ui_utils_Kitchensink_KitchensinkComponent),
|
|
374
375
|
'@digigov/ui/utils/Kitchensink/KitchensinkDashboard': lazyImport(_digigov_ui_utils_Kitchensink_KitchensinkDashboard),
|
|
375
376
|
'@digigov/ui/utils/SvgIcon': lazyImport(_digigov_ui_utils_SvgIcon),
|
|
377
|
+
'@digigov/ui/utils/Typography': lazyImport(_digigov_ui_utils_Typography),
|
|
376
378
|
'@digigov/ui/utils/VisuallyHidden': lazyImport(_digigov_ui_utils_VisuallyHidden),
|
|
377
379
|
'@digigov/ui/utils/withDeprecation': lazyImport(_digigov_ui_utils_withDeprecation)
|
|
378
380
|
};
|
|
@@ -6,4 +6,5 @@ declare namespace _default {
|
|
|
6
6
|
export default _default;
|
|
7
7
|
export * from "@digigov/ui/feedback/CopyToClipboard/__stories__/Default";
|
|
8
8
|
export * from "@digigov/ui/feedback/CopyToClipboard/__stories__/Banner";
|
|
9
|
+
export * from "@digigov/ui/feedback/CopyToClipboard/__stories__/Dense";
|
|
9
10
|
import CopyToClipboard from "@digigov/ui/feedback/CopyToClipboard";
|
|
@@ -37,6 +37,20 @@ Object.keys(_Banner).forEach(function (key) {
|
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
39
|
});
|
|
40
|
+
|
|
41
|
+
var _Dense = require("@digigov/ui/feedback/CopyToClipboard/__stories__/Dense");
|
|
42
|
+
|
|
43
|
+
Object.keys(_Dense).forEach(function (key) {
|
|
44
|
+
if (key === "default" || key === "__esModule") return;
|
|
45
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
46
|
+
if (key in exports && exports[key] === _Dense[key]) return;
|
|
47
|
+
Object.defineProperty(exports, key, {
|
|
48
|
+
enumerable: true,
|
|
49
|
+
get: function get() {
|
|
50
|
+
return _Dense[key];
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
});
|
|
40
54
|
var _default = {
|
|
41
55
|
title: 'Digigov UI/feedback/CopyToClipboard',
|
|
42
56
|
component: _CopyToClipboard["default"],
|
|
@@ -32,6 +32,22 @@
|
|
|
32
32
|
"title": "Click button"
|
|
33
33
|
}
|
|
34
34
|
]
|
|
35
|
+
},
|
|
36
|
+
"digigov-ui-feedback-copytoclipboard--dense": {
|
|
37
|
+
"actionSets": [
|
|
38
|
+
{
|
|
39
|
+
"actions": [
|
|
40
|
+
{
|
|
41
|
+
"name": "click",
|
|
42
|
+
"args": {
|
|
43
|
+
"selector": "html>body>div:nth-child(5)>div>div>button"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"id": "ghUU4iC32gX-",
|
|
48
|
+
"title": "Click button"
|
|
49
|
+
}
|
|
50
|
+
]
|
|
35
51
|
}
|
|
36
52
|
}
|
|
37
53
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = exports.Dense = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
12
|
+
var _CopyToClipboard = require("@digigov/ui/feedback/CopyToClipboard");
|
|
13
|
+
|
|
14
|
+
var _Button = require("@digigov/ui/form/Button");
|
|
15
|
+
|
|
16
|
+
var _ref = /*#__PURE__*/_react["default"].createElement(_CopyToClipboard.CopyToClipboard, {
|
|
17
|
+
text: "copied-text",
|
|
18
|
+
variant: "tooltip",
|
|
19
|
+
tooltipAlign: "left",
|
|
20
|
+
message: "\u0391\u03BD\u03C4\u03B9\u03B3\u03C1\u03AC\u03C6\u03B7\u03BA\u03B5 \u03C3\u03C4\u03BF \u03C0\u03C1\u03CC\u03C7\u03B5\u03B9\u03C1\u03BF",
|
|
21
|
+
id: "copy-to-clipboard",
|
|
22
|
+
dense: true
|
|
23
|
+
}, /*#__PURE__*/_react["default"].createElement(_Button.Button, {
|
|
24
|
+
color: "secondary",
|
|
25
|
+
"aria-describedby": "copy-to-clipboard"
|
|
26
|
+
}, "\u0391\u03BD\u03C4\u03B9\u03B3\u03C1\u03B1\u03C6\u03AE"));
|
|
27
|
+
|
|
28
|
+
var Dense = function Dense() {
|
|
29
|
+
return _ref;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
exports.Dense = Dense;
|
|
33
|
+
var _default = Dense;
|
|
34
|
+
exports["default"] = _default;
|
|
@@ -6,6 +6,6 @@ export interface CopyToClipboardProps extends CopyToClipboardContainerProps {
|
|
|
6
6
|
message?: string;
|
|
7
7
|
timeout?: number;
|
|
8
8
|
}
|
|
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>>;
|
|
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" | "dense" | "tooltipAlign" | "message" | "timeout"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
10
|
export default CopyToClipboard;
|
|
11
11
|
export { CopyToClipboardContainer, CopyToClipboardMessage };
|
|
@@ -45,6 +45,7 @@ var CopyToClipboard = /*#__PURE__*/_react["default"].forwardRef(function CopyToC
|
|
|
45
45
|
_ref$tooltipAlign = _ref.tooltipAlign,
|
|
46
46
|
tooltipAlign = _ref$tooltipAlign === void 0 ? 'right' : _ref$tooltipAlign,
|
|
47
47
|
message = _ref.message,
|
|
48
|
+
dense = _ref.dense,
|
|
48
49
|
_ref$timeout = _ref.timeout,
|
|
49
50
|
timeout = _ref$timeout === void 0 ? 3000 : _ref$timeout,
|
|
50
51
|
children = _ref.children;
|
|
@@ -75,7 +76,8 @@ var CopyToClipboard = /*#__PURE__*/_react["default"].forwardRef(function CopyToC
|
|
|
75
76
|
onClick: copyToClipboard,
|
|
76
77
|
variant: variant,
|
|
77
78
|
tooltipAlign: tooltipAlign,
|
|
78
|
-
ref: ref
|
|
79
|
+
ref: ref,
|
|
80
|
+
dense: dense
|
|
79
81
|
}, children, enabled && /*#__PURE__*/_react["default"].createElement(_CopyToClipboardMessage["default"], {
|
|
80
82
|
enabled: enabled,
|
|
81
83
|
role: "tooltip"
|
|
@@ -7,6 +7,7 @@ declare namespace _default {
|
|
|
7
7
|
}
|
|
8
8
|
export default _default;
|
|
9
9
|
export * from "@digigov/ui/feedback/ErrorSummary/__stories__/Default";
|
|
10
|
+
export * from "@digigov/ui/feedback/ErrorSummary/__stories__/Dense";
|
|
10
11
|
export * from "@digigov/ui/feedback/ErrorSummary/__stories__/LinkedToInput";
|
|
11
12
|
export * from "@digigov/ui/feedback/ErrorSummary/__stories__/LinkedToField";
|
|
12
13
|
export * from "@digigov/ui/feedback/ErrorSummary/__stories__/LinkedToCheckbox";
|
|
@@ -24,6 +24,20 @@ Object.keys(_Default).forEach(function (key) {
|
|
|
24
24
|
});
|
|
25
25
|
});
|
|
26
26
|
|
|
27
|
+
var _Dense = require("@digigov/ui/feedback/ErrorSummary/__stories__/Dense");
|
|
28
|
+
|
|
29
|
+
Object.keys(_Dense).forEach(function (key) {
|
|
30
|
+
if (key === "default" || key === "__esModule") return;
|
|
31
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
32
|
+
if (key in exports && exports[key] === _Dense[key]) return;
|
|
33
|
+
Object.defineProperty(exports, key, {
|
|
34
|
+
enumerable: true,
|
|
35
|
+
get: function get() {
|
|
36
|
+
return _Dense[key];
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
|
|
27
41
|
var _LinkedToInput = require("@digigov/ui/feedback/ErrorSummary/__stories__/LinkedToInput");
|
|
28
42
|
|
|
29
43
|
Object.keys(_LinkedToInput).forEach(function (key) {
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = exports.Dense = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
12
|
+
var _ErrorSummary = require("@digigov/ui/feedback/ErrorSummary");
|
|
13
|
+
|
|
14
|
+
var _Link = require("@digigov/ui/navigation/Link");
|
|
15
|
+
|
|
16
|
+
var _Heading = require("@digigov/ui/typography/Heading");
|
|
17
|
+
|
|
18
|
+
var _ref = /*#__PURE__*/_react["default"].createElement(_ErrorSummary.ErrorSummary, {
|
|
19
|
+
dense: true
|
|
20
|
+
}, /*#__PURE__*/_react["default"].createElement(_Heading.Heading, {
|
|
21
|
+
size: "sm"
|
|
22
|
+
}, "\u03A5\u03C0\u03AE\u03C1\u03BE\u03B5 \u03BA\u03AC\u03C0\u03BF\u03B9\u03BF \u03C0\u03C1\u03CC\u03B2\u03BB\u03B7\u03BC\u03B1"), /*#__PURE__*/_react["default"].createElement(_Link.Link, null, "\u03A0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C3\u03C5\u03BC\u03C0\u03BB\u03B7\u03C1\u03CE\u03C3\u03B5\u03C4\u03B5 \u03C4\u03BF \u03AD\u03C4\u03BF\u03C2"));
|
|
23
|
+
|
|
24
|
+
var Dense = function Dense() {
|
|
25
|
+
return _ref;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
exports.Dense = Dense;
|
|
29
|
+
var _default = Dense;
|
|
30
|
+
exports["default"] = _default;
|
|
@@ -9,4 +9,5 @@ declare namespace _default {
|
|
|
9
9
|
export default _default;
|
|
10
10
|
export * from "@digigov/ui/feedback/NotificationBanner/__stories__/Default";
|
|
11
11
|
export * from "@digigov/ui/feedback/NotificationBanner/__stories__/Success";
|
|
12
|
+
export * from "@digigov/ui/feedback/NotificationBanner/__stories__/Dense";
|
|
12
13
|
import NotificationBanner from "@digigov/ui/feedback/NotificationBanner";
|
|
@@ -37,6 +37,20 @@ Object.keys(_Success).forEach(function (key) {
|
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
39
|
});
|
|
40
|
+
|
|
41
|
+
var _Dense = require("@digigov/ui/feedback/NotificationBanner/__stories__/Dense");
|
|
42
|
+
|
|
43
|
+
Object.keys(_Dense).forEach(function (key) {
|
|
44
|
+
if (key === "default" || key === "__esModule") return;
|
|
45
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
46
|
+
if (key in exports && exports[key] === _Dense[key]) return;
|
|
47
|
+
Object.defineProperty(exports, key, {
|
|
48
|
+
enumerable: true,
|
|
49
|
+
get: function get() {
|
|
50
|
+
return _Dense[key];
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
});
|
|
40
54
|
var _default = {
|
|
41
55
|
title: 'Digigov UI/feedback/NotificationBanner',
|
|
42
56
|
tags: ['Experimental'],
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = exports.Dense = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
12
|
+
var _NotificationBanner = require("@digigov/ui/feedback/NotificationBanner");
|
|
13
|
+
|
|
14
|
+
var Dense = function Dense() {
|
|
15
|
+
return /*#__PURE__*/_react["default"].createElement(_NotificationBanner.NotificationBanner, {
|
|
16
|
+
title: "\u0395\u03B9\u03B4\u03BF\u03C0\u03BF\u03AF\u03B7\u03C3\u03B7",
|
|
17
|
+
link: {
|
|
18
|
+
label: 'Προβολή αίτησης',
|
|
19
|
+
href: '#link?name=NotificationBannerDefault'
|
|
20
|
+
},
|
|
21
|
+
dense: true
|
|
22
|
+
}, "\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.");
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
exports.Dense = Dense;
|
|
26
|
+
var _default = Dense;
|
|
27
|
+
exports["default"] = _default;
|
|
@@ -54,7 +54,7 @@ var _NotificationBannerHeading = _interopRequireDefault(require("@digigov/react-
|
|
|
54
54
|
|
|
55
55
|
var _NotificationBannerLink = _interopRequireDefault(require("@digigov/react-core/NotificationBannerLink"));
|
|
56
56
|
|
|
57
|
-
var _excluded = ["variant", "title", "link", "children"];
|
|
57
|
+
var _excluded = ["variant", "title", "link", "dense", "children"];
|
|
58
58
|
|
|
59
59
|
var _ref2 = /*#__PURE__*/_react["default"].createElement("br", null);
|
|
60
60
|
|
|
@@ -62,10 +62,12 @@ var NotificationBanner = function NotificationBanner(_ref) {
|
|
|
62
62
|
var variant = _ref.variant,
|
|
63
63
|
title = _ref.title,
|
|
64
64
|
link = _ref.link,
|
|
65
|
+
dense = _ref.dense,
|
|
65
66
|
children = _ref.children,
|
|
66
67
|
props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
67
68
|
return /*#__PURE__*/_react["default"].createElement(_NotificationBannerContainer["default"], (0, _extends2["default"])({
|
|
68
|
-
variant: variant
|
|
69
|
+
variant: variant,
|
|
70
|
+
dense: dense
|
|
69
71
|
}, 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"], {
|
|
70
72
|
href: link.href
|
|
71
73
|
}, link.label))));
|
|
@@ -8,4 +8,5 @@ declare namespace _default {
|
|
|
8
8
|
export default _default;
|
|
9
9
|
export * from "@digigov/ui/feedback/WarningText/__stories__/Default";
|
|
10
10
|
export * from "@digigov/ui/feedback/WarningText/__stories__/AssistiveText";
|
|
11
|
+
export * from "@digigov/ui/feedback/WarningText/__stories__/Dense";
|
|
11
12
|
import WarningText from "@digigov/ui/feedback/WarningText";
|
|
@@ -37,6 +37,20 @@ Object.keys(_AssistiveText).forEach(function (key) {
|
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
39
|
});
|
|
40
|
+
|
|
41
|
+
var _Dense = require("@digigov/ui/feedback/WarningText/__stories__/Dense");
|
|
42
|
+
|
|
43
|
+
Object.keys(_Dense).forEach(function (key) {
|
|
44
|
+
if (key === "default" || key === "__esModule") return;
|
|
45
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
46
|
+
if (key in exports && exports[key] === _Dense[key]) return;
|
|
47
|
+
Object.defineProperty(exports, key, {
|
|
48
|
+
enumerable: true,
|
|
49
|
+
get: function get() {
|
|
50
|
+
return _Dense[key];
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
});
|
|
40
54
|
var _default = {
|
|
41
55
|
title: 'Digigov UI/feedback/WarningText',
|
|
42
56
|
description: 'Use the warning text component when you need to warn users about something important, such as legal consequences of an action, or lack of action, that they might take.',
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = exports.Dense = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
12
|
+
var _WarningText = require("@digigov/ui/feedback/WarningText");
|
|
13
|
+
|
|
14
|
+
var _ref = /*#__PURE__*/_react["default"].createElement(_WarningText.WarningText, {
|
|
15
|
+
dense: true
|
|
16
|
+
}, "\u039C\u03C0\u03BF\u03C1\u03B5\u03AF \u03BD\u03B1 \u03C3\u03B1\u03C2 \u03B5\u03C0\u03B9\u03B2\u03BB\u03B7\u03B8\u03B5\u03AF \u03C0\u03C1\u03CC\u03C3\u03C4\u03B9\u03BC\u03BF \u03AD\u03C9\u03C2 \u03BA\u03B1\u03B9 5.000 \u03B5\u03C5\u03C1\u03CE \u03B5\u03AC\u03BD \u03B4\u03B5\u03BD \u03B5\u03B3\u03B3\u03C1\u03B1\u03C6\u03B5\u03AF\u03C4\u03B5.");
|
|
17
|
+
|
|
18
|
+
var Dense = function Dense() {
|
|
19
|
+
return _ref;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
exports.Dense = Dense;
|
|
23
|
+
var _default = Dense;
|
|
24
|
+
exports["default"] = _default;
|
|
@@ -13,6 +13,7 @@ export * from "./__stories__/GroupingButtons";
|
|
|
13
13
|
export * from "./__stories__/GroupingButtonsAndLinks";
|
|
14
14
|
export * from "./__stories__/CallToActionButton";
|
|
15
15
|
export * from "./__stories__/Disabled";
|
|
16
|
+
export * from "./__stories__/Dense";
|
|
16
17
|
export * from "./__stories__/ButtonLinkButton";
|
|
17
18
|
export * from "./__stories__/Back";
|
|
18
19
|
export * from "./__stories__/WithVariantLink";
|
|
@@ -108,6 +108,20 @@ Object.keys(_Disabled).forEach(function (key) {
|
|
|
108
108
|
});
|
|
109
109
|
});
|
|
110
110
|
|
|
111
|
+
var _Dense = require("./__stories__/Dense");
|
|
112
|
+
|
|
113
|
+
Object.keys(_Dense).forEach(function (key) {
|
|
114
|
+
if (key === "default" || key === "__esModule") return;
|
|
115
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
116
|
+
if (key in exports && exports[key] === _Dense[key]) return;
|
|
117
|
+
Object.defineProperty(exports, key, {
|
|
118
|
+
enumerable: true,
|
|
119
|
+
get: function get() {
|
|
120
|
+
return _Dense[key];
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
});
|
|
124
|
+
|
|
111
125
|
var _ButtonLinkButton = require("./__stories__/ButtonLinkButton");
|
|
112
126
|
|
|
113
127
|
Object.keys(_ButtonLinkButton).forEach(function (key) {
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = exports.Dense = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
12
|
+
var _Button = require("@digigov/ui/form/Button");
|
|
13
|
+
|
|
14
|
+
var _ref = /*#__PURE__*/_react["default"].createElement(_Button.Button, {
|
|
15
|
+
dense: true,
|
|
16
|
+
"aria-label": "\u03A0\u03C1\u03BF\u03B2\u03BF\u03BB\u03AE \u03B1\u03C1\u03C7\u03B5\u03AF\u03BF\u03C5"
|
|
17
|
+
}, "\u03A0\u03C1\u03BF\u03B2\u03BF\u03BB\u03AE \u03B1\u03C1\u03C7\u03B5\u03AF\u03BF\u03C5");
|
|
18
|
+
|
|
19
|
+
var Dense = function Dense() {
|
|
20
|
+
return _ref;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
exports.Dense = Dense;
|
|
24
|
+
var _default = Dense;
|
|
25
|
+
exports["default"] = _default;
|
|
@@ -15,4 +15,5 @@ export * from "@digigov/ui/form/Checkbox/__stories__/NoneAnswer";
|
|
|
15
15
|
export * from "@digigov/ui/form/Checkbox/__stories__/NoneAnswerWithError";
|
|
16
16
|
export * from "@digigov/ui/form/Checkbox/__stories__/WithErrorMessage";
|
|
17
17
|
export * from "@digigov/ui/form/Checkbox/__stories__/ConditionalReveal";
|
|
18
|
+
export * from "@digigov/ui/form/Checkbox/__stories__/Dense";
|
|
18
19
|
import Checkbox from "@digigov/ui/form/Checkbox";
|