@paperless/core 2.0.1-beta.13 → 2.0.1-beta.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.
- package/CHANGELOG.md +0 -137
- package/dist/build/index.esm.js +1 -1
- package/dist/build/index.esm.js.map +1 -1
- package/dist/build/p-1fc0a8b4.entry.js +2 -0
- package/dist/build/p-1fc0a8b4.entry.js.map +1 -0
- package/dist/build/p-79cc09c0.entry.js +2 -0
- package/dist/build/p-79cc09c0.entry.js.map +1 -0
- package/dist/build/p-7d5f6497.entry.js +2 -0
- package/dist/build/p-7d5f6497.entry.js.map +1 -0
- package/dist/build/p-95eadadd.entry.js +2 -0
- package/dist/build/p-95eadadd.entry.js.map +1 -0
- package/dist/build/p-af4aedaf.entry.js +2 -0
- package/dist/build/p-af4aedaf.entry.js.map +1 -0
- package/dist/build/p-b5430fae.entry.js +2 -0
- package/dist/build/p-b5430fae.entry.js.map +1 -0
- package/dist/build/paperless.esm.js +1 -1
- package/dist/build/paperless.esm.js.map +1 -1
- package/dist/cjs/index-02e05522.js +2 -6
- package/dist/cjs/index.cjs.js +22 -5
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/p-avatar.cjs.entry.js +4 -5
- package/dist/cjs/p-avatar.cjs.entry.js.map +1 -1
- package/dist/cjs/p-button_3.cjs.entry.js +14 -50
- package/dist/cjs/p-button_3.cjs.entry.js.map +1 -1
- package/dist/cjs/p-dropdown_2.cjs.entry.js +2 -6
- package/dist/cjs/p-dropdown_2.cjs.entry.js.map +1 -1
- package/dist/cjs/p-navbar.cjs.entry.js +3 -2
- package/dist/cjs/p-navbar.cjs.entry.js.map +1 -1
- package/dist/cjs/p-navigation-item.cjs.entry.js +4 -2819
- package/dist/cjs/p-navigation-item.cjs.entry.js.map +1 -1
- package/dist/cjs/p-profile.cjs.entry.js +16 -16
- package/dist/cjs/p-profile.cjs.entry.js.map +1 -1
- package/dist/cjs/paperless.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +0 -1
- package/dist/collection/components/atoms/avatar/avatar.component.css +1 -1
- package/dist/collection/components/atoms/avatar/avatar.component.js +5 -5
- package/dist/collection/components/atoms/avatar/avatar.component.js.map +1 -1
- package/dist/collection/components/atoms/icon/icon.component.js +2 -2
- package/dist/collection/components/atoms/icon/icon.component.js.map +1 -1
- package/dist/collection/components/molecules/button/button.component.css +1 -1
- package/dist/collection/components/molecules/button/button.component.js +14 -85
- package/dist/collection/components/molecules/button/button.component.js.map +1 -1
- package/dist/collection/components/molecules/dropdown/dropdown.component.js +2 -6
- package/dist/collection/components/molecules/dropdown/dropdown.component.js.map +1 -1
- package/dist/collection/components/molecules/navigation-item/navigation-item.component.js +3 -24
- package/dist/collection/components/molecules/navigation-item/navigation-item.component.js.map +1 -1
- package/dist/collection/components/molecules/profile/profile.component.css +1 -1
- package/dist/collection/components/molecules/profile/profile.component.js +34 -25
- package/dist/collection/components/molecules/profile/profile.component.js.map +1 -1
- package/dist/collection/components/organisms/navbar/navbar.component.css +1 -1
- package/dist/collection/components/organisms/navbar/navbar.component.js +24 -1
- package/dist/collection/components/organisms/navbar/navbar.component.js.map +1 -1
- package/dist/components/avatar.component.js +4 -5
- package/dist/components/avatar.component.js.map +1 -1
- package/dist/components/button.component.js +14 -52
- package/dist/components/button.component.js.map +1 -1
- package/dist/components/dropdown.component.js +2 -6
- package/dist/components/dropdown.component.js.map +1 -1
- package/dist/components/icon.component.js +1 -1
- package/dist/components/icon.component.js.map +1 -1
- package/dist/components/index.js +18 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/p-navbar.js +4 -2
- package/dist/components/p-navbar.js.map +1 -1
- package/dist/components/p-navigation-item.js +5 -2821
- package/dist/components/p-navigation-item.js.map +1 -1
- package/dist/components/p-navigation-title.js +27 -1
- package/dist/components/p-navigation-title.js.map +1 -1
- package/dist/components/p-profile.js +24 -35
- package/dist/components/p-profile.js.map +1 -1
- package/dist/esm/index-f99096d4.js +2 -6
- package/dist/esm/index.js +18 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/p-avatar.entry.js +4 -5
- package/dist/esm/p-avatar.entry.js.map +1 -1
- package/dist/esm/p-button_3.entry.js +14 -50
- package/dist/esm/p-button_3.entry.js.map +1 -1
- package/dist/esm/p-dropdown_2.entry.js +2 -6
- package/dist/esm/p-dropdown_2.entry.js.map +1 -1
- package/dist/esm/p-navbar.entry.js +3 -2
- package/dist/esm/p-navbar.entry.js.map +1 -1
- package/dist/esm/p-navigation-item.entry.js +4 -2819
- package/dist/esm/p-navigation-item.entry.js.map +1 -1
- package/dist/esm/p-profile.entry.js +16 -16
- package/dist/esm/p-profile.entry.js.map +1 -1
- package/dist/esm/paperless.js +1 -1
- package/dist/index.html +1 -1
- package/dist/paperless/index.esm.js +1 -1
- package/dist/paperless/index.esm.js.map +1 -1
- package/dist/paperless/p-1fc0a8b4.entry.js +2 -0
- package/dist/paperless/p-1fc0a8b4.entry.js.map +1 -0
- package/dist/paperless/p-79cc09c0.entry.js +2 -0
- package/dist/paperless/p-79cc09c0.entry.js.map +1 -0
- package/dist/paperless/p-7d5f6497.entry.js +2 -0
- package/dist/paperless/p-7d5f6497.entry.js.map +1 -0
- package/dist/paperless/p-95eadadd.entry.js +2 -0
- package/dist/paperless/p-95eadadd.entry.js.map +1 -0
- package/dist/paperless/p-af4aedaf.entry.js +2 -0
- package/dist/paperless/p-af4aedaf.entry.js.map +1 -0
- package/dist/paperless/p-b5430fae.entry.js +2 -0
- package/dist/paperless/p-b5430fae.entry.js.map +1 -0
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/paperless/paperless.esm.js.map +1 -1
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/dist/types/components/molecules/button/button.component.d.ts +1 -9
- package/dist/types/components/molecules/navigation-item/navigation-item.component.d.ts +0 -4
- package/dist/types/components/molecules/profile/profile.component.d.ts +5 -2
- package/dist/types/components/organisms/navbar/navbar.component.d.ts +4 -0
- package/dist/types/components.d.ts +32 -55
- package/hydrate/index.js +48 -2942
- package/package.json +1 -1
- package/dist/build/p-190704d1.entry.js +0 -2
- package/dist/build/p-190704d1.entry.js.map +0 -1
- package/dist/build/p-5ab354bf.entry.js +0 -2
- package/dist/build/p-5ab354bf.entry.js.map +0 -1
- package/dist/build/p-60492c98.entry.js +0 -2
- package/dist/build/p-60492c98.entry.js.map +0 -1
- package/dist/build/p-64765a81.js +0 -2
- package/dist/build/p-64765a81.js.map +0 -1
- package/dist/build/p-aab1cda1.entry.js +0 -2
- package/dist/build/p-aab1cda1.entry.js.map +0 -1
- package/dist/build/p-cb8a454c.entry.js +0 -2
- package/dist/build/p-cb8a454c.entry.js.map +0 -1
- package/dist/build/p-d7dbd13e.entry.js +0 -2
- package/dist/build/p-d7dbd13e.entry.js.map +0 -1
- package/dist/build/p-ece8998b.entry.js +0 -2
- package/dist/build/p-ece8998b.entry.js.map +0 -1
- package/dist/cjs/_commonjsHelpers-4213291f.js +0 -24
- package/dist/cjs/_commonjsHelpers-4213291f.js.map +0 -1
- package/dist/cjs/p-navigation-section.cjs.entry.js +0 -23
- package/dist/cjs/p-navigation-section.cjs.entry.js.map +0 -1
- package/dist/collection/components/molecules/navigation-section/navigation-section.component.css +0 -1
- package/dist/collection/components/molecules/navigation-section/navigation-section.component.js +0 -43
- package/dist/collection/components/molecules/navigation-section/navigation-section.component.js.map +0 -1
- package/dist/collection/components/molecules/navigation-section/test/navigation-section.component.e2e.js +0 -26
- package/dist/collection/components/molecules/navigation-section/test/navigation-section.component.e2e.js.map +0 -1
- package/dist/collection/components/molecules/navigation-section/test/navigation-section.component.spec.js +0 -17
- package/dist/collection/components/molecules/navigation-section/test/navigation-section.component.spec.js.map +0 -1
- package/dist/components/_commonjsHelpers.js +0 -21
- package/dist/components/_commonjsHelpers.js.map +0 -1
- package/dist/components/navigation-title.component.js +0 -31
- package/dist/components/navigation-title.component.js.map +0 -1
- package/dist/components/p-navigation-section.d.ts +0 -11
- package/dist/components/p-navigation-section.js +0 -44
- package/dist/components/p-navigation-section.js.map +0 -1
- package/dist/esm/_commonjsHelpers-e9b9b14e.js +0 -21
- package/dist/esm/_commonjsHelpers-e9b9b14e.js.map +0 -1
- package/dist/esm/p-navigation-section.entry.js +0 -19
- package/dist/esm/p-navigation-section.entry.js.map +0 -1
- package/dist/paperless/p-190704d1.entry.js +0 -2
- package/dist/paperless/p-190704d1.entry.js.map +0 -1
- package/dist/paperless/p-5ab354bf.entry.js +0 -2
- package/dist/paperless/p-5ab354bf.entry.js.map +0 -1
- package/dist/paperless/p-60492c98.entry.js +0 -2
- package/dist/paperless/p-60492c98.entry.js.map +0 -1
- package/dist/paperless/p-64765a81.js +0 -2
- package/dist/paperless/p-64765a81.js.map +0 -1
- package/dist/paperless/p-aab1cda1.entry.js +0 -2
- package/dist/paperless/p-aab1cda1.entry.js.map +0 -1
- package/dist/paperless/p-cb8a454c.entry.js +0 -2
- package/dist/paperless/p-cb8a454c.entry.js.map +0 -1
- package/dist/paperless/p-d7dbd13e.entry.js +0 -2
- package/dist/paperless/p-d7dbd13e.entry.js.map +0 -1
- package/dist/paperless/p-ece8998b.entry.js +0 -2
- package/dist/paperless/p-ece8998b.entry.js.map +0 -1
- package/dist/types/components/molecules/navigation-section/navigation-section.component.d.ts +0 -7
|
@@ -3,7 +3,7 @@ import { c as cva } from './index2.js';
|
|
|
3
3
|
import { d as defineCustomElement$2 } from './icon.component.js';
|
|
4
4
|
import { d as defineCustomElement$1 } from './loader.component.js';
|
|
5
5
|
|
|
6
|
-
const buttonComponentCss = "*{box-sizing:border-box}.static{position:static!important}.block{display: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-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-b{border-bottom-width:1px!important}.border-black-teal\\/10{border-color:rgba(3,42,36,.1)!important}.border-black-teal\\/20{border-color:rgba(3,42,36,.2)!important}.border-
|
|
6
|
+
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-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-b{border-bottom-width:1px!important}.border-black-teal\\/10{border-color:rgba(3,42,36,.1)!important}.border-black-teal\\/20{border-color:rgba(3,42,36,.2)!important}.border-teal{border-color:rgb(8 136 121/var(--tw-border-opacity,1))!important}.border-teal,.border-teal-100{--tw-border-opacity:1!important}.border-teal-100{border-color:rgb(206 231 228/var(--tw-border-opacity,1))!important}.bg-supportive-lilac{--tw-bg-opacity:1!important;background-color:rgb(209 174 255/var(--tw-bg-opacity,1))!important}.bg-supportive-lilac-100{--tw-bg-opacity:1!important;background-color:rgb(246 239 255/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}.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}.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-black-teal{--tw-text-opacity:1!important;color:rgb(3 42 36/var(--tw-text-opacity,1))!important}.text-black-teal-100{--tw-text-opacity:1!important;color:rgb(205 212 211/var(--tw-text-opacity,1))!important}.text-dark-teal-100{--tw-text-opacity:1!important;color:rgb(204 220 218/var(--tw-text-opacity,1))!important}.text-dark-teal-100\\/60{color:rgba(204,220,218,.6)!important}.text-teal{color:rgb(8 136 121/var(--tw-text-opacity,1))!important}.text-teal,.text-teal-100{--tw-text-opacity:1!important}.text-teal-100{color:rgb(206 231 228/var(--tw-text-opacity,1))!important}.underline{text-decoration-line:underline!important}.drop-shadow-1{--tw-drop-shadow:drop-shadow(0 1px 1px rgba(0,2,2,.08))!important}.drop-shadow-1,.drop-shadow-supportive-lilac{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-supportive-lilac{--tw-drop-shadow:drop-shadow(0px 1px 1px 0px rgba(189,140,255,.2))!important}.hover\\:bg-dark-teal:hover{--tw-bg-opacity:1!important;background-color:rgb(0 81 72/var(--tw-bg-opacity,1))!important}.hover\\:bg-supportive-lilac-700:hover{--tw-bg-opacity:1!important;background-color:rgb(200 159 255/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\\: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-supportive-lilac-800:active{--tw-border-opacity:1!important;border-color:rgb(189 140 255/var(--tw-border-opacity,1))!important}.active\\:text-black-teal\\/60:active{color:rgba(3,42,36,.6)!important}.active\\:text-dark-teal-100\\/60:active{color:rgba(204,220,218,.6)!important}.active\\:text-teal-800:active{--tw-text-opacity:1!important;color:rgb(2 102 92/var(--tw-text-opacity,1))!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-black-teal\\/10:active{--tw-ring-color:rgba(3,42,36,.1)!important}.active\\:ring-supportive-lilac-100:active{--tw-ring-opacity:1!important;--tw-ring-color:rgb(246 239 255/var(--tw-ring-opacity,1))!important}";
|
|
7
7
|
|
|
8
8
|
const button = cva([
|
|
9
9
|
'group',
|
|
@@ -14,10 +14,9 @@ const button = cva([
|
|
|
14
14
|
variants: {
|
|
15
15
|
variant: {
|
|
16
16
|
primary: ['bg-supportive-lilac border-black-teal/20'],
|
|
17
|
-
secondary:
|
|
17
|
+
secondary: ['bg-white border-black-teal/10'],
|
|
18
18
|
text: ['text-teal'],
|
|
19
19
|
transparent: ['bg-transparent'],
|
|
20
|
-
dropdown: null,
|
|
21
20
|
},
|
|
22
21
|
active: {
|
|
23
22
|
true: null,
|
|
@@ -54,44 +53,33 @@ const button = cva([
|
|
|
54
53
|
compoundVariants: [
|
|
55
54
|
// variants
|
|
56
55
|
{
|
|
57
|
-
variant: ['
|
|
58
|
-
class: ['bg-white border-black-teal/10'],
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
variant: ['primary', 'secondary', 'dropdown'],
|
|
56
|
+
variant: ['primary', 'secondary'],
|
|
62
57
|
disabled: false,
|
|
63
58
|
class: 'border',
|
|
64
59
|
},
|
|
65
60
|
{
|
|
66
|
-
variant: ['primary', 'secondary'
|
|
67
|
-
disabled: false,
|
|
68
|
-
loading: false,
|
|
69
|
-
class: 'active:border-supportive-lilac-800 active:ring active:ring-2',
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
variant: ['primary', 'secondary', 'dropdown'],
|
|
61
|
+
variant: ['primary', 'secondary'],
|
|
73
62
|
disabled: false,
|
|
74
63
|
loading: false,
|
|
75
|
-
active:
|
|
76
|
-
class: 'border-supportive-lilac-800 ring ring-2',
|
|
64
|
+
class: 'active:border-supportive-lilac-800 active:ring active:ring-2 ',
|
|
77
65
|
},
|
|
78
66
|
{
|
|
79
|
-
variant: ['primary', 'secondary', 'transparent'
|
|
67
|
+
variant: ['primary', 'secondary', 'transparent'],
|
|
80
68
|
buttonGroupPosition: 'none',
|
|
81
69
|
class: 'rounded-lg',
|
|
82
70
|
},
|
|
83
71
|
{
|
|
84
|
-
variant: ['primary', 'secondary', 'transparent'
|
|
72
|
+
variant: ['primary', 'secondary', 'transparent'],
|
|
85
73
|
buttonGroupPosition: 'start',
|
|
86
74
|
class: 'rounded-s-lg',
|
|
87
75
|
},
|
|
88
76
|
{
|
|
89
|
-
variant: ['primary', 'secondary', 'transparent'
|
|
77
|
+
variant: ['primary', 'secondary', 'transparent'],
|
|
90
78
|
buttonGroupPosition: 'end',
|
|
91
79
|
class: 'rounded-e-lg',
|
|
92
80
|
},
|
|
93
81
|
{
|
|
94
|
-
variant: ['primary', 'secondary'
|
|
82
|
+
variant: ['primary', 'secondary'],
|
|
95
83
|
disabled: false,
|
|
96
84
|
class: 'text-black-teal',
|
|
97
85
|
},
|
|
@@ -107,30 +95,16 @@ const button = cva([
|
|
|
107
95
|
class: 'drop-shadow-supportive-lilac hover:drop-shadow-2 hover:bg-supportive-lilac-700 active:text-black-teal/60 active:ring-black-teal/10',
|
|
108
96
|
},
|
|
109
97
|
{
|
|
110
|
-
variant: '
|
|
111
|
-
disabled: false,
|
|
112
|
-
loading: false,
|
|
113
|
-
active: true,
|
|
114
|
-
class: 'ring-black-teal/10',
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
variant: ['secondary', 'dropdown'],
|
|
98
|
+
variant: 'secondary',
|
|
118
99
|
disabled: true,
|
|
119
100
|
class: 'border bg-white-600 text-black-teal-100',
|
|
120
101
|
},
|
|
121
102
|
{
|
|
122
|
-
variant:
|
|
103
|
+
variant: 'secondary',
|
|
123
104
|
disabled: false,
|
|
124
105
|
loading: false,
|
|
125
106
|
class: 'drop-shadow-1 hover:drop-shadow-1 hover:bg-white-600 active:text-black-teal/60 active:ring-supportive-lilac-100',
|
|
126
107
|
},
|
|
127
|
-
{
|
|
128
|
-
variant: ['secondary', 'dropdown'],
|
|
129
|
-
disabled: false,
|
|
130
|
-
loading: false,
|
|
131
|
-
active: true,
|
|
132
|
-
class: 'ring-supportive-lilac-100',
|
|
133
|
-
},
|
|
134
108
|
{
|
|
135
109
|
variant: 'text',
|
|
136
110
|
underline: true,
|
|
@@ -183,12 +157,6 @@ const button = cva([
|
|
|
183
157
|
class: 'px-3',
|
|
184
158
|
},
|
|
185
159
|
{
|
|
186
|
-
variant: 'dropdown',
|
|
187
|
-
iconOnly: false,
|
|
188
|
-
class: 'p-2',
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
variant: ['primary', 'secondary', 'transparent', 'text'],
|
|
192
160
|
iconOnly: false,
|
|
193
161
|
class: 'py-1',
|
|
194
162
|
},
|
|
@@ -225,7 +193,6 @@ const Button = /*@__PURE__*/ proxyCustomElement(class Button extends HTMLElement
|
|
|
225
193
|
this.onClick = createEvent(this, "onClick", 3);
|
|
226
194
|
this.as = 'button';
|
|
227
195
|
this.variant = 'primary';
|
|
228
|
-
this.active = false;
|
|
229
196
|
this.underline = true;
|
|
230
197
|
this.href = undefined;
|
|
231
198
|
this.target = undefined;
|
|
@@ -242,10 +209,9 @@ const Button = /*@__PURE__*/ proxyCustomElement(class Button extends HTMLElement
|
|
|
242
209
|
this.iconRotate = undefined;
|
|
243
210
|
this.inheritText = false;
|
|
244
211
|
this.buttonGroupPosition = 'none';
|
|
245
|
-
this.class = undefined;
|
|
246
212
|
}
|
|
247
213
|
render() {
|
|
248
|
-
var _a
|
|
214
|
+
var _a;
|
|
249
215
|
let loaderColor = 'white';
|
|
250
216
|
switch (this.variant) {
|
|
251
217
|
case 'secondary':
|
|
@@ -258,8 +224,7 @@ const Button = /*@__PURE__*/ proxyCustomElement(class Button extends HTMLElement
|
|
|
258
224
|
const VariableTag = this.variant === 'text' || ((_a = this.href) === null || _a === void 0 ? void 0 : _a.length) || this.as === 'a'
|
|
259
225
|
? 'a'
|
|
260
226
|
: 'button';
|
|
261
|
-
|
|
262
|
-
return (h(Host, { class: 'p-button block' }, h(VariableTag, { disabled: this.disabled, href: this.href, type: this.variant !== 'text' ? this.type : undefined, target: this.target, class: button({
|
|
227
|
+
return (h(Host, { class: 'p-button inline-block' }, h(VariableTag, { disabled: this.disabled, href: this.href, type: this.variant !== 'text' ? this.type : undefined, target: this.target, class: button({
|
|
263
228
|
variant: this.variant,
|
|
264
229
|
size: this.size,
|
|
265
230
|
underline: this.underline,
|
|
@@ -267,7 +232,6 @@ const Button = /*@__PURE__*/ proxyCustomElement(class Button extends HTMLElement
|
|
|
267
232
|
disabled: this.disabled,
|
|
268
233
|
buttonGroupPosition: this.buttonGroupPosition,
|
|
269
234
|
iconOnly: this.iconOnly,
|
|
270
|
-
active,
|
|
271
235
|
}) }, this.chevron && this.chevronPosition === 'start' && (h("p-icon", { variant: 'caret', rotate: this.chevron === 'up' ? 180 : 0 })), this.icon &&
|
|
272
236
|
this.iconPosition === 'start' &&
|
|
273
237
|
!(this.iconOnly && this.loading) &&
|
|
@@ -296,7 +260,6 @@ const Button = /*@__PURE__*/ proxyCustomElement(class Button extends HTMLElement
|
|
|
296
260
|
}, [4, "p-button", {
|
|
297
261
|
"as": [1],
|
|
298
262
|
"variant": [1],
|
|
299
|
-
"active": [4],
|
|
300
263
|
"underline": [4],
|
|
301
264
|
"href": [1],
|
|
302
265
|
"target": [1],
|
|
@@ -312,8 +275,7 @@ const Button = /*@__PURE__*/ proxyCustomElement(class Button extends HTMLElement
|
|
|
312
275
|
"iconFlip": [1, "icon-flip"],
|
|
313
276
|
"iconRotate": [2, "icon-rotate"],
|
|
314
277
|
"inheritText": [4, "inherit-text"],
|
|
315
|
-
"buttonGroupPosition": [1, "button-group-position"]
|
|
316
|
-
"class": [1]
|
|
278
|
+
"buttonGroupPosition": [1, "button-group-position"]
|
|
317
279
|
}, [[2, "click", "handleClick"]]]);
|
|
318
280
|
function defineCustomElement() {
|
|
319
281
|
if (typeof customElements === "undefined") {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"button.component.js","mappings":";;;;;AAAA,MAAM,kBAAkB,GAAG,4tMAA4tM;;ACavvM,MAAM,MAAM,GAAG,GAAG,CACjB;EACC,OAAO;EACP,yBAAyB;EACzB,wCAAwC;EACxC,gBAAgB;CAChB,EACD;EACC,QAAQ,EAAE;IACT,OAAO,EAAE;MACR,OAAO,EAAE,CAA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,IAAI,CAAC,OAAO,IAAI,gBAAU,KAAK,EAAE,WAAW,GAAI,CACpC,CACR,EACN;GACF;EAGD,WAAW,CAAC,EAAc;IACzB,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,QAAQ,EAAE;MAClC,EAAE,CAAC,cAAc,EAAE,CAAC;MACpB,OAAO;KACP;IAED,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;GACtB;EAEO,QAAQ;IACf,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;MACf,OAAO;KACP;IAED,QACC,cACC,KAAK,EAAE,IAAI,CAAC;QACX,IAAI,EAAE,IAAI,CAAC,IAAI;OACf,CAAC,EACF,OAAO,EAAE,IAAI,CAAC,IAAI,EAClB,IAAI,EAAE,IAAI,CAAC,QAAQ,EACnB,MAAM,EAAE,IAAI,CAAC,UAAU,GACtB,EACD;GACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/molecules/button/button.component.scss?tag=p-button","src/components/molecules/button/button.component.tsx"],"sourcesContent":["","import {\n\tComponent,\n\tEvent,\n\tEventEmitter,\n\th,\n\tHost,\n\tListen,\n\tProp,\n} from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport { RotateOptions } from '../../../types/tailwind';\nimport { IconFlipOptions, IconVariant } from '../../atoms/icon/icon.component';\n\nconst button = cva(\n\t[\n\t\t'group',\n\t\t'font-semibold leading-4',\n\t\t'flex items-center justify-center gap-2',\n\t\t'cursor-pointer',\n\t],\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tprimary: ['bg-supportive-lilac border-black-teal/20'],\n\t\t\t\tsecondary: null,\n\t\t\t\ttext: ['text-teal'],\n\t\t\t\ttransparent: ['bg-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\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'],\n\t\t\t\tbase: ['text-sm h-8'],\n\t\t\t\tlg: ['text-base h-10'],\n\t\t\t},\n\t\t\tdisabled: {\n\t\t\t\ttrue: 'cursor-not-allowed',\n\t\t\t\tfalse: null,\n\t\t\t},\n\t\t\tunderline: {\n\t\t\t\ttrue: null,\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 border-black-teal/10'],\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', 'dropdown'],\n\t\t\t\tdisabled: false,\n\t\t\t\tloading: false,\n\t\t\t\tclass: 'active:border-supportive-lilac-800 active:ring active:ring-2',\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\tloading: false,\n\t\t\t\tactive: true,\n\t\t\t\tclass: 'border-supportive-lilac-800 ring ring-2',\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: ['primary', 'secondary', 'dropdown'],\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: 'text-black-teal',\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-supportive-lilac-100 text-black-teal-100',\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'drop-shadow-supportive-lilac hover:drop-shadow-2 hover:bg-supportive-lilac-700 active:text-black-teal/60 active:ring-black-teal/10',\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-black-teal/10',\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: 'border bg-white-600 text-black-teal-100',\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:text-black-teal/60 active:ring-supportive-lilac-100',\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\tclass: 'ring-supportive-lilac-100',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tvariant: 'text',\n\t\t\t\tunderline: true,\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: 'border-b border-teal',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'text',\n\t\t\t\tunderline: true,\n\t\t\t\tdisabled: true,\n\t\t\t\tclass: 'border-b border-teal-100',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'text',\n\t\t\t\tdisabled: true,\n\t\t\t\tclass: 'text-teal-100',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'text',\n\t\t\t\tdisabled: false,\n\t\t\t\tloading: false,\n\t\t\t\tclass: 'active:text-teal-800',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tvariant: 'transparent',\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: 'text-dark-teal-100',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'transparent',\n\t\t\t\tdisabled: false,\n\t\t\t\tloading: false,\n\t\t\t\tclass: 'hover:bg-dark-teal active:text-dark-teal-100/60',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'transparent',\n\t\t\t\tdisabled: true,\n\t\t\t\tclass: 'text-dark-teal-100/60',\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-sm',\n\t\t\tbase: 'text-base',\n\t\t\tlg: 'text-base',\n\t\t},\n\t},\n});\n\n@Component({\n\ttag: 'p-button',\n\tstyleUrl: 'button.component.scss',\n})\nexport class Button {\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:\n\t\t| 'primary'\n\t\t| 'secondary'\n\t\t| 'transparent'\n\t\t| 'text'\n\t\t| 'dropdown' = '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 the text variant has underline\n\t */\n\t@Prop() underline: boolean = true;\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 * Icon position\n\t */\n\t@Prop() iconPosition: 'start' | 'end' = 'end';\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@Event({\n\t\tbubbles: false,\n\t})\n\tonClick: EventEmitter<MouseEvent>;\n\n\trender() {\n\t\tlet loaderColor: 'white' | 'storm' | 'indigo' = 'white';\n\t\tswitch (this.variant) {\n\t\t\tcase 'secondary':\n\t\t\t\tloaderColor = 'storm';\n\t\t\t\tbreak;\n\t\t\tcase 'text':\n\t\t\t\tloaderColor = 'indigo';\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 active = this.active || this.class?.includes('active');\n\n\t\treturn (\n\t\t\t<Host class='p-button block'>\n\t\t\t\t<VariableTag\n\t\t\t\t\tdisabled={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\tunderline: this.underline,\n\t\t\t\t\t\tloading: this.loading,\n\t\t\t\t\t\tdisabled: this.disabled,\n\t\t\t\t\t\tbuttonGroupPosition: this.buttonGroupPosition,\n\t\t\t\t\t\ticonOnly: this.iconOnly,\n\t\t\t\t\t\tactive,\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<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</Host>\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\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={icon({\n\t\t\t\t\tsize: this.size,\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}
|
|
1
|
+
{"file":"button.component.js","m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,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,OAAO,CAAC;MAChC,IAAI,CAAC,QAAQ,EAAE,EAEhB,eAAQ,EAEP,IAAI,CAAC,IAAI;MACT,IAAI,CAAC,YAAY,KAAK,KAAK;MAC3B,CAAC,IAAI,CAAC,OAAO;MACb,CAAC,IAAI,CAAC,OAAO;MACb,IAAI,CAAC,QAAQ,EAAE,EAEf,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,eAAe,KAAK,KAAK,KAC/D,cACC,OAAO,EAAC,OAAO,EACf,MAAM,EAAE,IAAI,CAAC,OAAO,KAAK,IAAI,GAAG,GAAG,GAAG,CAAC,GACtC,CACF,EAEA,IAAI,CAAC,OAAO,IAAI,gBAAU,KAAK,EAAE,WAAW,GAAI,CACpC,CACR,EACN;GACF;EAGD,WAAW,CAAC,EAAc;IACzB,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,QAAQ,EAAE;MAClC,EAAE,CAAC,cAAc,EAAE,CAAC;MACpB,OAAO;KACP;IAED,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;GACtB;EAEO,QAAQ;IACf,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;MACf,OAAO;KACP;IAED,QACC,cACC,KAAK,EAAE,IAAI,CAAC;QACX,IAAI,EAAE,IAAI,CAAC,IAAI;OACf,CAAC,EACF,OAAO,EAAE,IAAI,CAAC,IAAI,EAClB,IAAI,EAAE,IAAI,CAAC,QAAQ,EACnB,MAAM,EAAE,IAAI,CAAC,UAAU,GACtB,EACD;GACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/molecules/button/button.component.scss?tag=p-button","src/components/molecules/button/button.component.tsx"],"sourcesContent":["","import {\n\tComponent,\n\tEvent,\n\tEventEmitter,\n\th,\n\tHost,\n\tListen,\n\tProp,\n} from '@stencil/core';\nimport { RotateOptions } from '../../../types/tailwind';\nimport { IconFlipOptions, IconVariant } from '../../atoms/icon/icon.component';\nimport { cva } from 'class-variance-authority';\n\nconst button = cva(\n\t[\n\t\t'group',\n\t\t'font-semibold leading-4',\n\t\t'flex items-center justify-center gap-2',\n\t\t'cursor-pointer',\n\t],\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tprimary: ['bg-supportive-lilac border-black-teal/20'],\n\t\t\t\tsecondary: ['bg-white border-black-teal/10'],\n\t\t\t\ttext: ['text-teal'],\n\t\t\t\ttransparent: ['bg-transparent'],\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\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'],\n\t\t\t\tbase: ['text-sm h-8'],\n\t\t\t\tlg: ['text-base h-10'],\n\t\t\t},\n\t\t\tdisabled: {\n\t\t\t\ttrue: 'cursor-not-allowed',\n\t\t\t\tfalse: null,\n\t\t\t},\n\t\t\tunderline: {\n\t\t\t\ttrue: null,\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: ['primary', 'secondary'],\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'],\n\t\t\t\tdisabled: false,\n\t\t\t\tloading: false,\n\t\t\t\tclass: 'active:border-supportive-lilac-800 active:ring active:ring-2 ',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['primary', 'secondary', 'transparent'],\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'],\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'],\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: ['primary', 'secondary'],\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: 'text-black-teal',\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-supportive-lilac-100 text-black-teal-100',\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'drop-shadow-supportive-lilac hover:drop-shadow-2 hover:bg-supportive-lilac-700 active:text-black-teal/60 active:ring-black-teal/10',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'secondary',\n\t\t\t\tdisabled: true,\n\t\t\t\tclass: 'border bg-white-600 text-black-teal-100',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'secondary',\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:text-black-teal/60 active:ring-supportive-lilac-100',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tvariant: 'text',\n\t\t\t\tunderline: true,\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: 'border-b border-teal',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'text',\n\t\t\t\tunderline: true,\n\t\t\t\tdisabled: true,\n\t\t\t\tclass: 'border-b border-teal-100',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'text',\n\t\t\t\tdisabled: true,\n\t\t\t\tclass: 'text-teal-100',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'text',\n\t\t\t\tdisabled: false,\n\t\t\t\tloading: false,\n\t\t\t\tclass: 'active:text-teal-800',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tvariant: 'transparent',\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: 'text-dark-teal-100',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'transparent',\n\t\t\t\tdisabled: false,\n\t\t\t\tloading: false,\n\t\t\t\tclass: 'hover:bg-dark-teal active:text-dark-teal-100/60',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'transparent',\n\t\t\t\tdisabled: true,\n\t\t\t\tclass: 'text-dark-teal-100/60',\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\n\t\t\t{\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-sm',\n\t\t\tbase: 'text-base',\n\t\t\tlg: 'text-base',\n\t\t},\n\t},\n});\n\n@Component({\n\ttag: 'p-button',\n\tstyleUrl: 'button.component.scss',\n})\nexport class Button {\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: 'primary' | 'secondary' | 'transparent' | 'text' = 'primary';\n\n\t/**\n\t * Wether the text variant has underline\n\t */\n\t@Prop() underline: boolean = true;\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 * Icon position\n\t */\n\t@Prop() iconPosition: 'start' | 'end' = 'end';\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 * Button click event\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tonClick: EventEmitter<MouseEvent>;\n\n\trender() {\n\t\tlet loaderColor: 'white' | 'storm' | 'indigo' = 'white';\n\t\tswitch (this.variant) {\n\t\t\tcase 'secondary':\n\t\t\t\tloaderColor = 'storm';\n\t\t\t\tbreak;\n\t\t\tcase 'text':\n\t\t\t\tloaderColor = 'indigo';\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\treturn (\n\t\t\t<Host class='p-button inline-block'>\n\t\t\t\t<VariableTag\n\t\t\t\t\tdisabled={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\tunderline: this.underline,\n\t\t\t\t\t\tloading: this.loading,\n\t\t\t\t\t\tdisabled: this.disabled,\n\t\t\t\t\t\tbuttonGroupPosition: this.buttonGroupPosition,\n\t\t\t\t\t\ticonOnly: this.iconOnly,\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<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</Host>\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\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={icon({\n\t\t\t\t\tsize: this.size,\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}
|
|
@@ -48,11 +48,11 @@ const Dropdown = /*@__PURE__*/ proxyCustomElement(class Dropdown extends HTMLEle
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
render() {
|
|
51
|
-
return (h(Host, { class: 'p-dropdown relative' }, h("div", { class: 'relative w-inherit', ref: ref => (this._trigger = ref), onClick: () => this._triggerClickHandler() }, h("slot", { name: 'trigger' })), h("p-dropdown-menu-container", { class: dropdownContainer({
|
|
51
|
+
return (h(Host, { class: 'p-dropdown relative w-inherit' }, h("div", { class: 'relative w-inherit', ref: ref => (this._trigger = ref), onClick: () => this._triggerClickHandler() }, h("slot", { name: 'trigger' })), h("p-dropdown-menu-container", { class: dropdownContainer({
|
|
52
52
|
strategy: this.strategy,
|
|
53
53
|
}), role: 'popover', maxWidth: !this.calculateWidth && this.applyMaxWidth, fullWidth: this.applyFullWidth && !this.applyMaxWidth, allowOverflow: this.allowOverflow, ref: el => this._load(el), "data-placement": this.placement, "data-strategy": this.strategy, onClick: () => this._containerClickHandler(), scrollable: this.scrollable }, h("slot", { name: 'items' }))));
|
|
54
54
|
}
|
|
55
|
-
_checkButton(
|
|
55
|
+
_checkButton() {
|
|
56
56
|
if (!this.applyChevron) {
|
|
57
57
|
return;
|
|
58
58
|
}
|
|
@@ -64,8 +64,6 @@ const Dropdown = /*@__PURE__*/ proxyCustomElement(class Dropdown extends HTMLEle
|
|
|
64
64
|
: this.placement.indexOf('top') >= 0
|
|
65
65
|
? 'up'
|
|
66
66
|
: 'down';
|
|
67
|
-
button.disabled = this.disableTriggerClick;
|
|
68
|
-
button.active = active;
|
|
69
67
|
}
|
|
70
68
|
}
|
|
71
69
|
onShowChange(show) {
|
|
@@ -123,7 +121,6 @@ const Dropdown = /*@__PURE__*/ proxyCustomElement(class Dropdown extends HTMLEle
|
|
|
123
121
|
this._cleanup = autoUpdate(this._el, this._menu, () => this._update());
|
|
124
122
|
this._menu.setAttribute('data-show', '');
|
|
125
123
|
this.isOpen.emit(true);
|
|
126
|
-
this._checkButton(true);
|
|
127
124
|
}
|
|
128
125
|
_hide() {
|
|
129
126
|
if (!this._loaded || this.show) {
|
|
@@ -136,7 +133,6 @@ const Dropdown = /*@__PURE__*/ proxyCustomElement(class Dropdown extends HTMLEle
|
|
|
136
133
|
// Hide the popover
|
|
137
134
|
this._menu.removeAttribute('data-show');
|
|
138
135
|
this.isOpen.emit(false);
|
|
139
|
-
this._checkButton(false);
|
|
140
136
|
}
|
|
141
137
|
_update() {
|
|
142
138
|
if (!this._menu) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"dropdown.component.js","mappings":";;;;;;AAAA,MAAM,oBAAoB,GAAG,8bAA8b;;ACuB3d,MAAM,iBAAiB,GAAG,GAAG,CAAC,CAAC,YAAY,CAAC,EAAE;EAC7C,QAAQ,EAAE;IAC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IAAI,CAAC,QAAQ,EAAE;MAClB,IAAI,CAAC,QAAQ,EAAE,CAAC;MAChB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;KACrB;;IAGD,IAAI,CAAC,KAAK,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC;IACxC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACxB,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;GACzB;EAEO,OAAO;IACd,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;MAChB,OAAO;KACP;IAED,eAAe,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,KAAK,EAAE;MACrC,SAAS,EAAE,IAAI,CAAC,SAAS;MACzB,QAAQ,EAAE,IAAI,CAAC,QAAQ;MACvB,UAAU,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,CAAC;KAClD,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,SAAS,EAAE;MAC3B,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC;MACzC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE;QAC/B,GAAG,EAAE,GAAG,CAAC,IAAI;QACb,IAAI,EAAE,GAAG,CAAC,IAAI;OACd,CAAC,CAAC;KACH,CAAC,CAAC;GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/molecules/dropdown/dropdown.component.scss?tag=p-dropdown","src/components/molecules/dropdown/dropdown.component.tsx"],"sourcesContent":["p-dropdown {\n\tp-dropdown-menu-container {\n\t\t@apply hidden;\n\n\t\t&[data-show] {\n\t\t\t@apply flex;\n\t\t}\n\t}\n}\n","import {\n\tautoUpdate,\n\tcomputePosition,\n\tflip,\n\toffset,\n\tPlacement,\n\tshift,\n\tStrategy,\n} from '@floating-ui/dom';\nimport {\n\tComponent,\n\tElement,\n\tEvent,\n\tEventEmitter,\n\th,\n\tHost,\n\tListen,\n\tProp,\n\tWatch,\n} from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport { childOf } from '../../../utils/child-of';\n\nconst dropdownContainer = cva(['z-dropdown'], {\n\tvariants: {\n\t\tstrategy: {\n\t\t\tabsolute: 'absolute',\n\t\t\tfixed: 'fixed',\n\t\t},\n\t},\n});\n\n@Component({\n\ttag: 'p-dropdown',\n\tstyleUrl: 'dropdown.component.scss',\n})\nexport class Dropdown {\n\t/**\n\t * The content of the dropdown menu\n\t */\n\t@Prop({ reflect: true }) placement: Placement = 'bottom-start';\n\n\t/**\n\t * The offset of the dropdown menu\n\t */\n\t@Prop() offset: number = 8;\n\n\t/**\n\t * The strategy of the dropdown placement\n\t */\n\t@Prop() strategy: Strategy = 'absolute';\n\n\t/**\n\t * Wether to show the dropdown menu\n\t */\n\t@Prop() show: boolean = false;\n\n\t/**\n\t * Wether to automatically calculate the width of the menu based on the trigger\n\t */\n\t@Prop() calculateWidth: boolean = false;\n\n\t/**\n\t * Wether to apply the max width\n\t */\n\t@Prop() applyMaxWidth: boolean = true;\n\n\t/**\n\t * Wether to apply the full width\n\t */\n\t@Prop() applyFullWidth: boolean = true;\n\n\t/**\n\t * Wether to allow overflow in the container\n\t */\n\t@Prop() allowOverflow: boolean = false;\n\n\t/**\n\t * Wether the dropdown container should be scrollable when the threshold is met.\n\t */\n\t@Prop() scrollable: boolean | 'default' | 'large' = false;\n\n\t/**\n\t * Wether to automatically close the dropdown menu after clicking inside\n\t */\n\t@Prop() insideClick: boolean = false;\n\n\t/**\n\t * Wether to automatically close the dropdown menu after clicking inside\n\t */\n\t@Prop() disableTriggerClick: boolean = false;\n\n\t/**\n\t * Wether to apply chevron automatically\n\t */\n\t@Prop() applyChevron: boolean = true;\n\n\t/**\n\t * Chevron position\n\t */\n\t@Prop() chevronPosition: 'start' | 'end' = 'end';\n\n\t/**\n\t * Chevron direction\n\t */\n\t@Prop() chevronDirection: 'up' | 'down';\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t/**\n\t * Open change event\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tisOpen: EventEmitter<boolean>;\n\n\tprivate _loaded = false;\n\tprivate _trigger: HTMLElement;\n\tprivate _menu: HTMLElement;\n\tprivate _cleanup: () => void;\n\n\tcomponentShouldUpdate() {\n\t\tthis._update();\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis._checkButton();\n\t}\n\n\tdisconnectedCallback() {\n\t\tif (this._cleanup) {\n\t\t\tthis._cleanup();\n\t\t\tthis._cleanup = null;\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class='p-dropdown relative'>\n\t\t\t\t<div\n\t\t\t\t\tclass='relative w-inherit'\n\t\t\t\t\tref={ref => (this._trigger = ref)}\n\t\t\t\t\tonClick={() => this._triggerClickHandler()}\n\t\t\t\t>\n\t\t\t\t\t<slot name='trigger' />\n\t\t\t\t</div>\n\t\t\t\t<p-dropdown-menu-container\n\t\t\t\t\tclass={dropdownContainer({\n\t\t\t\t\t\tstrategy: this.strategy,\n\t\t\t\t\t})}\n\t\t\t\t\trole='popover'\n\t\t\t\t\tmaxWidth={!this.calculateWidth && this.applyMaxWidth}\n\t\t\t\t\tfullWidth={this.applyFullWidth && !this.applyMaxWidth}\n\t\t\t\t\tallowOverflow={this.allowOverflow}\n\t\t\t\t\tref={el => this._load(el)}\n\t\t\t\t\tdata-placement={this.placement}\n\t\t\t\t\tdata-strategy={this.strategy}\n\t\t\t\t\tonClick={() => this._containerClickHandler()}\n\t\t\t\t\tscrollable={this.scrollable}\n\t\t\t\t>\n\t\t\t\t\t<slot name='items' />\n\t\t\t\t</p-dropdown-menu-container>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate _checkButton(active: boolean = false) {\n\t\tif (!this.applyChevron) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst buttons = this._el.querySelectorAll<HTMLPButtonElement>('p-button');\n\t\tfor (let button of buttons) {\n\t\t\tbutton.chevronPosition = this.chevronPosition;\n\t\t\tbutton.chevron = this.chevronDirection\n\t\t\t\t? this.chevronDirection\n\t\t\t\t: this.placement.indexOf('top') >= 0\n\t\t\t\t? 'up'\n\t\t\t\t: 'down';\n\t\t\tbutton.disabled = this.disableTriggerClick;\n\t\t\tbutton.active = active;\n\t\t}\n\t}\n\n\t@Watch('show')\n\tprotected onShowChange(show) {\n\t\tif (!this._loaded) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!show) {\n\t\t\tthis._hide();\n\t\t\treturn;\n\t\t}\n\n\t\tthis._show();\n\t}\n\n\t@Listen('click', { target: 'document', capture: true })\n\tprotected documentClickHandler({ target }) {\n\t\tif (!this._menu.hasAttribute('data-show') || childOf(target, this._el)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._hide();\n\t}\n\n\tprivate _containerClickHandler() {\n\t\tif (this.insideClick) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._menu.hasAttribute('data-show')) {\n\t\t\tthis._hide();\n\t\t}\n\t}\n\n\tprivate _triggerClickHandler() {\n\t\tif (this.disableTriggerClick) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._menu.hasAttribute('data-show')) {\n\t\t\tthis._hide();\n\t\t\treturn;\n\t\t}\n\n\t\tthis._show();\n\t}\n\n\tprivate _load(popover: HTMLElement) {\n\t\tthis._menu = popover;\n\t\tif (popover) {\n\t\t\tthis._update();\n\t\t\tthis._loaded = true;\n\n\t\t\tif (this.show) {\n\t\t\t\tsetTimeout(() => this._show(), 100);\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate _show() {\n\t\tif (!this._loaded) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Make the popover visible\n\t\tif (this.calculateWidth) {\n\t\t\tthis._menu.style.width = `${this._trigger.clientWidth}px`;\n\t\t}\n\n\t\tthis._cleanup = autoUpdate(this._el, this._menu, () => this._update());\n\n\t\tthis._menu.setAttribute('data-show', '');\n\t\tthis.isOpen.emit(true);\n\t\tthis._checkButton(true);\n\t}\n\n\tprivate _hide() {\n\t\tif (!this._loaded || this.show) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._cleanup) {\n\t\t\tthis._cleanup();\n\t\t\tthis._cleanup = null;\n\t\t}\n\n\t\t// Hide the popover\n\t\tthis._menu.removeAttribute('data-show');\n\t\tthis.isOpen.emit(false);\n\t\tthis._checkButton(false);\n\t}\n\n\tprivate _update() {\n\t\tif (!this._menu) {\n\t\t\treturn;\n\t\t}\n\n\t\tcomputePosition(this._el, this._menu, {\n\t\t\tplacement: this.placement,\n\t\t\tstrategy: this.strategy,\n\t\t\tmiddleware: [offset(this.offset), flip(), shift()],\n\t\t}).then(({ x, y, placement }) => {\n\t\t\tthis._menu.dataset.placement = placement;\n\t\t\tObject.assign(this._menu.style, {\n\t\t\t\ttop: `${y}px`,\n\t\t\t\tleft: `${x}px`,\n\t\t\t});\n\t\t});\n\t}\n}\n"],"version":3}
|
|
1
|
+
{"file":"dropdown.component.js","mappings":";;;;;;AAAA,MAAM,oBAAoB,GAAG,8bAA8b;;ACuB3d,MAAM,iBAAiB,GAAG,GAAG,CAAC,CAAC,YAAY,CAAC,EAAE;EAC7C,QAAQ,EAAE;IACT,QAAQ,EAAE;MACT,QAAQ,EAAE,UAAU;MACpB,KAAK,EAAE,OAAO;KACd;GACD;CACD,CAAC,CAAC;MAMU,QAAQ;;;;;IAoFZ,YAAO,GAAG,KAAK,CAAC;qBAhFwB,cAAc;kBAKrC,CAAC;oBAKG,UAAU;gBAKf,KAAK;0BAKK,KAAK;yBAKN,IAAI;0BAKH,IAAI;yBAKL,KAAK;sBAKc,KAAK;uBAK1B,KAAK;+BAKG,KAAK;wBAKZ,IAAI;2BAKO,KAAK;;;EAyBhD,qBAAqB;IACpB,IAAI,CAAC,OAAO,EAAE,CAAC;GACf;EAED,gBAAgB;IACf,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AC,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,SAAS,EAAE;MAC3B,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC;MACzC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE;QAC/B,GAAG,EAAE,GAAG,CAAC,IAAI;QACb,IAAI,EAAE,GAAG,CAAC,IAAI;OACd,CAAC,CAAC;KACH,CAAC,CAAC;GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/molecules/dropdown/dropdown.component.scss?tag=p-dropdown","src/components/molecules/dropdown/dropdown.component.tsx"],"sourcesContent":["p-dropdown {\n\tp-dropdown-menu-container {\n\t\t@apply hidden;\n\n\t\t&[data-show] {\n\t\t\t@apply flex;\n\t\t}\n\t}\n}\n","import {\n\tautoUpdate,\n\tcomputePosition,\n\tflip,\n\toffset,\n\tPlacement,\n\tshift,\n\tStrategy,\n} from '@floating-ui/dom';\nimport {\n\tComponent,\n\tElement,\n\tEvent,\n\tEventEmitter,\n\th,\n\tHost,\n\tListen,\n\tProp,\n\tWatch,\n} from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport { childOf } from '../../../utils/child-of';\n\nconst dropdownContainer = cva(['z-dropdown'], {\n\tvariants: {\n\t\tstrategy: {\n\t\t\tabsolute: 'absolute',\n\t\t\tfixed: 'fixed',\n\t\t},\n\t},\n});\n\n@Component({\n\ttag: 'p-dropdown',\n\tstyleUrl: 'dropdown.component.scss',\n})\nexport class Dropdown {\n\t/**\n\t * The content of the dropdown menu\n\t */\n\t@Prop({ reflect: true }) placement: Placement = 'bottom-start';\n\n\t/**\n\t * The offset of the dropdown menu\n\t */\n\t@Prop() offset: number = 8;\n\n\t/**\n\t * The strategy of the dropdown placement\n\t */\n\t@Prop() strategy: Strategy = 'absolute';\n\n\t/**\n\t * Wether to show the dropdown menu\n\t */\n\t@Prop() show: boolean = false;\n\n\t/**\n\t * Wether to automatically calculate the width of the menu based on the trigger\n\t */\n\t@Prop() calculateWidth: boolean = false;\n\n\t/**\n\t * Wether to apply the max width\n\t */\n\t@Prop() applyMaxWidth: boolean = true;\n\n\t/**\n\t * Wether to apply the full width\n\t */\n\t@Prop() applyFullWidth: boolean = true;\n\n\t/**\n\t * Wether to allow overflow in the container\n\t */\n\t@Prop() allowOverflow: boolean = false;\n\n\t/**\n\t * Wether the dropdown container should be scrollable when the threshold is met.\n\t */\n\t@Prop() scrollable: boolean | 'default' | 'large' = false;\n\n\t/**\n\t * Wether to automatically close the dropdown menu after clicking inside\n\t */\n\t@Prop() insideClick: boolean = false;\n\n\t/**\n\t * Wether to automatically close the dropdown menu after clicking inside\n\t */\n\t@Prop() disableTriggerClick: boolean = false;\n\n\t/**\n\t * Wether to apply chevron automatically\n\t */\n\t@Prop() applyChevron: boolean = true;\n\n\t/**\n\t * Chevron position\n\t */\n\t@Prop() chevronPosition: 'start' | 'end' = 'end';\n\n\t/**\n\t * Chevron direction\n\t */\n\t@Prop() chevronDirection: 'up' | 'down';\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t/**\n\t * Open change event\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tisOpen: EventEmitter<boolean>;\n\n\tprivate _loaded = false;\n\tprivate _trigger: HTMLElement;\n\tprivate _menu: HTMLElement;\n\tprivate _cleanup: () => void;\n\n\tcomponentShouldUpdate() {\n\t\tthis._update();\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis._checkButton();\n\t}\n\n\tdisconnectedCallback() {\n\t\tif (this._cleanup) {\n\t\t\tthis._cleanup();\n\t\t\tthis._cleanup = null;\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class='p-dropdown relative w-inherit'>\n\t\t\t\t<div\n\t\t\t\t\tclass='relative w-inherit'\n\t\t\t\t\tref={ref => (this._trigger = ref)}\n\t\t\t\t\tonClick={() => this._triggerClickHandler()}\n\t\t\t\t>\n\t\t\t\t\t<slot name='trigger' />\n\t\t\t\t</div>\n\t\t\t\t<p-dropdown-menu-container\n\t\t\t\t\tclass={dropdownContainer({\n\t\t\t\t\t\tstrategy: this.strategy,\n\t\t\t\t\t})}\n\t\t\t\t\trole='popover'\n\t\t\t\t\tmaxWidth={!this.calculateWidth && this.applyMaxWidth}\n\t\t\t\t\tfullWidth={this.applyFullWidth && !this.applyMaxWidth}\n\t\t\t\t\tallowOverflow={this.allowOverflow}\n\t\t\t\t\tref={el => this._load(el)}\n\t\t\t\t\tdata-placement={this.placement}\n\t\t\t\t\tdata-strategy={this.strategy}\n\t\t\t\t\tonClick={() => this._containerClickHandler()}\n\t\t\t\t\tscrollable={this.scrollable}\n\t\t\t\t>\n\t\t\t\t\t<slot name='items' />\n\t\t\t\t</p-dropdown-menu-container>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate _checkButton() {\n\t\tif (!this.applyChevron) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst buttons = this._el.querySelectorAll<HTMLPButtonElement>('p-button');\n\t\tfor (let button of buttons) {\n\t\t\tbutton.chevronPosition = this.chevronPosition;\n\t\t\tbutton.chevron = this.chevronDirection\n\t\t\t\t? this.chevronDirection\n\t\t\t\t: this.placement.indexOf('top') >= 0\n\t\t\t\t? 'up'\n\t\t\t\t: 'down';\n\t\t}\n\t}\n\n\t@Watch('show')\n\tprotected onShowChange(show) {\n\t\tif (!this._loaded) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!show) {\n\t\t\tthis._hide();\n\t\t\treturn;\n\t\t}\n\n\t\tthis._show();\n\t}\n\n\t@Listen('click', { target: 'document', capture: true })\n\tprotected documentClickHandler({ target }) {\n\t\tif (!this._menu.hasAttribute('data-show') || childOf(target, this._el)) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._hide();\n\t}\n\n\tprivate _containerClickHandler() {\n\t\tif (this.insideClick) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._menu.hasAttribute('data-show')) {\n\t\t\tthis._hide();\n\t\t}\n\t}\n\n\tprivate _triggerClickHandler() {\n\t\tif (this.disableTriggerClick) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._menu.hasAttribute('data-show')) {\n\t\t\tthis._hide();\n\t\t\treturn;\n\t\t}\n\n\t\tthis._show();\n\t}\n\n\tprivate _load(popover: HTMLElement) {\n\t\tthis._menu = popover;\n\t\tif (popover) {\n\t\t\tthis._update();\n\t\t\tthis._loaded = true;\n\n\t\t\tif (this.show) {\n\t\t\t\tsetTimeout(() => this._show(), 100);\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate _show() {\n\t\tif (!this._loaded) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Make the popover visible\n\t\tif (this.calculateWidth) {\n\t\t\tthis._menu.style.width = `${this._trigger.clientWidth}px`;\n\t\t}\n\n\t\tthis._cleanup = autoUpdate(this._el, this._menu, () => this._update());\n\n\t\tthis._menu.setAttribute('data-show', '');\n\t\tthis.isOpen.emit(true);\n\t}\n\n\tprivate _hide() {\n\t\tif (!this._loaded || this.show) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._cleanup) {\n\t\t\tthis._cleanup();\n\t\t\tthis._cleanup = null;\n\t\t}\n\n\t\t// Hide the popover\n\t\tthis._menu.removeAttribute('data-show');\n\t\tthis.isOpen.emit(false);\n\t}\n\n\tprivate _update() {\n\t\tif (!this._menu) {\n\t\t\treturn;\n\t\t}\n\n\t\tcomputePosition(this._el, this._menu, {\n\t\t\tplacement: this.placement,\n\t\t\tstrategy: this.strategy,\n\t\t\tmiddleware: [offset(this.offset), flip(), shift()],\n\t\t}).then(({ x, y, placement }) => {\n\t\t\tthis._menu.dataset.placement = placement;\n\t\t\tObject.assign(this._menu.style, {\n\t\t\t\ttop: `${y}px`,\n\t\t\t\tleft: `${x}px`,\n\t\t\t});\n\t\t});\n\t}\n}\n"],"version":3}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"icon.component.js","mappings":";;;;AAAA,MAAM,gBAAgB,GAAG,mgDAAmgD;;ACQ5hD,MAAM,IAAI,GAAG,GAAG,CAAC,CAAC,aAAa,CAAC,EAAE;EACjC,QAAQ,EAAE;IACT,IAAI,EAAE;MACL,IAAI,EAAE,IAAI;MACV,UAAU,EAAE,cAAc;MAC1B,QAAQ,EAAE,cAAc;KACxB;IACD,IAAI,EAAE;MACL,IAAI,EAAE,WAAW;MACjB,GAAG,EAAE,UAAU;MACf,EAAE,EAAE,SAAS;MACb,EAAE,EAAE,SAAS;MACb,IAAI,EAAE,WAAW;MACjB,EAAE,EAAE,SAAS;MACb,EAAE,EAAE,SAAS;MACb,KAAK,EAAE,UAAU;MACjB,KAAK,EAAE,UAAU;MACjB,KAAK,EAAE,UAAU;KACjB;IACD,SAAS,EAAE;MACV,IAAI,EAAE,4BAA4B;MAClC,KAAK,EAAE,IAAI;KACX;GACD;CACD,CAAC,CAAC;MAOU,IAAI;;;;;gBASgB,MAAM;kBAKb,CAAC;gBAKM,MAAM;;EAEtC,MAAM;IACL,MAAM,GAAG,GAAG,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAEhC,QACC,EAAC,IAAI,IACJ,KAAK,EAAE,IAAI,CAAC;QACX,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,SAAS,EAAE,IAAI,CAAC,IAAI,KAAK,MAAM,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC;OACrE,CAAC,EACF,KAAK,EAAE;QACN,aAAa,EAAE,GAAG,IAAI,CAAC,MAAM,KAAK;OAClC,EACD,SAAS,EAAE,GAAG,GACP,EACP;GACF;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/atoms/icon/icon.component.scss?tag=p-icon","src/components/atoms/icon/icon.component.tsx"],"sourcesContent":[":host {\n\t-webkit-transform-origin: 50% 51%;\n}\n","import { Component, h, Host, Prop } from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport { TextSizeOptions } from '../../../types/tailwind';\nimport { icons } from '../../../utils/icons';\n\nexport type IconVariant = keyof typeof icons;\nexport type IconFlipOptions = 'none' | 'horizontal' | 'vertical';\n\nconst icon = cva(['p-icon flex'], {\n\tvariants: {\n\t\tflip: {\n\t\t\tnone: null,\n\t\t\thorizontal: 'scale-x-flip',\n\t\t\tvertical: 'scale-y-flip',\n\t\t},\n\t\tsize: {\n\t\t\tauto: 'text-auto',\n\t\t\txxs: 'text-xxs',\n\t\t\txs: 'text-xs',\n\t\t\tsm: 'text-sm',\n\t\t\tbase: 'text-base',\n\t\t\tlg: 'text-lg',\n\t\t\txl: 'text-xl',\n\t\t\t'2xl': 'text-2xl',\n\t\t\t'3xl': 'text-3xl',\n\t\t\t'4xl': 'text-4xl',\n\t\t},\n\t\ttransform: {\n\t\t\ttrue: 'transform-gpu scale-[0.99]',\n\t\t\tfalse: null,\n\t\t},\n\t},\n});\n\n@Component({\n\ttag: 'p-icon',\n\tstyleUrl: 'icon.component.scss',\n\t// shadow: true,\n})\nexport class Icon {\n\t/**\n\t * The icon the be displayed\n\t */\n\t@Prop() variant!: IconVariant;\n\n\t/**\n\t * The size of the icon, using tailwind sizes\n\t */\n\t@Prop() size: TextSizeOptions = '
|
|
1
|
+
{"file":"icon.component.js","mappings":";;;;AAAA,MAAM,gBAAgB,GAAG,mgDAAmgD;;ACQ5hD,MAAM,IAAI,GAAG,GAAG,CAAC,CAAC,aAAa,CAAC,EAAE;EACjC,QAAQ,EAAE;IACT,IAAI,EAAE;MACL,IAAI,EAAE,IAAI;MACV,UAAU,EAAE,cAAc;MAC1B,QAAQ,EAAE,cAAc;KACxB;IACD,IAAI,EAAE;MACL,IAAI,EAAE,WAAW;MACjB,GAAG,EAAE,UAAU;MACf,EAAE,EAAE,SAAS;MACb,EAAE,EAAE,SAAS;MACb,IAAI,EAAE,WAAW;MACjB,EAAE,EAAE,SAAS;MACb,EAAE,EAAE,SAAS;MACb,KAAK,EAAE,UAAU;MACjB,KAAK,EAAE,UAAU;MACjB,KAAK,EAAE,UAAU;KACjB;IACD,SAAS,EAAE;MACV,IAAI,EAAE,4BAA4B;MAClC,KAAK,EAAE,IAAI;KACX;GACD;CACD,CAAC,CAAC;MAOU,IAAI;;;;;gBASgB,MAAM;kBAKb,CAAC;gBAKM,MAAM;;EAEtC,MAAM;IACL,MAAM,GAAG,GAAG,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAEhC,QACC,EAAC,IAAI,IACJ,KAAK,EAAE,IAAI,CAAC;QACX,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,SAAS,EAAE,IAAI,CAAC,IAAI,KAAK,MAAM,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC;OACrE,CAAC,EACF,KAAK,EAAE;QACN,aAAa,EAAE,GAAG,IAAI,CAAC,MAAM,KAAK;OAClC,EACD,SAAS,EAAE,GAAG,GACP,EACP;GACF;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/atoms/icon/icon.component.scss?tag=p-icon","src/components/atoms/icon/icon.component.tsx"],"sourcesContent":[":host {\n\t-webkit-transform-origin: 50% 51%;\n}\n","import { Component, h, Host, Prop } from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport { TextSizeOptions } from '../../../types/tailwind';\nimport { icons } from '../../../utils/icons';\n\nexport type IconVariant = keyof typeof icons;\nexport type IconFlipOptions = 'none' | 'horizontal' | 'vertical';\n\nconst icon = cva(['p-icon flex'], {\n\tvariants: {\n\t\tflip: {\n\t\t\tnone: null,\n\t\t\thorizontal: 'scale-x-flip',\n\t\t\tvertical: 'scale-y-flip',\n\t\t},\n\t\tsize: {\n\t\t\tauto: 'text-auto',\n\t\t\txxs: 'text-xxs',\n\t\t\txs: 'text-xs',\n\t\t\tsm: 'text-sm',\n\t\t\tbase: 'text-base',\n\t\t\tlg: 'text-lg',\n\t\t\txl: 'text-xl',\n\t\t\t'2xl': 'text-2xl',\n\t\t\t'3xl': 'text-3xl',\n\t\t\t'4xl': 'text-4xl',\n\t\t},\n\t\ttransform: {\n\t\t\ttrue: 'transform-gpu scale-[0.99]',\n\t\t\tfalse: null,\n\t\t},\n\t},\n});\n\n@Component({\n\ttag: 'p-icon',\n\tstyleUrl: 'icon.component.scss',\n\t// shadow: true,\n})\nexport class Icon {\n\t/**\n\t * The icon the be displayed\n\t */\n\t@Prop() variant!: IconVariant;\n\n\t/**\n\t * The size of the icon, using tailwind sizes\n\t */\n\t@Prop() size: TextSizeOptions = 'auto';\n\n\t/**\n\t * Wether to rotate the icon x degrees\n\t */\n\t@Prop() rotate: number = 0;\n\n\t/**\n\t * Wether to flip the icon horizontally or vertically\n\t */\n\t@Prop() flip: IconFlipOptions = 'none';\n\n\trender() {\n\t\tconst svg = icons[this.variant];\n\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={icon({\n\t\t\t\t\tflip: this.flip,\n\t\t\t\t\tsize: this.size,\n\t\t\t\t\ttransform: this.flip !== 'none' || this.rotate > 0 || this.rotate < 0,\n\t\t\t\t})}\n\t\t\t\tstyle={{\n\t\t\t\t\t'--tw-rotate': `${this.rotate}deg`,\n\t\t\t\t}}\n\t\t\t\tinnerHTML={svg}\n\t\t\t></Host>\n\t\t);\n\t}\n}\n"],"version":3}
|
package/dist/components/index.js
CHANGED
|
@@ -7,13 +7,30 @@ export { c as childOf } from './child-of.js';
|
|
|
7
7
|
export { i as iconsDeprecated } from './icons-deprecated.js';
|
|
8
8
|
export { c as categorized, i as icons } from './icons.js';
|
|
9
9
|
export { f as formatTranslation, g as getLocaleComponentStrings } from './localization.js';
|
|
10
|
-
import { c as createCommonjsModule, g as getDefaultExportFromCjs } from './_commonjsHelpers.js';
|
|
11
10
|
|
|
12
11
|
const camelToSnakeCase = (str) => str.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`);
|
|
13
12
|
const snakeToCamelCase = (str) => str
|
|
14
13
|
.toLowerCase()
|
|
15
14
|
.replace(/([-_][a-z])/g, (group) => group.toUpperCase().replace('-', '').replace('_', ''));
|
|
16
15
|
|
|
16
|
+
function getDefaultExportFromCjs (x) {
|
|
17
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function createCommonjsModule(fn, basedir, module) {
|
|
21
|
+
return module = {
|
|
22
|
+
path: basedir,
|
|
23
|
+
exports: {},
|
|
24
|
+
require: function (path, base) {
|
|
25
|
+
return commonjsRequire();
|
|
26
|
+
}
|
|
27
|
+
}, fn(module, module.exports), module.exports;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function commonjsRequire () {
|
|
31
|
+
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
|
32
|
+
}
|
|
33
|
+
|
|
17
34
|
var createPlugin_1 = createCommonjsModule(function (module, exports) {
|
|
18
35
|
Object.defineProperty(exports, "__esModule", {
|
|
19
36
|
value: true
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"index.js","mappings":";;;;;;;;;;;MAAa,gBAAgB,GAAG,CAAC,GAAG,KAChC,GAAG,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,MAAM,KAAK,IAAI,MAAM,CAAC,WAAW,EAAE,EAAE,EAAE;MAErD,gBAAgB,GAAG,CAAC,GAAG,KAChC,GAAG;GACE,WAAW,EAAE;GACb,OAAO,CAAC,cAAc,EAAE,CAAC,KAAK,KAC3B,KAAK,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC;;;ACNjE,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE;AAC7C,IAAI,KAAK,EAAE,IAAI;AACf,CAAC,CAAC,CAAC;AACH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CAAC,yBAAyB,CAAC;IAClC,QAAQ;IACR,KAAK;GACL;CACD;;;;","names":["require$$0","plugin","rotate"],"sources":["src/utils/transformers.ts","../../node_modules/tailwindcss/lib/util/createPlugin.js","../../node_modules/tailwindcss/lib/public/create-plugin.js","../../node_modules/tailwindcss/plugin.js","src/tailwind/theme/animation.ts","src/tailwind/theme/colors.ts","src/tailwind/theme/height.ts","src/tailwind/theme/rotate.ts","src/tailwind/theme/scale.ts","src/tailwind/theme/shadows.ts","src/tailwind/theme/spacing.ts","src/tailwind/theme/typography.ts","src/tailwind/theme/width.ts","src/tailwind/theme/z-index.ts","src/tailwind/plugins/hover.ts","src/tailwind/plugins/safe-area.ts","src/tailwind/paperless.ts"],"sourcesContent":["export const camelToSnakeCase = (str) =>\n str.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`);\n\nexport const snakeToCamelCase = (str) =>\n str\n .toLowerCase()\n .replace(/([-_][a-z])/g, (group) =>\n group.toUpperCase().replace('-', '').replace('_', '')\n );\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function() {\n return _default;\n }\n});\nfunction createPlugin(plugin, config) {\n return {\n handler: plugin,\n config\n };\n}\ncreatePlugin.withOptions = function(pluginFunction, configFunction = ()=>({})) {\n const optionsFunction = function(options) {\n return {\n __options: options,\n handler: pluginFunction(options),\n config: configFunction(options)\n };\n };\n optionsFunction.__isOptionsFunction = true;\n // Expose plugin dependencies so that `object-hash` returns a different\n // value if anything here changes, to ensure a rebuild is triggered.\n optionsFunction.__pluginFunction = pluginFunction;\n optionsFunction.__configFunction = configFunction;\n return optionsFunction;\n};\nconst _default = createPlugin;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function() {\n return _default;\n }\n});\nconst _createPlugin = /*#__PURE__*/ _interop_require_default(require(\"../util/createPlugin\"));\nfunction _interop_require_default(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\nconst _default = _createPlugin.default;\n","let createPlugin = require('./lib/public/create-plugin')\nmodule.exports = (createPlugin.__esModule ? createPlugin : { default: createPlugin }).default\n","export default {\n\tanimation: {\n\t\t'fade-in': 'forwards fadeIn .2s ease',\n\t\t'fade-out': 'forwards fadeOut .2s ease',\n\t\t'slide-in-right': 'forwards slideInRight .5s ease',\n\t\t'slide-in-left': 'forwards slideInLeft .5s ease',\n\t\t'slide-in-top': 'forwards slideInTop .25 ease',\n\t\t'slide-in-bottom': 'forwards slideInBottom .5s ease',\n\t\t'slide-in-right-small': 'forwards slideInRightSmall .5s ease',\n\t\t'slide-in-left-small': 'forwards slideInLeftSmall .5s ease',\n\t\t'slide-in-top-small': 'forwards slideInTopSmall .5s ease',\n\t\t'slide-in-bottom-small': 'forwards slideInBottomSmall .5s ease',\n\t\t'slide-out-right': 'forwards slideOutRight .2s ease',\n\t\t'slide-out-left': 'forwards slideOutLeft .2s ease',\n\t\t'slide-out-top': 'forwards slideOutTop .2s ease',\n\t\t'slide-out-bottom': 'forwards slideOutBottom .5s ease',\n\t\t'slide-out-top-small': 'forwards slideOutTopSmall .5s ease',\n\t\t'slide-out-bottom-small': 'forwards slideOutBottomSmall .5s ease',\n\t},\n\n\tkeyframes: {\n\t\tfadeIn: {\n\t\t\t'0%': { opacity: 0 },\n\t\t\t'100%': { opacity: 100 },\n\t\t},\n\t\tfadeOut: {\n\t\t\t'0%': { opacity: 100 },\n\t\t\t'100%': { opacity: 0 },\n\t\t},\n\t\tslideInRight: {\n\t\t\t'0%': { transform: 'translateX(100%)' },\n\t\t\t'100%': { transform: 'translateX(0)' },\n\t\t},\n\t\tslideInLeft: {\n\t\t\t'0%': { transform: 'translateX(-100%)' },\n\t\t\t'100%': { transform: 'translateX(0)' },\n\t\t},\n\t\tslideInTop: {\n\t\t\t'0%': { transform: 'translateY(-100%)' },\n\t\t\t'100%': { transform: 'translateY(0)' },\n\t\t},\n\t\tslideInBottom: {\n\t\t\t'0%': { transform: 'translateY(100%)' },\n\t\t\t'100%': { transform: 'translateY(0)' },\n\t\t},\n\t\tslideInRightSmall: {\n\t\t\t'0%': { transform: 'translateX(20%)' },\n\t\t\t'100%': { transform: 'translateX(0)' },\n\t\t},\n\t\tslideInLeftSmall: {\n\t\t\t'0%': { transform: 'translateX(-20%)' },\n\t\t\t'100%': { transform: 'translateX(0)' },\n\t\t},\n\t\tslideInTopSmall: {\n\t\t\t'0%': { transform: 'translateY(-20%)' },\n\t\t\t'100%': { transform: 'translateY(0)' },\n\t\t},\n\t\tslideInBottomSmall: {\n\t\t\t'0%': { transform: 'translateY(20%)' },\n\t\t\t'100%': { transform: 'translateY(0)' },\n\t\t},\n\t\tslideOutRight: {\n\t\t\t'0%': { transform: 'translateX(0)' },\n\t\t\t'100%': { transform: 'translateX(100%)' },\n\t\t},\n\t\tslideOutLeft: {\n\t\t\t'0%': { transform: 'translateX(0)' },\n\t\t\t'100%': { transform: 'translateX(-100%)' },\n\t\t},\n\t\tslideOutTop: {\n\t\t\t'0%': { transform: 'translateY(0)' },\n\t\t\t'100%': { transform: 'translateY(-100%)' },\n\t\t},\n\t\tslideOutBottom: {\n\t\t\t'0%': { transform: 'translateY(0)' },\n\t\t\t'100%': { transform: 'translateY(100%)' },\n\t\t},\n\t\tslideOutTopSmall: {\n\t\t\t'0%': { transform: 'translateY(0)' },\n\t\t\t'100%': { transform: 'translateY(-20%)' },\n\t\t},\n\t\tslideOutBottomSmall: {\n\t\t\t'0%': { transform: 'translateY(0)' },\n\t\t\t'100%': { transform: 'translateY(20%)' },\n\t\t},\n\t},\n};\n","export default {\n\tinherit: 'inherit',\n\ttransparent: 'transparent',\n\tcurrent: 'currentColor',\n\tblack: '#000',\n\n\twhite: {\n\t\t800: '#E4E3E3',\n\t\t700: '#F2F2F2',\n\t\t600: '#FAFAFA',\n\t\tDEFAULT: '#FFFFFF',\n\t\t500: '#FFFFFF',\n\t},\n\t'negative-red': {\n\t\t800: '#8D1010',\n\t\tDEFAULT: '#E61E1E',\n\t\t500: '#E61E1E',\n\t\t100: '#FFDDDD',\n\t\t50: '#FDEDED',\n\t},\n\t'positive-green': {\n\t\t800: '#2F6407',\n\t\tDEFAULT: '#5CC30E',\n\t\t500: '#5CC30E',\n\t\t100: '#5CC30E',\n\t\t50: '#EAFDE3',\n\t},\n\tamber: {\n\t\t800: '#944D0B',\n\t\tDEFAULT: '#E19F23',\n\t\t500: '#E19F23',\n\t\t100: '#FFF6C2',\n\t\t50: '#FFFAE0',\n\t},\n\n\t'human-beige': {\n\t\t800: '#DEC9B7',\n\t\t700: '#E7D8CB',\n\t\t600: '#EDE0D5',\n\t\tDEFAULT: '#EEE4DB',\n\t\t500: '#EEE4DB',\n\t\t400: '#F1E9E2',\n\t\t300: '#F5EFE9',\n\t\t200: '#F8F4F1',\n\t\t100: '#FCFAF8',\n\t\t50: '#FDFCFB',\n\t},\n\t'off-white': {\n\t\t800: '#D5D0C3',\n\t\t700: '#DEDBD5',\n\t\t600: '#ECEAE5',\n\t\tDEFAULT: '#F3F1ED',\n\t\t500: '#F3F1ED',\n\t\t400: '#F5F4F1',\n\t\t300: '#F8F7F4',\n\t\t200: '#FAF9F8',\n\t\t100: '#FDFCFB',\n\t\t50: '#FEFEFD',\n\t},\n\n\t'supportive-lilac': {\n\t\t900: '#5009B3',\n\t\t800: '#BD8CFF',\n\t\t700: '#C89FFF',\n\t\t600: '#CCA8FC',\n\t\tDEFAULT: '#D1AEFF',\n\t\t500: '#D1AEFF',\n\t\t400: '#DABEFF',\n\t\t300: '#E3CEFF',\n\t\t200: '#EDDFFF',\n\t\t100: '#F6EFFF',\n\t\t50: '#FAF7FF',\n\t},\n\t'growth-green': {\n\t\t800: '#81EF2B',\n\t\t700: '#7FF424',\n\t\t600: '#8CFC35',\n\t\tDEFAULT: '#A0FF56',\n\t\t500: '#A0FF56',\n\t\t400: '#B3FF78',\n\t\t300: '#C6FF9A',\n\t\t200: '#D9FFBB',\n\t\t100: '#ECFFDD',\n\t\t50: '#F5FFEE',\n\t},\n\t'tech-breeze': {\n\t\t800: '#3DEACC',\n\t\t700: '#66F2DA',\n\t\t600: '#83FAE6',\n\t\tDEFAULT: '#94FFED',\n\t\t500: '#94FFED',\n\t\t400: '#A9FFF1',\n\t\t300: '#BFFFF4',\n\t\t200: '#D4FFF8',\n\t\t100: '#EAFFFB',\n\t\t50: '#F4FFFD',\n\t},\n\n\tteal: {\n\t\t800: '#02665C',\n\t\t700: '#047367',\n\t\t600: '#047F72',\n\t\tDEFAULT: '#088879',\n\t\t500: '#088879',\n\t\t400: '#39A094',\n\t\t300: '#6BB8AF',\n\t\t200: '#9CCFC9',\n\t\t100: '#CEE7E4',\n\t\t50: '#E6F3F2',\n\t},\n\t'dark-teal': {\n\t\t800: '#012521',\n\t\t700: '#003832',\n\t\t600: '#004840',\n\t\tDEFAULT: '#005148',\n\t\t500: '#005148',\n\t\t400: '#33746D',\n\t\t300: '#669791',\n\t\t200: '#99B9B6',\n\t\t100: '#CCDCDA',\n\t\t50: '#E5EEED',\n\t},\n\t'black-teal': {\n\t\t800: '#000202',\n\t\t700: '#000D0B',\n\t\t600: '#011815',\n\t\tDEFAULT: '#032A24',\n\t\t500: '#032A24',\n\t\t400: '#355550',\n\t\t300: '#687F7C',\n\t\t200: '#9AAAA7',\n\t\t100: '#CDD4D3',\n\t\t50: '#E6EAE9',\n\t},\n\n\t// OLD, REMOVE THIS\n\tindigo: {\n\t\tdark: '#2C4BA9',\n\t\tDEFAULT: '#528AFA',\n\t\tlight: '#F1F6FF',\n\t},\n\tsky: {\n\t\tdark: '#30C2C9',\n\t\tDEFAULT: '#1EDAE3',\n\t\tlight: '#F5FEFF',\n\t\tvague: '#BBF4F6',\n\t},\n\tmystic: {\n\t\tblank: '#FFF',\n\t\tdark: '#DAE6F0',\n\t\tDEFAULT: '#F7FAFC',\n\t\tlight: '#FCFDFE',\n\t\tmedium: '#E3ECF3',\n\t},\n\tredberry: {\n\t\tdark: '#BD0F1E',\n\t\tDEFAULT: '#E63241',\n\t\tlight: '#FFE8EA',\n\t\tmedium: '#FF7D88',\n\t},\n\tstorm: {\n\t\tdark: '#272838',\n\t\tDEFAULT: '#51536B',\n\t\tlight: '#B0B2CB',\n\t\tmedium: '#80829E',\n\t\tvague: '#989AB7',\n\t},\n\tnegative: {\n\t\tdark: '#8A0F1D',\n\t\tDEFAULT: '#B91E28',\n\t\tlight: '#FFCCD3',\n\t},\n\tpositive: {\n\t\tdark: '#1DA360',\n\t\tDEFAULT: '#28D17C',\n\t\tlight: '#E5FFF2',\n\t},\n\tunbiased: {\n\t\tdark: '#FFA231',\n\t\tDEFAULT: '#FFC72D',\n\t\tlight: '#FFF6DC',\n\t},\n};\n","export default {\n\theight: {\n\t\tunset: 'unset',\n\t\tinherit: 'inherit',\n\t},\n};\n","const rotateNumbers = {};\n\nfor (let i = 1; i < 360; i++) {\n\trotateNumbers[`${i}`] = `${i}deg`;\n\trotateNumbers[`-${i}`] = `-${i}deg`;\n}\n\nexport default rotateNumbers;\n","export default {\n\tflip: '-1',\n};\n","export default {\n\t'1': ['0 1px 1px rgba(0, 2, 2, 0.08)'],\n\t'2': [\n\t\t'0 1px 1px rgba(0, 2, 2, 0.04)',\n\t\t'0 2px 2px rgba(0, 2, 2, 0.04)',\n\t\t'0 4px 4px rgba(0, 2, 2, 0.04)',\n\t],\n\t'3': [\n\t\t'0 1px 1px rgba(0, 2, 2, 0.08)',\n\t\t'0 2px 2px rgba(0, 2, 2, 0.08)',\n\t\t'0 4px 4px rgba(0, 2, 2, 0.08)',\n\t],\n\t'supportive-lilac': '0px 1px 1px 0px rgba(189, 140, 255, 0.20)',\n\tinherit: 'inherit',\n\ttransparent: 'transparent',\n};\n","export default {\n\t// default variant layout\n\t'content-mobile-x': '1rem',\n\t'content-mobile-y': '1.5rem',\n\n\t'content-desktop-x': '2rem',\n\t'content-desktop-y': '2rem',\n\n\t18: '4.5rem',\n};\n","export default {\n\tfontSize: {\n\t\txxs: ['0.5rem', '1rem'] as [fontsize: string, lineHeight: string],\n\t\t'3xl': ['2rem', '2.5rem'] as [fontsize: string, lineHeight: string],\n\t\t'4xl': ['2.5rem', '3rem'] as [fontsize: string, lineHeight: string],\n\t},\n\tlineHeight: {\n\t\txs: '1rem',\n\t\tsm: '1.5rem',\n\t\tbase: '1.5rem',\n\t\tlg: '1.75rem',\n\t\txl: '1.75rem',\n\t\t'2xl': '2rem',\n\t\t'3xl': '2.5rem',\n\t\t'4xl': '3rem',\n\t},\n};\n","export default {\n\twidth: {\n\t\tunset: 'unset',\n\t\tinherit: 'inherit',\n\n\t\t// default variant\n\t\t'content-mobile': '100%',\n\t\t'content-1280': '62rem',\n\t\t'content-1440': '71rem',\n\t\t'content-1536': '77rem',\n\t\t'content-1680': '83rem',\n\n\t\t// login variant\n\t\t'sidebar-desktop-login': '100%',\n\t\t'content-desktop-login': '21rem',\n\t},\n};\n","export default {\n\t'floating-menu': '190',\n\tdropdown: '200',\n\n\t'navbar-topbar': '280',\n\t'navbar-backdrop': '290',\n\tnavbar: '300',\n\n\tbackdrop: '490',\n\n\tdrawer: '500',\n\t'drawer-header': '501',\n\n\tmodal: '600',\n\n\ttooltip: '601',\n\n\ttoast: '700',\n};\n","const hover = ({ addVariant }) => {\n\t// Hover media queries\n\taddVariant('has-hover', '@media (hover: hover)');\n\taddVariant('no-hover', '@media (hover: none)');\n\t// Applied on hover if supported, never applied otherwise\n\taddVariant('hover-never', '@media (hover: hover) { &:hover }');\n\taddVariant(\n\t\t'group-hover-never',\n\t\t'@media (hover: hover) { :merge(.group):hover & }'\n\t);\n\taddVariant(\n\t\t'peer-hover-never',\n\t\t'@media (hover: hover) { :merge(.peer):hover & }'\n\t);\n\t// Applied on hover if supported, always applied otherwise\n\taddVariant('hover-always', [\n\t\t'@media (hover: hover) { &:hover }',\n\t\t'@media (hover: none)',\n\t]);\n\taddVariant('group-hover-always', [\n\t\t'@media (hover: hover) { :merge(.group):hover & }',\n\t\t'@media (hover: none)',\n\t]);\n\taddVariant('peer-hover-always', [\n\t\t'@media (hover: hover) { :merge(.peer):hover & }',\n\t\t'@media (hover: none)',\n\t]);\n};\n\nexport default hover;\n","const safeArea = ({ addUtilities }) => {\n\tconst utilities = {\n\t\t'.m-safe': {\n\t\t\tmarginTop: 'env(safe-area-inset-top)',\n\t\t\tmarginRight: 'env(safe-area-inset-right)',\n\t\t\tmarginBottom: 'env(safe-area-inset-bottom)',\n\t\t\tmarginLeft: 'env(safe-area-inset-left)',\n\t\t},\n\t\t'.mx-safe': {\n\t\t\tmarginRight: 'env(safe-area-inset-right)',\n\t\t\tmarginLeft: 'env(safe-area-inset-left)',\n\t\t},\n\t\t'.my-safe': {\n\t\t\tmarginTop: 'env(safe-area-inset-top)',\n\t\t\tmarginBottom: 'env(safe-area-inset-bottom)',\n\t\t},\n\t\t'.mt-safe': {\n\t\t\tmarginTop: 'env(safe-area-inset-top)',\n\t\t},\n\t\t'.mr-safe': {\n\t\t\tmarginRight: 'env(safe-area-inset-right)',\n\t\t},\n\t\t'.mb-safe': {\n\t\t\tmarginBottom: 'env(safe-area-inset-bottom)',\n\t\t},\n\t\t'.ml-safe': {\n\t\t\tmarginLeft: 'env(safe-area-inset-left)',\n\t\t},\n\t\t'.p-safe': {\n\t\t\tpaddingTop: 'env(safe-area-inset-top)',\n\t\t\tpaddingRight: 'env(safe-area-inset-right)',\n\t\t\tpaddingBottom: 'env(safe-area-inset-bottom)',\n\t\t\tpaddingLeft: 'env(safe-area-inset-left)',\n\t\t},\n\t\t'.px-safe': {\n\t\t\tpaddingRight: 'env(safe-area-inset-right)',\n\t\t\tpaddingLeft: 'env(safe-area-inset-left)',\n\t\t},\n\t\t'.py-safe': {\n\t\t\tpaddingTop: 'env(safe-area-inset-top)',\n\t\t\tpaddingBottom: 'env(safe-area-inset-bottom)',\n\t\t},\n\t\t'.pt-safe': {\n\t\t\tpaddingTop: 'env(safe-area-inset-top)',\n\t\t},\n\t\t'.pr-safe': {\n\t\t\tpaddingRight: 'env(safe-area-inset-right)',\n\t\t},\n\t\t'.pb-safe': {\n\t\t\tpaddingBottom: 'env(safe-area-inset-bottom)',\n\t\t},\n\t\t'.pl-safe': {\n\t\t\tpaddingLeft: 'env(safe-area-inset-left)',\n\t\t},\n\t\t'.min-h-screen': {\n\t\t\tminHeight: '100vh',\n\t\t},\n\t\t'.min-h-screen-safe': {\n\t\t\tminHeight:\n\t\t\t\t'calc(100vh - (env(safe-area-inset-top) + env(safe-area-inset-bottom)))',\n\t\t},\n\t\t'.max-h-screen': {\n\t\t\tmaxHeight: '100vh',\n\t\t},\n\t\t'.max-h-screen-safe': {\n\t\t\tmaxHeight:\n\t\t\t\t'calc(100vh - (env(safe-area-inset-top) + env(safe-area-inset-bottom)))',\n\t\t},\n\t\t'.h-screen-safe': {\n\t\t\theight: 'calc(100vh - (env(safe-area-inset-top) + env(safe-area-inset-bottom)))',\n\t\t},\n\t\t'.min-w-screen': {\n\t\t\tminWidth: '100vw',\n\t\t},\n\t\t'.min-w-screen-safe': {\n\t\t\tminWidth:\n\t\t\t\t'calc(100vw - (env(safe-area-inset-left) + env(safe-area-inset-right)))',\n\t\t},\n\t\t'.max-w-screen': {\n\t\t\tmaxWidth: '100vw',\n\t\t},\n\t\t'.max-w-screen-safe': {\n\t\t\tmaxWidth:\n\t\t\t\t'calc(100vw - (env(safe-area-inset-left) + env(safe-area-inset-right)))',\n\t\t},\n\t\t'.w-screen-safe': {\n\t\t\twidth: 'calc(100vw - (env(safe-area-inset-left) + env(safe-area-inset-right)))',\n\t\t},\n\t};\n\n\taddUtilities(utilities);\n};\n\n// eslint-disable-next-line unicorn/prefer-module\nexport default safeArea;\n","import plugin from 'tailwindcss/plugin';\n\nimport animation from './theme/animation';\nimport colors from './theme/colors';\nimport height from './theme/height';\nimport rotate from './theme/rotate';\nimport scale from './theme/scale';\nimport screens from './theme/screens';\nimport shadows from './theme/shadows';\nimport spacing from './theme/spacing';\nimport typeograhpy from './theme/typography';\nimport width from './theme/width';\nimport zIndex from './theme/z-index';\n\nimport hover from './plugins/hover';\nimport safeArea from './plugins/safe-area';\n\nexport const paperless = plugin(\n\tpluginAPI => {\n\t\tsafeArea(pluginAPI);\n\t\thover(pluginAPI);\n\t},\n\t{\n\t\ttheme: {\n\t\t\tcolors,\n\t\t\tboxShadow: shadows,\n\t\t\tdropShadow: shadows,\n\t\t\textend: {\n\t\t\t\tkeyframs: animation.keyframes,\n\t\t\t\tanimation: animation.animation,\n\t\t\t\tfontFamily: {\n\t\t\t\t\tgeist: ['Geist', 'serif'],\n\t\t\t\t\tambit: ['Ambit', 'sans-serif'],\n\t\t\t\t},\n\t\t\t\tscale,\n\t\t\t\trotate,\n\t\t\t\tfontSize: typeograhpy.fontSize,\n\t\t\t\tlineHeight: typeograhpy.lineHeight,\n\t\t\t\tzIndex,\n\t\t\t\tscreens,\n\t\t\t\twidth: width.width,\n\t\t\t\theight: height.height,\n\t\t\t\tspacing,\n\t\t\t\taspectRatio: {\n\t\t\t\t\tbranding: '23/24',\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\tplugins: [\n\t\t\trequire('@tailwindcss/aspect-ratio'),\n\t\t\trequire('tailwindcss-animate'),\n\t\t\trequire('tailwind-scrollbar-hide'),\n\t\t\tsafeArea,\n\t\t\thover,\n\t\t],\n\t}\n);\n"],"version":3}
|
|
1
|
+
{"file":"index.js","mappings":";;;;;;;;;;MAAa,gBAAgB,GAAG,CAAC,GAAG,KAChC,GAAG,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,MAAM,KAAK,IAAI,MAAM,CAAC,WAAW,EAAE,EAAE,EAAE;MAErD,gBAAgB,GAAG,CAAC,GAAG,KAChC,GAAG;GACE,WAAW,EAAE;GACb,OAAO,CAAC,cAAc,EAAE,CAAC,KAAK,KAC3B,KAAK,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC;;;;;;;;;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AAQ,EAAE,OAAO;OACjB;KACD;GACD;EACD,OAAO,EAAE;IACR,OAAO,CAAC,2BAA2B,CAAC;IACpC,OAAO,CAAC,qBAAqB,CAAC;IAC9B,OAAO,CAAC,yBAAyB,CAAC;IAClC,QAAQ;IACR,KAAK;GACL;CACD;;;;","names":["require$$0","plugin","rotate"],"sources":["src/utils/transformers.ts","../../node_modules/tailwindcss/lib/util/createPlugin.js","../../node_modules/tailwindcss/lib/public/create-plugin.js","../../node_modules/tailwindcss/plugin.js","src/tailwind/theme/animation.ts","src/tailwind/theme/colors.ts","src/tailwind/theme/height.ts","src/tailwind/theme/rotate.ts","src/tailwind/theme/scale.ts","src/tailwind/theme/shadows.ts","src/tailwind/theme/spacing.ts","src/tailwind/theme/typography.ts","src/tailwind/theme/width.ts","src/tailwind/theme/z-index.ts","src/tailwind/plugins/hover.ts","src/tailwind/plugins/safe-area.ts","src/tailwind/paperless.ts"],"sourcesContent":["export const camelToSnakeCase = (str) =>\n str.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`);\n\nexport const snakeToCamelCase = (str) =>\n str\n .toLowerCase()\n .replace(/([-_][a-z])/g, (group) =>\n group.toUpperCase().replace('-', '').replace('_', '')\n );\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function() {\n return _default;\n }\n});\nfunction createPlugin(plugin, config) {\n return {\n handler: plugin,\n config\n };\n}\ncreatePlugin.withOptions = function(pluginFunction, configFunction = ()=>({})) {\n const optionsFunction = function(options) {\n return {\n __options: options,\n handler: pluginFunction(options),\n config: configFunction(options)\n };\n };\n optionsFunction.__isOptionsFunction = true;\n // Expose plugin dependencies so that `object-hash` returns a different\n // value if anything here changes, to ensure a rebuild is triggered.\n optionsFunction.__pluginFunction = pluginFunction;\n optionsFunction.__configFunction = configFunction;\n return optionsFunction;\n};\nconst _default = createPlugin;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function() {\n return _default;\n }\n});\nconst _createPlugin = /*#__PURE__*/ _interop_require_default(require(\"../util/createPlugin\"));\nfunction _interop_require_default(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\nconst _default = _createPlugin.default;\n","let createPlugin = require('./lib/public/create-plugin')\nmodule.exports = (createPlugin.__esModule ? createPlugin : { default: createPlugin }).default\n","export default {\n\tanimation: {\n\t\t'fade-in': 'forwards fadeIn .2s ease',\n\t\t'fade-out': 'forwards fadeOut .2s ease',\n\t\t'slide-in-right': 'forwards slideInRight .5s ease',\n\t\t'slide-in-left': 'forwards slideInLeft .5s ease',\n\t\t'slide-in-top': 'forwards slideInTop .25 ease',\n\t\t'slide-in-bottom': 'forwards slideInBottom .5s ease',\n\t\t'slide-in-right-small': 'forwards slideInRightSmall .5s ease',\n\t\t'slide-in-left-small': 'forwards slideInLeftSmall .5s ease',\n\t\t'slide-in-top-small': 'forwards slideInTopSmall .5s ease',\n\t\t'slide-in-bottom-small': 'forwards slideInBottomSmall .5s ease',\n\t\t'slide-out-right': 'forwards slideOutRight .2s ease',\n\t\t'slide-out-left': 'forwards slideOutLeft .2s ease',\n\t\t'slide-out-top': 'forwards slideOutTop .2s ease',\n\t\t'slide-out-bottom': 'forwards slideOutBottom .5s ease',\n\t\t'slide-out-top-small': 'forwards slideOutTopSmall .5s ease',\n\t\t'slide-out-bottom-small': 'forwards slideOutBottomSmall .5s ease',\n\t},\n\n\tkeyframes: {\n\t\tfadeIn: {\n\t\t\t'0%': { opacity: 0 },\n\t\t\t'100%': { opacity: 100 },\n\t\t},\n\t\tfadeOut: {\n\t\t\t'0%': { opacity: 100 },\n\t\t\t'100%': { opacity: 0 },\n\t\t},\n\t\tslideInRight: {\n\t\t\t'0%': { transform: 'translateX(100%)' },\n\t\t\t'100%': { transform: 'translateX(0)' },\n\t\t},\n\t\tslideInLeft: {\n\t\t\t'0%': { transform: 'translateX(-100%)' },\n\t\t\t'100%': { transform: 'translateX(0)' },\n\t\t},\n\t\tslideInTop: {\n\t\t\t'0%': { transform: 'translateY(-100%)' },\n\t\t\t'100%': { transform: 'translateY(0)' },\n\t\t},\n\t\tslideInBottom: {\n\t\t\t'0%': { transform: 'translateY(100%)' },\n\t\t\t'100%': { transform: 'translateY(0)' },\n\t\t},\n\t\tslideInRightSmall: {\n\t\t\t'0%': { transform: 'translateX(20%)' },\n\t\t\t'100%': { transform: 'translateX(0)' },\n\t\t},\n\t\tslideInLeftSmall: {\n\t\t\t'0%': { transform: 'translateX(-20%)' },\n\t\t\t'100%': { transform: 'translateX(0)' },\n\t\t},\n\t\tslideInTopSmall: {\n\t\t\t'0%': { transform: 'translateY(-20%)' },\n\t\t\t'100%': { transform: 'translateY(0)' },\n\t\t},\n\t\tslideInBottomSmall: {\n\t\t\t'0%': { transform: 'translateY(20%)' },\n\t\t\t'100%': { transform: 'translateY(0)' },\n\t\t},\n\t\tslideOutRight: {\n\t\t\t'0%': { transform: 'translateX(0)' },\n\t\t\t'100%': { transform: 'translateX(100%)' },\n\t\t},\n\t\tslideOutLeft: {\n\t\t\t'0%': { transform: 'translateX(0)' },\n\t\t\t'100%': { transform: 'translateX(-100%)' },\n\t\t},\n\t\tslideOutTop: {\n\t\t\t'0%': { transform: 'translateY(0)' },\n\t\t\t'100%': { transform: 'translateY(-100%)' },\n\t\t},\n\t\tslideOutBottom: {\n\t\t\t'0%': { transform: 'translateY(0)' },\n\t\t\t'100%': { transform: 'translateY(100%)' },\n\t\t},\n\t\tslideOutTopSmall: {\n\t\t\t'0%': { transform: 'translateY(0)' },\n\t\t\t'100%': { transform: 'translateY(-20%)' },\n\t\t},\n\t\tslideOutBottomSmall: {\n\t\t\t'0%': { transform: 'translateY(0)' },\n\t\t\t'100%': { transform: 'translateY(20%)' },\n\t\t},\n\t},\n};\n","export default {\n\tinherit: 'inherit',\n\ttransparent: 'transparent',\n\tcurrent: 'currentColor',\n\tblack: '#000',\n\n\twhite: {\n\t\t800: '#E4E3E3',\n\t\t700: '#F2F2F2',\n\t\t600: '#FAFAFA',\n\t\tDEFAULT: '#FFFFFF',\n\t\t500: '#FFFFFF',\n\t},\n\t'negative-red': {\n\t\t800: '#8D1010',\n\t\tDEFAULT: '#E61E1E',\n\t\t500: '#E61E1E',\n\t\t100: '#FFDDDD',\n\t\t50: '#FDEDED',\n\t},\n\t'positive-green': {\n\t\t800: '#2F6407',\n\t\tDEFAULT: '#5CC30E',\n\t\t500: '#5CC30E',\n\t\t100: '#5CC30E',\n\t\t50: '#EAFDE3',\n\t},\n\tamber: {\n\t\t800: '#944D0B',\n\t\tDEFAULT: '#E19F23',\n\t\t500: '#E19F23',\n\t\t100: '#FFF6C2',\n\t\t50: '#FFFAE0',\n\t},\n\n\t'human-beige': {\n\t\t800: '#DEC9B7',\n\t\t700: '#E7D8CB',\n\t\t600: '#EDE0D5',\n\t\tDEFAULT: '#EEE4DB',\n\t\t500: '#EEE4DB',\n\t\t400: '#F1E9E2',\n\t\t300: '#F5EFE9',\n\t\t200: '#F8F4F1',\n\t\t100: '#FCFAF8',\n\t\t50: '#FDFCFB',\n\t},\n\t'off-white': {\n\t\t800: '#D5D0C3',\n\t\t700: '#DEDBD5',\n\t\t600: '#ECEAE5',\n\t\tDEFAULT: '#F3F1ED',\n\t\t500: '#F3F1ED',\n\t\t400: '#F5F4F1',\n\t\t300: '#F8F7F4',\n\t\t200: '#FAF9F8',\n\t\t100: '#FDFCFB',\n\t\t50: '#FEFEFD',\n\t},\n\n\t'supportive-lilac': {\n\t\t900: '#5009B3',\n\t\t800: '#BD8CFF',\n\t\t700: '#C89FFF',\n\t\t600: '#CCA8FC',\n\t\tDEFAULT: '#D1AEFF',\n\t\t500: '#D1AEFF',\n\t\t400: '#DABEFF',\n\t\t300: '#E3CEFF',\n\t\t200: '#EDDFFF',\n\t\t100: '#F6EFFF',\n\t\t50: '#FAF7FF',\n\t},\n\t'growth-green': {\n\t\t800: '#81EF2B',\n\t\t700: '#7FF424',\n\t\t600: '#8CFC35',\n\t\tDEFAULT: '#A0FF56',\n\t\t500: '#A0FF56',\n\t\t400: '#B3FF78',\n\t\t300: '#C6FF9A',\n\t\t200: '#D9FFBB',\n\t\t100: '#ECFFDD',\n\t\t50: '#F5FFEE',\n\t},\n\t'tech-breeze': {\n\t\t800: '#3DEACC',\n\t\t700: '#66F2DA',\n\t\t600: '#83FAE6',\n\t\tDEFAULT: '#94FFED',\n\t\t500: '#94FFED',\n\t\t400: '#A9FFF1',\n\t\t300: '#BFFFF4',\n\t\t200: '#D4FFF8',\n\t\t100: '#EAFFFB',\n\t\t50: '#F4FFFD',\n\t},\n\n\tteal: {\n\t\t800: '#02665C',\n\t\t700: '#047367',\n\t\t600: '#047F72',\n\t\tDEFAULT: '#088879',\n\t\t500: '#088879',\n\t\t400: '#39A094',\n\t\t300: '#6BB8AF',\n\t\t200: '#9CCFC9',\n\t\t100: '#CEE7E4',\n\t\t50: '#E6F3F2',\n\t},\n\t'dark-teal': {\n\t\t800: '#012521',\n\t\t700: '#003832',\n\t\t600: '#004840',\n\t\tDEFAULT: '#005148',\n\t\t500: '#005148',\n\t\t400: '#33746D',\n\t\t300: '#669791',\n\t\t200: '#99B9B6',\n\t\t100: '#CCDCDA',\n\t\t50: '#E5EEED',\n\t},\n\t'black-teal': {\n\t\t800: '#000202',\n\t\t700: '#000D0B',\n\t\t600: '#011815',\n\t\tDEFAULT: '#032A24',\n\t\t500: '#032A24',\n\t\t400: '#355550',\n\t\t300: '#687F7C',\n\t\t200: '#9AAAA7',\n\t\t100: '#CDD4D3',\n\t\t50: '#E6EAE9',\n\t},\n\n\t// OLD, REMOVE THIS\n\tindigo: {\n\t\tdark: '#2C4BA9',\n\t\tDEFAULT: '#528AFA',\n\t\tlight: '#F1F6FF',\n\t},\n\tsky: {\n\t\tdark: '#30C2C9',\n\t\tDEFAULT: '#1EDAE3',\n\t\tlight: '#F5FEFF',\n\t\tvague: '#BBF4F6',\n\t},\n\tmystic: {\n\t\tblank: '#FFF',\n\t\tdark: '#DAE6F0',\n\t\tDEFAULT: '#F7FAFC',\n\t\tlight: '#FCFDFE',\n\t\tmedium: '#E3ECF3',\n\t},\n\tredberry: {\n\t\tdark: '#BD0F1E',\n\t\tDEFAULT: '#E63241',\n\t\tlight: '#FFE8EA',\n\t\tmedium: '#FF7D88',\n\t},\n\tstorm: {\n\t\tdark: '#272838',\n\t\tDEFAULT: '#51536B',\n\t\tlight: '#B0B2CB',\n\t\tmedium: '#80829E',\n\t\tvague: '#989AB7',\n\t},\n\tnegative: {\n\t\tdark: '#8A0F1D',\n\t\tDEFAULT: '#B91E28',\n\t\tlight: '#FFCCD3',\n\t},\n\tpositive: {\n\t\tdark: '#1DA360',\n\t\tDEFAULT: '#28D17C',\n\t\tlight: '#E5FFF2',\n\t},\n\tunbiased: {\n\t\tdark: '#FFA231',\n\t\tDEFAULT: '#FFC72D',\n\t\tlight: '#FFF6DC',\n\t},\n};\n","export default {\n\theight: {\n\t\tunset: 'unset',\n\t\tinherit: 'inherit',\n\t},\n};\n","const rotateNumbers = {};\n\nfor (let i = 1; i < 360; i++) {\n\trotateNumbers[`${i}`] = `${i}deg`;\n\trotateNumbers[`-${i}`] = `-${i}deg`;\n}\n\nexport default rotateNumbers;\n","export default {\n\tflip: '-1',\n};\n","export default {\n\t'1': ['0 1px 1px rgba(0, 2, 2, 0.08)'],\n\t'2': [\n\t\t'0 1px 1px rgba(0, 2, 2, 0.04)',\n\t\t'0 2px 2px rgba(0, 2, 2, 0.04)',\n\t\t'0 4px 4px rgba(0, 2, 2, 0.04)',\n\t],\n\t'3': [\n\t\t'0 1px 1px rgba(0, 2, 2, 0.08)',\n\t\t'0 2px 2px rgba(0, 2, 2, 0.08)',\n\t\t'0 4px 4px rgba(0, 2, 2, 0.08)',\n\t],\n\t'supportive-lilac': '0px 1px 1px 0px rgba(189, 140, 255, 0.20)',\n\tinherit: 'inherit',\n\ttransparent: 'transparent',\n};\n","export default {\n\t// default variant layout\n\t'content-mobile-x': '1rem',\n\t'content-mobile-y': '1.5rem',\n\n\t'content-desktop-x': '2rem',\n\t'content-desktop-y': '2rem',\n\n\t18: '4.5rem',\n};\n","export default {\n\tfontSize: {\n\t\txxs: ['0.5rem', '1rem'] as [fontsize: string, lineHeight: string],\n\t\t'3xl': ['2rem', '2.5rem'] as [fontsize: string, lineHeight: string],\n\t\t'4xl': ['2.5rem', '3rem'] as [fontsize: string, lineHeight: string],\n\t},\n\tlineHeight: {\n\t\txs: '1rem',\n\t\tsm: '1.5rem',\n\t\tbase: '1.5rem',\n\t\tlg: '1.75rem',\n\t\txl: '1.75rem',\n\t\t'2xl': '2rem',\n\t\t'3xl': '2.5rem',\n\t\t'4xl': '3rem',\n\t},\n};\n","export default {\n\twidth: {\n\t\tunset: 'unset',\n\t\tinherit: 'inherit',\n\n\t\t// default variant\n\t\t'content-mobile': '100%',\n\t\t'content-1280': '62rem',\n\t\t'content-1440': '71rem',\n\t\t'content-1536': '77rem',\n\t\t'content-1680': '83rem',\n\n\t\t// login variant\n\t\t'sidebar-desktop-login': '100%',\n\t\t'content-desktop-login': '21rem',\n\t},\n};\n","export default {\n\t'floating-menu': '190',\n\tdropdown: '200',\n\n\t'navbar-topbar': '280',\n\t'navbar-backdrop': '290',\n\tnavbar: '300',\n\n\tbackdrop: '490',\n\n\tdrawer: '500',\n\t'drawer-header': '501',\n\n\tmodal: '600',\n\n\ttooltip: '601',\n\n\ttoast: '700',\n};\n","const hover = ({ addVariant }) => {\n\t// Hover media queries\n\taddVariant('has-hover', '@media (hover: hover)');\n\taddVariant('no-hover', '@media (hover: none)');\n\t// Applied on hover if supported, never applied otherwise\n\taddVariant('hover-never', '@media (hover: hover) { &:hover }');\n\taddVariant(\n\t\t'group-hover-never',\n\t\t'@media (hover: hover) { :merge(.group):hover & }'\n\t);\n\taddVariant(\n\t\t'peer-hover-never',\n\t\t'@media (hover: hover) { :merge(.peer):hover & }'\n\t);\n\t// Applied on hover if supported, always applied otherwise\n\taddVariant('hover-always', [\n\t\t'@media (hover: hover) { &:hover }',\n\t\t'@media (hover: none)',\n\t]);\n\taddVariant('group-hover-always', [\n\t\t'@media (hover: hover) { :merge(.group):hover & }',\n\t\t'@media (hover: none)',\n\t]);\n\taddVariant('peer-hover-always', [\n\t\t'@media (hover: hover) { :merge(.peer):hover & }',\n\t\t'@media (hover: none)',\n\t]);\n};\n\nexport default hover;\n","const safeArea = ({ addUtilities }) => {\n\tconst utilities = {\n\t\t'.m-safe': {\n\t\t\tmarginTop: 'env(safe-area-inset-top)',\n\t\t\tmarginRight: 'env(safe-area-inset-right)',\n\t\t\tmarginBottom: 'env(safe-area-inset-bottom)',\n\t\t\tmarginLeft: 'env(safe-area-inset-left)',\n\t\t},\n\t\t'.mx-safe': {\n\t\t\tmarginRight: 'env(safe-area-inset-right)',\n\t\t\tmarginLeft: 'env(safe-area-inset-left)',\n\t\t},\n\t\t'.my-safe': {\n\t\t\tmarginTop: 'env(safe-area-inset-top)',\n\t\t\tmarginBottom: 'env(safe-area-inset-bottom)',\n\t\t},\n\t\t'.mt-safe': {\n\t\t\tmarginTop: 'env(safe-area-inset-top)',\n\t\t},\n\t\t'.mr-safe': {\n\t\t\tmarginRight: 'env(safe-area-inset-right)',\n\t\t},\n\t\t'.mb-safe': {\n\t\t\tmarginBottom: 'env(safe-area-inset-bottom)',\n\t\t},\n\t\t'.ml-safe': {\n\t\t\tmarginLeft: 'env(safe-area-inset-left)',\n\t\t},\n\t\t'.p-safe': {\n\t\t\tpaddingTop: 'env(safe-area-inset-top)',\n\t\t\tpaddingRight: 'env(safe-area-inset-right)',\n\t\t\tpaddingBottom: 'env(safe-area-inset-bottom)',\n\t\t\tpaddingLeft: 'env(safe-area-inset-left)',\n\t\t},\n\t\t'.px-safe': {\n\t\t\tpaddingRight: 'env(safe-area-inset-right)',\n\t\t\tpaddingLeft: 'env(safe-area-inset-left)',\n\t\t},\n\t\t'.py-safe': {\n\t\t\tpaddingTop: 'env(safe-area-inset-top)',\n\t\t\tpaddingBottom: 'env(safe-area-inset-bottom)',\n\t\t},\n\t\t'.pt-safe': {\n\t\t\tpaddingTop: 'env(safe-area-inset-top)',\n\t\t},\n\t\t'.pr-safe': {\n\t\t\tpaddingRight: 'env(safe-area-inset-right)',\n\t\t},\n\t\t'.pb-safe': {\n\t\t\tpaddingBottom: 'env(safe-area-inset-bottom)',\n\t\t},\n\t\t'.pl-safe': {\n\t\t\tpaddingLeft: 'env(safe-area-inset-left)',\n\t\t},\n\t\t'.min-h-screen': {\n\t\t\tminHeight: '100vh',\n\t\t},\n\t\t'.min-h-screen-safe': {\n\t\t\tminHeight:\n\t\t\t\t'calc(100vh - (env(safe-area-inset-top) + env(safe-area-inset-bottom)))',\n\t\t},\n\t\t'.max-h-screen': {\n\t\t\tmaxHeight: '100vh',\n\t\t},\n\t\t'.max-h-screen-safe': {\n\t\t\tmaxHeight:\n\t\t\t\t'calc(100vh - (env(safe-area-inset-top) + env(safe-area-inset-bottom)))',\n\t\t},\n\t\t'.h-screen-safe': {\n\t\t\theight: 'calc(100vh - (env(safe-area-inset-top) + env(safe-area-inset-bottom)))',\n\t\t},\n\t\t'.min-w-screen': {\n\t\t\tminWidth: '100vw',\n\t\t},\n\t\t'.min-w-screen-safe': {\n\t\t\tminWidth:\n\t\t\t\t'calc(100vw - (env(safe-area-inset-left) + env(safe-area-inset-right)))',\n\t\t},\n\t\t'.max-w-screen': {\n\t\t\tmaxWidth: '100vw',\n\t\t},\n\t\t'.max-w-screen-safe': {\n\t\t\tmaxWidth:\n\t\t\t\t'calc(100vw - (env(safe-area-inset-left) + env(safe-area-inset-right)))',\n\t\t},\n\t\t'.w-screen-safe': {\n\t\t\twidth: 'calc(100vw - (env(safe-area-inset-left) + env(safe-area-inset-right)))',\n\t\t},\n\t};\n\n\taddUtilities(utilities);\n};\n\n// eslint-disable-next-line unicorn/prefer-module\nexport default safeArea;\n","import plugin from 'tailwindcss/plugin';\n\nimport animation from './theme/animation';\nimport colors from './theme/colors';\nimport height from './theme/height';\nimport rotate from './theme/rotate';\nimport scale from './theme/scale';\nimport screens from './theme/screens';\nimport shadows from './theme/shadows';\nimport spacing from './theme/spacing';\nimport typeograhpy from './theme/typography';\nimport width from './theme/width';\nimport zIndex from './theme/z-index';\n\nimport hover from './plugins/hover';\nimport safeArea from './plugins/safe-area';\n\nexport const paperless = plugin(\n\tpluginAPI => {\n\t\tsafeArea(pluginAPI);\n\t\thover(pluginAPI);\n\t},\n\t{\n\t\ttheme: {\n\t\t\tcolors,\n\t\t\tboxShadow: shadows,\n\t\t\tdropShadow: shadows,\n\t\t\textend: {\n\t\t\t\tkeyframs: animation.keyframes,\n\t\t\t\tanimation: animation.animation,\n\t\t\t\tfontFamily: {\n\t\t\t\t\tgeist: ['Geist', 'serif'],\n\t\t\t\t\tambit: ['Ambit', 'sans-serif'],\n\t\t\t\t},\n\t\t\t\tscale,\n\t\t\t\trotate,\n\t\t\t\tfontSize: typeograhpy.fontSize,\n\t\t\t\tlineHeight: typeograhpy.lineHeight,\n\t\t\t\tzIndex,\n\t\t\t\tscreens,\n\t\t\t\twidth: width.width,\n\t\t\t\theight: height.height,\n\t\t\t\tspacing,\n\t\t\t\taspectRatio: {\n\t\t\t\t\tbranding: '23/24',\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\tplugins: [\n\t\t\trequire('@tailwindcss/aspect-ratio'),\n\t\t\trequire('tailwindcss-animate'),\n\t\t\trequire('tailwind-scrollbar-hide'),\n\t\t\tsafeArea,\n\t\t\thover,\n\t\t],\n\t}\n);\n"],"version":3}
|