@digigov/ui 2.0.0-555d1027 → 2.0.0-599965f0
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/Loader/Loader.stories.d.ts +44 -1
- package/app/Loader/__stories__/FullPageLoader.d.ts +1 -0
- package/app/Loader/__stories__/Secondary.d.ts +3 -0
- package/app/Loader/__stories__/Sizes.d.ts +3 -0
- package/app/Masthead/Masthead.stories.d.ts +28 -1
- package/app/Modal/Modal.stories.d.ts +20 -1
- package/cjs/i18n/locales/el/index.js +7 -7
- package/cjs/i18n/locales/el.js.map +1 -1
- package/cjs/layouts/Hidden/index.js +19 -0
- package/cjs/layouts/Hidden/index.js.map +3 -3
- package/content/Accordion/Accordion.stories.d.ts +27 -16
- package/content/SummaryList/SummaryList.stories.d.ts +4 -1
- package/feedback/NotificationBanner/NotificationBanner.stories.d.ts +13 -13
- package/feedback/PhaseBanner/PhaseBanner.stories.d.ts +1 -1
- package/i18n/locales/el/index.js +7 -7
- package/i18n/locales/el.js.map +1 -1
- package/index.js +1 -1
- package/layouts/Grid/Grid.stories.d.ts +82 -0
- package/layouts/Hidden/Hidden.stories.d.ts +115 -0
- package/layouts/Hidden/index.d.ts +2 -0
- package/layouts/Hidden/index.js +5 -0
- package/layouts/Hidden/index.js.map +2 -2
- package/layouts/Stack/Stack.stories.d.ts +76 -0
- package/navigation/BackToTopLink/BackToTopLink.stories.d.ts +2 -0
- package/navigation/Dropdown/Dropdown.stories.d.ts +75 -1
- package/navigation/SkipLink/SkipLink.stories.d.ts +2 -0
- package/package.json +5 -5
- package/src/app/BannerContainer/__stories__/CookiesBanner.tsx +1 -21
- package/src/app/Header/doc.mdx +3 -3
- package/src/app/Loader/Loader.stories.jsx +54 -0
- package/src/app/Loader/__stories__/FullPageLoader.tsx +9 -5
- package/src/app/Loader/__stories__/Secondary.tsx +11 -0
- package/src/app/Loader/__stories__/Sizes.tsx +18 -0
- package/src/app/Loader/doc.mdx +39 -0
- package/src/app/Loader/index.test.tsx +8 -0
- package/src/app/Masthead/Masthead.stories.jsx +66 -0
- package/src/app/Masthead/doc.mdx +3 -3
- package/src/app/Modal/Modal.stories.jsx +64 -0
- package/src/app/Modal/__stories__/AlertDialog.tsx +1 -1
- package/src/app/Modal/__stories__/Auto.tsx +1 -1
- package/src/app/Modal/__stories__/Default.tsx +1 -1
- package/src/app/Modal/__stories__/Dense.tsx +1 -1
- package/src/app/Modal/__stories__/WithHooks.tsx +1 -1
- package/src/app/Modal/__stories__/WithoutModalGaps.tsx +1 -1
- package/src/content/Accordion/Accordion.stories.jsx +9 -1
- package/src/content/Accordion/doc.mdx +1 -2
- package/src/content/Card/doc.mdx +11 -11
- package/src/content/Chip/doc.mdx +4 -4
- package/src/content/List/doc.mdx +3 -3
- package/src/content/SummaryList/SummaryList.stories.js +5 -1
- package/src/content/TaskList/doc.mdx +1 -1
- package/src/content/Timeline/doc.mdx +1 -1
- package/src/feedback/CopyToClipboard/doc.mdx +1 -1
- package/src/feedback/ErrorSummary/doc.mdx +1 -1
- package/src/feedback/NotificationBanner/NotificationBanner.stories.js +9 -9
- package/src/feedback/NotificationBanner/doc.mdx +1 -4
- package/src/feedback/PhaseBanner/PhaseBanner.stories.jsx +1 -1
- package/src/form/AutoComplete/doc.mdx +2 -2
- package/src/form/Button/doc.mdx +25 -14
- package/src/form/Checkbox/doc.mdx +1 -1
- package/src/form/RadioContainer/doc.mdx +4 -4
- package/src/i18n/locales/el.ts +7 -7
- package/src/layouts/Basic/doc.mdx +0 -2
- package/src/layouts/Grid/Grid.stories.jsx +143 -0
- package/src/layouts/Hidden/Hidden.stories.jsx +62 -0
- package/src/layouts/Hidden/index.tsx +3 -0
- package/src/layouts/Stack/Stack.stories.jsx +104 -0
- package/src/navigation/BackToTopLink/BackToTopLink.stories.js +4 -0
- package/src/navigation/BackToTopLink/doc.mdx +22 -0
- package/src/navigation/Breadcrumbs/doc.mdx +4 -0
- package/src/navigation/Dropdown/Dropdown.stories.jsx +118 -0
- package/src/navigation/Dropdown/doc.mdx +24 -2
- package/src/navigation/NavList/doc.mdx +1 -1
- package/src/navigation/Pagination/doc.mdx +5 -1
- package/src/navigation/SkipLink/SkipLink.stories.js +4 -0
- package/src/navigation/SkipLink/doc.mdx +19 -0
- package/src/typography/CodeBlock/CodeBlock.stories.js +24 -0
- package/src/typography/Heading/Heading.stories.js +12 -0
- package/src/typography/HeadingCaption/HeadingCaption.stories.js +9 -0
- package/src/typography/Hint/Hint.stories.js +11 -0
- package/src/typography/Hint/__stories__/Default.tsx +1 -1
- package/src/typography/Hint/__stories__/FontSizes.tsx +4 -4
- package/src/typography/NormalText/NormalText.stories.js +10 -0
- package/src/typography/Paragraph/Paragraph.stories.js +23 -0
- package/stories-registry/index.js +8 -2
- package/typography/CodeBlock/CodeBlock.stories.d.ts +11 -0
- package/typography/Heading/Heading.stories.d.ts +10 -0
- package/typography/HeadingCaption/HeadingCaption.stories.d.ts +8 -0
- package/typography/Hint/Hint.stories.d.ts +9 -0
- package/typography/NormalText/NormalText.stories.d.ts +8 -0
- package/typography/Paragraph/Paragraph.stories.d.ts +37 -0
- package/src/app/Loader/Loader.stories.js +0 -9
- package/src/app/Masthead/Masthead.stories.js +0 -17
- package/src/app/Modal/Modal.stories.js +0 -18
- package/src/layouts/Grid/Grid.stories.js +0 -12
- package/src/layouts/Stack/Stack.stories.js +0 -15
- package/src/navigation/Dropdown/Dropdown.stories.js +0 -23
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SectionBreak } from '@digigov/ui/layouts/SectionBreak';
|
|
3
|
+
import {
|
|
4
|
+
Dropdown,
|
|
5
|
+
DropdownButton,
|
|
6
|
+
DropdownContent,
|
|
7
|
+
} from '@digigov/ui/navigation/Dropdown';
|
|
8
|
+
import { NavListItemAction, NavList } from '@digigov/ui/navigation/NavList';
|
|
9
|
+
|
|
10
|
+
import doc from './doc.mdx?raw';
|
|
11
|
+
export default {
|
|
12
|
+
title: 'Digigov UI/navigation/Dropdown',
|
|
13
|
+
description:
|
|
14
|
+
'Use the dropdown component to provide more options to users in cases where there is not enough space such as tables, navbars, etc.',
|
|
15
|
+
link: 'https://guide.services.gov.gr/docs/patterns/admin-pages/components/dropdown',
|
|
16
|
+
component: Dropdown,
|
|
17
|
+
tags: ['autodocs'],
|
|
18
|
+
markdown: doc,
|
|
19
|
+
displayName: 'Dropdown',
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export const WithControls = {
|
|
23
|
+
render: (args) => {
|
|
24
|
+
return (
|
|
25
|
+
<Dropdown
|
|
26
|
+
align={args.align}
|
|
27
|
+
disabled={args.disabled}
|
|
28
|
+
dense={args.dense}
|
|
29
|
+
placement={args.placement}
|
|
30
|
+
closeBehaviour={args.closeBehaviour}
|
|
31
|
+
float={args.float}
|
|
32
|
+
>
|
|
33
|
+
<DropdownButton
|
|
34
|
+
role="button"
|
|
35
|
+
aria-haspopup="true"
|
|
36
|
+
aria-controls="menu2"
|
|
37
|
+
arrow
|
|
38
|
+
>
|
|
39
|
+
Ενέργειες
|
|
40
|
+
</DropdownButton>
|
|
41
|
+
<DropdownContent role="menu" id="menu2" scrollable={args.scrollable}>
|
|
42
|
+
<NavList layout="vertical">
|
|
43
|
+
<NavListItemAction role="menuitem" href="#">
|
|
44
|
+
Επεξεργασία
|
|
45
|
+
</NavListItemAction>
|
|
46
|
+
<NavListItemAction role="menuitem" href="#">
|
|
47
|
+
Μετακίνηση
|
|
48
|
+
</NavListItemAction>
|
|
49
|
+
<NavListItemAction role="menuitem" href="#">
|
|
50
|
+
Οριστική διαγραφή
|
|
51
|
+
</NavListItemAction>
|
|
52
|
+
</NavList>
|
|
53
|
+
</DropdownContent>
|
|
54
|
+
</Dropdown>
|
|
55
|
+
);
|
|
56
|
+
},
|
|
57
|
+
args: {
|
|
58
|
+
align: 'right',
|
|
59
|
+
placement: 'bottom',
|
|
60
|
+
disabled: false,
|
|
61
|
+
dense: false,
|
|
62
|
+
closeBehaviour: 'clickButton',
|
|
63
|
+
float: false,
|
|
64
|
+
scrollable: false,
|
|
65
|
+
},
|
|
66
|
+
argsTypes: {
|
|
67
|
+
align: {
|
|
68
|
+
control: {
|
|
69
|
+
type: 'select',
|
|
70
|
+
},
|
|
71
|
+
options: ['left', 'right'],
|
|
72
|
+
},
|
|
73
|
+
placement: {
|
|
74
|
+
control: {
|
|
75
|
+
type: 'select',
|
|
76
|
+
},
|
|
77
|
+
options: ['top', 'bottom'],
|
|
78
|
+
},
|
|
79
|
+
disabled: {
|
|
80
|
+
control: {
|
|
81
|
+
type: 'boolean',
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
dense: {
|
|
85
|
+
control: {
|
|
86
|
+
type: 'boolean',
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
closeBehaviour: {
|
|
90
|
+
control: {
|
|
91
|
+
type: 'select',
|
|
92
|
+
},
|
|
93
|
+
options: ['clickButton', 'clickOutside'],
|
|
94
|
+
},
|
|
95
|
+
float: {
|
|
96
|
+
control: {
|
|
97
|
+
type: 'boolean',
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
scrollable: {
|
|
101
|
+
control: {
|
|
102
|
+
type: 'boolean',
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
export { Default } from '@digigov/ui/navigation/Dropdown/__stories__/Default';
|
|
109
|
+
export { Secondary } from '@digigov/ui/navigation/Dropdown/__stories__/Secondary';
|
|
110
|
+
export { Warning } from '@digigov/ui/navigation/Dropdown/__stories__/Warning';
|
|
111
|
+
export { Disabled } from '@digigov/ui/navigation/Dropdown/__stories__/Disabled';
|
|
112
|
+
export { VariantLink } from '@digigov/ui/navigation/Dropdown/__stories__/VariantLink';
|
|
113
|
+
export { AlignRight } from '@digigov/ui/navigation/Dropdown/__stories__/AlignRight';
|
|
114
|
+
export { PlacementTop } from '@digigov/ui/navigation/Dropdown/__stories__/PlacementTop';
|
|
115
|
+
export { WithIcons } from '@digigov/ui/navigation/Dropdown/__stories__/WithIcons';
|
|
116
|
+
export { ContentPosition } from '@digigov/ui/navigation/Dropdown/__stories__/ContentPosition';
|
|
117
|
+
export { ScrollableContent } from '@digigov/ui/navigation/Dropdown/__stories__/ScrollableContent';
|
|
118
|
+
export { Dense } from '@digigov/ui/navigation/Dropdown/__stories__/Dense';
|
|
@@ -10,14 +10,16 @@ title: Dropdown
|
|
|
10
10
|
<div className="dropdown-docs">
|
|
11
11
|
<code src="@digigov/ui/navigation/Dropdown/__stories__/Default.tsx" />
|
|
12
12
|
</div>
|
|
13
|
-
|
|
13
|
+
|
|
14
|
+
### With align right
|
|
14
15
|
|
|
15
16
|
You can display the dropdown menu to the right side of the `Dropdown` button.
|
|
16
17
|
|
|
17
18
|
<div className="dropdown-docs">
|
|
18
19
|
<code src="@digigov/ui/navigation/Dropdown/__stories__/AlignRight.tsx" />
|
|
19
20
|
</div>
|
|
20
|
-
|
|
21
|
+
|
|
22
|
+
### With placement top
|
|
21
23
|
|
|
22
24
|
You can display the dropdown menu to the top of the `Dropdown` button.
|
|
23
25
|
|
|
@@ -25,6 +27,26 @@ You can display the dropdown menu to the top of the `Dropdown` button.
|
|
|
25
27
|
<code src="@digigov/ui/navigation/Dropdown/__stories__/PlacementTop.tsx" />
|
|
26
28
|
</div>
|
|
27
29
|
|
|
30
|
+
### With icons
|
|
31
|
+
|
|
32
|
+
<div className="dropdown-docs">
|
|
33
|
+
<code src="@digigov/ui/navigation/Dropdown/__stories__/WithIcons.tsx" />
|
|
34
|
+
</div>
|
|
35
|
+
|
|
36
|
+
### With scrollable content
|
|
37
|
+
|
|
38
|
+
Use this when the content of the dropdown menu is too long to fit on the screen.
|
|
39
|
+
|
|
40
|
+
<div className="dropdown-docs">
|
|
41
|
+
<code src="@digigov/ui/navigation/Dropdown/__stories__/ScrollableContent.tsx" />
|
|
42
|
+
</div>
|
|
43
|
+
|
|
44
|
+
### Dense
|
|
45
|
+
|
|
46
|
+
<div className="dropdown-docs">
|
|
47
|
+
<code src="@digigov/ui/navigation/Dropdown/__stories__/Dense.tsx" />
|
|
48
|
+
</div>
|
|
49
|
+
|
|
28
50
|
## API
|
|
29
51
|
|
|
30
52
|
See below for a complete reference to all of the props available to the components mentioned here.
|
|
@@ -19,6 +19,10 @@ pagination component displays a list of page numbers, and allows the user to nav
|
|
|
19
19
|
|
|
20
20
|
<code src="@digigov/ui/navigation/Pagination/__stories__/PaginationWithSmallFont.tsx" />
|
|
21
21
|
|
|
22
|
+
### Dense
|
|
23
|
+
|
|
24
|
+
<code src="@digigov/ui/navigation/Pagination/__stories__/PaginationSmall.tsx" />
|
|
25
|
+
|
|
22
26
|
### With results per page
|
|
23
27
|
|
|
24
28
|
<code src="@digigov/ui/navigation/Pagination/__stories__/WithResultsPerPage.tsx" />
|
|
@@ -34,4 +38,4 @@ See below for a complete reference to all of the props available to the componen
|
|
|
34
38
|
'PaginationList',
|
|
35
39
|
'PaginationListItem',
|
|
36
40
|
]}
|
|
37
|
-
/>
|
|
41
|
+
/>
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import SkipLink from '@digigov/ui/navigation/SkipLink';
|
|
2
|
+
import doc from './doc.mdx?raw';
|
|
3
|
+
|
|
2
4
|
export default {
|
|
3
5
|
title: 'Digigov UI/navigation/SkipLink',
|
|
4
6
|
description:
|
|
5
7
|
'Use the skip link component to help keyboard-only users skip to the main content on a page.',
|
|
6
8
|
component: SkipLink,
|
|
9
|
+
tags: ['autodocs'],
|
|
10
|
+
markdown: doc,
|
|
7
11
|
displayName: 'SkipLink',
|
|
8
12
|
};
|
|
9
13
|
export { Default } from '@digigov/ui/navigation/SkipLink/__stories__/Default';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: skip-link
|
|
3
|
+
title: SkipLink
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# SkipLink
|
|
7
|
+
|
|
8
|
+
SkipLink is a component that allows users to skip to the main content of the page.
|
|
9
|
+
|
|
10
|
+
## How to use
|
|
11
|
+
|
|
12
|
+
<code src="@digigov/ui/navigation/SkipLink/__stories__/Default.tsx" />
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## API
|
|
16
|
+
|
|
17
|
+
See below for a complete reference to all of the props available to the components mentioned here.
|
|
18
|
+
|
|
19
|
+
<ComponentProps componentName={['SkipLink',]}/>
|
|
@@ -7,6 +7,30 @@ export default {
|
|
|
7
7
|
markdown: doc,
|
|
8
8
|
displayName: 'CodeBlock',
|
|
9
9
|
};
|
|
10
|
+
|
|
11
|
+
export const WithControls = {
|
|
12
|
+
args: {
|
|
13
|
+
language: undefined,
|
|
14
|
+
copyToClipboard: true,
|
|
15
|
+
highlighted: true,
|
|
16
|
+
showLineNumbers: true,
|
|
17
|
+
phaseBannerTagName: 'JSON',
|
|
18
|
+
highlightLines: undefined,
|
|
19
|
+
children: `{
|
|
20
|
+
"random": random(1, 100),
|
|
21
|
+
"random float": randomFloat(1, 100, 3),
|
|
22
|
+
"bool": randomBool(),
|
|
23
|
+
"date": date('Y-m-d', '1980-01-01', '2000-01-15'),
|
|
24
|
+
"regEx": regex(/hello+ (world|to you)/),
|
|
25
|
+
"enum": choice('json', 'generator', 'online'),
|
|
26
|
+
"firstname": firstname(),
|
|
27
|
+
"lastname": lastname(),
|
|
28
|
+
"city": city(),
|
|
29
|
+
"country": country(),
|
|
30
|
+
"countryCode": countryCode()
|
|
31
|
+
}`,
|
|
32
|
+
},
|
|
33
|
+
};
|
|
10
34
|
export { Default } from '@digigov/ui/typography/CodeBlock/__stories__/Default';
|
|
11
35
|
export { Highlighted } from '@digigov/ui/typography/CodeBlock/__stories__/Highlighted';
|
|
12
36
|
export { WithCopyToClipboard } from '@digigov/ui/typography/CodeBlock/__stories__/WithCopyToClipboard';
|
|
@@ -7,4 +7,16 @@ export default {
|
|
|
7
7
|
markdown: doc,
|
|
8
8
|
displayName: 'Heading',
|
|
9
9
|
};
|
|
10
|
+
|
|
11
|
+
export const WithControls = {
|
|
12
|
+
args: {
|
|
13
|
+
children: 'Heading',
|
|
14
|
+
size: 'xl',
|
|
15
|
+
element: 'h1',
|
|
16
|
+
breakWords: false,
|
|
17
|
+
fontSize: undefined,
|
|
18
|
+
fontWeight: undefined,
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
|
|
10
22
|
export { Default } from '@digigov/ui/typography/Heading/__stories__/Default';
|
|
@@ -7,5 +7,14 @@ export default {
|
|
|
7
7
|
markdown: doc,
|
|
8
8
|
displayName: 'HeadingCaption',
|
|
9
9
|
};
|
|
10
|
+
|
|
11
|
+
export const WithControls = {
|
|
12
|
+
args: {
|
|
13
|
+
children: 'Heading Caption',
|
|
14
|
+
size: 'xl',
|
|
15
|
+
fontSize: undefined,
|
|
16
|
+
fontWeight: undefined,
|
|
17
|
+
},
|
|
18
|
+
};
|
|
10
19
|
export { Default } from '@digigov/ui/typography/HeadingCaption/__stories__/Default';
|
|
11
20
|
export { NestedToTitle } from '@digigov/ui/typography/HeadingCaption/__stories__/NestedToTitle';
|
|
@@ -7,5 +7,16 @@ export default {
|
|
|
7
7
|
markdown: doc,
|
|
8
8
|
displayName: 'Hint',
|
|
9
9
|
};
|
|
10
|
+
|
|
11
|
+
export const WithControls = {
|
|
12
|
+
args: {
|
|
13
|
+
children: 'Hint text',
|
|
14
|
+
size: 'md',
|
|
15
|
+
breakWords: false,
|
|
16
|
+
fontSize: undefined,
|
|
17
|
+
fontWeight: undefined,
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
|
|
10
21
|
export { Default } from '@digigov/ui/typography/Hint/__stories__/Default';
|
|
11
22
|
export { FontSizes } from '@digigov/ui/typography/Hint/__stories__/FontSizes';
|
|
@@ -3,10 +3,10 @@ import { Hint } from '@digigov/ui/typography/Hint';
|
|
|
3
3
|
|
|
4
4
|
export const FontSizes = (_: any) => (
|
|
5
5
|
<>
|
|
6
|
-
<Hint fontSize={14}>
|
|
7
|
-
<Hint fontSize={16}>
|
|
8
|
-
<Hint>
|
|
9
|
-
<Hint fontSize={24}>
|
|
6
|
+
<Hint fontSize={14}>ds-hint</Hint>
|
|
7
|
+
<Hint fontSize={16}>ds-hint</Hint>
|
|
8
|
+
<Hint>ds-hint</Hint>
|
|
9
|
+
<Hint fontSize={24}>ds-hint</Hint>
|
|
10
10
|
</>
|
|
11
11
|
);
|
|
12
12
|
|
|
@@ -7,6 +7,16 @@ export default {
|
|
|
7
7
|
markdown: doc,
|
|
8
8
|
displayName: 'NormalText',
|
|
9
9
|
};
|
|
10
|
+
|
|
11
|
+
export const WithControls = {
|
|
12
|
+
args: {
|
|
13
|
+
children: 'Normal text',
|
|
14
|
+
size: 'md',
|
|
15
|
+
fontSize: undefined,
|
|
16
|
+
fontWeight: undefined,
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
|
|
10
20
|
export { Default } from '@digigov/ui/typography/NormalText/__stories__/Default';
|
|
11
21
|
export { FontSizes } from '@digigov/ui/typography/NormalText/__stories__/FontSizes';
|
|
12
22
|
export { FontWeight } from '@digigov/ui/typography/NormalText/__stories__/FontWeight';
|
|
@@ -7,6 +7,29 @@ export default {
|
|
|
7
7
|
markdown: doc,
|
|
8
8
|
displayName: 'Paragraph',
|
|
9
9
|
};
|
|
10
|
+
export const WithControls = {
|
|
11
|
+
args: {
|
|
12
|
+
children: 'Paragraph',
|
|
13
|
+
size: 'md',
|
|
14
|
+
fontSize: undefined,
|
|
15
|
+
fontWeight: undefined,
|
|
16
|
+
},
|
|
17
|
+
argTypes: {
|
|
18
|
+
size: {
|
|
19
|
+
options: ['sm', 'md', 'lg'],
|
|
20
|
+
control: { type: 'select' },
|
|
21
|
+
},
|
|
22
|
+
fontSize: {
|
|
23
|
+
options: [14, 16, 19, 24, 30, 36, 48, 72],
|
|
24
|
+
control: { type: 'select' },
|
|
25
|
+
},
|
|
26
|
+
fontWeight: {
|
|
27
|
+
options: ['regular', 'bold'],
|
|
28
|
+
control: { type: 'select' },
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
|
|
10
33
|
export { Default } from '@digigov/ui/typography/Paragraph/__stories__/Default';
|
|
11
34
|
export { LeadVariant } from '@digigov/ui/typography/Paragraph/__stories__/LeadVariant';
|
|
12
35
|
export { SmallVariant } from '@digigov/ui/typography/Paragraph/__stories__/SmallVariant';
|
|
@@ -43,6 +43,7 @@ import * as _digigov_ui_form_TextArea_TextArea_stories from "@digigov/ui/form/Te
|
|
|
43
43
|
import * as _digigov_ui_form_TextInput_TextInput_stories from "@digigov/ui/form/TextInput/TextInput.stories";
|
|
44
44
|
import * as _digigov_ui_layouts_Basic_Basic_stories from "@digigov/ui/layouts/Basic/Basic.stories";
|
|
45
45
|
import * as _digigov_ui_layouts_Grid_Grid_stories from "@digigov/ui/layouts/Grid/Grid.stories";
|
|
46
|
+
import * as _digigov_ui_layouts_Hidden_Hidden_stories from "@digigov/ui/layouts/Hidden/Hidden.stories";
|
|
46
47
|
import * as _digigov_ui_layouts_Screen_Screen_stories from "@digigov/ui/layouts/Screen/Screen.stories";
|
|
47
48
|
import * as _digigov_ui_layouts_Stack_Stack_stories from "@digigov/ui/layouts/Stack/Stack.stories";
|
|
48
49
|
import * as _digigov_ui_navigation_BackLink_BackLink_stories from "@digigov/ui/navigation/BackLink/BackLink.stories";
|
|
@@ -55,13 +56,13 @@ import * as _digigov_ui_navigation_NavList_NavList_stories from "@digigov/ui/nav
|
|
|
55
56
|
import * as _digigov_ui_navigation_Pagination_Pagination_stories from "@digigov/ui/navigation/Pagination/Pagination.stories";
|
|
56
57
|
import * as _digigov_ui_navigation_SkipLink_SkipLink_stories from "@digigov/ui/navigation/SkipLink/SkipLink.stories";
|
|
57
58
|
import * as _digigov_ui_navigation_Tabs_Tabs_stories from "@digigov/ui/navigation/Tabs/Tabs.stories";
|
|
58
|
-
import * as _digigov_ui_utils_VisuallyHidden_VisuallyHidden_stories from "@digigov/ui/utils/VisuallyHidden/VisuallyHidden.stories";
|
|
59
59
|
import * as _digigov_ui_typography_CodeBlock_CodeBlock_stories from "@digigov/ui/typography/CodeBlock/CodeBlock.stories";
|
|
60
60
|
import * as _digigov_ui_typography_Heading_Heading_stories from "@digigov/ui/typography/Heading/Heading.stories";
|
|
61
61
|
import * as _digigov_ui_typography_HeadingCaption_HeadingCaption_stories from "@digigov/ui/typography/HeadingCaption/HeadingCaption.stories";
|
|
62
62
|
import * as _digigov_ui_typography_Hint_Hint_stories from "@digigov/ui/typography/Hint/Hint.stories";
|
|
63
63
|
import * as _digigov_ui_typography_NormalText_NormalText_stories from "@digigov/ui/typography/NormalText/NormalText.stories";
|
|
64
64
|
import * as _digigov_ui_typography_Paragraph_Paragraph_stories from "@digigov/ui/typography/Paragraph/Paragraph.stories";
|
|
65
|
+
import * as _digigov_ui_utils_VisuallyHidden_VisuallyHidden_stories from "@digigov/ui/utils/VisuallyHidden/VisuallyHidden.stories";
|
|
65
66
|
import * as _digigov_ui_app_BannerContainer___stories___CookiesBanner from "@digigov/ui/app/BannerContainer/__stories__/CookiesBanner";
|
|
66
67
|
import * as _digigov_ui_app_Footer___stories___Default from "@digigov/ui/app/Footer/__stories__/Default";
|
|
67
68
|
import * as _digigov_ui_app_Footer___stories___DefaultCopyright from "@digigov/ui/app/Footer/__stories__/DefaultCopyright";
|
|
@@ -79,6 +80,8 @@ import * as _digigov_ui_app_Header___stories___WithServiceNameAndLogo from "@dig
|
|
|
79
80
|
import * as _digigov_ui_app_Loader___stories___AccessibilityLoader from "@digigov/ui/app/Loader/__stories__/AccessibilityLoader";
|
|
80
81
|
import * as _digigov_ui_app_Loader___stories___Default from "@digigov/ui/app/Loader/__stories__/Default";
|
|
81
82
|
import * as _digigov_ui_app_Loader___stories___FullPageLoader from "@digigov/ui/app/Loader/__stories__/FullPageLoader";
|
|
83
|
+
import * as _digigov_ui_app_Loader___stories___Secondary from "@digigov/ui/app/Loader/__stories__/Secondary";
|
|
84
|
+
import * as _digigov_ui_app_Loader___stories___Sizes from "@digigov/ui/app/Loader/__stories__/Sizes";
|
|
82
85
|
import * as _digigov_ui_app_Masthead___stories___Default from "@digigov/ui/app/Masthead/__stories__/Default";
|
|
83
86
|
import * as _digigov_ui_app_Masthead___stories___Secondary from "@digigov/ui/app/Masthead/__stories__/Secondary";
|
|
84
87
|
import * as _digigov_ui_app_Masthead___stories___WithElements from "@digigov/ui/app/Masthead/__stories__/WithElements";
|
|
@@ -424,6 +427,7 @@ export default {
|
|
|
424
427
|
'@digigov/ui/form/TextInput/TextInput.stories': lazyImport(_digigov_ui_form_TextInput_TextInput_stories),
|
|
425
428
|
'@digigov/ui/layouts/Basic/Basic.stories': lazyImport(_digigov_ui_layouts_Basic_Basic_stories),
|
|
426
429
|
'@digigov/ui/layouts/Grid/Grid.stories': lazyImport(_digigov_ui_layouts_Grid_Grid_stories),
|
|
430
|
+
'@digigov/ui/layouts/Hidden/Hidden.stories': lazyImport(_digigov_ui_layouts_Hidden_Hidden_stories),
|
|
427
431
|
'@digigov/ui/layouts/Screen/Screen.stories': lazyImport(_digigov_ui_layouts_Screen_Screen_stories),
|
|
428
432
|
'@digigov/ui/layouts/Stack/Stack.stories': lazyImport(_digigov_ui_layouts_Stack_Stack_stories),
|
|
429
433
|
'@digigov/ui/navigation/BackLink/BackLink.stories': lazyImport(_digigov_ui_navigation_BackLink_BackLink_stories),
|
|
@@ -436,13 +440,13 @@ export default {
|
|
|
436
440
|
'@digigov/ui/navigation/Pagination/Pagination.stories': lazyImport(_digigov_ui_navigation_Pagination_Pagination_stories),
|
|
437
441
|
'@digigov/ui/navigation/SkipLink/SkipLink.stories': lazyImport(_digigov_ui_navigation_SkipLink_SkipLink_stories),
|
|
438
442
|
'@digigov/ui/navigation/Tabs/Tabs.stories': lazyImport(_digigov_ui_navigation_Tabs_Tabs_stories),
|
|
439
|
-
'@digigov/ui/utils/VisuallyHidden/VisuallyHidden.stories': lazyImport(_digigov_ui_utils_VisuallyHidden_VisuallyHidden_stories),
|
|
440
443
|
'@digigov/ui/typography/CodeBlock/CodeBlock.stories': lazyImport(_digigov_ui_typography_CodeBlock_CodeBlock_stories),
|
|
441
444
|
'@digigov/ui/typography/Heading/Heading.stories': lazyImport(_digigov_ui_typography_Heading_Heading_stories),
|
|
442
445
|
'@digigov/ui/typography/HeadingCaption/HeadingCaption.stories': lazyImport(_digigov_ui_typography_HeadingCaption_HeadingCaption_stories),
|
|
443
446
|
'@digigov/ui/typography/Hint/Hint.stories': lazyImport(_digigov_ui_typography_Hint_Hint_stories),
|
|
444
447
|
'@digigov/ui/typography/NormalText/NormalText.stories': lazyImport(_digigov_ui_typography_NormalText_NormalText_stories),
|
|
445
448
|
'@digigov/ui/typography/Paragraph/Paragraph.stories': lazyImport(_digigov_ui_typography_Paragraph_Paragraph_stories),
|
|
449
|
+
'@digigov/ui/utils/VisuallyHidden/VisuallyHidden.stories': lazyImport(_digigov_ui_utils_VisuallyHidden_VisuallyHidden_stories),
|
|
446
450
|
'@digigov/ui/app/BannerContainer/__stories__/CookiesBanner': lazyImport(_digigov_ui_app_BannerContainer___stories___CookiesBanner),
|
|
447
451
|
'@digigov/ui/app/Footer/__stories__/Default': lazyImport(_digigov_ui_app_Footer___stories___Default),
|
|
448
452
|
'@digigov/ui/app/Footer/__stories__/DefaultCopyright': lazyImport(_digigov_ui_app_Footer___stories___DefaultCopyright),
|
|
@@ -460,6 +464,8 @@ export default {
|
|
|
460
464
|
'@digigov/ui/app/Loader/__stories__/AccessibilityLoader': lazyImport(_digigov_ui_app_Loader___stories___AccessibilityLoader),
|
|
461
465
|
'@digigov/ui/app/Loader/__stories__/Default': lazyImport(_digigov_ui_app_Loader___stories___Default),
|
|
462
466
|
'@digigov/ui/app/Loader/__stories__/FullPageLoader': lazyImport(_digigov_ui_app_Loader___stories___FullPageLoader),
|
|
467
|
+
'@digigov/ui/app/Loader/__stories__/Secondary': lazyImport(_digigov_ui_app_Loader___stories___Secondary),
|
|
468
|
+
'@digigov/ui/app/Loader/__stories__/Sizes': lazyImport(_digigov_ui_app_Loader___stories___Sizes),
|
|
463
469
|
'@digigov/ui/app/Masthead/__stories__/Default': lazyImport(_digigov_ui_app_Masthead___stories___Default),
|
|
464
470
|
'@digigov/ui/app/Masthead/__stories__/Secondary': lazyImport(_digigov_ui_app_Masthead___stories___Secondary),
|
|
465
471
|
'@digigov/ui/app/Masthead/__stories__/WithElements': lazyImport(_digigov_ui_app_Masthead___stories___WithElements),
|
|
@@ -6,6 +6,17 @@ declare namespace _default {
|
|
|
6
6
|
export let displayName: string;
|
|
7
7
|
}
|
|
8
8
|
export default _default;
|
|
9
|
+
export namespace WithControls {
|
|
10
|
+
namespace args {
|
|
11
|
+
let language: undefined;
|
|
12
|
+
let copyToClipboard: boolean;
|
|
13
|
+
let highlighted: boolean;
|
|
14
|
+
let showLineNumbers: boolean;
|
|
15
|
+
let phaseBannerTagName: string;
|
|
16
|
+
let highlightLines: undefined;
|
|
17
|
+
let children: string;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
9
20
|
export { Default } from "@digigov/ui/typography/CodeBlock/__stories__/Default";
|
|
10
21
|
export { Highlighted } from "@digigov/ui/typography/CodeBlock/__stories__/Highlighted";
|
|
11
22
|
export { WithCopyToClipboard } from "@digigov/ui/typography/CodeBlock/__stories__/WithCopyToClipboard";
|
|
@@ -6,5 +6,15 @@ declare namespace _default {
|
|
|
6
6
|
export let displayName: string;
|
|
7
7
|
}
|
|
8
8
|
export default _default;
|
|
9
|
+
export namespace WithControls {
|
|
10
|
+
namespace args {
|
|
11
|
+
let children: string;
|
|
12
|
+
let size: string;
|
|
13
|
+
let element: string;
|
|
14
|
+
let breakWords: boolean;
|
|
15
|
+
let fontSize: undefined;
|
|
16
|
+
let fontWeight: undefined;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
9
19
|
export { Default } from "@digigov/ui/typography/Heading/__stories__/Default";
|
|
10
20
|
import Heading from '@digigov/ui/typography/Heading';
|
|
@@ -6,6 +6,14 @@ declare namespace _default {
|
|
|
6
6
|
export let displayName: string;
|
|
7
7
|
}
|
|
8
8
|
export default _default;
|
|
9
|
+
export namespace WithControls {
|
|
10
|
+
namespace args {
|
|
11
|
+
let children: string;
|
|
12
|
+
let size: string;
|
|
13
|
+
let fontSize: undefined;
|
|
14
|
+
let fontWeight: undefined;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
9
17
|
export { Default } from "@digigov/ui/typography/HeadingCaption/__stories__/Default";
|
|
10
18
|
export { NestedToTitle } from "@digigov/ui/typography/HeadingCaption/__stories__/NestedToTitle";
|
|
11
19
|
import HeadingCaption from '@digigov/ui/typography/HeadingCaption';
|
|
@@ -6,6 +6,15 @@ declare namespace _default {
|
|
|
6
6
|
export let displayName: string;
|
|
7
7
|
}
|
|
8
8
|
export default _default;
|
|
9
|
+
export namespace WithControls {
|
|
10
|
+
namespace args {
|
|
11
|
+
let children: string;
|
|
12
|
+
let size: string;
|
|
13
|
+
let breakWords: boolean;
|
|
14
|
+
let fontSize: undefined;
|
|
15
|
+
let fontWeight: undefined;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
9
18
|
export { Default } from "@digigov/ui/typography/Hint/__stories__/Default";
|
|
10
19
|
export { FontSizes } from "@digigov/ui/typography/Hint/__stories__/FontSizes";
|
|
11
20
|
import Hint from '@digigov/ui/typography/Hint';
|
|
@@ -6,6 +6,14 @@ declare namespace _default {
|
|
|
6
6
|
export let displayName: string;
|
|
7
7
|
}
|
|
8
8
|
export default _default;
|
|
9
|
+
export namespace WithControls {
|
|
10
|
+
namespace args {
|
|
11
|
+
let children: string;
|
|
12
|
+
let size: string;
|
|
13
|
+
let fontSize: undefined;
|
|
14
|
+
let fontWeight: undefined;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
9
17
|
export { Default } from "@digigov/ui/typography/NormalText/__stories__/Default";
|
|
10
18
|
export { FontSizes } from "@digigov/ui/typography/NormalText/__stories__/FontSizes";
|
|
11
19
|
export { FontWeight } from "@digigov/ui/typography/NormalText/__stories__/FontWeight";
|
|
@@ -6,6 +6,43 @@ declare namespace _default {
|
|
|
6
6
|
export let displayName: string;
|
|
7
7
|
}
|
|
8
8
|
export default _default;
|
|
9
|
+
export namespace WithControls {
|
|
10
|
+
namespace args {
|
|
11
|
+
let children: string;
|
|
12
|
+
let size: string;
|
|
13
|
+
let fontSize: undefined;
|
|
14
|
+
let fontWeight: undefined;
|
|
15
|
+
}
|
|
16
|
+
namespace argTypes {
|
|
17
|
+
export namespace size_1 {
|
|
18
|
+
let options: string[];
|
|
19
|
+
namespace control {
|
|
20
|
+
let type: string;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
export { size_1 as size };
|
|
24
|
+
export namespace fontSize_1 {
|
|
25
|
+
let options_1: number[];
|
|
26
|
+
export { options_1 as options };
|
|
27
|
+
export namespace control_1 {
|
|
28
|
+
let type_1: string;
|
|
29
|
+
export { type_1 as type };
|
|
30
|
+
}
|
|
31
|
+
export { control_1 as control };
|
|
32
|
+
}
|
|
33
|
+
export { fontSize_1 as fontSize };
|
|
34
|
+
export namespace fontWeight_1 {
|
|
35
|
+
let options_2: string[];
|
|
36
|
+
export { options_2 as options };
|
|
37
|
+
export namespace control_2 {
|
|
38
|
+
let type_2: string;
|
|
39
|
+
export { type_2 as type };
|
|
40
|
+
}
|
|
41
|
+
export { control_2 as control };
|
|
42
|
+
}
|
|
43
|
+
export { fontWeight_1 as fontWeight };
|
|
44
|
+
}
|
|
45
|
+
}
|
|
9
46
|
export { Default } from "@digigov/ui/typography/Paragraph/__stories__/Default";
|
|
10
47
|
export { LeadVariant } from "@digigov/ui/typography/Paragraph/__stories__/LeadVariant";
|
|
11
48
|
export { SmallVariant } from "@digigov/ui/typography/Paragraph/__stories__/SmallVariant";
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import CircularProgress from '@digigov/ui/app/Loader';
|
|
2
|
-
export default {
|
|
3
|
-
title: 'Digigov UI/app/CircularProgress',
|
|
4
|
-
component: CircularProgress,
|
|
5
|
-
displayName: 'CircularProgress',
|
|
6
|
-
};
|
|
7
|
-
export { Default } from '@digigov/ui/app/Loader/__stories__/Default';
|
|
8
|
-
export { FullPageLoader } from '@digigov/ui/app/Loader/__stories__/FullPageLoader';
|
|
9
|
-
export { AccessibilityLoader } from '@digigov/ui/app/Loader/__stories__/AccessibilityLoader';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import Masthead from '@digigov/ui/app/Masthead';
|
|
2
|
-
import doc from './doc.mdx?raw';
|
|
3
|
-
export default {
|
|
4
|
-
title: 'Digigov UI/app/Masthead',
|
|
5
|
-
description:
|
|
6
|
-
'You can use the masthead at the top of the first page of a GOV.GR service, not at internal pages.',
|
|
7
|
-
link: 'https://guide.services.gov.gr/docs/components/masthead',
|
|
8
|
-
defaultWidth: 'lg',
|
|
9
|
-
component: Masthead,
|
|
10
|
-
tags: ['autodocs'],
|
|
11
|
-
markdown: doc,
|
|
12
|
-
displayName: 'Masthead',
|
|
13
|
-
};
|
|
14
|
-
export { Default } from '@digigov/ui/app/Masthead/__stories__/Default';
|
|
15
|
-
export { Secondary } from '@digigov/ui/app/Masthead/__stories__/Secondary';
|
|
16
|
-
export { WithLogo } from '@digigov/ui/app/Masthead/__stories__/WithLogo';
|
|
17
|
-
export { WithElements } from '@digigov/ui/app/Masthead/__stories__/WithElements';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import Modal from '@digigov/ui/app/Modal';
|
|
2
|
-
import doc from './doc.mdx?raw';
|
|
3
|
-
export default {
|
|
4
|
-
title: 'Digigov UI/app/Modal',
|
|
5
|
-
description:
|
|
6
|
-
'Use the modal component with caution when you need to provide critical information or ask for a decision.',
|
|
7
|
-
link: 'https://guide.services.gov.gr/docs/patterns/admin-pages/components/modal',
|
|
8
|
-
component: Modal,
|
|
9
|
-
tags: ['autodocs'],
|
|
10
|
-
markdown: doc,
|
|
11
|
-
displayName: 'Modal',
|
|
12
|
-
};
|
|
13
|
-
export { Default } from '@digigov/ui/app/Modal/__stories__/Default';
|
|
14
|
-
export { AlertDialog } from '@digigov/ui/app/Modal/__stories__/AlertDialog';
|
|
15
|
-
export { Dense } from '@digigov/ui/app/Modal/__stories__/Dense';
|
|
16
|
-
export { WithHooks } from '@digigov/ui/app/Modal/__stories__/WithHooks';
|
|
17
|
-
export { Auto } from '@digigov/ui/app/Modal/__stories__/Auto';
|
|
18
|
-
export { WithoutModalGaps } from '@digigov/ui/app/Modal/__stories__/WithoutModalGaps';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import Grid from '@digigov/ui/layouts/Grid';
|
|
2
|
-
import doc from './doc.mdx?raw';
|
|
3
|
-
export default {
|
|
4
|
-
title: 'Digigov UI/layouts/Grid',
|
|
5
|
-
component: Grid,
|
|
6
|
-
tags: ['autodocs'],
|
|
7
|
-
markdown: doc,
|
|
8
|
-
displayName: 'Grid',
|
|
9
|
-
};
|
|
10
|
-
export { Default } from '@digigov/ui/layouts/Grid/__stories__/Default';
|
|
11
|
-
export { ResponsiveSpacing } from '@digigov/ui/layouts/Grid/__stories__/ResponsiveSpacing';
|
|
12
|
-
export { Inline } from '@digigov/ui/layouts/Grid/__stories__/Inline';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import Stack from '@digigov/ui/layouts/Stack';
|
|
2
|
-
import doc from './doc.mdx?raw';
|
|
3
|
-
export default {
|
|
4
|
-
title: 'Digigov UI/layouts/Stack',
|
|
5
|
-
component: Stack,
|
|
6
|
-
tags: ['autodocs'],
|
|
7
|
-
markdown: doc,
|
|
8
|
-
displayName: 'Stack',
|
|
9
|
-
};
|
|
10
|
-
export { Default } from '@digigov/ui/layouts/Stack/__stories__/Default';
|
|
11
|
-
export { Spacing } from '@digigov/ui/layouts/Stack/__stories__/Spacing';
|
|
12
|
-
export { Row } from '@digigov/ui/layouts/Stack/__stories__/Row';
|
|
13
|
-
export { NoWrap } from '@digigov/ui/layouts/Stack/__stories__/NoWrap';
|
|
14
|
-
export { JustifyContent } from '@digigov/ui/layouts/Stack/__stories__/JustifyContent';
|
|
15
|
-
export { AlignItems } from '@digigov/ui/layouts/Stack/__stories__/AlignItems';
|