@digigov/ui 1.0.0-480e3d97 → 1.0.0-55e4210c
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/Footer/Footer.stories.playwright.json +2 -2
- package/app/Header/Header.stories.playwright.json +1 -1
- package/app/Header/__stories__/WithHeaderNavigation.js +13 -21
- package/app/Header/__stories__/WithNavigation.js +8 -40
- package/app/Masthead/Masthead.stories.playwright.json +1 -1
- package/app/ThemeOptions/index.js +2 -2
- package/content/Details/index.mdx +5 -0
- package/content/Table/__stories__/WithFloatingScroll.js +10 -4
- package/content/Table/index.js +7 -5
- package/content/Table/index.mdx +1 -1
- package/es/app/Footer/Footer.stories.playwright.json +2 -2
- package/es/app/Header/Header.stories.playwright.json +1 -1
- package/es/app/Header/__stories__/WithHeaderNavigation.js +13 -13
- package/es/app/Header/__stories__/WithNavigation.js +9 -36
- package/es/app/Masthead/Masthead.stories.playwright.json +1 -1
- package/es/app/ThemeOptions/index.js +2 -2
- package/es/content/Details/index.mdx +5 -0
- package/es/content/Table/__stories__/WithFloatingScroll.js +5 -4
- package/es/content/Table/index.js +7 -4
- package/es/content/Table/index.mdx +1 -1
- package/es/feedback/ServiceBadge/index.mdx +9 -5
- package/es/form/Button/index.mdx +4 -4
- package/es/form/Checkbox/index.mdx +5 -0
- package/es/form/DateInputContainer/index.mdx +5 -0
- package/es/form/FileUpload/index.mdx +2 -0
- package/es/form/RadioContainer/index.mdx +5 -0
- package/es/form/SelectContainer/index.mdx +6 -0
- package/es/icons/Icon/index.js +2 -2
- package/es/layouts/Grid/Grid.stories.js +1 -0
- package/es/layouts/Grid/__stories__/ResponsiveSpacing.js +79 -0
- package/es/navigation/Breadcrumbs/index.mdx +5 -0
- package/es/navigation/Drawer/__stories__/Default.js +25 -66
- package/es/navigation/Dropdown/__stories__/AlignRight.js +9 -8
- package/es/navigation/Dropdown/__stories__/Default.js +9 -8
- package/es/navigation/Dropdown/__stories__/PlacementTop.js +9 -8
- package/es/navigation/Dropdown/index.mdx +0 -2
- package/es/navigation/Link/index.js +21 -1
- package/es/navigation/Link/index.mdx +2 -0
- package/es/navigation/NavList/NavList.stories.playwright.json +2 -2
- package/es/navigation/NavList/NavListAuto/index.js +54 -0
- package/es/navigation/NavList/{NavMenuContainerContentList.js → NavMenuContentList.js} +5 -5
- package/es/navigation/NavList/__stories__/Default.js +12 -28
- package/es/navigation/NavList/__stories__/NavVerticalLayout.js +12 -26
- package/es/navigation/NavList/hooks/useNavList.js +2 -2
- package/es/navigation/NavList/hooks/useTogglableNav.js +33 -18
- package/es/navigation/NavList/index.js +16 -17
- package/es/navigation/NavList/types.js +1 -6
- package/es/navigation/Pagination/__stories__/Default.js +7 -65
- package/es/navigation/Pagination/index.mdx +1 -2
- package/es/navigation/Tabs/index.mdx +6 -0
- package/es/registry.js +4 -40
- package/es/typography/Hint/index.mdx +2 -0
- package/es/typography/NormalText/index.mdx +2 -0
- package/es/typography/Paragraph/index.mdx +1 -0
- package/esm/app/Footer/Footer.stories.playwright.json +2 -2
- package/esm/app/Header/Header.stories.playwright.json +1 -1
- package/esm/app/Header/__stories__/WithHeaderNavigation.js +13 -13
- package/esm/app/Header/__stories__/WithNavigation.js +9 -36
- package/esm/app/Masthead/Masthead.stories.playwright.json +1 -1
- package/esm/app/ThemeOptions/index.js +2 -2
- package/esm/content/Details/index.mdx +5 -0
- package/esm/content/Table/__stories__/WithFloatingScroll.js +5 -4
- package/esm/content/Table/index.js +7 -4
- package/esm/content/Table/index.mdx +1 -1
- package/esm/feedback/ServiceBadge/index.mdx +9 -5
- package/esm/form/Button/index.mdx +4 -4
- package/esm/form/Checkbox/index.mdx +5 -0
- package/esm/form/DateInputContainer/index.mdx +5 -0
- package/esm/form/FileUpload/index.mdx +2 -0
- package/esm/form/RadioContainer/index.mdx +5 -0
- package/esm/form/SelectContainer/index.mdx +6 -0
- package/esm/icons/Icon/index.js +2 -2
- package/esm/index.js +1 -1
- package/esm/layouts/Grid/Grid.stories.js +1 -0
- package/esm/layouts/Grid/__stories__/ResponsiveSpacing.js +79 -0
- package/esm/navigation/Breadcrumbs/index.mdx +5 -0
- package/esm/navigation/Drawer/__stories__/Default.js +25 -66
- package/esm/navigation/Dropdown/__stories__/AlignRight.js +9 -8
- package/esm/navigation/Dropdown/__stories__/Default.js +9 -8
- package/esm/navigation/Dropdown/__stories__/PlacementTop.js +9 -8
- package/esm/navigation/Dropdown/index.mdx +0 -2
- package/esm/navigation/Link/index.js +21 -1
- package/esm/navigation/Link/index.mdx +2 -0
- package/esm/navigation/NavList/NavList.stories.playwright.json +2 -2
- package/esm/navigation/NavList/NavListAuto/index.js +54 -0
- package/esm/navigation/NavList/{NavMenuContainerContentList.js → NavMenuContentList.js} +5 -5
- package/esm/navigation/NavList/__stories__/Default.js +12 -28
- package/esm/navigation/NavList/__stories__/NavVerticalLayout.js +12 -26
- package/esm/navigation/NavList/hooks/useNavList.js +2 -2
- package/esm/navigation/NavList/hooks/useTogglableNav.js +33 -18
- package/esm/navigation/NavList/index.js +16 -17
- package/esm/navigation/NavList/types.js +1 -6
- package/esm/navigation/Pagination/__stories__/Default.js +7 -65
- package/esm/navigation/Pagination/index.mdx +1 -2
- package/esm/navigation/Tabs/index.mdx +6 -0
- package/esm/registry.js +4 -40
- package/esm/typography/Hint/index.mdx +2 -0
- package/esm/typography/NormalText/index.mdx +2 -0
- package/esm/typography/Paragraph/index.mdx +1 -0
- package/feedback/ServiceBadge/index.mdx +9 -5
- package/form/Button/index.mdx +4 -4
- package/form/Checkbox/index.mdx +5 -0
- package/form/DateInputContainer/index.mdx +5 -0
- package/form/FileUpload/index.mdx +2 -0
- package/form/RadioContainer/index.mdx +5 -0
- package/form/SelectContainer/index.mdx +6 -0
- package/icons/Icon/index.d.ts +2 -2
- package/icons/Icon/index.js +1 -1
- package/layouts/Basic/Content/index.d.ts +1 -1
- package/layouts/Basic/Side/index.d.ts +1 -1
- package/layouts/Grid/Grid.stories.d.ts +1 -0
- package/layouts/Grid/Grid.stories.js +14 -0
- package/layouts/Grid/__stories__/ResponsiveSpacing.d.ts +2 -0
- package/layouts/Grid/__stories__/ResponsiveSpacing.js +93 -0
- package/navigation/Breadcrumbs/index.mdx +5 -0
- package/navigation/Drawer/__stories__/Default.js +24 -68
- package/navigation/Dropdown/__stories__/AlignRight.js +9 -9
- package/navigation/Dropdown/__stories__/Default.js +9 -9
- package/navigation/Dropdown/__stories__/PlacementTop.js +9 -9
- package/navigation/Dropdown/index.mdx +0 -2
- package/navigation/Link/index.d.ts +1 -1
- package/navigation/Link/index.js +32 -7
- package/navigation/Link/index.mdx +2 -0
- package/navigation/NavList/NavList.stories.playwright.json +2 -2
- package/navigation/NavList/NavListAuto/index.js +80 -0
- package/navigation/NavList/NavMenuContentList.d.ts +5 -0
- package/navigation/NavList/{NavMenuContainerContentList.js → NavMenuContentList.js} +10 -10
- package/navigation/NavList/__stories__/Default.js +12 -28
- package/navigation/NavList/__stories__/NavVerticalLayout.js +12 -32
- package/navigation/NavList/hooks/useNavList.d.ts +1 -1
- package/navigation/NavList/hooks/useNavList.js +2 -2
- package/navigation/NavList/hooks/useTogglableNav.d.ts +1 -0
- package/navigation/NavList/hooks/useTogglableNav.js +33 -18
- package/navigation/NavList/index.d.ts +16 -17
- package/navigation/NavList/index.js +54 -96
- package/navigation/NavList/types.d.ts +14 -17
- package/navigation/NavList/types.js +1 -14
- package/navigation/Pagination/__stories__/Default.js +7 -65
- package/navigation/Pagination/index.mdx +1 -2
- package/navigation/Tabs/index.mdx +6 -0
- package/package.json +3 -3
- package/registry.d.ts +2 -20
- package/registry.js +4 -58
- package/src/app/Footer/Footer.stories.playwright.json +2 -2
- package/src/app/Header/Header.stories.playwright.json +1 -1
- package/src/app/Header/__stories__/WithHeaderNavigation.tsx +23 -35
- package/src/app/Header/__stories__/WithNavigation.tsx +13 -34
- package/src/app/Masthead/Masthead.stories.playwright.json +1 -1
- package/src/app/ThemeOptions/index.tsx +3 -3
- package/src/content/Details/index.mdx +5 -0
- package/src/content/Table/__stories__/WithFloatingScroll.tsx +5 -7
- package/src/content/Table/index.mdx +1 -1
- package/src/content/Table/index.tsx +9 -8
- package/src/feedback/ServiceBadge/index.mdx +9 -5
- package/src/form/Button/index.mdx +4 -4
- package/src/form/Checkbox/index.mdx +5 -0
- package/src/form/DateInputContainer/index.mdx +5 -0
- package/src/form/FileUpload/index.mdx +2 -0
- package/src/form/RadioContainer/index.mdx +5 -0
- package/src/form/SelectContainer/index.mdx +6 -0
- package/src/icons/Icon/index.tsx +2 -2
- package/src/layouts/Grid/Grid.stories.js +1 -0
- package/src/layouts/Grid/__stories__/ResponsiveSpacing.tsx +43 -0
- package/src/navigation/Breadcrumbs/index.mdx +5 -0
- package/src/navigation/Drawer/__stories__/Default.tsx +31 -84
- package/src/navigation/Dropdown/__stories__/AlignRight.tsx +13 -12
- package/src/navigation/Dropdown/__stories__/Default.tsx +10 -11
- package/src/navigation/Dropdown/__stories__/PlacementTop.tsx +11 -11
- package/src/navigation/Dropdown/index.mdx +0 -2
- package/src/navigation/Link/index.mdx +2 -0
- package/src/navigation/Link/index.tsx +18 -1
- package/src/navigation/NavList/NavList.stories.playwright.json +2 -2
- package/src/navigation/NavList/NavListAuto/index.tsx +68 -0
- package/src/navigation/NavList/{NavMenuContainerContentList.tsx → NavMenuContentList.tsx} +8 -8
- package/src/navigation/NavList/__stories__/Default.tsx +28 -40
- package/src/navigation/NavList/__stories__/NavVerticalLayout.tsx +25 -33
- package/src/navigation/NavList/hooks/useNavList.ts +3 -3
- package/src/navigation/NavList/hooks/useTogglableNav.tsx +31 -19
- package/src/navigation/NavList/index.tsx +16 -17
- package/src/navigation/NavList/types.tsx +16 -28
- package/src/navigation/Pagination/__stories__/Default.tsx +2 -76
- package/src/navigation/Pagination/index.mdx +1 -2
- package/src/navigation/Tabs/index.mdx +6 -0
- package/src/registry.js +4 -40
- package/src/typography/Hint/index.mdx +2 -0
- package/src/typography/NormalText/index.mdx +2 -0
- package/src/typography/Paragraph/index.mdx +1 -0
- package/typography/Hint/index.mdx +2 -0
- package/typography/NormalText/index.mdx +2 -0
- package/typography/Paragraph/index.mdx +1 -0
- package/es/navigation/NavList/NavListAuto/NavListAuto.js +0 -31
- package/es/navigation/NavList/NavListAuto/NavListBaseAuto.js +0 -22
- package/es/navigation/NavList/NavListAuto/NavListContextAuto.js +0 -104
- package/es/navigation/NavList/NavListAuto/NavListItemAnchorAuto.js +0 -26
- package/es/navigation/NavList/NavListAuto/NavListItemAuto.js +0 -38
- package/es/navigation/NavList/NavListAuto/NavListItemButtonAuto.js +0 -30
- package/es/navigation/NavList/NavListAuto/NavListMenuAuto.js +0 -36
- package/es/navigation/NavList/NavListAuto/NavListSubMenuAuto.js +0 -26
- package/es/navigation/NavList/NavListItem.js +0 -23
- package/es/navigation/NavList/NavListItemBase.js +0 -44
- package/es/navigation/NavList/NavListItemButton.js +0 -3
- package/es/navigation/NavList/NavListItemLink.js +0 -3
- package/es/navigation/NavList/NavMenu.js +0 -3
- package/es/navigation/NavList/NavMenuContainer.js +0 -3
- package/es/navigation/NavList/NavMenuContainerContent.js +0 -3
- package/es/navigation/NavList/NavMenuContainerContentListItem.js +0 -3
- package/es/navigation/NavList/NavMenuContainerTitle.js +0 -3
- package/es/navigation/NavList/NavVertical.js +0 -3
- package/es/navigation/NavList/NavVerticalItem.js +0 -3
- package/esm/navigation/NavList/NavListAuto/NavListAuto.js +0 -31
- package/esm/navigation/NavList/NavListAuto/NavListBaseAuto.js +0 -22
- package/esm/navigation/NavList/NavListAuto/NavListContextAuto.js +0 -104
- package/esm/navigation/NavList/NavListAuto/NavListItemAnchorAuto.js +0 -26
- package/esm/navigation/NavList/NavListAuto/NavListItemAuto.js +0 -38
- package/esm/navigation/NavList/NavListAuto/NavListItemButtonAuto.js +0 -30
- package/esm/navigation/NavList/NavListAuto/NavListMenuAuto.js +0 -36
- package/esm/navigation/NavList/NavListAuto/NavListSubMenuAuto.js +0 -26
- package/esm/navigation/NavList/NavListItem.js +0 -23
- package/esm/navigation/NavList/NavListItemBase.js +0 -44
- package/esm/navigation/NavList/NavListItemButton.js +0 -3
- package/esm/navigation/NavList/NavListItemLink.js +0 -3
- package/esm/navigation/NavList/NavMenu.js +0 -3
- package/esm/navigation/NavList/NavMenuContainer.js +0 -3
- package/esm/navigation/NavList/NavMenuContainerContent.js +0 -3
- package/esm/navigation/NavList/NavMenuContainerContentListItem.js +0 -3
- package/esm/navigation/NavList/NavMenuContainerTitle.js +0 -3
- package/esm/navigation/NavList/NavVertical.js +0 -3
- package/esm/navigation/NavList/NavVerticalItem.js +0 -3
- package/navigation/NavList/NavListAuto/NavListAuto.js +0 -48
- package/navigation/NavList/NavListAuto/NavListBaseAuto.d.ts +0 -3
- package/navigation/NavList/NavListAuto/NavListBaseAuto.js +0 -38
- package/navigation/NavList/NavListAuto/NavListContextAuto.d.ts +0 -29
- package/navigation/NavList/NavListAuto/NavListContextAuto.js +0 -128
- package/navigation/NavList/NavListAuto/NavListItemAnchorAuto.d.ts +0 -9
- package/navigation/NavList/NavListAuto/NavListItemAnchorAuto.js +0 -51
- package/navigation/NavList/NavListAuto/NavListItemAuto.d.ts +0 -8
- package/navigation/NavList/NavListAuto/NavListItemAuto.js +0 -63
- package/navigation/NavList/NavListAuto/NavListItemButtonAuto.d.ts +0 -12
- package/navigation/NavList/NavListAuto/NavListItemButtonAuto.js +0 -48
- package/navigation/NavList/NavListAuto/NavListMenuAuto.d.ts +0 -11
- package/navigation/NavList/NavListAuto/NavListMenuAuto.js +0 -56
- package/navigation/NavList/NavListAuto/NavListSubMenuAuto.d.ts +0 -9
- package/navigation/NavList/NavListAuto/NavListSubMenuAuto.js +0 -44
- package/navigation/NavList/NavListItem.d.ts +0 -4
- package/navigation/NavList/NavListItem.js +0 -42
- package/navigation/NavList/NavListItemBase.d.ts +0 -15
- package/navigation/NavList/NavListItemBase.js +0 -68
- package/navigation/NavList/NavListItemButton.d.ts +0 -3
- package/navigation/NavList/NavListItemButton.js +0 -30
- package/navigation/NavList/NavListItemLink.d.ts +0 -3
- package/navigation/NavList/NavListItemLink.js +0 -30
- package/navigation/NavList/NavMenu.d.ts +0 -3
- package/navigation/NavList/NavMenu.js +0 -30
- package/navigation/NavList/NavMenuContainer.d.ts +0 -3
- package/navigation/NavList/NavMenuContainer.js +0 -30
- package/navigation/NavList/NavMenuContainerContent.d.ts +0 -3
- package/navigation/NavList/NavMenuContainerContent.js +0 -30
- package/navigation/NavList/NavMenuContainerContentList.d.ts +0 -5
- package/navigation/NavList/NavMenuContainerContentListItem.d.ts +0 -3
- package/navigation/NavList/NavMenuContainerContentListItem.js +0 -30
- package/navigation/NavList/NavMenuContainerTitle.d.ts +0 -3
- package/navigation/NavList/NavMenuContainerTitle.js +0 -30
- package/navigation/NavList/NavVertical.d.ts +0 -3
- package/navigation/NavList/NavVertical.js +0 -30
- package/navigation/NavList/NavVerticalItem.d.ts +0 -3
- package/navigation/NavList/NavVerticalItem.js +0 -30
- package/src/navigation/NavList/NavListAuto/NavListAuto.tsx +0 -34
- package/src/navigation/NavList/NavListAuto/NavListBaseAuto.tsx +0 -20
- package/src/navigation/NavList/NavListAuto/NavListContextAuto.tsx +0 -112
- package/src/navigation/NavList/NavListAuto/NavListItemAnchorAuto.tsx +0 -38
- package/src/navigation/NavList/NavListAuto/NavListItemAuto.tsx +0 -49
- package/src/navigation/NavList/NavListAuto/NavListItemButtonAuto.tsx +0 -53
- package/src/navigation/NavList/NavListAuto/NavListMenuAuto.tsx +0 -51
- package/src/navigation/NavList/NavListAuto/NavListSubMenuAuto.tsx +0 -32
- package/src/navigation/NavList/NavListItem.tsx +0 -46
- package/src/navigation/NavList/NavListItemBase.tsx +0 -63
- package/src/navigation/NavList/NavListItemButton.tsx +0 -3
- package/src/navigation/NavList/NavListItemLink.tsx +0 -3
- package/src/navigation/NavList/NavMenu.tsx +0 -3
- package/src/navigation/NavList/NavMenuContainer.tsx +0 -3
- package/src/navigation/NavList/NavMenuContainerContent.tsx +0 -3
- package/src/navigation/NavList/NavMenuContainerContentListItem.tsx +0 -3
- package/src/navigation/NavList/NavMenuContainerTitle.tsx +0 -3
- package/src/navigation/NavList/NavVertical.tsx +0 -3
- package/src/navigation/NavList/NavVerticalItem.tsx +0 -3
- /package/navigation/NavList/NavListAuto/{NavListAuto.d.ts → index.d.ts} +0 -0
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
{
|
|
9
9
|
"name": "hover",
|
|
10
10
|
"args": {
|
|
11
|
-
"selector": "html>body>div:nth-child(5)>footer>div>div>
|
|
11
|
+
"selector": "html>body>div:nth-child(5)>footer>div>div>section:nth-child(1)>p>a:nth-child(1)"
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
15
|
"name": "click",
|
|
16
16
|
"args": {
|
|
17
|
-
"selector": "html>body>div:nth-child(5)>footer>div>div>
|
|
17
|
+
"selector": "html>body>div:nth-child(5)>footer>div>div>section:nth-child(1)>p>a:nth-child(1)"
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
],
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
|
|
5
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
-
|
|
7
5
|
Object.defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
@@ -31,36 +29,30 @@ var _Dropdown = require("@digigov/ui/navigation/Dropdown");
|
|
|
31
29
|
|
|
32
30
|
var _NavList = _interopRequireDefault(require("@digigov/ui/navigation/NavList/NavList"));
|
|
33
31
|
|
|
34
|
-
var
|
|
35
|
-
|
|
36
|
-
var _NavListItemLink = _interopRequireDefault(require("@digigov/ui/navigation/NavList/NavListItemLink"));
|
|
37
|
-
|
|
38
|
-
var _List = _interopRequireWildcard(require("@digigov/ui/content/List"));
|
|
39
|
-
|
|
40
|
-
var _Link = _interopRequireDefault(require("@digigov/ui/navigation/Link"));
|
|
41
|
-
|
|
42
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
43
|
-
|
|
44
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
32
|
+
var _NavList2 = require("@digigov/ui/navigation/NavList");
|
|
45
33
|
|
|
46
34
|
var _ref = /*#__PURE__*/_react["default"].createElement(_Basic.Top, null, /*#__PURE__*/_react["default"].createElement(_Header["default"], null, /*#__PURE__*/_react["default"].createElement(_HeaderContent["default"], null, /*#__PURE__*/_react["default"].createElement(_HeaderSection["default"], null, /*#__PURE__*/_react["default"].createElement(_GovGRLogo["default"], null), /*#__PURE__*/_react["default"].createElement(_HeaderTitle["default"], {
|
|
47
35
|
href: "#"
|
|
48
|
-
}, "\u0394\u03B7\u03BB\u03CE\u03C3\u03B5\u03B9\u03C2")), /*#__PURE__*/_react["default"].createElement(
|
|
36
|
+
}, "\u0394\u03B7\u03BB\u03CE\u03C3\u03B5\u03B9\u03C2")), /*#__PURE__*/_react["default"].createElement(_HeaderNavMenuContent["default"], null, /*#__PURE__*/_react["default"].createElement(_NavList["default"], {
|
|
49
37
|
active: true
|
|
50
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
51
|
-
|
|
52
|
-
}))
|
|
38
|
+
}, /*#__PURE__*/_react["default"].createElement(_NavList2.NavListItemAction, {
|
|
39
|
+
arrow: true
|
|
40
|
+
}, "\u039C\u03B5\u03BD\u03BF\u03CD")), /*#__PURE__*/_react["default"].createElement(_Dropdown.Dropdown, {
|
|
53
41
|
align: "right"
|
|
54
42
|
}, /*#__PURE__*/_react["default"].createElement(_Dropdown.DropdownButton, {
|
|
55
43
|
variant: "link"
|
|
56
44
|
}, "\u039C\u0391\u03A1\u0399\u039F\u03A3 \u039C\u0395\u039D\u0395\u039E\u0395\u03A3", /*#__PURE__*/_react["default"].createElement(_icons.MoreVertIcon, {
|
|
57
45
|
size: "md"
|
|
58
|
-
})), /*#__PURE__*/_react["default"].createElement(_Dropdown.DropdownContent, null, /*#__PURE__*/_react["default"].createElement(
|
|
59
|
-
|
|
60
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
46
|
+
})), /*#__PURE__*/_react["default"].createElement(_Dropdown.DropdownContent, null, /*#__PURE__*/_react["default"].createElement(_NavList["default"], {
|
|
47
|
+
layout: "vertical"
|
|
48
|
+
}, /*#__PURE__*/_react["default"].createElement(_NavList2.NavListItemAction, {
|
|
49
|
+
href: "#"
|
|
50
|
+
}, "\u03A1\u03C5\u03B8\u03BC\u03AF\u03C3\u03B5\u03B9\u03C2"), /*#__PURE__*/_react["default"].createElement(_NavList2.NavListItemAction, {
|
|
51
|
+
href: "#"
|
|
52
|
+
}, "\u0388\u03BE\u03BF\u03B4\u03BF\u03C2"))))), /*#__PURE__*/_react["default"].createElement(_icons.BurgerIcon, {
|
|
61
53
|
smUpHidden: true,
|
|
62
54
|
size: "sm"
|
|
63
|
-
}))))
|
|
55
|
+
}))));
|
|
64
56
|
|
|
65
57
|
var WithHeaderNavigation = function WithHeaderNavigation() {
|
|
66
58
|
return _ref;
|
|
@@ -7,8 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports["default"] = exports.WithNavigation = void 0;
|
|
9
9
|
|
|
10
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
-
|
|
12
10
|
var _react = _interopRequireDefault(require("react"));
|
|
13
11
|
|
|
14
12
|
var _ui = require("@digigov/ui");
|
|
@@ -23,61 +21,31 @@ var _GovGRLogo = require("@digigov/ui/govgr/GovGRLogo");
|
|
|
23
21
|
|
|
24
22
|
var _Basic = require("@digigov/ui/layouts/Basic");
|
|
25
23
|
|
|
26
|
-
var _useNavList2 = require("@digigov/ui/navigation/NavList/hooks/useNavList");
|
|
27
|
-
|
|
28
|
-
var _Nav = require("@digigov/ui/navigation/NavList/Nav");
|
|
29
|
-
|
|
30
|
-
var _NavList = require("@digigov/ui/navigation/NavList/NavList");
|
|
31
|
-
|
|
32
|
-
var _NavListItem = require("@digigov/ui/navigation/NavList/NavListItem");
|
|
33
|
-
|
|
34
24
|
var _ref = /*#__PURE__*/_react["default"].createElement(_Header.Header, null, /*#__PURE__*/_react["default"].createElement(_HeaderContent.HeaderContent, null, /*#__PURE__*/_react["default"].createElement(_HeaderSection.HeaderSection, null, /*#__PURE__*/_react["default"].createElement(_GovGRLogo.GovGRLogo, {
|
|
35
25
|
href: "#"
|
|
36
26
|
}))));
|
|
37
27
|
|
|
38
|
-
var _ref2 = /*#__PURE__*/_react["default"].createElement(_ui.SectionBreak, {
|
|
39
|
-
visible: false
|
|
40
|
-
});
|
|
41
|
-
|
|
42
28
|
var WithNavigation = function WithNavigation() {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
var setRegisterButton = function setRegisterButton(name) {
|
|
47
|
-
return (0, _extends2["default"])({}, registerButton(name));
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
return /*#__PURE__*/_react["default"].createElement(_Basic.Top, null, _ref, /*#__PURE__*/_react["default"].createElement(_Nav.Nav, {
|
|
51
|
-
open: true
|
|
52
|
-
}, /*#__PURE__*/_react["default"].createElement(_NavList.NavList, null, /*#__PURE__*/_react["default"].createElement(_NavListItem.NavListItem, {
|
|
53
|
-
link: {
|
|
29
|
+
return /*#__PURE__*/_react["default"].createElement(_Basic.Top, null, _ref, /*#__PURE__*/_react["default"].createElement(_ui.NavListAuto, {
|
|
30
|
+
links: [{
|
|
54
31
|
name: 'home',
|
|
55
32
|
label: 'Αρχική',
|
|
56
33
|
href: '#home'
|
|
57
|
-
},
|
|
58
|
-
setRegisterButton: setRegisterButton
|
|
59
|
-
}), /*#__PURE__*/_react["default"].createElement(_NavListItem.NavListItem, {
|
|
60
|
-
link: {
|
|
34
|
+
}, {
|
|
61
35
|
name: 'news',
|
|
62
36
|
label: 'Νέα',
|
|
63
37
|
href: '#news'
|
|
64
|
-
},
|
|
65
|
-
setRegisterButton: setRegisterButton
|
|
66
|
-
}), /*#__PURE__*/_react["default"].createElement(_NavListItem.NavListItem, {
|
|
67
|
-
link: {
|
|
38
|
+
}, {
|
|
68
39
|
name: 'links',
|
|
69
40
|
label: 'Σύνδεσμοι',
|
|
70
41
|
href: '#links'
|
|
71
|
-
},
|
|
72
|
-
setRegisterButton: setRegisterButton
|
|
73
|
-
}), /*#__PURE__*/_react["default"].createElement(_NavListItem.NavListItem, {
|
|
74
|
-
link: {
|
|
42
|
+
}, {
|
|
75
43
|
name: 'contact',
|
|
76
44
|
label: 'Επικοινωνία',
|
|
77
45
|
href: '#contact'
|
|
78
|
-
},
|
|
79
|
-
|
|
80
|
-
})
|
|
46
|
+
}],
|
|
47
|
+
border: true
|
|
48
|
+
}));
|
|
81
49
|
};
|
|
82
50
|
|
|
83
51
|
exports.WithNavigation = WithNavigation;
|
|
@@ -275,10 +275,10 @@ var ThemeOptions = /*#__PURE__*/_react["default"].forwardRef(function ThemeOptio
|
|
|
275
275
|
setSelectedHighlightLinks('highlight');
|
|
276
276
|
},
|
|
277
277
|
checked: selectedHighlightLinks === 'highlight'
|
|
278
|
-
}, "\u039D\u03B1\u03B9")), /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
278
|
+
}, "\u039D\u03B1\u03B9")))), /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
279
279
|
onClick: resetOptions,
|
|
280
280
|
variant: "link"
|
|
281
|
-
}, "\u0395\u03C0\u03B1\u03BD\u03B1\u03C6\u03BF\u03C1\u03AC \u03CC\u03BB\u03C9\u03BD \u03C4\u03C9\u03BD \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03CE\u03BD")
|
|
281
|
+
}, "\u0395\u03C0\u03B1\u03BD\u03B1\u03C6\u03BF\u03C1\u03AC \u03CC\u03BB\u03C9\u03BD \u03C4\u03C9\u03BD \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03CE\u03BD"), _ref7, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
282
282
|
onClick: handleOptions,
|
|
283
283
|
disabled: !optionsHasChanged()
|
|
284
284
|
}, "\u0395\u03C6\u03B1\u03C1\u03BC\u03BF\u03B3\u03AE"));
|
|
@@ -15,6 +15,11 @@ import Details from '@digigov/ui/content/Details';
|
|
|
15
15
|
|
|
16
16
|
<Story packageName="@digigov/ui" component="content/Details" story="Default.tsx" />
|
|
17
17
|
|
|
18
|
+
## Accessibility
|
|
19
|
+
|
|
20
|
+
You can read more about the accessibility patterns used in our Details
|
|
21
|
+
implementation in the ARIA Authoring Practices Guide (APG) at [Disclosure](https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/) section.
|
|
22
|
+
|
|
18
23
|
## API
|
|
19
24
|
|
|
20
25
|
<PropTypes packageName="@digigov/ui" component="Details" />
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
|
|
5
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
+
|
|
5
7
|
Object.defineProperty(exports, "__esModule", {
|
|
6
8
|
value: true
|
|
7
9
|
});
|
|
@@ -15,9 +17,11 @@ var _TableFloatingScroll = require("@digigov/ui/content/Table/TableFloatingScrol
|
|
|
15
17
|
|
|
16
18
|
var _Dropdown = require("@digigov/ui/navigation/Dropdown");
|
|
17
19
|
|
|
18
|
-
var
|
|
20
|
+
var _NavList = _interopRequireWildcard(require("@digigov/ui/navigation/NavList"));
|
|
21
|
+
|
|
22
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
19
23
|
|
|
20
|
-
var
|
|
24
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
21
25
|
|
|
22
26
|
var labels = {
|
|
23
27
|
name: 'Ονοματεπώνυμο',
|
|
@@ -62,9 +66,11 @@ var _ref2 = /*#__PURE__*/_react["default"].createElement(_Table.TableDataCell, n
|
|
|
62
66
|
placement: "bottom"
|
|
63
67
|
}, /*#__PURE__*/_react["default"].createElement(_Dropdown.DropdownButton, {
|
|
64
68
|
variant: "link"
|
|
65
|
-
}, "\u0395\u03BD\u03AD\u03C1\u03B3\u03B5\u03B9\u03B5\u03C2"), /*#__PURE__*/_react["default"].createElement(_Dropdown.DropdownContent, null, /*#__PURE__*/_react["default"].createElement(
|
|
69
|
+
}, "\u0395\u03BD\u03AD\u03C1\u03B3\u03B5\u03B9\u03B5\u03C2"), /*#__PURE__*/_react["default"].createElement(_Dropdown.DropdownContent, null, /*#__PURE__*/_react["default"].createElement(_NavList["default"], {
|
|
70
|
+
layout: "vertical"
|
|
71
|
+
}, /*#__PURE__*/_react["default"].createElement(_NavList.NavListItemAction, {
|
|
66
72
|
href: "#"
|
|
67
|
-
}, "\u0395\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03AF\u03B1"), /*#__PURE__*/_react["default"].createElement(
|
|
73
|
+
}, "\u0395\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03AF\u03B1"), /*#__PURE__*/_react["default"].createElement(_NavList.NavListItemAction, {
|
|
68
74
|
href: "#"
|
|
69
75
|
}, "\u0394\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE")))));
|
|
70
76
|
|
package/content/Table/index.js
CHANGED
|
@@ -50,9 +50,7 @@ var _icons = require("@digigov/ui/icons");
|
|
|
50
50
|
|
|
51
51
|
var _Dropdown = require("@digigov/ui/navigation/Dropdown");
|
|
52
52
|
|
|
53
|
-
var
|
|
54
|
-
|
|
55
|
-
var _NavVerticalItem = require("@digigov/ui/navigation/NavList/NavVerticalItem");
|
|
53
|
+
var _NavList = require("@digigov/ui/navigation/NavList");
|
|
56
54
|
|
|
57
55
|
var _TableContainer = require("@digigov/react-core/TableContainer");
|
|
58
56
|
|
|
@@ -259,9 +257,12 @@ var TableSortLabel = /*#__PURE__*/_react["default"].forwardRef(function TableSor
|
|
|
259
257
|
direction: 'down',
|
|
260
258
|
size: "sm",
|
|
261
259
|
variant: direction === -1 ? 'dark' : 'gray'
|
|
262
|
-
}))), /*#__PURE__*/_react["default"].createElement(_Dropdown.DropdownContent, null, /*#__PURE__*/_react["default"].createElement(
|
|
260
|
+
}))), /*#__PURE__*/_react["default"].createElement(_Dropdown.DropdownContent, null, /*#__PURE__*/_react["default"].createElement(_NavList.NavList, {
|
|
261
|
+
layout: "vertical"
|
|
262
|
+
}, /*#__PURE__*/_react["default"].createElement(_NavList.NavListItemAction, {
|
|
263
263
|
active: direction === 1,
|
|
264
264
|
tabIndex: 0,
|
|
265
|
+
arrow: false,
|
|
265
266
|
onClick: function onClick() {
|
|
266
267
|
onSort(1);
|
|
267
268
|
dropdownRef.current && (dropdownRef.current.open = false);
|
|
@@ -272,9 +273,10 @@ var TableSortLabel = /*#__PURE__*/_react["default"].forwardRef(function TableSor
|
|
|
272
273
|
dropdownRef.current && (dropdownRef.current.open = false);
|
|
273
274
|
}
|
|
274
275
|
}
|
|
275
|
-
}, _ref2, labels.asc), /*#__PURE__*/_react["default"].createElement(
|
|
276
|
+
}, _ref2, labels.asc), /*#__PURE__*/_react["default"].createElement(_NavList.NavListItemAction, {
|
|
276
277
|
active: direction === -1,
|
|
277
278
|
tabIndex: 0,
|
|
279
|
+
arrow: false,
|
|
278
280
|
onClick: function onClick() {
|
|
279
281
|
onSort(-1);
|
|
280
282
|
dropdownRef.current && (dropdownRef.current.open = false);
|
package/content/Table/index.mdx
CHANGED
|
@@ -69,7 +69,7 @@ The prop `color='primary'` or `color='secondary'` is only functional when Table
|
|
|
69
69
|
## Accessibility
|
|
70
70
|
|
|
71
71
|
You can read more about the accessibility patterns used in our Table
|
|
72
|
-
implementation in the ARIA Authoring Practices Guide (APG) at
|
|
72
|
+
implementation in the ARIA Authoring Practices Guide (APG) at [Table](https://www.w3.org/WAI/ARIA/apg/patterns/table/) section.
|
|
73
73
|
|
|
74
74
|
## API
|
|
75
75
|
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
{
|
|
9
9
|
"name": "hover",
|
|
10
10
|
"args": {
|
|
11
|
-
"selector": "html>body>div:nth-child(5)>footer>div>div>
|
|
11
|
+
"selector": "html>body>div:nth-child(5)>footer>div>div>section:nth-child(1)>p>a:nth-child(1)"
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
15
|
"name": "click",
|
|
16
16
|
"args": {
|
|
17
|
-
"selector": "html>body>div:nth-child(5)>footer>div>div>
|
|
17
|
+
"selector": "html>body>div:nth-child(5)>footer>div>div>section:nth-child(1)>p>a:nth-child(1)"
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
],
|
|
@@ -5,34 +5,34 @@ import HeaderNavMenuContent from '@digigov/ui/app/Header/HeaderNavMenuContent';
|
|
|
5
5
|
import HeaderSection from '@digigov/ui/app/Header/HeaderSection';
|
|
6
6
|
import HeaderTitle from '@digigov/ui/app/Header/HeaderTitle';
|
|
7
7
|
import GovGRLogo from '@digigov/ui/govgr/GovGRLogo';
|
|
8
|
-
import { ArrowIcon } from '@digigov/ui/icons';
|
|
9
8
|
import { BurgerIcon, MoreVertIcon } from '@digigov/ui/icons';
|
|
10
9
|
import { Top } from '@digigov/ui/layouts/Basic';
|
|
11
10
|
import { Dropdown, DropdownButton, DropdownContent } from '@digigov/ui/navigation/Dropdown';
|
|
12
11
|
import NavList from '@digigov/ui/navigation/NavList/NavList';
|
|
13
|
-
import
|
|
14
|
-
import NavListItemLink from '@digigov/ui/navigation/NavList/NavListItemLink';
|
|
15
|
-
import List, { ListItem } from '@digigov/ui/content/List';
|
|
16
|
-
import Link from '@digigov/ui/navigation/Link';
|
|
12
|
+
import { NavListItemAction } from '@digigov/ui/navigation/NavList';
|
|
17
13
|
|
|
18
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, {
|
|
19
15
|
href: "#"
|
|
20
|
-
}, "\u0394\u03B7\u03BB\u03CE\u03C3\u03B5\u03B9\u03C2")), /*#__PURE__*/React.createElement(
|
|
16
|
+
}, "\u0394\u03B7\u03BB\u03CE\u03C3\u03B5\u03B9\u03C2")), /*#__PURE__*/React.createElement(HeaderNavMenuContent, null, /*#__PURE__*/React.createElement(NavList, {
|
|
21
17
|
active: true
|
|
22
|
-
}, /*#__PURE__*/React.createElement(
|
|
23
|
-
|
|
24
|
-
}))
|
|
18
|
+
}, /*#__PURE__*/React.createElement(NavListItemAction, {
|
|
19
|
+
arrow: true
|
|
20
|
+
}, "\u039C\u03B5\u03BD\u03BF\u03CD")), /*#__PURE__*/React.createElement(Dropdown, {
|
|
25
21
|
align: "right"
|
|
26
22
|
}, /*#__PURE__*/React.createElement(DropdownButton, {
|
|
27
23
|
variant: "link"
|
|
28
24
|
}, "\u039C\u0391\u03A1\u0399\u039F\u03A3 \u039C\u0395\u039D\u0395\u039E\u0395\u03A3", /*#__PURE__*/React.createElement(MoreVertIcon, {
|
|
29
25
|
size: "md"
|
|
30
|
-
})), /*#__PURE__*/React.createElement(DropdownContent, null, /*#__PURE__*/React.createElement(
|
|
31
|
-
|
|
32
|
-
}, /*#__PURE__*/React.createElement(
|
|
26
|
+
})), /*#__PURE__*/React.createElement(DropdownContent, null, /*#__PURE__*/React.createElement(NavList, {
|
|
27
|
+
layout: "vertical"
|
|
28
|
+
}, /*#__PURE__*/React.createElement(NavListItemAction, {
|
|
29
|
+
href: "#"
|
|
30
|
+
}, "\u03A1\u03C5\u03B8\u03BC\u03AF\u03C3\u03B5\u03B9\u03C2"), /*#__PURE__*/React.createElement(NavListItemAction, {
|
|
31
|
+
href: "#"
|
|
32
|
+
}, "\u0388\u03BE\u03BF\u03B4\u03BF\u03C2"))))), /*#__PURE__*/React.createElement(BurgerIcon, {
|
|
33
33
|
smUpHidden: true,
|
|
34
34
|
size: "sm"
|
|
35
|
-
}))))
|
|
35
|
+
}))));
|
|
36
36
|
|
|
37
37
|
export var WithHeaderNavigation = function WithHeaderNavigation() {
|
|
38
38
|
return _ref;
|
|
@@ -1,62 +1,35 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
import React from 'react';
|
|
3
|
-
import {
|
|
2
|
+
import { NavListAuto } from '@digigov/ui';
|
|
4
3
|
import { Header } from '@digigov/ui/app/Header';
|
|
5
4
|
import { HeaderContent } from '@digigov/ui/app/Header/HeaderContent';
|
|
6
5
|
import { HeaderSection } from '@digigov/ui/app/Header/HeaderSection';
|
|
7
6
|
import { GovGRLogo } from '@digigov/ui/govgr/GovGRLogo';
|
|
8
7
|
import { Top } from '@digigov/ui/layouts/Basic';
|
|
9
|
-
import { useNavList } from '@digigov/ui/navigation/NavList/hooks/useNavList';
|
|
10
|
-
import { Nav } from '@digigov/ui/navigation/NavList/Nav';
|
|
11
|
-
import { NavList } from '@digigov/ui/navigation/NavList/NavList';
|
|
12
|
-
import { NavListItem } from '@digigov/ui/navigation/NavList/NavListItem';
|
|
13
8
|
|
|
14
9
|
var _ref = /*#__PURE__*/React.createElement(Header, null, /*#__PURE__*/React.createElement(HeaderContent, null, /*#__PURE__*/React.createElement(HeaderSection, null, /*#__PURE__*/React.createElement(GovGRLogo, {
|
|
15
10
|
href: "#"
|
|
16
11
|
}))));
|
|
17
12
|
|
|
18
|
-
var _ref2 = /*#__PURE__*/React.createElement(SectionBreak, {
|
|
19
|
-
visible: false
|
|
20
|
-
});
|
|
21
|
-
|
|
22
13
|
export var WithNavigation = function WithNavigation() {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
var setRegisterButton = function setRegisterButton(name) {
|
|
27
|
-
return _extends({}, registerButton(name));
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
return /*#__PURE__*/React.createElement(Top, null, _ref, /*#__PURE__*/React.createElement(Nav, {
|
|
31
|
-
open: true
|
|
32
|
-
}, /*#__PURE__*/React.createElement(NavList, null, /*#__PURE__*/React.createElement(NavListItem, {
|
|
33
|
-
link: {
|
|
14
|
+
return /*#__PURE__*/React.createElement(Top, null, _ref, /*#__PURE__*/React.createElement(NavListAuto, {
|
|
15
|
+
links: [{
|
|
34
16
|
name: 'home',
|
|
35
17
|
label: 'Αρχική',
|
|
36
18
|
href: '#home'
|
|
37
|
-
},
|
|
38
|
-
setRegisterButton: setRegisterButton
|
|
39
|
-
}), /*#__PURE__*/React.createElement(NavListItem, {
|
|
40
|
-
link: {
|
|
19
|
+
}, {
|
|
41
20
|
name: 'news',
|
|
42
21
|
label: 'Νέα',
|
|
43
22
|
href: '#news'
|
|
44
|
-
},
|
|
45
|
-
setRegisterButton: setRegisterButton
|
|
46
|
-
}), /*#__PURE__*/React.createElement(NavListItem, {
|
|
47
|
-
link: {
|
|
23
|
+
}, {
|
|
48
24
|
name: 'links',
|
|
49
25
|
label: 'Σύνδεσμοι',
|
|
50
26
|
href: '#links'
|
|
51
|
-
},
|
|
52
|
-
setRegisterButton: setRegisterButton
|
|
53
|
-
}), /*#__PURE__*/React.createElement(NavListItem, {
|
|
54
|
-
link: {
|
|
27
|
+
}, {
|
|
55
28
|
name: 'contact',
|
|
56
29
|
label: 'Επικοινωνία',
|
|
57
30
|
href: '#contact'
|
|
58
|
-
},
|
|
59
|
-
|
|
60
|
-
})
|
|
31
|
+
}],
|
|
32
|
+
border: true
|
|
33
|
+
}));
|
|
61
34
|
};
|
|
62
35
|
export default WithNavigation;
|
|
@@ -244,10 +244,10 @@ export var ThemeOptions = /*#__PURE__*/React.forwardRef(function ThemeOptions(_r
|
|
|
244
244
|
setSelectedHighlightLinks('highlight');
|
|
245
245
|
},
|
|
246
246
|
checked: selectedHighlightLinks === 'highlight'
|
|
247
|
-
}, "\u039D\u03B1\u03B9")), /*#__PURE__*/React.createElement(Button, {
|
|
247
|
+
}, "\u039D\u03B1\u03B9")))), /*#__PURE__*/React.createElement(Button, {
|
|
248
248
|
onClick: resetOptions,
|
|
249
249
|
variant: "link"
|
|
250
|
-
}, "\u0395\u03C0\u03B1\u03BD\u03B1\u03C6\u03BF\u03C1\u03AC \u03CC\u03BB\u03C9\u03BD \u03C4\u03C9\u03BD \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03CE\u03BD")
|
|
250
|
+
}, "\u0395\u03C0\u03B1\u03BD\u03B1\u03C6\u03BF\u03C1\u03AC \u03CC\u03BB\u03C9\u03BD \u03C4\u03C9\u03BD \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03CE\u03BD"), _ref7, /*#__PURE__*/React.createElement(Button, {
|
|
251
251
|
onClick: handleOptions,
|
|
252
252
|
disabled: !optionsHasChanged()
|
|
253
253
|
}, "\u0395\u03C6\u03B1\u03C1\u03BC\u03BF\u03B3\u03AE"));
|
|
@@ -15,6 +15,11 @@ import Details from '@digigov/ui/content/Details';
|
|
|
15
15
|
|
|
16
16
|
<Story packageName="@digigov/ui" component="content/Details" story="Default.tsx" />
|
|
17
17
|
|
|
18
|
+
## Accessibility
|
|
19
|
+
|
|
20
|
+
You can read more about the accessibility patterns used in our Details
|
|
21
|
+
implementation in the ARIA Authoring Practices Guide (APG) at [Disclosure](https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/) section.
|
|
22
|
+
|
|
18
23
|
## API
|
|
19
24
|
|
|
20
25
|
<PropTypes packageName="@digigov/ui" component="Details" />
|
|
@@ -2,8 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { Table, TableHead, TableRow, TableBody, TableHeadCell, TableDataCell } from '@digigov/ui/content/Table';
|
|
3
3
|
import { TableFloatingScroll } from '@digigov/ui/content/Table/TableFloatingScroll';
|
|
4
4
|
import { Dropdown, DropdownButton, DropdownContent } from '@digigov/ui/navigation/Dropdown';
|
|
5
|
-
import {
|
|
6
|
-
import { NavVerticalItem } from '@digigov/ui/navigation/NavList/NavVerticalItem';
|
|
5
|
+
import NavList, { NavListItemAction } from '@digigov/ui/navigation/NavList';
|
|
7
6
|
var labels = {
|
|
8
7
|
name: 'Ονοματεπώνυμο',
|
|
9
8
|
email: 'Email',
|
|
@@ -47,9 +46,11 @@ var _ref2 = /*#__PURE__*/React.createElement(TableDataCell, null, /*#__PURE__*/R
|
|
|
47
46
|
placement: "bottom"
|
|
48
47
|
}, /*#__PURE__*/React.createElement(DropdownButton, {
|
|
49
48
|
variant: "link"
|
|
50
|
-
}, "\u0395\u03BD\u03AD\u03C1\u03B3\u03B5\u03B9\u03B5\u03C2"), /*#__PURE__*/React.createElement(DropdownContent, null, /*#__PURE__*/React.createElement(
|
|
49
|
+
}, "\u0395\u03BD\u03AD\u03C1\u03B3\u03B5\u03B9\u03B5\u03C2"), /*#__PURE__*/React.createElement(DropdownContent, null, /*#__PURE__*/React.createElement(NavList, {
|
|
50
|
+
layout: "vertical"
|
|
51
|
+
}, /*#__PURE__*/React.createElement(NavListItemAction, {
|
|
51
52
|
href: "#"
|
|
52
|
-
}, "\u0395\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03AF\u03B1"), /*#__PURE__*/React.createElement(
|
|
53
|
+
}, "\u0395\u03C0\u03B5\u03BE\u03B5\u03C1\u03B3\u03B1\u03C3\u03AF\u03B1"), /*#__PURE__*/React.createElement(NavListItemAction, {
|
|
53
54
|
href: "#"
|
|
54
55
|
}, "\u0394\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE")))));
|
|
55
56
|
|
|
@@ -6,8 +6,7 @@ import Table from '@digigov/react-core/Table';
|
|
|
6
6
|
import TableSortIconContainer from '@digigov/react-core/TableSortIconContainer';
|
|
7
7
|
import { CaretIcon } from '@digigov/ui/icons';
|
|
8
8
|
import { Dropdown, DropdownButton, DropdownContent } from '@digigov/ui/navigation/Dropdown';
|
|
9
|
-
import {
|
|
10
|
-
import { NavVerticalItem } from '@digigov/ui/navigation/NavList/NavVerticalItem';
|
|
9
|
+
import { NavList, NavListItemAction } from '@digigov/ui/navigation/NavList';
|
|
11
10
|
|
|
12
11
|
var _ref2 = /*#__PURE__*/React.createElement(CaretIcon, {
|
|
13
12
|
direction: 'up',
|
|
@@ -56,9 +55,12 @@ export var TableSortLabel = /*#__PURE__*/React.forwardRef(function TableSortLabe
|
|
|
56
55
|
direction: 'down',
|
|
57
56
|
size: "sm",
|
|
58
57
|
variant: direction === -1 ? 'dark' : 'gray'
|
|
59
|
-
}))), /*#__PURE__*/React.createElement(DropdownContent, null, /*#__PURE__*/React.createElement(
|
|
58
|
+
}))), /*#__PURE__*/React.createElement(DropdownContent, null, /*#__PURE__*/React.createElement(NavList, {
|
|
59
|
+
layout: "vertical"
|
|
60
|
+
}, /*#__PURE__*/React.createElement(NavListItemAction, {
|
|
60
61
|
active: direction === 1,
|
|
61
62
|
tabIndex: 0,
|
|
63
|
+
arrow: false,
|
|
62
64
|
onClick: function onClick() {
|
|
63
65
|
onSort(1);
|
|
64
66
|
dropdownRef.current && (dropdownRef.current.open = false);
|
|
@@ -69,9 +71,10 @@ export var TableSortLabel = /*#__PURE__*/React.forwardRef(function TableSortLabe
|
|
|
69
71
|
dropdownRef.current && (dropdownRef.current.open = false);
|
|
70
72
|
}
|
|
71
73
|
}
|
|
72
|
-
}, _ref2, labels.asc), /*#__PURE__*/React.createElement(
|
|
74
|
+
}, _ref2, labels.asc), /*#__PURE__*/React.createElement(NavListItemAction, {
|
|
73
75
|
active: direction === -1,
|
|
74
76
|
tabIndex: 0,
|
|
77
|
+
arrow: false,
|
|
75
78
|
onClick: function onClick() {
|
|
76
79
|
onSort(-1);
|
|
77
80
|
dropdownRef.current && (dropdownRef.current.open = false);
|
|
@@ -69,7 +69,7 @@ The prop `color='primary'` or `color='secondary'` is only functional when Table
|
|
|
69
69
|
## Accessibility
|
|
70
70
|
|
|
71
71
|
You can read more about the accessibility patterns used in our Table
|
|
72
|
-
implementation in the ARIA Authoring Practices Guide (APG) at
|
|
72
|
+
implementation in the ARIA Authoring Practices Guide (APG) at [Table](https://www.w3.org/WAI/ARIA/apg/patterns/table/) section.
|
|
73
73
|
|
|
74
74
|
## API
|
|
75
75
|
|
|
@@ -5,17 +5,21 @@ parent: docs/ui/component
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
import ServiceBadge from '@digigov/ui/feedback/ServiceBadge';
|
|
8
|
-
import Header, { HeaderTitle } from '@digigov/ui/app/Header';
|
|
8
|
+
import Header, { HeaderContent, HeaderSection, HeaderTitle } from '@digigov/ui/app/Header';
|
|
9
9
|
import GovGRLogo from '@digigov/ui/govgr/GovGRLogo';
|
|
10
10
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
13
13
|
<Header>
|
|
14
|
-
<
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
<HeaderContent>
|
|
15
|
+
<HeaderSection>
|
|
16
|
+
<GovGRLogo />
|
|
17
|
+
<HeaderTitle>Service Name </HeaderTitle>
|
|
18
|
+
<ServiceBadge label="ALPHA" />
|
|
19
|
+
</HeaderSection>
|
|
20
|
+
</HeaderContent>
|
|
18
21
|
</Header>
|
|
22
|
+
<br/>
|
|
19
23
|
|
|
20
24
|
## How to use
|
|
21
25
|
|
package/es/form/Button/index.mdx
CHANGED
|
@@ -55,7 +55,7 @@ Any links within a button group will automatically align with the buttons.
|
|
|
55
55
|
<Story packageName="@digigov/ui" component="form/Button" story="GroupingButtonsAndLinks.tsx" />
|
|
56
56
|
|
|
57
57
|
Write button text in sentence case, describing the action it performs. For
|
|
58
|
-
example:
|
|
58
|
+
example:
|
|
59
59
|
|
|
60
60
|
- `Start now` at the [start of the service](https://guide.services.gov.gr/docs/start-pages)
|
|
61
61
|
- `Sign in` to an account a user has already created
|
|
@@ -85,12 +85,12 @@ to do next.
|
|
|
85
85
|
|
|
86
86
|
## API Docs
|
|
87
87
|
|
|
88
|
-
Read more about [how to use the React types](/docs/api/Button)
|
|
88
|
+
Read more about [how to use the React types](/docs/api/Button).
|
|
89
89
|
|
|
90
90
|
## Accessibility
|
|
91
91
|
|
|
92
|
-
You can read more about the accessibility patterns used in our
|
|
93
|
-
implementation in the ARIA Authoring Practices Guide (APG) at
|
|
92
|
+
You can read more about the accessibility patterns used in our Button
|
|
93
|
+
implementation in the ARIA Authoring Practices Guide (APG) at [button](https://www.w3.org/WAI/ARIA/apg/patterns/button/) section.
|
|
94
94
|
|
|
95
95
|
## API
|
|
96
96
|
|
|
@@ -47,6 +47,11 @@ This might make 2 related questions easier to answer by grouping them on the sam
|
|
|
47
47
|
|
|
48
48
|
<Story packageName="@digigov/ui" component="form/Checkbox" story="ConditionalReveal.tsx" />
|
|
49
49
|
|
|
50
|
+
## Accessibility
|
|
51
|
+
|
|
52
|
+
You can read more about the accessibility patterns used in our Checkbox
|
|
53
|
+
implementation in the ARIA Authoring Practices Guide (APG) at [Checkbox](https://www.w3.org/WAI/ARIA/apg/patterns/checkbox/) section.
|
|
54
|
+
|
|
50
55
|
## API
|
|
51
56
|
|
|
52
57
|
<PropTypes packageName="@digigov/ui" component="Checkbox" />
|
|
@@ -26,3 +26,8 @@ If you’re highlighting the whole date, style all the fields like this:
|
|
|
26
26
|
If you’re highlighting just one field - either the day, month or year - only style the field that has an error. The error message must say which field has an error, like this:
|
|
27
27
|
|
|
28
28
|
<Story packageName="@digigov/ui" component="form/DateInputContainer"story="WithErrorMessageForSingleField.tsx" />
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
## API
|
|
32
|
+
|
|
33
|
+
<PropTypes packageName="@digigov/ui" component="DateInputContainer" />
|