@paperless/react 0.1.0-alpha.4 → 0.1.0-alpha.401
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 +3446 -0
- package/README.md +27 -2
- package/dist/components/stencil/index.d.ts +61 -5
- package/dist/components/stencil/index.js +56 -0
- package/dist/components/stencil/index.js.map +1 -1
- package/dist/components/stencil/react-component-lib/createComponent.js +1 -1
- package/dist/components/stencil/react-component-lib/createComponent.js.map +1 -1
- package/dist/components/stencil/react-component-lib/createOverlayComponent.js +1 -1
- package/dist/components/stencil/react-component-lib/createOverlayComponent.js.map +1 -1
- package/dist/components/stencil/react-component-lib/interfaces.js +1 -0
- package/dist/components/stencil/react-component-lib/utils/case.js.map +1 -1
- package/dist/components/stencil/react-component-lib/utils/index.js +2 -4
- package/dist/components/stencil/react-component-lib/utils/index.js.map +1 -1
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<br />
|
|
8
8
|
|
|
9
9
|
<span>
|
|
10
|
-
A collection of React & Angular components that conform to the Employes design system.
|
|
10
|
+
A collection of Web, React & Angular components that conform to the Employes design system.
|
|
11
11
|
</span>
|
|
12
12
|
|
|
13
13
|
</p>
|
|
@@ -63,6 +63,12 @@ yarn add @paperless/core
|
|
|
63
63
|
#### React
|
|
64
64
|
|
|
65
65
|
```jsx
|
|
66
|
+
// setup
|
|
67
|
+
import { applyPolyfills, defineCustomElements } from '@paperless/core/loader';
|
|
68
|
+
|
|
69
|
+
applyPolyfills().then(() => defineCustomElements());
|
|
70
|
+
|
|
71
|
+
// usage
|
|
66
72
|
import { Button } from '@employes/paperless';
|
|
67
73
|
|
|
68
74
|
const App = () => <Button>Click me!</Button>;
|
|
@@ -71,16 +77,35 @@ const App = () => <Button>Click me!</Button>;
|
|
|
71
77
|
#### Angular
|
|
72
78
|
|
|
73
79
|
```jsx
|
|
80
|
+
// main.ts
|
|
81
|
+
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
82
|
+
import { applyPolyfills, defineCustomElements } from '@paperless/core/loader';
|
|
83
|
+
|
|
84
|
+
applyPolyfills()
|
|
85
|
+
.then(() => defineCustomElements())
|
|
86
|
+
.then(() => platformBrowserDynamic().bootstrapModule(AppModule))
|
|
87
|
+
.catch((err) => console.error(err));
|
|
88
|
+
|
|
89
|
+
// App Module
|
|
74
90
|
import { PaperlessModule } from '@employes/paperless-ngx';
|
|
75
91
|
|
|
76
92
|
@NgModule({
|
|
77
93
|
declarations: [AppComponent],
|
|
78
|
-
imports: [
|
|
94
|
+
imports: [
|
|
95
|
+
BrowserModule,
|
|
96
|
+
|
|
97
|
+
// add this in your app module
|
|
98
|
+
PaperlessModule.forRoot(),
|
|
99
|
+
|
|
100
|
+
// add this in any module using paperless components
|
|
101
|
+
PaperlessModule,
|
|
102
|
+
],
|
|
79
103
|
providers: [],
|
|
80
104
|
bootstrap: [AppComponent],
|
|
81
105
|
})
|
|
82
106
|
export class AppModule {}
|
|
83
107
|
|
|
108
|
+
// Any component
|
|
84
109
|
@Component({
|
|
85
110
|
selector: 'app-root',
|
|
86
111
|
templateUrl: `
|
|
@@ -1,7 +1,63 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { JSX } from '@paperless/core';
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
3
|
+
export declare const PAccordion: import("react").ForwardRefExoticComponent<JSX.PAccordion & Omit<import("react").HTMLAttributes<HTMLPAccordionElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPAccordionElement>>;
|
|
4
|
+
export declare const PAttachment: import("react").ForwardRefExoticComponent<JSX.PAttachment & Omit<import("react").HTMLAttributes<HTMLPAttachmentElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPAttachmentElement>>;
|
|
5
|
+
export declare const PAvatar: import("react").ForwardRefExoticComponent<JSX.PAvatar & Omit<import("react").HTMLAttributes<HTMLPAvatarElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPAvatarElement>>;
|
|
6
|
+
export declare const PAvatarGroup: import("react").ForwardRefExoticComponent<JSX.PAvatarGroup & Omit<import("react").HTMLAttributes<HTMLPAvatarGroupElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPAvatarGroupElement>>;
|
|
7
|
+
export declare const PBackdrop: import("react").ForwardRefExoticComponent<JSX.PBackdrop & Omit<import("react").HTMLAttributes<HTMLPBackdropElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPBackdropElement>>;
|
|
8
|
+
export declare const PButton: import("react").ForwardRefExoticComponent<JSX.PButton & Omit<import("react").HTMLAttributes<HTMLPButtonElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPButtonElement>>;
|
|
9
|
+
export declare const PCalendar: import("react").ForwardRefExoticComponent<JSX.PCalendar & Omit<import("react").HTMLAttributes<HTMLPCalendarElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPCalendarElement>>;
|
|
10
|
+
export declare const PCardBody: import("react").ForwardRefExoticComponent<JSX.PCardBody & Omit<import("react").HTMLAttributes<HTMLPCardBodyElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPCardBodyElement>>;
|
|
11
|
+
export declare const PCardContainer: import("react").ForwardRefExoticComponent<JSX.PCardContainer & Omit<import("react").HTMLAttributes<HTMLPCardContainerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPCardContainerElement>>;
|
|
12
|
+
export declare const PCardHeader: import("react").ForwardRefExoticComponent<JSX.PCardHeader & Omit<import("react").HTMLAttributes<HTMLPCardHeaderElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPCardHeaderElement>>;
|
|
13
|
+
export declare const PContentSlider: import("react").ForwardRefExoticComponent<JSX.PContentSlider & Omit<import("react").HTMLAttributes<HTMLPContentSliderElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPContentSliderElement>>;
|
|
14
|
+
export declare const PCounter: import("react").ForwardRefExoticComponent<JSX.PCounter & Omit<import("react").HTMLAttributes<HTMLPCounterElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPCounterElement>>;
|
|
15
|
+
export declare const PDatepicker: import("react").ForwardRefExoticComponent<JSX.PDatepicker & Omit<import("react").HTMLAttributes<HTMLPDatepickerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPDatepickerElement>>;
|
|
16
|
+
export declare const PDivider: import("react").ForwardRefExoticComponent<JSX.PDivider & Omit<import("react").HTMLAttributes<HTMLPDividerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPDividerElement>>;
|
|
17
|
+
export declare const PDrawer: import("react").ForwardRefExoticComponent<JSX.PDrawer & Omit<import("react").HTMLAttributes<HTMLPDrawerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPDrawerElement>>;
|
|
18
|
+
export declare const PDrawerBody: import("react").ForwardRefExoticComponent<JSX.PDrawerBody & Omit<import("react").HTMLAttributes<HTMLPDrawerBodyElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPDrawerBodyElement>>;
|
|
19
|
+
export declare const PDrawerContainer: import("react").ForwardRefExoticComponent<JSX.PDrawerContainer & Omit<import("react").HTMLAttributes<HTMLPDrawerContainerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPDrawerContainerElement>>;
|
|
20
|
+
export declare const PDrawerHeader: import("react").ForwardRefExoticComponent<JSX.PDrawerHeader & Omit<import("react").HTMLAttributes<HTMLPDrawerHeaderElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPDrawerHeaderElement>>;
|
|
21
|
+
export declare const PDropdown: import("react").ForwardRefExoticComponent<JSX.PDropdown & Omit<import("react").HTMLAttributes<HTMLPDropdownElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPDropdownElement>>;
|
|
22
|
+
export declare const PDropdownMenuContainer: import("react").ForwardRefExoticComponent<JSX.PDropdownMenuContainer & Omit<import("react").HTMLAttributes<HTMLPDropdownMenuContainerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPDropdownMenuContainerElement>>;
|
|
23
|
+
export declare const PDropdownMenuItem: import("react").ForwardRefExoticComponent<JSX.PDropdownMenuItem & Omit<import("react").HTMLAttributes<HTMLPDropdownMenuItemElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPDropdownMenuItemElement>>;
|
|
24
|
+
export declare const PHelper: import("react").ForwardRefExoticComponent<JSX.PHelper & Omit<import("react").HTMLAttributes<HTMLPHelperElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPHelperElement>>;
|
|
25
|
+
export declare const PIcon: import("react").ForwardRefExoticComponent<JSX.PIcon & Omit<import("react").HTMLAttributes<HTMLPIconElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPIconElement>>;
|
|
26
|
+
export declare const PIllustration: import("react").ForwardRefExoticComponent<JSX.PIllustration & Omit<import("react").HTMLAttributes<HTMLPIllustrationElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPIllustrationElement>>;
|
|
27
|
+
export declare const PInfoPanel: import("react").ForwardRefExoticComponent<JSX.PInfoPanel & Omit<import("react").HTMLAttributes<HTMLPInfoPanelElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPInfoPanelElement>>;
|
|
28
|
+
export declare const PInputError: import("react").ForwardRefExoticComponent<JSX.PInputError & Omit<import("react").HTMLAttributes<HTMLPInputErrorElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPInputErrorElement>>;
|
|
29
|
+
export declare const PInputGroup: import("react").ForwardRefExoticComponent<JSX.PInputGroup & Omit<import("react").HTMLAttributes<HTMLPInputGroupElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPInputGroupElement>>;
|
|
30
|
+
export declare const PLabel: import("react").ForwardRefExoticComponent<JSX.PLabel & Omit<import("react").HTMLAttributes<HTMLPLabelElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPLabelElement>>;
|
|
31
|
+
export declare const PLayout: import("react").ForwardRefExoticComponent<JSX.PLayout & Omit<import("react").HTMLAttributes<HTMLPLayoutElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPLayoutElement>>;
|
|
32
|
+
export declare const PLoader: import("react").ForwardRefExoticComponent<JSX.PLoader & Omit<import("react").HTMLAttributes<HTMLPLoaderElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPLoaderElement>>;
|
|
33
|
+
export declare const PModal: import("react").ForwardRefExoticComponent<JSX.PModal & Omit<import("react").HTMLAttributes<HTMLPModalElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPModalElement>>;
|
|
34
|
+
export declare const PModalBody: import("react").ForwardRefExoticComponent<JSX.PModalBody & Omit<import("react").HTMLAttributes<HTMLPModalBodyElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPModalBodyElement>>;
|
|
35
|
+
export declare const PModalContainer: import("react").ForwardRefExoticComponent<JSX.PModalContainer & Omit<import("react").HTMLAttributes<HTMLPModalContainerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPModalContainerElement>>;
|
|
36
|
+
export declare const PModalFooter: import("react").ForwardRefExoticComponent<JSX.PModalFooter & Omit<import("react").HTMLAttributes<HTMLPModalFooterElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPModalFooterElement>>;
|
|
37
|
+
export declare const PModalHeader: import("react").ForwardRefExoticComponent<JSX.PModalHeader & Omit<import("react").HTMLAttributes<HTMLPModalHeaderElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPModalHeaderElement>>;
|
|
38
|
+
export declare const PNavbar: import("react").ForwardRefExoticComponent<JSX.PNavbar & Omit<import("react").HTMLAttributes<HTMLPNavbarElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPNavbarElement>>;
|
|
39
|
+
export declare const PNavigationItem: import("react").ForwardRefExoticComponent<JSX.PNavigationItem & Omit<import("react").HTMLAttributes<HTMLPNavigationItemElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPNavigationItemElement>>;
|
|
40
|
+
export declare const PPageSizeSelect: import("react").ForwardRefExoticComponent<JSX.PPageSizeSelect & Omit<import("react").HTMLAttributes<HTMLPPageSizeSelectElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPPageSizeSelectElement>>;
|
|
41
|
+
export declare const PPagination: import("react").ForwardRefExoticComponent<JSX.PPagination & Omit<import("react").HTMLAttributes<HTMLPPaginationElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPPaginationElement>>;
|
|
42
|
+
export declare const PPaginationItem: import("react").ForwardRefExoticComponent<JSX.PPaginationItem & Omit<import("react").HTMLAttributes<HTMLPPaginationItemElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPPaginationItemElement>>;
|
|
43
|
+
export declare const PProfile: import("react").ForwardRefExoticComponent<JSX.PProfile & Omit<import("react").HTMLAttributes<HTMLPProfileElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPProfileElement>>;
|
|
44
|
+
export declare const PSegmentContainer: import("react").ForwardRefExoticComponent<JSX.PSegmentContainer & Omit<import("react").HTMLAttributes<HTMLPSegmentContainerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPSegmentContainerElement>>;
|
|
45
|
+
export declare const PSegmentItem: import("react").ForwardRefExoticComponent<JSX.PSegmentItem & Omit<import("react").HTMLAttributes<HTMLPSegmentItemElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPSegmentItemElement>>;
|
|
46
|
+
export declare const PSelect: import("react").ForwardRefExoticComponent<JSX.PSelect & Omit<import("react").HTMLAttributes<HTMLPSelectElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPSelectElement>>;
|
|
47
|
+
export declare const PSliderIndicator: import("react").ForwardRefExoticComponent<JSX.PSliderIndicator & Omit<import("react").HTMLAttributes<HTMLPSliderIndicatorElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPSliderIndicatorElement>>;
|
|
48
|
+
export declare const PStatus: import("react").ForwardRefExoticComponent<JSX.PStatus & Omit<import("react").HTMLAttributes<HTMLPStatusElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPStatusElement>>;
|
|
49
|
+
export declare const PStepper: import("react").ForwardRefExoticComponent<JSX.PStepper & Omit<import("react").HTMLAttributes<HTMLPStepperElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPStepperElement>>;
|
|
50
|
+
export declare const PStepperItem: import("react").ForwardRefExoticComponent<JSX.PStepperItem & Omit<import("react").HTMLAttributes<HTMLPStepperItemElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPStepperItemElement>>;
|
|
51
|
+
export declare const PStepperLine: import("react").ForwardRefExoticComponent<JSX.PStepperLine & Omit<import("react").HTMLAttributes<HTMLPStepperLineElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPStepperLineElement>>;
|
|
52
|
+
export declare const PTabGroup: import("react").ForwardRefExoticComponent<JSX.PTabGroup & Omit<import("react").HTMLAttributes<HTMLPTabGroupElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPTabGroupElement>>;
|
|
53
|
+
export declare const PTabItem: import("react").ForwardRefExoticComponent<JSX.PTabItem & Omit<import("react").HTMLAttributes<HTMLPTabItemElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPTabItemElement>>;
|
|
54
|
+
export declare const PTable: import("react").ForwardRefExoticComponent<JSX.PTable & Omit<import("react").HTMLAttributes<HTMLPTableElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPTableElement>>;
|
|
55
|
+
export declare const PTableCell: import("react").ForwardRefExoticComponent<JSX.PTableCell & Omit<import("react").HTMLAttributes<HTMLPTableCellElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPTableCellElement>>;
|
|
56
|
+
export declare const PTableColumn: import("react").ForwardRefExoticComponent<JSX.PTableColumn & Omit<import("react").HTMLAttributes<HTMLPTableColumnElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPTableColumnElement>>;
|
|
57
|
+
export declare const PTableContainer: import("react").ForwardRefExoticComponent<JSX.PTableContainer & Omit<import("react").HTMLAttributes<HTMLPTableContainerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPTableContainerElement>>;
|
|
58
|
+
export declare const PTableFooter: import("react").ForwardRefExoticComponent<JSX.PTableFooter & Omit<import("react").HTMLAttributes<HTMLPTableFooterElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPTableFooterElement>>;
|
|
59
|
+
export declare const PTableHeader: import("react").ForwardRefExoticComponent<JSX.PTableHeader & Omit<import("react").HTMLAttributes<HTMLPTableHeaderElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPTableHeaderElement>>;
|
|
60
|
+
export declare const PTableRow: import("react").ForwardRefExoticComponent<JSX.PTableRow & Omit<import("react").HTMLAttributes<HTMLPTableRowElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPTableRowElement>>;
|
|
61
|
+
export declare const PToast: import("react").ForwardRefExoticComponent<JSX.PToast & Omit<import("react").HTMLAttributes<HTMLPToastElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPToastElement>>;
|
|
62
|
+
export declare const PToastContainer: import("react").ForwardRefExoticComponent<JSX.PToastContainer & Omit<import("react").HTMLAttributes<HTMLPToastContainerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPToastContainerElement>>;
|
|
63
|
+
export declare const PTooltip: import("react").ForwardRefExoticComponent<JSX.PTooltip & Omit<import("react").HTMLAttributes<HTMLPTooltipElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPTooltipElement>>;
|
|
@@ -4,9 +4,65 @@
|
|
|
4
4
|
import { createReactComponent } from './react-component-lib';
|
|
5
5
|
import { defineCustomElements } from '@paperless/core/loader';
|
|
6
6
|
defineCustomElements();
|
|
7
|
+
export const PAccordion = /*@__PURE__*/ createReactComponent('p-accordion');
|
|
8
|
+
export const PAttachment = /*@__PURE__*/ createReactComponent('p-attachment');
|
|
9
|
+
export const PAvatar = /*@__PURE__*/ createReactComponent('p-avatar');
|
|
10
|
+
export const PAvatarGroup = /*@__PURE__*/ createReactComponent('p-avatar-group');
|
|
11
|
+
export const PBackdrop = /*@__PURE__*/ createReactComponent('p-backdrop');
|
|
7
12
|
export const PButton = /*@__PURE__*/ createReactComponent('p-button');
|
|
13
|
+
export const PCalendar = /*@__PURE__*/ createReactComponent('p-calendar');
|
|
14
|
+
export const PCardBody = /*@__PURE__*/ createReactComponent('p-card-body');
|
|
15
|
+
export const PCardContainer = /*@__PURE__*/ createReactComponent('p-card-container');
|
|
16
|
+
export const PCardHeader = /*@__PURE__*/ createReactComponent('p-card-header');
|
|
17
|
+
export const PContentSlider = /*@__PURE__*/ createReactComponent('p-content-slider');
|
|
18
|
+
export const PCounter = /*@__PURE__*/ createReactComponent('p-counter');
|
|
19
|
+
export const PDatepicker = /*@__PURE__*/ createReactComponent('p-datepicker');
|
|
20
|
+
export const PDivider = /*@__PURE__*/ createReactComponent('p-divider');
|
|
21
|
+
export const PDrawer = /*@__PURE__*/ createReactComponent('p-drawer');
|
|
22
|
+
export const PDrawerBody = /*@__PURE__*/ createReactComponent('p-drawer-body');
|
|
23
|
+
export const PDrawerContainer = /*@__PURE__*/ createReactComponent('p-drawer-container');
|
|
24
|
+
export const PDrawerHeader = /*@__PURE__*/ createReactComponent('p-drawer-header');
|
|
25
|
+
export const PDropdown = /*@__PURE__*/ createReactComponent('p-dropdown');
|
|
26
|
+
export const PDropdownMenuContainer = /*@__PURE__*/ createReactComponent('p-dropdown-menu-container');
|
|
27
|
+
export const PDropdownMenuItem = /*@__PURE__*/ createReactComponent('p-dropdown-menu-item');
|
|
28
|
+
export const PHelper = /*@__PURE__*/ createReactComponent('p-helper');
|
|
8
29
|
export const PIcon = /*@__PURE__*/ createReactComponent('p-icon');
|
|
9
30
|
export const PIllustration = /*@__PURE__*/ createReactComponent('p-illustration');
|
|
31
|
+
export const PInfoPanel = /*@__PURE__*/ createReactComponent('p-info-panel');
|
|
32
|
+
export const PInputError = /*@__PURE__*/ createReactComponent('p-input-error');
|
|
33
|
+
export const PInputGroup = /*@__PURE__*/ createReactComponent('p-input-group');
|
|
34
|
+
export const PLabel = /*@__PURE__*/ createReactComponent('p-label');
|
|
35
|
+
export const PLayout = /*@__PURE__*/ createReactComponent('p-layout');
|
|
10
36
|
export const PLoader = /*@__PURE__*/ createReactComponent('p-loader');
|
|
37
|
+
export const PModal = /*@__PURE__*/ createReactComponent('p-modal');
|
|
38
|
+
export const PModalBody = /*@__PURE__*/ createReactComponent('p-modal-body');
|
|
39
|
+
export const PModalContainer = /*@__PURE__*/ createReactComponent('p-modal-container');
|
|
40
|
+
export const PModalFooter = /*@__PURE__*/ createReactComponent('p-modal-footer');
|
|
41
|
+
export const PModalHeader = /*@__PURE__*/ createReactComponent('p-modal-header');
|
|
42
|
+
export const PNavbar = /*@__PURE__*/ createReactComponent('p-navbar');
|
|
43
|
+
export const PNavigationItem = /*@__PURE__*/ createReactComponent('p-navigation-item');
|
|
44
|
+
export const PPageSizeSelect = /*@__PURE__*/ createReactComponent('p-page-size-select');
|
|
45
|
+
export const PPagination = /*@__PURE__*/ createReactComponent('p-pagination');
|
|
46
|
+
export const PPaginationItem = /*@__PURE__*/ createReactComponent('p-pagination-item');
|
|
47
|
+
export const PProfile = /*@__PURE__*/ createReactComponent('p-profile');
|
|
48
|
+
export const PSegmentContainer = /*@__PURE__*/ createReactComponent('p-segment-container');
|
|
49
|
+
export const PSegmentItem = /*@__PURE__*/ createReactComponent('p-segment-item');
|
|
50
|
+
export const PSelect = /*@__PURE__*/ createReactComponent('p-select');
|
|
51
|
+
export const PSliderIndicator = /*@__PURE__*/ createReactComponent('p-slider-indicator');
|
|
52
|
+
export const PStatus = /*@__PURE__*/ createReactComponent('p-status');
|
|
53
|
+
export const PStepper = /*@__PURE__*/ createReactComponent('p-stepper');
|
|
54
|
+
export const PStepperItem = /*@__PURE__*/ createReactComponent('p-stepper-item');
|
|
55
|
+
export const PStepperLine = /*@__PURE__*/ createReactComponent('p-stepper-line');
|
|
56
|
+
export const PTabGroup = /*@__PURE__*/ createReactComponent('p-tab-group');
|
|
57
|
+
export const PTabItem = /*@__PURE__*/ createReactComponent('p-tab-item');
|
|
58
|
+
export const PTable = /*@__PURE__*/ createReactComponent('p-table');
|
|
59
|
+
export const PTableCell = /*@__PURE__*/ createReactComponent('p-table-cell');
|
|
60
|
+
export const PTableColumn = /*@__PURE__*/ createReactComponent('p-table-column');
|
|
61
|
+
export const PTableContainer = /*@__PURE__*/ createReactComponent('p-table-container');
|
|
62
|
+
export const PTableFooter = /*@__PURE__*/ createReactComponent('p-table-footer');
|
|
63
|
+
export const PTableHeader = /*@__PURE__*/ createReactComponent('p-table-header');
|
|
64
|
+
export const PTableRow = /*@__PURE__*/ createReactComponent('p-table-row');
|
|
65
|
+
export const PToast = /*@__PURE__*/ createReactComponent('p-toast');
|
|
66
|
+
export const PToastContainer = /*@__PURE__*/ createReactComponent('p-toast-container');
|
|
11
67
|
export const PTooltip = /*@__PURE__*/ createReactComponent('p-tooltip');
|
|
12
68
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/stencil/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,kCAAkC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAI7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,oBAAoB,EAAE,CAAC;AACvB,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAA,oBAAoB,CAAkC,UAAU,CAAC,CAAC;AACtG,MAAM,CAAC,MAAM,KAAK,GAAG,aAAa,CAAA,oBAAoB,CAA8B,QAAQ,CAAC,CAAC;AAC9F,MAAM,CAAC,MAAM,aAAa,GAAG,aAAa,CAAA,oBAAoB,CAA8C,gBAAgB,CAAC,CAAC;AAC9H,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAA,oBAAoB,CAAkC,UAAU,CAAC,CAAC;AACtG,MAAM,CAAC,MAAM,QAAQ,GAAG,aAAa,CAAA,oBAAoB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AA,oBAAoB,CAA4C,gBAAgB,CAAC,CAAC;AAC3H,MAAM,CAAC,MAAM,YAAY,GAAG,aAAa,CAAA,oBAAoB,CAA4C,gBAAgB,CAAC,CAAC;AAC3H,MAAM,CAAC,MAAM,SAAS,GAAG,aAAa,CAAA,oBAAoB,CAAsC,aAAa,CAAC,CAAC;AAC/G,MAAM,CAAC,MAAM,MAAM,GAAG,aAAa,CAAA,oBAAoB,CAAgC,SAAS,CAAC,CAAC;AAClG,MAAM,CAAC,MAAM,eAAe,GAAG,aAAa,CAAA,oBAAoB,CAAkD,mBAAmB,CAAC,CAAC;AACvI,MAAM,CAAC,MAAM,QAAQ,GAAG,aAAa,CAAA,oBAAoB,CAAoC,WAAW,CAAC,CAAC"}
|
|
@@ -10,7 +10,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
12
|
import React, { createElement } from 'react';
|
|
13
|
-
import { attachProps, camelToDashCase, createForwardRef, dashToPascalCase, isCoveredByReact, mergeRefs
|
|
13
|
+
import { attachProps, camelToDashCase, createForwardRef, dashToPascalCase, isCoveredByReact, mergeRefs } from './utils';
|
|
14
14
|
export const createReactComponent = (tagName, ReactComponentContext, manipulatePropsFunction, defineCustomElement) => {
|
|
15
15
|
if (defineCustomElement !== undefined) {
|
|
16
16
|
defineCustomElement();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createComponent.js","sourceRoot":"","sources":["../../../../src/components/stencil/react-component-lib/createComponent.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE7C,OAAO,
|
|
1
|
+
{"version":3,"file":"createComponent.js","sourceRoot":"","sources":["../../../../src/components/stencil/react-component-lib/createComponent.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE7C,OAAO,EAAE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import ReactDOM from 'react-dom';
|
|
23
|
-
import { attachProps, dashToPascalCase, defineCustomElement, setRef
|
|
23
|
+
import { attachProps, dashToPascalCase, defineCustomElement, setRef } from './utils';
|
|
24
24
|
export const createOverlayComponent = (tagName, controller, customElement) => {
|
|
25
25
|
defineCustomElement(tagName, customElement);
|
|
26
26
|
const displayName = dashToPascalCase(tagName);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createOverlayComponent.js","sourceRoot":"","sources":["../../../../src/components/stencil/react-component-lib/createOverlayComponent.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,QAAQ,MAAM,WAAW,CAAC;AAGjC,OAAO,
|
|
1
|
+
{"version":3,"file":"createOverlayComponent.js","sourceRoot":"","sources":["../../../../src/components/stencil/react-component-lib/createOverlayComponent.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,QAAQ,MAAM,WAAW,CAAC;AAGjC,OAAO,EAA4B,WAAW,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAgB/G,MAAM,CAAC,MAAM,sBAAsB,GAAG,CACpC,OAAe,EACf,UAA8D,EAC9D,aAAmB,EACnB,EAAE;IACF,mBAAmB,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;IAE5C,MAAM,WAAW,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAC9C,MAAM,mBAAmB,GAAG,KAAK,WAAW,YAAY,CAAC;IACzD,MAAM,mBAAmB,GAAG,KAAK,WAAW,YAAY,CAAC;IACzD,MAAM,oBAAoB,GAAG,KAAK,WAAW,aAAa,CAAC;IAC3D,MAAM,oBAAoB,GAAG,KAAK,WAAW,aAAa,CAAC;IAO3D,IAAI,YAAY,GAAG,KAAK,CAAC;IAEzB,MAAM,OAAQ,SAAQ,K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,CAAC;gBAEF,IAAI,CAAC,OAAO,GAAG,MAAM,UAAU,CAAC,MAAM,iCACjC,YAAY,KACf,SAAS,EAAE,IAAI,CAAC,EAAE,EAClB,cAAc,EAAE,EAAE,IAClB,CAAC;gBAEH,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,YAAY,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;gBAC9C,WAAW,CAAC,IAAI,CAAC,OAAO,EAAE,YAAY,EAAE,SAAS,CAAC,CAAC;gBAEnD,MAAM,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;YAC/B,CAAC;SAAA;QAED,MAAM;YACJ;;;;eAIG;YACH,OAAO,QAAQ,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,IAAI,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC;QACxG,CAAC;KACF;IAED,OAAO,KAAK,CAAC,UAAU,CAAqB,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;QACzD,OAAO,oBAAC,OAAO,oBAAK,KAAK,IAAE,YAAY,EAAE,GAAG,IAAI,CAAC;IACnD,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"case.js","sourceRoot":"","sources":["../../../../../src/components/stencil/react-component-lib/utils/case.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,GAAW,EAAE,EAAE,CAC9C,GAAG;KACA,WAAW,EAAE;KACb,KAAK,CAAC,GAAG,CAAC;KACV,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;KACpE,IAAI,CAAC,EAAE,CAAC,CAAC;AACd,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,GAAW,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"case.js","sourceRoot":"","sources":["../../../../../src/components/stencil/react-component-lib/utils/case.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,GAAW,EAAE,EAAE,CAC9C,GAAG;KACA,WAAW,EAAE;KACb,KAAK,CAAC,GAAG,CAAC;KACV,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;KACpE,IAAI,CAAC,EAAE,CAAC,CAAC;AACd,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,GAAW,EAAE,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC,CAAS,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC"}
|
|
@@ -10,7 +10,7 @@ export const setRef = (ref, value) => {
|
|
|
10
10
|
};
|
|
11
11
|
export const mergeRefs = (...refs) => {
|
|
12
12
|
return (value) => {
|
|
13
|
-
refs.forEach(ref => {
|
|
13
|
+
refs.forEach((ref) => {
|
|
14
14
|
setRef(ref, value);
|
|
15
15
|
});
|
|
16
16
|
};
|
|
@@ -23,9 +23,7 @@ export const createForwardRef = (ReactComponent, displayName) => {
|
|
|
23
23
|
return React.forwardRef(forwardRef);
|
|
24
24
|
};
|
|
25
25
|
export const defineCustomElement = (tagName, customElement) => {
|
|
26
|
-
if (customElement !== undefined &&
|
|
27
|
-
typeof customElements !== 'undefined' &&
|
|
28
|
-
!customElements.get(tagName)) {
|
|
26
|
+
if (customElement !== undefined && typeof customElements !== 'undefined' && !customElements.get(tagName)) {
|
|
29
27
|
customElements.define(tagName, customElement);
|
|
30
28
|
}
|
|
31
29
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/stencil/react-component-lib/utils/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,GAA+D,EAAE,KAAU,EAAE,EAAE;IACpG,IAAI,OAAO,GAAG,KAAK,UAAU,EAAE;QAC7B,GAAG,CAAC,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/stencil/react-component-lib/utils/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,GAA+D,EAAE,KAAU,EAAE,EAAE;IACpG,IAAI,OAAO,GAAG,KAAK,UAAU,EAAE;QAC7B,GAAG,CAAC,KAAK,CAAC,CAAC;KACZ;SAAM,IAAI,GAAG,IAAI,IAAI,EAAE;QACtB,gDAAgD;QAC/C,GAAmC,CAAC,OAAO,GAAG,KAAK,CAAC;KACtD;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,CACvB,GAAG,IAAoE,EAC/C,EAAE;IAC1B,OAAO,CAAC,KAAU,EAAE,EAAE;QACpB,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;YACnB,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QACrB,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAwB,cAAmB,EAAE,WAAmB,EAAE,EAAE;IAClG,MAAM,UAAU,GAAG,CACjB,KAAuD,EACvD,GAA0C,EAC1C,EAAE;QACF,OAAO,oBAAC,cAAc,oBAAK,KAAK,IAAE,YAAY,EAAE,GAAG,IAAI,CAAC;IAC1D,CAAC,CAAC;IACF,UAAU,CAAC,WAAW,GAAG,WAAW,CAAC;IAErC,OAAO,KAAK,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;AACtC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,OAAe,EAAE,aAAkB,EAAE,EAAE;IACzE,IAAI,aAAa,KAAK,SAAS,IAAI,OAAO,cAAc,KAAK,WAAW,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE;QACxG,cAAc,CAAC,MAAM,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;KAC/C;AACH,CAAC,CAAC;AAEF,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paperless/react",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "0.1.0-alpha.
|
|
4
|
+
"version": "0.1.0-alpha.401",
|
|
5
5
|
"description": "React specific wrapper for component-library",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -28,18 +28,18 @@
|
|
|
28
28
|
"dist/"
|
|
29
29
|
],
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@types/jest": "
|
|
32
|
-
"@types/node": "
|
|
33
|
-
"jest": "
|
|
34
|
-
"jest-dom": "
|
|
35
|
-
"np": "
|
|
36
|
-
"react": "
|
|
37
|
-
"react-dom": "
|
|
38
|
-
"typescript": "
|
|
31
|
+
"@types/jest": "29.5.0",
|
|
32
|
+
"@types/node": "18.15.7",
|
|
33
|
+
"jest": "29.5.0",
|
|
34
|
+
"jest-dom": "4.0.0",
|
|
35
|
+
"np": "7.6.4",
|
|
36
|
+
"react": "18.2.0",
|
|
37
|
+
"react-dom": "18.2.0",
|
|
38
|
+
"typescript": "4.6.3"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"react": "^17.0.2",
|
|
42
|
-
"react-dom": "^17.0.2"
|
|
41
|
+
"react": "^17.0.2 || ^18.0.0",
|
|
42
|
+
"react-dom": "^17.0.2 || ^18.0.0"
|
|
43
43
|
},
|
|
44
44
|
"jest": {
|
|
45
45
|
"preset": "ts-jest",
|