@ilo-org/twig 0.2.12 → 0.2.14
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 +4 -3
- package/CHANGELOG.md +19 -0
- package/apps/storybook/assets.js +5 -0
- package/apps/storybook/config/prefix.yml +1 -0
- package/apps/storybook/main.js +18 -8
- package/apps/storybook/manager-head.html +63 -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 -37
- package/apps/storybook/preview-body.html +1 -1
- package/apps/storybook/preview.js +16 -16
- package/apps/storybook/styles.scss +25 -1
- package/apps/storybook/theme.js +41 -6
- package/babel.config.js +3 -3
- package/images/hero.jpg +0 -0
- package/images/ilo-dg.jpg +0 -0
- package/images/ilo-headquarters.jpg +0 -0
- package/images/large.jpg +0 -0
- package/images/media-file-poster.jpg +0 -0
- package/images/medium.jpg +0 -0
- package/images/small.jpg +0 -0
- package/images/video-example.mp4 +0 -0
- package/images/youtube-video-poster.avif +0 -0
- package/importprefix.js +5 -5
- package/importsvgs.js +3 -3
- package/jest.config.js +8 -8
- package/outputtwigs.js +16 -13
- package/package.json +47 -56
- 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 +73 -65
- 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 +61 -61
- 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 +8 -8
- 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 +21 -21
- 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 +7 -7
- 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 +2 -2
- 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 +121 -121
- 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 +12 -12
- 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,9 @@
|
|
|
1
1
|
|
|
2
|
-
> @ilo-org/twig@0.2.
|
|
3
|
-
> pnpm output
|
|
2
|
+
> @ilo-org/twig@0.2.14 build:lib /home/runner/work/designsystem/designsystem/packages/twig
|
|
3
|
+
> node importprefix.js; node importsvgs.js; pnpm output
|
|
4
4
|
|
|
5
|
+
theme prefix added
|
|
5
6
|
|
|
6
|
-
> @ilo-org/twig@0.2.
|
|
7
|
+
> @ilo-org/twig@0.2.14 output /home/runner/work/designsystem/designsystem/packages/twig
|
|
7
8
|
> node outputtwigs.js
|
|
8
9
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @ilo-org/twig
|
|
2
2
|
|
|
3
|
+
## 0.2.14
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [1405b9cbf]
|
|
8
|
+
- @ilo-org/styles@0.1.19
|
|
9
|
+
|
|
10
|
+
## 0.2.13
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 7a09aa23c: Fix minor linting errors throughout
|
|
15
|
+
- 7a09aa23c: Update twig storybook deps
|
|
16
|
+
- Updated dependencies [2f60e9d92]
|
|
17
|
+
- Updated dependencies [c9413b943]
|
|
18
|
+
- @ilo-org/styles@0.1.18
|
|
19
|
+
- @ilo-org/brand-assets@0.1.0
|
|
20
|
+
- @ilo-org/utils@0.0.11
|
|
21
|
+
|
|
3
22
|
## 0.2.12
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
package/apps/storybook/assets.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
prefix: ilo
|
package/apps/storybook/main.js
CHANGED
|
@@ -1,16 +1,26 @@
|
|
|
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
|
+
},
|
|
17
|
+
{ from: "../../node_modules/@ilo-org/fonts/font-css", to: "/fonts" },
|
|
11
18
|
],
|
|
12
19
|
webpackFinal: (config) => {
|
|
13
|
-
const final = wingsuitCore.getAppPack(
|
|
20
|
+
const final = wingsuitCore.getAppPack(
|
|
21
|
+
wingsuitCore.resolveConfig("storybook"),
|
|
22
|
+
[config]
|
|
23
|
+
);
|
|
14
24
|
return final;
|
|
15
25
|
},
|
|
16
26
|
};
|
|
@@ -1,2 +1,64 @@
|
|
|
1
1
|
<!-- .storybook/manager-head.html -->
|
|
2
|
-
<
|
|
2
|
+
<style>
|
|
3
|
+
@import url("/fonts/fonts-google.css");
|
|
4
|
+
@import url("https://fonts.googleapis.com/css2?family=Fira+Code&display=swap");
|
|
5
|
+
</style>
|
|
6
|
+
|
|
7
|
+
<link
|
|
8
|
+
rel="icon"
|
|
9
|
+
type="image/x-icon"
|
|
10
|
+
href="https://www.ilo.org/wcmsp5/ilo/global/images/templates/favicons/favicon.ico"
|
|
11
|
+
/>
|
|
12
|
+
|
|
13
|
+
<style>
|
|
14
|
+
:root {
|
|
15
|
+
--ilo-white: #fff;
|
|
16
|
+
--ilo-dark-blue: #230050;
|
|
17
|
+
--ilo-light-blue: #ffcd2d;
|
|
18
|
+
--ilo-turquoise: #05d2d2;
|
|
19
|
+
--ilo-purple: #960a55;
|
|
20
|
+
--ilo-light-blue: rgba(235, 245, 253, 1);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
body {
|
|
24
|
+
font-family: "Noto Sans", sans-serif;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
a[id*="overview"] > svg {
|
|
28
|
+
color: var(--ilo-purple);
|
|
29
|
+
font-family: "Overpass", sans-serif;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
a:not[id*="overview"] > svg {
|
|
33
|
+
color: var(--ilo-turquoise);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* Remount component */
|
|
37
|
+
button[title="Remount component"]:hover,
|
|
38
|
+
button[title="Zoom in"]:hover,
|
|
39
|
+
button[title="Zoom out"]:hover,
|
|
40
|
+
button[title="Reset zoom"]:hover,
|
|
41
|
+
button[title="Change the background of the preview"]:hover,
|
|
42
|
+
button[title="Apply a grid to the preview"]:hover,
|
|
43
|
+
button[title="Change the size of the preview"]:hover,
|
|
44
|
+
button[title="Enable measure"]:hover,
|
|
45
|
+
button[title="Apply outlines to the preview"]:hover,
|
|
46
|
+
button[title="Vision simulator"]:hover,
|
|
47
|
+
button[title="Go full screen [F]"]:hover,
|
|
48
|
+
a[title="Open canvas in new tab"]:hover,
|
|
49
|
+
button[title="Copy canvas link"]:hover {
|
|
50
|
+
color: var(--ilo-dark-blue);
|
|
51
|
+
background-color: var(--ilo-light-blue);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
button.sto-1qova3h,
|
|
55
|
+
button.sto-4f61h0,
|
|
56
|
+
button[title="Rotate viewport"]:hover {
|
|
57
|
+
color: var(--ilo-light-blue);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
button.tabbutton:active,
|
|
61
|
+
button.tabbutton:focus {
|
|
62
|
+
border-bottom-color: var(--ilo-light-blue);
|
|
63
|
+
}
|
|
64
|
+
</style>
|
|
@@ -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,68 +1,52 @@
|
|
|
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
|
+
# ILO Design System
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
View their code in the `src/stories` directory to learn how they work.
|
|
13
|
+
## Twig Component Library
|
|
15
14
|
|
|
16
|
-
<div
|
|
17
|
-
<h2
|
|
18
|
-
style={{
|
|
19
|
-
fontFamily: 'Overpass',
|
|
20
|
-
fontSize: '56.95px',
|
|
21
|
-
fontWeight: '700',
|
|
22
|
-
marginBottom: '40px',
|
|
23
|
-
border: 'none',
|
|
24
|
-
}}
|
|
25
|
-
>
|
|
26
|
-
ILO Design System
|
|
27
|
-
</h2>
|
|
28
|
-
<h3
|
|
29
|
-
style={{ fontFamily: 'Overpass', fontSize: '45.56px', fontWeight: '700', marginBottom: '40px' }}
|
|
30
|
-
>
|
|
31
|
-
Twig Component Library 0.2.3
|
|
32
|
-
</h3>
|
|
15
|
+
<div>
|
|
33
16
|
<a
|
|
34
17
|
class="ilo--button ilo--button--large ilo--button--primary optionalclass"
|
|
35
18
|
href="/docs/introduction--page"
|
|
36
19
|
target="true"
|
|
37
20
|
rel="noopener noreferrer"
|
|
38
|
-
style={{
|
|
21
|
+
style={{ margin: "1rem 20px 0 0" }}
|
|
39
22
|
>
|
|
40
23
|
<span class="link__label">Get started</span>
|
|
41
24
|
</a>
|
|
42
25
|
<a
|
|
43
|
-
class="ilo--button ilo--button--large ilo--button--
|
|
44
|
-
href="https://
|
|
26
|
+
class="ilo--button ilo--button--large ilo--button--tertiary optionalclass"
|
|
27
|
+
href="https://brand.ilo.org"
|
|
45
28
|
target="true"
|
|
46
29
|
rel="noopener noreferrer"
|
|
47
|
-
|
|
30
|
+
style={{ margin: "1rem 20px 0 0" }}
|
|
48
31
|
>
|
|
49
|
-
<span class="link__label">
|
|
32
|
+
<span class="link__label">Design Docs</span>
|
|
50
33
|
</a>
|
|
51
34
|
<a
|
|
52
|
-
class="ilo--button ilo--button--large ilo--button--
|
|
53
|
-
href="https://
|
|
35
|
+
class="ilo--button ilo--button--large ilo--button--tertiary optionalclass"
|
|
36
|
+
href="https://github.com/international-labour-organization/designsystem"
|
|
54
37
|
target="true"
|
|
55
38
|
rel="noopener noreferrer"
|
|
56
|
-
style={{
|
|
39
|
+
style={{ margin: "1rem 20px 0 0" }}
|
|
57
40
|
>
|
|
58
|
-
<span class="link__label">
|
|
41
|
+
<span class="link__label">Follow on Github</span>
|
|
59
42
|
</a>
|
|
43
|
+
|
|
60
44
|
<a
|
|
61
|
-
class="ilo--button ilo--button--large ilo--button--
|
|
62
|
-
href="https://
|
|
45
|
+
class="ilo--button ilo--button--large ilo--button--tertiary optionalclass"
|
|
46
|
+
href="https://react.ui.ilo.org"
|
|
63
47
|
target="true"
|
|
64
48
|
rel="noopener noreferrer"
|
|
65
|
-
style={{
|
|
49
|
+
style={{ margin: "1rem 0 0" }}
|
|
66
50
|
>
|
|
67
51
|
<span class="link__label">ILO Design System for React</span>
|
|
68
52
|
</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,25 @@
|
|
|
1
|
-
@import
|
|
1
|
+
@import "@ilo-org/themes/build/scss/tokens";
|
|
2
|
+
@import "@ilo-org/styles/scss/monorepo";
|
|
3
|
+
|
|
4
|
+
h1,
|
|
5
|
+
h2,
|
|
6
|
+
h3,
|
|
7
|
+
h4,
|
|
8
|
+
h5 {
|
|
9
|
+
font-family: "Overpass", sans-serif !important;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
button[title="Zoom in"]:hover,
|
|
13
|
+
button[title="Zoom out"]:hover,
|
|
14
|
+
button[title="Reset zoom"]:hover {
|
|
15
|
+
color: $brand-ilo-dark-blue;
|
|
16
|
+
background-color: $brand-ilo-light-blue;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
a[class*="ilo--button"] {
|
|
20
|
+
color: $brand-ilo-dark-blue;
|
|
21
|
+
|
|
22
|
+
&:hover {
|
|
23
|
+
color: $brand-ilo-blue;
|
|
24
|
+
}
|
|
25
|
+
}
|