@lovince/ui-core 1.0.1 → 1.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/custom-elements.d.ts +13 -0
- package/dist/components/my-button.d.ts +1 -1
- package/dist/components/my-button.js +29 -0
- package/dist/components/my-button.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +29 -0
- package/dist/index.js.map +1 -1
- package/package.json +7 -2
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { MyButtonProps, MyInputProps } from '@lovince/ui-shared';
|
|
3
|
+
|
|
4
|
+
declare global {
|
|
5
|
+
namespace JSX {
|
|
6
|
+
interface IntrinsicElements {
|
|
7
|
+
'my-button': HTMLAttributes<HTMLElement> & MyButtonProps;
|
|
8
|
+
'my-input': HTMLAttributes<HTMLElement> & MyInputProps;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export {};
|
|
@@ -4,7 +4,7 @@ import { LitElement } from 'lit';
|
|
|
4
4
|
|
|
5
5
|
declare class MyButton extends LitElement {
|
|
6
6
|
static styles: lit.CSSResult;
|
|
7
|
-
variant: "primary" | "secondary";
|
|
7
|
+
variant: "primary" | "secondary" | "danger" | "success" | "outline";
|
|
8
8
|
disabled: boolean;
|
|
9
9
|
size: "sm" | "md" | "lg";
|
|
10
10
|
private handleClick;
|
|
@@ -78,6 +78,35 @@ __publicField(MyButton, "styles", css`
|
|
|
78
78
|
background-color: #545b62;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
+
.danger {
|
|
82
|
+
background-color: #dc3545;
|
|
83
|
+
color: white;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.danger:hover:not(:disabled) {
|
|
87
|
+
background-color: #c82333;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.success {
|
|
91
|
+
background-color: #28a745;
|
|
92
|
+
color: white;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.success:hover:not(:disabled) {
|
|
96
|
+
background-color: #218838;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.outline {
|
|
100
|
+
background-color: transparent;
|
|
101
|
+
color: #007bff;
|
|
102
|
+
border: 2px solid #007bff;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.outline:hover:not(:disabled) {
|
|
106
|
+
background-color: #007bff;
|
|
107
|
+
color: white;
|
|
108
|
+
}
|
|
109
|
+
|
|
81
110
|
.sm {
|
|
82
111
|
padding: 0.25rem 0.5rem;
|
|
83
112
|
font-size: 0.875rem;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/my-button.ts"],"sourcesContent":["import { LitElement, html, css } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { MyButtonProps } from '@lovince/ui-shared';\n\n@customElement(\"my-button\")\nexport class MyButton extends LitElement {\n static styles = css`\n :host {\n display: inline-block;\n }\n \n button {\n padding: 0.5rem 1rem;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n font-family: inherit;\n font-size: inherit;\n transition: all 0.2s ease;\n }\n \n button:disabled {\n opacity: 0.6;\n cursor: not-allowed;\n }\n \n .primary {\n background-color: #007bff;\n color: white;\n }\n \n .primary:hover:not(:disabled) {\n background-color: #0056b3;\n }\n \n .secondary {\n background-color: #6c757d;\n color: white;\n }\n \n .secondary:hover:not(:disabled) {\n background-color: #545b62;\n }\n \n .sm {\n padding: 0.25rem 0.5rem;\n font-size: 0.875rem;\n }\n \n .lg {\n padding: 0.75rem 1.5rem;\n font-size: 1.125rem;\n }\n `;\n\n @property({ type: String }) variant: \"primary\" | \"secondary\" = \"primary\";\n @property({ type: Boolean }) disabled = false;\n @property({ type: String }) size: \"sm\" | \"md\" | \"lg\" = \"md\";\n\n private handleClick() {\n if (this.disabled) return;\n \n this.dispatchEvent(\n new CustomEvent(\"button-click\", {\n detail: { variant: this.variant },\n bubbles: true,\n composed: true,\n })\n );\n }\n\n render() {\n return html`\n <button \n class=\"${this.variant} ${this.size}\"\n ?disabled=\"${this.disabled}\"\n @click=\"${this.handleClick}\"\n >\n <slot></slot>\n </button>\n `;\n }\n}\n\n// SSR-safe element registration\nif (!customElements.get(\"my-button\")) {\n customElements.define(\"my-button\", MyButton);\n}\n"],"mappings":";;;;;;;;;;;;;;AAAA,SAAS,YAAY,MAAM,WAAW;AACtC,SAAS,eAAe,gBAAgB;AAIjC,IAAM,WAAN,cAAuB,WAAW;AAAA,
|
|
1
|
+
{"version":3,"sources":["../../src/components/my-button.ts"],"sourcesContent":["import { LitElement, html, css } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { MyButtonProps } from '@lovince/ui-shared';\n\n@customElement(\"my-button\")\nexport class MyButton extends LitElement {\n static styles = css`\n :host {\n display: inline-block;\n }\n \n button {\n padding: 0.5rem 1rem;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n font-family: inherit;\n font-size: inherit;\n transition: all 0.2s ease;\n }\n \n button:disabled {\n opacity: 0.6;\n cursor: not-allowed;\n }\n \n .primary {\n background-color: #007bff;\n color: white;\n }\n \n .primary:hover:not(:disabled) {\n background-color: #0056b3;\n }\n \n .secondary {\n background-color: #6c757d;\n color: white;\n }\n \n .secondary:hover:not(:disabled) {\n background-color: #545b62;\n }\n \n .danger {\n background-color: #dc3545;\n color: white;\n }\n \n .danger:hover:not(:disabled) {\n background-color: #c82333;\n }\n \n .success {\n background-color: #28a745;\n color: white;\n }\n \n .success:hover:not(:disabled) {\n background-color: #218838;\n }\n \n .outline {\n background-color: transparent;\n color: #007bff;\n border: 2px solid #007bff;\n }\n \n .outline:hover:not(:disabled) {\n background-color: #007bff;\n color: white;\n }\n \n .sm {\n padding: 0.25rem 0.5rem;\n font-size: 0.875rem;\n }\n \n .lg {\n padding: 0.75rem 1.5rem;\n font-size: 1.125rem;\n }\n `;\n\n @property({ type: String }) variant: \"primary\" | \"secondary\" | \"danger\" | \"success\" | \"outline\" = \"primary\";\n @property({ type: Boolean }) disabled = false;\n @property({ type: String }) size: \"sm\" | \"md\" | \"lg\" = \"md\";\n\n private handleClick() {\n if (this.disabled) return;\n \n this.dispatchEvent(\n new CustomEvent(\"button-click\", {\n detail: { variant: this.variant },\n bubbles: true,\n composed: true,\n })\n );\n }\n\n render() {\n return html`\n <button \n class=\"${this.variant} ${this.size}\"\n ?disabled=\"${this.disabled}\"\n @click=\"${this.handleClick}\"\n >\n <slot></slot>\n </button>\n `;\n }\n}\n\n// SSR-safe element registration\nif (!customElements.get(\"my-button\")) {\n customElements.define(\"my-button\", MyButton);\n}\n"],"mappings":";;;;;;;;;;;;;;AAAA,SAAS,YAAY,MAAM,WAAW;AACtC,SAAS,eAAe,gBAAgB;AAIjC,IAAM,WAAN,cAAuB,WAAW;AAAA,EA+EX,UAAsE;AAAA,EACrE,WAAW;AAAA,EACZ,OAA2B;AAAA,EAE/C,cAAc;AACpB,QAAI,KAAK,SAAU;AAEnB,SAAK;AAAA,MACH,IAAI,YAAY,gBAAgB;AAAA,QAC9B,QAAQ,EAAE,SAAS,KAAK,QAAQ;AAAA,QAChC,SAAS;AAAA,QACT,UAAU;AAAA,MACZ,CAAC;AAAA,IACH;AAAA,EACF;AAAA,EAEA,SAAS;AACP,WAAO;AAAA;AAAA,iBAEM,KAAK,OAAO,IAAI,KAAK,IAAI;AAAA,qBACrB,KAAK,QAAQ;AAAA,kBAChB,KAAK,WAAW;AAAA;AAAA;AAAA;AAAA;AAAA,EAKhC;AACF;AAzGE,cADW,UACJ,UAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA8EY;AAAA,EAA3B,SAAS,EAAE,MAAM,OAAO,CAAC;AAAA,GA/Ef,SA+EiB;AACC;AAAA,EAA5B,SAAS,EAAE,MAAM,QAAQ,CAAC;AAAA,GAhFhB,SAgFkB;AACD;AAAA,EAA3B,SAAS,EAAE,MAAM,OAAO,CAAC;AAAA,GAjFf,SAiFiB;AAjFjB,WAAN;AAAA,EADN,cAAc,WAAW;AAAA,GACb;AA6Gb,IAAI,CAAC,eAAe,IAAI,WAAW,GAAG;AACpC,iBAAe,OAAO,aAAa,QAAQ;AAC7C;","names":[]}
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { LitElement } from 'lit';
|
|
|
4
4
|
|
|
5
5
|
declare class MyButton extends LitElement {
|
|
6
6
|
static styles: lit.CSSResult;
|
|
7
|
-
variant: "primary" | "secondary";
|
|
7
|
+
variant: "primary" | "secondary" | "danger" | "success" | "outline";
|
|
8
8
|
disabled: boolean;
|
|
9
9
|
size: "sm" | "md" | "lg";
|
|
10
10
|
private handleClick;
|
package/dist/index.js
CHANGED
|
@@ -78,6 +78,35 @@ __publicField(MyButton, "styles", css`
|
|
|
78
78
|
background-color: #545b62;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
+
.danger {
|
|
82
|
+
background-color: #dc3545;
|
|
83
|
+
color: white;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.danger:hover:not(:disabled) {
|
|
87
|
+
background-color: #c82333;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.success {
|
|
91
|
+
background-color: #28a745;
|
|
92
|
+
color: white;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.success:hover:not(:disabled) {
|
|
96
|
+
background-color: #218838;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.outline {
|
|
100
|
+
background-color: transparent;
|
|
101
|
+
color: #007bff;
|
|
102
|
+
border: 2px solid #007bff;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.outline:hover:not(:disabled) {
|
|
106
|
+
background-color: #007bff;
|
|
107
|
+
color: white;
|
|
108
|
+
}
|
|
109
|
+
|
|
81
110
|
.sm {
|
|
82
111
|
padding: 0.25rem 0.5rem;
|
|
83
112
|
font-size: 0.875rem;
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/my-button.ts","../src/components/my-input.ts"],"sourcesContent":["import { LitElement, html, css } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { MyButtonProps } from '@lovince/ui-shared';\n\n@customElement(\"my-button\")\nexport class MyButton extends LitElement {\n static styles = css`\n :host {\n display: inline-block;\n }\n \n button {\n padding: 0.5rem 1rem;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n font-family: inherit;\n font-size: inherit;\n transition: all 0.2s ease;\n }\n \n button:disabled {\n opacity: 0.6;\n cursor: not-allowed;\n }\n \n .primary {\n background-color: #007bff;\n color: white;\n }\n \n .primary:hover:not(:disabled) {\n background-color: #0056b3;\n }\n \n .secondary {\n background-color: #6c757d;\n color: white;\n }\n \n .secondary:hover:not(:disabled) {\n background-color: #545b62;\n }\n \n .sm {\n padding: 0.25rem 0.5rem;\n font-size: 0.875rem;\n }\n \n .lg {\n padding: 0.75rem 1.5rem;\n font-size: 1.125rem;\n }\n `;\n\n @property({ type: String }) variant: \"primary\" | \"secondary\" = \"primary\";\n @property({ type: Boolean }) disabled = false;\n @property({ type: String }) size: \"sm\" | \"md\" | \"lg\" = \"md\";\n\n private handleClick() {\n if (this.disabled) return;\n \n this.dispatchEvent(\n new CustomEvent(\"button-click\", {\n detail: { variant: this.variant },\n bubbles: true,\n composed: true,\n })\n );\n }\n\n render() {\n return html`\n <button \n class=\"${this.variant} ${this.size}\"\n ?disabled=\"${this.disabled}\"\n @click=\"${this.handleClick}\"\n >\n <slot></slot>\n </button>\n `;\n }\n}\n\n// SSR-safe element registration\nif (!customElements.get(\"my-button\")) {\n customElements.define(\"my-button\", MyButton);\n}\n","import { LitElement, html, css } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { MyInputProps } from '@lovince/ui-shared';\n\n@customElement(\"my-input\")\nexport class MyInput extends LitElement {\n static styles = css`\n :host {\n display: block;\n }\n \n input {\n width: 100%;\n padding: 0.5rem;\n border: 1px solid #ccc;\n border-radius: 4px;\n font-family: inherit;\n font-size: inherit;\n transition: border-color 0.2s ease;\n }\n \n input:focus {\n outline: none;\n border-color: #007bff;\n }\n \n input:disabled {\n background-color: #f8f9fa;\n opacity: 0.6;\n cursor: not-allowed;\n }\n `;\n\n @property({ type: String }) value = \"\";\n @property({ type: String }) placeholder = \"\";\n @property({ type: Boolean }) disabled = false;\n @property({ type: String }) type: \"text\" | \"email\" | \"password\" = \"text\";\n\n private handleInput(event: Event) {\n const target = event.target as HTMLInputElement;\n this.value = target.value;\n \n this.dispatchEvent(\n new CustomEvent(\"input-change\", {\n detail: { value: this.value },\n bubbles: true,\n composed: true,\n })\n );\n }\n\n render() {\n return html`\n <input\n .value=\"${this.value}\"\n placeholder=\"${this.placeholder}\"\n ?disabled=\"${this.disabled}\"\n type=\"${this.type}\"\n @input=\"${this.handleInput}\"\n />\n `;\n }\n}\n\n// SSR-safe element registration\nif (!customElements.get(\"my-input\")) {\n customElements.define(\"my-input\", MyInput);\n}\n"],"mappings":";;;;;;;;;;;;;;AAAA,SAAS,YAAY,MAAM,WAAW;AACtC,SAAS,eAAe,gBAAgB;AAIjC,IAAM,WAAN,cAAuB,WAAW;AAAA,
|
|
1
|
+
{"version":3,"sources":["../src/components/my-button.ts","../src/components/my-input.ts"],"sourcesContent":["import { LitElement, html, css } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { MyButtonProps } from '@lovince/ui-shared';\n\n@customElement(\"my-button\")\nexport class MyButton extends LitElement {\n static styles = css`\n :host {\n display: inline-block;\n }\n \n button {\n padding: 0.5rem 1rem;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n font-family: inherit;\n font-size: inherit;\n transition: all 0.2s ease;\n }\n \n button:disabled {\n opacity: 0.6;\n cursor: not-allowed;\n }\n \n .primary {\n background-color: #007bff;\n color: white;\n }\n \n .primary:hover:not(:disabled) {\n background-color: #0056b3;\n }\n \n .secondary {\n background-color: #6c757d;\n color: white;\n }\n \n .secondary:hover:not(:disabled) {\n background-color: #545b62;\n }\n \n .danger {\n background-color: #dc3545;\n color: white;\n }\n \n .danger:hover:not(:disabled) {\n background-color: #c82333;\n }\n \n .success {\n background-color: #28a745;\n color: white;\n }\n \n .success:hover:not(:disabled) {\n background-color: #218838;\n }\n \n .outline {\n background-color: transparent;\n color: #007bff;\n border: 2px solid #007bff;\n }\n \n .outline:hover:not(:disabled) {\n background-color: #007bff;\n color: white;\n }\n \n .sm {\n padding: 0.25rem 0.5rem;\n font-size: 0.875rem;\n }\n \n .lg {\n padding: 0.75rem 1.5rem;\n font-size: 1.125rem;\n }\n `;\n\n @property({ type: String }) variant: \"primary\" | \"secondary\" | \"danger\" | \"success\" | \"outline\" = \"primary\";\n @property({ type: Boolean }) disabled = false;\n @property({ type: String }) size: \"sm\" | \"md\" | \"lg\" = \"md\";\n\n private handleClick() {\n if (this.disabled) return;\n \n this.dispatchEvent(\n new CustomEvent(\"button-click\", {\n detail: { variant: this.variant },\n bubbles: true,\n composed: true,\n })\n );\n }\n\n render() {\n return html`\n <button \n class=\"${this.variant} ${this.size}\"\n ?disabled=\"${this.disabled}\"\n @click=\"${this.handleClick}\"\n >\n <slot></slot>\n </button>\n `;\n }\n}\n\n// SSR-safe element registration\nif (!customElements.get(\"my-button\")) {\n customElements.define(\"my-button\", MyButton);\n}\n","import { LitElement, html, css } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { MyInputProps } from '@lovince/ui-shared';\n\n@customElement(\"my-input\")\nexport class MyInput extends LitElement {\n static styles = css`\n :host {\n display: block;\n }\n \n input {\n width: 100%;\n padding: 0.5rem;\n border: 1px solid #ccc;\n border-radius: 4px;\n font-family: inherit;\n font-size: inherit;\n transition: border-color 0.2s ease;\n }\n \n input:focus {\n outline: none;\n border-color: #007bff;\n }\n \n input:disabled {\n background-color: #f8f9fa;\n opacity: 0.6;\n cursor: not-allowed;\n }\n `;\n\n @property({ type: String }) value = \"\";\n @property({ type: String }) placeholder = \"\";\n @property({ type: Boolean }) disabled = false;\n @property({ type: String }) type: \"text\" | \"email\" | \"password\" = \"text\";\n\n private handleInput(event: Event) {\n const target = event.target as HTMLInputElement;\n this.value = target.value;\n \n this.dispatchEvent(\n new CustomEvent(\"input-change\", {\n detail: { value: this.value },\n bubbles: true,\n composed: true,\n })\n );\n }\n\n render() {\n return html`\n <input\n .value=\"${this.value}\"\n placeholder=\"${this.placeholder}\"\n ?disabled=\"${this.disabled}\"\n type=\"${this.type}\"\n @input=\"${this.handleInput}\"\n />\n `;\n }\n}\n\n// SSR-safe element registration\nif (!customElements.get(\"my-input\")) {\n customElements.define(\"my-input\", MyInput);\n}\n"],"mappings":"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","names":["LitElement","html","css","customElement","property","LitElement","html","css","property","customElement"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lovince/ui-core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Framework-agnostic UI components built with Lit",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -11,6 +11,10 @@
|
|
|
11
11
|
"types": "./dist/index.d.ts",
|
|
12
12
|
"import": "./dist/index.js"
|
|
13
13
|
},
|
|
14
|
+
"./custom-elements": {
|
|
15
|
+
"types": "./custom-elements.d.ts",
|
|
16
|
+
"import": "./custom-elements.d.ts"
|
|
17
|
+
},
|
|
14
18
|
"./my-button": {
|
|
15
19
|
"types": "./dist/components/my-button.d.ts",
|
|
16
20
|
"import": "./dist/components/my-button.js"
|
|
@@ -21,7 +25,8 @@
|
|
|
21
25
|
}
|
|
22
26
|
},
|
|
23
27
|
"files": [
|
|
24
|
-
"dist"
|
|
28
|
+
"dist",
|
|
29
|
+
"custom-elements.d.ts"
|
|
25
30
|
],
|
|
26
31
|
"scripts": {
|
|
27
32
|
"build": "tsup",
|