setmy-info-less-extended 4.0.0 → 4.2.0

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/dist/main.css CHANGED
@@ -24,6 +24,7 @@ Content components moved out of the base module to keep base minimal: section, m
24
24
  All reference base design tokens (imported for tokens only by this package's main.less) but live in
25
25
  the extended layer.
26
26
  */
27
+ /* header.less */
27
28
  /* section.less */
28
29
  /* Full viewport height — use for hero or landing sections */
29
30
  .fullViewport {
@@ -110,6 +111,15 @@ the extended layer.
110
111
  border-style: none;
111
112
  line-height: 1;
112
113
  }
114
+ #modalBody {
115
+ height: 100%;
116
+ width: 100%;
117
+ top: 0;
118
+ left: 0;
119
+ position: absolute;
120
+ background: grey;
121
+ opacity: 0.5;
122
+ }
113
123
  /* card.less */
114
124
  /* Base content card */
115
125
  .card {
package/dist/main.min.css CHANGED
@@ -1 +1 @@
1
- .fullViewport{height:100vh;width:100%}.pageSection{width:100%;padding-top:20px;padding-bottom:20px}.pageSectionNarrow{width:100%;max-width:1024px;margin:0 auto;padding:20px 10px}.sectionContentCenter{display:table;width:100%;height:100%;text-align:center}.sectionContentRow{overflow:hidden}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(0,0,0,.5);z-index:800}.modal{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);max-width:640px;width:90%;max-height:80vh;overflow-y:auto;background:#fff;border-radius:6px;z-index:900}.modalHeader{padding:10px 20px;border-bottom:1px solid #ccc;font-weight:700}.modalBody{padding:20px;overflow-y:auto}.modalFooter{padding:10px 20px;border-top:1px solid #ccc;text-align:right}.modalClose{position:absolute;top:10px;right:10px;cursor:pointer;background:0 0;border-style:none;line-height:1}.card{border-style:solid;border-width:2px;border-color:#ccc;border-radius:6px;padding:20px;background:#fff;box-sizing:border-box}.cardTitle{font-weight:700;margin-bottom:10px}.cardBody{color:#000}.cardGrid{overflow:hidden}.articleBody{line-height:1.7;max-width:75ch}.codeInline{font-family:monospace;background:#f3f4f6;padding-left:4px;padding-right:4px;border-radius:3px;font-size:75%}.codePre{font-family:monospace;background:#f3f4f6;padding:10px 20px;border-radius:6px;overflow-x:auto;line-height:1.5;white-space:pre}.blockquote{border-left:4px solid #93c5fd;padding-left:20px;margin-top:10px;margin-bottom:10px;color:#696969;font-style:italic}.definitionTerm{font-weight:700;margin-top:10px}.definitionDesc{margin-left:20px;color:#696969}
1
+ .fullViewport{height:100vh;width:100%}.pageSection{width:100%;padding-top:20px;padding-bottom:20px}.pageSectionNarrow{width:100%;max-width:1024px;margin:0 auto;padding:20px 10px}.sectionContentCenter{display:table;width:100%;height:100%;text-align:center}.sectionContentRow{overflow:hidden}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(0,0,0,.5);z-index:800}.modal{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);max-width:640px;width:90%;max-height:80vh;overflow-y:auto;background:#fff;border-radius:6px;z-index:900}.modalHeader{padding:10px 20px;border-bottom:1px solid #ccc;font-weight:700}.modalBody{padding:20px;overflow-y:auto}.modalFooter{padding:10px 20px;border-top:1px solid #ccc;text-align:right}.modalClose{position:absolute;top:10px;right:10px;cursor:pointer;background:0 0;border-style:none;line-height:1}#modalBody{height:100%;width:100%;top:0;left:0;position:absolute;background:grey;opacity:.5}.card{border-style:solid;border-width:2px;border-color:#ccc;border-radius:6px;padding:20px;background:#fff;box-sizing:border-box}.cardTitle{font-weight:700;margin-bottom:10px}.cardBody{color:#000}.cardGrid{overflow:hidden}.articleBody{line-height:1.7;max-width:75ch}.codeInline{font-family:monospace;background:#f3f4f6;padding-left:4px;padding-right:4px;border-radius:3px;font-size:75%}.codePre{font-family:monospace;background:#f3f4f6;padding:10px 20px;border-radius:6px;overflow-x:auto;line-height:1.5;white-space:pre}.blockquote{border-left:4px solid #93c5fd;padding-left:20px;margin-top:10px;margin-bottom:10px;color:#696969;font-style:italic}.definitionTerm{font-weight:700;margin-top:10px}.definitionDesc{margin-left:20px;color:#696969}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "setmy-info-less-extended",
3
- "version": "4.0.0",
3
+ "version": "4.2.0",
4
4
  "description": "SMI LESS project",
5
5
  "main": "dist/main.min.css",
6
6
  "dependencies": {
@@ -17,11 +17,10 @@
17
17
  "watch:pug": "node ../common/test/js/pugWatch.js",
18
18
  "clean": "rimraf dist",
19
19
  "clean:all": "rimraf dist node_modules",
20
- "verify": "npm test && npm run e2e && npm run lint:less && npm run cucumber",
20
+ "verify": "npm test && npm run e2e && npm run lint:less",
21
21
  "test": "jest",
22
22
  "e2e": "jest --config=jest.e2e.config.js",
23
23
  "e2e:one": "jest --config=jest.e2e.config.js --testNamePattern",
24
- "cucumber": "cucumber-js",
25
24
  "lint:less": "stylelint ./src/main/less/**/*.less",
26
25
  "lint:fix-less": "stylelint ./src/main/less/**/*.less --fix",
27
26
  "styleguide": "kss-node --source src/main/less --destination dist/styleguide --css ../main.css"
@@ -0,0 +1 @@
1
+ /* header.less */
@@ -5,6 +5,7 @@ Content components moved out of the base module to keep base minimal: section, m
5
5
  All reference base design tokens (imported for tokens only by this package's main.less) but live in
6
6
  the extended layer.
7
7
  */
8
+ @import url("header.less");
8
9
  @import url("section.less");
9
10
  @import url("modal.less");
10
11
  @import url("card.less");
@@ -59,3 +59,13 @@
59
59
  border-style: none;
60
60
  line-height: 1;
61
61
  }
62
+
63
+ #modalBody {
64
+ height: 100%;
65
+ width: 100%;
66
+ top: 0;
67
+ left: 0;
68
+ position: absolute;
69
+ background: grey;
70
+ opacity: .5;
71
+ }
@@ -0,0 +1,18 @@
1
+ const {feature, scenario, given, when, then, runFeature} = require('../../../../../common/test/js/gherkin');
2
+
3
+ const articleFeature = feature('article page',
4
+ scenario('article rendering with specific properties',
5
+ given.pageNameIs('article'),
6
+ when.pageIsRendered(),
7
+ when.pageElementIdIs('article'),
8
+ then.pageShouldHaveTitle('article.html'),
9
+ then.pageElementStyleShouldBe('line-height', '27.2px'),
10
+ then.pageElementFontSizeShouldBe('16px'),
11
+ then.pageElementColorShouldBe('rgb(0, 0, 0)'),
12
+ then.pageIsClosed()
13
+ )
14
+ );
15
+
16
+ runFeature(articleFeature);
17
+
18
+ module.exports = articleFeature;
@@ -0,0 +1,27 @@
1
+ const {feature, scenario, given, when, then, runFeature} = require('../../../../../common/test/js/gherkin');
2
+
3
+ const bodyFeature = feature('body page',
4
+ scenario('body rendering with specific properties',
5
+ given.pageNameIs('body'),
6
+ when.pageIsRendered(),
7
+ when.pageElementIdIs('body'),
8
+ then.pageShouldHaveTitle('body.html'),
9
+ then.pageElementMarginShouldBe('0px 0px 0px 0px'),
10
+ then.pageElementPaddingShouldBe('0px 0px 0px 0px'),
11
+ then.pageElementFontFamilyShouldBe('DejaVu Serif, Roboto, Arial, Noto Sans, Noto, sans-serif'),
12
+ then.pageElementFontSizeShouldBe('16px'),
13
+ then.pageElementXShouldBe(0),
14
+ then.pageElementYShouldBe(0),
15
+ then.pageElementWidthShouldBe(2000),
16
+ then.pageElementHeightShouldBe(1200),
17
+ then.pageElementTopShouldBe(0),
18
+ then.pageElementLeftShouldBe(0),
19
+ then.pageElementBackgroundColorShouldBe('rgba(0, 0, 0, 0)'),
20
+ then.pageElementColorShouldBe('rgb(0, 0, 0)'),
21
+ then.pageIsClosed()
22
+ )
23
+ );
24
+
25
+ runFeature(bodyFeature);
26
+
27
+ module.exports = bodyFeature;
@@ -0,0 +1,20 @@
1
+ const {feature, scenario, given, when, then, runFeature} = require('../../../../../common/test/js/gherkin');
2
+
3
+ const cardFeature = feature('card page',
4
+ scenario('card rendering with specific properties',
5
+ given.pageNameIs('card'),
6
+ when.pageIsRendered(),
7
+ when.pageElementIdIs('card'),
8
+ then.pageShouldHaveTitle('card.html'),
9
+ then.pageElementPaddingShouldBe('20px 20px 20px 20px'),
10
+ then.pageElementBackgroundColorShouldBe('rgb(255, 255, 255)'),
11
+ then.pageElementStyleShouldBe('border-top-width', '2px'),
12
+ then.pageElementStyleShouldBe('border-top-color', 'rgb(204, 204, 204)'),
13
+ then.pageElementStyleShouldBe('border-top-left-radius', '6px'),
14
+ then.pageIsClosed()
15
+ )
16
+ );
17
+
18
+ runFeature(cardFeature);
19
+
20
+ module.exports = cardFeature;
@@ -0,0 +1,34 @@
1
+ const {feature, scenario, given, when, then, runFeature} = require('../../../../../common/test/js/gherkin');
2
+
3
+ const modalFeature = feature('modal page',
4
+ scenario('overlay rendering with specific properties',
5
+ given.pageNameIs('modal'),
6
+ when.pageIsRendered(),
7
+ when.pageElementIdIs('overlay'),
8
+ then.pageShouldHaveTitle('modal.html'),
9
+ then.pageElementStyleShouldBe('position', 'fixed'),
10
+ then.pageElementTopShouldBe(0),
11
+ then.pageElementLeftShouldBe(0),
12
+ then.pageElementWidthShouldBe(2000),
13
+ then.pageElementHeightShouldBe(1200),
14
+ then.pageElementBackgroundColorShouldBe('rgba(0, 0, 0, 0.5)'),
15
+ then.pageIsClosed()
16
+ ),
17
+ scenario('modal dialog rendering with specific properties',
18
+ given.pageNameIs('modal'),
19
+ when.pageIsRendered(),
20
+ when.pageElementIdIs('modal'),
21
+ then.pageShouldHaveTitle('modal.html'),
22
+ then.pageElementStyleShouldBe('position', 'fixed'),
23
+ then.pageElementStyleShouldBe('max-width', '640px'),
24
+ then.pageElementStyleShouldBe('width', '640px'),
25
+ then.pageElementStyleShouldBe('max-height', '960px'),
26
+ then.pageElementBackgroundColorShouldBe('rgb(255, 255, 255)'),
27
+ then.pageElementStyleShouldBe('border-top-left-radius', '6px'),
28
+ then.pageIsClosed()
29
+ )
30
+ );
31
+
32
+ runFeature(modalFeature);
33
+
34
+ module.exports = modalFeature;
@@ -0,0 +1,18 @@
1
+ const {feature, scenario, given, when, then, runFeature} = require('../../../../../common/test/js/gherkin');
2
+
3
+ const sectionFeature = feature('section page',
4
+ scenario('section rendering with specific properties',
5
+ given.pageNameIs('section'),
6
+ when.pageIsRendered(),
7
+ when.pageElementIdIs('section'),
8
+ then.pageShouldHaveTitle('section.html'),
9
+ then.pageElementStyleShouldBe('max-width', '1024px'),
10
+ then.pageElementPaddingShouldBe('20px 10px 20px 10px'),
11
+ then.pageElementStyleShouldBe('width', '1024px'),
12
+ then.pageIsClosed()
13
+ )
14
+ );
15
+
16
+ runFeature(sectionFeature);
17
+
18
+ module.exports = sectionFeature;
package/cucumber.js DELETED
@@ -1,10 +0,0 @@
1
- module.exports = {
2
- default: [
3
- `--format-options '{"snippetInterface": "synchronous"}'`,
4
- '--require ../common/test/js/bdd/support.js',
5
- '--require ../common/test/js/bdd/given.js',
6
- '--require ../common/test/js/bdd/when.js',
7
- '--require ../common/test/js/bdd/then.js',
8
- './src/test/gherkin'
9
- ].join(' ')
10
- };
@@ -1,11 +0,0 @@
1
- Feature: article page
2
-
3
- Scenario: article rendering with specific properties
4
- Given page name is "article"
5
- When page is rendered
6
- And page element ID is "article"
7
- Then page should have title "article.html"
8
- And page element style "line-height" should be "27.2px"
9
- And page element font size should be "16px"
10
- And page element color should be "rgb(0, 0, 0)"
11
- And page is closed
@@ -1,20 +0,0 @@
1
- Feature: body page
2
-
3
- Scenario: body rendering with specific properties
4
- Given page name is "body"
5
- When page is rendered
6
- And page element ID is "body"
7
- Then page should have title "body.html"
8
- And page element margin should be "0px 0px 0px 0px"
9
- And page element padding should be "0px 0px 0px 0px"
10
- And page element font family should be "DejaVu Serif, Roboto, Arial, Noto Sans, Noto, sans-serif"
11
- And page element font size should be "16px"
12
- And page element X should be 0
13
- And page element Y should be 0
14
- And page element WIDTH should be 2000
15
- And page element HEIGHT should be 1200
16
- And page element TOP should be 0
17
- And page element LEFT should be 0
18
- And page element background color should be "rgba(0, 0, 0, 0)"
19
- And page element color should be "rgb(0, 0, 0)"
20
- And page is closed
@@ -1,13 +0,0 @@
1
- Feature: card page
2
-
3
- Scenario: card rendering with specific properties
4
- Given page name is "card"
5
- When page is rendered
6
- And page element ID is "card"
7
- Then page should have title "card.html"
8
- And page element padding should be "20px 20px 20px 20px"
9
- And page element background color should be "rgb(255, 255, 255)"
10
- And page element style "border-top-width" should be "2px"
11
- And page element style "border-top-color" should be "rgb(204, 204, 204)"
12
- And page element style "border-top-left-radius" should be "6px"
13
- And page is closed
@@ -1,27 +0,0 @@
1
- Feature: modal page
2
-
3
- Scenario: overlay rendering with specific properties
4
- Given page name is "modal"
5
- When page is rendered
6
- And page element ID is "overlay"
7
- Then page should have title "modal.html"
8
- And page element style "position" should be "fixed"
9
- And page element TOP should be 0
10
- And page element LEFT should be 0
11
- And page element WIDTH should be 2000
12
- And page element HEIGHT should be 1200
13
- And page element background color should be "rgba(0, 0, 0, 0.5)"
14
- And page is closed
15
-
16
- Scenario: modal dialog rendering with specific properties
17
- Given page name is "modal"
18
- When page is rendered
19
- And page element ID is "modal"
20
- Then page should have title "modal.html"
21
- And page element style "position" should be "fixed"
22
- And page element style "max-width" should be "640px"
23
- And page element style "width" should be "640px"
24
- And page element style "max-height" should be "960px"
25
- And page element background color should be "rgb(255, 255, 255)"
26
- And page element style "border-top-left-radius" should be "6px"
27
- And page is closed
@@ -1,11 +0,0 @@
1
- Feature: section page
2
-
3
- Scenario: section rendering with specific properties
4
- Given page name is "section"
5
- When page is rendered
6
- And page element ID is "section"
7
- Then page should have title "section.html"
8
- And page element style "max-width" should be "1024px"
9
- And page element padding should be "20px 10px 20px 10px"
10
- And page element style "width" should be "1024px"
11
- And page is closed