@paperless/core 2.13.9 → 2.13.10

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 (58) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/build/p-221135cd.entry.js +2 -0
  3. package/dist/build/p-221135cd.entry.js.map +1 -0
  4. package/dist/build/{p-2b4b5267.js → p-67302f9c.js} +1 -1
  5. package/dist/build/p-button.p-icon.p-loader.entry.esm.js.map +1 -1
  6. package/dist/build/paperless.esm.js +1 -1
  7. package/dist/cjs/p-button.p-icon.p-loader.entry.cjs.js.map +1 -1
  8. package/dist/cjs/p-button_3.cjs.entry.js +69 -4
  9. package/dist/cjs/p-button_3.cjs.entry.js.map +1 -1
  10. package/dist/collection/components/molecules/button/button.component.css +1 -1
  11. package/dist/collection/components/molecules/button/button.component.js +68 -3
  12. package/dist/collection/components/molecules/button/button.component.js.map +1 -1
  13. package/dist/components/{p-DuLPGV4R.js → p-C7qLHU9G.js} +3 -3
  14. package/dist/components/{p-DuLPGV4R.js.map → p-C7qLHU9G.js.map} +1 -1
  15. package/dist/components/{p-CkSublD0.js → p-CfoZ2b-S.js} +3 -3
  16. package/dist/components/{p-CkSublD0.js.map → p-CfoZ2b-S.js.map} +1 -1
  17. package/dist/components/{p-BWP1J8P7.js → p-Ci1bxrOO.js} +4 -4
  18. package/dist/components/{p-BWP1J8P7.js.map → p-Ci1bxrOO.js.map} +1 -1
  19. package/dist/components/p-CwK85Hfo.js +606 -0
  20. package/dist/components/p-CwK85Hfo.js.map +1 -0
  21. package/dist/components/{p-Hk6_uWf_.js → p-Da0KnGTF.js} +3 -3
  22. package/dist/components/{p-Hk6_uWf_.js.map → p-Da0KnGTF.js.map} +1 -1
  23. package/dist/components/{p-ByBq4ZO0.js → p-F7aAj6kw.js} +3 -3
  24. package/dist/components/{p-ByBq4ZO0.js.map → p-F7aAj6kw.js.map} +1 -1
  25. package/dist/components/{p-CzoowiDG.js → p-YTOFkKg1.js} +3 -3
  26. package/dist/components/{p-CzoowiDG.js.map → p-YTOFkKg1.js.map} +1 -1
  27. package/dist/components/p-attachment.js +1 -1
  28. package/dist/components/p-button.js +1 -1
  29. package/dist/components/p-calendar.js +1 -1
  30. package/dist/components/p-datepicker.js +3 -3
  31. package/dist/components/p-drawer-header.js +1 -1
  32. package/dist/components/p-drawer.js +2 -2
  33. package/dist/components/p-empty-state.js +1 -1
  34. package/dist/components/p-field.js +1 -1
  35. package/dist/components/p-modal-header.js +1 -1
  36. package/dist/components/p-modal.js +2 -2
  37. package/dist/components/p-navbar.js +1 -1
  38. package/dist/components/p-profile.js +1 -1
  39. package/dist/components/p-select.js +2 -2
  40. package/dist/components/p-table-header.js +1 -1
  41. package/dist/components/p-table.js +4 -4
  42. package/dist/esm/p-button.p-icon.p-loader.entry.js.map +1 -1
  43. package/dist/esm/p-button_3.entry.js +69 -4
  44. package/dist/esm/p-button_3.entry.js.map +1 -1
  45. package/dist/index.html +1 -1
  46. package/dist/paperless/p-221135cd.entry.js +2 -0
  47. package/dist/paperless/p-221135cd.entry.js.map +1 -0
  48. package/dist/paperless/p-button.p-icon.p-loader.entry.esm.js.map +1 -1
  49. package/dist/paperless/paperless.esm.js +1 -1
  50. package/dist/sw.js +1 -1
  51. package/dist/sw.js.map +1 -1
  52. package/package.json +1 -1
  53. package/dist/build/p-b311a3fa.entry.js +0 -2
  54. package/dist/build/p-b311a3fa.entry.js.map +0 -1
  55. package/dist/components/p-CbigFpjI.js +0 -541
  56. package/dist/components/p-CbigFpjI.js.map +0 -1
  57. package/dist/paperless/p-b311a3fa.entry.js +0 -2
  58. package/dist/paperless/p-b311a3fa.entry.js.map +0 -1
@@ -1,541 +0,0 @@
1
- import { p as proxyCustomElement, H, c as createEvent, h } from './p-Dgl2kvBS.js';
2
- import { c as cva } from './p-CBWjHURv.js';
3
- import { T as ThemedHost } from './p-7QA93RrV.js';
4
- import { a as asBoolean } from './p-C5CTp9IA.js';
5
- import { c as cn } from './p-CT54OXR2.js';
6
- import { d as defineCustomElement$2 } from './p-BHphGfv6.js';
7
- import { d as defineCustomElement$1 } from './p-BFbLqg3-.js';
8
-
9
- const buttonComponentCss = "*{box-sizing:border-box}.static{position:static!important}.inline-block{display:inline-block!important}.flex{display:flex!important}.h-10{height:2.5rem!important}.h-6{height:1.5rem!important}.h-8{height:2rem!important}.w-10{width:2.5rem!important}.w-6{width:1.5rem!important}.w-8{width:2rem!important}.w-inherit{width:inherit!important}.cursor-not-allowed{cursor:not-allowed!important}.cursor-pointer{cursor:pointer!important}.cursor-wait{cursor:wait!important}.items-center{align-items:center!important}.justify-center{justify-content:center!important}.gap-1{gap:.25rem!important}.gap-2{gap:.5rem!important}.rounded-lg{border-radius:.5rem!important}.rounded-e-lg{border-end-end-radius:.5rem!important;border-start-end-radius:.5rem!important}.rounded-s-lg{border-end-start-radius:.5rem!important;border-start-start-radius:.5rem!important}.border{border-width:1px!important}.border-indigo-600{--tw-border-opacity:1!important;border-color:rgb(82 138 250/var(--tw-border-opacity,1))!important}.border-negative-red-500{--tw-border-opacity:1!important;border-color:rgb(230 30 30/var(--tw-border-opacity,1))!important}.border-storm-500\\/20{border-color:rgba(24,30,41,.2)!important}.border-transparent{border-color:transparent!important}.bg-indigo-200{--tw-bg-opacity:1!important;background-color:rgb(199 217 253/var(--tw-bg-opacity,1))!important}.bg-indigo-600{--tw-bg-opacity:1!important;background-color:rgb(82 138 250/var(--tw-bg-opacity,1))!important}.bg-transparent{background-color:transparent!important}.bg-white{background-color:rgb(255 255 255/var(--tw-bg-opacity,1))!important}.bg-white,.bg-white-600{--tw-bg-opacity:1!important}.bg-white-600{background-color:rgb(250 250 250/var(--tw-bg-opacity,1))!important}.p-2{padding:.5rem!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.px-3{padding-left:.75rem!important;padding-right:.75rem!important}.py-1{padding-bottom:.25rem!important;padding-top:.25rem!important}.font-geist{font-family:Geist,serif!important}.text-base{font-size:1rem!important;line-height:1.5rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.font-semibold{font-weight:600!important}.leading-4{line-height:1rem!important}.text-indigo-300{--tw-text-opacity:1!important;color:rgb(187 209 253/var(--tw-text-opacity,1))!important}.text-indigo-500{--tw-text-opacity:1!important;color:rgb(142 179 251/var(--tw-text-opacity,1))!important}.text-indigo-700{--tw-text-opacity:1!important;color:rgb(47 111 240/var(--tw-text-opacity,1))!important}.text-negative-red-500{--tw-text-opacity:1!important;color:rgb(230 30 30/var(--tw-text-opacity,1))!important}.text-negative-red-800{--tw-text-opacity:1!important;color:rgb(141 16 16/var(--tw-text-opacity,1))!important}.text-storm-100{--tw-text-opacity:1!important;color:rgb(209 210 212/var(--tw-text-opacity,1))!important}.text-storm-300{--tw-text-opacity:1!important;color:rgb(116 120 127/var(--tw-text-opacity,1))!important}.text-storm-500{--tw-text-opacity:1!important;color:rgb(24 30 41/var(--tw-text-opacity,1))!important}.text-storm-500\\/60{color:rgba(24,30,41,.6)!important}.text-white{--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity,1))!important}.text-white\\/60{color:hsla(0,0%,100%,.6)!important}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important}.ring,.ring-2{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important}.ring-indigo-100{--tw-ring-opacity:1!important;--tw-ring-color:rgb(227 236 254/var(--tw-ring-opacity,1))!important}.ring-negative-red-50{--tw-ring-opacity:1!important;--tw-ring-color:rgb(253 237 237/var(--tw-ring-opacity,1))!important}.drop-shadow-1{--tw-drop-shadow:drop-shadow(0 1px 1px rgba(0,2,2,.08))!important}.drop-shadow-1,.drop-shadow-primary-button{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.drop-shadow-primary-button{--tw-drop-shadow:drop-shadow(0px 1px 1px 0px rgba(24,30 41,0.08))!important}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:85.375rem){.container{max-width:85.375rem}}@media (min-width:90rem){.container{max-width:90rem}}@media (min-width:96rem){.container{max-width:96rem}}@media (min-width:105rem){.container{max-width:105rem}}@media (min-width:120rem){.container{max-width:120rem}}@media (min-width:160rem){.container{max-width:160rem}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.hover\\:bg-indigo-700:hover{--tw-bg-opacity:1!important;background-color:rgb(47 111 240/var(--tw-bg-opacity,1))!important}.hover\\:bg-white-600:hover{--tw-bg-opacity:1!important;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))!important}.hover\\:text-indigo-800:hover{--tw-text-opacity:1!important;color:rgb(27 88 210/var(--tw-text-opacity,1))!important}.hover\\:drop-shadow-1:hover{--tw-drop-shadow:drop-shadow(0 1px 1px rgba(0,2,2,.08))!important}.hover\\:drop-shadow-1:hover,.hover\\:drop-shadow-2:hover{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.hover\\:drop-shadow-2:hover{--tw-drop-shadow:drop-shadow(0 1px 1px rgba(0,2,2,.04)) drop-shadow(0 2px 2px rgba(0,2,2,.04)) drop-shadow(0 4px 4px rgba(0,2,2,.04))!important}.active\\:border-indigo-600:active{--tw-border-opacity:1!important;border-color:rgb(82 138 250/var(--tw-border-opacity,1))!important}.active\\:border-storm-500\\/10:active{border-color:rgba(24,30,41,.1)!important}.active\\:text-indigo-800:active{--tw-text-opacity:1!important;color:rgb(27 88 210/var(--tw-text-opacity,1))!important}.active\\:text-negative-red-800:active{--tw-text-opacity:1!important;color:rgb(141 16 16/var(--tw-text-opacity,1))!important}.active\\:text-storm-500\\/60:active{color:rgba(24,30,41,.6)!important}.active\\:text-white\\/60:active{color:hsla(0,0%,100%,.6)!important}.active\\:ring:active{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important}.active\\:ring-2:active,.active\\:ring:active{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.active\\:ring-2:active{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important}.active\\:ring-indigo-100:active{--tw-ring-opacity:1!important;--tw-ring-color:rgb(227 236 254/var(--tw-ring-opacity,1))!important}.group\\/button:hover .group-hover\\/button\\:text-indigo-700{--tw-text-opacity:1!important;color:rgb(47 111 240/var(--tw-text-opacity,1))!important}.group\\/button:hover .group-hover\\/button\\:text-negative-red-800{--tw-text-opacity:1!important;color:rgb(141 16 16/var(--tw-text-opacity,1))!important}.group\\/button:hover .group-hover\\/button\\:text-storm-500{--tw-text-opacity:1!important;color:rgb(24 30 41/var(--tw-text-opacity,1))!important}.group\\/button:hover .group-hover\\/button\\:text-white{--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity,1))!important}.group\\/button:active .group-active\\/button\\:text-indigo-800{--tw-text-opacity:1!important;color:rgb(27 88 210/var(--tw-text-opacity,1))!important}.group\\/button:active .group-active\\/button\\:text-storm-500\\/60{color:rgba(24,30,41,.6)!important}.group\\/button:active .group-active\\/button\\:text-white\\/60{color:hsla(0,0%,100%,.6)!important}.dark\\:border-0:where(:host([data-theme=dark]),:host([data-theme=dark]) *){border-width:0!important}.dark\\:border-negative-red-700:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1!important;border-color:rgb(147 16 16/var(--tw-border-opacity,1))!important}.dark\\:border-transparent:where(:host([data-theme=dark]),:host([data-theme=dark]) *){border-color:transparent!important}.dark\\:border-white\\/5:where(:host([data-theme=dark]),:host([data-theme=dark]) *){border-color:hsla(0,0%,100%,.05)!important}.dark\\:bg-indigo-600\\/30:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:rgba(82,138,250,.3)!important}.dark\\:bg-white\\/15:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.15)!important}.dark\\:bg-white\\/5:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.05)!important}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1!important;color:rgb(163 165 169/var(--tw-text-opacity,1))!important}.dark\\:text-hurricane-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1!important;color:rgb(70 75 84/var(--tw-text-opacity,1))!important}.dark\\:text-negative-red-alternative:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1!important;color:rgb(255 92 92/var(--tw-text-opacity,1))!important}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity,1))!important}.dark\\:text-white\\/30:where(:host([data-theme=dark]),:host([data-theme=dark]) *){color:hsla(0,0%,100%,.3)!important}.dark\\:text-white\\/60:where(:host([data-theme=dark]),:host([data-theme=dark]) *){color:hsla(0,0%,100%,.6)!important}.dark\\:ring-0:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.dark\\:hover\\:bg-white\\/25:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.25)!important}.dark\\:active\\:border-0:active:where(:host([data-theme=dark]),:host([data-theme=dark]) *){border-width:0!important}.dark\\:active\\:bg-white\\/25:active:where(:host([data-theme=dark]),:host([data-theme=dark]) *){background-color:hsla(0,0%,100%,.25)!important}.dark\\:active\\:text-white\\/60:active:where(:host([data-theme=dark]),:host([data-theme=dark]) *){color:hsla(0,0%,100%,.6)!important}.dark\\:active\\:ring-0:active:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.group\\/button:hover .dark\\:group-hover\\/button\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity,1))!important}.group\\/button:active .dark\\:group-active\\/button\\:text-white\\/60:where(:host([data-theme=dark]),:host([data-theme=dark]) *){color:hsla(0,0%,100%,.6)!important}.dark\\:border-0:where([data-theme=dark],[data-theme=dark] *){border-width:0!important}.dark\\:border-negative-red-700:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1!important;border-color:rgb(147 16 16/var(--tw-border-opacity,1))!important}.dark\\:border-transparent:where([data-theme=dark],[data-theme=dark] *){border-color:transparent!important}.dark\\:border-white\\/5:where([data-theme=dark],[data-theme=dark] *){border-color:hsla(0,0%,100%,.05)!important}.dark\\:bg-indigo-600\\/30:where([data-theme=dark],[data-theme=dark] *){background-color:rgba(82,138,250,.3)!important}.dark\\:bg-white\\/15:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.15)!important}.dark\\:bg-white\\/5:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.05)!important}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1!important;color:rgb(163 165 169/var(--tw-text-opacity,1))!important}.dark\\:text-hurricane-400:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1!important;color:rgb(70 75 84/var(--tw-text-opacity,1))!important}.dark\\:text-negative-red-alternative:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1!important;color:rgb(255 92 92/var(--tw-text-opacity,1))!important}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity,1))!important}.dark\\:text-white\\/30:where([data-theme=dark],[data-theme=dark] *){color:hsla(0,0%,100%,.3)!important}.dark\\:text-white\\/60:where([data-theme=dark],[data-theme=dark] *){color:hsla(0,0%,100%,.6)!important}.dark\\:ring-0:where([data-theme=dark],[data-theme=dark] *){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.dark\\:hover\\:bg-white\\/25:hover:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.25)!important}.dark\\:active\\:border-0:active:where([data-theme=dark],[data-theme=dark] *){border-width:0!important}.dark\\:active\\:bg-white\\/25:active:where([data-theme=dark],[data-theme=dark] *){background-color:hsla(0,0%,100%,.25)!important}.dark\\:active\\:text-white\\/60:active:where([data-theme=dark],[data-theme=dark] *){color:hsla(0,0%,100%,.6)!important}.dark\\:active\\:ring-0:active:where([data-theme=dark],[data-theme=dark] *){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.group\\/button:hover .dark\\:group-hover\\/button\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity,1))!important}.group\\/button:active .dark\\:group-active\\/button\\:text-white\\/60:where([data-theme=dark],[data-theme=dark] *){color:hsla(0,0%,100%,.6)!important}";
10
-
11
- const button = cva([
12
- 'group/button',
13
- 'font-semibold leading-4',
14
- 'flex items-center justify-center',
15
- 'cursor-pointer font-geist',
16
- ], {
17
- variants: {
18
- variant: {
19
- primary: ['border-storm-500/20', 'text-white'],
20
- secondary: null,
21
- text: null,
22
- transparent: 'bg-transparent border-transparent',
23
- dropdown: null,
24
- },
25
- active: {
26
- true: null,
27
- false: null,
28
- },
29
- error: {
30
- true: null,
31
- false: null,
32
- },
33
- loading: {
34
- true: 'cursor-wait',
35
- false: null,
36
- },
37
- size: {
38
- sm: ['text-xs h-6 gap-1'],
39
- base: ['text-sm h-8 gap-2'],
40
- lg: ['text-base h-10 gap-2'],
41
- },
42
- disabled: {
43
- true: 'cursor-not-allowed border-transparent',
44
- false: null,
45
- },
46
- buttonGroupPosition: {
47
- none: null,
48
- start: null,
49
- center: null,
50
- end: null,
51
- },
52
- iconOnly: {
53
- true: 'justify-center',
54
- false: 'w-inherit py-1',
55
- },
56
- },
57
- compoundVariants: [
58
- // variants
59
- {
60
- variant: ['secondary', 'dropdown'],
61
- class: 'bg-white dark:bg-white/15',
62
- },
63
- {
64
- variant: ['primary', 'secondary', 'dropdown'],
65
- disabled: false,
66
- class: 'border',
67
- },
68
- {
69
- variant: ['primary', 'secondary', 'transparent', 'dropdown'],
70
- buttonGroupPosition: 'none',
71
- class: 'rounded-lg',
72
- },
73
- {
74
- variant: ['primary', 'secondary', 'transparent', 'dropdown'],
75
- buttonGroupPosition: 'start',
76
- class: 'rounded-s-lg',
77
- },
78
- {
79
- variant: ['primary', 'secondary', 'transparent', 'dropdown'],
80
- buttonGroupPosition: 'end',
81
- class: 'rounded-e-lg',
82
- },
83
- {
84
- variant: ['secondary', 'dropdown'],
85
- disabled: false,
86
- error: false,
87
- class: 'text-storm-500 dark:text-white',
88
- },
89
- {
90
- variant: 'primary',
91
- class: 'dark:border-0 dark:active:border-0',
92
- },
93
- {
94
- variant: 'primary',
95
- disabled: true,
96
- class: 'bg-indigo-200 dark:bg-indigo-600/30 dark:text-white/30',
97
- },
98
- {
99
- variant: 'primary',
100
- disabled: false,
101
- class: 'bg-indigo-600',
102
- },
103
- {
104
- variant: 'primary',
105
- disabled: false,
106
- loading: false,
107
- class: [
108
- 'active:border-storm-500/10 dark:active:ring-0 active:ring-2 active:text-white/60',
109
- 'drop-shadow-primary-button hover:drop-shadow-2 hover:bg-indigo-700 active:ring-indigo-100',
110
- ],
111
- },
112
- {
113
- variant: 'primary',
114
- disabled: false,
115
- loading: false,
116
- active: true,
117
- class: 'ring ring-2',
118
- },
119
- {
120
- variant: 'primary',
121
- disabled: false,
122
- loading: false,
123
- active: true,
124
- class: 'ring-indigo-100',
125
- },
126
- {
127
- variant: ['secondary', 'dropdown'],
128
- disabled: true,
129
- class: 'border bg-white-600 text-storm-100 dark:bg-white/5 dark:border-white/5 dark:text-hurricane-400',
130
- },
131
- {
132
- variant: ['secondary', 'dropdown'],
133
- disabled: false,
134
- class: 'text-storm-500 dark:text-white',
135
- },
136
- {
137
- variant: ['secondary', 'dropdown'],
138
- disabled: false,
139
- loading: false,
140
- class: [
141
- 'drop-shadow-1 hover:drop-shadow-1 hover:bg-white-600 active:ring-indigo-100 active:text-storm-500/60',
142
- 'dark:hover:bg-white/25 dark:active:bg-white/25 dark:active:ring-0 dark:active:text-white/60',
143
- ],
144
- },
145
- {
146
- variant: ['secondary', 'dropdown'],
147
- disabled: false,
148
- loading: false,
149
- error: false,
150
- class: [
151
- 'active:border-indigo-600 active:ring active:ring-2',
152
- 'dark:active:ring-0',
153
- ],
154
- },
155
- {
156
- variant: ['secondary', 'dropdown'],
157
- disabled: false,
158
- loading: false,
159
- active: true,
160
- error: false,
161
- class: ['border-indigo-600 ring ring-2 ring-indigo-100', 'dark:ring-0'],
162
- },
163
- {
164
- variant: ['secondary', 'dropdown'],
165
- error: false,
166
- active: false,
167
- class: ['border-storm-500/20 dark:border-transparent'],
168
- },
169
- {
170
- variant: ['secondary', 'dropdown'],
171
- error: true,
172
- class: [
173
- 'border border-negative-red-500 text-negative-red-800 ring ring-2 ring-negative-red-50 active:text-negative-red-800',
174
- 'dark:ring-0 dark:border-negative-red-700 dark:text-negative-red-alternative',
175
- ],
176
- },
177
- {
178
- variant: ['text', 'transparent'],
179
- disabled: false,
180
- class: 'text-indigo-700 hover:text-indigo-800',
181
- },
182
- {
183
- variant: ['text', 'transparent'],
184
- disabled: true,
185
- class: 'text-indigo-300',
186
- },
187
- {
188
- variant: ['text', 'transparent'],
189
- disabled: false,
190
- loading: false,
191
- class: 'active:text-indigo-800',
192
- },
193
- {
194
- variant: ['primary', 'secondary', 'transparent'],
195
- size: ['base', 'sm'],
196
- iconOnly: false,
197
- class: 'px-2',
198
- },
199
- {
200
- variant: ['primary', 'secondary', 'transparent'],
201
- size: 'lg',
202
- iconOnly: false,
203
- class: 'px-3',
204
- },
205
- {
206
- variant: 'dropdown',
207
- iconOnly: false,
208
- class: 'p-2',
209
- },
210
- {
211
- variant: ['primary', 'secondary', 'transparent', 'text'],
212
- iconOnly: false,
213
- class: 'py-1',
214
- },
215
- {
216
- size: 'sm',
217
- iconOnly: true,
218
- class: 'w-6',
219
- },
220
- {
221
- size: 'base',
222
- iconOnly: true,
223
- class: 'w-8',
224
- },
225
- {
226
- size: 'lg',
227
- iconOnly: true,
228
- class: 'w-10',
229
- },
230
- ],
231
- });
232
- const icon = cva([], {
233
- variants: {
234
- size: {
235
- sm: 'text-xs',
236
- base: 'text-base',
237
- lg: 'text-base',
238
- },
239
- variant: {
240
- primary: null,
241
- secondary: null,
242
- text: null,
243
- transparent: null,
244
- dropdown: null,
245
- },
246
- disabled: {
247
- true: null,
248
- false: null,
249
- },
250
- active: {
251
- true: null,
252
- false: null,
253
- },
254
- error: {
255
- true: null,
256
- false: null,
257
- },
258
- iconOnly: {
259
- true: null,
260
- false: null,
261
- },
262
- },
263
- compoundVariants: [
264
- {
265
- variant: 'primary',
266
- disabled: false,
267
- active: false,
268
- error: false,
269
- class: 'text-indigo-300 group-hover/button:text-white group-active/button:text-white/60',
270
- },
271
- {
272
- variant: 'primary',
273
- disabled: false,
274
- active: true,
275
- class: 'text-white/60',
276
- },
277
- {
278
- variant: ['secondary', 'dropdown'],
279
- disabled: false,
280
- active: false,
281
- error: false,
282
- class: [
283
- 'text-storm-300 group-hover/button:text-storm-500 group-active/button:text-storm-500/60',
284
- 'dark:group-hover/button:text-white dark:group-active/button:text-white/60',
285
- ],
286
- },
287
- {
288
- variant: ['secondary', 'dropdown'],
289
- disabled: false,
290
- active: false,
291
- iconOnly: false,
292
- error: false,
293
- class: 'dark:text-hurricane-200',
294
- },
295
- {
296
- variant: ['secondary', 'dropdown'],
297
- disabled: false,
298
- active: false,
299
- iconOnly: true,
300
- error: false,
301
- class: 'dark:text-white',
302
- },
303
- {
304
- variant: ['secondary', 'dropdown'],
305
- disabled: false,
306
- active: true,
307
- error: false,
308
- class: 'text-storm-500/60 dark:text-white/60',
309
- },
310
- {
311
- variant: ['transparent', 'text'],
312
- disabled: false,
313
- active: false,
314
- class: 'text-indigo-500 group-hover/button:text-indigo-700 group-active/button:text-indigo-800',
315
- },
316
- {
317
- variant: ['secondary', 'dropdown'],
318
- active: false,
319
- error: true,
320
- class: 'text-negative-red-500 group-hover/button:text-negative-red-800 dark:text-negative-red-alternative',
321
- },
322
- {
323
- variant: ['secondary', 'dropdown'],
324
- active: true,
325
- error: true,
326
- class: 'text-negative-red-800',
327
- },
328
- ],
329
- });
330
- const Button = /*@__PURE__*/ proxyCustomElement(class Button extends H {
331
- constructor() {
332
- super();
333
- this.__registerHost();
334
- this.__attachShadow();
335
- this.onClick = createEvent(this, "onClick", 3);
336
- }
337
- /**
338
- * The label of the button (Can use slot)
339
- */
340
- label;
341
- /**
342
- * The type of the button
343
- */
344
- as = 'button';
345
- /**
346
- * The variant of the button
347
- */
348
- variant = 'primary';
349
- /**
350
- * Wether to force an active state
351
- */
352
- active = false;
353
- /**
354
- * Wether to show a error state
355
- */
356
- error = false;
357
- /**
358
- * Href in case of "text" version
359
- */
360
- href;
361
- /**
362
- * Target in case of "text" version
363
- */
364
- target;
365
- /**
366
- * The size of the button
367
- */
368
- size = 'base';
369
- /**
370
- * The type of the button
371
- */
372
- type = 'button';
373
- /**
374
- * Wether to show a loader or not
375
- */
376
- loading = false;
377
- /**
378
- * Wether to show a chevron or not
379
- */
380
- chevron = false;
381
- /**
382
- * Chevron position
383
- */
384
- chevronPosition = 'end';
385
- /**
386
- * Wether the button is disabled
387
- */
388
- disabled = false;
389
- /**
390
- * Icon to show on the button
391
- */
392
- icon;
393
- /**
394
- * Wether the button is icon only
395
- */
396
- iconOnly = false;
397
- /**
398
- * A class to apply to the icon
399
- */
400
- iconClass;
401
- /**
402
- * Icon position
403
- */
404
- iconPosition = 'start';
405
- /**
406
- * Icon flip
407
- */
408
- iconFlip;
409
- /**
410
- * Icon rotate
411
- */
412
- iconRotate;
413
- /**
414
- * Wether the button should inherit text styles
415
- */
416
- inheritText = false;
417
- /**
418
- * Position of the button in the button group, mostly un-used if not in a group
419
- */
420
- buttonGroupPosition = 'none';
421
- /**
422
- * The class of the container passed by parent
423
- */
424
- class;
425
- /**
426
- * Button click event
427
- */
428
- onClick;
429
- get _host() { return this; }
430
- render() {
431
- let loaderColor = 'white';
432
- switch (this.variant) {
433
- case 'secondary':
434
- case 'dropdown':
435
- case 'transparent':
436
- loaderColor = 'off-white';
437
- break;
438
- case 'text':
439
- loaderColor = 'storm';
440
- break;
441
- }
442
- const VariableTag = this.variant === 'text' || this.href?.length || this.as === 'a'
443
- ? 'a'
444
- : 'button';
445
- const hostClass = cn('p-button inline-block', this.class);
446
- const active = asBoolean(this.active) || hostClass?.includes('active');
447
- return (h(ThemedHost, { key: '053af056dbdc419fc84150ce7f5bcac48781f9bd', class: hostClass }, h(VariableTag, { key: '90b3a54277cf225ec84f2a437a77ad3736d80db5', disabled: asBoolean(this.disabled), href: this.href, type: this.variant !== 'text' ? this.type : undefined, target: this.target, class: button({
448
- variant: this.variant,
449
- size: this.size,
450
- loading: asBoolean(this.loading),
451
- disabled: asBoolean(this.disabled),
452
- buttonGroupPosition: this.buttonGroupPosition,
453
- iconOnly: asBoolean(this.iconOnly),
454
- active,
455
- error: asBoolean(this.error),
456
- }) }, this.chevron && this.chevronPosition === 'start' && (h("p-icon", { key: 'f53de24b3d219f3ed3e3867afd3049942aebe5ec', variant: 'caret', rotate: this.chevron === 'up' ? 180 : 0 })), this.icon &&
457
- this.iconPosition === 'start' &&
458
- !(this.iconOnly && this.loading) &&
459
- this._getIcon(), this.label ? this.label : h("slot", null), this.icon &&
460
- this.iconPosition === 'end' &&
461
- !this.loading &&
462
- !this.chevron &&
463
- this._getIcon(), this.chevron && !this.loading && this.chevronPosition === 'end' && (h("p-icon", { key: '2426db4007a2de31376831d328870f555ee120df', variant: 'caret', rotate: this.chevron === 'up' ? 180 : 0 })), this.loading && h("p-loader", { key: '422b9da1d136ed9411dde4c238bc9511ecfbef95', color: loaderColor }))));
464
- }
465
- handleClick(ev) {
466
- if (this.loading || this.disabled) {
467
- ev.preventDefault();
468
- return;
469
- }
470
- if (this.type === 'submit') {
471
- this._host.closest('form').requestSubmit();
472
- }
473
- this.onClick.emit(ev);
474
- }
475
- _getIcon() {
476
- if (!this.icon) {
477
- return;
478
- }
479
- return (h("p-icon", { class: cn(icon({
480
- size: this.size,
481
- variant: this.variant,
482
- disabled: asBoolean(this.disabled),
483
- active: asBoolean(this.active),
484
- error: asBoolean(this.error),
485
- iconOnly: asBoolean(this.iconOnly),
486
- }), this.iconClass ?? ''), variant: this.icon, flip: this.iconFlip, rotate: this.iconRotate }));
487
- }
488
- static get style() { return buttonComponentCss; }
489
- }, [1, "p-button", {
490
- "label": [1],
491
- "as": [1],
492
- "variant": [1],
493
- "active": [4],
494
- "error": [4],
495
- "href": [1],
496
- "target": [1],
497
- "size": [1],
498
- "type": [1],
499
- "loading": [4],
500
- "chevron": [8],
501
- "chevronPosition": [1, "chevron-position"],
502
- "disabled": [4],
503
- "icon": [1],
504
- "iconOnly": [4, "icon-only"],
505
- "iconClass": [1, "icon-class"],
506
- "iconPosition": [1, "icon-position"],
507
- "iconFlip": [1, "icon-flip"],
508
- "iconRotate": [2, "icon-rotate"],
509
- "inheritText": [4, "inherit-text"],
510
- "buttonGroupPosition": [1, "button-group-position"],
511
- "class": [1]
512
- }, [[2, "click", "handleClick"]]]);
513
- function defineCustomElement() {
514
- if (typeof customElements === "undefined") {
515
- return;
516
- }
517
- const components = ["p-button", "p-icon", "p-loader"];
518
- components.forEach(tagName => { switch (tagName) {
519
- case "p-button":
520
- if (!customElements.get(tagName)) {
521
- customElements.define(tagName, Button);
522
- }
523
- break;
524
- case "p-icon":
525
- if (!customElements.get(tagName)) {
526
- defineCustomElement$2();
527
- }
528
- break;
529
- case "p-loader":
530
- if (!customElements.get(tagName)) {
531
- defineCustomElement$1();
532
- }
533
- break;
534
- } });
535
- }
536
- defineCustomElement();
537
-
538
- export { Button as B, defineCustomElement as d };
539
- //# sourceMappingURL=p-CbigFpjI.js.map
540
-
541
- //# sourceMappingURL=p-CbigFpjI.js.map
@@ -1 +0,0 @@
1
- {"file":"p-CbigFpjI.js","mappings":";;;;;;;;AAAA,MAAM,kBAAkB,GAAG,mjeAAmje;;ACgB9ke,MAAM,MAAM,GAAG,GAAG,CACjB;IACC,cAAc;IACd,yBAAyB;IACzB,kCAAkC;IAClC,2BAA2B;CAC3B,EACD;AACC,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;AACR,YAAA,OAAO,EAAE,CAAC,qBAAqB,EAAE,YAAY,CAAC;AAC9C,YAAA,SAAS,EAAE,IAAI;AACf,YAAA,IAAI,EAAE,IAAI;AACV,YAAA,WAAW,EAAE,mCAAmC;AAChD,YAAA,QAAQ,EAAE,IAAI;AACd,SAAA;AACD,QAAA,MAAM,EAAE;AACP,YAAA,IAAI,EAAE,IAAI;AACV,YAAA,KAAK,EAAE,IAAI;AACX,SAAA;AACD,QAAA,KAAK,EAAE;AACN,YAAA,IAAI,EAAE,IAAI;AACV,YAAA,KAAK,EAAE,IAAI;AACX,SAAA;AACD,QAAA,OAAO,EAAE;AACR,YAAA,IAAI,EAAE,aAAa;AACnB,YAAA,KAAK,EAAE,IAAI;AACX,SAAA;AACD,QAAA,IAAI,EAAE;YACL,EAAE,EAAE,CAAC,mBAAmB,CAAC;YACzB,IAAI,EAAE,CAAC,mBAAmB,CAAC;YAC3B,EAAE,EAAE,CAAC,sBAAsB,CAAC;AAC5B,SAAA;AACD,QAAA,QAAQ,EAAE;AACT,YAAA,IAAI,EAAE,uCAAuC;AAC7C,YAAA,KAAK,EAAE,IAAI;AACX,SAAA;AACD,QAAA,mBAAmB,EAAE;AACpB,YAAA,IAAI,EAAE,IAAI;AACV,YAAA,KAAK,EAAE,IAAI;AACX,YAAA,MAAM,EAAE,IAAI;AACZ,YAAA,GAAG,EAAE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,EAAE,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC;AAClC,aAAA,CAAC,EACF,IAAI,CAAC,SAAS,IAAI,EAAE,CACpB,EACD,OAAO,EAAE,IAAI,CAAC,IAAI,EAClB,IAAI,EAAE,IAAI,CAAC,QAAQ,EACnB,MAAM,EAAE,IAAI,CAAC,UAAU,EACtB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/molecules/button/button.component.css?tag=p-button&encapsulation=shadow","src/components/molecules/button/button.component.tsx"],"sourcesContent":["","import {\n\tComponent,\n\tEvent as StencilEvent,\n\tEventEmitter,\n\th,\n\tListen,\n\tProp,\n\tElement,\n} from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport { ThemedHost } from '../../../internal/themed-host.component';\nimport { RotateOptions } from '../../../types/tailwind';\nimport { asBoolean } from '../../../utils/as-boolean';\nimport { cn } from '../../../utils/cn';\nimport { IconFlipOptions, IconVariant } from '../../atoms/icon/icon.component';\n\nconst button = cva(\n\t[\n\t\t'group/button',\n\t\t'font-semibold leading-4',\n\t\t'flex items-center justify-center',\n\t\t'cursor-pointer font-geist',\n\t],\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tprimary: ['border-storm-500/20', 'text-white'],\n\t\t\t\tsecondary: null,\n\t\t\t\ttext: null,\n\t\t\t\ttransparent: 'bg-transparent border-transparent',\n\t\t\t\tdropdown: null,\n\t\t\t},\n\t\t\tactive: {\n\t\t\t\ttrue: null,\n\t\t\t\tfalse: null,\n\t\t\t},\n\t\t\terror: {\n\t\t\t\ttrue: null,\n\t\t\t\tfalse: null,\n\t\t\t},\n\t\t\tloading: {\n\t\t\t\ttrue: 'cursor-wait',\n\t\t\t\tfalse: null,\n\t\t\t},\n\t\t\tsize: {\n\t\t\t\tsm: ['text-xs h-6 gap-1'],\n\t\t\t\tbase: ['text-sm h-8 gap-2'],\n\t\t\t\tlg: ['text-base h-10 gap-2'],\n\t\t\t},\n\t\t\tdisabled: {\n\t\t\t\ttrue: 'cursor-not-allowed border-transparent',\n\t\t\t\tfalse: null,\n\t\t\t},\n\t\t\tbuttonGroupPosition: {\n\t\t\t\tnone: null,\n\t\t\t\tstart: null,\n\t\t\t\tcenter: null,\n\t\t\t\tend: null,\n\t\t\t},\n\t\t\ticonOnly: {\n\t\t\t\ttrue: 'justify-center',\n\t\t\t\tfalse: 'w-inherit py-1',\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [\n\t\t\t// variants\n\t\t\t{\n\t\t\t\tvariant: ['secondary', 'dropdown'],\n\t\t\t\tclass: 'bg-white dark:bg-white/15',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['primary', 'secondary', 'dropdown'],\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: 'border',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['primary', 'secondary', 'transparent', 'dropdown'],\n\t\t\t\tbuttonGroupPosition: 'none',\n\t\t\t\tclass: 'rounded-lg',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['primary', 'secondary', 'transparent', 'dropdown'],\n\t\t\t\tbuttonGroupPosition: 'start',\n\t\t\t\tclass: 'rounded-s-lg',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['primary', 'secondary', 'transparent', 'dropdown'],\n\t\t\t\tbuttonGroupPosition: 'end',\n\t\t\t\tclass: 'rounded-e-lg',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['secondary', 'dropdown'],\n\t\t\t\tdisabled: false,\n\t\t\t\terror: false,\n\t\t\t\tclass: 'text-storm-500 dark:text-white',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'primary',\n\t\t\t\tclass: 'dark:border-0 dark:active:border-0',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'primary',\n\t\t\t\tdisabled: true,\n\t\t\t\tclass: 'bg-indigo-200 dark:bg-indigo-600/30 dark:text-white/30',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'primary',\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: 'bg-indigo-600',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'primary',\n\t\t\t\tdisabled: false,\n\t\t\t\tloading: false,\n\t\t\t\tclass: [\n\t\t\t\t\t'active:border-storm-500/10 dark:active:ring-0 active:ring-2 active:text-white/60',\n\t\t\t\t\t'drop-shadow-primary-button hover:drop-shadow-2 hover:bg-indigo-700 active:ring-indigo-100',\n\t\t\t\t],\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'primary',\n\t\t\t\tdisabled: false,\n\t\t\t\tloading: false,\n\t\t\t\tactive: true,\n\t\t\t\tclass: 'ring ring-2',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'primary',\n\t\t\t\tdisabled: false,\n\t\t\t\tloading: false,\n\t\t\t\tactive: true,\n\t\t\t\tclass: 'ring-indigo-100',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['secondary', 'dropdown'],\n\t\t\t\tdisabled: true,\n\t\t\t\tclass:\n\t\t\t\t\t'border bg-white-600 text-storm-100 dark:bg-white/5 dark:border-white/5 dark:text-hurricane-400',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['secondary', 'dropdown'],\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: 'text-storm-500 dark:text-white',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['secondary', 'dropdown'],\n\t\t\t\tdisabled: false,\n\t\t\t\tloading: false,\n\t\t\t\tclass: [\n\t\t\t\t\t'drop-shadow-1 hover:drop-shadow-1 hover:bg-white-600 active:ring-indigo-100 active:text-storm-500/60',\n\t\t\t\t\t'dark:hover:bg-white/25 dark:active:bg-white/25 dark:active:ring-0 dark:active:text-white/60',\n\t\t\t\t],\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['secondary', 'dropdown'],\n\t\t\t\tdisabled: false,\n\t\t\t\tloading: false,\n\t\t\t\terror: false,\n\t\t\t\tclass: [\n\t\t\t\t\t'active:border-indigo-600 active:ring active:ring-2',\n\t\t\t\t\t'dark:active:ring-0',\n\t\t\t\t],\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['secondary', 'dropdown'],\n\t\t\t\tdisabled: false,\n\t\t\t\tloading: false,\n\t\t\t\tactive: true,\n\t\t\t\terror: false,\n\t\t\t\tclass: ['border-indigo-600 ring ring-2 ring-indigo-100', 'dark:ring-0'],\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['secondary', 'dropdown'],\n\t\t\t\terror: false,\n\t\t\t\tactive: false,\n\t\t\t\tclass: ['border-storm-500/20 dark:border-transparent'],\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['secondary', 'dropdown'],\n\t\t\t\terror: true,\n\t\t\t\tclass: [\n\t\t\t\t\t'border border-negative-red-500 text-negative-red-800 ring ring-2 ring-negative-red-50 active:text-negative-red-800',\n\t\t\t\t\t'dark:ring-0 dark:border-negative-red-700 dark:text-negative-red-alternative',\n\t\t\t\t],\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tvariant: ['text', 'transparent'],\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: 'text-indigo-700 hover:text-indigo-800',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['text', 'transparent'],\n\t\t\t\tdisabled: true,\n\t\t\t\tclass: 'text-indigo-300',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['text', 'transparent'],\n\t\t\t\tdisabled: false,\n\t\t\t\tloading: false,\n\t\t\t\tclass: 'active:text-indigo-800',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tvariant: ['primary', 'secondary', 'transparent'],\n\t\t\t\tsize: ['base', 'sm'],\n\t\t\t\ticonOnly: false,\n\t\t\t\tclass: 'px-2',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['primary', 'secondary', 'transparent'],\n\t\t\t\tsize: 'lg',\n\t\t\t\ticonOnly: false,\n\t\t\t\tclass: 'px-3',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'dropdown',\n\t\t\t\ticonOnly: false,\n\t\t\t\tclass: 'p-2',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tvariant: ['primary', 'secondary', 'transparent', 'text'],\n\t\t\t\ticonOnly: false,\n\t\t\t\tclass: 'py-1',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tsize: 'sm',\n\t\t\t\ticonOnly: true,\n\t\t\t\tclass: 'w-6',\n\t\t\t},\n\t\t\t{\n\t\t\t\tsize: 'base',\n\t\t\t\ticonOnly: true,\n\t\t\t\tclass: 'w-8',\n\t\t\t},\n\t\t\t{\n\t\t\t\tsize: 'lg',\n\t\t\t\ticonOnly: true,\n\t\t\t\tclass: 'w-10',\n\t\t\t},\n\t\t],\n\t}\n);\n\nconst icon = cva([], {\n\tvariants: {\n\t\tsize: {\n\t\t\tsm: 'text-xs',\n\t\t\tbase: 'text-base',\n\t\t\tlg: 'text-base',\n\t\t},\n\t\tvariant: {\n\t\t\tprimary: null,\n\t\t\tsecondary: null,\n\t\t\ttext: null,\n\t\t\ttransparent: null,\n\t\t\tdropdown: null,\n\t\t},\n\t\tdisabled: {\n\t\t\ttrue: null,\n\t\t\tfalse: null,\n\t\t},\n\t\tactive: {\n\t\t\ttrue: null,\n\t\t\tfalse: null,\n\t\t},\n\t\terror: {\n\t\t\ttrue: null,\n\t\t\tfalse: null,\n\t\t},\n\t\ticonOnly: {\n\t\t\ttrue: null,\n\t\t\tfalse: null,\n\t\t},\n\t},\n\tcompoundVariants: [\n\t\t{\n\t\t\tvariant: 'primary',\n\t\t\tdisabled: false,\n\t\t\tactive: false,\n\t\t\terror: false,\n\t\t\tclass:\n\t\t\t\t'text-indigo-300 group-hover/button:text-white group-active/button:text-white/60',\n\t\t},\n\t\t{\n\t\t\tvariant: 'primary',\n\t\t\tdisabled: false,\n\t\t\tactive: true,\n\t\t\tclass: 'text-white/60',\n\t\t},\n\t\t{\n\t\t\tvariant: ['secondary', 'dropdown'],\n\t\t\tdisabled: false,\n\t\t\tactive: false,\n\t\t\terror: false,\n\t\t\tclass: [\n\t\t\t\t'text-storm-300 group-hover/button:text-storm-500 group-active/button:text-storm-500/60',\n\t\t\t\t'dark:group-hover/button:text-white dark:group-active/button:text-white/60',\n\t\t\t],\n\t\t},\n\t\t{\n\t\t\tvariant: ['secondary', 'dropdown'],\n\t\t\tdisabled: false,\n\t\t\tactive: false,\n\t\t\ticonOnly: false,\n\t\t\terror: false,\n\t\t\tclass: 'dark:text-hurricane-200',\n\t\t},\n\t\t{\n\t\t\tvariant: ['secondary', 'dropdown'],\n\t\t\tdisabled: false,\n\t\t\tactive: false,\n\t\t\ticonOnly: true,\n\t\t\terror: false,\n\t\t\tclass: 'dark:text-white',\n\t\t},\n\t\t{\n\t\t\tvariant: ['secondary', 'dropdown'],\n\t\t\tdisabled: false,\n\t\t\tactive: true,\n\t\t\terror: false,\n\t\t\tclass: 'text-storm-500/60 dark:text-white/60',\n\t\t},\n\t\t{\n\t\t\tvariant: ['transparent', 'text'],\n\t\t\tdisabled: false,\n\t\t\tactive: false,\n\t\t\tclass:\n\t\t\t\t'text-indigo-500 group-hover/button:text-indigo-700 group-active/button:text-indigo-800',\n\t\t},\n\t\t{\n\t\t\tvariant: ['secondary', 'dropdown'],\n\t\t\tactive: false,\n\t\t\terror: true,\n\t\t\tclass:\n\t\t\t\t'text-negative-red-500 group-hover/button:text-negative-red-800 dark:text-negative-red-alternative',\n\t\t},\n\t\t{\n\t\t\tvariant: ['secondary', 'dropdown'],\n\t\t\tactive: true,\n\t\t\terror: true,\n\t\t\tclass: 'text-negative-red-800',\n\t\t},\n\t],\n});\n\nexport type ButtonVariant =\n\t| 'primary'\n\t| 'secondary'\n\t| 'transparent'\n\t| 'text'\n\t| 'dropdown';\n\n@Component({\n\ttag: 'p-button',\n\tstyleUrl: 'button.component.css',\n\tshadow: true,\n})\nexport class Button {\n\t/**\n\t * The label of the button (Can use slot)\n\t */\n\t@Prop() label?: string;\n\n\t/**\n\t * The type of the button\n\t */\n\t@Prop() as?: 'a' | 'button' = 'button';\n\n\t/**\n\t * The variant of the button\n\t */\n\t@Prop() variant?: ButtonVariant = 'primary';\n\n\t/**\n\t * Wether to force an active state\n\t */\n\t@Prop() active?: boolean = false;\n\n\t/**\n\t * Wether to show a error state\n\t */\n\t@Prop() error?: boolean = false;\n\n\t/**\n\t * Href in case of \"text\" version\n\t */\n\t@Prop() href?: string;\n\n\t/**\n\t * Target in case of \"text\" version\n\t */\n\t@Prop() target?: string;\n\n\t/**\n\t * The size of the button\n\t */\n\t@Prop() size?: 'sm' | 'base' | 'lg' = 'base';\n\n\t/**\n\t * The type of the button\n\t */\n\t@Prop() type?: 'button' | 'submit' = 'button';\n\n\t/**\n\t * Wether to show a loader or not\n\t */\n\t@Prop() loading?: boolean = false;\n\n\t/**\n\t * Wether to show a chevron or not\n\t */\n\t@Prop() chevron?: boolean | 'up' | 'down' = false;\n\n\t/**\n\t * Chevron position\n\t */\n\t@Prop() chevronPosition?: 'start' | 'end' = 'end';\n\n\t/**\n\t * Wether the button is disabled\n\t */\n\t@Prop() disabled?: boolean = false;\n\n\t/**\n\t * Icon to show on the button\n\t */\n\t@Prop() icon?: IconVariant;\n\n\t/**\n\t * Wether the button is icon only\n\t */\n\t@Prop() iconOnly?: boolean = false;\n\n\t/**\n\t * A class to apply to the icon\n\t */\n\t@Prop() iconClass?: string;\n\n\t/**\n\t * Icon position\n\t */\n\t@Prop() iconPosition?: 'start' | 'end' = 'start';\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 the button should inherit text styles\n\t */\n\t@Prop() inheritText?: boolean = false;\n\n\t/**\n\t * Position of the button in the button group, mostly un-used if not in a group\n\t */\n\t@Prop() buttonGroupPosition?: 'start' | 'center' | 'end' | 'none' = 'none';\n\n\t/**\n\t * The class of the container passed by parent\n\t */\n\t@Prop() class?: string;\n\n\t/**\n\t * Button click event\n\t */\n\t@StencilEvent({\n\t\tbubbles: false,\n\t})\n\tonClick: EventEmitter<MouseEvent>;\n\n\t@Element() private _host: HTMLElement;\n\n\trender() {\n\t\tlet loaderColor: 'white' | 'off-white' | 'indigo' | 'storm' = 'white';\n\t\tswitch (this.variant) {\n\t\t\tcase 'secondary':\n\t\t\tcase 'dropdown':\n\t\t\tcase 'transparent':\n\t\t\t\tloaderColor = 'off-white';\n\t\t\t\tbreak;\n\t\t\tcase 'text':\n\t\t\t\tloaderColor = 'storm';\n\t\t\t\tbreak;\n\t\t}\n\n\t\tconst VariableTag =\n\t\t\tthis.variant === 'text' || this.href?.length || this.as === 'a'\n\t\t\t\t? 'a'\n\t\t\t\t: 'button';\n\n\t\tconst hostClass = cn('p-button inline-block', this.class);\n\t\tconst active = asBoolean(this.active) || hostClass?.includes('active');\n\n\t\treturn (\n\t\t\t<ThemedHost class={hostClass}>\n\t\t\t\t<VariableTag\n\t\t\t\t\tdisabled={asBoolean(this.disabled)}\n\t\t\t\t\thref={this.href}\n\t\t\t\t\ttype={this.variant !== 'text' ? this.type : undefined}\n\t\t\t\t\ttarget={this.target}\n\t\t\t\t\tclass={button({\n\t\t\t\t\t\tvariant: this.variant,\n\t\t\t\t\t\tsize: this.size,\n\t\t\t\t\t\tloading: asBoolean(this.loading),\n\t\t\t\t\t\tdisabled: asBoolean(this.disabled),\n\t\t\t\t\t\tbuttonGroupPosition: this.buttonGroupPosition,\n\t\t\t\t\t\ticonOnly: asBoolean(this.iconOnly),\n\t\t\t\t\t\tactive,\n\t\t\t\t\t\terror: asBoolean(this.error),\n\t\t\t\t\t})}\n\t\t\t\t>\n\t\t\t\t\t{this.chevron && this.chevronPosition === 'start' && (\n\t\t\t\t\t\t<p-icon\n\t\t\t\t\t\t\tvariant='caret'\n\t\t\t\t\t\t\trotate={this.chevron === 'up' ? 180 : 0}\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{this.icon &&\n\t\t\t\t\t\tthis.iconPosition === 'start' &&\n\t\t\t\t\t\t!(this.iconOnly && this.loading) &&\n\t\t\t\t\t\tthis._getIcon()}\n\n\t\t\t\t\t{this.label ? this.label : <slot />}\n\n\t\t\t\t\t{this.icon &&\n\t\t\t\t\t\tthis.iconPosition === 'end' &&\n\t\t\t\t\t\t!this.loading &&\n\t\t\t\t\t\t!this.chevron &&\n\t\t\t\t\t\tthis._getIcon()}\n\n\t\t\t\t\t{this.chevron && !this.loading && this.chevronPosition === 'end' && (\n\t\t\t\t\t\t<p-icon\n\t\t\t\t\t\t\tvariant='caret'\n\t\t\t\t\t\t\trotate={this.chevron === 'up' ? 180 : 0}\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{this.loading && <p-loader color={loaderColor} />}\n\t\t\t\t</VariableTag>\n\t\t\t</ThemedHost>\n\t\t);\n\t}\n\n\t@Listen('click', { capture: true })\n\thandleClick(ev: MouseEvent) {\n\t\tif (this.loading || this.disabled) {\n\t\t\tev.preventDefault();\n\t\t\treturn;\n\t\t}\n\n\t\tif (this.type === 'submit') {\n\t\t\tthis._host.closest('form').requestSubmit();\n\t\t}\n\n\t\tthis.onClick.emit(ev);\n\t}\n\n\tprivate _getIcon() {\n\t\tif (!this.icon) {\n\t\t\treturn;\n\t\t}\n\n\t\treturn (\n\t\t\t<p-icon\n\t\t\t\tclass={cn(\n\t\t\t\t\ticon({\n\t\t\t\t\t\tsize: this.size,\n\t\t\t\t\t\tvariant: this.variant,\n\t\t\t\t\t\tdisabled: asBoolean(this.disabled),\n\t\t\t\t\t\tactive: asBoolean(this.active),\n\t\t\t\t\t\terror: asBoolean(this.error),\n\t\t\t\t\t\ticonOnly: asBoolean(this.iconOnly),\n\t\t\t\t\t}),\n\t\t\t\t\tthis.iconClass ?? ''\n\t\t\t\t)}\n\t\t\t\tvariant={this.icon}\n\t\t\t\tflip={this.iconFlip}\n\t\t\t\trotate={this.iconRotate}\n\t\t\t/>\n\t\t);\n\t}\n}\n"],"version":3}