@paperless/core 3.18.0 → 3.19.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.
- package/dist/{paperless/p-3557f8b1.entry.js → build/p-0cea7ced.entry.js} +1 -1
- package/dist/{paperless/p-6dff428b.entry.js → build/p-47bdfa0d.entry.js} +1 -1
- package/dist/build/p-81e96c69.entry.js +1 -0
- package/dist/build/p-aea4ec07.js +1 -0
- package/dist/build/p-c3554748.entry.js +1 -0
- package/dist/build/{p-282b2776.entry.js → p-cb9baef3.entry.js} +1 -1
- package/dist/build/{p-fbabae11.entry.js → p-e3e43848.entry.js} +1 -1
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/index-BGtpSJv_.js +8 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/p-empty-state_8.cjs.entry.js +6 -6
- package/dist/cjs/p-listing.cjs.entry.js +2 -2
- package/dist/cjs/p-navbar.cjs.entry.js +1 -1
- package/dist/cjs/p-submenu-item.cjs.entry.js +44 -0
- package/dist/cjs/p-submenu.cjs.entry.js +138 -0
- package/dist/cjs/p-toast.cjs.entry.js +1 -1
- package/dist/cjs/paperless.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/molecules/submenu/item/submenu-item.component.css +1 -0
- package/dist/collection/components/molecules/submenu/item/submenu-item.component.js +94 -0
- package/dist/collection/components/molecules/submenu/item/submenu-item.stories.js +20 -0
- package/dist/collection/components/molecules/submenu/menu/submenu.component.css +1 -0
- package/dist/collection/components/molecules/submenu/menu/submenu.component.js +265 -0
- package/dist/collection/components/molecules/submenu/menu/submenu.stories.js +35 -0
- package/dist/collection/components/molecules/table/cell/table-cell.component.js +1 -1
- package/dist/collection/components/molecules/table/footer/table-footer.component.js +2 -2
- package/dist/collection/components/molecules/table/row/table-row.component.js +3 -3
- package/dist/collection/components/molecules/toast/toast.component.js +1 -1
- package/dist/collection/components/organisms/listing/listing.component.js +2 -2
- package/dist/collection/components/organisms/navbar/navbar.component.js +1 -1
- package/dist/components/{p-PAx1R45S.js → p-BD5jS81-.js} +1 -1
- package/dist/components/{p-DpmybwXO.js → p-BwA3E_K4.js} +1 -1
- package/dist/components/p-POJeD79-.js +1 -0
- package/dist/components/p-listing.js +1 -1
- package/dist/components/p-navbar.js +1 -1
- package/dist/components/p-submenu-item.d.ts +11 -0
- package/dist/components/p-submenu-item.js +1 -0
- package/dist/components/p-submenu.d.ts +11 -0
- package/dist/components/p-submenu.js +1 -0
- package/dist/components/p-table-cell.js +1 -1
- package/dist/components/p-table-footer.js +1 -1
- package/dist/components/p-table-row.js +1 -1
- package/dist/components/p-table.js +1 -1
- package/dist/components/p-toast.js +1 -1
- package/dist/esm/index-yFtRjnrU.js +8 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/p-empty-state_8.entry.js +6 -6
- package/dist/esm/p-listing.entry.js +2 -2
- package/dist/esm/p-navbar.entry.js +1 -1
- package/dist/esm/p-submenu-item.entry.js +42 -0
- package/dist/esm/p-submenu.entry.js +136 -0
- package/dist/esm/p-toast.entry.js +1 -1
- package/dist/esm/paperless.js +1 -1
- package/dist/index.html +1 -1
- package/dist/{build/p-3557f8b1.entry.js → paperless/p-0cea7ced.entry.js} +1 -1
- package/dist/{build/p-6dff428b.entry.js → paperless/p-47bdfa0d.entry.js} +1 -1
- package/dist/paperless/p-81e96c69.entry.js +1 -0
- package/dist/paperless/p-c3554748.entry.js +1 -0
- package/dist/paperless/{p-282b2776.entry.js → p-cb9baef3.entry.js} +1 -1
- package/dist/paperless/{p-fbabae11.entry.js → p-e3e43848.entry.js} +1 -1
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/dist/types/components/molecules/submenu/item/submenu-item.component.d.ts +12 -0
- package/dist/types/components/molecules/submenu/item/submenu-item.stories.d.ts +21 -0
- package/dist/types/components/molecules/submenu/menu/submenu.component.d.ts +32 -0
- package/dist/types/components/molecules/submenu/menu/submenu.stories.d.ts +28 -0
- package/dist/types/components.d.ts +106 -0
- package/hydrate/index.js +218 -28
- package/hydrate/index.mjs +218 -28
- package/package.json +9 -1
- package/dist/build/p-112e3ccc.js +0 -1
- package/dist/components/p-BO7NYfW5.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,d as i,h as e}from"./p-yFtRjnrU.js";import{c as s}from"./p-xs4N_Y-0.js";import"./p-ChV9xqsO.js";const n=class{constructor(i){t(this,i)}get _el(){return i(this)}_generatedOnce=!1;_generateTimeout;_resizeObserver;componentDidLoad(){this._resizeObserver=new ResizeObserver((()=>this._generateLinesOnce())),this._resizeObserver.observe(this._el)}disconnectCallback(){this._resizeObserver&&this._resizeObserver.disconnect()}render(){return e("div",{key:"
|
|
1
|
+
import{r as t,d as i,h as e}from"./p-yFtRjnrU.js";import{c as s}from"./p-xs4N_Y-0.js";import"./p-ChV9xqsO.js";const n=class{constructor(i){t(this,i)}get _el(){return i(this)}_generatedOnce=!1;_generateTimeout;_resizeObserver;componentDidLoad(){this._resizeObserver=new ResizeObserver((()=>this._generateLinesOnce())),this._resizeObserver.observe(this._el)}disconnectCallback(){this._resizeObserver&&this._resizeObserver.disconnect()}render(){return e("div",{key:"2804d4c9827b8c474be59e85929ac3e5c7a8b832",class:s("flex w-full flex-col flex-wrap items-start gap-1",{"opacity-100":this._generatedOnce,"opacity-0":!this._generatedOnce})},e("slot",{key:"8c55a162dcdaca095c6e5869e204e50784e37369",onSlotchange:()=>this._generateLinesOnce()}))}_generateLinesOnce(){this._generateTimeout&&(clearTimeout(this._generateTimeout),this._generateTimeout=null),this._generateTimeout=setTimeout((()=>this._generateLines()),20)}_generateLines(){if(!this._el)return;const t=this._el.querySelectorAll("p-listing-item");for(let i=0;i<t?.length;i++){const e=t.item(i);if(i<t.length-1){let t=e.nextElementSibling;if(t&&"p-listing-item"===t.tagName.toLowerCase()){const i=document.createElement("p-listing-line");this._el.insertBefore(i,t),this._setLineData(i,e,t);const s=i.previousElementSibling;s&&"p-listing-line"===s.tagName.toLowerCase()&&s.remove();continue}if(t&&"p-listing-line"===t.tagName.toLowerCase()){const i=t;t=t.nextElementSibling,t&&"p-listing-item"===t.tagName.toLowerCase()&&this._setLineData(i,e,t)}}}const i=this._el.querySelectorAll("p-listing-line:not(:has(+ p-listing-item)), p-listing-line:first-child");for(let t=i.length-1;t>=0;t--)i.item(t).remove();this._generatedOnce||setTimeout((()=>this._generatedOnce=!0),50)}_setLineData(t,i,e){let s=(i.clientHeight-16)/2,n=(e.clientHeight-16)/2;if(s>0){let i=s+n;t.style.marginTop=`-${s/16}rem`,t.style.marginBottom=`-${n/16}rem`,t.style.minHeight=`calc(1.5rem + ${(i-16)/16}rem)`}}};n.style="*{box-sizing:border-box}.static{position:static}.flex{display:flex}.w-full{width:100%}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.gap-1{gap:.25rem}.opacity-0{opacity:0}.opacity-100{opacity:1}";export{n as p_listing}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,a as e,h as r}from"./p-yFtRjnrU.js";import{c as a}from"./p-CBWjHURv.js";import{T as o}from"./p-CSySY6aC.js";import"./p-ChV9xqsO.js";import"./p-6XOzWrsN.js";const i=a("h-9 w-[2px] flex-shrink-0 rounded-full",{variants:{variant:{neutral:"\n bg-indigo-800\n dark:bg-indigo-400\n ",positive:"\n bg-positive-green-500\n dark:bg-positive-green-alternative\n ",biased:"\n bg-amber-500\n dark:bg-amber-alternative\n ",negative:"\n bg-negative-red-500\n dark:bg-negative-red-alternative\n "}}}),d=a(["flex items-center justify-between gap-2","w-[calc(100%-2px-0.5rem)]"]),c=class{constructor(r){t(this,r),this.action=e(this,"action",3)}variant="positive";header;content;enableAction=!0;actionIcon="negative";actionIconFlip;actionIconRotate;action;render(){return r(o,{key:"
|
|
1
|
+
import{r as t,a as e,h as r}from"./p-yFtRjnrU.js";import{c as a}from"./p-CBWjHURv.js";import{T as o}from"./p-CSySY6aC.js";import"./p-ChV9xqsO.js";import"./p-6XOzWrsN.js";const i=a("h-9 w-[2px] flex-shrink-0 rounded-full",{variants:{variant:{neutral:"\n bg-indigo-800\n dark:bg-indigo-400\n ",positive:"\n bg-positive-green-500\n dark:bg-positive-green-alternative\n ",biased:"\n bg-amber-500\n dark:bg-amber-alternative\n ",negative:"\n bg-negative-red-500\n dark:bg-negative-red-alternative\n "}}}),d=a(["flex items-center justify-between gap-2","w-[calc(100%-2px-0.5rem)]"]),c=class{constructor(r){t(this,r),this.action=e(this,"action",3)}variant="positive";header;content;enableAction=!0;actionIcon="negative";actionIconFlip;actionIconRotate;action;render(){return r(o,{key:"7f1d26d48ba72212d4bea0047c2645d588ae9ca0"},r("div",{key:"7a02f52c3f482c36048ddd6aa052e94522ae9eb6",class:"\n flex gap-2 rounded-lg border border-solid border-storm-100 bg-white p-2\n shadow-2\n dark:border-hurricane-800 dark:bg-hurricane-800\n ",onClick:()=>this._onClick()},r("div",{key:"77418e7e7b8ce6cee4018d91888e14205bf37e42",class:i({variant:this.variant})}),r("div",{key:"958c676bdbb79d6fa812d3fa9a48d35e674d9390",class:d()},r("div",{key:"4da4e4b7cb402d68083001713aeb9de9534eb2c0",class:"flex w-full min-w-0 flex-col"},r("p",{key:"1079c6b6be804514906615985cd1503d417fe1e7",class:"\n m-0 overflow-hidden text-ellipsis whitespace-nowrap text-sm\n font-semibold text-storm-500\n dark:text-white\n "},this.header?.length?this.header:r("slot",{name:"header"})),r("p",{key:"c7f0ad542870b8924d15b9e1b79cf9cb4e04645e",class:"\n m-0 w-full overflow-hidden text-ellipsis whitespace-nowrap text-xs\n text-storm-300\n dark:text-hurricane-200\n "},this.content?.length?this.content:r("slot",{name:"content"}))),this.enableAction&&r("div",{key:"a286d1394e72cd729353443ed2a214cf884f84cf",class:"\n flex-shrink-0 cursor-pointer p-2 text-storm-200\n hover:text-storm-500 hover:text-white\n dark:text-hurricane-200\n "},r("p-icon",{key:"9ecb91fdf9154fa881b16a5c3a028eb9dc7e5b9e",flip:this.actionIconFlip,rotate:this.actionIconRotate,variant:this.actionIcon})))))}_onClick(){this.enableAction&&this.action.emit()}};c.style="*{box-sizing:border-box}.static{position:static}.m-0{margin:0}.flex{display:flex}.h-9{height:2.25rem}.w-\\[2px\\]{width:2px}.w-\\[calc\\(100\\%-2px-0\\.5rem\\)\\]{width:calc(100% - 2px - .5rem)}.w-full{width:100%}.min-w-0{min-width:0}.flex-shrink-0{flex-shrink:0}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-solid{border-style:solid}.border-storm-100{--tw-border-opacity:1;border-color:rgb(209 210 212/var(--tw-border-opacity,1))}.bg-amber-500{--tw-bg-opacity:1;background-color:rgb(225 159 35/var(--tw-bg-opacity,1))}.bg-indigo-800{--tw-bg-opacity:1;background-color:rgb(27 88 210/var(--tw-bg-opacity,1))}.bg-negative-red-500{--tw-bg-opacity:1;background-color:rgb(230 30 30/var(--tw-bg-opacity,1))}.bg-positive-green-500{--tw-bg-opacity:1;background-color:rgb(92 195 14/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.p-2{padding:.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-semibold{font-weight:600}.text-storm-200{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.shadow-2{--tw-shadow:0 1px 1px rgba(0,2,2,.04),0 2px 2px rgba(0,2,2,.04),0 4px 4px rgba(0,2,2,.04);--tw-shadow-colored:0 1px 1px var(--tw-shadow-color),0 2px 2px var(--tw-shadow-color),0 4px 4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.hover\\:text-storm-500:hover{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.hover\\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:border-hurricane-800:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1;border-color:rgb(24 30 41/var(--tw-border-opacity,1))}.dark\\:bg-amber-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(255 231 92/var(--tw-bg-opacity,1))}.dark\\:bg-hurricane-800:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(24 30 41/var(--tw-bg-opacity,1))}.dark\\:bg-indigo-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(165 194 252/var(--tw-bg-opacity,1))}.dark\\:bg-negative-red-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(255 92 92/var(--tw-bg-opacity,1))}.dark\\:bg-positive-green-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(98 255 92/var(--tw-bg-opacity,1))}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:border-hurricane-800:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(24 30 41/var(--tw-border-opacity,1))}.dark\\:bg-amber-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(255 231 92/var(--tw-bg-opacity,1))}.dark\\:bg-hurricane-800:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(24 30 41/var(--tw-bg-opacity,1))}.dark\\:bg-indigo-400:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(165 194 252/var(--tw-bg-opacity,1))}.dark\\:bg-negative-red-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(255 92 92/var(--tw-bg-opacity,1))}.dark\\:bg-positive-green-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(98 255 92/var(--tw-bg-opacity,1))}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}";export{c as p_toast}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as r}from"./p-yFtRjnrU.js";import{c as e}from"./p-CBWjHURv.js";import{T as o}from"./p-CSySY6aC.js";import{c as a}from"./p-xs4N_Y-0.js";import"./p-ChV9xqsO.js";import"./p-6XOzWrsN.js";const i=e(["flex items-center gap-6","h-8 w-full pl-6","cursor-pointer","group/submenu-item"],{variants:{}}),c=class{constructor(r){t(this,r)}active=!1;icon="placeholder";render(){return r(o,{key:"812bee8d46780d60ed604505b4f8c00e798a9f8f"},r("div",{key:"f5a76dd14ccb0559586b01214c6badb3bcf2eef8",class:a(i({}),{})},r("div",{key:"97fe0916207dfefd625ae51d911ef4eeb5d6b4cc",class:a("h-full w-[2px] transition-colors",{"bg-indigo-600":this.active,"bg-transparent group-hover/submenu-item:bg-indigo-600":!this.active})}),r("div",{key:"2c6ab60c2fb19b197d5aabd2368a7eb7406fdcb2",class:a("flex items-center gap-2 transition-colors",{"text-storm-400 dark:text-hurricane-100":!this.active,"text-indigo-600":this.active})},r("p-icon",{key:"7db15690b67f555a46dc72133be72e5937051658",variant:this.icon}),r("slot",{key:"1a4574d13c012affe2713a034445f636369729c8"}))))}};c.style="*{box-sizing:border-box}.static{position:static}.flex{display:flex}.h-8{height:2rem}.h-full{height:100%}.w-\\[2px\\]{width:2px}.w-full{width:100%}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.gap-2{gap:.5rem}.gap-6{gap:1.5rem}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(82 138 250/var(--tw-bg-opacity,1))}.bg-transparent{background-color:transparent}.pl-6{padding-left:1.5rem}.text-hurricane-100{--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.text-indigo-600{--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity,1))}.text-storm-400{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.group\\/submenu-item:hover .group-hover\\/submenu-item\\:bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(82 138 250/var(--tw-bg-opacity,1))}.dark\\:text-hurricane-100:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.dark\\:text-hurricane-100:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}";export{c as p_submenu_item}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,d as e,h as r}from"./p-yFtRjnrU.js";import{c as a}from"./p-CBWjHURv.js";import{T as o}from"./p-CSySY6aC.js";import{c as i}from"./p-xs4N_Y-0.js";import"./p-ChV9xqsO.js";import"./p-6XOzWrsN.js";const d=a(["group/submenu-header","flex items-center gap-2","py-1 pl-2 pr-4","rounded-lg","cursor-pointer","transition-colors"],{variants:{open:{true:"\n bg-off-white-300\n dark:bg-storm-500/20\n ",false:""},active:{true:"\n bg-indigo-50\n dark:bg-indigo-600/30\n ",false:"\n hover:bg-indigo-50\n dark:hover:bg-indigo-600/10\n "}},compoundVariants:[]}),c=a(["m-2 size-4 rounded-full p-2","\n text-xs font-semibold text-storm-500\n dark:text-hurricane-500\n ","transition-colors","flex items-center justify-center"],{variants:{open:{true:"bg-indigo-500",false:""},active:{true:"bg-indigo-500",false:""}},compoundVariants:[{open:!1,active:!1,class:"bg-indigo-200"}]}),h=class{constructor(e){t(this,e)}title="";subtitle="";index=0;showIndex=!0;active=!1;open=!1;get _el(){return e(this)}componentDidLoad(){const t=[...this._el.querySelectorAll("p-submenu-item")].some((t=>!0===t.active));!this.active&&t&&(this.active=!0),this.active&&(this.open=!0)}render(){const t=this._el.querySelectorAll("p-submenu-item"),e=getComputedStyle(t[0]),a=t.length*Number.parseInt(e.height.replace("px",""))+16;return r(o,{key:"110fad52ce96c4fc855408b422a42956b957d092"},r("div",{key:"0b8f40db722e7c6f6ba8ded2e33a6776af28f0dc",class:"flex w-full flex-col"},r("div",{key:"23aa3cf5a7ece75e3fb6312e2e2173d68b2dcd86",class:i(d({active:this.active,open:this.open})),onClick:()=>this.open=!this.open},this.showIndex&&r("div",{key:"a24b117f984eb4392a90b47fd8363e7e320cb84a",class:c({active:this.active,open:this.open})},this.index),r("div",{key:"76fb811ac456b88a7f3d3df3b5badfaf9fe6170f",class:"flex flex-1 flex-col"},r("p",{key:"0dd533096861b9962eb523ece6a2ad03f34223f0",class:i("m-0 text-sm",{"text-storm-400 dark:text-hurricane-100 dark:group-hover/submenu-header:text-white":!this.active,"text-storm-500 dark:text-white":this.active})},this.title),r("p",{key:"0c3624317e71d9519ab6b694e70dbc7024641cef",class:i("m-0 text-xs",{"text-storm-300 dark:text-hurricane-300":!this.active,"text-storm-300 dark:text-indigo-200":this.active})},this.subtitle)),r("p-icon",{key:"480e39ea4630c81d13ec24728d7827a3760ebb6f",class:i({"text-storm-500 dark:text-white":this.active,"text-storm-300 dark:text-hurricane-300":!this.active}),rotate:this.open?180:0,variant:"caret"})),r("div",{key:"2613acd0e5e16af70c39b93a1e064423fafa036c",class:i("relative flex flex-col overflow-hidden transition-[max-height]"),style:{maxHeight:`${this.open?a:0}px`}},r("div",{key:"45e06a119decc788d8fe12fc63add37e0a46502b",class:"\n absolute left-[calc(1.5rem)] top-0 z-0 w-px bg-indigo-100\n dark:bg-hurricane-400\n ",style:{height:`${a}px`}}),r("div",{key:"d6dffef16ab9ba9e8c41e56e398d89ed05c1da1d",class:"z-10 my-2 flex flex-col"},r("slot",{key:"f1d1b244e03ba16337b6ed1dfc2ad06cbd79631d"})))))}};h.style="*{box-sizing:border-box}.static{position:static}.absolute{position:absolute}.relative{position:relative}.left-\\[calc\\(1\\.5rem\\)\\]{left:1.5rem}.top-0{top:0}.z-0{z-index:0}.z-10{z-index:10}.m-0{margin:0}.m-2{margin:.5rem}.my-2{margin-bottom:.5rem;margin-top:.5rem}.flex{display:flex}.size-4{height:1rem;width:1rem}.w-full{width:100%}.w-px{width:1px}.flex-1{flex:1 1 0%}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(227 236 254/var(--tw-bg-opacity,1))}.bg-indigo-200{--tw-bg-opacity:1;background-color:rgb(199 217 253/var(--tw-bg-opacity,1))}.bg-indigo-50{--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity,1))}.bg-indigo-500{--tw-bg-opacity:1;background-color:rgb(142 179 251/var(--tw-bg-opacity,1))}.bg-off-white-300{--tw-bg-opacity:1;background-color:rgb(248 247 244/var(--tw-bg-opacity,1))}.p-2{padding:.5rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.pl-2{padding-left:.5rem}.pr-4{padding-right:1rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-semibold{font-weight:600}.text-hurricane-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-indigo-200{--tw-text-opacity:1;color:rgb(199 217 253/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-400{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.transition-\\[max-height\\]{transition-duration:.15s;transition-property:max-height;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\\:bg-indigo-50:hover{--tw-bg-opacity:1;background-color:rgb(241 246 255/var(--tw-bg-opacity,1))}.group\\/submenu-header:hover .group-hover\\/submenu-header\\:text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:bg-hurricane-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(70 75 84/var(--tw-bg-opacity,1))}.dark\\:bg-indigo-600\\/30:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(82,138,250,.3)}.dark\\:bg-storm-500\\/20:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(24,30,41,.2)}.dark\\:text-hurricane-100:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.dark\\:text-hurricane-300:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:text-hurricane-500:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(54 60 70/var(--tw-text-opacity,1))}.dark\\:text-indigo-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(199 217 253/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:bg-indigo-600\\/10:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(82,138,250,.1)}.group\\/submenu-header:hover .dark\\:group-hover\\/submenu-header\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:bg-hurricane-400:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(70 75 84/var(--tw-bg-opacity,1))}.dark\\:bg-indigo-600\\/30:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(82,138,250,.3)}.dark\\:bg-storm-500\\/20:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(24,30,41,.2)}.dark\\:text-hurricane-100:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.dark\\:text-hurricane-300:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:text-hurricane-500:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(54 60 70/var(--tw-text-opacity,1))}.dark\\:text-indigo-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(199 217 253/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:bg-indigo-600\\/10:hover:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(82,138,250,.1)}.group\\/submenu-header:hover .dark\\:group-hover\\/submenu-header\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}";export{h as p_submenu}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as
|
|
1
|
+
import{r as e,h as a}from"./p-yFtRjnrU.js";import{c as t}from"./p-CBWjHURv.js";import{T as r}from"./p-CSySY6aC.js";import"./p-ChV9xqsO.js";import"./p-6XOzWrsN.js";const o=t(["transition","\n bg-off-white-300\n dark:bg-hurricane-800\n ","\n border-0 border-solid border-off-white-700\n dark:border-hurricane-500\n ","p-4"]),n=t(["flex flex-col","fixed left-0 top-0 z-navbar h-screen w-60","w-full max-w-[16.5rem]","\n layout-1280:relative layout-1280:z-0 layout-1280:h-full\n layout-1280:max-w-none\n ","gap-6","transition-all","will-change-transform","\n -translate-x-full transform-gpu\n layout-1280:translate-x-0\n ","border-r","safe-sidebar"],{variants:{show:{false:null,true:"show"}}}),i=t(["flex w-full items-center justify-between","relative z-navbar-topbar","border-b","layout-1280:hidden","safe-topbar"]),s=t(["\n relative z-navbar-backdrop transition-opacity\n layout-1280:hidden\n "],{variants:{show:{false:"pointer-events-none opacity-0",true:"opacity-100"}}}),l=class{constructor(a){e(this,a)}_show=!1;render(){return a(r,{key:"bc5079cb3704d2db26d1f8be020cdf60f0a716d8"},a("p-backdrop",{key:"8e530cc8e3823a49e32a4821416163214a16cf7c",class:s({show:this._show}),scrollLock:this._show,onClicked:()=>this._show=!1}),a("div",{key:"965d4b28217709da09cc6eb47bda38bc452e05f7",class:n({class:o(),show:this._show})},a("div",{key:"ee0fd8bdbcd4af099c8b8eaf84595c553cc1bfb4",class:"\n flex w-full items-center justify-end\n layout-1280:hidden\n "},a("p-button",{key:"e0782f8439f47613a6ec58271069bf3034289750",icon:"menu-arrow",iconFlip:"horizontal",iconOnly:!0,variant:"secondary",onClick:()=>this._show=!1})),a("div",{key:"1fdfb8308644046db8023df990ea7ddd83dcf262",class:"flex w-full flex-shrink-0 flex-col items-stretch"},a("slot",{key:"994d94f3c6e868c7998f1e99da450c0886e4bbfe",name:"company"})),a("div",{key:"c047c41e1d3ca938a9f92272bde090179d14b086",class:"flex w-full flex-1 flex-col gap-6 overflow-y-auto"},a("slot",{key:"552845f3097fa92eee1a37ac02d158f9edde72d5",name:"content"})),a("div",{key:"dd477e40950e95ff28dc18f31d337d978693cac8",class:"\n mt-auto hidden w-full flex-shrink-0 flex-col\n layout-1280:flex\n "},a("slot",{key:"767b851a061a0e573e8215aa6727b7618c610d1e",name:"user"}))),a("div",{key:"0264c176351bdb91606fe45aabb193b982f62a65",class:i({class:o()})},a("p-button",{key:"c7ed3bd86467f165cf2902c39851aa374997892c",icon:"menu-arrow",iconOnly:!0,variant:"secondary",onClick:()=>this._show=!0}),a("slot",{key:"df81ccf93abf33a58c03c4a5c1ee49cbfcee70a6",name:"topbar"})))}handleCloseNavbar(){this._show=!1}handleOpenNavbar(){this._show=!0}};l.style=".w-full{width:100%}.max-h-screen-safe{max-height:calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom))}*{box-sizing:border-box}:host{max-height:calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));width:100%;.safe-sidebar{padding-top:calc(env(safe-area-inset-top, 0) + 1rem)!important;&.show{--tw-translate-x:env(safe-area-inset-left,0)!important}}.safe-topbar{height:calc(env(safe-area-inset-top, 0) + 4rem);padding-top:calc(env(safe-area-inset-top, 0) + 1rem)!important}}@media (min-width:80rem){:host{width:15rem}}@media (min-width:105rem){:host{width:18rem}}@media (min-width:80rem){.layout-1280\\:w-60{width:15rem}}.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.relative{position:relative}.left-0{left:0}.top-0{top:0}.z-navbar{z-index:300}.z-navbar-backdrop{z-index:290}.z-navbar-topbar{z-index:280}.mt-auto{margin-top:auto}.flex{display:flex}.hidden{display:none}.h-screen{height:100vh}.w-60{width:15rem}.max-w-\\[16\\.5rem\\]{max-width:16.5rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.-translate-x-full{--tw-translate-x:-100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform-gpu{transform:translate3d(var(--tw-translate-x),var(--tw-translate-y),0) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-col{flex-direction:column}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-end{justify-content:flex-end}.justify-between{justify-content:space-between}.gap-6{gap:1.5rem}.overflow-y-auto{overflow-y:auto}.border-0{border-width:0}.border-b{border-bottom-width:1px}.border-r{border-right-width:1px}.border-solid{border-style:solid}.border-off-white-700{--tw-border-opacity:1;border-color:rgb(222 219 213/var(--tw-border-opacity,1))}.bg-off-white-300{--tw-bg-opacity:1;background-color:rgb(248 247 244/var(--tw-bg-opacity,1))}.p-4{padding:1rem}.opacity-0{opacity:0}.opacity-100{opacity:1}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.will-change-transform{will-change:transform}@media (min-width:80rem){.layout-1280\\:relative{position:relative}.layout-1280\\:z-0{z-index:0}.layout-1280\\:flex{display:flex}.layout-1280\\:hidden{display:none}.layout-1280\\:h-full{height:100%}.layout-1280\\:max-w-none{max-width:none}.layout-1280\\:translate-x-0{--tw-translate-x:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}}.dark\\:border-hurricane-500:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1;border-color:rgb(54 60 70/var(--tw-border-opacity,1))}.dark\\:bg-hurricane-800:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(24 30 41/var(--tw-bg-opacity,1))}.dark\\:border-hurricane-500:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(54 60 70/var(--tw-border-opacity,1))}.dark\\:bg-hurricane-800:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(24 30 41/var(--tw-bg-opacity,1))}";export{l as p_navbar}
|