@shoper/phoenix_design_system 0.0.2 → 0.0.3

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/package.json CHANGED
@@ -2,12 +2,11 @@
2
2
  "name": "@shoper/phoenix_design_system",
3
3
  "packageManager": "yarn@3.2.0",
4
4
  "sideEffects": false,
5
- "version": "0.0.2",
5
+ "version": "0.0.3",
6
6
  "description": "phoenix design system",
7
7
  "author": "zefirek",
8
8
  "license": "MIT",
9
9
  "source": "src/index.ts",
10
- "main": "build/cjs/packages/phoenix/src/index.js",
11
10
  "module": "build/esm/packages/phoenix/src/index.js",
12
11
  "jsnext:main": "build/esm/packages/phoenix/src/index.js",
13
12
  "types": "build/esm/packages/phoenix/src/index.d.ts",
@@ -20,10 +19,15 @@
20
19
  },
21
20
  "scripts": {
22
21
  "storybook": "start-storybook --no-open --port 6007",
23
- "build": "rimraf ./build/ && tsc --project tsconfig.build.json && rollup --config rollup.config.js"
22
+ "build": "rimraf ./build/ && tsc --project tsconfig.build.json && rollup --config rollup.config.js",
23
+ "watch": "rollup --config rollup.config.js --watch",
24
+ "tests:unit": "jest --no-cache --max-workers=50% -c .config/jest/jest.config.js",
25
+ "watch:tests:unit": "jest --watch -c .config/jest/jest.config.js"
24
26
  },
25
27
  "devDependencies": {
26
- "@storybook/web-components": "6.5.6",
28
+ "@shoper/jest_config": "^0.0.0",
29
+ "@shoper/tsconfig": "^0.0.0",
30
+ "@storybook/web-components": "6.5.7",
27
31
  "lit": "2.2.5"
28
32
  },
29
33
  "browserslist": [
@@ -1,33 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- /******************************************************************************
6
- Copyright (c) Microsoft Corporation.
7
-
8
- Permission to use, copy, modify, and/or distribute this software for any
9
- purpose with or without fee is hereby granted.
10
-
11
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
12
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
13
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
14
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
15
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
16
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17
- PERFORMANCE OF THIS SOFTWARE.
18
- ***************************************************************************** */
19
-
20
- function __decorate(decorators, target, key, desc) {
21
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
22
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
23
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
24
- return c > 3 && r && Object.defineProperty(target, key, r), r;
25
- }
26
-
27
- function __metadata(metadataKey, metadataValue) {
28
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
29
- }
30
-
31
- exports.__decorate = __decorate;
32
- exports.__metadata = __metadata;
33
- //# sourceMappingURL=tslib.es6.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -1,51 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var tslib_es6 = require('../../../external/tslib/tslib.es6.js');
6
- var lit = require('lit');
7
- var decorators = require('lit/decorators');
8
-
9
- exports.HelloButton = class HelloButton extends lit.LitElement {
10
- constructor() {
11
- super(...arguments);
12
- this.greeting = 'Hello';
13
- this.planet = 'World';
14
- }
15
- render() {
16
- super.render();
17
- return lit.html `
18
- <span @click="${this.togglePlanet}"
19
- >${this.greeting}
20
- <span class="planet">${this.planet}</span>
21
- <slot></slot>
22
- </span>
23
- `;
24
- }
25
- togglePlanet() {
26
- this.planet = this.planet === 'World' ? 'Mars' : 'World';
27
- }
28
- };
29
- exports.HelloButton.moduleName = 'my-element';
30
- exports.HelloButton.styles = lit.css `
31
- :host {
32
- display: inline-block;
33
- padding: 10px;
34
- background: lightgray;
35
- }
36
- .planet {
37
- color: var(--planet-color, blue);
38
- }
39
- `;
40
- tslib_es6.__decorate([
41
- decorators.state(),
42
- tslib_es6.__metadata("design:type", Object)
43
- ], exports.HelloButton.prototype, "greeting", void 0);
44
- tslib_es6.__decorate([
45
- decorators.state(),
46
- tslib_es6.__metadata("design:type", Object)
47
- ], exports.HelloButton.prototype, "planet", void 0);
48
- exports.HelloButton = tslib_es6.__decorate([
49
- decorators.customElement('hello-button')
50
- ], exports.HelloButton);
51
- //# sourceMappingURL=hello_button.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,sCAA0C;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -1,15 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var hello_button = require('./hello_button.js');
6
-
7
-
8
-
9
- Object.defineProperty(exports, 'HelloButton', {
10
- enumerable: true,
11
- get: function () {
12
- return hello_button.HelloButton;
13
- }
14
- });
15
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}