@ilo-org/twig 0.2.12 → 0.2.13
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/.eslintrc.js +37 -49
- package/.stylelintrc +2 -6
- package/.turbo/turbo-build:lib.log +2 -2
- package/CHANGELOG.md +12 -0
- package/apps/storybook/assets.js +5 -0
- package/apps/storybook/main.js +17 -8
- package/apps/storybook/manager-head.html +1 -1
- package/apps/storybook/manager.js +2 -2
- package/apps/storybook/patterns/colors.stories.mdx +9 -4
- package/apps/storybook/patterns/intro.stories.mdx +47 -42
- package/apps/storybook/patterns/typeset.stories.mdx +10 -6
- package/apps/storybook/patterns/welcome.stories.mdx +21 -16
- package/apps/storybook/preview-body.html +1 -1
- package/apps/storybook/preview.js +16 -16
- package/apps/storybook/styles.scss +1 -1
- package/apps/storybook/theme.js +5 -5
- package/babel.config.js +3 -3
- package/importprefix.js +5 -5
- package/importsvgs.js +3 -3
- package/jest.config.js +8 -8
- package/outputtwigs.js +16 -13
- package/package.json +46 -55
- package/postcss.config.js +2 -2
- package/src/namespaces.js +5 -5
- package/src/patterns/components/accordion/accordion-item.wingsuit.yml +1 -1
- package/src/patterns/components/accordion/accordion.behavior.js +2 -2
- package/src/patterns/components/accordion/accordion.js +31 -21
- package/src/patterns/components/accordion/accordion.stories.jsx +4 -2
- package/src/patterns/components/accordion/accordion.wingsuit.yml +4 -3
- package/src/patterns/components/accordion/index.js +3 -3
- package/src/patterns/components/breadcrumb/breadcrumb.behavior.js +2 -2
- package/src/patterns/components/breadcrumb/breadcrumb.js +14 -12
- package/src/patterns/components/breadcrumb/breadcrumb.stories.jsx +4 -2
- package/src/patterns/components/breadcrumb/breadcrumb.wingsuit.yml +1 -1
- package/src/patterns/components/breadcrumb/index.js +3 -3
- package/src/patterns/components/button/button.stories.jsx +4 -2
- package/src/patterns/components/button/button.wingsuit.yml +12 -12
- package/src/patterns/components/button/index.js +2 -2
- package/src/patterns/components/callout/callout.behavior.js +2 -2
- package/src/patterns/components/callout/callout.js +18 -13
- package/src/patterns/components/callout/callout.stories.jsx +4 -2
- package/src/patterns/components/callout/callout.wingsuit.yml +2 -2
- package/src/patterns/components/callout/index.js +3 -3
- package/src/patterns/components/card/card.stories.jsx +4 -2
- package/src/patterns/components/card/card.wingsuit.yml +8 -8
- package/src/patterns/components/card/index.js +2 -2
- package/src/patterns/components/cardgroup/cardgroup.stories.jsx +4 -2
- package/src/patterns/components/cardgroup/cardgroup.wingsuit.yml +31 -31
- package/src/patterns/components/cardgroup/index.js +2 -2
- package/src/patterns/components/contextmenu/contextmenu.stories.jsx +4 -2
- package/src/patterns/components/contextmenu/contextmenu.wingsuit.yml +7 -7
- package/src/patterns/components/contextmenu/index.js +2 -2
- package/src/patterns/components/dropdown/dropdown.stories.jsx +4 -2
- package/src/patterns/components/dropdown/dropdown.wingsuit.yml +4 -4
- package/src/patterns/components/dropdown/index.js +2 -2
- package/src/patterns/components/footer/footer.stories.jsx +4 -2
- package/src/patterns/components/footer/footer.wingsuit.yml +1 -1
- package/src/patterns/components/footer/index.js +2 -2
- package/src/patterns/components/form/fileupload.behavior.js +2 -2
- package/src/patterns/components/form/fileupload.js +6 -5
- package/src/patterns/components/form/form.stories.jsx +4 -2
- package/src/patterns/components/form/form.wingsuit.yml +92 -92
- package/src/patterns/components/form/index.js +3 -3
- package/src/patterns/components/hero/hero.stories.jsx +4 -2
- package/src/patterns/components/hero/hero.wingsuit.yml +4 -4
- package/src/patterns/components/hero/index.js +2 -2
- package/src/patterns/components/herocard/herocard.stories.jsx +4 -2
- package/src/patterns/components/herocard/herocard.wingsuit.yml +5 -5
- package/src/patterns/components/herocard/index.js +2 -2
- package/src/patterns/components/icon/index.js +2 -2
- package/src/patterns/components/image/image.stories.jsx +4 -2
- package/src/patterns/components/image/image.wingsuit.yml +9 -9
- package/src/patterns/components/image/index.js +2 -2
- package/src/patterns/components/link/index.js +2 -2
- package/src/patterns/components/link/link.stories.jsx +4 -2
- package/src/patterns/components/link/link.wingsuit.yml +3 -3
- package/src/patterns/components/linklist/index.js +2 -2
- package/src/patterns/components/linklist/linklist.stories.jsx +4 -2
- package/src/patterns/components/linklist/linklist.wingsuit.yml +15 -15
- package/src/patterns/components/list/index.js +2 -2
- package/src/patterns/components/list/list-item.wingsuit.yml +1 -1
- package/src/patterns/components/list/list.stories.jsx +4 -2
- package/src/patterns/components/list/list.wingsuit.yml +4 -4
- package/src/patterns/components/loading/index.js +3 -3
- package/src/patterns/components/loading/loading.behavior.js +2 -2
- package/src/patterns/components/loading/loading.js +2 -2
- package/src/patterns/components/loading/loading.stories.jsx +4 -2
- package/src/patterns/components/loading/loading.wingsuit.yml +5 -5
- package/src/patterns/components/localnav/index.js +3 -3
- package/src/patterns/components/localnav/localnav.stories.jsx +4 -2
- package/src/patterns/components/localnav/localnav.twig +3 -1
- package/src/patterns/components/localnav/localnav.wingsuit.yml +17 -19
- package/src/patterns/components/modal/index.js +3 -3
- package/src/patterns/components/modal/modal.behavior.js +2 -2
- package/src/patterns/components/modal/modal.js +9 -7
- package/src/patterns/components/modal/modal.stories.jsx +5 -2
- package/src/patterns/components/modal/modal.wingsuit.yml +20 -20
- package/src/patterns/components/navigation/index.js +3 -3
- package/src/patterns/components/navigation/navigation.behavior.js +2 -2
- package/src/patterns/components/navigation/navigation.js +110 -37
- package/src/patterns/components/navigation/navigation.stories.jsx +5 -2
- package/src/patterns/components/navigation/navigation.wingsuit.yml +7 -7
- package/src/patterns/components/notification/index.js +3 -3
- package/src/patterns/components/notification/notification.behavior.js +3 -3
- package/src/patterns/components/notification/notification.js +4 -2
- package/src/patterns/components/notification/notification.stories.jsx +5 -2
- package/src/patterns/components/notification/notification.wingsuit.yml +7 -7
- package/src/patterns/components/pagination/Pagination.stories.jsx +4 -2
- package/src/patterns/components/pagination/index.js +2 -2
- package/src/patterns/components/pagination/pagination.wingsuit.yml +12 -12
- package/src/patterns/components/polyfill/index.js +2 -2
- package/src/patterns/components/profile/index.js +2 -2
- package/src/patterns/components/profile/profile.stories.jsx +5 -2
- package/src/patterns/components/profile/profile.wingsuit.yml +3 -3
- package/src/patterns/components/readmore/index.js +3 -3
- package/src/patterns/components/readmore/readmore.behavior.js +2 -2
- package/src/patterns/components/readmore/readmore.js +4 -2
- package/src/patterns/components/readmore/readmore.stories.jsx +5 -2
- package/src/patterns/components/readmore/readmore.wingsuit.yml +4 -4
- package/src/patterns/components/richtext/index.js +2 -2
- package/src/patterns/components/richtext/richtext.stories.jsx +5 -2
- package/src/patterns/components/richtext/richtext.wingsuit.yml +1 -1
- package/src/patterns/components/searchfield/index.js +2 -2
- package/src/patterns/components/searchfield/searchfield.stories.jsx +5 -2
- package/src/patterns/components/searchfield/searchfield.wingsuit.yml +1 -1
- package/src/patterns/components/table/index.js +3 -3
- package/src/patterns/components/table/table.behavior.js +2 -2
- package/src/patterns/components/table/table.js +66 -44
- package/src/patterns/components/table/table.stories.jsx +5 -2
- package/src/patterns/components/table/table.wingsuit.yml +11 -21
- package/src/patterns/components/tableofcontents/index.js +3 -3
- package/src/patterns/components/tableofcontents/tableofcontents.behavior.js +2 -2
- package/src/patterns/components/tableofcontents/tableofcontents.js +27 -19
- package/src/patterns/components/tableofcontents/tableofcontents.stories.jsx +5 -2
- package/src/patterns/components/tableofcontents/tableofcontents.wingsuit.yml +14 -14
- package/src/patterns/components/tabs/index.js +3 -3
- package/src/patterns/components/tabs/tabs.behavior.js +4 -4
- package/src/patterns/components/tabs/tabs.js +12 -8
- package/src/patterns/components/tabs/tabs.stories.jsx +5 -2
- package/src/patterns/components/tabs/tabs.wingsuit.yml +120 -120
- package/src/patterns/components/tags/index.js +3 -3
- package/src/patterns/components/tags/tag.behavior.js +2 -2
- package/src/patterns/components/tags/tag.js +12 -12
- package/src/patterns/components/tags/tag.stories.jsx +5 -2
- package/src/patterns/components/tags/tag.wingsuit.yml +3 -3
- package/src/patterns/components/tags/tags.wingsuit.yml +1 -1
- package/src/patterns/components/tooltip/index.js +3 -3
- package/src/patterns/components/tooltip/tooltip.behavior.js +2 -2
- package/src/patterns/components/tooltip/tooltip.js +35 -25
- package/src/patterns/components/tooltip/tooltip.stories.jsx +5 -2
- package/src/patterns/components/tooltip/tooltip.wingsuit.yml +4 -4
- package/src/patterns/components/video/index.js +3 -3
- package/src/patterns/components/video/video.behavior.js +2 -2
- package/src/patterns/components/video/video.js +6 -5
- package/src/patterns/components/video/video.stories.jsx +5 -2
- package/src/patterns/components/video/video.wingsuit.yml +11 -11
- package/src/vendorjs/lib.vendor.js +1 -1
- package/wingsuit.config.js +14 -13
- package/.editorconfig +0 -12
- package/.eslintignore +0 -11
- package/.prettierignore +0 -16
- package/.prettierrc.js +0 -13
package/.eslintrc.js
CHANGED
|
@@ -4,63 +4,51 @@
|
|
|
4
4
|
* Rule reference: http://eslint.org/docs/rules
|
|
5
5
|
* Individual rule reference: http://eslint.org/docs/rules/NAME-OF-RULE
|
|
6
6
|
*/
|
|
7
|
-
const wingsuitCore = require(
|
|
8
|
-
const wingsuitConfig = require(
|
|
7
|
+
// const wingsuitCore = require("@wingsuit-designsystem/core");
|
|
8
|
+
// const wingsuitConfig = require("./wingsuit.config.js");
|
|
9
9
|
|
|
10
|
-
const appConfig = wingsuitCore.resolveConfig(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
);
|
|
17
|
-
const { namespaces } = appConfig;
|
|
18
|
-
const aliasMap = [];
|
|
19
|
-
Object.keys(namespaces).forEach(
|
|
20
|
-
|
|
21
|
-
});
|
|
10
|
+
// const appConfig = wingsuitCore.resolveConfig(
|
|
11
|
+
// "storybook",
|
|
12
|
+
// "development",
|
|
13
|
+
// {},
|
|
14
|
+
// wingsuitConfig,
|
|
15
|
+
// __dirname
|
|
16
|
+
// );
|
|
17
|
+
// const { namespaces } = appConfig;
|
|
18
|
+
// const aliasMap = [];
|
|
19
|
+
// Object.keys(namespaces).forEach(key => {
|
|
20
|
+
// aliasMap.push([key, namespaces[key]]);
|
|
21
|
+
// });
|
|
22
22
|
|
|
23
23
|
module.exports = {
|
|
24
|
-
extends: [
|
|
25
|
-
'airbnb-base',
|
|
26
|
-
'plugin:jest/recommended',
|
|
27
|
-
'plugin:vue/recommended',
|
|
28
|
-
'plugin:prettier/recommended',
|
|
29
|
-
'prettier/vue',
|
|
30
|
-
'plugin:react/recommended',
|
|
31
|
-
],
|
|
32
|
-
plugins: ['prettier'],
|
|
33
24
|
root: true,
|
|
25
|
+
extends: ["@ilo-org/eslint-config"],
|
|
34
26
|
globals: {
|
|
35
27
|
Drupal: true,
|
|
36
28
|
jQuery: true,
|
|
37
29
|
_: true,
|
|
38
30
|
BUILD_TARGET: true,
|
|
39
31
|
},
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
map: aliasMap,
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
},
|
|
32
|
+
// settings: {
|
|
33
|
+
// "import/resolver": {
|
|
34
|
+
// alias: {
|
|
35
|
+
// map: aliasMap,
|
|
36
|
+
// },
|
|
37
|
+
// },
|
|
38
|
+
// },
|
|
39
|
+
ignorePatterns: [
|
|
40
|
+
"dist/",
|
|
41
|
+
"pattern-lab/",
|
|
42
|
+
"vendor/",
|
|
43
|
+
"tools/test/vrt/backstop_data",
|
|
44
|
+
"preview.js-generated-config-entry.js",
|
|
45
|
+
"storybook-init-framework-entry.js",
|
|
46
|
+
"tools/new-component/templates",
|
|
47
|
+
"storybook-static/",
|
|
48
|
+
"node_modules/",
|
|
49
|
+
"lib/",
|
|
50
|
+
"src/stories/",
|
|
51
|
+
"src/__tests__",
|
|
52
|
+
"src/components/**/*.args.ts",
|
|
53
|
+
],
|
|
66
54
|
};
|
package/.stylelintrc
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
> @ilo-org/twig@0.2.
|
|
2
|
+
> @ilo-org/twig@0.2.13 build:lib /home/runner/work/designsystem/designsystem/packages/twig
|
|
3
3
|
> pnpm output
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @ilo-org/twig@0.2.
|
|
6
|
+
> @ilo-org/twig@0.2.13 output /home/runner/work/designsystem/designsystem/packages/twig
|
|
7
7
|
> node outputtwigs.js
|
|
8
8
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @ilo-org/twig
|
|
2
2
|
|
|
3
|
+
## 0.2.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 7a09aa23c: Fix minor linting errors throughout
|
|
8
|
+
- 7a09aa23c: Update twig storybook deps
|
|
9
|
+
- Updated dependencies [2f60e9d92]
|
|
10
|
+
- Updated dependencies [c9413b943]
|
|
11
|
+
- @ilo-org/styles@0.1.18
|
|
12
|
+
- @ilo-org/brand-assets@0.1.0
|
|
13
|
+
- @ilo-org/utils@0.0.11
|
|
14
|
+
|
|
3
15
|
## 0.2.12
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/apps/storybook/assets.js
CHANGED
package/apps/storybook/main.js
CHANGED
|
@@ -1,16 +1,25 @@
|
|
|
1
|
-
const wingsuitCore = require(
|
|
1
|
+
const wingsuitCore = require("@wingsuit-designsystem/core");
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
4
|
addons: [
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
"@storybook/addon-docs",
|
|
6
|
+
"@storybook/addon-viewport",
|
|
7
|
+
"@storybook/addon-controls",
|
|
8
|
+
"@storybook/addon-links",
|
|
9
|
+
"@storybook/addon-backgrounds",
|
|
10
|
+
"@storybook/addon-postcss",
|
|
11
|
+
],
|
|
12
|
+
staticDirs: [
|
|
13
|
+
{
|
|
14
|
+
from: "../../node_modules/@ilo-org/brand-assets/dist/assets/",
|
|
15
|
+
to: "/brand-assets",
|
|
16
|
+
},
|
|
11
17
|
],
|
|
12
18
|
webpackFinal: (config) => {
|
|
13
|
-
const final = wingsuitCore.getAppPack(
|
|
19
|
+
const final = wingsuitCore.getAppPack(
|
|
20
|
+
wingsuitCore.resolveConfig("storybook"),
|
|
21
|
+
[config]
|
|
22
|
+
);
|
|
14
23
|
return final;
|
|
15
24
|
},
|
|
16
25
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
<!-- .storybook/manager-head.html -->
|
|
2
|
-
<link rel="icon" type="image/x-icon" href="images/favicon.ico"/>
|
|
2
|
+
<link rel="icon" type="image/x-icon" href="images/favicon.ico" />
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import {
|
|
2
|
+
Meta,
|
|
3
|
+
ColorPalette,
|
|
4
|
+
ColorItem,
|
|
5
|
+
Subtitle,
|
|
6
|
+
} from "@storybook/addon-docs/blocks";
|
|
7
|
+
const colors = require("../../../src/tokens/exports/_colors.scss");
|
|
3
8
|
|
|
4
9
|
<Meta
|
|
5
10
|
title="Tokens/Colors"
|
|
6
|
-
parameters={{ viewMode:
|
|
11
|
+
parameters={{ viewMode: "docs", previewTabs: { canvas: { hidden: true } } }}
|
|
7
12
|
/>
|
|
8
13
|
|
|
9
14
|
# Colors
|
|
@@ -11,7 +16,7 @@ const colors = require('../../../src/tokens/exports/_colors.scss');
|
|
|
11
16
|
<Subtitle>ILO Brand Colors</Subtitle>
|
|
12
17
|
<ColorPalette>
|
|
13
18
|
{Object.keys(colors).map((key) => {
|
|
14
|
-
const color = typeof colors[key] ===
|
|
19
|
+
const color = typeof colors[key] === "string" ? [colors[key]] : colors[key];
|
|
15
20
|
const title = `.${key}`;
|
|
16
21
|
return <ColorItem key={key} title={title} colors={color} />;
|
|
17
22
|
})}
|
|
@@ -1,27 +1,32 @@
|
|
|
1
|
-
import { Meta, Canvas } from
|
|
2
|
-
import { Badge } from
|
|
3
|
-
import { getStorybook, storiesOf } from
|
|
4
|
-
import LinkTo from
|
|
1
|
+
import { Meta, Canvas } from "@storybook/addon-docs/blocks";
|
|
2
|
+
import { Badge } from "@storybook/components";
|
|
3
|
+
import { getStorybook, storiesOf } from "@storybook/react";
|
|
4
|
+
import LinkTo from "@storybook/addon-links/react";
|
|
5
5
|
|
|
6
6
|
<Meta
|
|
7
7
|
title="Introduction"
|
|
8
|
-
parameters={{ viewMode:
|
|
8
|
+
parameters={{ viewMode: "docs", previewTabs: { canvas: { hidden: true } } }}
|
|
9
9
|
/>
|
|
10
10
|
|
|
11
|
-
<div style={{ paddingTop:
|
|
11
|
+
<div style={{ paddingTop: "40px", color: "inherit" }}>
|
|
12
12
|
<h2
|
|
13
13
|
style={{
|
|
14
|
-
fontFamily:
|
|
15
|
-
fontSize:
|
|
16
|
-
fontWeight:
|
|
17
|
-
marginBottom:
|
|
18
|
-
border:
|
|
14
|
+
fontFamily: "Overpass",
|
|
15
|
+
fontSize: "56.95px",
|
|
16
|
+
fontWeight: "700",
|
|
17
|
+
marginBottom: "40px",
|
|
18
|
+
border: "none",
|
|
19
19
|
}}
|
|
20
20
|
>
|
|
21
21
|
ILO Design System
|
|
22
22
|
</h2>
|
|
23
23
|
<h3
|
|
24
|
-
style={{
|
|
24
|
+
style={{
|
|
25
|
+
fontFamily: "Overpass",
|
|
26
|
+
fontSize: "45.56px",
|
|
27
|
+
fontWeight: "700",
|
|
28
|
+
marginBottom: "40px",
|
|
29
|
+
}}
|
|
25
30
|
>
|
|
26
31
|
Getting Started
|
|
27
32
|
</h3>
|
|
@@ -37,11 +42,11 @@ This package provides the implementation of the Design System using [Twig](https
|
|
|
37
42
|
|
|
38
43
|
<h4
|
|
39
44
|
style={{
|
|
40
|
-
fontFamily:
|
|
41
|
-
fontSize:
|
|
42
|
-
fontWeight:
|
|
43
|
-
marginBottom:
|
|
44
|
-
marginTop:
|
|
45
|
+
fontFamily: "Overpass",
|
|
46
|
+
fontSize: "29px",
|
|
47
|
+
fontWeight: "700",
|
|
48
|
+
marginBottom: "40px",
|
|
49
|
+
marginTop: "40px",
|
|
45
50
|
}}
|
|
46
51
|
>
|
|
47
52
|
Installation and PNPM Commands
|
|
@@ -91,11 +96,11 @@ pnpm import:svgs
|
|
|
91
96
|
|
|
92
97
|
<h4
|
|
93
98
|
style={{
|
|
94
|
-
fontFamily:
|
|
95
|
-
fontSize:
|
|
96
|
-
fontWeight:
|
|
97
|
-
marginBottom:
|
|
98
|
-
marginTop:
|
|
99
|
+
fontFamily: "Overpass",
|
|
100
|
+
fontSize: "29px",
|
|
101
|
+
fontWeight: "700",
|
|
102
|
+
marginBottom: "40px",
|
|
103
|
+
marginTop: "40px",
|
|
99
104
|
}}
|
|
100
105
|
>
|
|
101
106
|
Architecture
|
|
@@ -121,11 +126,11 @@ Wingsuit consumes the `component.wingsuit.yml` file, which is a [UI Pattern YAML
|
|
|
121
126
|
|
|
122
127
|
<h4
|
|
123
128
|
style={{
|
|
124
|
-
fontFamily:
|
|
125
|
-
fontSize:
|
|
126
|
-
fontWeight:
|
|
127
|
-
marginBottom:
|
|
128
|
-
marginTop:
|
|
129
|
+
fontFamily: "Overpass",
|
|
130
|
+
fontSize: "29px",
|
|
131
|
+
fontWeight: "700",
|
|
132
|
+
marginBottom: "40px",
|
|
133
|
+
marginTop: "40px",
|
|
129
134
|
}}
|
|
130
135
|
>
|
|
131
136
|
Javascript
|
|
@@ -147,11 +152,11 @@ Javascript will look in the `ComponentMap` Class for a JS Class called `Componen
|
|
|
147
152
|
|
|
148
153
|
<h4
|
|
149
154
|
style={{
|
|
150
|
-
fontFamily:
|
|
151
|
-
fontSize:
|
|
152
|
-
fontWeight:
|
|
153
|
-
marginBottom:
|
|
154
|
-
marginTop:
|
|
155
|
+
fontFamily: "Overpass",
|
|
156
|
+
fontSize: "29px",
|
|
157
|
+
fontWeight: "700",
|
|
158
|
+
marginBottom: "40px",
|
|
159
|
+
marginTop: "40px",
|
|
155
160
|
}}
|
|
156
161
|
>
|
|
157
162
|
Questions and Feedback
|
|
@@ -161,11 +166,11 @@ Javascript will look in the `ComponentMap` Class for a JS Class called `Componen
|
|
|
161
166
|
|
|
162
167
|
<h4
|
|
163
168
|
style={{
|
|
164
|
-
fontFamily:
|
|
165
|
-
fontSize:
|
|
166
|
-
fontWeight:
|
|
167
|
-
marginBottom:
|
|
168
|
-
marginTop:
|
|
169
|
+
fontFamily: "Overpass",
|
|
170
|
+
fontSize: "29px",
|
|
171
|
+
fontWeight: "700",
|
|
172
|
+
marginBottom: "40px",
|
|
173
|
+
marginTop: "40px",
|
|
169
174
|
}}
|
|
170
175
|
>
|
|
171
176
|
Accessibility Standards
|
|
@@ -175,11 +180,11 @@ Javascript will look in the `ComponentMap` Class for a JS Class called `Componen
|
|
|
175
180
|
|
|
176
181
|
<h4
|
|
177
182
|
style={{
|
|
178
|
-
fontFamily:
|
|
179
|
-
fontSize:
|
|
180
|
-
fontWeight:
|
|
181
|
-
marginBottom:
|
|
182
|
-
marginTop:
|
|
183
|
+
fontFamily: "Overpass",
|
|
184
|
+
fontSize: "29px",
|
|
185
|
+
fontWeight: "700",
|
|
186
|
+
marginBottom: "40px",
|
|
187
|
+
marginTop: "40px",
|
|
183
188
|
}}
|
|
184
189
|
>
|
|
185
190
|
Contributing
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Meta, Subtitle } from
|
|
2
|
-
import { Typeset } from
|
|
3
|
-
const fontFamilies = require(
|
|
4
|
-
const fontHeadingSizes = require(
|
|
1
|
+
import { Meta, Subtitle } from "@storybook/addon-docs/blocks";
|
|
2
|
+
import { Typeset } from "@wingsuit-designsystem/storybook";
|
|
3
|
+
const fontFamilies = require("../../../src/tokens/exports/_font-families.scss");
|
|
4
|
+
const fontHeadingSizes = require("../../../src/tokens/exports/_font-sizes-heading.scss");
|
|
5
5
|
|
|
6
6
|
<Meta
|
|
7
7
|
title="Tokens/Typography"
|
|
8
|
-
parameters={{ viewMode:
|
|
8
|
+
parameters={{ viewMode: "docs", previewTabs: { canvas: { hidden: true } } }}
|
|
9
9
|
/>
|
|
10
10
|
|
|
11
11
|
# Typography
|
|
@@ -21,7 +21,11 @@ const fontHeadingSizes = require('../../../src/tokens/exports/_font-sizes-headin
|
|
|
21
21
|
<Subtitle>
|
|
22
22
|
<b>{key} Font Family:</b> {fontFamilies[key]}
|
|
23
23
|
</Subtitle>
|
|
24
|
-
<Typeset
|
|
24
|
+
<Typeset
|
|
25
|
+
fontFamily={fontFamilies[key]}
|
|
26
|
+
classNamePrefix="."
|
|
27
|
+
fontSizes={fontHeadingSizes}
|
|
28
|
+
/>
|
|
25
29
|
</div>
|
|
26
30
|
);
|
|
27
31
|
})}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Meta, Canvas } from
|
|
2
|
-
import { Badge } from
|
|
3
|
-
import { getStorybook, storiesOf } from
|
|
4
|
-
import LinkTo from
|
|
1
|
+
import { Meta, Canvas } from "@storybook/addon-docs/blocks";
|
|
2
|
+
import { Badge } from "@storybook/components";
|
|
3
|
+
import { getStorybook, storiesOf } from "@storybook/react";
|
|
4
|
+
import LinkTo from "@storybook/addon-links/react";
|
|
5
5
|
|
|
6
6
|
<Meta
|
|
7
7
|
title="Welcome"
|
|
8
|
-
parameters={{ viewMode:
|
|
8
|
+
parameters={{ viewMode: "docs", previewTabs: { canvas: { hidden: true } } }}
|
|
9
9
|
/>
|
|
10
10
|
|
|
11
11
|
### Current Project Status: _Proof of Concept_
|
|
@@ -13,20 +13,25 @@ import LinkTo from '@storybook/addon-links/react';
|
|
|
13
13
|
Browse example stories now by navigating to them in the sidebar.
|
|
14
14
|
View their code in the `src/stories` directory to learn how they work.
|
|
15
15
|
|
|
16
|
-
<div style={{ paddingTop:
|
|
16
|
+
<div style={{ paddingTop: "40px", color: "inherit" }}>
|
|
17
17
|
<h2
|
|
18
18
|
style={{
|
|
19
|
-
fontFamily:
|
|
20
|
-
fontSize:
|
|
21
|
-
fontWeight:
|
|
22
|
-
marginBottom:
|
|
23
|
-
border:
|
|
19
|
+
fontFamily: "Overpass",
|
|
20
|
+
fontSize: "56.95px",
|
|
21
|
+
fontWeight: "700",
|
|
22
|
+
marginBottom: "40px",
|
|
23
|
+
border: "none",
|
|
24
24
|
}}
|
|
25
25
|
>
|
|
26
26
|
ILO Design System
|
|
27
27
|
</h2>
|
|
28
28
|
<h3
|
|
29
|
-
style={{
|
|
29
|
+
style={{
|
|
30
|
+
fontFamily: "Overpass",
|
|
31
|
+
fontSize: "45.56px",
|
|
32
|
+
fontWeight: "700",
|
|
33
|
+
marginBottom: "40px",
|
|
34
|
+
}}
|
|
30
35
|
>
|
|
31
36
|
Twig Component Library 0.2.3
|
|
32
37
|
</h3>
|
|
@@ -35,7 +40,7 @@ View their code in the `src/stories` directory to learn how they work.
|
|
|
35
40
|
href="/docs/introduction--page"
|
|
36
41
|
target="true"
|
|
37
42
|
rel="noopener noreferrer"
|
|
38
|
-
style={{ color:
|
|
43
|
+
style={{ color: "inherit", marginRight: "20px" }}
|
|
39
44
|
>
|
|
40
45
|
<span class="link__label">Get started</span>
|
|
41
46
|
</a>
|
|
@@ -44,7 +49,7 @@ View their code in the `src/stories` directory to learn how they work.
|
|
|
44
49
|
href="https://github.com/international-labour-organization/designsystem"
|
|
45
50
|
target="true"
|
|
46
51
|
rel="noopener noreferrer"
|
|
47
|
-
style={{ color:
|
|
52
|
+
style={{ color: "inherit", marginRight: "20px" }}
|
|
48
53
|
>
|
|
49
54
|
<span class="link__label">Follow on Github</span>
|
|
50
55
|
</a>
|
|
@@ -53,7 +58,7 @@ View their code in the `src/stories` directory to learn how they work.
|
|
|
53
58
|
href="https://brand.ilo.org"
|
|
54
59
|
target="true"
|
|
55
60
|
rel="noopener noreferrer"
|
|
56
|
-
style={{ color:
|
|
61
|
+
style={{ color: "inherit", marginRight: "20px" }}
|
|
57
62
|
>
|
|
58
63
|
<span class="link__label">See Design Docs</span>
|
|
59
64
|
</a>
|
|
@@ -62,7 +67,7 @@ View their code in the `src/stories` directory to learn how they work.
|
|
|
62
67
|
href="https://ilo-ui-react.netlify.app"
|
|
63
68
|
target="true"
|
|
64
69
|
rel="noopener noreferrer"
|
|
65
|
-
style={{ color:
|
|
70
|
+
style={{ color: "inherit", marginRight: "20px" }}
|
|
66
71
|
>
|
|
67
72
|
<span class="link__label">ILO Design System for React</span>
|
|
68
73
|
</a>
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { configure, initJsBehaviors } from
|
|
2
|
-
import { addParameters } from
|
|
3
|
-
import
|
|
1
|
+
import { configure, initJsBehaviors } from "@wingsuit-designsystem/storybook";
|
|
2
|
+
import { addParameters } from "@storybook/react";
|
|
3
|
+
import "./styles.scss";
|
|
4
4
|
|
|
5
|
-
const namespaces = require(
|
|
5
|
+
const namespaces = require("../../src/namespaces");
|
|
6
6
|
|
|
7
|
-
initJsBehaviors(
|
|
7
|
+
initJsBehaviors("Drupal");
|
|
8
8
|
|
|
9
9
|
addParameters({
|
|
10
|
-
viewMode:
|
|
10
|
+
viewMode: "docs",
|
|
11
11
|
previewTabs: {
|
|
12
|
-
|
|
12
|
+
"storybook/docs/panel": {
|
|
13
13
|
index: 1,
|
|
14
|
-
title:
|
|
14
|
+
title: "Documentation",
|
|
15
15
|
},
|
|
16
|
-
canvas: { title:
|
|
16
|
+
canvas: { title: "Canvas", hidden: false },
|
|
17
17
|
},
|
|
18
18
|
options: {
|
|
19
19
|
storySort: {
|
|
20
|
-
method:
|
|
21
|
-
order: [
|
|
22
|
-
locales:
|
|
20
|
+
method: "alphabetical",
|
|
21
|
+
order: ["Welcome", "Intro", "Tokens", ["Colors", "Typography"]],
|
|
22
|
+
locales: "en-US",
|
|
23
23
|
},
|
|
24
24
|
},
|
|
25
25
|
});
|
|
@@ -27,10 +27,10 @@ addParameters({
|
|
|
27
27
|
configure(
|
|
28
28
|
module,
|
|
29
29
|
[
|
|
30
|
-
require.context(
|
|
31
|
-
require.context(
|
|
30
|
+
require.context("./patterns", true, /\.stories(\.jsx|\.js|\.mdx)$/),
|
|
31
|
+
require.context("wspatterns", true, /\.stories(\.jsx|\.js|\.mdx)$/),
|
|
32
32
|
],
|
|
33
|
-
require.context(
|
|
34
|
-
require.context(
|
|
33
|
+
require.context("./config", false, /\.json|\.ya?ml$/),
|
|
34
|
+
require.context("wspatterns", true, /\.twig$/),
|
|
35
35
|
namespaces
|
|
36
36
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@import
|
|
1
|
+
@import "@ilo-org/styles/scss/monorepo";
|
package/apps/storybook/theme.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// .storybook/YourTheme.js
|
|
2
2
|
|
|
3
|
-
import { create } from
|
|
3
|
+
import { create } from "@storybook/theming";
|
|
4
4
|
|
|
5
5
|
export default create({
|
|
6
|
-
base:
|
|
7
|
-
brandTitle:
|
|
8
|
-
brandUrl:
|
|
6
|
+
base: "light",
|
|
7
|
+
brandTitle: "ILO UI Kit",
|
|
8
|
+
brandUrl: "https://www.ilo.org/",
|
|
9
9
|
brandImage:
|
|
10
|
-
|
|
10
|
+
"https://www.ilo.org/wcmsp5/ilo/global/images/templates/favicons/apple-touch-icon-precomposed.png",
|
|
11
11
|
});
|
package/babel.config.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
presets: [
|
|
3
3
|
[
|
|
4
|
-
|
|
4
|
+
"@babel/preset-env",
|
|
5
5
|
{
|
|
6
|
-
useBuiltIns:
|
|
6
|
+
useBuiltIns: "entry",
|
|
7
7
|
corejs: 3,
|
|
8
8
|
},
|
|
9
9
|
],
|
|
10
10
|
],
|
|
11
11
|
env: {
|
|
12
12
|
test: {
|
|
13
|
-
presets: [[
|
|
13
|
+
presets: [["@babel/preset-env"]],
|
|
14
14
|
},
|
|
15
15
|
},
|
|
16
16
|
};
|
package/importprefix.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const theme = require(
|
|
2
|
-
const fs = require(
|
|
3
|
-
const path =
|
|
1
|
+
const theme = require("@ilo-org/themes/tokens/theme/base.json");
|
|
2
|
+
const fs = require("fs");
|
|
3
|
+
const path = "apps/storybook/config/prefix.yml";
|
|
4
4
|
let buffer = new Buffer.from(`prefix: ${theme.themeprefix.value}`);
|
|
5
5
|
|
|
6
|
-
fs.open(path,
|
|
6
|
+
fs.open(path, "w", function (err, fd) {
|
|
7
7
|
if (err) {
|
|
8
8
|
console.log("Can't open file");
|
|
9
9
|
} else {
|
|
@@ -11,7 +11,7 @@ fs.open(path, 'w', function (err, fd) {
|
|
|
11
11
|
if (err) {
|
|
12
12
|
console.log("Can't write to file");
|
|
13
13
|
} else {
|
|
14
|
-
console.log(
|
|
14
|
+
console.log("theme prefix added");
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
17
|
}
|
package/importsvgs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const fs = require(
|
|
2
|
-
const source =
|
|
3
|
-
const destination =
|
|
1
|
+
const fs = require("fs-extra");
|
|
2
|
+
const source = "node_modules/@ilo-org/icons/svg";
|
|
3
|
+
const destination = "images";
|
|
4
4
|
|
|
5
5
|
fs.copy(source, destination);
|