@nuralyui/icon 0.0.6 → 0.0.8

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuralyui/icon",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -8,5 +8,19 @@
8
8
  "test": "echo \"Error: no test specified\" && exit 1"
9
9
  },
10
10
  "author": "Labidi Aymen",
11
- "license": "ISC"
11
+ "license": "ISC",
12
+ "exports": {
13
+ ".": {
14
+ "import": "./index.js"
15
+ },
16
+ "./bundle": {
17
+ "import": "./bundle.js"
18
+ }
19
+ },
20
+ "files": [
21
+ "bundle.js",
22
+ "*.js",
23
+ "*.d.ts",
24
+ "*.js.map"
25
+ ]
12
26
  }
package/react.js CHANGED
@@ -2,7 +2,7 @@ import { createComponent } from '@lit-labs/react';
2
2
  import * as React from 'react';
3
3
  import { HyIconElement } from './icon.component.js';
4
4
  export const HyIcon = createComponent({
5
- tagName: 'hy-icon',
5
+ tagName: 'nr-icon',
6
6
  elementClass: HyIconElement,
7
7
  react: React,
8
8
  });
package/react.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"react.js","sourceRoot":"","sources":["../../../src/components/icon/react.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAC,aAAa,EAAC,MAAM,qBAAqB,CAAC;AAClD,MAAM,CAAC,MAAM,MAAM,GAAG,eAAe,CAAC;IACpC,OAAO,EAAE,SAAS;IAClB,YAAY,EAAE,aAAa;IAC3B,KAAK,EAAE,KAAK;CACb,CAAC,CAAC","sourcesContent":["import {createComponent} from '@lit-labs/react';\nimport * as React from 'react';\nimport {HyIconElement} from './icon.component.js';\nexport const HyIcon = createComponent({\n tagName: 'hy-icon',\n elementClass: HyIconElement,\n react: React,\n});\n"]}
1
+ {"version":3,"file":"react.js","sourceRoot":"","sources":["../../../src/components/icon/react.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,MAAM,CAAC,MAAM,MAAM,GAAG,eAAe,CAAC;IACpC,OAAO,EAAE,SAAS;IAClB,YAAY,EAAE,aAAa;IAC3B,KAAK,EAAE,KAAK;CACb,CAAC,CAAC","sourcesContent":["import { createComponent } from '@lit-labs/react';\nimport * as React from 'react';\nimport { HyIconElement } from './icon.component.js';\nexport const HyIcon = createComponent({\n tagName: 'nr-icon',\n elementClass: HyIconElement,\n react: React,\n});\n"]}
@@ -1,11 +0,0 @@
1
- import { LitElement } from 'lit';
2
- export declare class HyIconDemo extends LitElement {
3
- static readonly styles: import("lit").CSSResult;
4
- render(): import("lit").TemplateResult<1>;
5
- }
6
- declare global {
7
- interface HTMLElementTagNameMap {
8
- 'hy-icon-demo': HyIconDemo;
9
- }
10
- }
11
- //# sourceMappingURL=hy-icon-demo.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hy-icon-demo.d.ts","sourceRoot":"","sources":["../../../../src/components/icon/demo/hy-icon-demo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAY,MAAM,KAAK,CAAC;AAG1C,qBACa,UAAW,SAAQ,UAAU;IACxC,gBAAyB,MAAM,0BAa7B;IACO,MAAM;CAchB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,UAAU,CAAC;KAC5B;CACF"}
@@ -1,43 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- 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;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- import { LitElement, css, html } from 'lit';
8
- import { customElement } from 'lit/decorators.js';
9
- let HyIconDemo = class HyIconDemo extends LitElement {
10
- render() {
11
- return html `
12
- <h3>Default icon (solid)</h3>
13
- <hy-icon name="envelope"></hy-icon>
14
- <h3>Icon with overriden color</h3>
15
- <hy-icon id="first-icon" name="check"></hy-icon>
16
- <h3>Icon with overriden size</h3>
17
- <hy-icon id="second-icon" name="warning"></hy-icon>
18
- <h3>Icon with overriden size and color</h3>
19
- <hy-icon id="third-icon" name="bug"></hy-icon>
20
- <h3>Regular icon</h3>
21
- <hy-icon name="envelope" type="regular"></hy-icon>
22
- `;
23
- }
24
- };
25
- HyIconDemo.styles = css `
26
- #first-icon {
27
- --hybrid-icon-color: red;
28
- }
29
- #second-icon {
30
- --hybrid-icon-width: 20px;
31
- --hybrid-icon-height: 25px;
32
- }
33
- #third-icon {
34
- --hybrid-icon-width: 30px;
35
- --hybrid-icon-height: 35px;
36
- --hybrid-icon-color: green;
37
- }
38
- `;
39
- HyIconDemo = __decorate([
40
- customElement('hy-icon-demo')
41
- ], HyIconDemo);
42
- export { HyIconDemo };
43
- //# sourceMappingURL=hy-icon-demo.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hy-icon-demo.js","sourceRoot":"","sources":["../../../../src/components/icon/demo/hy-icon-demo.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAC,UAAU,EAAE,GAAG,EAAE,IAAI,EAAC,MAAM,KAAK,CAAC;AAC1C,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAGhD,IAAa,UAAU,GAAvB,MAAa,UAAW,SAAQ,UAAU;IAe/B,MAAM;QACb,OAAO,IAAI,CAAA;;;;;;;;;;;KAWV,CAAC;IACJ,CAAC;CACF,CAAA;AA5B0B,iBAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;GAanC,CAAA;AAdS,UAAU;IADtB,aAAa,CAAC,cAAc,CAAC;GACjB,UAAU,CA6BtB;SA7BY,UAAU","sourcesContent":["import {LitElement, css, html} from 'lit';\nimport {customElement} from 'lit/decorators.js';\n\n@customElement('hy-icon-demo')\nexport class HyIconDemo extends LitElement {\n static override readonly styles = css`\n #first-icon {\n --hybrid-icon-color: red;\n }\n #second-icon {\n --hybrid-icon-width: 20px;\n --hybrid-icon-height: 25px;\n }\n #third-icon {\n --hybrid-icon-width: 30px;\n --hybrid-icon-height: 35px;\n --hybrid-icon-color: green;\n }\n `;\n override render() {\n return html`\n <h3>Default icon (solid)</h3>\n <hy-icon name=\"envelope\"></hy-icon>\n <h3>Icon with overriden color</h3>\n <hy-icon id=\"first-icon\" name=\"check\"></hy-icon>\n <h3>Icon with overriden size</h3>\n <hy-icon id=\"second-icon\" name=\"warning\"></hy-icon>\n <h3>Icon with overriden size and color</h3>\n <hy-icon id=\"third-icon\" name=\"bug\"></hy-icon>\n <h3>Regular icon</h3>\n <hy-icon name=\"envelope\" type=\"regular\"></hy-icon>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'hy-icon-demo': HyIconDemo;\n }\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"icon.component.d.ts","sourceRoot":"","sources":["../../../src/components/icon/icon.component.ts"],"names":[],"mappings":"AACA;;;;GAIG;;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AASvC,OAAO,EAAE,SAAS,EAAkC,MAAM,iBAAiB,CAAC;AAE5E,qBACa,aAAc,SAAQ,UAAU;IAE3C,IAAI,EAAG,MAAM,CAAC;IAEd,IAAI,YAAmB;IAEvB,gBAAyB,MAAM,4BAAU;IAChC,MAAM;IAOf,WAAW;CAKZ;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,aAAa,CAAC;KAC1B;IAED,UAAU,GAAG,CAAC;QACZ,UAAU,iBAAiB;YACzB,SAAS,EAAE,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC,cAAc,CAAC,aAAa,CAAC,EAAE,aAAa,CAAC,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;SACjH;KACF;CACF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"icon.style.d.ts","sourceRoot":"","sources":["../../../src/components/icon/icon.style.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,MAAM,2BAA+B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"icon.types.d.ts","sourceRoot":"","sources":["../../../src/components/icon/icon.types.ts"],"names":[],"mappings":"AAAA,0BAAkB,SAAS;IACzB,KAAK,UAAU;IACf,OAAO,YAAY;CACpB;AACD,eAAO,MAAM,aAAa,QAAQ,CAAC;AACnC,eAAO,MAAM,eAAe,QAAQ,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"icon.variables.d.ts","sourceRoot":"","sources":["../../../src/components/icon/icon.variables.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,yBAW1B,CAAC"}
package/index.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/icon/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
package/react.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../../src/components/icon/react.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,aAAa,EAAC,MAAM,qBAAqB,CAAC;AAClD,eAAO,MAAM,MAAM,gEAIjB,CAAC"}