@ilo-org/twig 0.2.3 → 0.2.5
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/.turbo/turbo-build.log +14023 -14010
- package/CHANGELOG.md +40 -0
- package/README.md +203 -2
- package/apps/storybook/manager-head.html +2 -0
- package/apps/storybook/patterns/intro.stories.mdx +311 -0
- package/apps/storybook/patterns/welcome.stories.mdx +61 -16
- package/apps/storybook/preview-head.html +0 -6
- package/apps/storybook/preview.js +9 -11
- package/images/favicon.ico +0 -0
- package/package.json +6 -6
- package/src/patterns/components/accordion/accordion.wingsuit.yml +18 -36
- package/src/patterns/components/button/button.wingsuit.yml +34 -33
- package/src/patterns/components/callout/callout.wingsuit.yml +2 -2
- package/src/patterns/components/card/card.twig +3 -3
- package/src/patterns/components/card/card.wingsuit.yml +44 -26
- package/src/patterns/components/cardgroup/cardgroup.wingsuit.yml +0 -4
- package/src/patterns/components/dropdown/dropdown.wingsuit.yml +20 -13
- package/src/patterns/components/hero/hero.twig +7 -1
- package/src/patterns/components/hero/hero.wingsuit.yml +21 -2
- package/src/patterns/components/herocard/herocard.wingsuit.yml +14 -9
- package/src/patterns/components/linklist/linklist.stories.jsx +5 -0
- package/src/patterns/components/linklist/linklist.wingsuit.yml +3 -2
- package/src/patterns/components/list/list.wingsuit.yml +4 -4
- package/src/patterns/components/navigation/navigation.wingsuit.yml +2 -2
- package/src/patterns/components/notification/notification.wingsuit.yml +11 -11
- package/src/patterns/components/pagination/pagination.wingsuit.yml +2 -2
- package/src/patterns/components/readmore/readmore.wingsuit.yml +5 -1
- package/src/patterns/components/tags/tag.wingsuit.yml +5 -5
- package/src/patterns/components/tags/tags.wingsuit.yml +2 -2
- package/src/patterns/components/tooltip/tooltip.js +5 -1
- package/src/patterns/components/tooltip/tooltip.wingsuit.yml +4 -3
|
@@ -41,13 +41,14 @@ linklist:
|
|
|
41
41
|
url: 'http://www.google.com'
|
|
42
42
|
- label: Section 2 Link Five Is Slightly Longer
|
|
43
43
|
url: 'http://www.google.com'
|
|
44
|
+
settings:
|
|
44
45
|
theme:
|
|
45
46
|
type: select
|
|
46
47
|
label: Theme
|
|
47
48
|
description: Is this link list on a light or dark background?
|
|
48
49
|
required: true
|
|
49
50
|
options:
|
|
50
|
-
|
|
51
|
-
|
|
51
|
+
light: Light
|
|
52
|
+
dark: Dark
|
|
52
53
|
preview: 'light'
|
|
53
54
|
visibility: storybook
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
list:
|
|
2
2
|
use: '@components/list/list.twig'
|
|
3
3
|
label: List
|
|
4
|
-
description:
|
|
4
|
+
description: The list component
|
|
5
5
|
fields:
|
|
6
6
|
title:
|
|
7
7
|
type: text
|
|
@@ -12,7 +12,7 @@ list:
|
|
|
12
12
|
items:
|
|
13
13
|
type: object
|
|
14
14
|
label: Items
|
|
15
|
-
description:
|
|
15
|
+
description: Array of the list items
|
|
16
16
|
required: true
|
|
17
17
|
preview:
|
|
18
18
|
- content: Arabica. Arabica is the most popular type of coffee, hands down.
|
|
@@ -29,7 +29,7 @@ list:
|
|
|
29
29
|
ordered:
|
|
30
30
|
type: select
|
|
31
31
|
label: Ordered
|
|
32
|
-
description: The order for the list.
|
|
32
|
+
description: The order for the list. `Ordered` uses numbers, `unordered` uses arrow indicators and `unstyled` doesn't have anything but spacing.
|
|
33
33
|
required: false
|
|
34
34
|
options:
|
|
35
35
|
ordered: Ordered
|
|
@@ -39,7 +39,7 @@ list:
|
|
|
39
39
|
alignment:
|
|
40
40
|
type: select
|
|
41
41
|
label: Alignment
|
|
42
|
-
description: Is the list displayed horizontally?
|
|
42
|
+
description: Is the list displayed horizontally? Usually used for shorter items inside a list.
|
|
43
43
|
options:
|
|
44
44
|
default: Default
|
|
45
45
|
horizontal: Horizontal
|
|
@@ -45,7 +45,7 @@ navigation:
|
|
|
45
45
|
primarynav:
|
|
46
46
|
type: object
|
|
47
47
|
label: Primary Navigation
|
|
48
|
-
description: Navigation for the primary menu
|
|
48
|
+
description: Navigation for the primary menu, a list of navigation items as well as some labels for display.
|
|
49
49
|
preview:
|
|
50
50
|
navlabel: Primary Navigation
|
|
51
51
|
mobilecloselabel: Close
|
|
@@ -63,7 +63,7 @@ navigation:
|
|
|
63
63
|
subnav:
|
|
64
64
|
type: object
|
|
65
65
|
label: Secondary navigation
|
|
66
|
-
description: Navigation for the sub menu
|
|
66
|
+
description: Navigation for the sub menu, a list of subnav items as well as some labels for display.
|
|
67
67
|
preview:
|
|
68
68
|
navlabel: Secondary Navigation
|
|
69
69
|
buttonlabel: More
|
|
@@ -28,17 +28,6 @@ notification:
|
|
|
28
28
|
description: The headline of the notification
|
|
29
29
|
required: true
|
|
30
30
|
preview: 'With CTA'
|
|
31
|
-
type:
|
|
32
|
-
type: select
|
|
33
|
-
label: Type
|
|
34
|
-
description: What kind of notification is it?
|
|
35
|
-
required: true
|
|
36
|
-
options:
|
|
37
|
-
error: Error
|
|
38
|
-
info: Info
|
|
39
|
-
success: Success
|
|
40
|
-
warning: Warning
|
|
41
|
-
preview: 'info'
|
|
42
31
|
timestamp:
|
|
43
32
|
type: object
|
|
44
33
|
label: Timestamp
|
|
@@ -55,4 +44,15 @@ notification:
|
|
|
55
44
|
inline: Inline
|
|
56
45
|
dialog: Dialog
|
|
57
46
|
preview: 'dialog'
|
|
47
|
+
type:
|
|
48
|
+
type: select
|
|
49
|
+
label: Type
|
|
50
|
+
description: What kind of notification is it?
|
|
51
|
+
required: true
|
|
52
|
+
options:
|
|
53
|
+
error: Error
|
|
54
|
+
info: Info
|
|
55
|
+
success: Success
|
|
56
|
+
warning: Warning
|
|
57
|
+
preview: 'info'
|
|
58
58
|
visibility: storybook
|
|
@@ -8,7 +8,7 @@ pagination:
|
|
|
8
8
|
label: Current page
|
|
9
9
|
description: current page number that the user is on, zero-indexed
|
|
10
10
|
required: true
|
|
11
|
-
preview: 0
|
|
11
|
+
preview: '0'
|
|
12
12
|
firstPageUrl:
|
|
13
13
|
type: string
|
|
14
14
|
label: First Page link
|
|
@@ -68,5 +68,5 @@ pagination:
|
|
|
68
68
|
label: Total Pages
|
|
69
69
|
description: The number of total pages
|
|
70
70
|
required: true
|
|
71
|
-
preview: 8
|
|
71
|
+
preview: '8'
|
|
72
72
|
visibility: storybook
|
|
@@ -23,10 +23,14 @@ readmore:
|
|
|
23
23
|
description: HTML content
|
|
24
24
|
preview: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.'
|
|
25
25
|
required: true
|
|
26
|
+
settings:
|
|
26
27
|
openatstart:
|
|
27
|
-
type:
|
|
28
|
+
type: select
|
|
28
29
|
label: Open At Start
|
|
29
30
|
description: should the read more be open at page load?
|
|
31
|
+
options:
|
|
32
|
+
true: 'true'
|
|
33
|
+
false: false
|
|
30
34
|
preview: false
|
|
31
35
|
required: true
|
|
32
36
|
visibility: storybook
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
tag:
|
|
2
2
|
use: '@components/tags/tag.twig'
|
|
3
3
|
label: Tag
|
|
4
|
-
description: A
|
|
4
|
+
description: A display or interactable tag
|
|
5
5
|
fields:
|
|
6
6
|
content:
|
|
7
7
|
type: text
|
|
8
8
|
label: Content
|
|
9
|
-
description: The tag
|
|
9
|
+
description: The tag text content.
|
|
10
10
|
preview:
|
|
11
11
|
faker: lorem.word
|
|
12
12
|
id:
|
|
13
13
|
type: text
|
|
14
14
|
label: ID
|
|
15
|
-
description: The tag
|
|
15
|
+
description: The tag's id.
|
|
16
16
|
preview:
|
|
17
17
|
faker: lorem.word
|
|
18
18
|
url:
|
|
19
19
|
type: text
|
|
20
20
|
label: URL
|
|
21
|
-
description: The tag's url reference
|
|
21
|
+
description: The tag's url reference
|
|
22
22
|
preview:
|
|
23
23
|
faker: https://www.google.com/
|
|
24
24
|
settings:
|
|
@@ -34,7 +34,7 @@ tag:
|
|
|
34
34
|
tagType:
|
|
35
35
|
type: type
|
|
36
36
|
label: Tag Type
|
|
37
|
-
description: The type of tag
|
|
37
|
+
description: The type of tag. Anchor and button have potential user interactions where display is static.
|
|
38
38
|
options:
|
|
39
39
|
anchor: Anchor
|
|
40
40
|
button: Button
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
tags:
|
|
2
2
|
use: '@components/tags/tags.twig'
|
|
3
3
|
label: Tags
|
|
4
|
-
description: A
|
|
4
|
+
description: A group of tags
|
|
5
5
|
fields:
|
|
6
6
|
items:
|
|
7
7
|
type: object
|
|
8
8
|
label: Items
|
|
9
|
-
description:
|
|
9
|
+
description: An array of tag data to implement a Tag component
|
|
10
10
|
required: true
|
|
11
11
|
preview:
|
|
12
12
|
- content: content 1
|
|
@@ -92,6 +92,7 @@ export default class Tooltip {
|
|
|
92
92
|
if (target != null) {
|
|
93
93
|
const rect = target.getBoundingClientRect();
|
|
94
94
|
this.tooltip.classList.add(`${this.prefix}--tooltip--visible`);
|
|
95
|
+
this.tooltip.classList.add(`${this.prefix}--tooltip--fade`);
|
|
95
96
|
this.postMouseOver(rect);
|
|
96
97
|
}
|
|
97
98
|
|
|
@@ -99,7 +100,10 @@ export default class Tooltip {
|
|
|
99
100
|
}
|
|
100
101
|
|
|
101
102
|
handleOnMouseOut(e) {
|
|
102
|
-
this.tooltip.classList.remove(`${this.prefix}--tooltip--
|
|
103
|
+
this.tooltip.classList.remove(`${this.prefix}--tooltip--fade`);
|
|
104
|
+
setTimeout(() => {
|
|
105
|
+
this.tooltip.classList.remove(`${this.prefix}--tooltip--visible`);
|
|
106
|
+
}, 150);
|
|
103
107
|
|
|
104
108
|
return this;
|
|
105
109
|
}
|
|
@@ -9,11 +9,12 @@ tooltip:
|
|
|
9
9
|
description: label shown on the tooltip
|
|
10
10
|
required: true
|
|
11
11
|
preview: 'Tooltip text'
|
|
12
|
+
settings:
|
|
12
13
|
icon:
|
|
13
14
|
type: select
|
|
14
15
|
label: Icon
|
|
15
16
|
description: does this tooltip have the "info" icon?
|
|
16
|
-
|
|
17
|
+
options:
|
|
17
18
|
true: 'true'
|
|
18
19
|
false: false
|
|
19
20
|
preview: 'true'
|
|
@@ -21,8 +22,8 @@ tooltip:
|
|
|
21
22
|
theme:
|
|
22
23
|
type: select
|
|
23
24
|
label: Theme
|
|
24
|
-
description:
|
|
25
|
-
|
|
25
|
+
description: Choose the tooltip's theme
|
|
26
|
+
options:
|
|
26
27
|
light: light
|
|
27
28
|
dark: dark
|
|
28
29
|
preview: dark
|