@limetech/lime-elements 39.16.4 → 39.17.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.
Files changed (36) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/cjs/lime-elements.cjs.js +1 -1
  3. package/dist/cjs/limel-form.cjs.entry.js +128 -1
  4. package/dist/cjs/{limel-portal_3.cjs.entry.js → limel-hotkey_4.cjs.entry.js} +148 -13
  5. package/dist/cjs/limel-icon-button.cjs.entry.js +1 -1
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/collection/components/form/fields/array-field.js +97 -1
  8. package/dist/collection/components/form/fields/field-helpers.js +15 -0
  9. package/dist/collection/components/form/fields/schema-field.js +19 -2
  10. package/dist/collection/components/form/form.test-schemas.js +118 -0
  11. package/dist/collection/components/icon-button/icon-button.js +1 -1
  12. package/dist/collection/components/tooltip/tooltip-content.css +21 -16
  13. package/dist/collection/components/tooltip/tooltip-content.js +40 -9
  14. package/dist/collection/components/tooltip/tooltip.js +26 -17
  15. package/dist/esm/lime-elements.js +1 -1
  16. package/dist/esm/limel-form.entry.js +128 -1
  17. package/dist/esm/{limel-portal_3.entry.js → limel-hotkey_4.entry.js} +149 -15
  18. package/dist/esm/limel-icon-button.entry.js +1 -1
  19. package/dist/esm/loader.js +1 -1
  20. package/dist/lime-elements/lime-elements.esm.js +1 -1
  21. package/dist/lime-elements/p-6b956d6d.entry.js +1 -0
  22. package/dist/lime-elements/p-cba72cd6.entry.js +1 -0
  23. package/dist/lime-elements/{p-1cb2d781.entry.js → p-e60ffc0a.entry.js} +4 -4
  24. package/dist/types/components/form/fields/array-field.d.ts +20 -0
  25. package/dist/types/components/form/fields/field-helpers.d.ts +10 -0
  26. package/dist/types/components/form/fields/schema-field.d.ts +10 -0
  27. package/dist/types/components/form/form.test-schemas.d.ts +4 -0
  28. package/dist/types/components/tooltip/tooltip-content.d.ts +7 -1
  29. package/dist/types/components/tooltip/tooltip.d.ts +9 -15
  30. package/dist/types/components.d.ts +28 -42
  31. package/package.json +1 -1
  32. package/dist/cjs/limel-hotkey.cjs.entry.js +0 -128
  33. package/dist/esm/limel-hotkey.entry.js +0 -126
  34. package/dist/lime-elements/p-173def13.entry.js +0 -1
  35. package/dist/lime-elements/p-7acd89d5.entry.js +0 -1
  36. package/dist/lime-elements/p-bd81d7bb.entry.js +0 -1
@@ -1 +0,0 @@
1
- import{r as a,h as e,H as r}from"./p-DBTJNfo7.js";import{t as s}from"./p-BxrRWYts.js";import{c as i}from"./p-B-tmXAXV.js";const l=class{constructor(e){a(this,e),this.disabled=!1}componentWillLoad(){this.isApple=i()}render(){const a=s(this.value),i=a.map((a=>function(a,e){const r=(null!=a?a:"").trim();if(!r)return{display:"",isGlyph:!1,ariaName:""};if("+"===r)return{display:"+",isGlyph:!1,ariaName:"plus"};const s=r.toLowerCase();switch(s){case"meta":case"win":case"windows":return e?{display:"⌘",isGlyph:!0,ariaName:"Command"}:{display:"⊞ Win",isGlyph:!1,ariaName:"Windows"};case"cmd":case"command":return{display:"⌘",isGlyph:!0,ariaName:"Command"};case"alt":case"option":return e?{display:"⌥",isGlyph:!0,ariaName:"Option"}:{display:"Alt",isGlyph:!1,ariaName:"Alt"};case"shift":return{display:"⇧",isGlyph:!0,ariaName:"Shift"};case"enter":case"return":return{display:"↩",isGlyph:!0,ariaName:"Enter"};case"tab":return{display:"⇥",isGlyph:!0,ariaName:"Tab"};case"delete":case"del":case"backspace":return e?{display:"⌫",isGlyph:!0,ariaName:"Delete"}:"backspace"===s?{display:"Backspace",isGlyph:!1,ariaName:"Backspace"}:{display:"Del",isGlyph:!1,ariaName:"Delete"};case"ctrl":case"control":return e?{display:"⌃",isGlyph:!0,ariaName:"Control"}:{display:"Ctrl",isGlyph:!1,ariaName:"Control"};case"escape":case"esc":return{display:"Esc",isGlyph:!1,ariaName:"Escape"};case"space":case"spacebar":return{display:"␣",isGlyph:!0,ariaName:"Space"};case"arrowup":case"up":return{display:"↑",isGlyph:!0,ariaName:"Up"};case"arrowdown":case"down":return{display:"↓",isGlyph:!0,ariaName:"Down"};case"arrowleft":case"left":return{display:"←",isGlyph:!0,ariaName:"Left"};case"arrowright":case"right":return{display:"→",isGlyph:!0,ariaName:"Right"}}return{display:r,isGlyph:!1,ariaName:r}}(a,this.isApple))),l=i.map((a=>a.ariaName)).filter(Boolean).join(" ");return e(r,{key:"ab1b9d31080740d19a4633c8c5bc92b02625c111","aria-label":l||void 0},i.map((({display:r,isGlyph:s},i)=>e("kbd",{key:`${a[i]}-${i}`,class:s?"is-glyph":void 0},e("span",null,r)))))}};l.style='@charset "UTF-8";kbd{display:inline-block;font-family:ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, "DejaVu Sans Mono", monospace;font-weight:600;color:rgb(var(--contrast-1100));white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:normal;border-radius:0.125rem;border-style:solid;border-color:rgb(var(--contrast-500));border-width:0 1px 0.1875rem 1px;padding:0.0625rem 0.375rem;margin:0 0.25rem;background-color:rgb(var(--contrast-200));box-shadow:var(--button-shadow-normal), 0 0.625rem 0.375rem -0.5rem rgb(var(--color-black), 0.02), 0 0.025rem 0.5rem 0 rgb(var(--contrast-100)) inset}:host(limel-hotkey){display:flex;align-items:center;justify-content:center;gap:0.25rem}:host(limel-hotkey[disabled]:not([disabled=false])){opacity:0.5}kbd{text-transform:var(--hotkey-text-transform, uppercase);margin:0;font-size:0.75rem;box-shadow:var(--button-shadow-pressed), 0 0.625rem 0.375px -0.5rem rgb(var(--color-black), 0.02), 0 0.025rem 0.5rem 0 rgb(var(--contrast-100)) inset}span{display:inline-block}kbd.is-glyph span{transform:scale(1.2)}';export{l as limel_hotkey}