@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,70 @@
|
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
+
import React, { useState } from 'react';
|
|
3
|
+
import { Top } from '@digigov/ui/layouts/Basic/Top';
|
|
4
|
+
import { Header, HeaderSection, HeaderContent, HeaderTitle } from '@digigov/ui/app/Header';
|
|
5
|
+
import { GovGRLogo } from '@digigov/ui/govgr/GovGRLogo';
|
|
6
|
+
import { Paragraph } from '@digigov/ui/typography/Paragraph';
|
|
7
|
+
import { Nav, NavMenuContainer, NavMenuTitle, NavMenuContent, NavMenuContentList, NavMenuContentListItem } from '@digigov/ui/navigation/NavList';
|
|
8
|
+
import { Link } from '@digigov/ui/navigation/Link';
|
|
9
|
+
import { Button } from '@digigov/ui/form/Button';
|
|
10
|
+
import ArrowIcon from '@digigov/react-icons/ArrowIcon';
|
|
11
|
+
var links = [];
|
|
12
|
+
|
|
13
|
+
for (var index = 0; index < 14; index++) {
|
|
14
|
+
links.push({
|
|
15
|
+
name: "Nav".concat(index),
|
|
16
|
+
label: "\u03C3\u03CD\u03BD\u03B4\u03B5\u03C3\u03BC\u03BF\u03C2 ".concat(index + 1),
|
|
17
|
+
href: "?q=item".concat(index + 1)
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
var menuLabel = 'Επιλογές';
|
|
22
|
+
var menuTitle = 'Επιλογές της υπηρεσίας';
|
|
23
|
+
|
|
24
|
+
var _ref = /*#__PURE__*/React.createElement(HeaderSection, null, /*#__PURE__*/React.createElement(GovGRLogo, {
|
|
25
|
+
href: "#"
|
|
26
|
+
}), /*#__PURE__*/React.createElement(HeaderTitle, null, "\u03A4\u03AF\u03C4\u03BB\u03BF\u03C2 \u03A5\u03C0\u03B7\u03C1\u03B5\u03C3\u03AF\u03B1\u03C2"));
|
|
27
|
+
|
|
28
|
+
var _ref2 = /*#__PURE__*/React.createElement(NavMenuContent, {
|
|
29
|
+
md: 12
|
|
30
|
+
}, /*#__PURE__*/React.createElement(Paragraph, null, "\u0395\u03BE\u03B5\u03C1\u03B5\u03C5\u03BD\u03AE\u03C3\u03C4\u03B5 \u03C4\u03B9\u03C2 \u03B4\u03C5\u03BD\u03B1\u03C4\u03CC\u03C4\u03B7\u03C4\u03B5\u03C2 \u03C4\u03B7\u03C2 \u03A5\u03C0\u03B7\u03C1\u03B5\u03C3\u03AF\u03B1\u03C2, \u03B5\u03C0\u03B9\u03BB\u03AD\u03B3\u03BF\u03BD\u03C4\u03B1\u03C2 \u03B1\u03C0\u03CC \u03C4\u03BF\u03C5\u03C2 \u03C0\u03B1\u03C1\u03B1\u03BA\u03AC\u03C4\u03C9 \u03C3\u03C5\u03BD\u03B4\u03AD\u03C3\u03BC\u03BF\u03C5\u03C2:"));
|
|
31
|
+
|
|
32
|
+
var _ref3 = /*#__PURE__*/React.createElement(NavMenuTitle, null, menuTitle || menuLabel);
|
|
33
|
+
|
|
34
|
+
export var UsingHeaderButton = function UsingHeaderButton() {
|
|
35
|
+
var _useState = useState(false),
|
|
36
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
37
|
+
open = _useState2[0],
|
|
38
|
+
setOpen = _useState2[1];
|
|
39
|
+
|
|
40
|
+
return /*#__PURE__*/React.createElement(Top, null, /*#__PURE__*/React.createElement(Header, null, /*#__PURE__*/React.createElement(HeaderContent, null, _ref, /*#__PURE__*/React.createElement(HeaderSection, null, /*#__PURE__*/React.createElement(Button, {
|
|
41
|
+
variant: "link",
|
|
42
|
+
onClick: function onClick() {
|
|
43
|
+
return setOpen(!open);
|
|
44
|
+
}
|
|
45
|
+
}, menuLabel, /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
46
|
+
direction: open ? 'up' : "down"
|
|
47
|
+
}))))), /*#__PURE__*/React.createElement(Nav, {
|
|
48
|
+
open: open,
|
|
49
|
+
drawer: "smDown",
|
|
50
|
+
onClose: function onClose() {
|
|
51
|
+
return setOpen(false);
|
|
52
|
+
},
|
|
53
|
+
closeButtonLabel: "\u039A\u03BB\u03B5\u03AF\u03C3\u03B9\u03BC\u03BF",
|
|
54
|
+
"aria-label": "navigation list"
|
|
55
|
+
}, /*#__PURE__*/React.createElement(NavMenuContainer, {
|
|
56
|
+
active: open
|
|
57
|
+
}, _ref2, _ref3, /*#__PURE__*/React.createElement(NavMenuContent, null, /*#__PURE__*/React.createElement(NavMenuContentList, {
|
|
58
|
+
role: "menu"
|
|
59
|
+
}, links && links.map(function (item, menuIndex) {
|
|
60
|
+
return /*#__PURE__*/React.createElement(NavMenuContentListItem, {
|
|
61
|
+
key: menuIndex,
|
|
62
|
+
role: "presentation"
|
|
63
|
+
}, (item === null || item === void 0 ? void 0 : item.href) && /*#__PURE__*/React.createElement(Link, {
|
|
64
|
+
role: "menuitem",
|
|
65
|
+
id: item.name,
|
|
66
|
+
href: item.href
|
|
67
|
+
}, item.label));
|
|
68
|
+
}))))));
|
|
69
|
+
};
|
|
70
|
+
export default UsingHeaderButton;
|
|
@@ -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/es/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
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Header from '@digigov/ui/app/Header';
|
|
3
3
|
import HeaderContent from '@digigov/ui/app/Header/HeaderContent';
|
|
4
|
-
import HeaderNavMenuContent from '@digigov/ui/app/Header/HeaderNavMenuContent';
|
|
5
4
|
import HeaderSection from '@digigov/ui/app/Header/HeaderSection';
|
|
6
5
|
import HeaderTitle from '@digigov/ui/app/Header/HeaderTitle';
|
|
7
6
|
import GovGRLogo from '@digigov/ui/govgr/GovGRLogo';
|
|
8
|
-
import {
|
|
7
|
+
import { ArrowIcon, MoreVertIcon } from '@digigov/ui/icons';
|
|
9
8
|
import { Top } from '@digigov/ui/layouts/Basic';
|
|
10
9
|
import { Dropdown, DropdownButton, DropdownContent } from '@digigov/ui/navigation/Dropdown';
|
|
11
10
|
import NavList from '@digigov/ui/navigation/NavList/NavList';
|
|
12
11
|
import { NavListItemAction } from '@digigov/ui/navigation/NavList';
|
|
12
|
+
import Button from '@digigov/ui/form/Button';
|
|
13
13
|
|
|
14
14
|
var _ref = /*#__PURE__*/React.createElement(Top, null, /*#__PURE__*/React.createElement(Header, null, /*#__PURE__*/React.createElement(HeaderContent, null, /*#__PURE__*/React.createElement(HeaderSection, null, /*#__PURE__*/React.createElement(GovGRLogo, null), /*#__PURE__*/React.createElement(HeaderTitle, {
|
|
15
15
|
href: "#"
|
|
16
|
-
}, "\u0394\u03B7\u03BB\u03CE\u03C3\u03B5\u03B9\u03C2")), /*#__PURE__*/React.createElement(
|
|
17
|
-
|
|
18
|
-
}, /*#__PURE__*/React.createElement(
|
|
19
|
-
|
|
20
|
-
}
|
|
16
|
+
}, "\u0394\u03B7\u03BB\u03CE\u03C3\u03B5\u03B9\u03C2")), /*#__PURE__*/React.createElement(HeaderSection, null, /*#__PURE__*/React.createElement(Button, {
|
|
17
|
+
variant: "link"
|
|
18
|
+
}, "\u039C\u03B5\u03BD\u03BF\u03CD ", /*#__PURE__*/React.createElement(ArrowIcon, {
|
|
19
|
+
direction: "down"
|
|
20
|
+
})), /*#__PURE__*/React.createElement(Dropdown, {
|
|
21
21
|
align: "right"
|
|
22
22
|
}, /*#__PURE__*/React.createElement(DropdownButton, {
|
|
23
23
|
variant: "link"
|
|
@@ -29,10 +29,7 @@ var _ref = /*#__PURE__*/React.createElement(Top, null, /*#__PURE__*/React.create
|
|
|
29
29
|
href: "#"
|
|
30
30
|
}, "\u03A1\u03C5\u03B8\u03BC\u03AF\u03C3\u03B5\u03B9\u03C2"), /*#__PURE__*/React.createElement(NavListItemAction, {
|
|
31
31
|
href: "#"
|
|
32
|
-
}, "\u0388\u03BE\u03BF\u03B4\u03BF\u03C2")))))
|
|
33
|
-
smUpHidden: true,
|
|
34
|
-
size: "sm"
|
|
35
|
-
}))));
|
|
32
|
+
}, "\u0388\u03BE\u03BF\u03B4\u03BF\u03C2"))))))));
|
|
36
33
|
|
|
37
34
|
export var WithHeaderNavigation = function WithHeaderNavigation() {
|
|
38
35
|
return _ref;
|
|
@@ -1,17 +1,35 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
+
import React, { useState } from 'react';
|
|
3
|
+
import { NavListAuto } from '@digigov/ui/navigation/NavList';
|
|
4
|
+
import { BurgerIcon } from '@digigov/ui/icons';
|
|
3
5
|
import { Header } from '@digigov/ui/app/Header';
|
|
4
6
|
import { HeaderContent } from '@digigov/ui/app/Header/HeaderContent';
|
|
5
7
|
import { HeaderSection } from '@digigov/ui/app/Header/HeaderSection';
|
|
6
8
|
import { GovGRLogo } from '@digigov/ui/govgr/GovGRLogo';
|
|
7
9
|
import { Top } from '@digigov/ui/layouts/Basic';
|
|
10
|
+
import { Button } from '@digigov/ui/form';
|
|
8
11
|
|
|
9
|
-
var _ref = /*#__PURE__*/React.createElement(
|
|
12
|
+
var _ref = /*#__PURE__*/React.createElement(HeaderSection, null, /*#__PURE__*/React.createElement(GovGRLogo, {
|
|
10
13
|
href: "#"
|
|
11
|
-
}))
|
|
14
|
+
}));
|
|
15
|
+
|
|
16
|
+
var _ref2 = /*#__PURE__*/React.createElement(BurgerIcon, {
|
|
17
|
+
size: "md"
|
|
18
|
+
});
|
|
12
19
|
|
|
13
20
|
export var WithNavigation = function WithNavigation() {
|
|
14
|
-
|
|
21
|
+
var _useState = useState(false),
|
|
22
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
23
|
+
open = _useState2[0],
|
|
24
|
+
setOpen = _useState2[1];
|
|
25
|
+
|
|
26
|
+
return /*#__PURE__*/React.createElement(Top, null, /*#__PURE__*/React.createElement(Header, null, /*#__PURE__*/React.createElement(HeaderContent, null, _ref, /*#__PURE__*/React.createElement(HeaderSection, null, /*#__PURE__*/React.createElement(Button, {
|
|
27
|
+
variant: "link",
|
|
28
|
+
smUpHidden: true,
|
|
29
|
+
onClick: function onClick() {
|
|
30
|
+
return setOpen(!open);
|
|
31
|
+
}
|
|
32
|
+
}, _ref2)))), /*#__PURE__*/React.createElement(NavListAuto, {
|
|
15
33
|
links: [{
|
|
16
34
|
name: 'home',
|
|
17
35
|
label: 'Αρχική',
|
|
@@ -29,7 +47,11 @@ export var WithNavigation = function WithNavigation() {
|
|
|
29
47
|
label: 'Επικοινωνία',
|
|
30
48
|
href: '#contact'
|
|
31
49
|
}],
|
|
32
|
-
|
|
50
|
+
open: open,
|
|
51
|
+
drawer: "smDown",
|
|
52
|
+
onClose: function onClose() {
|
|
53
|
+
return setOpen(false);
|
|
54
|
+
}
|
|
33
55
|
}));
|
|
34
56
|
};
|
|
35
57
|
export default WithNavigation;
|
|
@@ -7,4 +7,5 @@ export default {
|
|
|
7
7
|
displayName: 'Modal'
|
|
8
8
|
};
|
|
9
9
|
export * from '@digigov/ui/app/Modal/__stories__/Default';
|
|
10
|
-
export * from '@digigov/ui/app/Modal/__stories__/AlertDialog';
|
|
10
|
+
export * from '@digigov/ui/app/Modal/__stories__/AlertDialog';
|
|
11
|
+
export * from '@digigov/ui/app/Modal/__stories__/Dense';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "4",
|
|
3
|
+
"stories": {
|
|
4
|
+
"digigov-ui-app-modal--dense": {
|
|
5
|
+
"actionSets": [
|
|
6
|
+
{
|
|
7
|
+
"actions": [
|
|
8
|
+
{
|
|
9
|
+
"name": "click",
|
|
10
|
+
"args": {
|
|
11
|
+
"selector": "html>body>div:nth-child(5)>div>button"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"id": "kiFgErhdQ2jf",
|
|
16
|
+
"title": "Open modal"
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
+
import React, { useState } from 'react';
|
|
3
|
+
import { Modal, ModalHeading, ModalContent, ModalAction } from '@digigov/ui/app/Modal';
|
|
4
|
+
import { Button } from '@digigov/ui/form/Button';
|
|
5
|
+
import { FieldContainer } from '@digigov/ui/form/FieldContainer';
|
|
6
|
+
import { LabelContainer } from '@digigov/ui/form/LabelContainer';
|
|
7
|
+
import { TextInput } from '@digigov/ui/form/TextInput';
|
|
8
|
+
|
|
9
|
+
var _ref = /*#__PURE__*/React.createElement(ModalHeading, {
|
|
10
|
+
id: "modal-label"
|
|
11
|
+
}, "\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u03C4\u03B7\u03BB\u03B5\u03C6\u03CE\u03BD\u03BF\u03C5");
|
|
12
|
+
|
|
13
|
+
var _ref2 = /*#__PURE__*/React.createElement(ModalContent, null, /*#__PURE__*/React.createElement(FieldContainer, {
|
|
14
|
+
margin: 0
|
|
15
|
+
}, /*#__PURE__*/React.createElement(LabelContainer, null, "\u03A3\u03C5\u03BC\u03C0\u03BB\u03B7\u03C1\u03CE\u03C3\u03C4\u03B5 \u03C4\u03BF \u03C4\u03B7\u03BB\u03AD\u03C6\u03C9\u03BD\u03BF \u03B5\u03C0\u03B9\u03BA\u03BF\u03B9\u03BD\u03C9\u03BD\u03AF\u03B1\u03C2", /*#__PURE__*/React.createElement(TextInput, {
|
|
16
|
+
name: "inputext",
|
|
17
|
+
maxWidth: '10-char'
|
|
18
|
+
}))));
|
|
19
|
+
|
|
20
|
+
var _ref3 = /*#__PURE__*/React.createElement(Button, null, "\u03A5\u03C0\u03BF\u03B2\u03BF\u03BB\u03AE");
|
|
21
|
+
|
|
22
|
+
export var Dense = function Dense() {
|
|
23
|
+
var _useState = useState(false),
|
|
24
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
25
|
+
open = _useState2[0],
|
|
26
|
+
setOpen = _useState2[1];
|
|
27
|
+
|
|
28
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Button, {
|
|
29
|
+
onClick: function onClick() {
|
|
30
|
+
setOpen(!open);
|
|
31
|
+
}
|
|
32
|
+
}, "\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u03C4\u03B7\u03BB\u03B5\u03C6\u03CE\u03BD\u03BF\u03C5"), /*#__PURE__*/React.createElement(Modal, {
|
|
33
|
+
open: open,
|
|
34
|
+
"aria-labelledby": "modal-label",
|
|
35
|
+
dense: true
|
|
36
|
+
}, _ref, _ref2, /*#__PURE__*/React.createElement(ModalAction, null, _ref3, /*#__PURE__*/React.createElement(Button, {
|
|
37
|
+
variant: "link",
|
|
38
|
+
onClick: function onClick() {
|
|
39
|
+
setOpen(!open);
|
|
40
|
+
}
|
|
41
|
+
}, "\u0391\u03BA\u03CD\u03C1\u03C9\u03C3\u03B7"))));
|
|
42
|
+
};
|
|
43
|
+
export default Dense;
|
|
@@ -5,4 +5,5 @@ export default {
|
|
|
5
5
|
displayName: 'CopyToClipboard'
|
|
6
6
|
};
|
|
7
7
|
export * from '@digigov/ui/feedback/CopyToClipboard/__stories__/Default';
|
|
8
|
-
export * from '@digigov/ui/feedback/CopyToClipboard/__stories__/Banner';
|
|
8
|
+
export * from '@digigov/ui/feedback/CopyToClipboard/__stories__/Banner';
|
|
9
|
+
export * from '@digigov/ui/feedback/CopyToClipboard/__stories__/Dense';
|
|
@@ -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,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CopyToClipboard } from '@digigov/ui/feedback/CopyToClipboard';
|
|
3
|
+
import { Button } from '@digigov/ui/form/Button';
|
|
4
|
+
|
|
5
|
+
var _ref = /*#__PURE__*/React.createElement(CopyToClipboard, {
|
|
6
|
+
text: "copied-text",
|
|
7
|
+
variant: "tooltip",
|
|
8
|
+
tooltipAlign: "left",
|
|
9
|
+
message: "\u0391\u03BD\u03C4\u03B9\u03B3\u03C1\u03AC\u03C6\u03B7\u03BA\u03B5 \u03C3\u03C4\u03BF \u03C0\u03C1\u03CC\u03C7\u03B5\u03B9\u03C1\u03BF",
|
|
10
|
+
id: "copy-to-clipboard",
|
|
11
|
+
dense: true
|
|
12
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
13
|
+
color: "secondary",
|
|
14
|
+
"aria-describedby": "copy-to-clipboard"
|
|
15
|
+
}, "\u0391\u03BD\u03C4\u03B9\u03B3\u03C1\u03B1\u03C6\u03AE"));
|
|
16
|
+
|
|
17
|
+
export var Dense = function Dense() {
|
|
18
|
+
return _ref;
|
|
19
|
+
};
|
|
20
|
+
export default Dense;
|
|
@@ -11,6 +11,7 @@ export var CopyToClipboard = /*#__PURE__*/React.forwardRef(function CopyToClipbo
|
|
|
11
11
|
_ref$tooltipAlign = _ref.tooltipAlign,
|
|
12
12
|
tooltipAlign = _ref$tooltipAlign === void 0 ? 'right' : _ref$tooltipAlign,
|
|
13
13
|
message = _ref.message,
|
|
14
|
+
dense = _ref.dense,
|
|
14
15
|
_ref$timeout = _ref.timeout,
|
|
15
16
|
timeout = _ref$timeout === void 0 ? 3000 : _ref$timeout,
|
|
16
17
|
children = _ref.children;
|
|
@@ -41,7 +42,8 @@ export var CopyToClipboard = /*#__PURE__*/React.forwardRef(function CopyToClipbo
|
|
|
41
42
|
onClick: copyToClipboard,
|
|
42
43
|
variant: variant,
|
|
43
44
|
tooltipAlign: tooltipAlign,
|
|
44
|
-
ref: ref
|
|
45
|
+
ref: ref,
|
|
46
|
+
dense: dense
|
|
45
47
|
}, children, enabled && /*#__PURE__*/React.createElement(CopyToClipboardMessage, {
|
|
46
48
|
enabled: enabled,
|
|
47
49
|
role: "tooltip"
|
|
@@ -7,6 +7,7 @@ export default {
|
|
|
7
7
|
displayName: 'ErrorSummary'
|
|
8
8
|
};
|
|
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';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ErrorSummary } from '@digigov/ui/feedback/ErrorSummary';
|
|
3
|
+
import { Link } from '@digigov/ui/navigation/Link';
|
|
4
|
+
import { Heading } from '@digigov/ui/typography/Heading';
|
|
5
|
+
|
|
6
|
+
var _ref = /*#__PURE__*/React.createElement(ErrorSummary, {
|
|
7
|
+
dense: true
|
|
8
|
+
}, /*#__PURE__*/React.createElement(Heading, {
|
|
9
|
+
size: "sm"
|
|
10
|
+
}, "\u03A5\u03C0\u03AE\u03C1\u03BE\u03B5 \u03BA\u03AC\u03C0\u03BF\u03B9\u03BF \u03C0\u03C1\u03CC\u03B2\u03BB\u03B7\u03BC\u03B1"), /*#__PURE__*/React.createElement(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"));
|
|
11
|
+
|
|
12
|
+
export var Dense = function Dense() {
|
|
13
|
+
return _ref;
|
|
14
|
+
};
|
|
15
|
+
export default Dense;
|
|
@@ -8,4 +8,5 @@ export default {
|
|
|
8
8
|
displayName: 'NotificationBanner'
|
|
9
9
|
};
|
|
10
10
|
export * from '@digigov/ui/feedback/NotificationBanner/__stories__/Default';
|
|
11
|
-
export * from '@digigov/ui/feedback/NotificationBanner/__stories__/Success';
|
|
11
|
+
export * from '@digigov/ui/feedback/NotificationBanner/__stories__/Success';
|
|
12
|
+
export * from '@digigov/ui/feedback/NotificationBanner/__stories__/Dense';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { NotificationBanner } from '@digigov/ui/feedback/NotificationBanner';
|
|
3
|
+
export var Dense = function Dense() {
|
|
4
|
+
return /*#__PURE__*/React.createElement(NotificationBanner, {
|
|
5
|
+
title: "\u0395\u03B9\u03B4\u03BF\u03C0\u03BF\u03AF\u03B7\u03C3\u03B7",
|
|
6
|
+
link: {
|
|
7
|
+
label: 'Προβολή αίτησης',
|
|
8
|
+
href: '#link?name=NotificationBannerDefault'
|
|
9
|
+
},
|
|
10
|
+
dense: true
|
|
11
|
+
}, "\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.");
|
|
12
|
+
};
|
|
13
|
+
export default Dense;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["variant", "title", "link", "children"];
|
|
3
|
+
var _excluded = ["variant", "title", "link", "dense", "children"];
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import NotificationBannerContainer from '@digigov/react-core/NotificationBannerContainer';
|
|
6
6
|
import NotificationBannerContent from '@digigov/react-core/NotificationBannerContent';
|
|
@@ -14,11 +14,13 @@ export var NotificationBanner = function NotificationBanner(_ref) {
|
|
|
14
14
|
var variant = _ref.variant,
|
|
15
15
|
title = _ref.title,
|
|
16
16
|
link = _ref.link,
|
|
17
|
+
dense = _ref.dense,
|
|
17
18
|
children = _ref.children,
|
|
18
19
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
19
20
|
|
|
20
21
|
return /*#__PURE__*/React.createElement(NotificationBannerContainer, _extends({
|
|
21
|
-
variant: variant
|
|
22
|
+
variant: variant,
|
|
23
|
+
dense: dense
|
|
22
24
|
}, 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, {
|
|
23
25
|
href: link.href
|
|
24
26
|
}, link.label))));
|
|
@@ -7,4 +7,5 @@ export default {
|
|
|
7
7
|
displayName: 'WarningText'
|
|
8
8
|
};
|
|
9
9
|
export * from '@digigov/ui/feedback/WarningText/__stories__/Default';
|
|
10
|
-
export * from '@digigov/ui/feedback/WarningText/__stories__/AssistiveText';
|
|
10
|
+
export * from '@digigov/ui/feedback/WarningText/__stories__/AssistiveText';
|
|
11
|
+
export * from '@digigov/ui/feedback/WarningText/__stories__/Dense';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WarningText } from '@digigov/ui/feedback/WarningText';
|
|
3
|
+
|
|
4
|
+
var _ref = /*#__PURE__*/React.createElement(WarningText, {
|
|
5
|
+
dense: true
|
|
6
|
+
}, "\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.");
|
|
7
|
+
|
|
8
|
+
export var Dense = function Dense() {
|
|
9
|
+
return _ref;
|
|
10
|
+
};
|
|
11
|
+
export default Dense;
|
|
@@ -14,6 +14,7 @@ export * from './__stories__/GroupingButtons';
|
|
|
14
14
|
export * from './__stories__/GroupingButtonsAndLinks';
|
|
15
15
|
export * from './__stories__/CallToActionButton';
|
|
16
16
|
export * from './__stories__/Disabled';
|
|
17
|
+
export * from './__stories__/Dense';
|
|
17
18
|
export * from './__stories__/ButtonLinkButton';
|
|
18
19
|
export * from './__stories__/Back';
|
|
19
20
|
export * from './__stories__/WithVariantLink';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Button } from '@digigov/ui/form/Button';
|
|
3
|
+
|
|
4
|
+
var _ref = /*#__PURE__*/React.createElement(Button, {
|
|
5
|
+
dense: true,
|
|
6
|
+
"aria-label": "\u03A0\u03C1\u03BF\u03B2\u03BF\u03BB\u03AE \u03B1\u03C1\u03C7\u03B5\u03AF\u03BF\u03C5"
|
|
7
|
+
}, "\u03A0\u03C1\u03BF\u03B2\u03BF\u03BB\u03AE \u03B1\u03C1\u03C7\u03B5\u03AF\u03BF\u03C5");
|
|
8
|
+
|
|
9
|
+
export var Dense = function Dense() {
|
|
10
|
+
return _ref;
|
|
11
|
+
};
|
|
12
|
+
export default Dense;
|
|
@@ -14,4 +14,5 @@ export * from '@digigov/ui/form/Checkbox/__stories__/WithHint';
|
|
|
14
14
|
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
|
-
export * from '@digigov/ui/form/Checkbox/__stories__/ConditionalReveal';
|
|
17
|
+
export * from '@digigov/ui/form/Checkbox/__stories__/ConditionalReveal';
|
|
18
|
+
export * from '@digigov/ui/form/Checkbox/__stories__/Dense';
|