@amiceli/papierjs 0.6.0 → 0.8.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 (238) hide show
  1. package/dist/cjs/{index-82a72b67.js → index-e53c626b.js} +76 -10
  2. package/dist/cjs/index-e53c626b.js.map +1 -0
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/p-accordion.cjs.entry.js +4 -4
  5. package/dist/cjs/p-alert.cjs.entry.js +2 -2
  6. package/dist/cjs/p-badge.cjs.entry.js +2 -2
  7. package/dist/cjs/p-breadcrumb-item.cjs.entry.js +2 -2
  8. package/dist/cjs/p-breadcrumb.cjs.entry.js +2 -2
  9. package/dist/cjs/{p-dropdown_2.cjs.entry.js → p-button_3.cjs.entry.js} +55 -6
  10. package/dist/cjs/p-button_3.cjs.entry.js.map +1 -0
  11. package/dist/cjs/p-dropdown-preview.cjs.entry.js +2 -2
  12. package/dist/cjs/p-icon.cjs.entry.js +513 -0
  13. package/dist/cjs/p-icon.cjs.entry.js.map +1 -0
  14. package/dist/cjs/p-input-text.cjs.entry.js +13 -7
  15. package/dist/cjs/p-input-text.cjs.entry.js.map +1 -1
  16. package/dist/cjs/p-leaf.cjs.entry.js +2 -2
  17. package/dist/cjs/p-modal-preview.cjs.entry.js +2 -2
  18. package/dist/cjs/p-modal.cjs.entry.js +31 -0
  19. package/dist/cjs/p-modal.cjs.entry.js.map +1 -0
  20. package/dist/cjs/p-notification-handler.cjs.entry.js +57 -0
  21. package/dist/cjs/p-notification-handler.cjs.entry.js.map +1 -0
  22. package/dist/cjs/p-notification-preview.cjs.entry.js +41 -0
  23. package/dist/cjs/p-notification-preview.cjs.entry.js.map +1 -0
  24. package/dist/cjs/p-notification.cjs.entry.js +64 -0
  25. package/dist/cjs/p-notification.cjs.entry.js.map +1 -0
  26. package/dist/cjs/p-progress-bar.cjs.entry.js +12 -2
  27. package/dist/cjs/p-progress-bar.cjs.entry.js.map +1 -1
  28. package/dist/cjs/p-slider.cjs.entry.js +3 -3
  29. package/dist/cjs/p-switch-tile.cjs.entry.js +3 -3
  30. package/dist/cjs/p-switch.cjs.entry.js +4 -4
  31. package/dist/cjs/p-tab.cjs.entry.js +3 -3
  32. package/dist/cjs/p-tabs.cjs.entry.js +4 -4
  33. package/dist/cjs/p-tooltip.cjs.entry.js +3 -3
  34. package/dist/cjs/p-tooltip.cjs.entry.js.map +1 -1
  35. package/dist/cjs/papierjs.cjs.js +2 -2
  36. package/dist/collection/collection-manifest.json +4 -0
  37. package/dist/collection/components/accordion/accordion.js +3 -3
  38. package/dist/collection/components/alert/alert.js +1 -1
  39. package/dist/collection/components/badge/badge.js +1 -1
  40. package/dist/collection/components/breadcrumb/breadcrumb/breadcrumb.js +1 -1
  41. package/dist/collection/components/breadcrumb/breadcrumb-item/breadcrumb-item.js +1 -1
  42. package/dist/collection/components/button/button.js +1 -1
  43. package/dist/collection/components/dropdown/dropdown/dropdown.js +2 -2
  44. package/dist/collection/components/dropdown/dropdown/stories/dropdown.preview.js +1 -1
  45. package/dist/collection/components/dropdown/dropdown-item/dropdown-item.js +2 -2
  46. package/dist/collection/components/form/input-text/input-text.css +3 -0
  47. package/dist/collection/components/form/input-text/input-text.js +32 -13
  48. package/dist/collection/components/form/input-text/input-text.js.map +1 -1
  49. package/dist/collection/components/form/slider/sliders.js +2 -2
  50. package/dist/collection/components/form/switch/switch.js +3 -3
  51. package/dist/collection/components/form/switch-tile/switch-tile.js +2 -2
  52. package/dist/collection/components/leaf/leaf.js +1 -1
  53. package/dist/collection/components/modal/modal.css +3 -0
  54. package/dist/collection/components/modal/modal.js +1 -1
  55. package/dist/collection/components/modal/stories/modal.preview.js +1 -1
  56. package/dist/collection/components/notification/p-notification/p-notification.css +3260 -0
  57. package/dist/collection/components/notification/p-notification/p-notification.js +164 -0
  58. package/dist/collection/components/notification/p-notification/p-notification.js.map +1 -0
  59. package/dist/collection/components/notification/p-notification-handler/p-notification-handler.css +13 -0
  60. package/dist/collection/components/notification/p-notification-handler/p-notification-handler.js +100 -0
  61. package/dist/collection/components/notification/p-notification-handler/p-notification-handler.js.map +1 -0
  62. package/dist/collection/components/notification/p-notification-handler/stories/p-notification-preview.js +36 -0
  63. package/dist/collection/components/notification/p-notification-handler/stories/p-notification-preview.js.map +1 -0
  64. package/dist/collection/components/p-icon/icons.js +489 -0
  65. package/dist/collection/components/p-icon/icons.js.map +1 -0
  66. package/dist/collection/components/p-icon/p-icon.css +6 -0
  67. package/dist/collection/components/p-icon/p-icon.js +92 -0
  68. package/dist/collection/components/p-icon/p-icon.js.map +1 -0
  69. package/dist/collection/components/p-icon/stories/p-icon-playground.stories.js +34 -0
  70. package/dist/collection/components/progress-bar/progress-bar.js +35 -1
  71. package/dist/collection/components/progress-bar/progress-bar.js.map +1 -1
  72. package/dist/collection/components/tabs/tab/tab.js +2 -2
  73. package/dist/collection/components/tabs/tabs/tabs.js +3 -3
  74. package/dist/collection/components/tooltip/tooltip.css +3 -0
  75. package/dist/collection/components/tooltip/tooltip.js +1 -1
  76. package/dist/components/index.js +1 -1
  77. package/dist/components/p-5422fb93.js +78 -0
  78. package/dist/components/p-5422fb93.js.map +1 -0
  79. package/dist/components/{p-44ddcae9.js → p-5f80356d.js} +3 -3
  80. package/dist/components/{p-44ddcae9.js.map → p-5f80356d.js.map} +1 -1
  81. package/dist/components/{p-1754e5cb.js → p-8d6f74ef.js} +4 -4
  82. package/dist/components/p-8d6f74ef.js.map +1 -0
  83. package/dist/components/p-9d035fcd.js +81 -0
  84. package/dist/components/p-9d035fcd.js.map +1 -0
  85. package/dist/components/p-accordion.js +4 -4
  86. package/dist/components/p-alert.js +2 -2
  87. package/dist/components/{p-ee5f2278.js → p-b79c14df.js} +4 -4
  88. package/dist/components/{p-ee5f2278.js.map → p-b79c14df.js.map} +1 -1
  89. package/dist/components/p-badge.js +2 -2
  90. package/dist/components/p-breadcrumb-item.js +2 -2
  91. package/dist/components/p-breadcrumb.js +2 -2
  92. package/dist/components/p-button.js +1 -1
  93. package/dist/components/{p-eea4fbc1.js → p-c65086ec.js} +53 -4
  94. package/dist/components/p-c65086ec.js.map +1 -0
  95. package/dist/components/{p-18fc6353.js → p-df78f867.js} +4 -4
  96. package/dist/components/{p-18fc6353.js.map → p-df78f867.js.map} +1 -1
  97. package/dist/components/p-dropdown-item.js +1 -1
  98. package/dist/components/p-dropdown-preview.js +6 -6
  99. package/dist/components/p-dropdown.js +1 -1
  100. package/dist/components/p-icon.d.ts +11 -0
  101. package/dist/components/p-icon.js +533 -0
  102. package/dist/components/p-icon.js.map +1 -0
  103. package/dist/components/p-input-text.js +15 -9
  104. package/dist/components/p-input-text.js.map +1 -1
  105. package/dist/components/p-leaf.js +2 -2
  106. package/dist/components/p-modal-preview.js +4 -4
  107. package/dist/components/p-modal.js +1 -1
  108. package/dist/components/p-notification-handler.d.ts +11 -0
  109. package/dist/components/p-notification-handler.js +8 -0
  110. package/dist/components/p-notification-handler.js.map +1 -0
  111. package/dist/components/p-notification-preview.d.ts +11 -0
  112. package/dist/components/p-notification-preview.js +87 -0
  113. package/dist/components/p-notification-preview.js.map +1 -0
  114. package/dist/components/p-notification.d.ts +11 -0
  115. package/dist/components/p-notification.js +8 -0
  116. package/dist/components/p-notification.js.map +1 -0
  117. package/dist/components/p-progress-bar.js +15 -3
  118. package/dist/components/p-progress-bar.js.map +1 -1
  119. package/dist/components/p-slider.js +3 -3
  120. package/dist/components/p-switch-tile.js +3 -3
  121. package/dist/components/p-switch.js +4 -4
  122. package/dist/components/p-tab.js +3 -3
  123. package/dist/components/p-tabs.js +4 -4
  124. package/dist/components/p-tooltip.js +3 -3
  125. package/dist/components/p-tooltip.js.map +1 -1
  126. package/dist/esm/{index-4646b002.js → index-aee2eada.js} +76 -10
  127. package/dist/esm/index-aee2eada.js.map +1 -0
  128. package/dist/esm/loader.js +3 -3
  129. package/dist/esm/p-accordion.entry.js +4 -4
  130. package/dist/esm/p-alert.entry.js +2 -2
  131. package/dist/esm/p-badge.entry.js +2 -2
  132. package/dist/esm/p-breadcrumb-item.entry.js +2 -2
  133. package/dist/esm/p-breadcrumb.entry.js +2 -2
  134. package/dist/esm/{p-dropdown_2.entry.js → p-button_3.entry.js} +55 -7
  135. package/dist/esm/p-button_3.entry.js.map +1 -0
  136. package/dist/esm/p-dropdown-preview.entry.js +2 -2
  137. package/dist/esm/p-icon.entry.js +509 -0
  138. package/dist/esm/p-icon.entry.js.map +1 -0
  139. package/dist/esm/p-input-text.entry.js +13 -7
  140. package/dist/esm/p-input-text.entry.js.map +1 -1
  141. package/dist/esm/p-leaf.entry.js +2 -2
  142. package/dist/esm/p-modal-preview.entry.js +2 -2
  143. package/dist/esm/p-modal.entry.js +27 -0
  144. package/dist/esm/p-modal.entry.js.map +1 -0
  145. package/dist/esm/p-notification-handler.entry.js +53 -0
  146. package/dist/esm/p-notification-handler.entry.js.map +1 -0
  147. package/dist/esm/p-notification-preview.entry.js +37 -0
  148. package/dist/esm/p-notification-preview.entry.js.map +1 -0
  149. package/dist/esm/p-notification.entry.js +60 -0
  150. package/dist/esm/p-notification.entry.js.map +1 -0
  151. package/dist/esm/p-progress-bar.entry.js +12 -2
  152. package/dist/esm/p-progress-bar.entry.js.map +1 -1
  153. package/dist/esm/p-slider.entry.js +3 -3
  154. package/dist/esm/p-switch-tile.entry.js +3 -3
  155. package/dist/esm/p-switch.entry.js +4 -4
  156. package/dist/esm/p-tab.entry.js +3 -3
  157. package/dist/esm/p-tabs.entry.js +4 -4
  158. package/dist/esm/p-tooltip.entry.js +3 -3
  159. package/dist/esm/p-tooltip.entry.js.map +1 -1
  160. package/dist/esm/papierjs.js +3 -3
  161. package/dist/papierjs/p-1ebff2d7.entry.js +2 -0
  162. package/dist/papierjs/p-1ebff2d7.entry.js.map +1 -0
  163. package/dist/papierjs/{p-5a7955a5.entry.js → p-23b08b62.entry.js} +2 -2
  164. package/dist/papierjs/{p-d98c84b2.entry.js → p-3bffe4aa.entry.js} +2 -2
  165. package/dist/papierjs/p-3bffe4aa.entry.js.map +1 -0
  166. package/dist/papierjs/{p-e6765c48.entry.js → p-3e170867.entry.js} +2 -2
  167. package/dist/papierjs/p-3e170867.entry.js.map +1 -0
  168. package/dist/papierjs/{p-3231294d.entry.js → p-3efab78f.entry.js} +2 -2
  169. package/dist/papierjs/p-4cb8bb30.js +3 -0
  170. package/dist/papierjs/p-4cb8bb30.js.map +1 -0
  171. package/dist/papierjs/{p-b5ab3669.entry.js → p-67278128.entry.js} +2 -2
  172. package/dist/papierjs/p-67278128.entry.js.map +1 -0
  173. package/dist/papierjs/p-71473b6e.entry.js +2 -0
  174. package/dist/papierjs/p-7cdc4dca.entry.js +2 -0
  175. package/dist/papierjs/p-7cdc4dca.entry.js.map +1 -0
  176. package/dist/papierjs/{p-08ab91b8.entry.js → p-7db7534b.entry.js} +2 -2
  177. package/dist/papierjs/{p-2a173336.entry.js → p-907ecded.entry.js} +2 -2
  178. package/dist/papierjs/{p-6af8d60e.entry.js → p-91b8f71b.entry.js} +2 -2
  179. package/dist/papierjs/{p-dfbbdb7b.entry.js → p-9bf96d13.entry.js} +2 -2
  180. package/dist/papierjs/{p-f21b09d8.entry.js → p-a502278a.entry.js} +2 -2
  181. package/dist/papierjs/{p-deb8c796.entry.js → p-b8e34895.entry.js} +2 -2
  182. package/dist/papierjs/p-c6b354fb.entry.js +2 -0
  183. package/dist/papierjs/p-c6b354fb.entry.js.map +1 -0
  184. package/dist/papierjs/p-cc121ae9.entry.js +2 -0
  185. package/dist/papierjs/p-cc121ae9.entry.js.map +1 -0
  186. package/dist/papierjs/{p-005736fe.entry.js → p-cce903e9.entry.js} +2 -2
  187. package/dist/papierjs/p-cec4e9a5.entry.js +2 -0
  188. package/dist/papierjs/p-cec4e9a5.entry.js.map +1 -0
  189. package/dist/papierjs/p-d3e11d7d.entry.js +2 -0
  190. package/dist/papierjs/p-d3e11d7d.entry.js.map +1 -0
  191. package/dist/papierjs/{p-8a2f9883.entry.js → p-d9e2e92c.entry.js} +2 -2
  192. package/dist/papierjs/{p-5f1c0163.entry.js → p-db166642.entry.js} +2 -2
  193. package/dist/papierjs/{p-ba661e41.entry.js → p-f2b657b2.entry.js} +2 -2
  194. package/dist/papierjs/papierjs.esm.js +1 -1
  195. package/dist/papierjs/papierjs.esm.js.map +1 -1
  196. package/dist/types/components/form/input-text/input-text.d.ts +4 -2
  197. package/dist/types/components/notification/p-notification/p-notification.d.ts +16 -0
  198. package/dist/types/components/notification/p-notification-handler/p-notification-handler.d.ts +18 -0
  199. package/dist/types/components/notification/p-notification-handler/stories/p-notification-preview.d.ts +7 -0
  200. package/dist/types/components/p-icon/icons.d.ts +1 -0
  201. package/dist/types/components/p-icon/p-icon.d.ts +7 -0
  202. package/dist/types/components/progress-bar/progress-bar.d.ts +4 -0
  203. package/dist/types/components.d.ts +91 -2
  204. package/package.json +7 -4
  205. package/readme.md +5 -4
  206. package/dist/cjs/index-82a72b67.js.map +0 -1
  207. package/dist/cjs/p-button_2.cjs.entry.js +0 -80
  208. package/dist/cjs/p-button_2.cjs.entry.js.map +0 -1
  209. package/dist/cjs/p-dropdown_2.cjs.entry.js.map +0 -1
  210. package/dist/components/p-1754e5cb.js.map +0 -1
  211. package/dist/components/p-eea4fbc1.js.map +0 -1
  212. package/dist/esm/index-4646b002.js.map +0 -1
  213. package/dist/esm/p-button_2.entry.js +0 -75
  214. package/dist/esm/p-button_2.entry.js.map +0 -1
  215. package/dist/esm/p-dropdown_2.entry.js.map +0 -1
  216. package/dist/papierjs/p-2f044192.entry.js +0 -2
  217. package/dist/papierjs/p-2f044192.entry.js.map +0 -1
  218. package/dist/papierjs/p-4ed82d68.js +0 -3
  219. package/dist/papierjs/p-4ed82d68.js.map +0 -1
  220. package/dist/papierjs/p-a3c7e705.entry.js +0 -2
  221. package/dist/papierjs/p-b5ab3669.entry.js.map +0 -1
  222. package/dist/papierjs/p-d98c84b2.entry.js.map +0 -1
  223. package/dist/papierjs/p-e6765c48.entry.js.map +0 -1
  224. package/dist/papierjs/p-fc85498a.entry.js +0 -2
  225. package/dist/papierjs/p-fc85498a.entry.js.map +0 -1
  226. /package/dist/papierjs/{p-5a7955a5.entry.js.map → p-23b08b62.entry.js.map} +0 -0
  227. /package/dist/papierjs/{p-3231294d.entry.js.map → p-3efab78f.entry.js.map} +0 -0
  228. /package/dist/papierjs/{p-a3c7e705.entry.js.map → p-71473b6e.entry.js.map} +0 -0
  229. /package/dist/papierjs/{p-08ab91b8.entry.js.map → p-7db7534b.entry.js.map} +0 -0
  230. /package/dist/papierjs/{p-2a173336.entry.js.map → p-907ecded.entry.js.map} +0 -0
  231. /package/dist/papierjs/{p-6af8d60e.entry.js.map → p-91b8f71b.entry.js.map} +0 -0
  232. /package/dist/papierjs/{p-dfbbdb7b.entry.js.map → p-9bf96d13.entry.js.map} +0 -0
  233. /package/dist/papierjs/{p-f21b09d8.entry.js.map → p-a502278a.entry.js.map} +0 -0
  234. /package/dist/papierjs/{p-deb8c796.entry.js.map → p-b8e34895.entry.js.map} +0 -0
  235. /package/dist/papierjs/{p-005736fe.entry.js.map → p-cce903e9.entry.js.map} +0 -0
  236. /package/dist/papierjs/{p-8a2f9883.entry.js.map → p-d9e2e92c.entry.js.map} +0 -0
  237. /package/dist/papierjs/{p-5f1c0163.entry.js.map → p-db166642.entry.js.map} +0 -0
  238. /package/dist/papierjs/{p-ba661e41.entry.js.map → p-f2b657b2.entry.js.map} +0 -0
@@ -5,6 +5,8 @@
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 { PushOptions } from "./components/notification/p-notification-handler/p-notification-handler";
9
+ export { PushOptions } from "./components/notification/p-notification-handler/p-notification-handler";
8
10
  export namespace Components {
9
11
  interface PAccordion {
10
12
  "open": boolean;
@@ -58,11 +60,16 @@ export namespace Components {
58
60
  }
59
61
  interface PDropdownPreview {
60
62
  }
63
+ interface PIcon {
64
+ "color": string;
65
+ "icon": string;
66
+ "size": number;
67
+ }
61
68
  interface PInputText {
62
69
  "block"?: boolean;
63
70
  "dark"?: boolean;
64
71
  "disabled"?: boolean;
65
- "hasError"?: boolean;
72
+ "error"?: string;
66
73
  "label"?: string;
67
74
  "placeholder"?: string;
68
75
  "required"?: boolean;
@@ -78,7 +85,19 @@ export namespace Components {
78
85
  interface PModalPreview {
79
86
  "title"?: boolean;
80
87
  }
88
+ interface PNotification {
89
+ "canclose": boolean;
90
+ "text": string;
91
+ "timestamp": string;
92
+ "type"?: string;
93
+ }
94
+ interface PNotificationHandler {
95
+ "pushNotification": (options: PushOptions) => Promise<void>;
96
+ }
97
+ interface PNotificationPreview {
98
+ }
81
99
  interface PProgressBar {
100
+ "auto"?: number;
82
101
  "dark"?: boolean;
83
102
  "striped"?: boolean;
84
103
  "type"?: ProgressBarColor;
@@ -149,6 +168,10 @@ export interface PModalCustomEvent<T> extends CustomEvent<T> {
149
168
  detail: T;
150
169
  target: HTMLPModalElement;
151
170
  }
171
+ export interface PNotificationCustomEvent<T> extends CustomEvent<T> {
172
+ detail: T;
173
+ target: HTMLPNotificationElement;
174
+ }
152
175
  export interface PSliderCustomEvent<T> extends CustomEvent<T> {
153
176
  detail: T;
154
177
  target: HTMLPSliderElement;
@@ -249,8 +272,15 @@ declare global {
249
272
  prototype: HTMLPDropdownPreviewElement;
250
273
  new (): HTMLPDropdownPreviewElement;
251
274
  };
275
+ interface HTMLPIconElement extends Components.PIcon, HTMLStencilElement {
276
+ }
277
+ var HTMLPIconElement: {
278
+ prototype: HTMLPIconElement;
279
+ new (): HTMLPIconElement;
280
+ };
252
281
  interface HTMLPInputTextElementEventMap {
253
282
  "change": string;
283
+ "input": string;
254
284
  }
255
285
  interface HTMLPInputTextElement extends Components.PInputText, HTMLStencilElement {
256
286
  addEventListener<K extends keyof HTMLPInputTextElementEventMap>(type: K, listener: (this: HTMLPInputTextElement, ev: PInputTextCustomEvent<HTMLPInputTextElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
@@ -295,6 +325,35 @@ declare global {
295
325
  prototype: HTMLPModalPreviewElement;
296
326
  new (): HTMLPModalPreviewElement;
297
327
  };
328
+ interface HTMLPNotificationElementEventMap {
329
+ "close": string;
330
+ }
331
+ interface HTMLPNotificationElement extends Components.PNotification, HTMLStencilElement {
332
+ addEventListener<K extends keyof HTMLPNotificationElementEventMap>(type: K, listener: (this: HTMLPNotificationElement, ev: PNotificationCustomEvent<HTMLPNotificationElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
333
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
334
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
335
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
336
+ removeEventListener<K extends keyof HTMLPNotificationElementEventMap>(type: K, listener: (this: HTMLPNotificationElement, ev: PNotificationCustomEvent<HTMLPNotificationElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
337
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
338
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
339
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
340
+ }
341
+ var HTMLPNotificationElement: {
342
+ prototype: HTMLPNotificationElement;
343
+ new (): HTMLPNotificationElement;
344
+ };
345
+ interface HTMLPNotificationHandlerElement extends Components.PNotificationHandler, HTMLStencilElement {
346
+ }
347
+ var HTMLPNotificationHandlerElement: {
348
+ prototype: HTMLPNotificationHandlerElement;
349
+ new (): HTMLPNotificationHandlerElement;
350
+ };
351
+ interface HTMLPNotificationPreviewElement extends Components.PNotificationPreview, HTMLStencilElement {
352
+ }
353
+ var HTMLPNotificationPreviewElement: {
354
+ prototype: HTMLPNotificationPreviewElement;
355
+ new (): HTMLPNotificationPreviewElement;
356
+ };
298
357
  interface HTMLPProgressBarElement extends Components.PProgressBar, HTMLStencilElement {
299
358
  }
300
359
  var HTMLPProgressBarElement: {
@@ -380,10 +439,14 @@ declare global {
380
439
  "p-dropdown": HTMLPDropdownElement;
381
440
  "p-dropdown-item": HTMLPDropdownItemElement;
382
441
  "p-dropdown-preview": HTMLPDropdownPreviewElement;
442
+ "p-icon": HTMLPIconElement;
383
443
  "p-input-text": HTMLPInputTextElement;
384
444
  "p-leaf": HTMLPLeafElement;
385
445
  "p-modal": HTMLPModalElement;
386
446
  "p-modal-preview": HTMLPModalPreviewElement;
447
+ "p-notification": HTMLPNotificationElement;
448
+ "p-notification-handler": HTMLPNotificationHandlerElement;
449
+ "p-notification-preview": HTMLPNotificationPreviewElement;
387
450
  "p-progress-bar": HTMLPProgressBarElement;
388
451
  "p-slider": HTMLPSliderElement;
389
452
  "p-switch": HTMLPSwitchElement;
@@ -449,13 +512,19 @@ declare namespace LocalJSX {
449
512
  }
450
513
  interface PDropdownPreview {
451
514
  }
515
+ interface PIcon {
516
+ "color"?: string;
517
+ "icon"?: string;
518
+ "size"?: number;
519
+ }
452
520
  interface PInputText {
453
521
  "block"?: boolean;
454
522
  "dark"?: boolean;
455
523
  "disabled"?: boolean;
456
- "hasError"?: boolean;
524
+ "error"?: string;
457
525
  "label"?: string;
458
526
  "onChange"?: (event: PInputTextCustomEvent<string>) => void;
527
+ "onInput"?: (event: PInputTextCustomEvent<string>) => void;
459
528
  "placeholder"?: string;
460
529
  "required"?: boolean;
461
530
  "value"?: string;
@@ -469,7 +538,19 @@ declare namespace LocalJSX {
469
538
  interface PModalPreview {
470
539
  "title"?: boolean;
471
540
  }
541
+ interface PNotification {
542
+ "canclose"?: boolean;
543
+ "onClose"?: (event: PNotificationCustomEvent<string>) => void;
544
+ "text"?: string;
545
+ "timestamp"?: string;
546
+ "type"?: string;
547
+ }
548
+ interface PNotificationHandler {
549
+ }
550
+ interface PNotificationPreview {
551
+ }
472
552
  interface PProgressBar {
553
+ "auto"?: number;
473
554
  "dark"?: boolean;
474
555
  "striped"?: boolean;
475
556
  "type"?: ProgressBarColor;
@@ -532,10 +613,14 @@ declare namespace LocalJSX {
532
613
  "p-dropdown": PDropdown;
533
614
  "p-dropdown-item": PDropdownItem;
534
615
  "p-dropdown-preview": PDropdownPreview;
616
+ "p-icon": PIcon;
535
617
  "p-input-text": PInputText;
536
618
  "p-leaf": PLeaf;
537
619
  "p-modal": PModal;
538
620
  "p-modal-preview": PModalPreview;
621
+ "p-notification": PNotification;
622
+ "p-notification-handler": PNotificationHandler;
623
+ "p-notification-preview": PNotificationPreview;
539
624
  "p-progress-bar": PProgressBar;
540
625
  "p-slider": PSlider;
541
626
  "p-switch": PSwitch;
@@ -558,10 +643,14 @@ declare module "@stencil/core" {
558
643
  "p-dropdown": LocalJSX.PDropdown & JSXBase.HTMLAttributes<HTMLPDropdownElement>;
559
644
  "p-dropdown-item": LocalJSX.PDropdownItem & JSXBase.HTMLAttributes<HTMLPDropdownItemElement>;
560
645
  "p-dropdown-preview": LocalJSX.PDropdownPreview & JSXBase.HTMLAttributes<HTMLPDropdownPreviewElement>;
646
+ "p-icon": LocalJSX.PIcon & JSXBase.HTMLAttributes<HTMLPIconElement>;
561
647
  "p-input-text": LocalJSX.PInputText & JSXBase.HTMLAttributes<HTMLPInputTextElement>;
562
648
  "p-leaf": LocalJSX.PLeaf & JSXBase.HTMLAttributes<HTMLPLeafElement>;
563
649
  "p-modal": LocalJSX.PModal & JSXBase.HTMLAttributes<HTMLPModalElement>;
564
650
  "p-modal-preview": LocalJSX.PModalPreview & JSXBase.HTMLAttributes<HTMLPModalPreviewElement>;
651
+ "p-notification": LocalJSX.PNotification & JSXBase.HTMLAttributes<HTMLPNotificationElement>;
652
+ "p-notification-handler": LocalJSX.PNotificationHandler & JSXBase.HTMLAttributes<HTMLPNotificationHandlerElement>;
653
+ "p-notification-preview": LocalJSX.PNotificationPreview & JSXBase.HTMLAttributes<HTMLPNotificationPreviewElement>;
565
654
  "p-progress-bar": LocalJSX.PProgressBar & JSXBase.HTMLAttributes<HTMLPProgressBarElement>;
566
655
  "p-slider": LocalJSX.PSlider & JSXBase.HTMLAttributes<HTMLPSliderElement>;
567
656
  "p-switch": LocalJSX.PSwitch & JSXBase.HTMLAttributes<HTMLPSwitchElement>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amiceli/papierjs",
3
- "version": "0.6.0",
3
+ "version": "0.8.0",
4
4
  "description": "Papercss web components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -40,8 +40,9 @@
40
40
  "loader/"
41
41
  ],
42
42
  "scripts": {
43
- "build": "stencil build",
44
- "build:watch": "stencil build --watch",
43
+ "build:icon": "node scripts/copy-svg.js",
44
+ "build": "npm run build:icon && stencil build",
45
+ "build:watch": "npm run build:icon && stencil build --watch",
45
46
  "start": "stencil build --dev --watch --serve",
46
47
  "test": "stencil test --spec --e2e",
47
48
  "test.watch": "stencil test --spec --e2e --watchAll",
@@ -71,6 +72,7 @@
71
72
  "jest": "^29.7.0",
72
73
  "jest-cli": "^29.7.0",
73
74
  "lefthook": "^1.10.10",
75
+ "stencil-inline-svg": "^1.1.0",
74
76
  "storybook": "^8.5.8"
75
77
  },
76
78
  "optionalDependencies": {
@@ -79,6 +81,7 @@
79
81
  "license": "MIT",
80
82
  "dependencies": {
81
83
  "feather-icons": "^4.29.2",
82
- "papercss": "^1.9.2"
84
+ "papercss": "^1.9.2",
85
+ "pixelarticons": "^1.8.1"
83
86
  }
84
87
  }
package/readme.md CHANGED
@@ -23,16 +23,17 @@ Available components:
23
23
  - [X] Modals
24
24
  - [X] Switch / Switch Tile
25
25
  - [ ] NavBar
26
- - [ ] Tabs
26
+ - [X] Tabs
27
27
  - [X] Popover as tooltip
28
+ - [X] Icon (with [pixelarticons](https://github.com/halfmage/pixelarticons))
28
29
 
29
30
  Component features :
30
- - [X] dropdown since `v0.1.0`
31
+ - [X] dropdown since
31
32
  - [X] `p-leaf` allow to use papercss style anywhere
32
- - [ ] notification
33
+ - [X] notification
33
34
  - [ ] spinner
34
35
  - [ ] password
35
- - [X] accordion since `v0.4.0`
36
+ - [X] accordion
36
37
 
37
38
  ## Using papercss
38
39