@nuralyui/label 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.
- package/demo/label.demo.d.ts +1 -0
- package/demo/label.demo.d.ts.map +1 -0
- package/demo/label.demo.js +2 -0
- package/demo/label.demo.js.map +1 -0
- package/label.component.d.ts +7 -0
- package/label.component.d.ts.map +1 -0
- package/label.component.js +31 -0
- package/label.component.js.map +1 -0
- package/label.style.d.ts +3 -0
- package/label.style.d.ts.map +1 -0
- package/label.style.js +20 -0
- package/label.style.js.map +1 -0
- package/package.json +12 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=label.demo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.demo.d.ts","sourceRoot":"","sources":["../../../../src/components/label/demo/label.demo.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.demo.js","sourceRoot":"","sources":["../../../../src/components/label/demo/label.demo.ts"],"names":[],"mappings":"","sourcesContent":[""]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.component.d.ts","sourceRoot":"","sources":["../../../src/components/label/label.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAIvC,qBACa,WAAY,SAAQ,UAAU;IACxC,OAAgB,MAAM,0BAAO;IAG5B,KAAK,SAAG;IAIC,MAAM;CASlB"}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 { html, LitElement } from "lit";
|
|
8
|
+
import { customElement, property } from "lit/decorators";
|
|
9
|
+
import styles from "./label.style";
|
|
10
|
+
let HyTextLabel = class HyTextLabel extends LitElement {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
this.value = '';
|
|
14
|
+
}
|
|
15
|
+
render() {
|
|
16
|
+
return html `
|
|
17
|
+
<label>
|
|
18
|
+
<slot></slot>
|
|
19
|
+
</label>
|
|
20
|
+
`;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
HyTextLabel.styles = styles;
|
|
24
|
+
__decorate([
|
|
25
|
+
property()
|
|
26
|
+
], HyTextLabel.prototype, "value", void 0);
|
|
27
|
+
HyTextLabel = __decorate([
|
|
28
|
+
customElement('hy-label')
|
|
29
|
+
], HyTextLabel);
|
|
30
|
+
export { HyTextLabel };
|
|
31
|
+
//# sourceMappingURL=label.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.component.js","sourceRoot":"","sources":["../../../src/components/label/label.component.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,MAAM,MAAM,eAAe,CAAC;AAGnC,IAAa,WAAW,GAAxB,MAAa,WAAY,SAAQ,UAAU;IAA3C;;QAII,UAAK,GAAC,EAAE,CAAA;IAaZ,CAAC;IATY,MAAM;QAEX,OAAO,IAAI,CAAA;;;;SAIV,CAAA;IAEL,CAAC;CACJ,CAAA;AAhBkB,kBAAM,GAAC,MAAM,CAAA;AAG5B;IADA,QAAQ,EAAE;0CACF;AAJC,WAAW;IADvB,aAAa,CAAC,UAAU,CAAC;GACb,WAAW,CAiBvB;SAjBY,WAAW","sourcesContent":["import { html, LitElement } from \"lit\";\nimport { customElement, property } from \"lit/decorators\";\nimport styles from \"./label.style\";\n\n@customElement('hy-label')\nexport class HyTextLabel extends LitElement{\n static override styles=styles\n\n @property()\n value=''\n\n\n\n override render(){\n\n return html` \n <label>\n <slot></slot>\n </label>\n `\n\n }\n}"]}
|
package/label.style.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.style.d.ts","sourceRoot":"","sources":["../../../src/components/label/label.style.ts"],"names":[],"mappings":";AAEA,wBAiBM"}
|
package/label.style.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { css } from "lit";
|
|
2
|
+
export default css `
|
|
3
|
+
label {
|
|
4
|
+
color: var(--text-label-local-color, --text-label-color);
|
|
5
|
+
display: block;
|
|
6
|
+
user-select: none
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
:host {
|
|
10
|
+
--text-label-color: var(--text-label-local-color, --text-label-color);
|
|
11
|
+
display: flex;
|
|
12
|
+
width: fit-content
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@media (prefers-color-scheme: dark) {
|
|
16
|
+
:host {
|
|
17
|
+
--text-label-color: var(--text-label-local-dark-color, --text-label-dark-color);
|
|
18
|
+
}
|
|
19
|
+
}`;
|
|
20
|
+
//# sourceMappingURL=label.style.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.style.js","sourceRoot":"","sources":["../../../src/components/label/label.style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,eAAe,GAAG,CAAA;;;;;;;;;;;;;;;;;MAiBZ,CAAA","sourcesContent":["import { css } from \"lit\";\n\nexport default css`\n label {\n color: var(--text-label-local-color, --text-label-color);\n display: block;\n user-select: none\n }\n\n :host {\n --text-label-color: var(--text-label-local-color, --text-label-color);\n display: flex;\n width: fit-content\n }\n\n @media (prefers-color-scheme: dark) {\n :host {\n --text-label-color: var(--text-label-local-dark-color, --text-label-dark-color);\n }\n }`\n\n"]}
|
package/package.json
ADDED