hr-design-system-handlebars 1.52.11 → 1.52.12
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/.storybook/preview.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import '!style-loader!css-loader!postcss-loader!tailwind'
|
|
2
2
|
import 'tailwind'
|
|
3
3
|
import { withThemeByDataAttribute } from '@storybook/addon-styling'
|
|
4
|
+
import '@storybook/addon-console'
|
|
5
|
+
import { setConsoleOptions } from '@storybook/addon-console';
|
|
6
|
+
import { configureActions } from '@storybook/addon-actions';
|
|
4
7
|
|
|
5
8
|
import hrDesignsystemDark from './HRDesignsystemDark'
|
|
6
9
|
import hrDesignsystemLight from './HRDesignsystemLight'
|
|
@@ -11,6 +14,38 @@ import loadFeature from '../build/webpack/feature-loader/initializer/loader'
|
|
|
11
14
|
import '../src/assets/js/alpine.js'
|
|
12
15
|
import '../src/assets/tailwind.css'
|
|
13
16
|
|
|
17
|
+
import { CheckCSS } from 'checkcss';
|
|
18
|
+
|
|
19
|
+
configureActions({
|
|
20
|
+
clearOnStoryChange: true,
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
// Create CheckCSS instance
|
|
24
|
+
const checkcss = new CheckCSS();
|
|
25
|
+
|
|
26
|
+
checkcss.onClassnameDetected = function (classname, element) {
|
|
27
|
+
// Return `false` to disable checks for `classname`.
|
|
28
|
+
// For example, to ignore classnames starting with
|
|
29
|
+
// "license-" or "maintainer-"...
|
|
30
|
+
var storybookRoot = document.getElementById('storybook-root');
|
|
31
|
+
var prefixes = /^js-|^cy-|^sb-/.test(classname) ? false : true
|
|
32
|
+
return storybookRoot.contains(element) && prefixes
|
|
33
|
+
}
|
|
34
|
+
checkcss.onUndefinedClassname = function (classname) {
|
|
35
|
+
console.log(
|
|
36
|
+
`checkcss: No CSS rule for .${classname}`,
|
|
37
|
+
);
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
checkcss.scan().watch();
|
|
41
|
+
|
|
42
|
+
const panelInclude = setConsoleOptions({}).panelInclude;
|
|
43
|
+
|
|
44
|
+
setConsoleOptions({
|
|
45
|
+
panelInclude: [...panelInclude, /checkcss/],
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
|
|
14
49
|
function loadDelayedImages() {
|
|
15
50
|
setTimeout(function () {
|
|
16
51
|
var t,
|
|
@@ -173,11 +208,12 @@ export const parameters = {
|
|
|
173
208
|
[
|
|
174
209
|
'Entwicklung',
|
|
175
210
|
[
|
|
176
|
-
'Installation und Update von Dependencies
|
|
177
|
-
'
|
|
211
|
+
'Installation und Update von Dependencies',
|
|
212
|
+
'Design System im Delivery Projekt installieren',
|
|
213
|
+
'Konventionen und Datenstrukturen',
|
|
214
|
+
'Testdatenbereitstellung',
|
|
215
|
+
'Konsolenausgaben'
|
|
178
216
|
],
|
|
179
|
-
'Konventionen und Datenstrukturen',
|
|
180
|
-
'Testdatenbereitstellung',
|
|
181
217
|
'*',
|
|
182
218
|
],
|
|
183
219
|
'Komponenten',
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# v1.52.12 (Wed Jan 24 2024)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- Add console to storybook [#811](https://github.com/mumprod/hr-design-system-handlebars/pull/811) ([@vascoeduardo](https://github.com/vascoeduardo))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Vasco ([@vascoeduardo](https://github.com/vascoeduardo))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
1
13
|
# v1.52.11 (Wed Jan 24 2024)
|
|
2
14
|
|
|
3
15
|
#### 🐛 Bug Fix
|
package/dist/assets/index.css
CHANGED
|
@@ -3249,7 +3249,7 @@ article.indexText ul {
|
|
|
3249
3249
|
border-bottom-color: var(--color-secondary-ds);
|
|
3250
3250
|
}
|
|
3251
3251
|
.counter-reset {
|
|
3252
|
-
counter-reset:
|
|
3252
|
+
counter-reset: cnt1706100388787;
|
|
3253
3253
|
}
|
|
3254
3254
|
.hyphens-auto {
|
|
3255
3255
|
-webkit-hyphens: auto;
|
|
@@ -3551,7 +3551,7 @@ article.indexText ul {
|
|
|
3551
3551
|
--tw-ring-color: rgba(255, 255, 255, 0.5);
|
|
3552
3552
|
}
|
|
3553
3553
|
.-ordered {
|
|
3554
|
-
counter-increment:
|
|
3554
|
+
counter-increment: cnt1706100388787 1;
|
|
3555
3555
|
}
|
|
3556
3556
|
.-ordered::before {
|
|
3557
3557
|
position: absolute;
|
|
@@ -3567,7 +3567,7 @@ article.indexText ul {
|
|
|
3567
3567
|
letter-spacing: .0125em;
|
|
3568
3568
|
--tw-text-opacity: 1;
|
|
3569
3569
|
color: rgba(0, 0, 0, var(--tw-text-opacity));
|
|
3570
|
-
content: counter(
|
|
3570
|
+
content: counter(cnt1706100388787);
|
|
3571
3571
|
}
|
|
3572
3572
|
/*! ****************************/
|
|
3573
3573
|
/*! DataPolicy stuff */
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"repository": "https://github.com/szuelch/hr-design-system-handlebars",
|
|
9
|
-
"version": "1.52.
|
|
9
|
+
"version": "1.52.12",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
12
12
|
"storybook": "storybook dev -p 6006 public",
|
|
@@ -43,8 +43,9 @@
|
|
|
43
43
|
"@babel/core": "^7.12.10",
|
|
44
44
|
"@babel/preset-env": "^7.21.4",
|
|
45
45
|
"@storybook/addon-a11y": "^7.2.1",
|
|
46
|
-
"@storybook/addon-actions": "
|
|
47
|
-
"@storybook/addon-
|
|
46
|
+
"@storybook/addon-actions": "7.5.3",
|
|
47
|
+
"@storybook/addon-console": "^2.0.0",
|
|
48
|
+
"@storybook/addon-essentials": "7.5.3",
|
|
48
49
|
"@storybook/addon-links": "^7.2.1",
|
|
49
50
|
"@storybook/addon-styling": "^1.3.5",
|
|
50
51
|
"@storybook/addons": "^7.2.1",
|
|
@@ -112,6 +113,7 @@
|
|
|
112
113
|
"a11y-dialog": "^8.0.4",
|
|
113
114
|
"alpinejs": "^3.8.1",
|
|
114
115
|
"async-alpine": "^1.0.0",
|
|
116
|
+
"checkcss": "^2.0.9",
|
|
115
117
|
"dialog-polyfill": "^0.5.6",
|
|
116
118
|
"tailwindcss-counter": "^1.1.3"
|
|
117
119
|
},
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Meta, Story, Canvas } from '@storybook/addon-docs'
|
|
2
|
+
|
|
3
|
+
<Meta title="Grundlegendes/Entwicklung/Konsolenausgaben" />
|
|
4
|
+
|
|
5
|
+
# Konsolenausgaben im Action Tab
|
|
6
|
+
- [Allgemein](#allgemein)
|
|
7
|
+
- [Festlegen welche Logs angezeigt werden sollen](#festlegen-welche-logs-angezeigt-werden-sollen)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## Allgemein
|
|
11
|
+
|
|
12
|
+
Es ist möglich console.log() ausgaben im "Action Tab" einer Story anzuzeigen. Dafür wird das Plugin "@storybook/addon-console" verwendet. Auf grund eines Bugs benötigt addon-console die Storybook Plugins @storybook/addon-actions und @storybook/addon-essentials jeweils in der version 7.5.3
|
|
13
|
+
Aus diesem Grund dürfen diese nicht Upgedatet werden bis der Bug in addon-console behoben wurde.
|
|
14
|
+
|
|
15
|
+
Zur Zeit aktualisiert der Tab sich leider nicht automatisch beim wechsel in eine andere Story weshalb um die Korrekten Logs angezeigt zu bekommen ein reload(F5) der Seite durchgefürt werden muss.
|
|
16
|
+
|
|
17
|
+
## Festlegen welche Logs angezeigt werden sollen
|
|
18
|
+
|
|
19
|
+
standardmäßig würden alle console.log() im Action Tab angezeigt. Um nur für uns relevante Meldungen anzuzeigen werden über einen Filter nicht "relevante" logs ausgefiltert.
|
|
20
|
+
|
|
21
|
+
Dies kann in der function setConsoleOptions() in der preview.js über eine REGEX konfiguriert werden.
|
|
22
|
+
```javascript
|
|
23
|
+
|
|
24
|
+
setConsoleOptions({
|
|
25
|
+
panelInclude: [...panelInclude, /checkcss/],
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
Die REGEX sorgt dafür das ausschließlich LOGs angezeigt werden, in denen der String "checkcss" vorkommt. Bei zukünftigen Ausgaben ist es somit notwendig diese mit einem vorangestellten Prefix zu kennzeichnen. z.b. "testausgabe:" . Die angepasste REGEX um die testausgaben auch anzuzeigen würde dann so aussehen:
|
|
30
|
+
|
|
31
|
+
```javascript
|
|
32
|
+
|
|
33
|
+
setConsoleOptions({
|
|
34
|
+
panelInclude: [...panelInclude, /checkcss|testausgabe/],
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
|
package/src/stories/Fixtures.mdx
CHANGED