@threadlabs/looma 0.1.3 → 0.1.4

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 (88) hide show
  1. package/dist/{chunk-UDP2LUZ2.js → chunk-3PASQ7DE.js} +26 -26
  2. package/dist/cjs/ui-dialog.cjs.entry.js +1 -1
  3. package/dist/cjs/ui-floating-action-button.cjs.entry.js +1 -1
  4. package/dist/cjs/ui-menu.cjs.entry.js +1 -1
  5. package/dist/cjs/ui-popover.cjs.entry.js +1 -1
  6. package/dist/cjs/ui-search-shell.cjs.entry.js +1 -1
  7. package/dist/cjs/ui-tabs.cjs.entry.js +1 -1
  8. package/dist/cjs/ui-toast-region.cjs.entry.js +1 -1
  9. package/dist/cjs/ui-top-bar.cjs.entry.js +1 -1
  10. package/dist/collection/components/ui-dialog/ui-dialog.css +10 -4
  11. package/dist/collection/components/ui-floating-action-button/ui-floating-action-button.css +4 -1
  12. package/dist/collection/components/ui-menu/ui-menu.css +4 -1
  13. package/dist/collection/components/ui-popover/ui-popover.css +7 -1
  14. package/dist/collection/components/ui-search-shell/ui-search-shell.css +3 -1
  15. package/dist/collection/components/ui-tabs/ui-tabs.css +3 -0
  16. package/dist/collection/components/ui-toast-region/ui-toast-region.css +3 -2
  17. package/dist/collection/components/ui-top-bar/ui-top-bar.css +10 -2
  18. package/dist/components/p-gHC_Ei92.js +1 -0
  19. package/dist/components/ui-context-menu.js +1 -1
  20. package/dist/components/ui-dialog.js +1 -1
  21. package/dist/components/ui-floating-action-button.js +1 -1
  22. package/dist/components/ui-menu.js +1 -1
  23. package/dist/components/ui-popover.js +1 -1
  24. package/dist/components/ui-search-shell.js +1 -1
  25. package/dist/components/ui-tabs.js +1 -1
  26. package/dist/components/ui-toast-region.js +1 -1
  27. package/dist/components/ui-top-bar.js +1 -1
  28. package/dist/esm/ui-dialog.entry.js +1 -1
  29. package/dist/esm/ui-floating-action-button.entry.js +1 -1
  30. package/dist/esm/ui-menu.entry.js +1 -1
  31. package/dist/esm/ui-popover.entry.js +1 -1
  32. package/dist/esm/ui-search-shell.entry.js +1 -1
  33. package/dist/esm/ui-tabs.entry.js +1 -1
  34. package/dist/esm/ui-toast-region.entry.js +1 -1
  35. package/dist/esm/ui-top-bar.entry.js +1 -1
  36. package/dist/index.cjs +8 -8
  37. package/dist/index.js +1 -1
  38. package/dist/looma/looma.esm.js +1 -1
  39. package/dist/looma/p-01425a37.entry.js +1 -0
  40. package/dist/looma/p-07167650.entry.js +1 -0
  41. package/dist/looma/{p-341ba64a.entry.js → p-3ecd7120.entry.js} +1 -1
  42. package/dist/looma/p-940a931a.entry.js +1 -0
  43. package/dist/looma/p-941221ad.entry.js +1 -0
  44. package/dist/looma/p-a7be33fd.entry.js +1 -0
  45. package/dist/looma/{p-4742e6b4.entry.js → p-cb15e8e3.entry.js} +1 -1
  46. package/dist/looma/p-d39905f9.entry.js +1 -0
  47. package/dist/{ui-avatar-group.entry-VDMJ7TD3.js → ui-avatar-group.entry-DBVLQ4KB.js} +1 -1
  48. package/dist/{ui-avatar.entry-OV25NM66.js → ui-avatar.entry-2WTBM2EC.js} +1 -1
  49. package/dist/{ui-badge.entry-MX66BWUJ.js → ui-badge.entry-XKIGBK5V.js} +1 -1
  50. package/dist/{ui-button.entry-UCVR22M7.js → ui-button.entry-PWT56MPD.js} +1 -1
  51. package/dist/{ui-checkbox.entry-KL47EXSZ.js → ui-checkbox.entry-QT5S7EEL.js} +1 -1
  52. package/dist/{ui-context-menu.entry-677NGG3Q.js → ui-context-menu.entry-NGWR3LOZ.js} +1 -1
  53. package/dist/{ui-dialog.entry-WZIIRD4O.js → ui-dialog.entry-PEDDIALQ.js} +2 -2
  54. package/dist/{ui-disclosure.entry-Z7LSLWFL.js → ui-disclosure.entry-UKO7MAZM.js} +1 -1
  55. package/dist/ui-floating-action-button.entry-SSGHRMCO.js +23 -0
  56. package/dist/{ui-form-field.entry-DZSNUUXG.js → ui-form-field.entry-6TZCWPYL.js} +1 -1
  57. package/dist/{ui-icon-button.entry-QKEQNOKJ.js → ui-icon-button.entry-WMCYMK2H.js} +1 -1
  58. package/dist/{ui-input.entry-BI74QOJP.js → ui-input.entry-AZ5BGQNA.js} +1 -1
  59. package/dist/{ui-menu-item.entry-GB462MWK.js → ui-menu-item.entry-L4NJDBKF.js} +1 -1
  60. package/dist/{ui-menu.entry-RUJ5XZ7Y.js → ui-menu.entry-DGUYAE3Q.js} +2 -2
  61. package/dist/{ui-popover.entry-QW26NSSB.js → ui-popover.entry-A54EKVZG.js} +2 -2
  62. package/dist/{ui-radio-group.entry-LC2BSS35.js → ui-radio-group.entry-6YP4LY4N.js} +1 -1
  63. package/dist/{ui-radio.entry-2RQD4K5L.js → ui-radio.entry-CGYNK7PN.js} +1 -1
  64. package/dist/{ui-search-result-row.entry-BAHYKCAZ.js → ui-search-result-row.entry-DGKSI2QM.js} +1 -1
  65. package/dist/{ui-search-shell.entry-PW2AF6HX.js → ui-search-shell.entry-3F5ASGTW.js} +2 -2
  66. package/dist/{ui-select.entry-NHWCGJQH.js → ui-select.entry-SXSZPVXA.js} +1 -1
  67. package/dist/{ui-switch.entry-76KOUHCH.js → ui-switch.entry-AD4EVUWM.js} +1 -1
  68. package/dist/{ui-tabs.entry-5PZGTNKM.js → ui-tabs.entry-WLKO5G5N.js} +2 -2
  69. package/dist/{ui-textarea.entry-IQHQHO3L.js → ui-textarea.entry-IHPC7Q4R.js} +1 -1
  70. package/dist/{ui-toast-region.entry-2LT2RTPJ.js → ui-toast-region.entry-GCW2LJAC.js} +2 -2
  71. package/dist/{ui-tooltip.entry-42V5BSUT.js → ui-tooltip.entry-EU2G6BH5.js} +1 -1
  72. package/dist/{ui-top-bar.entry-UZTSRNFZ.js → ui-top-bar.entry-NMAFXVET.js} +2 -2
  73. package/layout/index.cjs +82 -0
  74. package/layout/index.css +165 -8
  75. package/layout/index.js +82 -0
  76. package/layout.css +113 -9
  77. package/package.json +1 -1
  78. package/styles.css +5 -4
  79. package/vue/index.d.ts +13 -1
  80. package/vue/index.js +9 -0
  81. package/dist/components/p-WvL4iAhX.js +0 -1
  82. package/dist/looma/p-52c537fa.entry.js +0 -1
  83. package/dist/looma/p-649dad92.entry.js +0 -1
  84. package/dist/looma/p-ab4151d5.entry.js +0 -1
  85. package/dist/looma/p-dff144bd.entry.js +0 -1
  86. package/dist/looma/p-ebb74106.entry.js +0 -1
  87. package/dist/looma/p-ecb5739b.entry.js +0 -1
  88. package/dist/ui-floating-action-button.entry-ZDMXBJVC.js +0 -23
package/vue/index.js CHANGED
@@ -10,6 +10,9 @@ var Inline = createAdapterComponent("ui-inline", "Inline");
10
10
  var Cluster = createAdapterComponent("ui-cluster", "Cluster");
11
11
  var Grid = createAdapterComponent("ui-grid", "Grid");
12
12
  var Center = createAdapterComponent("ui-center", "Center");
13
+ var Switcher = createAdapterComponent("ui-switcher", "Switcher");
14
+ var Sidebar = createAdapterComponent("ui-sidebar", "Sidebar");
15
+ var Reel = createAdapterComponent("ui-reel", "Reel");
13
16
  var Separator = createAdapterComponent("ui-separator", "Separator");
14
17
  var Disclosure = createAdapterComponent("ui-disclosure", "Disclosure");
15
18
  var Tabs = createAdapterComponent("ui-tabs", "Tabs");
@@ -46,6 +49,9 @@ var ADAPTER_COMPONENT_TAG_MAP = {
46
49
  Cluster: "ui-cluster",
47
50
  Grid: "ui-grid",
48
51
  Center: "ui-center",
52
+ Switcher: "ui-switcher",
53
+ Sidebar: "ui-sidebar",
54
+ Reel: "ui-reel",
49
55
  Separator: "ui-separator",
50
56
  Disclosure: "ui-disclosure",
51
57
  Tabs: "ui-tabs",
@@ -98,12 +104,15 @@ export {
98
104
  Popover,
99
105
  Radio,
100
106
  RadioGroup,
107
+ Reel,
101
108
  SearchResultRow,
102
109
  SearchShell,
103
110
  Select,
104
111
  Separator,
112
+ Sidebar,
105
113
  Stack,
106
114
  Switch,
115
+ Switcher,
107
116
  Tabs,
108
117
  Textarea,
109
118
  ToastRegion,
@@ -1 +0,0 @@
1
- import{p as e,H as t,h as i,c as r,t as o}from"./p-CIA4RyEp.js";import{d as s,e as a}from"./p-JwSoedEO.js";const n=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}get host(){return this}open=!1;defaultOpen=!1;internalOpen=!1;syncFromProp(){this.internalOpen=this.open}componentDidLoad(){this.syncFromProp(),this.internalOpen=this.internalOpen||this.defaultOpen,this.host.addEventListener("click",this.onItemClick),this.host.addEventListener("keydown",this.onKeydown)}disconnectedCallback(){this.host.removeEventListener("click",this.onItemClick),this.host.removeEventListener("keydown",this.onKeydown)}getItems(){return Array.from(this.host.querySelectorAll("ui-menu-item"))}isItemDisabled(e){return"true"===e.getAttribute("aria-disabled")||e.hasAttribute("disabled")||"true"===e.getAttribute("disabled")||!0===e.disabled}onItemClick=e=>{const t=e.target.closest?.("ui-menu-item");if(!t||t.getRootNode()!==this.host.getRootNode())return;if(this.isItemDisabled(t))return;const i=t.getAttribute("value")??t.getAttribute("data-value")??"";s(this.host,"select",{value:i,trigger:a(e)}),s(this.host,"close",{open:!1,reason:"action",trigger:a(e)}),this.internalOpen=!1};onKeydown=e=>{const i=this.getItems().filter((e=>!this.isItemDisabled(e)));if(0===i.length)return;const r=e.target.closest?.("ui-menu-item"),o=r&&r instanceof t?i.indexOf(r):-1;if("Enter"!==e.key&&" "!==e.key)"ArrowDown"!==e.key&&"ArrowUp"!==e.key||(e.preventDefault(),i["ArrowDown"===e.key?o<0?0:Math.min(o+1,i.length-1):o<=0?i.length-1:o-1].focus());else if(e.preventDefault(),r&&o>=0){const e=r.getAttribute("value")??r.getAttribute("data-value")??"";s(this.host,"select",{value:e,trigger:"keyboard"}),s(this.host,"close",{open:!1,reason:"action",trigger:"keyboard"}),this.internalOpen=!1}};render(){return i(r,{key:"f06ad0f8c09060495757ced2da095817409720b7",role:"menu","aria-orientation":"vertical","data-open":this.internalOpen?"":void 0},i("slot",{key:"d504fd3c33894d0e464b957ce67c75fe8a24899c"}))}static get watchers(){return{open:[{syncFromProp:0}]}}static get style(){return":host{display:flex;flex-direction:column;min-width:12rem;padding:var(--ui-space-1);background:var(--ui-surface-elevated);border:1px solid var(--ui-border-default);border-radius:var(--ui-radius-3);box-shadow:var(--ui-shadow-lg)}::slotted(ui-menu-item){display:block;width:100%;padding:var(--ui-space-2) var(--ui-space-3);text-align:left;background:none;border:none;border-radius:var(--ui-radius-2);color:var(--ui-text-primary);font-size:var(--ui-font-size-md);font-weight:var(--ui-font-medium, 500);cursor:pointer;transition:background-color var(--ui-motion-fast) var(--ui-motion-ease), color var(--ui-motion-fast) var(--ui-motion-ease)}::slotted(ui-menu-item:hover:not([aria-disabled='true']):not([disabled])){background:var(--ui-surface-subtle)}::slotted(ui-menu-item[aria-disabled='true']),::slotted(ui-menu-item[disabled]){opacity:0.6;cursor:not-allowed}"}},[769,"ui-menu",{open:[4],defaultOpen:[4,"default-open"],internalOpen:[32]},void 0,{open:[{syncFromProp:0}]}]);function u(){"undefined"!=typeof customElements&&["ui-menu"].forEach((e=>{"ui-menu"===e&&(customElements.get(o(e))||customElements.define(o(e),n))}))}export{n as U,u as d}
@@ -1 +0,0 @@
1
- import{r as e,g as a,h as i,H as t}from"./p-CEeiinfk.js";function s(e){return!!e&&e.assignedNodes({flatten:!0}).some((e=>e.nodeType!==Node.TEXT_NODE||Boolean(e.textContent?.trim())))}const r=class{constructor(a){e(this,a)}get host(){return a(this)}hasLeading=!1;hasSearch=!1;hasActions=!1;leadingSlot;searchSlot;actionsSlot;componentDidLoad(){this.syncSlots()}syncSlots=()=>{this.hasLeading=s(this.leadingSlot),this.hasSearch=s(this.searchSlot),this.hasActions=s(this.actionsSlot)};render(){return i(t,{key:"23cbff2fdb06a40f0380dbf217d064cb1b9f7a9c"},i("header",{key:"9472960f4445f8ed7d0800d71db3cbac020fca3f",class:"top-bar",part:"base"},i("div",{key:"d408be025d90fdcf1416213b9e76f3b780f47d97",class:"top-bar__leading",hidden:!this.hasLeading},i("slot",{key:"3dc4db316a040ff10a8b8b218b42799d3e1a7b97",name:"leading",ref:e=>this.leadingSlot=e,onSlotchange:this.syncSlots})),i("div",{key:"1b362f19f9a738600afb266e9641c0ee5c8870c9",class:"top-bar__title"},i("slot",{key:"bb93d34a3dea15c697dcd19dc0ecc3488ee390c8"})),i("div",{key:"3d61d781b654ee1d91a6ce5ba64db9732ee1f8ee",class:"top-bar__search",hidden:!this.hasSearch},i("slot",{key:"5731817be644f10ed745fdc0868b85b66a9c06d4",name:"search",ref:e=>this.searchSlot=e,onSlotchange:this.syncSlots})),i("div",{key:"2ee868b93f5195832830900382545b2131e78bb8",class:"top-bar__actions",hidden:!this.hasActions},i("slot",{key:"1d410fa60f112904cfb866cff5a3f2fb18021c93",name:"actions",ref:e=>this.actionsSlot=e,onSlotchange:this.syncSlots}))))}};r.style=":host{position:sticky;inset-block-start:0;z-index:var(--ui-top-bar-z-index, 100);display:block}.top-bar{min-block-size:var(--ui-top-bar-height, 56px);display:flex;align-items:center;gap:var(--ui-top-bar-gap, var(--ui-space-3, 0.75rem));padding-inline:var(--ui-top-bar-padding-inline, var(--ui-space-4, 1rem));background:var(--ui-top-bar-bg, var(--ui-surface, #ffffff));border-block-end:1px solid var(--ui-top-bar-border, var(--ui-border, #e5e7eb))}.top-bar__leading,.top-bar__search,.top-bar__actions{display:flex;align-items:center;flex-shrink:0}.top-bar__actions{gap:var(--ui-top-bar-actions-gap, var(--ui-space-1, 0.25rem))}.top-bar__title{min-inline-size:0;flex:1}[hidden]{display:none}@media (min-width: 768px){:host{display:none}}";export{r as ui_top_bar}
@@ -1 +0,0 @@
1
- import{r as e,g as s,h as t,H as o}from"./p-CEeiinfk.js";import{o as r,c as i,r as a}from"./p-CR7f2MQC.js";import{d as n}from"./p-JwSoedEO.js";const h=class{constructor(s){e(this,s)}get host(){return s(this)}open=!1;defaultOpen=!1;internalOpen=!1;overlayId=`ui-popover-${Math.random().toString(36).slice(2,11)}`;syncFromProp(){this.internalOpen=this.open}onOpenChange(){this.syncOverlay(),this.internalOpen?n(this.host,"open",{open:!0,reason:"programmatic",trigger:"programmatic"}):n(this.host,"close",{open:!1,reason:"programmatic",trigger:"programmatic"})}syncOverlay(){this.internalOpen?r({id:this.overlayId,modal:!1,element:this.host,dismissible:!0,requestClose:(e,s)=>this.handleRequestClose(e,s)}):i(this.overlayId)}componentDidLoad(){this.syncFromProp(),this.internalOpen=this.internalOpen||this.defaultOpen,this.host.addEventListener("keydown",this.onKeydown),this.syncOverlay()}disconnectedCallback(){this.host.removeEventListener("keydown",this.onKeydown),i(this.overlayId)}componentDidUpdate(){this.syncOverlay()}handleRequestClose(e,s){this.internalOpen=!1,n(this.host,"close",{open:!1,reason:e,trigger:s})}onKeydown=e=>{"Escape"===e.key&&a("escape","keyboard")};render(){return t(o,{key:"121482cf2fe9ba972ae6b902568389790b9accaa","data-open":this.internalOpen?"":void 0,onKeyDown:this.onKeydown},t("slot",{key:"095ce0c147ed8c8411114563c9efcb5fe775fcae"}))}static get watchers(){return{open:[{syncFromProp:0}],internalOpen:[{onOpenChange:0}]}}};h.style=":host{padding:var(--ui-space-3);background:var(--ui-surface-elevated);border:1px solid var(--ui-border-default);border-radius:var(--ui-radius-3);box-shadow:var(--ui-shadow-lg);max-width:min(20rem, 90vw)}";export{h as ui_popover}
@@ -1 +0,0 @@
1
- import{r as e,g as t,h as i,H as r}from"./p-CEeiinfk.js";import{d as o,e as a}from"./p-JwSoedEO.js";const s=class{constructor(t){e(this,t)}get host(){return t(this)}open=!1;defaultOpen=!1;internalOpen=!1;syncFromProp(){this.internalOpen=this.open}componentDidLoad(){this.syncFromProp(),this.internalOpen=this.internalOpen||this.defaultOpen,this.host.addEventListener("click",this.onItemClick),this.host.addEventListener("keydown",this.onKeydown)}disconnectedCallback(){this.host.removeEventListener("click",this.onItemClick),this.host.removeEventListener("keydown",this.onKeydown)}getItems(){return Array.from(this.host.querySelectorAll("ui-menu-item"))}isItemDisabled(e){return"true"===e.getAttribute("aria-disabled")||e.hasAttribute("disabled")||"true"===e.getAttribute("disabled")||!0===e.disabled}onItemClick=e=>{const t=e.target.closest?.("ui-menu-item");if(!t||t.getRootNode()!==this.host.getRootNode())return;if(this.isItemDisabled(t))return;const i=t.getAttribute("value")??t.getAttribute("data-value")??"";o(this.host,"select",{value:i,trigger:a(e)}),o(this.host,"close",{open:!1,reason:"action",trigger:a(e)}),this.internalOpen=!1};onKeydown=e=>{const t=this.getItems().filter((e=>!this.isItemDisabled(e)));if(0===t.length)return;const i=e.target.closest?.("ui-menu-item"),r=i&&i instanceof HTMLElement?t.indexOf(i):-1;if("Enter"!==e.key&&" "!==e.key)"ArrowDown"!==e.key&&"ArrowUp"!==e.key||(e.preventDefault(),t["ArrowDown"===e.key?r<0?0:Math.min(r+1,t.length-1):r<=0?t.length-1:r-1].focus());else if(e.preventDefault(),i&&r>=0){const e=i.getAttribute("value")??i.getAttribute("data-value")??"";o(this.host,"select",{value:e,trigger:"keyboard"}),o(this.host,"close",{open:!1,reason:"action",trigger:"keyboard"}),this.internalOpen=!1}};render(){return i(r,{key:"f06ad0f8c09060495757ced2da095817409720b7",role:"menu","aria-orientation":"vertical","data-open":this.internalOpen?"":void 0},i("slot",{key:"d504fd3c33894d0e464b957ce67c75fe8a24899c"}))}static get watchers(){return{open:[{syncFromProp:0}]}}};s.style=":host{display:flex;flex-direction:column;min-width:12rem;padding:var(--ui-space-1);background:var(--ui-surface-elevated);border:1px solid var(--ui-border-default);border-radius:var(--ui-radius-3);box-shadow:var(--ui-shadow-lg)}::slotted(ui-menu-item){display:block;width:100%;padding:var(--ui-space-2) var(--ui-space-3);text-align:left;background:none;border:none;border-radius:var(--ui-radius-2);color:var(--ui-text-primary);font-size:var(--ui-font-size-md);font-weight:var(--ui-font-medium, 500);cursor:pointer;transition:background-color var(--ui-motion-fast) var(--ui-motion-ease), color var(--ui-motion-fast) var(--ui-motion-ease)}::slotted(ui-menu-item:hover:not([aria-disabled='true']):not([disabled])){background:var(--ui-surface-subtle)}::slotted(ui-menu-item[aria-disabled='true']),::slotted(ui-menu-item[disabled]){opacity:0.6;cursor:not-allowed}";export{s as ui_menu}
@@ -1 +0,0 @@
1
- import{r as i,h as o,H as t}from"./p-CEeiinfk.js";const n=class{constructor(o){i(this,o)}disabled=!1;mobileOnly=!1;label="";render(){return o(t,{key:"4b5b5eb530e4ab424e1189cff83d697f28432d84","data-disabled":this.disabled?"":void 0},o("button",{key:"f8a4b8ac90bf306434b2b905030b46c1fcbcb000",type:"button","aria-label":this.label||void 0,disabled:this.disabled},o("slot",{key:"500d0606ea7166669f104e42813591395fc81c3f"})))}};n.style=":host{position:fixed;inset-block-end:calc( var(--ui-floating-action-button-bottom, var(--ui-space-6, 1.5rem)) + env(safe-area-inset-bottom) );inset-inline-end:var(--ui-floating-action-button-inline-end, var(--ui-space-5, 1.25rem));inline-size:var(--ui-floating-action-button-size, 56px);block-size:var(--ui-floating-action-button-size, 56px);display:inline-flex;z-index:var(--ui-floating-action-button-z-index, 100)}button{appearance:none;inline-size:100%;block-size:100%;border:none;border-radius:999px;margin:0;padding:0;display:inline-flex;align-items:center;justify-content:center;background:var(--ui-floating-action-button-bg, var(--ui-accent-solid));color:var(--ui-floating-action-button-color, var(--ui-text-on-accent));box-shadow:var( --ui-floating-action-button-shadow, 0 4px 12px color-mix(in srgb, var(--ui-accent-solid) 40%, transparent) );cursor:pointer;transition:background-color var(--ui-motion-fast, 160ms) var(--ui-motion-ease, ease), transform var(--ui-motion-fast, 160ms) var(--ui-motion-ease, ease), box-shadow var(--ui-motion-fast, 160ms) var(--ui-motion-ease, ease)}button:hover:enabled{background:var(--ui-floating-action-button-hover-bg, var(--ui-accent-hover));box-shadow:var( --ui-floating-action-button-hover-shadow, 0 6px 16px color-mix(in srgb, var(--ui-accent-solid) 50%, transparent) )}button:active:enabled{transform:scale(var(--ui-floating-action-button-active-scale, 0.94))}button:focus-visible{outline:2px solid var(--ui-focus-ring);outline-offset:2px}button:disabled,:host([disabled]){opacity:0.6;cursor:not-allowed}::slotted(svg){inline-size:var(--ui-floating-action-button-icon-size, 24px);block-size:var(--ui-floating-action-button-icon-size, 24px);flex-shrink:0}@media (min-width: 768px){:host([mobile-only]){display:none}}";export{n as ui_floating_action_button}
@@ -1 +0,0 @@
1
- import{r as t,g as a,h as r,H as i}from"./p-CEeiinfk.js";import{d as s,e}from"./p-JwSoedEO.js";const o=class{constructor(a){t(this,a)}get host(){return a(this)}open=!0;internalOpen=!0;syncFromProp(){this.internalOpen=this.open}componentDidLoad(){this.syncFromProp(),this.host.addEventListener("click",this.onClick)}disconnectedCallback(){this.host.removeEventListener("click",this.onClick)}getToasts(){return Array.from(this.host.querySelectorAll("[data-ui-toast]"))}updateOpenState(){const t=this.getToasts();this.internalOpen=t.length>0}onClick=t=>{const a=t.target.closest?.("[data-ui-toast-dismiss]");if(!a)return;const r=a.closest?.("[data-ui-toast]");if(!r)return;const i=r.id??"";r.setAttribute("aria-hidden","true"),r.remove(),s(this.host,"dismiss",{id:i,reason:"action",trigger:e(t)}),this.updateOpenState(),0===this.getToasts().length&&s(this.host,"close",{open:!1,reason:"action",trigger:e(t)})};render(){return r(i,{key:"8e99577d8770984b8d6d29e442931570c1f1bc4d",role:"region","aria-label":"Notifications","data-open":this.internalOpen?"":void 0},r("slot",{key:"06f2c6cf39c4795afc0937669aa2104821aef3d6"}))}static get watchers(){return{open:[{syncFromProp:0}]}}};o.style=":host{position:fixed;top:var(--ui-space-4);left:50%;transform:translateX(-50%);z-index:9999;display:grid;gap:var(--ui-space-2);max-width:min(24rem, 90vw);pointer-events:none}:host>*{pointer-events:auto}::slotted([data-ui-toast]){display:grid;grid-template-columns:1fr auto;gap:var(--ui-space-2);align-items:start;border:1px solid var(--ui-border-default);border-radius:var(--ui-radius-3);padding:var(--ui-space-3) var(--ui-space-4);background:var(--ui-surface-elevated);color:var(--ui-text-primary);box-shadow:var(--ui-shadow-lg);animation:ui-toast-enter 0.25s var(--ui-motion-ease) forwards}@keyframes ui-toast-enter{from{opacity:0;transform:translateY(-0.5rem)}to{opacity:1;transform:translateY(0)}}::slotted([data-ui-toast][aria-hidden='true']){display:none}::slotted([data-ui-toast-dismiss]){border:0;background:transparent;color:var(--ui-text-secondary);cursor:pointer;font:inherit}";export{o as ui_toast_region}
@@ -1 +0,0 @@
1
- import{r as i,g as o,h as a,H as e}from"./p-CEeiinfk.js";import{o as t,c as r,r as s}from"./p-CR7f2MQC.js";import{d as n}from"./p-JwSoedEO.js";const d=class{constructor(o){i(this,o)}get host(){return o(this)}open=!1;defaultOpen=!1;modal=!0;dismissible=!0;internalOpen=!1;overlayId=`ui-dialog-${Math.random().toString(36).slice(2,11)}`;dialogRef;syncFromProp(){this.internalOpen=this.open}syncOpen(){this.dialogRef&&(this.internalOpen?(this.dialogRef.showModal(),t({id:this.overlayId,modal:this.modal,element:this.host,dismissible:this.dismissible,requestClose:(i,o)=>this.handleRequestClose(i,o)})):(this.dialogRef.close(),r(this.overlayId)))}componentDidLoad(){this.syncFromProp(),this.internalOpen=this.internalOpen||this.defaultOpen,this.dialogRef?.addEventListener("close",this.onDialogClose),this.syncOpen()}disconnectedCallback(){this.dialogRef?.removeEventListener("close",this.onDialogClose),r(this.overlayId)}componentDidUpdate(){this.syncOpen()}handleRequestClose(i,o){this.internalOpen=!1,n(this.host,"close",{open:!1,reason:i,trigger:o})}onDialogClose=()=>{this.internalOpen&&(this.internalOpen=!1,r(this.overlayId),n(this.host,"close",{open:!1,reason:"programmatic",trigger:"programmatic"}))};onKeydown=i=>{"Escape"===i.key&&s("escape","keyboard")};render(){return a(e,{key:"2a2fcdfa1e3fac5eb3c0e3d6748cebdf388c216d","data-open":this.internalOpen?"":void 0,onKeyDown:this.onKeydown},a("dialog",{key:"c3eef2bb3bec77fa518269fce38c19c2ededda49",ref:i=>this.dialogRef=i,open:this.internalOpen},a("slot",{key:"9ae5c30d57096184ec287fd9dd134ff566b9fd39"})))}static get watchers(){return{open:[{syncFromProp:0}],internalOpen:[{syncOpen:0}]}}};d.style=":host{display:block}:host:not([open]){display:none}:host dialog{--ui-dialog-duration:var(--ui-motion-base);position:fixed;inset:var(--ui-space-4);width:min(100%, 440px);max-width:min(100%, 440px);margin:auto;padding:var(--ui-space-4);background:var(--ui-surface-elevated);border:1px solid var(--ui-border-default);border-radius:var(--ui-radius-dialog);box-shadow:var(--ui-shadow-dialog);visibility:hidden;pointer-events:none;opacity:0;transform:scale(0.96);transition:opacity var(--ui-dialog-duration) var(--ui-motion-ease), transform var(--ui-dialog-duration) var(--ui-motion-ease), visibility var(--ui-dialog-duration), display var(--ui-dialog-duration) var(--ui-motion-ease) allow-discrete, overlay var(--ui-dialog-duration) var(--ui-motion-ease) allow-discrete}:host dialog[open]{visibility:visible;pointer-events:auto;opacity:1;transform:scale(1);animation:ui-dialog-enter var(--ui-dialog-duration) var(--ui-motion-ease)}@keyframes ui-dialog-enter{from{opacity:0;transform:scale(0.96)}}:host dialog::backdrop{background-color:transparent;transition:background-color var(--ui-dialog-duration) var(--ui-motion-ease), display var(--ui-dialog-duration) var(--ui-motion-ease) allow-discrete, overlay var(--ui-dialog-duration) var(--ui-motion-ease) allow-discrete}:host dialog[open]::backdrop{background-color:var(--ui-overlay-backdrop);animation:ui-dialog-backdrop-enter var(--ui-dialog-duration) var(--ui-motion-ease)}@keyframes ui-dialog-backdrop-enter{from{background-color:transparent}}";export{d as ui_dialog}
@@ -1,23 +0,0 @@
1
- import {
2
- Host,
3
- h,
4
- registerInstance
5
- } from "./chunk-UDP2LUZ2.js";
6
-
7
- // dist/esm/ui-floating-action-button.entry.js
8
- var uiFloatingActionButtonCss = () => `:host{position:fixed;inset-block-end:calc( var(--ui-floating-action-button-bottom, var(--ui-space-6, 1.5rem)) + env(safe-area-inset-bottom) );inset-inline-end:var(--ui-floating-action-button-inline-end, var(--ui-space-5, 1.25rem));inline-size:var(--ui-floating-action-button-size, 56px);block-size:var(--ui-floating-action-button-size, 56px);display:inline-flex;z-index:var(--ui-floating-action-button-z-index, 100)}button{appearance:none;inline-size:100%;block-size:100%;border:none;border-radius:999px;margin:0;padding:0;display:inline-flex;align-items:center;justify-content:center;background:var(--ui-floating-action-button-bg, var(--ui-accent-solid));color:var(--ui-floating-action-button-color, var(--ui-text-on-accent));box-shadow:var( --ui-floating-action-button-shadow, 0 4px 12px color-mix(in srgb, var(--ui-accent-solid) 40%, transparent) );cursor:pointer;transition:background-color var(--ui-motion-fast, 160ms) var(--ui-motion-ease, ease), transform var(--ui-motion-fast, 160ms) var(--ui-motion-ease, ease), box-shadow var(--ui-motion-fast, 160ms) var(--ui-motion-ease, ease)}button:hover:enabled{background:var(--ui-floating-action-button-hover-bg, var(--ui-accent-hover));box-shadow:var( --ui-floating-action-button-hover-shadow, 0 6px 16px color-mix(in srgb, var(--ui-accent-solid) 50%, transparent) )}button:active:enabled{transform:scale(var(--ui-floating-action-button-active-scale, 0.94))}button:focus-visible{outline:2px solid var(--ui-focus-ring);outline-offset:2px}button:disabled,:host([disabled]){opacity:0.6;cursor:not-allowed}::slotted(svg){inline-size:var(--ui-floating-action-button-icon-size, 24px);block-size:var(--ui-floating-action-button-icon-size, 24px);flex-shrink:0}@media (min-width: 768px){:host([mobile-only]){display:none}}`;
9
- var UIFloatingActionButton = class {
10
- constructor(hostRef) {
11
- registerInstance(this, hostRef);
12
- }
13
- disabled = false;
14
- mobileOnly = false;
15
- label = "";
16
- render() {
17
- return h(Host, { key: "4b5b5eb530e4ab424e1189cff83d697f28432d84", "data-disabled": this.disabled ? "" : void 0 }, h("button", { key: "f8a4b8ac90bf306434b2b905030b46c1fcbcb000", type: "button", "aria-label": this.label || void 0, disabled: this.disabled }, h("slot", { key: "500d0606ea7166669f104e42813591395fc81c3f" })));
18
- }
19
- };
20
- UIFloatingActionButton.style = uiFloatingActionButtonCss();
21
- export {
22
- UIFloatingActionButton as ui_floating_action_button
23
- };