@logosphere-ui/core 0.0.0-alpha.2

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.
Files changed (110) hide show
  1. package/README.md +759 -0
  2. package/dist/atoms/Badge/badge.d.ts +21 -0
  3. package/dist/atoms/Badge/index.d.ts +2 -0
  4. package/dist/atoms/Button/button.d.ts +11 -0
  5. package/dist/atoms/Button/index.d.ts +1 -0
  6. package/dist/atoms/Checkbox/checkbox.d.ts +20 -0
  7. package/dist/atoms/Checkbox/index.d.ts +1 -0
  8. package/dist/atoms/FormField/formfield.d.ts +30 -0
  9. package/dist/atoms/FormField/index.d.ts +2 -0
  10. package/dist/atoms/Switch/index.d.ts +1 -0
  11. package/dist/atoms/Switch/switch.d.ts +10 -0
  12. package/dist/badge-BbhaO73N.cjs +13 -0
  13. package/dist/badge-DE7Tgd8Z.js +71 -0
  14. package/dist/badge.cjs +1 -0
  15. package/dist/badge.js +4 -0
  16. package/dist/breadcrumb-B-4yqoJZ.js +41 -0
  17. package/dist/breadcrumb-Cop-B1J7.cjs +12 -0
  18. package/dist/breadcrumb.cjs +1 -0
  19. package/dist/breadcrumb.js +4 -0
  20. package/dist/button-C1EwOosO.js +58 -0
  21. package/dist/button-CDRccsk9.cjs +10 -0
  22. package/dist/button.cjs +1 -0
  23. package/dist/button.js +4 -0
  24. package/dist/card-CUhlTJyJ.js +97 -0
  25. package/dist/card-n8ka8Zk-.cjs +43 -0
  26. package/dist/card.cjs +1 -0
  27. package/dist/card.js +4 -0
  28. package/dist/chatbot-Ces7Xveb.js +496 -0
  29. package/dist/chatbot-oRwt64d8.cjs +160 -0
  30. package/dist/chatbot.cjs +1 -0
  31. package/dist/chatbot.js +4 -0
  32. package/dist/checkbox-7Rb3WKGx.js +119 -0
  33. package/dist/checkbox-CdDTRdKV.cjs +37 -0
  34. package/dist/checkbox.cjs +1 -0
  35. package/dist/checkbox.js +4 -0
  36. package/dist/combobox-BJbI-Tgi.js +268 -0
  37. package/dist/combobox-pmE7bgEL.cjs +99 -0
  38. package/dist/combobox.cjs +1 -0
  39. package/dist/combobox.js +4 -0
  40. package/dist/datepicker-DFJx45C-.js +750 -0
  41. package/dist/datepicker-b9JGTTMx.cjs +115 -0
  42. package/dist/datepicker.cjs +1 -0
  43. package/dist/datepicker.js +4 -0
  44. package/dist/directive-Z_rhNYWK.js +240 -0
  45. package/dist/directive-ekjitgzi.cjs +3 -0
  46. package/dist/download-manager-A4fOxGWJ.js +381 -0
  47. package/dist/download-manager-BSIMTGaK.cjs +97 -0
  48. package/dist/download-manager.cjs +1 -0
  49. package/dist/download-manager.js +4 -0
  50. package/dist/formfield-D_7NFFoe.cjs +27 -0
  51. package/dist/formfield-d8fp9FTV.js +118 -0
  52. package/dist/formfield.cjs +1 -0
  53. package/dist/formfield.js +4 -0
  54. package/dist/index.cjs +1 -0
  55. package/dist/index.d.ts +16 -0
  56. package/dist/index.js +34 -0
  57. package/dist/index.umd.js +819 -0
  58. package/dist/input-ByllRq9M.js +192 -0
  59. package/dist/input-DsIOQPGV.cjs +46 -0
  60. package/dist/input.cjs +1 -0
  61. package/dist/input.js +4 -0
  62. package/dist/live-BX-yBGvT.cjs +1 -0
  63. package/dist/live-WTVSYE2F.js +24 -0
  64. package/dist/modal-Bfc6WQSL.js +110 -0
  65. package/dist/modal-DQ8VFL-P.cjs +39 -0
  66. package/dist/modal.cjs +1 -0
  67. package/dist/modal.js +4 -0
  68. package/dist/molecules/Breadcrumb/breadcrumb.d.ts +10 -0
  69. package/dist/molecules/Breadcrumb/index.d.ts +1 -0
  70. package/dist/molecules/Card/card.d.ts +16 -0
  71. package/dist/molecules/Card/index.d.ts +1 -0
  72. package/dist/molecules/Input/index.d.ts +2 -0
  73. package/dist/molecules/Input/input.d.ts +50 -0
  74. package/dist/molecules/Popover/index.d.ts +1 -0
  75. package/dist/molecules/Popover/popover.d.ts +33 -0
  76. package/dist/molecules/Textarea/index.d.ts +1 -0
  77. package/dist/molecules/Textarea/text-area.d.ts +49 -0
  78. package/dist/organisms/Chatbot/chatbot.d.ts +79 -0
  79. package/dist/organisms/Chatbot/index.d.ts +1 -0
  80. package/dist/organisms/Combobox/combobox.d.ts +49 -0
  81. package/dist/organisms/Combobox/index.d.ts +1 -0
  82. package/dist/organisms/DatePicker/datepicker.d.ts +79 -0
  83. package/dist/organisms/DatePicker/index.d.ts +1 -0
  84. package/dist/organisms/DownloadManager/download-manager.d.ts +52 -0
  85. package/dist/organisms/DownloadManager/index.d.ts +1 -0
  86. package/dist/organisms/Modal/index.d.ts +1 -0
  87. package/dist/organisms/Modal/modal.d.ts +21 -0
  88. package/dist/organisms/Tab/index.d.ts +1 -0
  89. package/dist/organisms/Tab/tab.d.ts +33 -0
  90. package/dist/popover-C_Ob86CJ.cjs +30 -0
  91. package/dist/popover-D-FXdEdS.js +1040 -0
  92. package/dist/popover.cjs +1 -0
  93. package/dist/popover.js +4 -0
  94. package/dist/shared/icons/icon-map.d.ts +1 -0
  95. package/dist/shared/icons/ui-icon.d.ts +15 -0
  96. package/dist/styles/main.css +247 -0
  97. package/dist/switch-Cpl53nRW.js +64 -0
  98. package/dist/switch-Rnnn10bn.cjs +17 -0
  99. package/dist/switch.cjs +1 -0
  100. package/dist/switch.js +4 -0
  101. package/dist/tab-BKdN4xAz.js +176 -0
  102. package/dist/tab-DcjAlXzU.cjs +40 -0
  103. package/dist/tab.cjs +1 -0
  104. package/dist/tab.js +4 -0
  105. package/dist/text-area-CtZY3yLA.js +204 -0
  106. package/dist/text-area-DFDF5oos.cjs +44 -0
  107. package/dist/textarea.cjs +1 -0
  108. package/dist/textarea.js +4 -0
  109. package/dist/vite.svg +1 -0
  110. package/package.json +185 -0
@@ -0,0 +1,204 @@
1
+ import { LitElement as d, nothing as l, html as u, unsafeCSS as y, css as c } from "lit";
2
+ import { query as m, property as a, state as _, customElement as f } from "lit/decorators.js";
3
+ import { l as v } from "./live-WTVSYE2F.js";
4
+ const b = ".textarea__field{width:100%;background:transparent;border:none;outline:none;font-size:var(--font-size-sm);font-family:var(--font-family-base);color:var(--color-body-text);box-sizing:border-box;line-height:1.5}.textarea__field::placeholder{color:var(--color-tertiary)}.textarea__field:disabled{cursor:not-allowed}.textarea__field--resize-none{resize:none}.textarea__field--resize-vertical{resize:vertical}.textarea__field--resize-horizontal{resize:horizontal}.textarea__field--resize-both{resize:both}.textarea__field--auto-resize{resize:none;overflow:hidden}.textarea__clear-btn{border:none;background:transparent;color:var(--color-gray-400);cursor:pointer;padding:0;display:inline-flex;align-items:flex-start;align-self:flex-start;margin-top:var(--spacing-1);outline:none;flex-shrink:0;transition:color var(--transition-speed-fast) var(--transition-timing)}.textarea__clear-btn:hover{color:var(--color-gray-600)}";
5
+ var x = Object.defineProperty, g = Object.getOwnPropertyDescriptor, r = (e, i, s, n) => {
6
+ for (var o = n > 1 ? void 0 : n ? g(i, s) : i, h = e.length - 1, p; h >= 0; h--)
7
+ (p = e[h]) && (o = (n ? p(i, s, o) : p(o)) || o);
8
+ return n && o && x(i, s, o), o;
9
+ };
10
+ let t = class extends d {
11
+ constructor() {
12
+ super(...arguments), this.value = "", this.placeholder = "", this.name = "", this.autocomplete = "", this.rows = 3, this.wrap = "soft", this.resize = "vertical", this.autoResize = !1, this.size = "default", this.variant = "default", this.showClear = !1, this.label = "", this.helper = "", this.error = "", this.required = !1, this.disabled = !1, this.readonly = !1, this._internalError = "", this.handleInput = (e) => {
13
+ const i = e.target;
14
+ this.value = i.value, this.autoResize && this.adjustHeight(), this._internalError && (this._internalError = "", this._textareaElement.setCustomValidity("")), this.dispatchEvent(new CustomEvent("input", {
15
+ bubbles: !0,
16
+ composed: !0,
17
+ detail: { value: this.value, originalEvent: e }
18
+ }));
19
+ }, this.handleChange = (e) => {
20
+ const i = e.target;
21
+ this.value = i.value, i.checkValidity() || (this._internalError = i.validationMessage), this.dispatchEvent(new CustomEvent("change", {
22
+ bubbles: !0,
23
+ composed: !0,
24
+ detail: { value: this.value, originalEvent: e }
25
+ }));
26
+ }, this.handleKeyDown = (e) => {
27
+ this.dispatchEvent(new CustomEvent("keydown", {
28
+ bubbles: !0,
29
+ composed: !0,
30
+ detail: { key: e.key, originalEvent: e }
31
+ }));
32
+ }, this.handleKeyUp = (e) => {
33
+ this.dispatchEvent(new CustomEvent("keyup", {
34
+ bubbles: !0,
35
+ composed: !0,
36
+ detail: { key: e.key, originalEvent: e }
37
+ }));
38
+ }, this.handleClear = () => {
39
+ this.value = "", this._textareaElement && (this._textareaElement.value = "", this.autoResize && this.adjustHeight()), this.dispatchEvent(new CustomEvent("clear", { bubbles: !0, composed: !0 })), this.dispatchEvent(new CustomEvent("input", {
40
+ bubbles: !0,
41
+ composed: !0,
42
+ detail: { value: "", originalEvent: null }
43
+ }));
44
+ };
45
+ }
46
+ get textareaElement() {
47
+ return this._textareaElement;
48
+ }
49
+ focus() {
50
+ this._textareaElement?.focus();
51
+ }
52
+ blur() {
53
+ this._textareaElement?.blur();
54
+ }
55
+ select() {
56
+ this._textareaElement?.select();
57
+ }
58
+ setSelectionRange(e, i, s) {
59
+ this._textareaElement?.setSelectionRange(e, i, s);
60
+ }
61
+ checkValidity() {
62
+ return this._textareaElement?.checkValidity() ?? !0;
63
+ }
64
+ reportValidity() {
65
+ return this._textareaElement?.reportValidity() ?? !0;
66
+ }
67
+ setCustomValidity(e) {
68
+ this._textareaElement?.setCustomValidity(e), this._internalError = e, this.requestUpdate();
69
+ }
70
+ adjustHeight() {
71
+ !this.autoResize || !this._textareaElement || (this._textareaElement.style.height = "auto", this._textareaElement.style.height = `${this._textareaElement.scrollHeight}px`);
72
+ }
73
+ updated(e) {
74
+ super.updated(e), e.has("value") && this.autoResize && this.adjustHeight();
75
+ }
76
+ getResizeClass() {
77
+ return this.autoResize ? "textarea__field--auto-resize" : {
78
+ none: "textarea__field--resize-none",
79
+ vertical: "textarea__field--resize-vertical",
80
+ horizontal: "textarea__field--resize-horizontal",
81
+ both: "textarea__field--resize-both"
82
+ }[this.resize];
83
+ }
84
+ render() {
85
+ const e = this.error || this._internalError, i = this.showClear && this.value && !this.disabled && !this.readonly, s = `textarea__field ${this.getResizeClass()}`;
86
+ return u`
87
+ <logosphere-formfield
88
+ .label=${this.label}
89
+ .helper=${this.helper}
90
+ .error=${e}
91
+ .required=${this.required}
92
+ .disabled=${this.disabled}
93
+ .readonly=${this.readonly}
94
+ .placeholder=${this.placeholder}
95
+ .size=${this.size}
96
+ .variant=${this.variant}
97
+ >
98
+ <textarea
99
+ class="${s}"
100
+ .value=${v(this.value)}
101
+ placeholder=${this.placeholder || l}
102
+ name=${this.name || l}
103
+ autocomplete=${this.autocomplete || l}
104
+ ?required=${this.required}
105
+ ?disabled=${this.disabled}
106
+ ?readonly=${this.readonly}
107
+ minlength=${this.minlength ?? l}
108
+ maxlength=${this.maxlength ?? l}
109
+ rows=${this.rows}
110
+ cols=${this.cols ?? l}
111
+ wrap=${this.wrap}
112
+ @input=${this.handleInput}
113
+ @change=${this.handleChange}
114
+ @keydown=${this.handleKeyDown}
115
+ @keyup=${this.handleKeyUp}
116
+ ></textarea>
117
+ ${i ? u`
118
+ <button
119
+ type="button"
120
+ slot="suffix"
121
+ class="textarea__clear-btn"
122
+ @click=${this.handleClear}
123
+ tabindex="-1"
124
+ >
125
+ <ui-icon name="uil-times" size="14"></ui-icon>
126
+ </button>
127
+ ` : l}
128
+ </logosphere-formfield>
129
+ `;
130
+ }
131
+ };
132
+ t.styles = [c`${y(b)}`];
133
+ r([
134
+ m("textarea")
135
+ ], t.prototype, "_textareaElement", 2);
136
+ r([
137
+ a({ type: String })
138
+ ], t.prototype, "value", 2);
139
+ r([
140
+ a({ type: String })
141
+ ], t.prototype, "placeholder", 2);
142
+ r([
143
+ a({ type: String })
144
+ ], t.prototype, "name", 2);
145
+ r([
146
+ a({ type: String })
147
+ ], t.prototype, "autocomplete", 2);
148
+ r([
149
+ a({ type: Number })
150
+ ], t.prototype, "minlength", 2);
151
+ r([
152
+ a({ type: Number })
153
+ ], t.prototype, "maxlength", 2);
154
+ r([
155
+ a({ type: Number })
156
+ ], t.prototype, "rows", 2);
157
+ r([
158
+ a({ type: Number })
159
+ ], t.prototype, "cols", 2);
160
+ r([
161
+ a({ type: String })
162
+ ], t.prototype, "wrap", 2);
163
+ r([
164
+ a({ type: String })
165
+ ], t.prototype, "resize", 2);
166
+ r([
167
+ a({ type: Boolean })
168
+ ], t.prototype, "autoResize", 2);
169
+ r([
170
+ a({ type: String })
171
+ ], t.prototype, "size", 2);
172
+ r([
173
+ a({ type: String })
174
+ ], t.prototype, "variant", 2);
175
+ r([
176
+ a({ type: Boolean })
177
+ ], t.prototype, "showClear", 2);
178
+ r([
179
+ a({ type: String })
180
+ ], t.prototype, "label", 2);
181
+ r([
182
+ a({ type: String })
183
+ ], t.prototype, "helper", 2);
184
+ r([
185
+ a({ type: String })
186
+ ], t.prototype, "error", 2);
187
+ r([
188
+ a({ type: Boolean })
189
+ ], t.prototype, "required", 2);
190
+ r([
191
+ a({ type: Boolean })
192
+ ], t.prototype, "disabled", 2);
193
+ r([
194
+ a({ type: Boolean })
195
+ ], t.prototype, "readonly", 2);
196
+ r([
197
+ _()
198
+ ], t.prototype, "_internalError", 2);
199
+ t = r([
200
+ f("logosphere-textarea")
201
+ ], t);
202
+ export {
203
+ t as T
204
+ };
@@ -0,0 +1,44 @@
1
+ "use strict";const i=require("lit"),t=require("lit/decorators.js"),p=require("./live-BX-yBGvT.cjs"),u=".textarea__field{width:100%;background:transparent;border:none;outline:none;font-size:var(--font-size-sm);font-family:var(--font-family-base);color:var(--color-body-text);box-sizing:border-box;line-height:1.5}.textarea__field::placeholder{color:var(--color-tertiary)}.textarea__field:disabled{cursor:not-allowed}.textarea__field--resize-none{resize:none}.textarea__field--resize-vertical{resize:vertical}.textarea__field--resize-horizontal{resize:horizontal}.textarea__field--resize-both{resize:both}.textarea__field--auto-resize{resize:none;overflow:hidden}.textarea__clear-btn{border:none;background:transparent;color:var(--color-gray-400);cursor:pointer;padding:0;display:inline-flex;align-items:flex-start;align-self:flex-start;margin-top:var(--spacing-1);outline:none;flex-shrink:0;transition:color var(--transition-speed-fast) var(--transition-timing)}.textarea__clear-btn:hover{color:var(--color-gray-600)}";var d=Object.defineProperty,y=Object.getOwnPropertyDescriptor,r=(l,e,a,o)=>{for(var s=o>1?void 0:o?y(e,a):e,n=l.length-1,h;n>=0;n--)(h=l[n])&&(s=(o?h(e,a,s):h(s))||s);return o&&s&&d(e,a,s),s};exports.TextArea=class extends i.LitElement{constructor(){super(...arguments),this.value="",this.placeholder="",this.name="",this.autocomplete="",this.rows=3,this.wrap="soft",this.resize="vertical",this.autoResize=!1,this.size="default",this.variant="default",this.showClear=!1,this.label="",this.helper="",this.error="",this.required=!1,this.disabled=!1,this.readonly=!1,this._internalError="",this.handleInput=e=>{const a=e.target;this.value=a.value,this.autoResize&&this.adjustHeight(),this._internalError&&(this._internalError="",this._textareaElement.setCustomValidity("")),this.dispatchEvent(new CustomEvent("input",{bubbles:!0,composed:!0,detail:{value:this.value,originalEvent:e}}))},this.handleChange=e=>{const a=e.target;this.value=a.value,a.checkValidity()||(this._internalError=a.validationMessage),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,detail:{value:this.value,originalEvent:e}}))},this.handleKeyDown=e=>{this.dispatchEvent(new CustomEvent("keydown",{bubbles:!0,composed:!0,detail:{key:e.key,originalEvent:e}}))},this.handleKeyUp=e=>{this.dispatchEvent(new CustomEvent("keyup",{bubbles:!0,composed:!0,detail:{key:e.key,originalEvent:e}}))},this.handleClear=()=>{this.value="",this._textareaElement&&(this._textareaElement.value="",this.autoResize&&this.adjustHeight()),this.dispatchEvent(new CustomEvent("clear",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("input",{bubbles:!0,composed:!0,detail:{value:"",originalEvent:null}}))}}get textareaElement(){return this._textareaElement}focus(){this._textareaElement?.focus()}blur(){this._textareaElement?.blur()}select(){this._textareaElement?.select()}setSelectionRange(e,a,o){this._textareaElement?.setSelectionRange(e,a,o)}checkValidity(){return this._textareaElement?.checkValidity()??!0}reportValidity(){return this._textareaElement?.reportValidity()??!0}setCustomValidity(e){this._textareaElement?.setCustomValidity(e),this._internalError=e,this.requestUpdate()}adjustHeight(){!this.autoResize||!this._textareaElement||(this._textareaElement.style.height="auto",this._textareaElement.style.height=`${this._textareaElement.scrollHeight}px`)}updated(e){super.updated(e),e.has("value")&&this.autoResize&&this.adjustHeight()}getResizeClass(){return this.autoResize?"textarea__field--auto-resize":{none:"textarea__field--resize-none",vertical:"textarea__field--resize-vertical",horizontal:"textarea__field--resize-horizontal",both:"textarea__field--resize-both"}[this.resize]}render(){const e=this.error||this._internalError,a=this.showClear&&this.value&&!this.disabled&&!this.readonly,o=`textarea__field ${this.getResizeClass()}`;return i.html`
2
+ <logosphere-formfield
3
+ .label=${this.label}
4
+ .helper=${this.helper}
5
+ .error=${e}
6
+ .required=${this.required}
7
+ .disabled=${this.disabled}
8
+ .readonly=${this.readonly}
9
+ .placeholder=${this.placeholder}
10
+ .size=${this.size}
11
+ .variant=${this.variant}
12
+ >
13
+ <textarea
14
+ class="${o}"
15
+ .value=${p.l(this.value)}
16
+ placeholder=${this.placeholder||i.nothing}
17
+ name=${this.name||i.nothing}
18
+ autocomplete=${this.autocomplete||i.nothing}
19
+ ?required=${this.required}
20
+ ?disabled=${this.disabled}
21
+ ?readonly=${this.readonly}
22
+ minlength=${this.minlength??i.nothing}
23
+ maxlength=${this.maxlength??i.nothing}
24
+ rows=${this.rows}
25
+ cols=${this.cols??i.nothing}
26
+ wrap=${this.wrap}
27
+ @input=${this.handleInput}
28
+ @change=${this.handleChange}
29
+ @keydown=${this.handleKeyDown}
30
+ @keyup=${this.handleKeyUp}
31
+ ></textarea>
32
+ ${a?i.html`
33
+ <button
34
+ type="button"
35
+ slot="suffix"
36
+ class="textarea__clear-btn"
37
+ @click=${this.handleClear}
38
+ tabindex="-1"
39
+ >
40
+ <ui-icon name="uil-times" size="14"></ui-icon>
41
+ </button>
42
+ `:i.nothing}
43
+ </logosphere-formfield>
44
+ `}};exports.TextArea.styles=[i.css`${i.unsafeCSS(u)}`];r([t.query("textarea")],exports.TextArea.prototype,"_textareaElement",2);r([t.property({type:String})],exports.TextArea.prototype,"value",2);r([t.property({type:String})],exports.TextArea.prototype,"placeholder",2);r([t.property({type:String})],exports.TextArea.prototype,"name",2);r([t.property({type:String})],exports.TextArea.prototype,"autocomplete",2);r([t.property({type:Number})],exports.TextArea.prototype,"minlength",2);r([t.property({type:Number})],exports.TextArea.prototype,"maxlength",2);r([t.property({type:Number})],exports.TextArea.prototype,"rows",2);r([t.property({type:Number})],exports.TextArea.prototype,"cols",2);r([t.property({type:String})],exports.TextArea.prototype,"wrap",2);r([t.property({type:String})],exports.TextArea.prototype,"resize",2);r([t.property({type:Boolean})],exports.TextArea.prototype,"autoResize",2);r([t.property({type:String})],exports.TextArea.prototype,"size",2);r([t.property({type:String})],exports.TextArea.prototype,"variant",2);r([t.property({type:Boolean})],exports.TextArea.prototype,"showClear",2);r([t.property({type:String})],exports.TextArea.prototype,"label",2);r([t.property({type:String})],exports.TextArea.prototype,"helper",2);r([t.property({type:String})],exports.TextArea.prototype,"error",2);r([t.property({type:Boolean})],exports.TextArea.prototype,"required",2);r([t.property({type:Boolean})],exports.TextArea.prototype,"disabled",2);r([t.property({type:Boolean})],exports.TextArea.prototype,"readonly",2);r([t.state()],exports.TextArea.prototype,"_internalError",2);exports.TextArea=r([t.customElement("logosphere-textarea")],exports.TextArea);
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./text-area-DFDF5oos.cjs");Object.defineProperty(exports,"TextArea",{enumerable:!0,get:()=>e.TextArea});
@@ -0,0 +1,4 @@
1
+ import { T as a } from "./text-area-CtZY3yLA.js";
2
+ export {
3
+ a as TextArea
4
+ };
package/dist/vite.svg ADDED
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
package/package.json ADDED
@@ -0,0 +1,185 @@
1
+ {
2
+ "name": "@logosphere-ui/core",
3
+ "version": "0.0.0-alpha.2",
4
+ "description": "A modern, framework-agnostic UI component library built with Lit and Web Components",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "sideEffects": false,
9
+ "files": [
10
+ "dist/**/*",
11
+ "README.md"
12
+ ],
13
+ "exports": {
14
+ ".": {
15
+ "types": "./dist/index.d.ts",
16
+ "import": "./dist/index.js",
17
+ "require": "./dist/index.cjs"
18
+ },
19
+ "./button": {
20
+ "types": "./dist/atoms/Button/index.d.ts",
21
+ "import": "./dist/button.js",
22
+ "require": "./dist/button.cjs"
23
+ },
24
+ "./modal": {
25
+ "types": "./dist/organisms/Modal/index.d.ts",
26
+ "import": "./dist/modal.js",
27
+ "require": "./dist/modal.cjs"
28
+ },
29
+ "./checkbox": {
30
+ "types": "./dist/atoms/Checkbox/index.d.ts",
31
+ "import": "./dist/checkbox.js",
32
+ "require": "./dist/checkbox.cjs"
33
+ },
34
+ "./chatbot": {
35
+ "types": "./dist/organisms/Chatbot/index.d.ts",
36
+ "import": "./dist/chatbot.js",
37
+ "require": "./dist/chatbot.cjs"
38
+ },
39
+ "./popover": {
40
+ "types": "./dist/molecules/Popover/index.d.ts",
41
+ "import": "./dist/popover.js",
42
+ "require": "./dist/popover.cjs"
43
+ },
44
+ "./switch": {
45
+ "types": "./dist/atoms/Switch/index.d.ts",
46
+ "import": "./dist/switch.js",
47
+ "require": "./dist/switch.cjs"
48
+ },
49
+ "./card": {
50
+ "types": "./dist/molecules/Card/index.d.ts",
51
+ "import": "./dist/card.js",
52
+ "require": "./dist/card.cjs"
53
+ },
54
+ "./breadcrumb": {
55
+ "types": "./dist/molecules/Breadcrumb/index.d.ts",
56
+ "import": "./dist/breadcrumb.js",
57
+ "require": "./dist/breadcrumb.cjs"
58
+ },
59
+ "./formfield": {
60
+ "types": "./dist/atoms/FormField/index.d.ts",
61
+ "import": "./dist/formfield.js",
62
+ "require": "./dist/formfield.cjs"
63
+ },
64
+ "./combobox": {
65
+ "types": "./dist/organisms/Combobox/index.d.ts",
66
+ "import": "./dist/combobox.js",
67
+ "require": "./dist/combobox.cjs"
68
+ },
69
+ "./textarea": {
70
+ "types": "./dist/molecules/Textarea/index.d.ts",
71
+ "import": "./dist/textarea.js",
72
+ "require": "./dist/textarea.cjs"
73
+ },
74
+ "./datepicker": {
75
+ "types": "./dist/organisms/DatePicker/index.d.ts",
76
+ "import": "./dist/datepicker.js",
77
+ "require": "./dist/datepicker.cjs"
78
+ },
79
+ "./download-manager": {
80
+ "types": "./dist/organisms/DownloadManager/index.d.ts",
81
+ "import": "./dist/download-manager.js",
82
+ "require": "./dist/download-manager.cjs"
83
+ },
84
+ "./tab": {
85
+ "types": "./dist/organisms/Tab/index.d.ts",
86
+ "import": "./dist/tab.js",
87
+ "require": "./dist/tab.cjs"
88
+ },
89
+ "./styles/main.css": "./dist/styles/main.css"
90
+ },
91
+ "keywords": [
92
+ "web-components",
93
+ "ui-library",
94
+ "lit",
95
+ "angular",
96
+ "vanilla-js",
97
+ "design-system",
98
+ "components",
99
+ "css-variables",
100
+ "enterprise"
101
+ ],
102
+ "author": "Logo",
103
+ "license": "MIT",
104
+ "readme": "README.md",
105
+ "repository": {
106
+ "type": "git",
107
+ "url": "https://github.com/logo-software/logosphere-ui.git"
108
+ },
109
+ "homepage": "https://github.com/logo-software/logosphere-ui#readme",
110
+ "bugs": {
111
+ "url": "https://github.com/logo-software/logosphere-ui/issues"
112
+ },
113
+ "scripts": {
114
+ "dev": "vite",
115
+ "build": "npm run build:main && npm run build:umd && npm run build:types && npm run build:css",
116
+ "build:main": "vite build --config vite.build.config.ts",
117
+ "build:umd": "vite build --config vite.umd.config.ts",
118
+ "build:types": "tsc --emitDeclarationOnly --noEmit false --outDir dist",
119
+ "test": "vitest",
120
+ "test:ui": "vitest --ui",
121
+ "test:run": "vitest run",
122
+ "test:watch": "vitest --watch",
123
+ "test:coverage": "vitest run --coverage",
124
+ "test:unit": "vitest run src/**/*.test.ts",
125
+ "test:integration": "vitest run tests/integration/**/*.test.ts",
126
+ "preview": "vite preview",
127
+ "create-component": "node create-component.cjs",
128
+ "create-new-component": "node create-new-component.js",
129
+ "storybook": "storybook dev -p 6006",
130
+ "build-storybook": "storybook build",
131
+ "build:css": "node build-css.js",
132
+ "format": "prettier --write .",
133
+ "format:check": "prettier --check .",
134
+ "format:packages": "prettier --write packages/**/*.{ts,js,html,css,md} --ignore-path .prettierignore",
135
+ "format:src": "prettier --write src/**/*.{ts,js,html,css,md} --ignore-path .prettierignore",
136
+ "lint": "eslint .",
137
+ "lint:fix": "eslint . --fix",
138
+ "lint:packages": "eslint packages/**/*.{ts,js}",
139
+ "lint:src": "eslint src/**/*.{ts,js}",
140
+ "prepublishOnly": "npm run build"
141
+ },
142
+ "dependencies": {
143
+ "@iconscout/unicons": "^4.2.0",
144
+ "@popperjs/core": "^2.11.8",
145
+ "dayjs": "^1.11.18",
146
+ "lit": "^3.3.0"
147
+ },
148
+ "devDependencies": {
149
+ "@babel/core": "^7.28.4",
150
+ "@babel/plugin-proposal-class-properties": "^7.18.6",
151
+ "@babel/plugin-proposal-optional-chaining": "^7.21.0",
152
+ "@babel/preset-env": "^7.28.3",
153
+ "@chromatic-com/storybook": "^4.1.3",
154
+ "@open-wc/testing": "^4.0.0",
155
+ "@rollup/plugin-babel": "^6.1.0",
156
+ "@rollup/plugin-typescript": "^12.1.4",
157
+ "@storybook/addon-a11y": "^10.1.4",
158
+ "@storybook/addon-docs": "^10.1.4",
159
+ "@storybook/addon-vitest": "^10.1.4",
160
+ "@storybook/builder-vite": "^10.1.4",
161
+ "@storybook/web-components-vite": "^10.1.4",
162
+ "@testing-library/jest-dom": "^6.9.1",
163
+ "@types/jest": "^30.0.0",
164
+ "@typescript-eslint/eslint-plugin": "^8.41.0",
165
+ "@typescript-eslint/parser": "^8.41.0",
166
+ "@vitest/browser": "^3.2.4",
167
+ "@vitest/coverage-v8": "^3.2.4",
168
+ "@web/test-runner": "^0.20.2",
169
+ "@web/test-runner-playwright": "^0.11.1",
170
+ "baseline-browser-mapping": "^2.9.12",
171
+ "eslint": "^9.34.0",
172
+ "eslint-plugin-storybook": "10.1.4",
173
+ "globals": "^16.4.0",
174
+ "jsdom": "^27.0.1",
175
+ "playwright": "^1.54.1",
176
+ "prettier": "^3.6.2",
177
+ "rollup-plugin-copy": "^3.5.0",
178
+ "storybook": "^10.1.4",
179
+ "ts-node": "^10.9.2",
180
+ "typescript": "~5.8.3",
181
+ "vite": "^7.0.3",
182
+ "vite-plugin-string": "^1.2.3",
183
+ "vitest": "^3.2.4"
184
+ }
185
+ }