@waggylabs/yumekit 0.5.1 → 0.5.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.
Files changed (38) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +54 -63
  3. package/dist/ai/llm.txt +14 -11
  4. package/dist/ai/skill/examples/nav-layout.html +5 -5
  5. package/dist/ai/skill/examples/themed-app.html +6 -6
  6. package/dist/ai/skill/patterns.md +7 -7
  7. package/dist/ai/skill/reference.md +21 -18
  8. package/dist/components/y-appbar.js +45 -16
  9. package/dist/components/y-banner.js +44 -15
  10. package/dist/components/y-button/y-button.d.ts +11 -4
  11. package/dist/components/y-button.d.ts +11 -4
  12. package/dist/components/y-button.js +43 -14
  13. package/dist/components/y-checkbox.js +7 -1
  14. package/dist/components/y-code.js +9 -2
  15. package/dist/components/y-color.js +12 -2
  16. package/dist/components/y-colorpicker.js +12 -2
  17. package/dist/components/y-data-grid.js +83 -35
  18. package/dist/components/y-date.js +72 -30
  19. package/dist/components/y-datepicker.js +72 -30
  20. package/dist/components/y-dialog.js +1 -1
  21. package/dist/components/y-help.js +46 -17
  22. package/dist/components/y-input.js +11 -1
  23. package/dist/components/y-paginator.js +46 -17
  24. package/dist/components/y-select.js +1 -1
  25. package/dist/components/y-sidebar.js +45 -16
  26. package/dist/components/y-tabs/y-tabs.d.ts +17 -0
  27. package/dist/components/y-tabs.d.ts +17 -0
  28. package/dist/components/y-tabs.js +193 -8
  29. package/dist/components/y-tag/y-tag.d.ts +9 -2
  30. package/dist/components/y-tag.d.ts +9 -2
  31. package/dist/components/y-tag.js +36 -8
  32. package/dist/components/y-textarea.js +11 -1
  33. package/dist/index.js +341 -63
  34. package/dist/react.d.ts +5 -0
  35. package/dist/yumekit.min.js +1 -1
  36. package/llm.txt +14 -11
  37. package/package.json +1 -1
  38. package/scripts/install-ai-docs.js +93 -72
@@ -125,7 +125,10 @@ class YumeTextarea extends HTMLElement {
125
125
  : "default";
126
126
  }
127
127
  set variant(val) {
128
- this.setAttribute("variant", val === "underline" ? "underline" : "default");
128
+ this.setAttribute(
129
+ "variant",
130
+ val === "underline" ? "underline" : "default",
131
+ );
129
132
  }
130
133
 
131
134
  /** @type {string} The current textarea value. */
@@ -182,6 +185,13 @@ class YumeTextarea extends HTMLElement {
182
185
  // -------------------------------------------------------------------------
183
186
 
184
187
  _bindTextareaListeners() {
188
+ this.inputContainer.addEventListener("mousedown", (e) => {
189
+ if (e.target !== this.textarea) {
190
+ e.preventDefault();
191
+ this.textarea.focus();
192
+ }
193
+ });
194
+
185
195
  this.textarea.addEventListener("input", (e) => {
186
196
  this.setAttribute("value", e.target.value);
187
197
  this._internals.setFormValue(