@paperless/core 0.0.3-alpha.4 → 0.1.0-alpha.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 +75 -0
- package/README.md +14 -10
- package/dist/assets/icons/arrow.svg +2 -2
- package/dist/assets/icons/attachment.svg +2 -2
- package/dist/assets/icons/bread.svg +2 -2
- package/dist/assets/icons/calendar.svg +2 -2
- package/dist/assets/icons/car.svg +2 -2
- package/dist/assets/icons/checkmark.svg +2 -2
- package/dist/assets/icons/chevron.svg +2 -2
- package/dist/assets/icons/clock.svg +2 -2
- package/dist/assets/icons/cogs.svg +2 -2
- package/dist/assets/icons/comment.svg +2 -2
- package/dist/assets/icons/document.svg +2 -2
- package/dist/assets/icons/download.svg +2 -2
- package/dist/assets/icons/envelope.svg +2 -2
- package/dist/assets/icons/explanation.svg +2 -2
- package/dist/assets/icons/eye.svg +2 -2
- package/dist/assets/icons/filter.svg +2 -2
- package/dist/assets/icons/grid.svg +2 -2
- package/dist/assets/icons/headset.svg +2 -2
- package/dist/assets/icons/list.svg +2 -2
- package/dist/assets/icons/location.svg +2 -2
- package/dist/assets/icons/megaphone.svg +2 -2
- package/dist/assets/icons/minus.svg +2 -2
- package/dist/assets/icons/negative.svg +2 -2
- package/dist/assets/icons/pagination.svg +2 -2
- package/dist/assets/icons/payment.svg +2 -2
- package/dist/assets/icons/pencil.svg +2 -2
- package/dist/assets/icons/person.svg +2 -2
- package/dist/assets/icons/plus.svg +2 -2
- package/dist/assets/icons/question.svg +2 -2
- package/dist/assets/icons/receipt.svg +2 -2
- package/dist/assets/icons/report.svg +2 -2
- package/dist/assets/icons/search.svg +2 -2
- package/dist/assets/icons/settings.svg +2 -2
- package/dist/assets/icons/sick.svg +2 -2
- package/dist/assets/icons/tachometer.svg +2 -2
- package/dist/assets/icons/tool.svg +2 -2
- package/dist/assets/icons/trash.svg +2 -2
- package/dist/assets/icons/turn.svg +2 -2
- package/dist/assets/icons/upload.svg +2 -2
- package/dist/assets/icons/warning.svg +2 -2
- package/dist/build/p-1d13a9d2.entry.js +1 -0
- package/dist/build/p-208c1f28.entry.js +1 -0
- package/dist/build/p-98d07776.js +2 -0
- package/dist/build/p-bbd1d3df.entry.js +1 -0
- package/dist/build/p-cd525dcc.entry.js +1 -0
- package/dist/build/p-feec8ec1.entry.js +1 -0
- package/dist/build/paperless.css +21 -10
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/{index-e3e940d8.js → index-5b30cb95.js} +158 -7
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/p-button.cjs.entry.js +4 -4
- package/dist/cjs/p-icon.cjs.entry.js +802 -0
- package/dist/cjs/p-illustration.cjs.entry.js +1426 -0
- package/dist/cjs/p-loader.cjs.entry.js +57 -0
- package/dist/cjs/p-tooltip.cjs.entry.js +1873 -0
- package/dist/cjs/paperless.cjs.js +2 -2
- package/dist/collection/assets/icons/arrow.svg +2 -2
- package/dist/collection/assets/icons/attachment.svg +2 -2
- package/dist/collection/assets/icons/bread.svg +2 -2
- package/dist/collection/assets/icons/calendar.svg +2 -2
- package/dist/collection/assets/icons/car.svg +2 -2
- package/dist/collection/assets/icons/checkmark.svg +2 -2
- package/dist/collection/assets/icons/chevron.svg +2 -2
- package/dist/collection/assets/icons/clock.svg +2 -2
- package/dist/collection/assets/icons/cogs.svg +2 -2
- package/dist/collection/assets/icons/comment.svg +2 -2
- package/dist/collection/assets/icons/document.svg +2 -2
- package/dist/collection/assets/icons/download.svg +2 -2
- package/dist/collection/assets/icons/envelope.svg +2 -2
- package/dist/collection/assets/icons/explanation.svg +2 -2
- package/dist/collection/assets/icons/eye.svg +2 -2
- package/dist/collection/assets/icons/filter.svg +2 -2
- package/dist/collection/assets/icons/grid.svg +2 -2
- package/dist/collection/assets/icons/headset.svg +2 -2
- package/dist/collection/assets/icons/list.svg +2 -2
- package/dist/collection/assets/icons/location.svg +2 -2
- package/dist/collection/assets/icons/megaphone.svg +2 -2
- package/dist/collection/assets/icons/minus.svg +2 -2
- package/dist/collection/assets/icons/negative.svg +2 -2
- package/dist/collection/assets/icons/pagination.svg +2 -2
- package/dist/collection/assets/icons/payment.svg +2 -2
- package/dist/collection/assets/icons/pencil.svg +2 -2
- package/dist/collection/assets/icons/person.svg +2 -2
- package/dist/collection/assets/icons/plus.svg +2 -2
- package/dist/collection/assets/icons/question.svg +2 -2
- package/dist/collection/assets/icons/receipt.svg +2 -2
- package/dist/collection/assets/icons/report.svg +2 -2
- package/dist/collection/assets/icons/search.svg +2 -2
- package/dist/collection/assets/icons/settings.svg +2 -2
- package/dist/collection/assets/icons/sick.svg +2 -2
- package/dist/collection/assets/icons/tachometer.svg +2 -2
- package/dist/collection/assets/icons/tool.svg +2 -2
- package/dist/collection/assets/icons/trash.svg +2 -2
- package/dist/collection/assets/icons/turn.svg +2 -2
- package/dist/collection/assets/icons/upload.svg +2 -2
- package/dist/collection/assets/icons/warning.svg +2 -2
- package/dist/collection/collection-manifest.json +5 -1
- package/dist/collection/components/{button → atoms/button}/button.component.css +0 -0
- package/dist/collection/components/{button → atoms/button}/button.component.js +6 -5
- package/dist/collection/components/atoms/icon/icon.component.js +112 -0
- package/dist/collection/components/atoms/illustration/illustration.component.js +39 -0
- package/dist/collection/components/atoms/loader/loader.component.css +26 -0
- package/dist/collection/components/atoms/loader/loader.component.js +153 -0
- package/dist/collection/components/atoms/tooltip/tooltip.component.css +34 -0
- package/dist/collection/components/atoms/tooltip/tooltip.component.js +174 -0
- package/dist/collection/tailwind/border-radius.js +1 -0
- package/dist/collection/tailwind/grid.js +6 -0
- package/dist/collection/tailwind/rotate.js +8 -0
- package/dist/collection/tailwind/scale.js +3 -0
- package/dist/collection/tailwind.config.js +9 -0
- package/dist/collection/utils/icons.js +82 -0
- package/dist/collection/utils/illustrations.js +18 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.js +4 -0
- package/dist/components/p-button.js +4 -4
- package/dist/components/p-icon.d.ts +11 -0
- package/dist/components/p-icon.js +820 -0
- package/dist/components/p-illustration.d.ts +11 -0
- package/dist/components/p-illustration.js +1441 -0
- package/dist/components/p-loader.d.ts +11 -0
- package/dist/components/p-loader.js +77 -0
- package/dist/components/p-tooltip.d.ts +11 -0
- package/dist/components/p-tooltip.js +1891 -0
- package/dist/esm/{index-100a5ae6.js → index-111a6307.js} +157 -8
- package/dist/esm/loader.js +2 -2
- package/dist/esm/p-button.entry.js +4 -4
- package/dist/esm/p-icon.entry.js +798 -0
- package/dist/esm/p-illustration.entry.js +1422 -0
- package/dist/esm/p-loader.entry.js +53 -0
- package/dist/esm/p-tooltip.entry.js +1869 -0
- package/dist/esm/paperless.js +2 -2
- package/dist/index.html +1 -1
- package/dist/paperless/p-1d13a9d2.entry.js +1 -0
- package/dist/paperless/p-208c1f28.entry.js +1 -0
- package/dist/paperless/p-98d07776.js +2 -0
- package/dist/paperless/p-bbd1d3df.entry.js +1 -0
- package/dist/paperless/p-cd525dcc.entry.js +1 -0
- package/dist/paperless/p-feec8ec1.entry.js +1 -0
- package/dist/paperless/paperless.css +26928 -13
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/sw.js +136 -23
- package/dist/tailwind.config.js +9 -0
- package/dist/types/components/{button → atoms/button}/button.component.d.ts +1 -1
- package/dist/types/components/atoms/icon/icon.component.d.ts +23 -0
- package/dist/types/components/atoms/illustration/illustration.component.d.ts +9 -0
- package/dist/types/components/atoms/loader/loader.component.d.ts +30 -0
- package/dist/types/components/atoms/tooltip/tooltip.component.d.ts +28 -0
- package/dist/types/components.d.ts +162 -2
- package/dist/types/utils/icons.d.ts +43 -0
- package/dist/types/utils/illustrations.d.ts +11 -0
- package/package.json +8 -3
- package/dist/build/p-54459ae1.js +0 -2
- package/dist/build/p-c66e9743.entry.js +0 -1
- package/dist/paperless/p-54459ae1.js +0 -2
- package/dist/paperless/p-c66e9743.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as
|
|
1
|
+
import{p as o,b as e}from"./p-98d07776.js";(()=>{const e=import.meta.url,t={};return""!==e&&(t.resourcesUrl=new URL(".",e).href),o(t)})().then((o=>e([["p-1d13a9d2",[[1,"p-button",{variant:[1]}]]],["p-cd525dcc",[[0,"p-icon",{variant:[1],size:[1],rotate:[2],flip:[1]}]]],["p-feec8ec1",[[0,"p-illustration",{variant:[1]}]]],["p-208c1f28",[[1,"p-loader",{show:[4],variant:[1],color:[1],modalTitle:[1,"modal-title"],modalDescription:[1,"modal-description"]}]]],["p-bbd1d3df",[[1,"p-tooltip",{content:[8],placement:[1],forceShow:[4,"force-show"]},[[1,"mouseenter","_show"],[0,"focus","_show"],[1,"mouseleave","_hide"],[0,"blur","_hide"]]]]]],o)));
|
package/dist/sw.js
CHANGED
|
@@ -27,21 +27,33 @@ self.addEventListener('message', (event) => {
|
|
|
27
27
|
self.__precacheManifest = [
|
|
28
28
|
{
|
|
29
29
|
"url": "index.html",
|
|
30
|
-
"revision": "
|
|
30
|
+
"revision": "f52c280ae1726831410c8a4b4feccde6"
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
"url": "build/index.esm.js",
|
|
34
34
|
"revision": "d41d8cd98f00b204e9800998ecf8427e"
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
|
-
"url": "build/p-
|
|
37
|
+
"url": "build/p-1d13a9d2.entry.js"
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
|
-
"url": "build/p-
|
|
40
|
+
"url": "build/p-208c1f28.entry.js"
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
|
-
"url": "
|
|
44
|
-
|
|
43
|
+
"url": "build/p-98d07776.js"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"url": "build/p-bbd1d3df.entry.js"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"url": "build/p-cd525dcc.entry.js"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"url": "build/p-feec8ec1.entry.js"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"url": "cjs/index-5b30cb95.js",
|
|
56
|
+
"revision": "7ba7c31438d378060eb1b771f75988bf"
|
|
45
57
|
},
|
|
46
58
|
{
|
|
47
59
|
"url": "cjs/index.cjs.js",
|
|
@@ -49,27 +61,66 @@ self.__precacheManifest = [
|
|
|
49
61
|
},
|
|
50
62
|
{
|
|
51
63
|
"url": "cjs/loader.cjs.js",
|
|
52
|
-
"revision": "
|
|
64
|
+
"revision": "b41554280ff9f63ec8d3ef57c30d68ab"
|
|
53
65
|
},
|
|
54
66
|
{
|
|
55
67
|
"url": "cjs/p-button.cjs.entry.js",
|
|
56
|
-
"revision": "
|
|
68
|
+
"revision": "89d0daad45540c3fa136b9230f8d97ee"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"url": "cjs/p-icon.cjs.entry.js",
|
|
72
|
+
"revision": "36d70982d2f7120500a00f5dc889a47d"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"url": "cjs/p-illustration.cjs.entry.js"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"url": "cjs/p-loader.cjs.entry.js",
|
|
79
|
+
"revision": "079ebca588bfbbd2d091a28cc007fdac"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"url": "cjs/p-tooltip.cjs.entry.js",
|
|
83
|
+
"revision": "a4f22b15cff0bbb33cb288af20623fab"
|
|
57
84
|
},
|
|
58
85
|
{
|
|
59
86
|
"url": "cjs/paperless.cjs.js",
|
|
60
|
-
"revision": "
|
|
87
|
+
"revision": "4001e5612b97ae56248ed4f875fc53ed"
|
|
61
88
|
},
|
|
62
89
|
{
|
|
63
90
|
"url": "collection/collection-manifest.json",
|
|
64
|
-
"revision": "
|
|
91
|
+
"revision": "69abfd94310e01f720a7c81a6c0f6c3e"
|
|
65
92
|
},
|
|
66
93
|
{
|
|
67
|
-
"url": "collection/components/button/button.component.css",
|
|
94
|
+
"url": "collection/components/atoms/button/button.component.css",
|
|
68
95
|
"revision": "466c53f1a00432686bc94302851afa4c"
|
|
69
96
|
},
|
|
70
97
|
{
|
|
71
|
-
"url": "collection/components/button/button.component.js",
|
|
72
|
-
"revision": "
|
|
98
|
+
"url": "collection/components/atoms/button/button.component.js",
|
|
99
|
+
"revision": "bb87cf170753e7cc9083f9f172000469"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"url": "collection/components/atoms/icon/icon.component.js",
|
|
103
|
+
"revision": "9cc3323a777fb568699d10f3c1008618"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"url": "collection/components/atoms/illustration/illustration.component.js",
|
|
107
|
+
"revision": "c7d9878fa926e60baca9005710323683"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"url": "collection/components/atoms/loader/loader.component.css",
|
|
111
|
+
"revision": "aa556581969d7c61d430a0f022bb02a1"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"url": "collection/components/atoms/loader/loader.component.js",
|
|
115
|
+
"revision": "d1f630e8255de08b90c5697347183cb4"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"url": "collection/components/atoms/tooltip/tooltip.component.css",
|
|
119
|
+
"revision": "f80a0a5022b3d0dd068cedbba1c2e707"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"url": "collection/components/atoms/tooltip/tooltip.component.js",
|
|
123
|
+
"revision": "a39fb80cbbd78315e90da33db405551c"
|
|
73
124
|
},
|
|
74
125
|
{
|
|
75
126
|
"url": "collection/index.js",
|
|
@@ -77,35 +128,70 @@ self.__precacheManifest = [
|
|
|
77
128
|
},
|
|
78
129
|
{
|
|
79
130
|
"url": "collection/tailwind.config.js",
|
|
80
|
-
"revision": "
|
|
131
|
+
"revision": "b6809e92405d6e378aa1798a0af3dbee"
|
|
81
132
|
},
|
|
82
133
|
{
|
|
83
134
|
"url": "collection/tailwind/border-radius.js",
|
|
84
|
-
"revision": "
|
|
135
|
+
"revision": "d2d84c4e111eb34fb60b52e7d032f3fe"
|
|
85
136
|
},
|
|
86
137
|
{
|
|
87
138
|
"url": "collection/tailwind/colors.js",
|
|
88
139
|
"revision": "6a39b234fcf655ec34be7e367b0b3128"
|
|
89
140
|
},
|
|
141
|
+
{
|
|
142
|
+
"url": "collection/tailwind/grid.js",
|
|
143
|
+
"revision": "c10b15ec73ad6b89c0f24b667886b357"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"url": "collection/tailwind/rotate.js",
|
|
147
|
+
"revision": "6e10d60cb01221e64cf027d729886b6d"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"url": "collection/tailwind/scale.js",
|
|
151
|
+
"revision": "a839cb541613e836dc315f26e3e9a396"
|
|
152
|
+
},
|
|
90
153
|
{
|
|
91
154
|
"url": "collection/tailwind/shadows.js",
|
|
92
155
|
"revision": "90a3cc6f1c4f6714180ddbb3a0e40a53"
|
|
93
156
|
},
|
|
157
|
+
{
|
|
158
|
+
"url": "collection/utils/icons.js",
|
|
159
|
+
"revision": "637212fd72da5a3b90461d00940712b5"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"url": "collection/utils/illustrations.js",
|
|
163
|
+
"revision": "743b24c925f2eedd1e005aa87dc5987b"
|
|
164
|
+
},
|
|
94
165
|
{
|
|
95
166
|
"url": "collection/utils/utils.js",
|
|
96
167
|
"revision": "4beb8ca8a76230f44db73b6109a0043d"
|
|
97
168
|
},
|
|
98
169
|
{
|
|
99
170
|
"url": "components/index.js",
|
|
100
|
-
"revision": "
|
|
171
|
+
"revision": "575ad0ea8d16b9dffb1d08e3a2f3a69c"
|
|
101
172
|
},
|
|
102
173
|
{
|
|
103
174
|
"url": "components/p-button.js",
|
|
104
|
-
"revision": "
|
|
175
|
+
"revision": "b9460d2d8453085eab3b07cbf036e1f5"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"url": "components/p-icon.js",
|
|
179
|
+
"revision": "429f58286b184d0c9267815d9f864db4"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"url": "components/p-illustration.js"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"url": "components/p-loader.js",
|
|
186
|
+
"revision": "c415ebb68f386df71de236a1a585bdfb"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"url": "components/p-tooltip.js",
|
|
190
|
+
"revision": "d1a4deb2abca1de0f64e36a280cc1edf"
|
|
105
191
|
},
|
|
106
192
|
{
|
|
107
|
-
"url": "esm/index-
|
|
108
|
-
"revision": "
|
|
193
|
+
"url": "esm/index-111a6307.js",
|
|
194
|
+
"revision": "b7508d889fc18c354aa41aac5b12b502"
|
|
109
195
|
},
|
|
110
196
|
{
|
|
111
197
|
"url": "esm/index.js",
|
|
@@ -113,11 +199,26 @@ self.__precacheManifest = [
|
|
|
113
199
|
},
|
|
114
200
|
{
|
|
115
201
|
"url": "esm/loader.js",
|
|
116
|
-
"revision": "
|
|
202
|
+
"revision": "88de47da36e696233ed5f97d707143e5"
|
|
117
203
|
},
|
|
118
204
|
{
|
|
119
205
|
"url": "esm/p-button.entry.js",
|
|
120
|
-
"revision": "
|
|
206
|
+
"revision": "1d2b831c7958eb09b19f4496140de869"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"url": "esm/p-icon.entry.js",
|
|
210
|
+
"revision": "3d4920f2ed31ad4c5ebaf7e8b2a7c089"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"url": "esm/p-illustration.entry.js"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"url": "esm/p-loader.entry.js",
|
|
217
|
+
"revision": "06efa1f67f5dcd758ee0f2fd7afcb31f"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"url": "esm/p-tooltip.entry.js",
|
|
221
|
+
"revision": "5b5355acf833cb86ba561e2edcea1dbd"
|
|
121
222
|
},
|
|
122
223
|
{
|
|
123
224
|
"url": "esm/polyfills/core-js.js",
|
|
@@ -156,14 +257,26 @@ self.__precacheManifest = [
|
|
|
156
257
|
"revision": "d41d8cd98f00b204e9800998ecf8427e"
|
|
157
258
|
},
|
|
158
259
|
{
|
|
159
|
-
"url": "paperless/p-
|
|
260
|
+
"url": "paperless/p-1d13a9d2.entry.js"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"url": "paperless/p-208c1f28.entry.js"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"url": "paperless/p-98d07776.js"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"url": "paperless/p-bbd1d3df.entry.js"
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"url": "paperless/p-cd525dcc.entry.js"
|
|
160
273
|
},
|
|
161
274
|
{
|
|
162
|
-
"url": "paperless/p-
|
|
275
|
+
"url": "paperless/p-feec8ec1.entry.js"
|
|
163
276
|
},
|
|
164
277
|
{
|
|
165
278
|
"url": "tailwind.config.js",
|
|
166
|
-
"revision": "
|
|
279
|
+
"revision": "b6809e92405d6e378aa1798a0af3dbee"
|
|
167
280
|
}
|
|
168
281
|
].concat(self.__precacheManifest || []);
|
|
169
282
|
workbox.precaching.precacheAndRoute(self.__precacheManifest, {});
|
package/dist/tailwind.config.js
CHANGED
|
@@ -1,13 +1,22 @@
|
|
|
1
1
|
const colors = require('./tailwind/colors');
|
|
2
2
|
const shadows = require('./tailwind/shadows');
|
|
3
3
|
const borderRadius = require('./tailwind/border-radius');
|
|
4
|
+
const grid = require('./tailwind/grid');
|
|
5
|
+
const scale = require('./tailwind/scale');
|
|
6
|
+
const rotate = require('./tailwind/rotate');
|
|
4
7
|
|
|
5
8
|
module.exports = {
|
|
9
|
+
important: true,
|
|
6
10
|
theme: {
|
|
7
11
|
colors,
|
|
8
12
|
boxShadow: shadows,
|
|
9
13
|
dropShadow: shadows,
|
|
10
14
|
borderRadius,
|
|
15
|
+
extend: {
|
|
16
|
+
grid,
|
|
17
|
+
scale,
|
|
18
|
+
rotate,
|
|
19
|
+
},
|
|
11
20
|
},
|
|
12
21
|
variants: {},
|
|
13
22
|
plugins: [require('@tailwindcss/aspect-ratio')],
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import icons from '../../../utils/icons';
|
|
2
|
+
export declare type IconVariant = keyof typeof icons;
|
|
3
|
+
export declare type IconFlipOptions = 'horizontal' | 'vertical';
|
|
4
|
+
export declare class Icon {
|
|
5
|
+
/**
|
|
6
|
+
* The icon the be displayed
|
|
7
|
+
*/
|
|
8
|
+
variant: IconVariant;
|
|
9
|
+
/**
|
|
10
|
+
* The size of the icon, using tailwind sizes
|
|
11
|
+
*/
|
|
12
|
+
size: string;
|
|
13
|
+
/**
|
|
14
|
+
* Wether to rotate the icon x degrees
|
|
15
|
+
*/
|
|
16
|
+
rotate: number;
|
|
17
|
+
/**
|
|
18
|
+
* Wether to flip the icon horizontally or vertically
|
|
19
|
+
*/
|
|
20
|
+
flip: IconFlipOptions;
|
|
21
|
+
render(): any;
|
|
22
|
+
private _getClass;
|
|
23
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
export declare class Loader {
|
|
3
|
+
/**
|
|
4
|
+
* Wether to show or hide the loader
|
|
5
|
+
*/
|
|
6
|
+
show: boolean | Observable<boolean>;
|
|
7
|
+
/**
|
|
8
|
+
* Variant of loader
|
|
9
|
+
*/
|
|
10
|
+
variant: 'inline' | 'full-width' | 'full-screen' | 'modal';
|
|
11
|
+
/**
|
|
12
|
+
* Color of the loader
|
|
13
|
+
*/
|
|
14
|
+
color: 'indigo' | 'white' | 'storm';
|
|
15
|
+
/**
|
|
16
|
+
* !NOT IMPLEMENTED! Modal title for modal variant
|
|
17
|
+
*/
|
|
18
|
+
modalTitle: string;
|
|
19
|
+
/**
|
|
20
|
+
* !NOT IMPLEMENTED! Modal description for modal variant
|
|
21
|
+
*/
|
|
22
|
+
modalDescription: string;
|
|
23
|
+
private _show;
|
|
24
|
+
private _showSubscriber;
|
|
25
|
+
private _loader;
|
|
26
|
+
componentWillRender(): void;
|
|
27
|
+
componentShouldUpdate(): void;
|
|
28
|
+
render(): any;
|
|
29
|
+
private _checkShow;
|
|
30
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Placement } from '@popperjs/core';
|
|
2
|
+
export declare class Tooltip {
|
|
3
|
+
/**
|
|
4
|
+
* The content of the tooltip
|
|
5
|
+
*/
|
|
6
|
+
content: any;
|
|
7
|
+
/**
|
|
8
|
+
* The content of the tooltip
|
|
9
|
+
*/
|
|
10
|
+
placement: Placement;
|
|
11
|
+
/**
|
|
12
|
+
* Wether to force show the tooltip
|
|
13
|
+
*/
|
|
14
|
+
forceShow: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* The host element
|
|
17
|
+
*/
|
|
18
|
+
private _el;
|
|
19
|
+
private _loaded;
|
|
20
|
+
private _popper;
|
|
21
|
+
private _tooltip;
|
|
22
|
+
componentShouldUpdate(): void;
|
|
23
|
+
render(): any;
|
|
24
|
+
protected _show(): void;
|
|
25
|
+
protected _hide(): void;
|
|
26
|
+
private _load;
|
|
27
|
+
private _setOptions;
|
|
28
|
+
}
|
|
@@ -5,13 +5,77 @@
|
|
|
5
5
|
* It contains typing information for all components that exist in this project.
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
+
import { IconFlipOptions, IconVariant } from "./components/atoms/icon/icon.component";
|
|
9
|
+
import { IllustrationVariant } from "./components/atoms/illustration/illustration.component";
|
|
10
|
+
import { Observable } from "rxjs";
|
|
11
|
+
import { Placement } from "@popperjs/core";
|
|
8
12
|
export namespace Components {
|
|
9
13
|
interface PButton {
|
|
10
14
|
/**
|
|
11
|
-
* The
|
|
15
|
+
* The variant of the button
|
|
12
16
|
*/
|
|
13
17
|
"variant": 'primary' | 'secondary';
|
|
14
18
|
}
|
|
19
|
+
interface PIcon {
|
|
20
|
+
/**
|
|
21
|
+
* Wether to flip the icon horizontally or vertically
|
|
22
|
+
*/
|
|
23
|
+
"flip": IconFlipOptions;
|
|
24
|
+
/**
|
|
25
|
+
* Wether to rotate the icon x degrees
|
|
26
|
+
*/
|
|
27
|
+
"rotate": number;
|
|
28
|
+
/**
|
|
29
|
+
* The size of the icon, using tailwind sizes
|
|
30
|
+
*/
|
|
31
|
+
"size": string;
|
|
32
|
+
/**
|
|
33
|
+
* The icon the be displayed
|
|
34
|
+
*/
|
|
35
|
+
"variant": IconVariant;
|
|
36
|
+
}
|
|
37
|
+
interface PIllustration {
|
|
38
|
+
/**
|
|
39
|
+
* The icon the be displayed
|
|
40
|
+
*/
|
|
41
|
+
"variant": IllustrationVariant;
|
|
42
|
+
}
|
|
43
|
+
interface PLoader {
|
|
44
|
+
/**
|
|
45
|
+
* Color of the loader
|
|
46
|
+
*/
|
|
47
|
+
"color": 'indigo' | 'white' | 'storm';
|
|
48
|
+
/**
|
|
49
|
+
* !NOT IMPLEMENTED! Modal description for modal variant
|
|
50
|
+
*/
|
|
51
|
+
"modalDescription": string;
|
|
52
|
+
/**
|
|
53
|
+
* !NOT IMPLEMENTED! Modal title for modal variant
|
|
54
|
+
*/
|
|
55
|
+
"modalTitle": string;
|
|
56
|
+
/**
|
|
57
|
+
* Wether to show or hide the loader
|
|
58
|
+
*/
|
|
59
|
+
"show": boolean | Observable<boolean>;
|
|
60
|
+
/**
|
|
61
|
+
* Variant of loader
|
|
62
|
+
*/
|
|
63
|
+
"variant": 'inline' | 'full-width' | 'full-screen' | 'modal';
|
|
64
|
+
}
|
|
65
|
+
interface PTooltip {
|
|
66
|
+
/**
|
|
67
|
+
* The content of the tooltip
|
|
68
|
+
*/
|
|
69
|
+
"content": any;
|
|
70
|
+
/**
|
|
71
|
+
* Wether to force show the tooltip
|
|
72
|
+
*/
|
|
73
|
+
"forceShow": boolean;
|
|
74
|
+
/**
|
|
75
|
+
* The content of the tooltip
|
|
76
|
+
*/
|
|
77
|
+
"placement": Placement;
|
|
78
|
+
}
|
|
15
79
|
}
|
|
16
80
|
declare global {
|
|
17
81
|
interface HTMLPButtonElement extends Components.PButton, HTMLStencilElement {
|
|
@@ -20,19 +84,111 @@ declare global {
|
|
|
20
84
|
prototype: HTMLPButtonElement;
|
|
21
85
|
new (): HTMLPButtonElement;
|
|
22
86
|
};
|
|
87
|
+
interface HTMLPIconElement extends Components.PIcon, HTMLStencilElement {
|
|
88
|
+
}
|
|
89
|
+
var HTMLPIconElement: {
|
|
90
|
+
prototype: HTMLPIconElement;
|
|
91
|
+
new (): HTMLPIconElement;
|
|
92
|
+
};
|
|
93
|
+
interface HTMLPIllustrationElement extends Components.PIllustration, HTMLStencilElement {
|
|
94
|
+
}
|
|
95
|
+
var HTMLPIllustrationElement: {
|
|
96
|
+
prototype: HTMLPIllustrationElement;
|
|
97
|
+
new (): HTMLPIllustrationElement;
|
|
98
|
+
};
|
|
99
|
+
interface HTMLPLoaderElement extends Components.PLoader, HTMLStencilElement {
|
|
100
|
+
}
|
|
101
|
+
var HTMLPLoaderElement: {
|
|
102
|
+
prototype: HTMLPLoaderElement;
|
|
103
|
+
new (): HTMLPLoaderElement;
|
|
104
|
+
};
|
|
105
|
+
interface HTMLPTooltipElement extends Components.PTooltip, HTMLStencilElement {
|
|
106
|
+
}
|
|
107
|
+
var HTMLPTooltipElement: {
|
|
108
|
+
prototype: HTMLPTooltipElement;
|
|
109
|
+
new (): HTMLPTooltipElement;
|
|
110
|
+
};
|
|
23
111
|
interface HTMLElementTagNameMap {
|
|
24
112
|
"p-button": HTMLPButtonElement;
|
|
113
|
+
"p-icon": HTMLPIconElement;
|
|
114
|
+
"p-illustration": HTMLPIllustrationElement;
|
|
115
|
+
"p-loader": HTMLPLoaderElement;
|
|
116
|
+
"p-tooltip": HTMLPTooltipElement;
|
|
25
117
|
}
|
|
26
118
|
}
|
|
27
119
|
declare namespace LocalJSX {
|
|
28
120
|
interface PButton {
|
|
29
121
|
/**
|
|
30
|
-
* The
|
|
122
|
+
* The variant of the button
|
|
31
123
|
*/
|
|
32
124
|
"variant"?: 'primary' | 'secondary';
|
|
33
125
|
}
|
|
126
|
+
interface PIcon {
|
|
127
|
+
/**
|
|
128
|
+
* Wether to flip the icon horizontally or vertically
|
|
129
|
+
*/
|
|
130
|
+
"flip"?: IconFlipOptions;
|
|
131
|
+
/**
|
|
132
|
+
* Wether to rotate the icon x degrees
|
|
133
|
+
*/
|
|
134
|
+
"rotate"?: number;
|
|
135
|
+
/**
|
|
136
|
+
* The size of the icon, using tailwind sizes
|
|
137
|
+
*/
|
|
138
|
+
"size"?: string;
|
|
139
|
+
/**
|
|
140
|
+
* The icon the be displayed
|
|
141
|
+
*/
|
|
142
|
+
"variant"?: IconVariant;
|
|
143
|
+
}
|
|
144
|
+
interface PIllustration {
|
|
145
|
+
/**
|
|
146
|
+
* The icon the be displayed
|
|
147
|
+
*/
|
|
148
|
+
"variant"?: IllustrationVariant;
|
|
149
|
+
}
|
|
150
|
+
interface PLoader {
|
|
151
|
+
/**
|
|
152
|
+
* Color of the loader
|
|
153
|
+
*/
|
|
154
|
+
"color"?: 'indigo' | 'white' | 'storm';
|
|
155
|
+
/**
|
|
156
|
+
* !NOT IMPLEMENTED! Modal description for modal variant
|
|
157
|
+
*/
|
|
158
|
+
"modalDescription"?: string;
|
|
159
|
+
/**
|
|
160
|
+
* !NOT IMPLEMENTED! Modal title for modal variant
|
|
161
|
+
*/
|
|
162
|
+
"modalTitle"?: string;
|
|
163
|
+
/**
|
|
164
|
+
* Wether to show or hide the loader
|
|
165
|
+
*/
|
|
166
|
+
"show"?: boolean | Observable<boolean>;
|
|
167
|
+
/**
|
|
168
|
+
* Variant of loader
|
|
169
|
+
*/
|
|
170
|
+
"variant"?: 'inline' | 'full-width' | 'full-screen' | 'modal';
|
|
171
|
+
}
|
|
172
|
+
interface PTooltip {
|
|
173
|
+
/**
|
|
174
|
+
* The content of the tooltip
|
|
175
|
+
*/
|
|
176
|
+
"content"?: any;
|
|
177
|
+
/**
|
|
178
|
+
* Wether to force show the tooltip
|
|
179
|
+
*/
|
|
180
|
+
"forceShow"?: boolean;
|
|
181
|
+
/**
|
|
182
|
+
* The content of the tooltip
|
|
183
|
+
*/
|
|
184
|
+
"placement"?: Placement;
|
|
185
|
+
}
|
|
34
186
|
interface IntrinsicElements {
|
|
35
187
|
"p-button": PButton;
|
|
188
|
+
"p-icon": PIcon;
|
|
189
|
+
"p-illustration": PIllustration;
|
|
190
|
+
"p-loader": PLoader;
|
|
191
|
+
"p-tooltip": PTooltip;
|
|
36
192
|
}
|
|
37
193
|
}
|
|
38
194
|
export { LocalJSX as JSX };
|
|
@@ -40,6 +196,10 @@ declare module "@stencil/core" {
|
|
|
40
196
|
export namespace JSX {
|
|
41
197
|
interface IntrinsicElements {
|
|
42
198
|
"p-button": LocalJSX.PButton & JSXBase.HTMLAttributes<HTMLPButtonElement>;
|
|
199
|
+
"p-icon": LocalJSX.PIcon & JSXBase.HTMLAttributes<HTMLPIconElement>;
|
|
200
|
+
"p-illustration": LocalJSX.PIllustration & JSXBase.HTMLAttributes<HTMLPIllustrationElement>;
|
|
201
|
+
"p-loader": LocalJSX.PLoader & JSXBase.HTMLAttributes<HTMLPLoaderElement>;
|
|
202
|
+
"p-tooltip": LocalJSX.PTooltip & JSXBase.HTMLAttributes<HTMLPTooltipElement>;
|
|
43
203
|
}
|
|
44
204
|
}
|
|
45
205
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
arrow: string;
|
|
3
|
+
attachment: string;
|
|
4
|
+
bread: string;
|
|
5
|
+
calendar: string;
|
|
6
|
+
car: string;
|
|
7
|
+
checkmark: string;
|
|
8
|
+
chevron: string;
|
|
9
|
+
clock: string;
|
|
10
|
+
cogs: string;
|
|
11
|
+
comment: string;
|
|
12
|
+
document: string;
|
|
13
|
+
download: string;
|
|
14
|
+
envelope: string;
|
|
15
|
+
explanation: string;
|
|
16
|
+
eye: string;
|
|
17
|
+
filter: string;
|
|
18
|
+
grid: string;
|
|
19
|
+
headset: string;
|
|
20
|
+
list: string;
|
|
21
|
+
location: string;
|
|
22
|
+
megaphone: string;
|
|
23
|
+
minus: string;
|
|
24
|
+
negative: string;
|
|
25
|
+
pagination: string;
|
|
26
|
+
payment: string;
|
|
27
|
+
pencil: string;
|
|
28
|
+
person: string;
|
|
29
|
+
plus: string;
|
|
30
|
+
question: string;
|
|
31
|
+
receipt: string;
|
|
32
|
+
report: string;
|
|
33
|
+
search: string;
|
|
34
|
+
settings: string;
|
|
35
|
+
sick: string;
|
|
36
|
+
tachometer: string;
|
|
37
|
+
tool: string;
|
|
38
|
+
trash: string;
|
|
39
|
+
turn: string;
|
|
40
|
+
upload: string;
|
|
41
|
+
warning: string;
|
|
42
|
+
};
|
|
43
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paperless/core",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0-alpha.2",
|
|
4
4
|
"description": "Stencil Component Starter",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -24,7 +24,9 @@
|
|
|
24
24
|
"scripts": {
|
|
25
25
|
"build": "stencil build --docs",
|
|
26
26
|
"build:prod": "stencil build",
|
|
27
|
-
"postbuild": "
|
|
27
|
+
"postbuild": "yarn tailwind:process",
|
|
28
|
+
"postbuild:prod": "yarn tailwind:process",
|
|
29
|
+
"tailwind:process": "tailwindcss -i dist/paperless/paperless.css -o dist/paperless/paperless.css",
|
|
28
30
|
"watch": "stencil build --watch",
|
|
29
31
|
"watch:bg": "(yarn watch&)",
|
|
30
32
|
"start": "stencil build --dev --watch --serve",
|
|
@@ -35,7 +37,9 @@
|
|
|
35
37
|
"yarn:publish": "yarn publish"
|
|
36
38
|
},
|
|
37
39
|
"dependencies": {
|
|
38
|
-
"@
|
|
40
|
+
"@popperjs/core": "^2.11.5",
|
|
41
|
+
"@stencil/core": "^2.13.0",
|
|
42
|
+
"rxjs": "^7.5.5"
|
|
39
43
|
},
|
|
40
44
|
"devDependencies": {
|
|
41
45
|
"@stencil/angular-output-target": "^0.4.0",
|
|
@@ -50,6 +54,7 @@
|
|
|
50
54
|
"jest": "^27.4.5",
|
|
51
55
|
"jest-cli": "^27.4.5",
|
|
52
56
|
"puppeteer": "^10.0.0",
|
|
57
|
+
"stencil-inline-svg": "^1.1.0",
|
|
53
58
|
"stencil-tailwind-plugin": "^1.3.0",
|
|
54
59
|
"tailwindcss": "~3.1.4",
|
|
55
60
|
"workbox-build": "4.3.1"
|