@paperless/core 1.54.1 → 1.54.2

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 (43) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/build/p-210a2c88.entry.js +2 -0
  3. package/dist/{paperless/p-7dc32e95.entry.js.map → build/p-210a2c88.entry.js.map} +1 -1
  4. package/dist/{paperless/p-8414aef5.entry.js → build/p-be4c976c.entry.js} +2 -2
  5. package/dist/build/p-be4c976c.entry.js.map +1 -0
  6. package/dist/build/paperless.esm.js +1 -1
  7. package/dist/build/paperless.esm.js.map +1 -1
  8. package/dist/cjs/loader.cjs.js +1 -1
  9. package/dist/cjs/p-button_3.cjs.entry.js +7 -3
  10. package/dist/cjs/p-button_3.cjs.entry.js.map +1 -1
  11. package/dist/cjs/p-floating-menu-container_8.cjs.entry.js +1 -1
  12. package/dist/cjs/p-floating-menu-container_8.cjs.entry.js.map +1 -1
  13. package/dist/cjs/paperless.cjs.js +1 -1
  14. package/dist/collection/components/atoms/button/button.component.js +25 -3
  15. package/dist/collection/components/atoms/button/button.component.js.map +1 -1
  16. package/dist/collection/components/molecules/table-cell/table-cell.component.css +1 -1
  17. package/dist/components/button.component.js +8 -3
  18. package/dist/components/button.component.js.map +1 -1
  19. package/dist/components/table-cell.component.js +1 -1
  20. package/dist/components/table-cell.component.js.map +1 -1
  21. package/dist/esm/loader.js +1 -1
  22. package/dist/esm/p-button_3.entry.js +7 -3
  23. package/dist/esm/p-button_3.entry.js.map +1 -1
  24. package/dist/esm/p-floating-menu-container_8.entry.js +1 -1
  25. package/dist/esm/p-floating-menu-container_8.entry.js.map +1 -1
  26. package/dist/esm/paperless.js +1 -1
  27. package/dist/index.html +1 -1
  28. package/dist/paperless/p-210a2c88.entry.js +2 -0
  29. package/dist/{build/p-7dc32e95.entry.js.map → paperless/p-210a2c88.entry.js.map} +1 -1
  30. package/dist/{build/p-8414aef5.entry.js → paperless/p-be4c976c.entry.js} +2 -2
  31. package/dist/paperless/p-be4c976c.entry.js.map +1 -0
  32. package/dist/paperless/paperless.esm.js +1 -1
  33. package/dist/paperless/paperless.esm.js.map +1 -1
  34. package/dist/sw.js +1 -1
  35. package/dist/sw.js.map +1 -1
  36. package/dist/types/components/atoms/button/button.component.d.ts +4 -0
  37. package/dist/types/components.d.ts +8 -0
  38. package/hydrate/index.js +9 -4
  39. package/package.json +1 -1
  40. package/dist/build/p-7dc32e95.entry.js +0 -2
  41. package/dist/build/p-8414aef5.entry.js.map +0 -1
  42. package/dist/paperless/p-7dc32e95.entry.js +0 -2
  43. package/dist/paperless/p-8414aef5.entry.js.map +0 -1
@@ -2,6 +2,10 @@ import { EventEmitter } from '../../../stencil-public-runtime';
2
2
  import { RotateOptions } from '../../../types/tailwind';
3
3
  import { IconFlipOptions, IconVariant } from '../icon/icon.component';
4
4
  export declare class Button {
5
+ /**
6
+ * The type of the button
7
+ */
8
+ as: 'a' | 'button';
5
9
  /**
6
10
  * The variant of the button
7
11
  */
@@ -124,6 +124,10 @@ export namespace Components {
124
124
  "variant": 'modal' | 'drawer';
125
125
  }
126
126
  interface PButton {
127
+ /**
128
+ * The type of the button
129
+ */
130
+ "as": 'a' | 'button';
127
131
  /**
128
132
  * Wether to show a chevron or not
129
133
  */
@@ -2274,6 +2278,10 @@ declare namespace LocalJSX {
2274
2278
  "variant"?: 'modal' | 'drawer';
2275
2279
  }
2276
2280
  interface PButton {
2281
+ /**
2282
+ * The type of the button
2283
+ */
2284
+ "as"?: 'a' | 'button';
2277
2285
  /**
2278
2286
  * Wether to show a chevron or not
2279
2287
  */
package/hydrate/index.js CHANGED
@@ -5984,6 +5984,7 @@ class Button {
5984
5984
  constructor(hostRef) {
5985
5985
  registerInstance(this, hostRef);
5986
5986
  this.onClick = createEvent(this, "onClick", 3);
5987
+ this.as = 'button';
5987
5988
  this.variant = 'primary';
5988
5989
  this.underline = false;
5989
5990
  this.href = undefined;
@@ -6002,6 +6003,7 @@ class Button {
6002
6003
  this.inheritText = false;
6003
6004
  }
6004
6005
  render() {
6006
+ var _a;
6005
6007
  let loaderColor = 'white';
6006
6008
  switch (this.variant) {
6007
6009
  case 'secondary':
@@ -6011,14 +6013,16 @@ class Button {
6011
6013
  loaderColor = 'indigo';
6012
6014
  break;
6013
6015
  }
6014
- const VariableTag = this.variant === 'text' ? 'a' : 'button';
6015
- return (hAsync(Host, { class: `p-button size-${this.size} ${this.iconOnly && 'has-icon-only'} ${this.chevron && 'has-chevron'}` }, hAsync(VariableTag, { class: `variant-${this.variant} icon-position-${this.iconPosition} chevron-position-${this.chevronPosition} ${this.inheritText && 'should-inherit-text'} ${this.underline && 'has-underline'}`, disabled: this.disabled, href: this.href, type: this.variant !== 'text' ? this.type : undefined, target: this.target }, this.chevron && this.chevronPosition === 'start' && (hAsync("p-icon", { class: "chevron", variant: "chevron", rotate: this.chevron === 'up' ? 180 : 0 })), this.icon &&
6016
+ const VariableTag = this.variant === 'text' || ((_a = this.href) === null || _a === void 0 ? void 0 : _a.length) || this.as === 'a'
6017
+ ? 'a'
6018
+ : 'button';
6019
+ return (hAsync(Host, { class: `p-button size-${this.size} ${this.iconOnly && 'has-icon-only'} ${this.chevron && 'has-chevron'}` }, hAsync(VariableTag, { class: `variant-${this.variant} icon-position-${this.iconPosition} chevron-position-${this.chevronPosition} ${this.inheritText && 'should-inherit-text'} ${this.underline && 'has-underline'}`, disabled: this.disabled, href: this.href, type: this.variant !== 'text' ? this.type : undefined, target: this.target }, this.chevron && this.chevronPosition === 'start' && (hAsync("p-icon", { class: 'chevron', variant: 'chevron', rotate: this.chevron === 'up' ? 180 : 0 })), this.icon &&
6016
6020
  this.iconPosition === 'start' &&
6017
6021
  !(this.iconOnly && this.loading) &&
6018
6022
  this._getIcon(), hAsync("slot", null), this.icon &&
6019
6023
  this.iconPosition === 'end' &&
6020
6024
  !(this.iconOnly && this.loading) &&
6021
- this._getIcon(), this.loading && hAsync("p-loader", { color: loaderColor }), this.chevron && this.chevronPosition === 'end' && (hAsync("p-icon", { class: "chevron", variant: "chevron", rotate: this.chevron === 'up' ? 180 : 0 })))));
6025
+ this._getIcon(), this.loading && hAsync("p-loader", { color: loaderColor }), this.chevron && this.chevronPosition === 'end' && (hAsync("p-icon", { class: 'chevron', variant: 'chevron', rotate: this.chevron === 'up' ? 180 : 0 })))));
6022
6026
  }
6023
6027
  handleClick(ev) {
6024
6028
  if (this.loading || this.disabled) {
@@ -6038,6 +6042,7 @@ class Button {
6038
6042
  "$flags$": 4,
6039
6043
  "$tagName$": "p-button",
6040
6044
  "$members$": {
6045
+ "as": [1],
6041
6046
  "variant": [1],
6042
6047
  "underline": [4],
6043
6048
  "href": [1],
@@ -22384,7 +22389,7 @@ class Table {
22384
22389
  }; }
22385
22390
  }
22386
22391
 
22387
- const tableCellComponentCss = ".gap-4{gap:1rem!important}*{box-sizing:border-box}p-table-cell{align-items:center;gap:1rem}.static{position:static!important}.flex{display:flex!important}.table-cell{display:table-cell!important}.hidden{display:none!important}.h-6{height:1.5rem!important}.w-1\\/12{width:8.333333%!important}.w-10\\/12{width:83.333333%!important}.w-11\\/12{width:91.666667%!important}.w-2\\/12{width:16.666667%!important}.w-3\\/12{width:25%!important}.w-4\\/12{width:33.333333%!important}.w-5\\/12{width:41.666667%!important}.w-6\\/12{width:50%!important}.w-7\\/12{width:58.333333%!important}.w-8\\/12{width:66.666667%!important}.w-9\\/12{width:75%!important}.w-full{width:100%!important}.flex-1{flex:1 1 0%!important}.justify-start{justify-content:flex-start!important}.justify-end{justify-content:flex-end!important}.justify-center{justify-content:center!important}.rounded{border-radius:.25rem!important}.pr-0{padding-right:0!important}.pr-4{padding-right:1rem!important}.font-semibold{font-weight:600!important}.text-storm-dark{--tw-text-opacity:1!important;color:rgb(39 40 56/var(--tw-text-opacity))!important}.group:hover .group-hover\\:flex{display:flex!important}.group:hover .group-hover\\:hidden{display:none!important}@media (min-width:40rem){.tablet\\:flex{display:flex!important}.tablet\\:hidden{display:none!important}.tablet\\:w-1\\/12{width:8.333333%!important}.tablet\\:w-10\\/12{width:83.333333%!important}.tablet\\:w-11\\/12{width:91.666667%!important}.tablet\\:w-2\\/12{width:16.666667%!important}.tablet\\:w-3\\/12{width:25%!important}.tablet\\:w-4\\/12{width:33.333333%!important}.tablet\\:w-5\\/12{width:41.666667%!important}.tablet\\:w-6\\/12{width:50%!important}.tablet\\:w-7\\/12{width:58.333333%!important}.tablet\\:w-8\\/12{width:66.666667%!important}.tablet\\:w-9\\/12{width:75%!important}.tablet\\:pr-0{padding-right:0!important}.tablet\\:pr-4{padding-right:1rem!important}.group:hover .tablet\\:group-hover\\:flex{display:flex!important}.group:hover .tablet\\:group-hover\\:hidden{display:none!important}}@media (min-width:64rem){.desktop-xs\\:flex{display:flex!important}.desktop-xs\\:hidden{display:none!important}.desktop-xs\\:w-1\\/12{width:8.333333%!important}.desktop-xs\\:w-10\\/12{width:83.333333%!important}.desktop-xs\\:w-11\\/12{width:91.666667%!important}.desktop-xs\\:w-2\\/12{width:16.666667%!important}.desktop-xs\\:w-3\\/12{width:25%!important}.desktop-xs\\:w-4\\/12{width:33.333333%!important}.desktop-xs\\:w-5\\/12{width:41.666667%!important}.desktop-xs\\:w-6\\/12{width:50%!important}.desktop-xs\\:w-7\\/12{width:58.333333%!important}.desktop-xs\\:w-8\\/12{width:66.666667%!important}.desktop-xs\\:w-9\\/12{width:75%!important}.desktop-xs\\:pr-0{padding-right:0!important}.desktop-xs\\:pr-4{padding-right:1rem!important}.group:hover .desktop-xs\\:group-hover\\:flex{display:flex!important}.group:hover .desktop-xs\\:group-hover\\:hidden{display:none!important}}@media (min-width:80rem){.desktop-sm\\:flex{display:flex!important}.desktop-sm\\:hidden{display:none!important}.desktop-sm\\:w-1\\/12{width:8.333333%!important}.desktop-sm\\:w-10\\/12{width:83.333333%!important}.desktop-sm\\:w-11\\/12{width:91.666667%!important}.desktop-sm\\:w-2\\/12{width:16.666667%!important}.desktop-sm\\:w-3\\/12{width:25%!important}.desktop-sm\\:w-4\\/12{width:33.333333%!important}.desktop-sm\\:w-5\\/12{width:41.666667%!important}.desktop-sm\\:w-6\\/12{width:50%!important}.desktop-sm\\:w-7\\/12{width:58.333333%!important}.desktop-sm\\:w-8\\/12{width:66.666667%!important}.desktop-sm\\:w-9\\/12{width:75%!important}.desktop-sm\\:pr-0{padding-right:0!important}.desktop-sm\\:pr-4{padding-right:1rem!important}.group:hover .desktop-sm\\:group-hover\\:flex{display:flex!important}.group:hover .desktop-sm\\:group-hover\\:hidden{display:none!important}}@media (min-width:85.375rem){.desktop\\:flex{display:flex!important}.desktop\\:hidden{display:none!important}.desktop\\:w-1\\/12{width:8.333333%!important}.desktop\\:w-10\\/12{width:83.333333%!important}.desktop\\:w-11\\/12{width:91.666667%!important}.desktop\\:w-2\\/12{width:16.666667%!important}.desktop\\:w-3\\/12{width:25%!important}.desktop\\:w-4\\/12{width:33.333333%!important}.desktop\\:w-5\\/12{width:41.666667%!important}.desktop\\:w-6\\/12{width:50%!important}.desktop\\:w-7\\/12{width:58.333333%!important}.desktop\\:w-8\\/12{width:66.666667%!important}.desktop\\:w-9\\/12{width:75%!important}.desktop\\:pr-0{padding-right:0!important}.desktop\\:pr-4{padding-right:1rem!important}.group:hover .desktop\\:group-hover\\:flex{display:flex!important}.group:hover .desktop\\:group-hover\\:hidden{display:none!important}}@media (min-width:90rem){.desktop-lg\\:flex{display:flex!important}.desktop-lg\\:hidden{display:none!important}.desktop-lg\\:w-1\\/12{width:8.333333%!important}.desktop-lg\\:w-10\\/12{width:83.333333%!important}.desktop-lg\\:w-11\\/12{width:91.666667%!important}.desktop-lg\\:w-2\\/12{width:16.666667%!important}.desktop-lg\\:w-3\\/12{width:25%!important}.desktop-lg\\:w-4\\/12{width:33.333333%!important}.desktop-lg\\:w-5\\/12{width:41.666667%!important}.desktop-lg\\:w-6\\/12{width:50%!important}.desktop-lg\\:w-7\\/12{width:58.333333%!important}.desktop-lg\\:w-8\\/12{width:66.666667%!important}.desktop-lg\\:w-9\\/12{width:75%!important}.desktop-lg\\:pr-0{padding-right:0!important}.desktop-lg\\:pr-4{padding-right:1rem!important}.group:hover .desktop-lg\\:group-hover\\:flex{display:flex!important}.group:hover .desktop-lg\\:group-hover\\:hidden{display:none!important}}@media (min-width:120rem){.desktop-xl\\:flex{display:flex!important}.desktop-xl\\:hidden{display:none!important}.desktop-xl\\:w-1\\/12{width:8.333333%!important}.desktop-xl\\:w-10\\/12{width:83.333333%!important}.desktop-xl\\:w-11\\/12{width:91.666667%!important}.desktop-xl\\:w-2\\/12{width:16.666667%!important}.desktop-xl\\:w-3\\/12{width:25%!important}.desktop-xl\\:w-4\\/12{width:33.333333%!important}.desktop-xl\\:w-5\\/12{width:41.666667%!important}.desktop-xl\\:w-6\\/12{width:50%!important}.desktop-xl\\:w-7\\/12{width:58.333333%!important}.desktop-xl\\:w-8\\/12{width:66.666667%!important}.desktop-xl\\:w-9\\/12{width:75%!important}.desktop-xl\\:pr-0{padding-right:0!important}.desktop-xl\\:pr-4{padding-right:1rem!important}.group:hover .desktop-xl\\:group-hover\\:flex{display:flex!important}.group:hover .desktop-xl\\:group-hover\\:hidden{display:none!important}}";
22392
+ const tableCellComponentCss = ".gap-4{gap:1rem!important}*{box-sizing:border-box}p-table-cell{align-items:center;gap:1rem}.static{position:static!important}.flex{display:flex!important}.table-cell{display:table-cell!important}.h-6{height:1.5rem!important}.w-full{width:100%!important}.flex-1{flex:1 1 0%!important}.justify-start{justify-content:flex-start!important}.justify-end{justify-content:flex-end!important}.justify-center{justify-content:center!important}.rounded{border-radius:.25rem!important}";
22388
22393
 
22389
22394
  /*
22390
22395
  With this, we shall hack the system in ways no one would ever have thought.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paperless/core",
3
- "version": "1.54.1",
3
+ "version": "1.54.2",
4
4
  "description": "Stencil Component Starter",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",