@paperless/core 2.2.7 → 2.2.8

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.
@@ -1,2 +0,0 @@
1
- import{r as t,h as e}from"./p-DhGo7hbh.js";import{c as i}from"./p-CBWjHURv.js";import{a}from"./p-C5CTp9IA.js";import"./p-ChV9xqsO.js";const n="*{box-sizing:border-box}.pointer-events-none{pointer-events:none!important}.static{position:static!important}.absolute{position:absolute!important}.relative{position:relative!important}.left-0{left:0!important}.top-0{top:0!important}.z-\\[-1\\]{z-index:-1!important}.z-\\[1\\]{z-index:1!important}.ml-auto{margin-left:auto!important}.flex{display:flex!important}.inline-flex{display:inline-flex!important}.aspect-\\[5\\/1\\]{aspect-ratio:5/1!important}.h-8{height:2rem!important}.h-full{height:100%!important}.max-h-\\[6\\.25rem\\]{max-height:6.25rem!important}.w-full{width:100%!important}.min-w-0{min-width:0!important}.max-w-full{max-width:100%!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.justify-start{justify-content:flex-start!important}.justify-end{justify-content:flex-end!important}.gap-2{gap:.5rem!important}.gap-4{gap:1rem!important}.overflow-hidden{overflow:hidden!important}.text-ellipsis{text-overflow:ellipsis!important}.rounded-t-2xl{border-top-left-radius:1rem!important;border-top-right-radius:1rem!important}.px-4{padding-left:1rem!important;padding-right:1rem!important}.py-3{padding-bottom:.75rem!important}.pt-3,.py-3{padding-top:.75rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.font-bold{font-weight:700!important}.empty\\:hidden:empty{display:none!important}";const o=i("inline-flex w-full relative flex-col justify-start z-[1] rounded-t-2xl relative",{variants:{variant:{default:"px-4",curve:"aspect-[5/1] max-h-[6.25rem]"}}});const r=i("flex items-center gap-2",{variants:{variant:{default:"py-3",curve:"px-4 pt-3"}}});const p=i("h-8 flex items-center font-bold text-sm gap-2 min-w-0");const s=class{constructor(e){t(this,e)}variant="default";header;icon;iconFlip;iconRotate;divider=true;render(){return e("div",{key:"287a5e84b8e362c6cc8a290b18b593249ddae05e",class:o({variant:this.variant})},e("div",{key:"6759a2b27f2ce7c8ec9b9515e666224eade5e36c",class:r({variant:this.variant})},this.icon?e("p-icon",{variant:this.icon,flip:this.iconFlip,rotate:this.iconRotate}):e("slot",{name:"prefix"}),e("div",{key:"0fe2d677d6d683592d01d456dd134f7a7e53cb05",class:p()},e("span",{key:"01921f09c1c2003fd4149fee2176cb4c3c24135f",class:"max-w-full overflow-hidden text-ellipsis"},this.header?.length?this.header:e("slot",null)),e("slot",{key:"9276e7743d7c14fb2d51db838d741978cb7815d6",name:"content-suffix"})),e("div",{key:"571583a0d1181a2e307ba86679003c6cc37e4e63",class:"ml-auto flex items-center justify-end gap-4 empty:hidden"},e("slot",{key:"67b0e37459bc30d8ac61d1f901fdfebdbf5f4aa1",name:"suffix"}))),this.variant==="default"?a(this.divider)&&e("p-divider",null):e("div",{class:"pointer-events-none absolute left-0 top-0 z-[-1] h-full w-full overflow-hidden rounded-t-2xl"},e("p-smile",{variant:"card"})))}};s.style=n;export{s as p_card_header};
2
- //# sourceMappingURL=p-dda23ac1.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["cardHeaderComponentCss","header","cva","variants","variant","default","curve","content","title","CardHeader","icon","iconFlip","iconRotate","divider","render","h","key","class","this","flip","rotate","name","length","asBoolean"],"sources":["src/components/atoms/card/header/card-header.component.css?tag=p-card-header&encapsulation=shadow","src/components/atoms/card/header/card-header.component.tsx"],"sourcesContent":[null,"import { Component, h, Prop } from '@stencil/core';\nimport { cva } from 'class-variance-authority';\n\nimport { RotateOptions } from '../../../../types/tailwind';\nimport {\n\tIconFlipOptions,\n\tIconVariant,\n} from '../../../atoms/icon/icon.component';\nimport { asBoolean } from '../../../../utils/as-boolean';\n\nconst header = cva(\n\t'inline-flex w-full relative flex-col justify-start z-[1] rounded-t-2xl relative',\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tdefault: 'px-4',\n\t\t\t\tcurve: 'aspect-[5/1] max-h-[6.25rem]',\n\t\t\t},\n\t\t},\n\t}\n);\n\nconst content = cva('flex items-center gap-2', {\n\tvariants: {\n\t\tvariant: {\n\t\t\tdefault: 'py-3',\n\t\t\tcurve: 'px-4 pt-3',\n\t\t},\n\t},\n});\nconst title = cva('h-8 flex items-center font-bold text-sm gap-2 min-w-0');\n\n@Component({\n\ttag: 'p-card-header',\n\tstyleUrl: 'card-header.component.css',\n\tshadow: true,\n})\nexport class CardHeader {\n\t/**\n\t * The variant of the card header\n\t */\n\t@Prop() variant: 'default' | 'curve' = 'default';\n\n\t/**\n\t * Content of the card header\n\t */\n\t@Prop() header: string;\n\n\t/**\n\t * Icon to show on the button\n\t */\n\t@Prop() icon?: IconVariant;\n\n\t/**\n\t * Icon flip\n\t */\n\t@Prop() iconFlip?: IconFlipOptions;\n\n\t/**\n\t * Icon rotate\n\t */\n\t@Prop() iconRotate?: RotateOptions;\n\n\t/**\n\t * Wether to show the divider\n\t */\n\t@Prop() divider = true;\n\n\trender() {\n\t\treturn (\n\t\t\t<div\n\t\t\t\tclass={header({\n\t\t\t\t\tvariant: this.variant,\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t<div\n\t\t\t\t\tclass={content({\n\t\t\t\t\t\tvariant: this.variant,\n\t\t\t\t\t})}\n\t\t\t\t>\n\t\t\t\t\t{this.icon ? (\n\t\t\t\t\t\t<p-icon\n\t\t\t\t\t\t\tvariant={this.icon}\n\t\t\t\t\t\t\tflip={this.iconFlip}\n\t\t\t\t\t\t\trotate={this.iconRotate}\n\t\t\t\t\t\t/>\n\t\t\t\t\t) : (\n\t\t\t\t\t\t<slot name='prefix' />\n\t\t\t\t\t)}\n\n\t\t\t\t\t<div class={title()}>\n\t\t\t\t\t\t<span class='max-w-full overflow-hidden text-ellipsis'>\n\t\t\t\t\t\t\t{this.header?.length ? this.header : <slot />}\n\t\t\t\t\t\t</span>\n\n\t\t\t\t\t\t<slot name='content-suffix' />\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div class='ml-auto flex items-center justify-end gap-4 empty:hidden'>\n\t\t\t\t\t\t<slot name='suffix' />\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\n\t\t\t\t{this.variant === 'default' ? (\n\t\t\t\t\tasBoolean(this.divider) && <p-divider />\n\t\t\t\t) : (\n\t\t\t\t\t<div class='pointer-events-none absolute left-0 top-0 z-[-1] h-full w-full overflow-hidden rounded-t-2xl'>\n\t\t\t\t\t\t<p-smile variant='card' />\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t);\n\t}\n}\n"],"mappings":"sIAAA,MAAMA,EAAyB,61CCU/B,MAAMC,EAASC,EACd,kFACA,CACCC,SAAU,CACTC,QAAS,CACRC,QAAS,OACTC,MAAO,mCAMX,MAAMC,EAAUL,EAAI,0BAA2B,CAC9CC,SAAU,CACTC,QAAS,CACRC,QAAS,OACTC,MAAO,gBAIV,MAAME,EAAQN,EAAI,yD,MAOLO,EAAU,M,yBAIdL,QAA+B,UAK/BH,OAKAS,KAKAC,SAKAC,WAKAC,QAAU,KAElB,MAAAC,GACC,OACCC,EAAA,OAAAC,IAAA,2CACCC,MAAOhB,EAAO,CACbG,QAASc,KAAKd,WAGfW,EACC,OAAAC,IAAA,2CAAAC,MAAOV,EAAQ,CACdH,QAASc,KAAKd,WAGdc,KAAKR,KACLK,EAAA,UACCX,QAASc,KAAKR,KACdS,KAAMD,KAAKP,SACXS,OAAQF,KAAKN,aAGdG,EAAM,QAAAM,KAAK,WAGZN,EAAK,OAAAC,IAAA,2CAAAC,MAAOT,KACXO,EAAA,QAAAC,IAAA,2CAAMC,MAAM,4CACVC,KAAKjB,QAAQqB,OAASJ,KAAKjB,OAASc,EAAA,cAGtCA,EAAA,QAAAC,IAAA,2CAAMK,KAAK,oBAGZN,EAAK,OAAAC,IAAA,2CAAAC,MAAM,4DACVF,EAAA,QAAAC,IAAA,2CAAMK,KAAK,aAIZH,KAAKd,UAAY,UACjBmB,EAAUL,KAAKL,UAAYE,EAAa,kBAExCA,EAAA,OAAKE,MAAM,gGACVF,EAAS,WAAAX,QAAQ,U","ignoreList":[]}