@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.
Files changed (172) hide show
  1. package/.eslintrc.js +37 -49
  2. package/.stylelintrc +2 -6
  3. package/.turbo/turbo-build:lib.log +4 -3
  4. package/CHANGELOG.md +19 -0
  5. package/apps/storybook/assets.js +5 -0
  6. package/apps/storybook/config/prefix.yml +1 -0
  7. package/apps/storybook/main.js +18 -8
  8. package/apps/storybook/manager-head.html +63 -1
  9. package/apps/storybook/manager.js +2 -2
  10. package/apps/storybook/patterns/colors.stories.mdx +9 -4
  11. package/apps/storybook/patterns/intro.stories.mdx +47 -42
  12. package/apps/storybook/patterns/typeset.stories.mdx +10 -6
  13. package/apps/storybook/patterns/welcome.stories.mdx +21 -37
  14. package/apps/storybook/preview-body.html +1 -1
  15. package/apps/storybook/preview.js +16 -16
  16. package/apps/storybook/styles.scss +25 -1
  17. package/apps/storybook/theme.js +41 -6
  18. package/babel.config.js +3 -3
  19. package/images/hero.jpg +0 -0
  20. package/images/ilo-dg.jpg +0 -0
  21. package/images/ilo-headquarters.jpg +0 -0
  22. package/images/large.jpg +0 -0
  23. package/images/media-file-poster.jpg +0 -0
  24. package/images/medium.jpg +0 -0
  25. package/images/small.jpg +0 -0
  26. package/images/video-example.mp4 +0 -0
  27. package/images/youtube-video-poster.avif +0 -0
  28. package/importprefix.js +5 -5
  29. package/importsvgs.js +3 -3
  30. package/jest.config.js +8 -8
  31. package/outputtwigs.js +16 -13
  32. package/package.json +47 -56
  33. package/postcss.config.js +2 -2
  34. package/src/namespaces.js +5 -5
  35. package/src/patterns/components/accordion/accordion-item.wingsuit.yml +1 -1
  36. package/src/patterns/components/accordion/accordion.behavior.js +2 -2
  37. package/src/patterns/components/accordion/accordion.js +31 -21
  38. package/src/patterns/components/accordion/accordion.stories.jsx +4 -2
  39. package/src/patterns/components/accordion/accordion.wingsuit.yml +4 -3
  40. package/src/patterns/components/accordion/index.js +3 -3
  41. package/src/patterns/components/breadcrumb/breadcrumb.behavior.js +2 -2
  42. package/src/patterns/components/breadcrumb/breadcrumb.js +14 -12
  43. package/src/patterns/components/breadcrumb/breadcrumb.stories.jsx +4 -2
  44. package/src/patterns/components/breadcrumb/breadcrumb.wingsuit.yml +1 -1
  45. package/src/patterns/components/breadcrumb/index.js +3 -3
  46. package/src/patterns/components/button/button.stories.jsx +4 -2
  47. package/src/patterns/components/button/button.wingsuit.yml +12 -12
  48. package/src/patterns/components/button/index.js +2 -2
  49. package/src/patterns/components/callout/callout.behavior.js +2 -2
  50. package/src/patterns/components/callout/callout.js +18 -13
  51. package/src/patterns/components/callout/callout.stories.jsx +4 -2
  52. package/src/patterns/components/callout/callout.wingsuit.yml +2 -2
  53. package/src/patterns/components/callout/index.js +3 -3
  54. package/src/patterns/components/card/card.stories.jsx +4 -2
  55. package/src/patterns/components/card/card.wingsuit.yml +73 -65
  56. package/src/patterns/components/card/index.js +2 -2
  57. package/src/patterns/components/cardgroup/cardgroup.stories.jsx +4 -2
  58. package/src/patterns/components/cardgroup/cardgroup.wingsuit.yml +61 -61
  59. package/src/patterns/components/cardgroup/index.js +2 -2
  60. package/src/patterns/components/contextmenu/contextmenu.stories.jsx +4 -2
  61. package/src/patterns/components/contextmenu/contextmenu.wingsuit.yml +7 -7
  62. package/src/patterns/components/contextmenu/index.js +2 -2
  63. package/src/patterns/components/dropdown/dropdown.stories.jsx +4 -2
  64. package/src/patterns/components/dropdown/dropdown.wingsuit.yml +4 -4
  65. package/src/patterns/components/dropdown/index.js +2 -2
  66. package/src/patterns/components/footer/footer.stories.jsx +4 -2
  67. package/src/patterns/components/footer/footer.wingsuit.yml +1 -1
  68. package/src/patterns/components/footer/index.js +2 -2
  69. package/src/patterns/components/form/fileupload.behavior.js +2 -2
  70. package/src/patterns/components/form/fileupload.js +6 -5
  71. package/src/patterns/components/form/form.stories.jsx +4 -2
  72. package/src/patterns/components/form/form.wingsuit.yml +92 -92
  73. package/src/patterns/components/form/index.js +3 -3
  74. package/src/patterns/components/hero/hero.stories.jsx +4 -2
  75. package/src/patterns/components/hero/hero.wingsuit.yml +8 -8
  76. package/src/patterns/components/hero/index.js +2 -2
  77. package/src/patterns/components/herocard/herocard.stories.jsx +4 -2
  78. package/src/patterns/components/herocard/herocard.wingsuit.yml +5 -5
  79. package/src/patterns/components/herocard/index.js +2 -2
  80. package/src/patterns/components/icon/index.js +2 -2
  81. package/src/patterns/components/image/image.stories.jsx +4 -2
  82. package/src/patterns/components/image/image.wingsuit.yml +9 -9
  83. package/src/patterns/components/image/index.js +2 -2
  84. package/src/patterns/components/link/index.js +2 -2
  85. package/src/patterns/components/link/link.stories.jsx +4 -2
  86. package/src/patterns/components/link/link.wingsuit.yml +3 -3
  87. package/src/patterns/components/linklist/index.js +2 -2
  88. package/src/patterns/components/linklist/linklist.stories.jsx +4 -2
  89. package/src/patterns/components/linklist/linklist.wingsuit.yml +15 -15
  90. package/src/patterns/components/list/index.js +2 -2
  91. package/src/patterns/components/list/list-item.wingsuit.yml +1 -1
  92. package/src/patterns/components/list/list.stories.jsx +4 -2
  93. package/src/patterns/components/list/list.wingsuit.yml +4 -4
  94. package/src/patterns/components/loading/index.js +3 -3
  95. package/src/patterns/components/loading/loading.behavior.js +2 -2
  96. package/src/patterns/components/loading/loading.js +2 -2
  97. package/src/patterns/components/loading/loading.stories.jsx +4 -2
  98. package/src/patterns/components/loading/loading.wingsuit.yml +5 -5
  99. package/src/patterns/components/localnav/index.js +3 -3
  100. package/src/patterns/components/localnav/localnav.stories.jsx +4 -2
  101. package/src/patterns/components/localnav/localnav.twig +3 -1
  102. package/src/patterns/components/localnav/localnav.wingsuit.yml +17 -19
  103. package/src/patterns/components/modal/index.js +3 -3
  104. package/src/patterns/components/modal/modal.behavior.js +2 -2
  105. package/src/patterns/components/modal/modal.js +9 -7
  106. package/src/patterns/components/modal/modal.stories.jsx +5 -2
  107. package/src/patterns/components/modal/modal.wingsuit.yml +20 -20
  108. package/src/patterns/components/navigation/index.js +3 -3
  109. package/src/patterns/components/navigation/navigation.behavior.js +2 -2
  110. package/src/patterns/components/navigation/navigation.js +110 -37
  111. package/src/patterns/components/navigation/navigation.stories.jsx +5 -2
  112. package/src/patterns/components/navigation/navigation.wingsuit.yml +21 -21
  113. package/src/patterns/components/notification/index.js +3 -3
  114. package/src/patterns/components/notification/notification.behavior.js +3 -3
  115. package/src/patterns/components/notification/notification.js +4 -2
  116. package/src/patterns/components/notification/notification.stories.jsx +5 -2
  117. package/src/patterns/components/notification/notification.wingsuit.yml +7 -7
  118. package/src/patterns/components/pagination/Pagination.stories.jsx +4 -2
  119. package/src/patterns/components/pagination/index.js +2 -2
  120. package/src/patterns/components/pagination/pagination.wingsuit.yml +12 -12
  121. package/src/patterns/components/polyfill/index.js +2 -2
  122. package/src/patterns/components/profile/index.js +2 -2
  123. package/src/patterns/components/profile/profile.stories.jsx +5 -2
  124. package/src/patterns/components/profile/profile.wingsuit.yml +7 -7
  125. package/src/patterns/components/readmore/index.js +3 -3
  126. package/src/patterns/components/readmore/readmore.behavior.js +2 -2
  127. package/src/patterns/components/readmore/readmore.js +4 -2
  128. package/src/patterns/components/readmore/readmore.stories.jsx +5 -2
  129. package/src/patterns/components/readmore/readmore.wingsuit.yml +4 -4
  130. package/src/patterns/components/richtext/index.js +2 -2
  131. package/src/patterns/components/richtext/richtext.stories.jsx +5 -2
  132. package/src/patterns/components/richtext/richtext.wingsuit.yml +2 -2
  133. package/src/patterns/components/searchfield/index.js +2 -2
  134. package/src/patterns/components/searchfield/searchfield.stories.jsx +5 -2
  135. package/src/patterns/components/searchfield/searchfield.wingsuit.yml +1 -1
  136. package/src/patterns/components/table/index.js +3 -3
  137. package/src/patterns/components/table/table.behavior.js +2 -2
  138. package/src/patterns/components/table/table.js +66 -44
  139. package/src/patterns/components/table/table.stories.jsx +5 -2
  140. package/src/patterns/components/table/table.wingsuit.yml +11 -21
  141. package/src/patterns/components/tableofcontents/index.js +3 -3
  142. package/src/patterns/components/tableofcontents/tableofcontents.behavior.js +2 -2
  143. package/src/patterns/components/tableofcontents/tableofcontents.js +27 -19
  144. package/src/patterns/components/tableofcontents/tableofcontents.stories.jsx +5 -2
  145. package/src/patterns/components/tableofcontents/tableofcontents.wingsuit.yml +14 -14
  146. package/src/patterns/components/tabs/index.js +3 -3
  147. package/src/patterns/components/tabs/tabs.behavior.js +4 -4
  148. package/src/patterns/components/tabs/tabs.js +12 -8
  149. package/src/patterns/components/tabs/tabs.stories.jsx +5 -2
  150. package/src/patterns/components/tabs/tabs.wingsuit.yml +121 -121
  151. package/src/patterns/components/tags/index.js +3 -3
  152. package/src/patterns/components/tags/tag.behavior.js +2 -2
  153. package/src/patterns/components/tags/tag.js +12 -12
  154. package/src/patterns/components/tags/tag.stories.jsx +5 -2
  155. package/src/patterns/components/tags/tag.wingsuit.yml +3 -3
  156. package/src/patterns/components/tags/tags.wingsuit.yml +1 -1
  157. package/src/patterns/components/tooltip/index.js +3 -3
  158. package/src/patterns/components/tooltip/tooltip.behavior.js +2 -2
  159. package/src/patterns/components/tooltip/tooltip.js +35 -25
  160. package/src/patterns/components/tooltip/tooltip.stories.jsx +5 -2
  161. package/src/patterns/components/tooltip/tooltip.wingsuit.yml +4 -4
  162. package/src/patterns/components/video/index.js +3 -3
  163. package/src/patterns/components/video/video.behavior.js +2 -2
  164. package/src/patterns/components/video/video.js +6 -5
  165. package/src/patterns/components/video/video.stories.jsx +5 -2
  166. package/src/patterns/components/video/video.wingsuit.yml +12 -12
  167. package/src/vendorjs/lib.vendor.js +1 -1
  168. package/wingsuit.config.js +14 -13
  169. package/.editorconfig +0 -12
  170. package/.eslintignore +0 -11
  171. package/.prettierignore +0 -16
  172. 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('@wingsuit-designsystem/core');
8
- const wingsuitConfig = require('./wingsuit.config.js');
7
+ // const wingsuitCore = require("@wingsuit-designsystem/core");
8
+ // const wingsuitConfig = require("./wingsuit.config.js");
9
9
 
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
- });
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
- env: {
41
- browser: true,
42
- node: true,
43
- },
44
- rules: {
45
- 'react/jsx-uses-react': 1,
46
- 'prettier/prettier': [
47
- 'error',
48
- {
49
- endOfLine: 'auto',
50
- },
51
- ],
52
- 'no-console': [0], // turned off for now while we are console.logging everywhere.
53
- 'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
54
- 'import/prefer-default-export': [0],
55
- },
56
- settings: {
57
- react: {
58
- version: 'detect',
59
- },
60
- 'import/resolver': {
61
- alias: {
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,10 +1,6 @@
1
1
  {
2
- "extends": [
3
- "stylelint-config-prettier"
4
- ],
5
- "plugins": [
6
- "stylelint-scss"
7
- ],
2
+ "extends": ["stylelint-config-prettier"],
3
+ "plugins": ["stylelint-scss"],
8
4
  "rules": {
9
5
  "indentation": 2,
10
6
  "declaration-colon-space-after": "always",
@@ -1,8 +1,9 @@
1
1
 
2
- > @ilo-org/twig@0.2.12 build:lib /home/runner/work/designsystem/designsystem/packages/twig
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.12 output /home/runner/work/designsystem/designsystem/packages/twig
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
@@ -1,3 +1,8 @@
1
+ /**
2
+ * What does this even do?
3
+ */
4
+
5
+ // eslint-disable-next-line
1
6
  function requireAll(r) {
2
7
  r.keys().forEach(r);
3
8
  }
@@ -0,0 +1 @@
1
+ prefix: ilo
@@ -1,16 +1,26 @@
1
- const wingsuitCore = require('@wingsuit-designsystem/core');
1
+ const wingsuitCore = require("@wingsuit-designsystem/core");
2
2
 
3
3
  module.exports = {
4
4
  addons: [
5
- '@storybook/addon-docs',
6
- '@storybook/addon-viewport',
7
- '@storybook/addon-controls',
8
- '@storybook/addon-links',
9
- '@storybook/addon-backgrounds',
10
- '@storybook/addon-postcss',
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(wingsuitCore.resolveConfig('storybook'), [config]);
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
- <link rel="icon" type="image/x-icon" href="images/favicon.ico"/>
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,6 +1,6 @@
1
1
  // .storybook/manager.js
2
- import { addons } from '@storybook/addons';
3
- import theme from './theme';
2
+ import { addons } from "@storybook/addons";
3
+ import theme from "./theme";
4
4
 
5
5
  addons.setConfig({
6
6
  theme: theme,
@@ -1,9 +1,14 @@
1
- import { Meta, ColorPalette, ColorItem, Subtitle } from '@storybook/addon-docs/blocks';
2
- const colors = require('../../../src/tokens/exports/_colors.scss');
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: 'docs', previewTabs: { canvas: { hidden: true } } }}
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] === 'string' ? [colors[key]] : 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 '@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';
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: 'docs', previewTabs: { canvas: { hidden: true } } }}
8
+ parameters={{ viewMode: "docs", previewTabs: { canvas: { hidden: true } } }}
9
9
  />
10
10
 
11
- <div style={{ paddingTop: '40px', color: 'inherit' }}>
11
+ <div style={{ paddingTop: "40px", color: "inherit" }}>
12
12
  <h2
13
13
  style={{
14
- fontFamily: 'Overpass',
15
- fontSize: '56.95px',
16
- fontWeight: '700',
17
- marginBottom: '40px',
18
- border: 'none',
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={{ fontFamily: 'Overpass', fontSize: '45.56px', fontWeight: '700', marginBottom: '40px' }}
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: 'Overpass',
41
- fontSize: '29px',
42
- fontWeight: '700',
43
- marginBottom: '40px',
44
- marginTop: '40px',
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: 'Overpass',
95
- fontSize: '29px',
96
- fontWeight: '700',
97
- marginBottom: '40px',
98
- marginTop: '40px',
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: 'Overpass',
125
- fontSize: '29px',
126
- fontWeight: '700',
127
- marginBottom: '40px',
128
- marginTop: '40px',
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: 'Overpass',
151
- fontSize: '29px',
152
- fontWeight: '700',
153
- marginBottom: '40px',
154
- marginTop: '40px',
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: 'Overpass',
165
- fontSize: '29px',
166
- fontWeight: '700',
167
- marginBottom: '40px',
168
- marginTop: '40px',
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: 'Overpass',
179
- fontSize: '29px',
180
- fontWeight: '700',
181
- marginBottom: '40px',
182
- marginTop: '40px',
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 '@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');
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: 'docs', previewTabs: { canvas: { hidden: true } } }}
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 fontFamily={fontFamilies[key]} classNamePrefix="." fontSizes={fontHeadingSizes} />
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 '@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';
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: 'docs', previewTabs: { canvas: { hidden: true } } }}
8
+ parameters={{ viewMode: "docs", previewTabs: { canvas: { hidden: true } } }}
9
9
  />
10
10
 
11
- ### Current Project Status: _Proof of Concept_
11
+ # ILO Design System
12
12
 
13
- Browse example stories now by navigating to them in the sidebar.
14
- View their code in the `src/stories` directory to learn how they work.
13
+ ## Twig Component Library
15
14
 
16
- <div style={{ paddingTop: '40px', color: 'inherit' }}>
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={{ color: 'inherit', marginRight: '20px' }}
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--primary optionalclass"
44
- href="https://github.com/international-labour-organization/designsystem"
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
- style={{ color: 'inherit', marginRight: '20px' }}
30
+ style={{ margin: "1rem 20px 0 0" }}
48
31
  >
49
- <span class="link__label">Follow on Github</span>
32
+ <span class="link__label">Design Docs</span>
50
33
  </a>
51
34
  <a
52
- class="ilo--button ilo--button--large ilo--button--primary optionalclass"
53
- href="https://brand.ilo.org"
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={{ color: 'inherit', marginRight: '20px' }}
39
+ style={{ margin: "1rem 20px 0 0" }}
57
40
  >
58
- <span class="link__label">See Design Docs</span>
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--primary optionalclass"
62
- href="https://ilo-ui-react.netlify.app"
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={{ color: 'inherit', marginRight: '20px' }}
49
+ style={{ margin: "1rem 0 0" }}
66
50
  >
67
51
  <span class="link__label">ILO Design System for React</span>
68
52
  </a>
@@ -1,4 +1,4 @@
1
1
  <!-- .storybook/preview-body.html -->
2
2
  <body class="wingsuit-body font-sans">
3
- <div id="root" class="wingsuit-root"></div>
3
+ <div id="root" class="wingsuit-root"></div>
4
4
  </body>
@@ -1,25 +1,25 @@
1
- import { configure, initJsBehaviors } from '@wingsuit-designsystem/storybook';
2
- import { addParameters } from '@storybook/react';
3
- import './styles.scss';
1
+ import { configure, initJsBehaviors } from "@wingsuit-designsystem/storybook";
2
+ import { addParameters } from "@storybook/react";
3
+ import "./styles.scss";
4
4
 
5
- const namespaces = require('../../src/namespaces');
5
+ const namespaces = require("../../src/namespaces");
6
6
 
7
- initJsBehaviors('Drupal');
7
+ initJsBehaviors("Drupal");
8
8
 
9
9
  addParameters({
10
- viewMode: 'docs',
10
+ viewMode: "docs",
11
11
  previewTabs: {
12
- 'storybook/docs/panel': {
12
+ "storybook/docs/panel": {
13
13
  index: 1,
14
- title: 'Documentation',
14
+ title: "Documentation",
15
15
  },
16
- canvas: { title: 'Canvas', hidden: false },
16
+ canvas: { title: "Canvas", hidden: false },
17
17
  },
18
18
  options: {
19
19
  storySort: {
20
- method: 'alphabetical',
21
- order: ['Welcome', 'Intro', 'Tokens', ['Colors', 'Typography']],
22
- locales: 'en-US',
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('./patterns', true, /\.stories(\.jsx|\.js|\.mdx)$/),
31
- require.context('wspatterns', true, /\.stories(\.jsx|\.js|\.mdx)$/),
30
+ require.context("./patterns", true, /\.stories(\.jsx|\.js|\.mdx)$/),
31
+ require.context("wspatterns", true, /\.stories(\.jsx|\.js|\.mdx)$/),
32
32
  ],
33
- require.context('./config', false, /\.json|\.ya?ml$/),
34
- require.context('wspatterns', true, /\.twig$/),
33
+ require.context("./config", false, /\.json|\.ya?ml$/),
34
+ require.context("wspatterns", true, /\.twig$/),
35
35
  namespaces
36
36
  );
@@ -1 +1,25 @@
1
- @import '@ilo-org/styles/scss/monorepo';
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
+ }