@shoper/phoenix_design_system 0.0.1

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