@ilo-org/twig 0.2.16 → 0.2.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build:lib.log +3 -3
- package/CHANGELOG.md +10 -0
- package/importprefix.js +4 -2
- package/package.json +5 -5
- package/src/patterns/components/card/card.twig +1 -0
- package/src/patterns/components/profile/profile.twig +1 -1
- package/src/patterns/components/profile/profile.wingsuit.yml +10 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
|
-
> @ilo-org/twig@0.2.
|
|
3
|
-
> node importprefix.js
|
|
2
|
+
> @ilo-org/twig@0.2.17 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.
|
|
7
|
+
> @ilo-org/twig@0.2.17 output /home/runner/work/designsystem/designsystem/packages/twig
|
|
8
8
|
> node outputtwigs.js
|
|
9
9
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @ilo-org/twig
|
|
2
2
|
|
|
3
|
+
## 0.2.17
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 2aa1f1cc6: enable profile to be themeable and address a few minor style issues
|
|
8
|
+
- Updated dependencies [2aa1f1cc6]
|
|
9
|
+
- Updated dependencies [2aa1f1cc6]
|
|
10
|
+
- Updated dependencies [c24a5f721]
|
|
11
|
+
- @ilo-org/styles@0.2.0
|
|
12
|
+
|
|
3
13
|
## 0.2.16
|
|
4
14
|
|
|
5
15
|
### 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 = "
|
|
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(
|
|
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.
|
|
3
|
+
"version": "0.2.17",
|
|
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.
|
|
28
|
+
"@ilo-org/styles": "0.2.0",
|
|
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
|
|
82
|
-
"build:docs": "node importprefix.js
|
|
83
|
-
"build:lib": "node importprefix.js
|
|
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'",
|
|
@@ -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
|