@paperless/core 2.0.1-beta.76 → 2.0.1-beta.77
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/CHANGELOG.md +11 -0
- package/dist/build/{p-8ba73b4d.entry.js → p-09d68fa3.entry.js} +2 -2
- package/dist/build/p-09d68fa3.entry.js.map +1 -0
- package/dist/build/{p-e185f565.js → p-606a3f67.js} +1 -1
- package/dist/build/p-label.entry.esm.js.map +1 -1
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/p-label.cjs.entry.js +4 -4
- package/dist/cjs/p-label.cjs.entry.js.map +1 -1
- package/dist/cjs/p-label.entry.cjs.js.map +1 -1
- package/dist/collection/components/molecules/label/label.component.js +6 -6
- package/dist/collection/components/molecules/label/label.component.js.map +1 -1
- package/dist/components/p-label.js +4 -4
- package/dist/components/p-label.js.map +1 -1
- package/dist/esm/p-label.entry.js +4 -4
- package/dist/esm/p-label.entry.js.map +1 -1
- package/dist/index.html +1 -1
- package/dist/paperless/{p-8ba73b4d.entry.js → p-09d68fa3.entry.js} +2 -2
- package/dist/paperless/p-09d68fa3.entry.js.map +1 -0
- package/dist/paperless/p-label.entry.esm.js.map +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/label/label.component.d.ts +1 -1
- package/dist/types/components.d.ts +2 -2
- package/package.json +1 -1
- package/dist/build/p-8ba73b4d.entry.js.map +0 -1
- package/dist/paperless/p-8ba73b4d.entry.js.map +0 -1
|
@@ -1052,7 +1052,7 @@ export namespace Components {
|
|
|
1052
1052
|
* Variant of the label
|
|
1053
1053
|
*/
|
|
1054
1054
|
"variant": | 'positive'
|
|
1055
|
-
| '
|
|
1055
|
+
| 'biased'
|
|
1056
1056
|
| 'negative'
|
|
1057
1057
|
| 'neutral'
|
|
1058
1058
|
| 'unavailable';
|
|
@@ -4243,7 +4243,7 @@ declare namespace LocalJSX {
|
|
|
4243
4243
|
* Variant of the label
|
|
4244
4244
|
*/
|
|
4245
4245
|
"variant"?: | 'positive'
|
|
4246
|
-
| '
|
|
4246
|
+
| 'biased'
|
|
4247
4247
|
| 'negative'
|
|
4248
4248
|
| 'neutral'
|
|
4249
4249
|
| 'unavailable';
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["labelComponentCss","label","cva","variants","variant","positive","unbiased","negative","neutral","unavailable","iconOnly","false","true","keepMobileContent","compoundVariants","class","Label","icon","iconFlip","iconRotate","render","h","Host","key","this","flip","rotate","cn","hidden"],"sources":["src/components/molecules/label/label.component.css?tag=p-label&encapsulation=shadow","src/components/molecules/label/label.component.tsx"],"sourcesContent":[null,"import { Component, h, Host, Prop } from '@stencil/core';\nimport { RotateOptions } from '../../../types';\nimport { IconFlipOptions, IconVariant } from '../../atoms/icon/icon.component';\nimport { cva } from 'class-variance-authority';\nimport { cn } from '../../../utils/cn';\n\nconst label = cva(\n\t['flex items-center justify-center gap-2', 'h-6 rounded-full'],\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tpositive: 'bg-positive-green-100 text-positive-green-800',\n\t\t\t\tunbiased: 'bg-amber-100 text-amber-800',\n\t\t\t\tnegative: 'bg-negative-red-100 text-negative-red-800',\n\t\t\t\tneutral: 'bg-supportive-lilac-100 text-supportive-lilac-900',\n\t\t\t\tunavailable: 'bg-white-700 text-dark-teal-800',\n\t\t\t},\n\t\t\ticonOnly: {\n\t\t\t\tfalse: 'px-2',\n\t\t\t\ttrue: 'p-2 w-6',\n\t\t\t},\n\t\t\tkeepMobileContent: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [\n\t\t\t{\n\t\t\t\tkeepMobileContent: false,\n\t\t\t\ticonOnly: false,\n\t\t\t\tclass: 'p-2 w-6 desktop-xs:w-auto desktop-xs:py-0',\n\t\t\t},\n\t\t],\n\t}\n);\n\n@Component({\n\ttag: 'p-label',\n\tstyleUrl: 'label.component.css',\n\tshadow: true,\n})\nexport class Label {\n\t/**\n\t * Variant of the label\n\t */\n\t@Prop({ reflect: true }) variant:\n\t\t| 'positive'\n\t\t| 'unbiased'\n\t\t| 'negative'\n\t\t| 'neutral'\n\t\t| 'unavailable' = 'neutral';\n\n\t/**\n\t * Wether to only show the icon\n\t */\n\t@Prop({ reflect: true }) iconOnly: boolean = false;\n\n\t/**\n\t * Icon to show on the label\n\t */\n\t@Prop({ reflect: true }) 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 keep the content on mobile\n\t */\n\t@Prop({ reflect: true }) keepMobileContent: boolean = false;\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class='p-label'>\n\t\t\t\t<div\n\t\t\t\t\tclass={label({\n\t\t\t\t\t\tvariant: this.variant,\n\t\t\t\t\t\ticonOnly: this.iconOnly,\n\t\t\t\t\t\tkeepMobileContent: this.keepMobileContent,\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\tclass='flex-shrink-0'\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\n\t\t\t\t\t{!this.iconOnly && (\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclass={cn(\n\t\t\t\t\t\t\t\t'flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-sm',\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\thidden: !this.keepMobileContent,\n\t\t\t\t\t\t\t\t\t'desktop-xs:block': !this.keepMobileContent,\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<slot />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"mappings":"kJAAA,MAAMA,EAAoB,k9DCM1B,MAAMC,EAAQC,EACb,CAAC,yCAA0C,oBAC3C,CACCC,SAAU,CACTC,QAAS,CACRC,SAAU,gDACVC,SAAU,+BACVC,SAAU,4CACVC,QAAS,oDACTC,YAAa,mCAEdC,SAAU,CACTC,MAAO,OACPC,KAAM,WAEPC,kBAAmB,CAClBF,MAAO,KACPC,KAAM,OAGRE,iBAAkB,CACjB,CACCD,kBAAmB,MACnBH,SAAU,MACVK,MAAO,gD,MAWEC,EAAK,M,yBAIQZ,QAKN,UAKMM,SAAoB,MAKpBO,KAKjBC,SAKAC,WAKiBN,kBAA6B,MAEtD,MAAAO,GACC,OACCC,EAACC,EAAK,CAAAC,IAAA,2CAAAR,MAAM,WACXM,EACC,OAAAE,IAAA,2CAAAR,MAAOd,EAAM,CACZG,QAASoB,KAAKpB,QACdM,SAAUc,KAAKd,SACfG,kBAAmBW,KAAKX,qBAGxBW,KAAKP,MACLI,EAAA,UAAAE,IAAA,2CACCR,MAAM,gBACNX,QAASoB,KAAKP,KACdQ,KAAMD,KAAKN,SACXQ,OAAQF,KAAKL,cAIbK,KAAKd,UACNW,EACC,OAAAE,IAAA,2CAAAR,MAAOY,EACN,iEACA,CACCC,QAASJ,KAAKX,kBACd,oBAAqBW,KAAKX,qBAI5BQ,EAAA,QAAAE,IAAA,+C","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["labelComponentCss","label","cva","variants","variant","positive","unbiased","negative","neutral","unavailable","iconOnly","false","true","keepMobileContent","compoundVariants","class","Label","icon","iconFlip","iconRotate","render","h","Host","key","this","flip","rotate","cn","hidden"],"sources":["src/components/molecules/label/label.component.css?tag=p-label&encapsulation=shadow","src/components/molecules/label/label.component.tsx"],"sourcesContent":[null,"import { Component, h, Host, Prop } from '@stencil/core';\nimport { RotateOptions } from '../../../types';\nimport { IconFlipOptions, IconVariant } from '../../atoms/icon/icon.component';\nimport { cva } from 'class-variance-authority';\nimport { cn } from '../../../utils/cn';\n\nconst label = cva(\n\t['flex items-center justify-center gap-2', 'h-6 rounded-full'],\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tpositive: 'bg-positive-green-100 text-positive-green-800',\n\t\t\t\tunbiased: 'bg-amber-100 text-amber-800',\n\t\t\t\tnegative: 'bg-negative-red-100 text-negative-red-800',\n\t\t\t\tneutral: 'bg-supportive-lilac-100 text-supportive-lilac-900',\n\t\t\t\tunavailable: 'bg-white-700 text-dark-teal-800',\n\t\t\t},\n\t\t\ticonOnly: {\n\t\t\t\tfalse: 'px-2',\n\t\t\t\ttrue: 'p-2 w-6',\n\t\t\t},\n\t\t\tkeepMobileContent: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [\n\t\t\t{\n\t\t\t\tkeepMobileContent: false,\n\t\t\t\ticonOnly: false,\n\t\t\t\tclass: 'p-2 w-6 desktop-xs:w-auto desktop-xs:py-0',\n\t\t\t},\n\t\t],\n\t}\n);\n\n@Component({\n\ttag: 'p-label',\n\tstyleUrl: 'label.component.css',\n\tshadow: true,\n})\nexport class Label {\n\t/**\n\t * Variant of the label\n\t */\n\t@Prop({ reflect: true }) variant:\n\t\t| 'positive'\n\t\t| 'unbiased'\n\t\t| 'negative'\n\t\t| 'neutral'\n\t\t| 'unavailable' = 'neutral';\n\n\t/**\n\t * Wether to only show the icon\n\t */\n\t@Prop({ reflect: true }) iconOnly: boolean = false;\n\n\t/**\n\t * Icon to show on the label\n\t */\n\t@Prop({ reflect: true }) 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 keep the content on mobile\n\t */\n\t@Prop({ reflect: true }) keepMobileContent: boolean = false;\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class='p-label'>\n\t\t\t\t<div\n\t\t\t\t\tclass={label({\n\t\t\t\t\t\tvariant: this.variant,\n\t\t\t\t\t\ticonOnly: this.iconOnly,\n\t\t\t\t\t\tkeepMobileContent: this.keepMobileContent,\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\tclass='flex-shrink-0'\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\n\t\t\t\t\t{!this.iconOnly && (\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclass={cn(\n\t\t\t\t\t\t\t\t'flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-sm',\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\thidden: !this.keepMobileContent,\n\t\t\t\t\t\t\t\t\t'desktop-xs:block': !this.keepMobileContent,\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<slot />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"mappings":"kJAAA,MAAMA,EAAoB,k9DCM1B,MAAMC,EAAQC,EACb,CAAC,yCAA0C,oBAC3C,CACCC,SAAU,CACTC,QAAS,CACRC,SAAU,gDACVC,SAAU,+BACVC,SAAU,4CACVC,QAAS,oDACTC,YAAa,mCAEdC,SAAU,CACTC,MAAO,OACPC,KAAM,WAEPC,kBAAmB,CAClBF,MAAO,KACPC,KAAM,OAGRE,iBAAkB,CACjB,CACCD,kBAAmB,MACnBH,SAAU,MACVK,MAAO,gD,MAWEC,EAAK,M,yBAIQZ,QAKN,UAKMM,SAAoB,MAKpBO,KAKjBC,SAKAC,WAKiBN,kBAA6B,MAEtD,MAAAO,GACC,OACCC,EAACC,EAAK,CAAAC,IAAA,2CAAAR,MAAM,WACXM,EACC,OAAAE,IAAA,2CAAAR,MAAOd,EAAM,CACZG,QAASoB,KAAKpB,QACdM,SAAUc,KAAKd,SACfG,kBAAmBW,KAAKX,qBAGxBW,KAAKP,MACLI,EAAA,UAAAE,IAAA,2CACCR,MAAM,gBACNX,QAASoB,KAAKP,KACdQ,KAAMD,KAAKN,SACXQ,OAAQF,KAAKL,cAIbK,KAAKd,UACNW,EACC,OAAAE,IAAA,2CAAAR,MAAOY,EACN,iEACA,CACCC,QAASJ,KAAKX,kBACd,oBAAqBW,KAAKX,qBAI5BQ,EAAA,QAAAE,IAAA,+C","ignoreList":[]}
|