@schalkneethling/miyagi-core 4.4.2 → 4.4.4
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/README.md +7 -2
- package/api/app.js +16 -16
- package/api/index.js +263 -262
- package/bin/miyagi.js +1 -1
- package/dist/css/iframe.css +6 -30
- package/frontend/assets/css/iframe/accordion-tabs.css +39 -39
- package/frontend/assets/css/iframe/jsontree.js.css +149 -149
- package/frontend/assets/css/iframe/prism.css +45 -45
- package/frontend/assets/css/iframe/styleguide/colors.css +27 -27
- package/frontend/assets/css/iframe/styleguide/fonts.css +23 -23
- package/frontend/assets/css/iframe/styleguide/index.css +58 -58
- package/frontend/assets/css/iframe/styleguide/spacings.css +10 -10
- package/frontend/assets/css/iframe.css +191 -191
- package/frontend/assets/css/main/menu/config-switcher.css +21 -21
- package/frontend/assets/css/main/menu/config-switchers.css +34 -34
- package/frontend/assets/css/main/menu/goto.css +16 -16
- package/frontend/assets/css/main/menu/nav.css +49 -49
- package/frontend/assets/css/main/menu/search.css +34 -34
- package/frontend/assets/css/main/menu/title.css +18 -18
- package/frontend/assets/css/main/menu.css +89 -89
- package/frontend/assets/css/main/reset.css +47 -47
- package/frontend/assets/css/main.css +41 -41
- package/frontend/assets/css/shared.css +16 -16
- package/frontend/assets/css/tokens.css +108 -107
- package/frontend/assets/js/_accordion-tabs.js +392 -392
- package/frontend/assets/js/_goto.js +59 -59
- package/frontend/assets/js/_iframe-links.js +14 -14
- package/frontend/assets/js/_is-triggered.js +3 -3
- package/frontend/assets/js/_main.js +369 -369
- package/frontend/assets/js/_mock-data.js +8 -8
- package/frontend/assets/js/_prism.js +1082 -1081
- package/frontend/assets/js/_search.js +186 -186
- package/frontend/assets/js/_socket.js +44 -44
- package/frontend/assets/js/config-switcher/development-mode.js +38 -38
- package/frontend/assets/js/config-switcher/index.js +55 -55
- package/frontend/assets/js/config-switcher/text-direction.js +22 -22
- package/frontend/assets/js/config-switcher/theme.js +68 -68
- package/frontend/assets/js/iframe.build.js +25 -25
- package/frontend/assets/js/iframe.js +38 -38
- package/frontend/assets/js/jsontree.js +979 -976
- package/frontend/assets/js/main.build.js +29 -29
- package/frontend/assets/js/main.js +31 -31
- package/frontend/assets/js/styleguide/color-converter.js +652 -652
- package/frontend/assets/js/styleguide/index.js +100 -100
- package/lib/build/index.js +1014 -1020
- package/lib/cli/app.js +16 -16
- package/lib/cli/component.js +50 -50
- package/lib/cli/doctor.js +130 -121
- package/lib/cli/drupal-assets.js +163 -157
- package/lib/cli/lint.js +196 -196
- package/lib/cli/run.js +150 -146
- package/lib/config.js +86 -86
- package/lib/constants/lint-log-levels.js +6 -6
- package/lib/drupal/load-assets-config.js +59 -60
- package/lib/drupal/resolve-library-assets.js +132 -141
- package/lib/errors.js +20 -20
- package/lib/generator/component.js +124 -124
- package/lib/generator/mocks.js +156 -156
- package/lib/helpers.js +68 -68
- package/lib/i18n/en.js +93 -93
- package/lib/i18n/index.js +8 -8
- package/lib/index.js +13 -13
- package/lib/init/args.js +153 -153
- package/lib/init/config.js +452 -438
- package/lib/init/engines.js +41 -41
- package/lib/init/index.js +83 -83
- package/lib/init/rendering.js +3 -3
- package/lib/init/static.js +90 -90
- package/lib/init/twing/cache.js +27 -27
- package/lib/init/twing/functions.js +37 -37
- package/lib/init/views.js +5 -5
- package/lib/logger.js +72 -72
- package/lib/mocks/get.js +88 -88
- package/lib/mocks/index.js +2 -2
- package/lib/mocks/resolve/ref.js +447 -447
- package/lib/mocks/resolve/tpl.js +218 -218
- package/lib/mocks/resolve.js +154 -154
- package/lib/render/helpers/resolve-assets.js +29 -39
- package/lib/render/helpers.js +27 -27
- package/lib/render/index.js +18 -18
- package/lib/render/views/iframe/component.docs.js +50 -50
- package/lib/render/views/iframe/component.js +249 -248
- package/lib/render/views/iframe/design-tokens/colors.js +38 -38
- package/lib/render/views/iframe/design-tokens/index.js +3 -3
- package/lib/render/views/iframe/design-tokens/sizes.js +35 -35
- package/lib/render/views/iframe/design-tokens/typography.js +37 -37
- package/lib/render/views/iframe/docs.js +42 -42
- package/lib/render/views/iframe/index.js +28 -28
- package/lib/render/views/iframe/variation.js +89 -89
- package/lib/render/views/iframe/variation.standalone.js +69 -68
- package/lib/render/views/main/component.docs.js +38 -38
- package/lib/render/views/main/component.js +55 -55
- package/lib/render/views/main/design-tokens.js +38 -38
- package/lib/render/views/main/docs.js +33 -33
- package/lib/render/views/main/index.js +33 -33
- package/lib/state/components.js +99 -99
- package/lib/state/css.js +33 -33
- package/lib/state/docs.js +72 -72
- package/lib/state/file-contents.js +154 -154
- package/lib/state/helpers.js +53 -53
- package/lib/state/index.js +39 -39
- package/lib/state/menu/index.js +202 -202
- package/lib/state/menu/structure.js +84 -84
- package/lib/state/partials.js +12 -12
- package/lib/state/source-tree.js +51 -51
- package/lib/styleguide/color-names.js +148 -148
- package/lib/styleguide/colors.js +113 -113
- package/lib/styleguide/helpers.js +33 -33
- package/lib/styleguide/index.js +4 -4
- package/lib/styleguide/media-queries.js +18 -18
- package/lib/styleguide/spacings.js +22 -22
- package/lib/styleguide/typography.js +46 -46
- package/lib/validator/mocks.js +110 -83
- package/lib/validator/schemas.js +236 -227
- package/package.json +120 -117
|
@@ -1,61 +1,61 @@
|
|
|
1
1
|
.Colors {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
display: grid;
|
|
3
|
+
grid-template-columns: repeat(auto-fill, minmax(14em, 1fr));
|
|
4
|
+
gap: 3em;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
.Colors-button {
|
|
8
|
-
|
|
8
|
+
--size: 3em;
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-wrap: wrap;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.Colors-button::before,
|
|
15
15
|
.Colors-button::after {
|
|
16
|
-
|
|
16
|
+
display: block;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.Colors--all .Colors-button::before {
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
margin-inline-end: 10px;
|
|
21
|
+
width: var(--size);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
.Colors--all .Colors-button::before,
|
|
25
25
|
.Colors--decoration .Colors-button::before {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
height: var(--size);
|
|
27
|
+
background: var(--color);
|
|
28
|
+
border: 1px solid var(--backdrop, transparent);
|
|
29
|
+
content: "";
|
|
30
|
+
order: -1;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.Colors--decoration .Colors-button::before {
|
|
34
|
-
|
|
34
|
+
width: 100%;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
.Colors--all .Colors-button::after,
|
|
38
38
|
.Colors--typo .Colors-button::after {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
39
|
+
font-size: var(--size);
|
|
40
|
+
color: var(--color);
|
|
41
|
+
font-weight: bold;
|
|
42
|
+
order: -1;
|
|
43
|
+
/* stylelint-disable */
|
|
44
|
+
-webkit-text-stroke: 1px var(--backdrop, transparent);
|
|
45
|
+
text-stroke: 1px var(--backdrop, transparent);
|
|
46
|
+
/* stylelint-enable */
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
.Colors--all .Colors-button::after {
|
|
50
|
-
|
|
50
|
+
content: "Aa";
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
.Colors--typo .Colors-button::after {
|
|
54
|
-
|
|
54
|
+
content: "AaBbCc";
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
.Colors-prop,
|
|
58
58
|
.Colors-value {
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
flex: 1 0 100%;
|
|
60
|
+
margin: 10px 0 0;
|
|
61
61
|
}
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
.Fonts-item:not(:first-child) {
|
|
2
|
-
|
|
2
|
+
margin-top: 3em;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.Fonts-button {
|
|
6
|
-
|
|
6
|
+
color: inherit;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.Fonts-button::before {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
10
|
+
content: "The quick brown fox jumps over the lazy dog";
|
|
11
|
+
font-family: var(--font-family);
|
|
12
|
+
font-feature-settings: var(--font-feature-settings);
|
|
13
|
+
font-kerning: var(--font-kerning);
|
|
14
|
+
font-size-adjust: var(--font-size-adjust);
|
|
15
|
+
font-size: var(--font-size);
|
|
16
|
+
font-stretch: var(--font-stretch);
|
|
17
|
+
font-style: var(--font-style);
|
|
18
|
+
font-variant: var(--font-variant);
|
|
19
|
+
font-variant-caps: var(--font-variant-caps);
|
|
20
|
+
font-weight: var(--font-weight);
|
|
21
|
+
letter-spacing: var(--letter-spacing);
|
|
22
|
+
line-height: var(--line-height);
|
|
23
|
+
text-shadow: var(--text-shadow);
|
|
24
|
+
text-transform: var(--text-transform);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.Fonts-details {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
display: flex;
|
|
29
|
+
padding: 0;
|
|
30
|
+
list-style: none;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.Fonts-details > li:not(:last-child) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
margin-inline-end: 0.5em;
|
|
35
|
+
padding-inline-end: 0.5em;
|
|
36
|
+
border-inline-end: 0.0625rem solid currentcolor;
|
|
37
37
|
}
|
|
@@ -3,107 +3,107 @@
|
|
|
3
3
|
@import url("./spacings.css");
|
|
4
4
|
|
|
5
5
|
.CustomPropsGroup {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
list-style: none;
|
|
7
|
+
margin: 3em 0;
|
|
8
|
+
padding: 0;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.CustomProp {
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
position: relative;
|
|
13
|
+
border: 0.0625rem solid transparent;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.CustomProp[aria-selected="true"] {
|
|
17
|
-
|
|
17
|
+
position: relative;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.CustomProp-prop {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
display: block;
|
|
22
|
+
margin: 10px 0 0;
|
|
23
|
+
word-break: break-all;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.CustomProp-button {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
27
|
+
background: none;
|
|
28
|
+
border: none;
|
|
29
|
+
appearance: none;
|
|
30
|
+
font: inherit;
|
|
31
|
+
width: fit-content;
|
|
32
|
+
padding: 0;
|
|
33
|
+
text-align: start;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
.CustomProp-button:focus {
|
|
37
|
-
|
|
37
|
+
outline: none;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
.CustomProp-button:not([aria-expanded="true"]):hover .CustomProp-prop,
|
|
41
41
|
.CustomProp-button:not([aria-expanded="true"]):focus .CustomProp-prop {
|
|
42
|
-
|
|
42
|
+
text-decoration: underline;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
.CustomProp-details {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
46
|
+
position: absolute;
|
|
47
|
+
bottom: calc(100% + 15px);
|
|
48
|
+
inset-inline-start: 0;
|
|
49
|
+
padding: 15px;
|
|
50
|
+
margin: 0;
|
|
51
|
+
z-index: 1;
|
|
52
|
+
background: var(--color-Tooltip-background);
|
|
53
|
+
box-shadow: 0 4px 10px rgb(0 0 0 / 10%);
|
|
54
|
+
outline: 0.0625rem solid var(--color-Tooltip-outline);
|
|
55
|
+
box-sizing: border-box;
|
|
56
|
+
font-size: 14px;
|
|
57
|
+
display: none;
|
|
58
|
+
grid-template-columns: fit-content(50%) 1fr;
|
|
59
|
+
gap: 0.5rem 1rem;
|
|
60
|
+
line-height: 1.5;
|
|
61
|
+
white-space: nowrap;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
@keyframes fadeIn {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
65
|
+
from {
|
|
66
|
+
opacity: 0;
|
|
67
|
+
transform: translateY(10px);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
to {
|
|
71
|
+
opacity: 1;
|
|
72
|
+
transform: translateY(0);
|
|
73
|
+
}
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
.CustomProp-details:not([hidden]),
|
|
77
77
|
.CustomProp-button:hover + .CustomProp-details {
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
display: grid;
|
|
79
|
+
animation: fadeIn 0.15s ease;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
.CustomProp-details::before,
|
|
83
83
|
.CustomProp-details::after {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
84
|
+
content: "";
|
|
85
|
+
display: block;
|
|
86
|
+
position: absolute;
|
|
87
|
+
inset-inline-start: 15px;
|
|
88
|
+
width: 0;
|
|
89
|
+
height: 0;
|
|
90
|
+
border: 10px solid transparent;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
.CustomProp-details::before {
|
|
94
|
-
|
|
95
|
-
|
|
94
|
+
border-top-color: var(--color-Tooltip-outline);
|
|
95
|
+
top: 100%;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
.CustomProp-details::after {
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
border-top-color: var(--color-Tooltip-background);
|
|
100
|
+
top: calc(100% - 2px);
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
.CustomProp-detailsProperty {
|
|
104
|
-
|
|
104
|
+
font-weight: 600;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
.CustomProp-detailsValue {
|
|
108
|
-
|
|
108
|
+
margin: 0;
|
|
109
109
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
.Spacings {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
align-items: flex-start;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
.Spacings-item:not(:first-child) {
|
|
8
|
-
|
|
8
|
+
margin-top: 3em;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.Spacings-button {
|
|
12
|
-
|
|
12
|
+
color: inherit;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.Spacings-button::before {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
height: var(--spacing);
|
|
17
|
+
width: var(--spacing);
|
|
18
|
+
background: currentcolor;
|
|
19
|
+
content: "";
|
|
20
|
+
display: block;
|
|
21
21
|
}
|