@ilo-org/twig 0.2.16 → 0.2.18

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.
@@ -1,9 +1,9 @@
1
1
 
2
- > @ilo-org/twig@0.2.16 build:lib /home/runner/work/designsystem/designsystem/packages/twig
3
- > node importprefix.js; node importsvgs.js; pnpm output
2
+ > @ilo-org/twig@0.2.18 build:lib /home/runner/work/designsystem/designsystem/packages/twig
3
+ > node importprefix.js && node importsvgs.js && pnpm output
4
4
 
5
5
  theme prefix added
6
6
 
7
- > @ilo-org/twig@0.2.16 output /home/runner/work/designsystem/designsystem/packages/twig
7
+ > @ilo-org/twig@0.2.18 output /home/runner/work/designsystem/designsystem/packages/twig
8
8
  > node outputtwigs.js
9
9
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @ilo-org/twig
2
2
 
3
+ ## 0.2.18
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [bac3cc9d5]
8
+ - @ilo-org/styles@0.2.1
9
+
10
+ ## 0.2.17
11
+
12
+ ### Patch Changes
13
+
14
+ - 2aa1f1cc6: enable profile to be themeable and address a few minor style issues
15
+ - Updated dependencies [2aa1f1cc6]
16
+ - Updated dependencies [2aa1f1cc6]
17
+ - Updated dependencies [c24a5f721]
18
+ - @ilo-org/styles@0.2.0
19
+
3
20
  ## 0.2.16
4
21
 
5
22
  ### Patch Changes
package/importprefix.js CHANGED
@@ -1,11 +1,13 @@
1
1
  const theme = require("@ilo-org/themes/tokens/theme/base.json");
2
2
  const fs = require("fs");
3
- const path = "apps/storybook/config/prefix.yml";
3
+ const path = require("node:path");
4
+ const filepath = path.join(__dirname, "apps/storybook/config/prefix.yml");
4
5
  let buffer = new Buffer.from(`prefix: ${theme.themeprefix.value}`);
5
6
 
6
- fs.open(path, "w", function (err, fd) {
7
+ fs.open(filepath, "w", function (err, fd) {
7
8
  if (err) {
8
9
  console.log("Can't open file");
10
+ console.log(err);
9
11
  } else {
10
12
  fs.write(fd, buffer, 0, buffer.length, null, function (err) {
11
13
  if (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ilo-org/twig",
3
- "version": "0.2.16",
3
+ "version": "0.2.18",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Twig components for the ILO's Design System",
6
6
  "main": "",
@@ -25,7 +25,7 @@
25
25
  "@ilo-org/brand-assets": "0.1.0",
26
26
  "@ilo-org/fonts": "0.1.0",
27
27
  "@ilo-org/icons": "0.1.16",
28
- "@ilo-org/styles": "0.1.19",
28
+ "@ilo-org/styles": "0.2.1",
29
29
  "@ilo-org/themes": "0.1.15",
30
30
  "@ilo-org/utils": "0.0.11"
31
31
  },
@@ -78,9 +78,9 @@
78
78
  "@ilo-org/prettier-config": "0.0.2"
79
79
  },
80
80
  "scripts": {
81
- "storybook": "node importprefix.js; node importsvgs.js; start-storybook --config-dir apps/storybook",
82
- "build:docs": "node importprefix.js; node importsvgs.js; build-storybook --config-dir apps/storybook -o ./storybook-static",
83
- "build:lib": "node importprefix.js; node importsvgs.js; pnpm output",
81
+ "storybook": "node importprefix.js && node importsvgs.js && start-storybook --config-dir apps/storybook",
82
+ "build:docs": "node importprefix.js && node importsvgs.js && build-storybook --config-dir apps/storybook -o ./storybook-static",
83
+ "build:lib": "node importprefix.js && node importsvgs.js && pnpm output",
84
84
  "build": "pnpm build:lib",
85
85
  "lint:js": "eslint . --ext .js,.jsx",
86
86
  "lint:css": "stylelint '**/*.css'",
@@ -39,6 +39,7 @@
39
39
  name: profile.name,
40
40
  role: profile.role,
41
41
  prefix: prefix,
42
+ theme: theme,
42
43
  } only %}
43
44
  {% endif %}
44
45
  {% if list %}
@@ -3,7 +3,7 @@
3
3
  #}
4
4
  <figure class="storybook {{prefix}}--profile">
5
5
  <img class="{{prefix}}--profile--avatar" src="{{avatar}}" alt="Avatar for {{name}}">
6
- <figcaption class="{{prefix}}--profile--contents">
6
+ <figcaption class="{{prefix}}--profile--contents--{{theme}}">
7
7
  <span class="{{prefix}}--profile--name id">{{name}}</span>
8
8
  {% if role %}
9
9
  <span class="{{prefix}}--profile--role id">{{role}}</span>
@@ -32,4 +32,14 @@ profile:
32
32
  label: Role
33
33
  description: An optional plain-text field indicating the person's role in the organization
34
34
  preview: "ILO Director-General"
35
+ settings:
36
+ theme:
37
+ type: select
38
+ label: Theme
39
+ description: The theme for the profile styles
40
+ required: false
41
+ options:
42
+ light: Light
43
+ dark: Dark
44
+ preview: "light"
35
45
  visibility: storybook