@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.
- package/dist/cjs/{index-82a72b67.js → index-e53c626b.js} +76 -10
- package/dist/cjs/index-e53c626b.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/p-accordion.cjs.entry.js +4 -4
- package/dist/cjs/p-alert.cjs.entry.js +2 -2
- package/dist/cjs/p-badge.cjs.entry.js +2 -2
- package/dist/cjs/p-breadcrumb-item.cjs.entry.js +2 -2
- package/dist/cjs/p-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/{p-dropdown_2.cjs.entry.js → p-button_3.cjs.entry.js} +55 -6
- package/dist/cjs/p-button_3.cjs.entry.js.map +1 -0
- package/dist/cjs/p-dropdown-preview.cjs.entry.js +2 -2
- package/dist/cjs/p-icon.cjs.entry.js +513 -0
- package/dist/cjs/p-icon.cjs.entry.js.map +1 -0
- package/dist/cjs/p-input-text.cjs.entry.js +13 -7
- package/dist/cjs/p-input-text.cjs.entry.js.map +1 -1
- package/dist/cjs/p-leaf.cjs.entry.js +2 -2
- package/dist/cjs/p-modal-preview.cjs.entry.js +2 -2
- package/dist/cjs/p-modal.cjs.entry.js +31 -0
- package/dist/cjs/p-modal.cjs.entry.js.map +1 -0
- package/dist/cjs/p-notification-handler.cjs.entry.js +57 -0
- package/dist/cjs/p-notification-handler.cjs.entry.js.map +1 -0
- package/dist/cjs/p-notification-preview.cjs.entry.js +41 -0
- package/dist/cjs/p-notification-preview.cjs.entry.js.map +1 -0
- package/dist/cjs/p-notification.cjs.entry.js +64 -0
- package/dist/cjs/p-notification.cjs.entry.js.map +1 -0
- package/dist/cjs/p-progress-bar.cjs.entry.js +12 -2
- package/dist/cjs/p-progress-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/p-slider.cjs.entry.js +3 -3
- package/dist/cjs/p-switch-tile.cjs.entry.js +3 -3
- package/dist/cjs/p-switch.cjs.entry.js +4 -4
- package/dist/cjs/p-tab.cjs.entry.js +3 -3
- package/dist/cjs/p-tabs.cjs.entry.js +4 -4
- package/dist/cjs/p-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/p-tooltip.cjs.entry.js.map +1 -1
- package/dist/cjs/papierjs.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +4 -0
- package/dist/collection/components/accordion/accordion.js +3 -3
- package/dist/collection/components/alert/alert.js +1 -1
- package/dist/collection/components/badge/badge.js +1 -1
- package/dist/collection/components/breadcrumb/breadcrumb/breadcrumb.js +1 -1
- package/dist/collection/components/breadcrumb/breadcrumb-item/breadcrumb-item.js +1 -1
- package/dist/collection/components/button/button.js +1 -1
- package/dist/collection/components/dropdown/dropdown/dropdown.js +2 -2
- package/dist/collection/components/dropdown/dropdown/stories/dropdown.preview.js +1 -1
- package/dist/collection/components/dropdown/dropdown-item/dropdown-item.js +2 -2
- package/dist/collection/components/form/input-text/input-text.css +3 -0
- package/dist/collection/components/form/input-text/input-text.js +32 -13
- package/dist/collection/components/form/input-text/input-text.js.map +1 -1
- package/dist/collection/components/form/slider/sliders.js +2 -2
- package/dist/collection/components/form/switch/switch.js +3 -3
- package/dist/collection/components/form/switch-tile/switch-tile.js +2 -2
- package/dist/collection/components/leaf/leaf.js +1 -1
- package/dist/collection/components/modal/modal.css +3 -0
- package/dist/collection/components/modal/modal.js +1 -1
- package/dist/collection/components/modal/stories/modal.preview.js +1 -1
- package/dist/collection/components/notification/p-notification/p-notification.css +3260 -0
- package/dist/collection/components/notification/p-notification/p-notification.js +164 -0
- package/dist/collection/components/notification/p-notification/p-notification.js.map +1 -0
- package/dist/collection/components/notification/p-notification-handler/p-notification-handler.css +13 -0
- package/dist/collection/components/notification/p-notification-handler/p-notification-handler.js +100 -0
- package/dist/collection/components/notification/p-notification-handler/p-notification-handler.js.map +1 -0
- package/dist/collection/components/notification/p-notification-handler/stories/p-notification-preview.js +36 -0
- package/dist/collection/components/notification/p-notification-handler/stories/p-notification-preview.js.map +1 -0
- package/dist/collection/components/p-icon/icons.js +489 -0
- package/dist/collection/components/p-icon/icons.js.map +1 -0
- package/dist/collection/components/p-icon/p-icon.css +6 -0
- package/dist/collection/components/p-icon/p-icon.js +92 -0
- package/dist/collection/components/p-icon/p-icon.js.map +1 -0
- package/dist/collection/components/p-icon/stories/p-icon-playground.stories.js +34 -0
- package/dist/collection/components/progress-bar/progress-bar.js +35 -1
- package/dist/collection/components/progress-bar/progress-bar.js.map +1 -1
- package/dist/collection/components/tabs/tab/tab.js +2 -2
- package/dist/collection/components/tabs/tabs/tabs.js +3 -3
- package/dist/collection/components/tooltip/tooltip.css +3 -0
- package/dist/collection/components/tooltip/tooltip.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/p-5422fb93.js +78 -0
- package/dist/components/p-5422fb93.js.map +1 -0
- package/dist/components/{p-44ddcae9.js → p-5f80356d.js} +3 -3
- package/dist/components/{p-44ddcae9.js.map → p-5f80356d.js.map} +1 -1
- package/dist/components/{p-1754e5cb.js → p-8d6f74ef.js} +4 -4
- package/dist/components/p-8d6f74ef.js.map +1 -0
- package/dist/components/p-9d035fcd.js +81 -0
- package/dist/components/p-9d035fcd.js.map +1 -0
- package/dist/components/p-accordion.js +4 -4
- package/dist/components/p-alert.js +2 -2
- package/dist/components/{p-ee5f2278.js → p-b79c14df.js} +4 -4
- package/dist/components/{p-ee5f2278.js.map → p-b79c14df.js.map} +1 -1
- package/dist/components/p-badge.js +2 -2
- package/dist/components/p-breadcrumb-item.js +2 -2
- package/dist/components/p-breadcrumb.js +2 -2
- package/dist/components/p-button.js +1 -1
- package/dist/components/{p-eea4fbc1.js → p-c65086ec.js} +53 -4
- package/dist/components/p-c65086ec.js.map +1 -0
- package/dist/components/{p-18fc6353.js → p-df78f867.js} +4 -4
- package/dist/components/{p-18fc6353.js.map → p-df78f867.js.map} +1 -1
- package/dist/components/p-dropdown-item.js +1 -1
- package/dist/components/p-dropdown-preview.js +6 -6
- package/dist/components/p-dropdown.js +1 -1
- package/dist/components/p-icon.d.ts +11 -0
- package/dist/components/p-icon.js +533 -0
- package/dist/components/p-icon.js.map +1 -0
- package/dist/components/p-input-text.js +15 -9
- package/dist/components/p-input-text.js.map +1 -1
- package/dist/components/p-leaf.js +2 -2
- package/dist/components/p-modal-preview.js +4 -4
- package/dist/components/p-modal.js +1 -1
- package/dist/components/p-notification-handler.d.ts +11 -0
- package/dist/components/p-notification-handler.js +8 -0
- package/dist/components/p-notification-handler.js.map +1 -0
- package/dist/components/p-notification-preview.d.ts +11 -0
- package/dist/components/p-notification-preview.js +87 -0
- package/dist/components/p-notification-preview.js.map +1 -0
- package/dist/components/p-notification.d.ts +11 -0
- package/dist/components/p-notification.js +8 -0
- package/dist/components/p-notification.js.map +1 -0
- package/dist/components/p-progress-bar.js +15 -3
- package/dist/components/p-progress-bar.js.map +1 -1
- package/dist/components/p-slider.js +3 -3
- package/dist/components/p-switch-tile.js +3 -3
- package/dist/components/p-switch.js +4 -4
- package/dist/components/p-tab.js +3 -3
- package/dist/components/p-tabs.js +4 -4
- package/dist/components/p-tooltip.js +3 -3
- package/dist/components/p-tooltip.js.map +1 -1
- package/dist/esm/{index-4646b002.js → index-aee2eada.js} +76 -10
- package/dist/esm/index-aee2eada.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/p-accordion.entry.js +4 -4
- package/dist/esm/p-alert.entry.js +2 -2
- package/dist/esm/p-badge.entry.js +2 -2
- package/dist/esm/p-breadcrumb-item.entry.js +2 -2
- package/dist/esm/p-breadcrumb.entry.js +2 -2
- package/dist/esm/{p-dropdown_2.entry.js → p-button_3.entry.js} +55 -7
- package/dist/esm/p-button_3.entry.js.map +1 -0
- package/dist/esm/p-dropdown-preview.entry.js +2 -2
- package/dist/esm/p-icon.entry.js +509 -0
- package/dist/esm/p-icon.entry.js.map +1 -0
- package/dist/esm/p-input-text.entry.js +13 -7
- package/dist/esm/p-input-text.entry.js.map +1 -1
- package/dist/esm/p-leaf.entry.js +2 -2
- package/dist/esm/p-modal-preview.entry.js +2 -2
- package/dist/esm/p-modal.entry.js +27 -0
- package/dist/esm/p-modal.entry.js.map +1 -0
- package/dist/esm/p-notification-handler.entry.js +53 -0
- package/dist/esm/p-notification-handler.entry.js.map +1 -0
- package/dist/esm/p-notification-preview.entry.js +37 -0
- package/dist/esm/p-notification-preview.entry.js.map +1 -0
- package/dist/esm/p-notification.entry.js +60 -0
- package/dist/esm/p-notification.entry.js.map +1 -0
- package/dist/esm/p-progress-bar.entry.js +12 -2
- package/dist/esm/p-progress-bar.entry.js.map +1 -1
- package/dist/esm/p-slider.entry.js +3 -3
- package/dist/esm/p-switch-tile.entry.js +3 -3
- package/dist/esm/p-switch.entry.js +4 -4
- package/dist/esm/p-tab.entry.js +3 -3
- package/dist/esm/p-tabs.entry.js +4 -4
- package/dist/esm/p-tooltip.entry.js +3 -3
- package/dist/esm/p-tooltip.entry.js.map +1 -1
- package/dist/esm/papierjs.js +3 -3
- package/dist/papierjs/p-1ebff2d7.entry.js +2 -0
- package/dist/papierjs/p-1ebff2d7.entry.js.map +1 -0
- package/dist/papierjs/{p-5a7955a5.entry.js → p-23b08b62.entry.js} +2 -2
- package/dist/papierjs/{p-d98c84b2.entry.js → p-3bffe4aa.entry.js} +2 -2
- package/dist/papierjs/p-3bffe4aa.entry.js.map +1 -0
- package/dist/papierjs/{p-e6765c48.entry.js → p-3e170867.entry.js} +2 -2
- package/dist/papierjs/p-3e170867.entry.js.map +1 -0
- package/dist/papierjs/{p-3231294d.entry.js → p-3efab78f.entry.js} +2 -2
- package/dist/papierjs/p-4cb8bb30.js +3 -0
- package/dist/papierjs/p-4cb8bb30.js.map +1 -0
- package/dist/papierjs/{p-b5ab3669.entry.js → p-67278128.entry.js} +2 -2
- package/dist/papierjs/p-67278128.entry.js.map +1 -0
- package/dist/papierjs/p-71473b6e.entry.js +2 -0
- package/dist/papierjs/p-7cdc4dca.entry.js +2 -0
- package/dist/papierjs/p-7cdc4dca.entry.js.map +1 -0
- package/dist/papierjs/{p-08ab91b8.entry.js → p-7db7534b.entry.js} +2 -2
- package/dist/papierjs/{p-2a173336.entry.js → p-907ecded.entry.js} +2 -2
- package/dist/papierjs/{p-6af8d60e.entry.js → p-91b8f71b.entry.js} +2 -2
- package/dist/papierjs/{p-dfbbdb7b.entry.js → p-9bf96d13.entry.js} +2 -2
- package/dist/papierjs/{p-f21b09d8.entry.js → p-a502278a.entry.js} +2 -2
- package/dist/papierjs/{p-deb8c796.entry.js → p-b8e34895.entry.js} +2 -2
- package/dist/papierjs/p-c6b354fb.entry.js +2 -0
- package/dist/papierjs/p-c6b354fb.entry.js.map +1 -0
- package/dist/papierjs/p-cc121ae9.entry.js +2 -0
- package/dist/papierjs/p-cc121ae9.entry.js.map +1 -0
- package/dist/papierjs/{p-005736fe.entry.js → p-cce903e9.entry.js} +2 -2
- package/dist/papierjs/p-cec4e9a5.entry.js +2 -0
- package/dist/papierjs/p-cec4e9a5.entry.js.map +1 -0
- package/dist/papierjs/p-d3e11d7d.entry.js +2 -0
- package/dist/papierjs/p-d3e11d7d.entry.js.map +1 -0
- package/dist/papierjs/{p-8a2f9883.entry.js → p-d9e2e92c.entry.js} +2 -2
- package/dist/papierjs/{p-5f1c0163.entry.js → p-db166642.entry.js} +2 -2
- package/dist/papierjs/{p-ba661e41.entry.js → p-f2b657b2.entry.js} +2 -2
- package/dist/papierjs/papierjs.esm.js +1 -1
- package/dist/papierjs/papierjs.esm.js.map +1 -1
- package/dist/types/components/form/input-text/input-text.d.ts +4 -2
- package/dist/types/components/notification/p-notification/p-notification.d.ts +16 -0
- package/dist/types/components/notification/p-notification-handler/p-notification-handler.d.ts +18 -0
- package/dist/types/components/notification/p-notification-handler/stories/p-notification-preview.d.ts +7 -0
- package/dist/types/components/p-icon/icons.d.ts +1 -0
- package/dist/types/components/p-icon/p-icon.d.ts +7 -0
- package/dist/types/components/progress-bar/progress-bar.d.ts +4 -0
- package/dist/types/components.d.ts +91 -2
- package/package.json +7 -4
- package/readme.md +5 -4
- package/dist/cjs/index-82a72b67.js.map +0 -1
- package/dist/cjs/p-button_2.cjs.entry.js +0 -80
- package/dist/cjs/p-button_2.cjs.entry.js.map +0 -1
- package/dist/cjs/p-dropdown_2.cjs.entry.js.map +0 -1
- package/dist/components/p-1754e5cb.js.map +0 -1
- package/dist/components/p-eea4fbc1.js.map +0 -1
- package/dist/esm/index-4646b002.js.map +0 -1
- package/dist/esm/p-button_2.entry.js +0 -75
- package/dist/esm/p-button_2.entry.js.map +0 -1
- package/dist/esm/p-dropdown_2.entry.js.map +0 -1
- package/dist/papierjs/p-2f044192.entry.js +0 -2
- package/dist/papierjs/p-2f044192.entry.js.map +0 -1
- package/dist/papierjs/p-4ed82d68.js +0 -3
- package/dist/papierjs/p-4ed82d68.js.map +0 -1
- package/dist/papierjs/p-a3c7e705.entry.js +0 -2
- package/dist/papierjs/p-b5ab3669.entry.js.map +0 -1
- package/dist/papierjs/p-d98c84b2.entry.js.map +0 -1
- package/dist/papierjs/p-e6765c48.entry.js.map +0 -1
- package/dist/papierjs/p-fc85498a.entry.js +0 -2
- package/dist/papierjs/p-fc85498a.entry.js.map +0 -1
- /package/dist/papierjs/{p-5a7955a5.entry.js.map → p-23b08b62.entry.js.map} +0 -0
- /package/dist/papierjs/{p-3231294d.entry.js.map → p-3efab78f.entry.js.map} +0 -0
- /package/dist/papierjs/{p-a3c7e705.entry.js.map → p-71473b6e.entry.js.map} +0 -0
- /package/dist/papierjs/{p-08ab91b8.entry.js.map → p-7db7534b.entry.js.map} +0 -0
- /package/dist/papierjs/{p-2a173336.entry.js.map → p-907ecded.entry.js.map} +0 -0
- /package/dist/papierjs/{p-6af8d60e.entry.js.map → p-91b8f71b.entry.js.map} +0 -0
- /package/dist/papierjs/{p-dfbbdb7b.entry.js.map → p-9bf96d13.entry.js.map} +0 -0
- /package/dist/papierjs/{p-f21b09d8.entry.js.map → p-a502278a.entry.js.map} +0 -0
- /package/dist/papierjs/{p-deb8c796.entry.js.map → p-b8e34895.entry.js.map} +0 -0
- /package/dist/papierjs/{p-005736fe.entry.js.map → p-cce903e9.entry.js.map} +0 -0
- /package/dist/papierjs/{p-8a2f9883.entry.js.map → p-d9e2e92c.entry.js.map} +0 -0
- /package/dist/papierjs/{p-5f1c0163.entry.js.map → p-db166642.entry.js.map} +0 -0
- /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
|
-
"
|
|
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
|
-
"
|
|
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.
|
|
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": "
|
|
44
|
-
"build:
|
|
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
|
-
- [
|
|
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
|
|
31
|
+
- [X] dropdown since
|
|
31
32
|
- [X] `p-leaf` allow to use papercss style anywhere
|
|
32
|
-
- [
|
|
33
|
+
- [X] notification
|
|
33
34
|
- [ ] spinner
|
|
34
35
|
- [ ] password
|
|
35
|
-
- [X] accordion
|
|
36
|
+
- [X] accordion
|
|
36
37
|
|
|
37
38
|
## Using papercss
|
|
38
39
|
|