@paperless/core 0.0.3-alpha.5 → 0.1.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/README.md +14 -10
  3. package/dist/assets/icons/arrow.svg +1 -1
  4. package/dist/assets/icons/attachment.svg +1 -1
  5. package/dist/assets/icons/bread.svg +1 -1
  6. package/dist/assets/icons/calendar.svg +1 -1
  7. package/dist/assets/icons/car.svg +1 -1
  8. package/dist/assets/icons/checkmark.svg +1 -1
  9. package/dist/assets/icons/chevron.svg +1 -1
  10. package/dist/assets/icons/clock.svg +1 -1
  11. package/dist/assets/icons/cogs.svg +1 -1
  12. package/dist/assets/icons/comment.svg +1 -1
  13. package/dist/assets/icons/document.svg +1 -1
  14. package/dist/assets/icons/download.svg +1 -1
  15. package/dist/assets/icons/envelope.svg +1 -1
  16. package/dist/assets/icons/explanation.svg +1 -1
  17. package/dist/assets/icons/eye.svg +1 -1
  18. package/dist/assets/icons/filter.svg +1 -1
  19. package/dist/assets/icons/grid.svg +1 -1
  20. package/dist/assets/icons/headset.svg +1 -1
  21. package/dist/assets/icons/list.svg +1 -1
  22. package/dist/assets/icons/location.svg +1 -1
  23. package/dist/assets/icons/megaphone.svg +1 -1
  24. package/dist/assets/icons/minus.svg +1 -1
  25. package/dist/assets/icons/negative.svg +1 -1
  26. package/dist/assets/icons/pagination.svg +1 -1
  27. package/dist/assets/icons/payment.svg +1 -1
  28. package/dist/assets/icons/pencil.svg +1 -1
  29. package/dist/assets/icons/person.svg +1 -1
  30. package/dist/assets/icons/plus.svg +1 -1
  31. package/dist/assets/icons/question.svg +1 -1
  32. package/dist/assets/icons/receipt.svg +1 -1
  33. package/dist/assets/icons/report.svg +1 -1
  34. package/dist/assets/icons/search.svg +1 -1
  35. package/dist/assets/icons/settings.svg +1 -1
  36. package/dist/assets/icons/sick.svg +1 -1
  37. package/dist/assets/icons/tachometer.svg +1 -1
  38. package/dist/assets/icons/tool.svg +1 -1
  39. package/dist/assets/icons/trash.svg +1 -1
  40. package/dist/assets/icons/turn.svg +1 -1
  41. package/dist/assets/icons/upload.svg +1 -1
  42. package/dist/assets/icons/warning.svg +1 -1
  43. package/dist/build/p-3318b73b.entry.js +1 -0
  44. package/dist/build/p-6f9229a6.js +2 -0
  45. package/dist/build/p-711630fb.entry.js +1 -0
  46. package/dist/build/p-98d636b6.entry.js +1 -0
  47. package/dist/build/p-c3d80205.entry.js +1 -0
  48. package/dist/build/paperless.css +22 -12
  49. package/dist/build/paperless.esm.js +1 -1
  50. package/dist/cjs/{index-e3e940d8.js → index-6758a39e.js} +155 -7
  51. package/dist/cjs/loader.cjs.js +2 -2
  52. package/dist/cjs/p-button.cjs.entry.js +4 -4
  53. package/dist/cjs/p-icon.cjs.entry.js +802 -0
  54. package/dist/cjs/p-illustration.cjs.entry.js +1426 -0
  55. package/dist/cjs/p-tooltip.cjs.entry.js +1873 -0
  56. package/dist/cjs/paperless.cjs.js +2 -2
  57. package/dist/collection/assets/icons/arrow.svg +1 -1
  58. package/dist/collection/assets/icons/attachment.svg +1 -1
  59. package/dist/collection/assets/icons/bread.svg +1 -1
  60. package/dist/collection/assets/icons/calendar.svg +1 -1
  61. package/dist/collection/assets/icons/car.svg +1 -1
  62. package/dist/collection/assets/icons/checkmark.svg +1 -1
  63. package/dist/collection/assets/icons/chevron.svg +1 -1
  64. package/dist/collection/assets/icons/clock.svg +1 -1
  65. package/dist/collection/assets/icons/cogs.svg +1 -1
  66. package/dist/collection/assets/icons/comment.svg +1 -1
  67. package/dist/collection/assets/icons/document.svg +1 -1
  68. package/dist/collection/assets/icons/download.svg +1 -1
  69. package/dist/collection/assets/icons/envelope.svg +1 -1
  70. package/dist/collection/assets/icons/explanation.svg +1 -1
  71. package/dist/collection/assets/icons/eye.svg +1 -1
  72. package/dist/collection/assets/icons/filter.svg +1 -1
  73. package/dist/collection/assets/icons/grid.svg +1 -1
  74. package/dist/collection/assets/icons/headset.svg +1 -1
  75. package/dist/collection/assets/icons/list.svg +1 -1
  76. package/dist/collection/assets/icons/location.svg +1 -1
  77. package/dist/collection/assets/icons/megaphone.svg +1 -1
  78. package/dist/collection/assets/icons/minus.svg +1 -1
  79. package/dist/collection/assets/icons/negative.svg +1 -1
  80. package/dist/collection/assets/icons/pagination.svg +1 -1
  81. package/dist/collection/assets/icons/payment.svg +1 -1
  82. package/dist/collection/assets/icons/pencil.svg +1 -1
  83. package/dist/collection/assets/icons/person.svg +1 -1
  84. package/dist/collection/assets/icons/plus.svg +1 -1
  85. package/dist/collection/assets/icons/question.svg +1 -1
  86. package/dist/collection/assets/icons/receipt.svg +1 -1
  87. package/dist/collection/assets/icons/report.svg +1 -1
  88. package/dist/collection/assets/icons/search.svg +1 -1
  89. package/dist/collection/assets/icons/settings.svg +1 -1
  90. package/dist/collection/assets/icons/sick.svg +1 -1
  91. package/dist/collection/assets/icons/tachometer.svg +1 -1
  92. package/dist/collection/assets/icons/tool.svg +1 -1
  93. package/dist/collection/assets/icons/trash.svg +1 -1
  94. package/dist/collection/assets/icons/turn.svg +1 -1
  95. package/dist/collection/assets/icons/upload.svg +1 -1
  96. package/dist/collection/assets/icons/warning.svg +1 -1
  97. package/dist/collection/collection-manifest.json +4 -1
  98. package/dist/collection/components/button/button.component.js +6 -5
  99. package/dist/collection/components/icon/icon.component.js +108 -0
  100. package/dist/collection/components/illustration/illustration.component.js +39 -0
  101. package/dist/collection/components/tooltip/tooltip.component.css +34 -0
  102. package/dist/collection/components/tooltip/tooltip.component.js +174 -0
  103. package/dist/collection/tailwind/border-radius.js +1 -0
  104. package/dist/collection/tailwind/grid.js +6 -0
  105. package/dist/collection/tailwind.config.js +5 -0
  106. package/dist/collection/utils/icons.js +82 -0
  107. package/dist/collection/utils/illustrations.js +18 -0
  108. package/dist/components/index.d.ts +3 -0
  109. package/dist/components/index.js +3 -0
  110. package/dist/components/p-button.js +4 -4
  111. package/dist/components/p-icon.d.ts +11 -0
  112. package/dist/components/p-icon.js +820 -0
  113. package/dist/components/p-illustration.d.ts +11 -0
  114. package/dist/components/p-illustration.js +1441 -0
  115. package/dist/components/p-tooltip.d.ts +11 -0
  116. package/dist/components/p-tooltip.js +1891 -0
  117. package/dist/esm/{index-100a5ae6.js → index-e4d80e41.js} +154 -8
  118. package/dist/esm/loader.js +2 -2
  119. package/dist/esm/p-button.entry.js +4 -4
  120. package/dist/esm/p-icon.entry.js +798 -0
  121. package/dist/esm/p-illustration.entry.js +1422 -0
  122. package/dist/esm/p-tooltip.entry.js +1869 -0
  123. package/dist/esm/paperless.js +2 -2
  124. package/dist/index.html +1 -1
  125. package/dist/paperless/p-3318b73b.entry.js +1 -0
  126. package/dist/paperless/p-6f9229a6.js +2 -0
  127. package/dist/paperless/p-711630fb.entry.js +1 -0
  128. package/dist/paperless/p-98d636b6.entry.js +1 -0
  129. package/dist/paperless/p-c3d80205.entry.js +1 -0
  130. package/dist/paperless/paperless.css +7675 -7610
  131. package/dist/paperless/paperless.esm.js +1 -1
  132. package/dist/sw.js +100 -21
  133. package/dist/tailwind.config.js +5 -0
  134. package/dist/types/components/button/button.component.d.ts +1 -1
  135. package/dist/types/components/icon/icon.component.d.ts +22 -0
  136. package/dist/types/components/illustration/illustration.component.d.ts +9 -0
  137. package/dist/types/components/tooltip/tooltip.component.d.ts +28 -0
  138. package/dist/types/components.d.ts +108 -2
  139. package/dist/types/utils/icons.d.ts +43 -0
  140. package/dist/types/utils/illustrations.d.ts +11 -0
  141. package/package.json +3 -1
  142. package/dist/build/p-54459ae1.js +0 -2
  143. package/dist/build/p-e61ff856.entry.js +0 -1
  144. package/dist/paperless/p-54459ae1.js +0 -2
  145. package/dist/paperless/p-e61ff856.entry.js +0 -1
@@ -1 +1 @@
1
- import{p as t,b as p}from"./p-54459ae1.js";(()=>{const p=import.meta.url,r={};return""!==p&&(r.resourcesUrl=new URL(".",p).href),t(r)})().then((t=>p([["p-e61ff856",[[1,"p-button",{variant:[1]}]]]],t)));
1
+ import{p as o,b as t}from"./p-6f9229a6.js";(()=>{const t=import.meta.url,e={};return""!==t&&(e.resourcesUrl=new URL(".",t).href),o(e)})().then((o=>t([["p-711630fb",[[1,"p-button",{variant:[1]}]]],["p-3318b73b",[[0,"p-icon",{variant:[1],size:[1],rotate:[2],flip:[1]}]]],["p-98d636b6",[[0,"p-illustration",{variant:[1]}]]],["p-c3d80205",[[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,30 @@ self.addEventListener('message', (event) => {
27
27
  self.__precacheManifest = [
28
28
  {
29
29
  "url": "index.html",
30
- "revision": "7b504ed3fea3e528116a4fe68b33197a"
30
+ "revision": "5eb75d027add016ecebb943b1a73afb4"
31
31
  },
32
32
  {
33
33
  "url": "build/index.esm.js",
34
34
  "revision": "d41d8cd98f00b204e9800998ecf8427e"
35
35
  },
36
36
  {
37
- "url": "build/p-54459ae1.js"
37
+ "url": "build/p-3318b73b.entry.js"
38
38
  },
39
39
  {
40
- "url": "build/p-e61ff856.entry.js"
40
+ "url": "build/p-6f9229a6.js"
41
41
  },
42
42
  {
43
- "url": "cjs/index-e3e940d8.js",
44
- "revision": "15ec95b593671d5c161f99f271f3cb57"
43
+ "url": "build/p-711630fb.entry.js"
44
+ },
45
+ {
46
+ "url": "build/p-98d636b6.entry.js"
47
+ },
48
+ {
49
+ "url": "build/p-c3d80205.entry.js"
50
+ },
51
+ {
52
+ "url": "cjs/index-6758a39e.js",
53
+ "revision": "af6d997d161c98736fa3b74da48a43b3"
45
54
  },
46
55
  {
47
56
  "url": "cjs/index.cjs.js",
@@ -49,19 +58,30 @@ self.__precacheManifest = [
49
58
  },
50
59
  {
51
60
  "url": "cjs/loader.cjs.js",
52
- "revision": "b5e4969b6b60713dd64c520202fc5af1"
61
+ "revision": "f1b10d6b89b98f4d89dbf078676900b7"
53
62
  },
54
63
  {
55
64
  "url": "cjs/p-button.cjs.entry.js",
56
- "revision": "9b7cca34b22ce99d6f20c6fa1ae9ff14"
65
+ "revision": "a6fc78ccb968bf14301c1c068a594834"
66
+ },
67
+ {
68
+ "url": "cjs/p-icon.cjs.entry.js",
69
+ "revision": "30eb72e46de820d7f4b114c76affbd28"
70
+ },
71
+ {
72
+ "url": "cjs/p-illustration.cjs.entry.js"
73
+ },
74
+ {
75
+ "url": "cjs/p-tooltip.cjs.entry.js",
76
+ "revision": "3370e22d2f92b66d4ec204a31b74dea4"
57
77
  },
58
78
  {
59
79
  "url": "cjs/paperless.cjs.js",
60
- "revision": "478e5848c8b4bbf3733a3c43d8dfee86"
80
+ "revision": "82a4f2e0dc205eef73f1629f387cc7ff"
61
81
  },
62
82
  {
63
83
  "url": "collection/collection-manifest.json",
64
- "revision": "fe2f674be73c110b95acf4d1a6f3fcac"
84
+ "revision": "55e82bf57df0419273ddb8de09c5d478"
65
85
  },
66
86
  {
67
87
  "url": "collection/components/button/button.component.css",
@@ -69,7 +89,23 @@ self.__precacheManifest = [
69
89
  },
70
90
  {
71
91
  "url": "collection/components/button/button.component.js",
72
- "revision": "cd78b7a9e36b7cd079c8807084249cb7"
92
+ "revision": "bb87cf170753e7cc9083f9f172000469"
93
+ },
94
+ {
95
+ "url": "collection/components/icon/icon.component.js",
96
+ "revision": "2ff80f54824184a52a6bae6441ad457a"
97
+ },
98
+ {
99
+ "url": "collection/components/illustration/illustration.component.js",
100
+ "revision": "c6dc3500ec209bc7d4ac9891968e297e"
101
+ },
102
+ {
103
+ "url": "collection/components/tooltip/tooltip.component.css",
104
+ "revision": "f80a0a5022b3d0dd068cedbba1c2e707"
105
+ },
106
+ {
107
+ "url": "collection/components/tooltip/tooltip.component.js",
108
+ "revision": "e1d5c10217b7bf25360a13ddc4a6ae13"
73
109
  },
74
110
  {
75
111
  "url": "collection/index.js",
@@ -77,35 +113,58 @@ self.__precacheManifest = [
77
113
  },
78
114
  {
79
115
  "url": "collection/tailwind.config.js",
80
- "revision": "f1f2c9f8726bbe094072a5152f6083b8"
116
+ "revision": "164cbed49fedb48015b4c21006802f87"
81
117
  },
82
118
  {
83
119
  "url": "collection/tailwind/border-radius.js",
84
- "revision": "6db07de9ecc17ab23890d9ec719751f8"
120
+ "revision": "d2d84c4e111eb34fb60b52e7d032f3fe"
85
121
  },
86
122
  {
87
123
  "url": "collection/tailwind/colors.js",
88
124
  "revision": "6a39b234fcf655ec34be7e367b0b3128"
89
125
  },
126
+ {
127
+ "url": "collection/tailwind/grid.js",
128
+ "revision": "c10b15ec73ad6b89c0f24b667886b357"
129
+ },
90
130
  {
91
131
  "url": "collection/tailwind/shadows.js",
92
132
  "revision": "90a3cc6f1c4f6714180ddbb3a0e40a53"
93
133
  },
134
+ {
135
+ "url": "collection/utils/icons.js",
136
+ "revision": "637212fd72da5a3b90461d00940712b5"
137
+ },
138
+ {
139
+ "url": "collection/utils/illustrations.js",
140
+ "revision": "743b24c925f2eedd1e005aa87dc5987b"
141
+ },
94
142
  {
95
143
  "url": "collection/utils/utils.js",
96
144
  "revision": "4beb8ca8a76230f44db73b6109a0043d"
97
145
  },
98
146
  {
99
147
  "url": "components/index.js",
100
- "revision": "5d3af333e686ef0839491478542c72b5"
148
+ "revision": "31ca90a73d65b3aaf82779e687a5d5ba"
101
149
  },
102
150
  {
103
151
  "url": "components/p-button.js",
104
- "revision": "2c0177de1661910014dddee1c7ed2230"
152
+ "revision": "3cb5e4e7f92265cde7b39c1045403f48"
153
+ },
154
+ {
155
+ "url": "components/p-icon.js",
156
+ "revision": "56b3dffb5840a6b9fc11370dcdf3bf79"
105
157
  },
106
158
  {
107
- "url": "esm/index-100a5ae6.js",
108
- "revision": "b8a9d6a5b2765379ce7fdb58463fd47b"
159
+ "url": "components/p-illustration.js"
160
+ },
161
+ {
162
+ "url": "components/p-tooltip.js",
163
+ "revision": "f572f34b82a39036fb11a6c9f2f2f656"
164
+ },
165
+ {
166
+ "url": "esm/index-e4d80e41.js",
167
+ "revision": "653c187864c171a614b8c562afdb97e8"
109
168
  },
110
169
  {
111
170
  "url": "esm/index.js",
@@ -113,11 +172,22 @@ self.__precacheManifest = [
113
172
  },
114
173
  {
115
174
  "url": "esm/loader.js",
116
- "revision": "efc5e53be87882ce77c9570688d3ebc2"
175
+ "revision": "2949da7fe9f52c2bdb03fa1227f8197b"
117
176
  },
118
177
  {
119
178
  "url": "esm/p-button.entry.js",
120
- "revision": "b38265368a64597d689230828654765e"
179
+ "revision": "87304cfa413873e4ddef417a8accba49"
180
+ },
181
+ {
182
+ "url": "esm/p-icon.entry.js",
183
+ "revision": "3c877f15e9c3956f39404f391a175689"
184
+ },
185
+ {
186
+ "url": "esm/p-illustration.entry.js"
187
+ },
188
+ {
189
+ "url": "esm/p-tooltip.entry.js",
190
+ "revision": "bc6190169e0a896eeb303f776da10da7"
121
191
  },
122
192
  {
123
193
  "url": "esm/polyfills/core-js.js",
@@ -156,14 +226,23 @@ self.__precacheManifest = [
156
226
  "revision": "d41d8cd98f00b204e9800998ecf8427e"
157
227
  },
158
228
  {
159
- "url": "paperless/p-54459ae1.js"
229
+ "url": "paperless/p-3318b73b.entry.js"
230
+ },
231
+ {
232
+ "url": "paperless/p-6f9229a6.js"
233
+ },
234
+ {
235
+ "url": "paperless/p-711630fb.entry.js"
236
+ },
237
+ {
238
+ "url": "paperless/p-98d636b6.entry.js"
160
239
  },
161
240
  {
162
- "url": "paperless/p-e61ff856.entry.js"
241
+ "url": "paperless/p-c3d80205.entry.js"
163
242
  },
164
243
  {
165
244
  "url": "tailwind.config.js",
166
- "revision": "f1f2c9f8726bbe094072a5152f6083b8"
245
+ "revision": "164cbed49fedb48015b4c21006802f87"
167
246
  }
168
247
  ].concat(self.__precacheManifest || []);
169
248
  workbox.precaching.precacheAndRoute(self.__precacheManifest, {});
@@ -1,8 +1,10 @@
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');
4
5
 
5
6
  module.exports = {
7
+ important: true,
6
8
  safelist: [
7
9
  {
8
10
  pattern: /./,
@@ -13,6 +15,9 @@ module.exports = {
13
15
  boxShadow: shadows,
14
16
  dropShadow: shadows,
15
17
  borderRadius,
18
+ extends: {
19
+ grid,
20
+ },
16
21
  },
17
22
  variants: {},
18
23
  plugins: [require('@tailwindcss/aspect-ratio')],
@@ -1,6 +1,6 @@
1
1
  export declare class Button {
2
2
  /**
3
- * The name
3
+ * The variant of the button
4
4
  */
5
5
  variant: 'primary' | 'secondary';
6
6
  render(): any;
@@ -0,0 +1,22 @@
1
+ import icons from '../../utils/icons';
2
+ export declare type IconVariant = keyof typeof icons;
3
+ export declare class Icon {
4
+ /**
5
+ * The icon the be displayed
6
+ */
7
+ variant: IconVariant;
8
+ /**
9
+ * The size of the icon, using tailwind sizes
10
+ */
11
+ size: string;
12
+ /**
13
+ * Wether to rotate the icon x degrees
14
+ */
15
+ rotate: number;
16
+ /**
17
+ * Wether to flip the icon horizontally or vertically
18
+ */
19
+ flip: 'horizontal' | 'vertical';
20
+ render(): any;
21
+ private _getClass;
22
+ }
@@ -0,0 +1,9 @@
1
+ import illustrations from '../../utils/illustrations';
2
+ export declare type IllustrationVariant = keyof typeof illustrations;
3
+ export declare class Icon {
4
+ /**
5
+ * The icon the be displayed
6
+ */
7
+ variant: IllustrationVariant;
8
+ render(): any;
9
+ }
@@ -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,54 @@
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 { IconVariant } from "./components/icon/icon.component";
9
+ import { IllustrationVariant } from "./components/illustration/illustration.component";
10
+ import { Placement } from "@popperjs/core";
8
11
  export namespace Components {
9
12
  interface PButton {
10
13
  /**
11
- * The name
14
+ * The variant of the button
12
15
  */
13
16
  "variant": 'primary' | 'secondary';
14
17
  }
18
+ interface PIcon {
19
+ /**
20
+ * Wether to flip the icon horizontally or vertically
21
+ */
22
+ "flip": 'horizontal' | 'vertical';
23
+ /**
24
+ * Wether to rotate the icon x degrees
25
+ */
26
+ "rotate": number;
27
+ /**
28
+ * The size of the icon, using tailwind sizes
29
+ */
30
+ "size": string;
31
+ /**
32
+ * The icon the be displayed
33
+ */
34
+ "variant": IconVariant;
35
+ }
36
+ interface PIllustration {
37
+ /**
38
+ * The icon the be displayed
39
+ */
40
+ "variant": IllustrationVariant;
41
+ }
42
+ interface PTooltip {
43
+ /**
44
+ * The content of the tooltip
45
+ */
46
+ "content": any;
47
+ /**
48
+ * Wether to force show the tooltip
49
+ */
50
+ "forceShow": boolean;
51
+ /**
52
+ * The content of the tooltip
53
+ */
54
+ "placement": Placement;
55
+ }
15
56
  }
16
57
  declare global {
17
58
  interface HTMLPButtonElement extends Components.PButton, HTMLStencilElement {
@@ -20,19 +61,81 @@ declare global {
20
61
  prototype: HTMLPButtonElement;
21
62
  new (): HTMLPButtonElement;
22
63
  };
64
+ interface HTMLPIconElement extends Components.PIcon, HTMLStencilElement {
65
+ }
66
+ var HTMLPIconElement: {
67
+ prototype: HTMLPIconElement;
68
+ new (): HTMLPIconElement;
69
+ };
70
+ interface HTMLPIllustrationElement extends Components.PIllustration, HTMLStencilElement {
71
+ }
72
+ var HTMLPIllustrationElement: {
73
+ prototype: HTMLPIllustrationElement;
74
+ new (): HTMLPIllustrationElement;
75
+ };
76
+ interface HTMLPTooltipElement extends Components.PTooltip, HTMLStencilElement {
77
+ }
78
+ var HTMLPTooltipElement: {
79
+ prototype: HTMLPTooltipElement;
80
+ new (): HTMLPTooltipElement;
81
+ };
23
82
  interface HTMLElementTagNameMap {
24
83
  "p-button": HTMLPButtonElement;
84
+ "p-icon": HTMLPIconElement;
85
+ "p-illustration": HTMLPIllustrationElement;
86
+ "p-tooltip": HTMLPTooltipElement;
25
87
  }
26
88
  }
27
89
  declare namespace LocalJSX {
28
90
  interface PButton {
29
91
  /**
30
- * The name
92
+ * The variant of the button
31
93
  */
32
94
  "variant"?: 'primary' | 'secondary';
33
95
  }
96
+ interface PIcon {
97
+ /**
98
+ * Wether to flip the icon horizontally or vertically
99
+ */
100
+ "flip"?: 'horizontal' | 'vertical';
101
+ /**
102
+ * Wether to rotate the icon x degrees
103
+ */
104
+ "rotate"?: number;
105
+ /**
106
+ * The size of the icon, using tailwind sizes
107
+ */
108
+ "size"?: string;
109
+ /**
110
+ * The icon the be displayed
111
+ */
112
+ "variant"?: IconVariant;
113
+ }
114
+ interface PIllustration {
115
+ /**
116
+ * The icon the be displayed
117
+ */
118
+ "variant"?: IllustrationVariant;
119
+ }
120
+ interface PTooltip {
121
+ /**
122
+ * The content of the tooltip
123
+ */
124
+ "content"?: any;
125
+ /**
126
+ * Wether to force show the tooltip
127
+ */
128
+ "forceShow"?: boolean;
129
+ /**
130
+ * The content of the tooltip
131
+ */
132
+ "placement"?: Placement;
133
+ }
34
134
  interface IntrinsicElements {
35
135
  "p-button": PButton;
136
+ "p-icon": PIcon;
137
+ "p-illustration": PIllustration;
138
+ "p-tooltip": PTooltip;
36
139
  }
37
140
  }
38
141
  export { LocalJSX as JSX };
@@ -40,6 +143,9 @@ declare module "@stencil/core" {
40
143
  export namespace JSX {
41
144
  interface IntrinsicElements {
42
145
  "p-button": LocalJSX.PButton & JSXBase.HTMLAttributes<HTMLPButtonElement>;
146
+ "p-icon": LocalJSX.PIcon & JSXBase.HTMLAttributes<HTMLPIconElement>;
147
+ "p-illustration": LocalJSX.PIllustration & JSXBase.HTMLAttributes<HTMLPIllustrationElement>;
148
+ "p-tooltip": LocalJSX.PTooltip & JSXBase.HTMLAttributes<HTMLPTooltipElement>;
43
149
  }
44
150
  }
45
151
  }
@@ -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;
@@ -0,0 +1,11 @@
1
+ declare const _default: {
2
+ 'empty-state': string;
3
+ departments: string;
4
+ expenses: string;
5
+ functions: string;
6
+ questions: string;
7
+ 'sick-leave': string;
8
+ 'time-off': string;
9
+ 'upgrade-to-hr': string;
10
+ };
11
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paperless/core",
3
- "version": "0.0.3-alpha.5",
3
+ "version": "0.1.0-alpha.0",
4
4
  "description": "Stencil Component Starter",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -37,6 +37,7 @@
37
37
  "yarn:publish": "yarn publish"
38
38
  },
39
39
  "dependencies": {
40
+ "@popperjs/core": "^2.11.5",
40
41
  "@stencil/core": "^2.13.0"
41
42
  },
42
43
  "devDependencies": {
@@ -52,6 +53,7 @@
52
53
  "jest": "^27.4.5",
53
54
  "jest-cli": "^27.4.5",
54
55
  "puppeteer": "^10.0.0",
56
+ "stencil-inline-svg": "^1.1.0",
55
57
  "stencil-tailwind-plugin": "^1.3.0",
56
58
  "tailwindcss": "~3.1.4",
57
59
  "workbox-build": "4.3.1"
@@ -1,2 +0,0 @@
1
- let e,t,n=!1;const l="undefined"!=typeof window?window:{},s=l.document||{head:{}},o={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},r=e=>Promise.resolve(e),c=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),i=new WeakMap,u=e=>"sc-"+e.o,a={},f=e=>"object"==(e=typeof e)||"function"===e,$=(e,t,...n)=>{let l=null,s=!1,o=!1;const r=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!f(l))&&(l+=""),s&&o?r[r.length-1].i+=l:r.push(s?h(null,l):l),o=s)};if(c(n),t){const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}const i=h(e,null);return i.u=t,r.length>0&&(i.$=r),i},h=(e,t)=>({t:0,h:e,i:t,p:null,$:null,u:null}),p={},d=(e,t,n,l)=>{if(n!==l&&(t.toLowerCase(),"class"===t)){const t=e.classList,s=m(n),o=m(l);t.remove(...s.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!s.includes(e))))}},y=/\s/,m=e=>e?e.split(y):[],b=(e,t,n,l)=>{const s=11===t.p.nodeType&&t.p.host?t.p.host:t.p,o=e&&e.u||a,r=t.u||a;for(l in o)l in r||d(s,l,o[l],void 0);for(l in r)d(s,l,o[l],r[l])},w=(t,n,l)=>{const o=n.$[l];let r,c,i=0;if(r=o.p=s.createElement(o.h),b(null,o),null!=e&&r["s-si"]!==e&&r.classList.add(r["s-si"]=e),o.$)for(i=0;i<o.$.length;++i)c=w(t,o,i),c&&r.appendChild(c);return r},S=(e,n,l,s,o,r)=>{let c,i=e;for(i.shadowRoot&&i.tagName===t&&(i=i.shadowRoot);o<=r;++o)s[o]&&(c=w(null,l,o),c&&(s[o].p=c,i.insertBefore(c,n)))},g=(e,t,n,l)=>{for(;t<=n;++t)(l=e[t])&&l.p.remove()},j=(e,t)=>e.h===t.h,v=(e,t)=>{const n=t.p=e.p,l=e.$,s=t.$;"slot"===t.h||b(e,t),null!==l&&null!==s?((e,t,n,l)=>{let s,o=0,r=0,c=t.length-1,i=t[0],u=t[c],a=l.length-1,f=l[0],$=l[a];for(;o<=c&&r<=a;)null==i?i=t[++o]:null==u?u=t[--c]:null==f?f=l[++r]:null==$?$=l[--a]:j(i,f)?(v(i,f),i=t[++o],f=l[++r]):j(u,$)?(v(u,$),u=t[--c],$=l[--a]):j(i,$)?(v(i,$),e.insertBefore(i.p,u.p.nextSibling),i=t[++o],$=l[--a]):j(u,f)?(v(u,f),e.insertBefore(u.p,i.p),u=t[--c],f=l[++r]):(s=w(t&&t[r],n,r),f=l[++r],s&&i.p.parentNode.insertBefore(s,i.p));o>c?S(e,null==l[a+1]?null:l[a+1].p,n,l,r,a):r>a&&g(t,o,c)})(n,l,t,s):null!==s?S(n,null,t,s,0,s.length-1):null!==l&&g(l,0,l.length-1)},M=(e,t)=>{t&&!e.m&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.m=t)))},k=(e,t)=>{if(e.t|=16,!(4&e.t))return M(e,e.S),K((()=>C(e,t)));e.t|=512},C=(e,t)=>{const n=e.g;return N(void 0,(()=>O(e,n,t)))},O=async(e,t,n)=>{const l=e.j,o=l["s-rc"];n&&(e=>{const t=e.v,n=e.j,l=t.t,o=((e,t)=>{let n=u(t);const l=_.get(n);if(e=11===e.nodeType?e:s,l)if("string"==typeof l){let t,o=i.get(e=e.head||e);o||i.set(e,o=new Set),o.has(n)||(t=s.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),o&&o.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);P(e,t),o&&(o.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>x(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},P=(n,l)=>{try{l=l.render(),n.t&=-17,n.t|=2,((n,l)=>{const s=n.j,o=n.M||h(null,null),r=(e=>e&&e.h===p)(l)?l:$(null,null,l);t=s.tagName,r.h=null,r.t|=4,n.M=r,r.p=o.p=s.shadowRoot||s,e=s["s-sc"],v(o,r)})(n,l)}catch(e){F(e,n.j)}return null},x=e=>{const t=e.j,n=e.S;64&e.t||(e.t|=64,T(t),e.k(t),n||E()),e.m&&(e.m(),e.m=void 0),512&e.t&&J((()=>k(e,!1))),e.t&=-517},E=()=>{T(s.documentElement),J((()=>(e=>{const t=o.ce("appload",{detail:{namespace:"paperless"}});return e.dispatchEvent(t),t})(l)))},N=(e,t)=>e&&e.then?e.then(t):t(),T=e=>e.classList.add("hydrated"),A=(e,t,n)=>{if(t.C){const l=Object.entries(t.C),s=e.prototype;if(l.map((([e,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(s,e,{get(){return((e,t)=>U(this).O.get(t))(0,e)},set(n){((e,t,n,l)=>{const s=U(e),o=s.O.get(t),r=s.t,c=s.g;n=((e,t)=>null==e||f(e)?e:1&t?e+"":e)(n,l.C[t][0]),8&r&&void 0!==o||n===o||Number.isNaN(o)&&Number.isNaN(n)||(s.O.set(t,n),c&&2==(18&r)&&k(s,!1))})(this,e,n,t)},configurable:!0,enumerable:!0})})),1&n){const t=new Map;s.attributeChangedCallback=function(e,n,l){o.jmp((()=>{const n=t.get(e);if(this.hasOwnProperty(n))l=this[n],delete this[n];else if(s.hasOwnProperty(n)&&"number"==typeof this[n]&&this[n]==l)return;this[n]=(null!==l||"boolean"!=typeof this[n])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,n])=>{const l=n[1]||e;return t.set(l,e),l}))}}return e},L=(e,t={})=>{const n=[],r=t.exclude||[],i=l.customElements,a=s.head,f=a.querySelector("meta[charset]"),$=s.createElement("style"),h=[];let p,d=!0;Object.assign(o,t),o.l=new URL(t.resourcesUrl||"./",s.baseURI).href,e.map((e=>{e[1].map((t=>{const l={t:t[0],o:t[1],C:t[2],P:t[3]};l.C=t[2];const s=l.o,a=class extends HTMLElement{constructor(e){super(e),q(e=this,l),1&l.t&&e.attachShadow({mode:"open"})}connectedCallback(){p&&(clearTimeout(p),p=null),d?h.push(this):o.jmp((()=>(e=>{if(0==(1&o.t)){const t=U(e),n=t.v,l=()=>{};if(!(1&t.t)){t.t|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){M(t,t.S=n);break}}n.C&&Object.entries(n.C).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,s)=>{if(0==(32&t.t)){{if(t.t|=32,(s=V(n)).then){const e=()=>{};s=await s,e()}s.isProxied||(A(s,n,2),s.isProxied=!0);const e=()=>{};t.t|=8;try{new s(t)}catch(e){F(e)}t.t&=-9,e()}if(s.style){let e=s.style;const t=u(n);if(!_.has(t)){const l=()=>{};((e,t,n)=>{let l=_.get(e);c&&n?(l=l||new CSSStyleSheet,l.replace(t)):l=t,_.set(e,l)})(t,e,!!(1&n.t)),l()}}}const o=t.S,r=()=>k(t,!0);o&&o["s-rc"]?o["s-rc"].push(r):r()})(0,t,n)}l()}})(this)))}disconnectedCallback(){o.jmp((()=>{}))}componentOnReady(){return U(this).N}};l.T=e[0],r.includes(s)||i.get(s)||(n.push(s),i.define(s,A(a,l,1)))}))})),$.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",$.setAttribute("data-styles",""),a.insertBefore($,f?f.nextSibling:a.firstChild),d=!1,h.length?h.map((e=>e.connectedCallback())):o.jmp((()=>p=setTimeout(E,30)))},R=new WeakMap,U=e=>R.get(e),W=(e,t)=>R.set(t.g=e,t),q=(e,t)=>{const n={t:0,j:e,v:t,O:new Map};return n.N=new Promise((e=>n.k=e)),e["s-p"]=[],e["s-rc"]=[],R.set(e,n)},F=(e,t)=>(0,console.error)(e,t),H=new Map,V=e=>{const t=e.o.replace(/-/g,"_"),n=e.T,l=H.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(H.set(n,e),e[t])),F)
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},_=new Map,z=[],B=[],D=(e,t)=>l=>{e.push(l),n||(n=!0,t&&4&o.t?J(I):o.raf(I))},G=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){F(e)}e.length=0},I=()=>{G(z),G(B),(n=z.length>0)&&o.raf(I)},J=e=>r().then(e),K=D(B,!0);export{L as b,$ as h,r as p,W as r}