@paperless/react 2.0.1-beta.9 → 2.22.0-alpha.28

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 (38) hide show
  1. package/dist/components.js +694 -0
  2. package/dist/components.js.map +1 -0
  3. package/dist/index.js +1 -1
  4. package/dist/types/components.d.ts +347 -0
  5. package/dist/types/index.d.ts +1 -0
  6. package/package.json +14 -16
  7. package/CHANGELOG.md +0 -5538
  8. package/dist/components/index.d.ts +0 -1
  9. package/dist/components/index.js +0 -2
  10. package/dist/components/index.js.map +0 -1
  11. package/dist/components/stencil/index.d.ts +0 -73
  12. package/dist/components/stencil/index.js +0 -78
  13. package/dist/components/stencil/index.js.map +0 -1
  14. package/dist/components/stencil/react-component-lib/createComponent.d.ts +0 -10
  15. package/dist/components/stencil/react-component-lib/createComponent.js +0 -75
  16. package/dist/components/stencil/react-component-lib/createComponent.js.map +0 -1
  17. package/dist/components/stencil/react-component-lib/createOverlayComponent.d.ts +0 -21
  18. package/dist/components/stencil/react-component-lib/createOverlayComponent.js +0 -109
  19. package/dist/components/stencil/react-component-lib/createOverlayComponent.js.map +0 -1
  20. package/dist/components/stencil/react-component-lib/index.d.ts +0 -2
  21. package/dist/components/stencil/react-component-lib/index.js +0 -3
  22. package/dist/components/stencil/react-component-lib/index.js.map +0 -1
  23. package/dist/components/stencil/react-component-lib/interfaces.d.ts +0 -29
  24. package/dist/components/stencil/react-component-lib/interfaces.js +0 -2
  25. package/dist/components/stencil/react-component-lib/interfaces.js.map +0 -1
  26. package/dist/components/stencil/react-component-lib/utils/attachProps.d.ts +0 -12
  27. package/dist/components/stencil/react-component-lib/utils/attachProps.js +0 -98
  28. package/dist/components/stencil/react-component-lib/utils/attachProps.js.map +0 -1
  29. package/dist/components/stencil/react-component-lib/utils/case.d.ts +0 -2
  30. package/dist/components/stencil/react-component-lib/utils/case.js +0 -7
  31. package/dist/components/stencil/react-component-lib/utils/case.js.map +0 -1
  32. package/dist/components/stencil/react-component-lib/utils/dev.d.ts +0 -2
  33. package/dist/components/stencil/react-component-lib/utils/dev.js +0 -13
  34. package/dist/components/stencil/react-component-lib/utils/dev.js.map +0 -1
  35. package/dist/components/stencil/react-component-lib/utils/index.d.ts +0 -10
  36. package/dist/components/stencil/react-component-lib/utils/index.js +0 -32
  37. package/dist/components/stencil/react-component-lib/utils/index.js.map +0 -1
  38. package/dist/index.d.ts +0 -1
@@ -1 +0,0 @@
1
- export * from './stencil/index';
@@ -1,2 +0,0 @@
1
- export * from './stencil/index';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
@@ -1,73 +0,0 @@
1
- /// <reference types="react" />
2
- import type { JSX } from '@paperless/core';
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 PBadge: import("react").ForwardRefExoticComponent<JSX.PBadge & Omit<import("react").HTMLAttributes<HTMLPBadgeElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPBadgeElement>>;
9
- 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>>;
10
- export declare const PButtonGroup: import("react").ForwardRefExoticComponent<JSX.PButtonGroup & Omit<import("react").HTMLAttributes<HTMLPButtonGroupElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPButtonGroupElement>>;
11
- 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>>;
12
- 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>>;
13
- 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>>;
14
- 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>>;
15
- 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>>;
16
- 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>>;
17
- export declare const PCropper: import("react").ForwardRefExoticComponent<JSX.PCropper & Omit<import("react").HTMLAttributes<HTMLPCropperElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPCropperElement>>;
18
- 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>>;
19
- 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>>;
20
- 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>>;
21
- 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>>;
22
- 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>>;
23
- 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>>;
24
- 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>>;
25
- 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>>;
26
- 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>>;
27
- export declare const PFloatingMenuContainer: import("react").ForwardRefExoticComponent<JSX.PFloatingMenuContainer & Omit<import("react").HTMLAttributes<HTMLPFloatingMenuContainerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPFloatingMenuContainerElement>>;
28
- export declare const PFloatingMenuItem: import("react").ForwardRefExoticComponent<JSX.PFloatingMenuItem & Omit<import("react").HTMLAttributes<HTMLPFloatingMenuItemElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPFloatingMenuItemElement>>;
29
- 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>>;
30
- export declare const PIbanIcon: import("react").ForwardRefExoticComponent<JSX.PIbanIcon & Omit<import("react").HTMLAttributes<HTMLPIbanIconElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPIbanIconElement>>;
31
- 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>>;
32
- export declare const PIconDeprecated: import("react").ForwardRefExoticComponent<JSX.PIconDeprecated & Omit<import("react").HTMLAttributes<HTMLPIconDeprecatedElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPIconDeprecatedElement>>;
33
- 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>>;
34
- 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>>;
35
- 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>>;
36
- 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>>;
37
- 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>>;
38
- 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>>;
39
- 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>>;
40
- 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>>;
41
- 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>>;
42
- 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>>;
43
- 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>>;
44
- 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>>;
45
- 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>>;
46
- 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>>;
47
- export declare const PNavigationSection: import("react").ForwardRefExoticComponent<JSX.PNavigationSection & Omit<import("react").HTMLAttributes<HTMLPNavigationSectionElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPNavigationSectionElement>>;
48
- export declare const PNavigationTitle: import("react").ForwardRefExoticComponent<JSX.PNavigationTitle & Omit<import("react").HTMLAttributes<HTMLPNavigationTitleElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPNavigationTitleElement>>;
49
- 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>>;
50
- 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>>;
51
- 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>>;
52
- 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>>;
53
- 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>>;
54
- 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>>;
55
- 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>>;
56
- 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>>;
57
- 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>>;
58
- 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>>;
59
- 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>>;
60
- 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>>;
61
- 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>>;
62
- 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>>;
63
- 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>>;
64
- 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>>;
65
- 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>>;
66
- 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>>;
67
- 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>>;
68
- 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>>;
69
- 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>>;
70
- export declare const PTableRowAction: import("react").ForwardRefExoticComponent<JSX.PTableRowAction & Omit<import("react").HTMLAttributes<HTMLPTableRowActionElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPTableRowActionElement>>;
71
- 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>>;
72
- 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>>;
73
- 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>>;
@@ -1,78 +0,0 @@
1
- /* eslint-disable */
2
- /* tslint:disable */
3
- /* auto-generated react proxies */
4
- import { createReactComponent } from './react-component-lib';
5
- import { defineCustomElements } from '@paperless/core/loader';
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');
12
- export const PBadge = /*@__PURE__*/ createReactComponent('p-badge');
13
- export const PButton = /*@__PURE__*/ createReactComponent('p-button');
14
- export const PButtonGroup = /*@__PURE__*/ createReactComponent('p-button-group');
15
- export const PCalendar = /*@__PURE__*/ createReactComponent('p-calendar');
16
- export const PCardBody = /*@__PURE__*/ createReactComponent('p-card-body');
17
- export const PCardContainer = /*@__PURE__*/ createReactComponent('p-card-container');
18
- export const PCardHeader = /*@__PURE__*/ createReactComponent('p-card-header');
19
- export const PContentSlider = /*@__PURE__*/ createReactComponent('p-content-slider');
20
- export const PCounter = /*@__PURE__*/ createReactComponent('p-counter');
21
- export const PCropper = /*@__PURE__*/ createReactComponent('p-cropper');
22
- export const PDatepicker = /*@__PURE__*/ createReactComponent('p-datepicker');
23
- export const PDivider = /*@__PURE__*/ createReactComponent('p-divider');
24
- export const PDrawer = /*@__PURE__*/ createReactComponent('p-drawer');
25
- export const PDrawerBody = /*@__PURE__*/ createReactComponent('p-drawer-body');
26
- export const PDrawerContainer = /*@__PURE__*/ createReactComponent('p-drawer-container');
27
- export const PDrawerHeader = /*@__PURE__*/ createReactComponent('p-drawer-header');
28
- export const PDropdown = /*@__PURE__*/ createReactComponent('p-dropdown');
29
- export const PDropdownMenuContainer = /*@__PURE__*/ createReactComponent('p-dropdown-menu-container');
30
- export const PDropdownMenuItem = /*@__PURE__*/ createReactComponent('p-dropdown-menu-item');
31
- export const PFloatingMenuContainer = /*@__PURE__*/ createReactComponent('p-floating-menu-container');
32
- export const PFloatingMenuItem = /*@__PURE__*/ createReactComponent('p-floating-menu-item');
33
- export const PHelper = /*@__PURE__*/ createReactComponent('p-helper');
34
- export const PIbanIcon = /*@__PURE__*/ createReactComponent('p-iban-icon');
35
- export const PIcon = /*@__PURE__*/ createReactComponent('p-icon');
36
- export const PIconDeprecated = /*@__PURE__*/ createReactComponent('p-icon-deprecated');
37
- export const PIllustration = /*@__PURE__*/ createReactComponent('p-illustration');
38
- export const PInfoPanel = /*@__PURE__*/ createReactComponent('p-info-panel');
39
- export const PInputError = /*@__PURE__*/ createReactComponent('p-input-error');
40
- export const PInputGroup = /*@__PURE__*/ createReactComponent('p-input-group');
41
- export const PLabel = /*@__PURE__*/ createReactComponent('p-label');
42
- export const PLayout = /*@__PURE__*/ createReactComponent('p-layout');
43
- export const PLoader = /*@__PURE__*/ createReactComponent('p-loader');
44
- export const PModal = /*@__PURE__*/ createReactComponent('p-modal');
45
- export const PModalBody = /*@__PURE__*/ createReactComponent('p-modal-body');
46
- export const PModalContainer = /*@__PURE__*/ createReactComponent('p-modal-container');
47
- export const PModalFooter = /*@__PURE__*/ createReactComponent('p-modal-footer');
48
- export const PModalHeader = /*@__PURE__*/ createReactComponent('p-modal-header');
49
- export const PNavbar = /*@__PURE__*/ createReactComponent('p-navbar');
50
- export const PNavigationItem = /*@__PURE__*/ createReactComponent('p-navigation-item');
51
- export const PNavigationSection = /*@__PURE__*/ createReactComponent('p-navigation-section');
52
- export const PNavigationTitle = /*@__PURE__*/ createReactComponent('p-navigation-title');
53
- export const PPageSizeSelect = /*@__PURE__*/ createReactComponent('p-page-size-select');
54
- export const PPagination = /*@__PURE__*/ createReactComponent('p-pagination');
55
- export const PPaginationItem = /*@__PURE__*/ createReactComponent('p-pagination-item');
56
- export const PProfile = /*@__PURE__*/ createReactComponent('p-profile');
57
- export const PSegmentContainer = /*@__PURE__*/ createReactComponent('p-segment-container');
58
- export const PSegmentItem = /*@__PURE__*/ createReactComponent('p-segment-item');
59
- export const PSelect = /*@__PURE__*/ createReactComponent('p-select');
60
- export const PSliderIndicator = /*@__PURE__*/ createReactComponent('p-slider-indicator');
61
- export const PStatus = /*@__PURE__*/ createReactComponent('p-status');
62
- export const PStepper = /*@__PURE__*/ createReactComponent('p-stepper');
63
- export const PStepperItem = /*@__PURE__*/ createReactComponent('p-stepper-item');
64
- export const PStepperLine = /*@__PURE__*/ createReactComponent('p-stepper-line');
65
- export const PTabGroup = /*@__PURE__*/ createReactComponent('p-tab-group');
66
- export const PTabItem = /*@__PURE__*/ createReactComponent('p-tab-item');
67
- export const PTable = /*@__PURE__*/ createReactComponent('p-table');
68
- export const PTableCell = /*@__PURE__*/ createReactComponent('p-table-cell');
69
- export const PTableColumn = /*@__PURE__*/ createReactComponent('p-table-column');
70
- export const PTableContainer = /*@__PURE__*/ createReactComponent('p-table-container');
71
- export const PTableFooter = /*@__PURE__*/ createReactComponent('p-table-footer');
72
- export const PTableHeader = /*@__PURE__*/ createReactComponent('p-table-header');
73
- export const PTableRow = /*@__PURE__*/ createReactComponent('p-table-row');
74
- export const PTableRowAction = /*@__PURE__*/ createReactComponent('p-table-row-action');
75
- export const PToast = /*@__PURE__*/ createReactComponent('p-toast');
76
- export const PToastContainer = /*@__PURE__*/ createReactComponent('p-toast-container');
77
- export const PTooltip = /*@__PURE__*/ createReactComponent('p-tooltip');
78
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
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,UAAU,GAAG,aAAa,CAAA,oBAAoB,CAAwC,aAAa,CAAC,CAAC;AAClH,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAA,oBAAoB,CAA0C,cAAc,CAAC,CAAC;AACtH,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAA,oBAAoB,CAAkC,UAAU,CAAC,CAAC;AACtG,MAAM,CAAC,MAAM,YAAY,GAAG,aAAa,CAAA,oBAAoB,CAA4C,gBAAgB,CAAC,CAAC;AAC3H,MAAM,CAAC,MAAM,SAAS,GAAG,aAAa,CAAA,oBAAoB,CAAsC,YAAY,CAAC,CAAC;AAC9G,MAAM,CAAC,MAAM,MAAM,GAAG,aAAa,CAAA,oBAAoB,CAAgC,SAAS,CAAC,CAAC;AAClG,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAA,oBAAoB,CAAkC,UAAU,CAAC,CAAC;AACtG,MAAM,CAAC,MAAM,YAAY,GAAG,aAAa,CAAA,oBAAoB,CAA4C,gBAAgB,CAAC,CAAC;AAC3H,MAAM,CAAC,MAAM,SAAS,GAAG,aAAa,CAAA,oBAAoB,CAAsC,YAAY,CAAC,CAAC;AAC9G,MAAM,CAAC,MAAM,SAAS,GAAG,aAAa,CAAA,oBAAoB,CAAsC,aAAa,CAAC,CAAC;AAC/G,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,CAAA,oBAAoB,CAAgD,kBAAkB,CAAC,CAAC;AACnI,MAAM,CAAC,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CAAC,CAAC;AACvI,MAAM,CAAC,MAAM,QAAQ,GAAG,aAAa,CAAA,oBAAoB,CAAoC,WAAW,CAAC,CAAC"}
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- export interface HTMLStencilElement extends HTMLElement {
3
- componentOnReady(): Promise<this>;
4
- }
5
- interface StencilReactInternalProps<ElementType> extends React.HTMLAttributes<ElementType> {
6
- forwardedRef: React.RefObject<ElementType>;
7
- ref?: React.Ref<any>;
8
- }
9
- export declare const createReactComponent: <PropType, ElementType extends HTMLStencilElement, ContextStateType = {}, ExpandedPropsTypes = {}>(tagName: string, ReactComponentContext?: React.Context<ContextStateType>, manipulatePropsFunction?: (originalProps: StencilReactInternalProps<ElementType>, propsToPass: any) => ExpandedPropsTypes, defineCustomElement?: () => void) => React.ForwardRefExoticComponent<React.PropsWithoutRef<import("./utils").StencilReactExternalProps<PropType, ElementType>> & React.RefAttributes<ElementType>>;
10
- export {};
@@ -1,75 +0,0 @@
1
- var __rest = (this && this.__rest) || function (s, e) {
2
- var t = {};
3
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
- t[p] = s[p];
5
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
- t[p[i]] = s[p[i]];
9
- }
10
- return t;
11
- };
12
- import React, { createElement } from 'react';
13
- import { attachProps, camelToDashCase, createForwardRef, dashToPascalCase, isCoveredByReact, mergeRefs } from './utils';
14
- export const createReactComponent = (tagName, ReactComponentContext, manipulatePropsFunction, defineCustomElement) => {
15
- if (defineCustomElement !== undefined) {
16
- defineCustomElement();
17
- }
18
- const displayName = dashToPascalCase(tagName);
19
- const ReactComponent = class extends React.Component {
20
- constructor(props) {
21
- super(props);
22
- this.setComponentElRef = (element) => {
23
- this.componentEl = element;
24
- };
25
- }
26
- componentDidMount() {
27
- this.componentDidUpdate(this.props);
28
- }
29
- componentDidUpdate(prevProps) {
30
- attachProps(this.componentEl, this.props, prevProps);
31
- }
32
- render() {
33
- const _a = this.props, { children, forwardedRef, style, className, ref } = _a, cProps = __rest(_a, ["children", "forwardedRef", "style", "className", "ref"]);
34
- let propsToPass = Object.keys(cProps).reduce((acc, name) => {
35
- const value = cProps[name];
36
- if (name.indexOf('on') === 0 && name[2] === name[2].toUpperCase()) {
37
- const eventName = name.substring(2).toLowerCase();
38
- if (typeof document !== 'undefined' && isCoveredByReact(eventName)) {
39
- acc[name] = value;
40
- }
41
- }
42
- else {
43
- // we should only render strings, booleans, and numbers as attrs in html.
44
- // objects, functions, arrays etc get synced via properties on mount.
45
- const type = typeof value;
46
- if (type === 'string' || type === 'boolean' || type === 'number') {
47
- acc[camelToDashCase(name)] = value;
48
- }
49
- }
50
- return acc;
51
- }, {});
52
- if (manipulatePropsFunction) {
53
- propsToPass = manipulatePropsFunction(this.props, propsToPass);
54
- }
55
- const newProps = Object.assign(Object.assign({}, propsToPass), { ref: mergeRefs(forwardedRef, this.setComponentElRef), style });
56
- /**
57
- * We use createElement here instead of
58
- * React.createElement to work around a
59
- * bug in Vite (https://github.com/vitejs/vite/issues/6104).
60
- * React.createElement causes all elements to be rendered
61
- * as <tagname> instead of the actual Web Component.
62
- */
63
- return createElement(tagName, newProps, children);
64
- }
65
- static get displayName() {
66
- return displayName;
67
- }
68
- };
69
- // If context was passed to createReactComponent then conditionally add it to the Component Class
70
- if (ReactComponentContext) {
71
- ReactComponent.contextType = ReactComponentContext;
72
- }
73
- return createForwardRef(ReactComponent, displayName);
74
- };
75
- //# sourceMappingURL=createComponent.js.map
@@ -1 +0,0 @@
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,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,CAAC,CAAC,WAAW,EAAE,EAAE;oBACjE,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;oBAClD,IAAI,OAAO,QAAQ,KAAK,WAAW,IAAI,gBAAgB,CAAC,SAAS,CAAC,EAAE;wBAClE,GAAG,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC;qBACnB;iBACF;qBAAM;oBACL,yEAAyE;oBACzE,qEAAqE;oBACrE,MAAM,IAAI,GAAG,OAAO,KAAK,CAAC;oBAE1B,IAAI,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,QAAQ,EAAE;wBAChE,GAAG,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC;qBACpC;iBACF;gBACD,OAAO,GAAG,CAAC;YACb,CAAC,EAAE,EAAwB,CAAC,CAAC;YAE7B,IAAI,uBAAuB,EAAE;gBAC3B,WAAW,GAAG,uBAAuB,CAAC,IAAI,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;aAChE;YAED,MAAM,QAAQ,mCACT,WAAW,KACd,GAAG,EAAE,SAAS,CAAC,YAAY,EAAE,IAAI,CAAC,iBAAiB,CAAC,EACpD,KAAK,GACN,CAAC;YAEF;;;;;;eAMG;YACH,OAAO,aAAa,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;QACpD,CAAC;QAED,MAAM,KAAK,WAAW;YACpB,OAAO,WAAW,CAAC;QACrB,CAAC;KACF,CAAC;IAEF,iGAAiG;IACjG,IAAI,qBAAqB,EAAE;QACzB,cAAc,CAAC,WAAW,GAAG,qBAAqB,CAAC;KACpD;IAED,OAAO,gBAAgB,CAAwB,cAAc,EAAE,WAAW,CAAC,CAAC;AAC9E,CAAC,CAAC"}
@@ -1,21 +0,0 @@
1
- import React from 'react';
2
- import { OverlayEventDetail } from './interfaces';
3
- import { StencilReactForwardedRef } from './utils';
4
- interface OverlayElement extends HTMLElement {
5
- present: () => Promise<void>;
6
- dismiss: (data?: any, role?: string | undefined) => Promise<boolean>;
7
- }
8
- export interface ReactOverlayProps {
9
- children?: React.ReactNode;
10
- isOpen: boolean;
11
- onDidDismiss?: (event: CustomEvent<OverlayEventDetail>) => void;
12
- onDidPresent?: (event: CustomEvent<OverlayEventDetail>) => void;
13
- onWillDismiss?: (event: CustomEvent<OverlayEventDetail>) => void;
14
- onWillPresent?: (event: CustomEvent<OverlayEventDetail>) => void;
15
- }
16
- export declare const createOverlayComponent: <OverlayComponent extends object, OverlayType extends OverlayElement>(tagName: string, controller: {
17
- create: (options: any) => Promise<OverlayType>;
18
- }, customElement?: any) => React.ForwardRefExoticComponent<React.PropsWithoutRef<OverlayComponent & ReactOverlayProps & {
19
- forwardedRef?: StencilReactForwardedRef<OverlayType>;
20
- }> & React.RefAttributes<OverlayType>>;
21
- export {};
@@ -1,109 +0,0 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- var __rest = (this && this.__rest) || function (s, e) {
11
- var t = {};
12
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
13
- t[p] = s[p];
14
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
15
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
16
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
17
- t[p[i]] = s[p[i]];
18
- }
19
- return t;
20
- };
21
- import React from 'react';
22
- import ReactDOM from 'react-dom';
23
- import { attachProps, dashToPascalCase, defineCustomElement, setRef } from './utils';
24
- export const createOverlayComponent = (tagName, controller, customElement) => {
25
- defineCustomElement(tagName, customElement);
26
- const displayName = dashToPascalCase(tagName);
27
- const didDismissEventName = `on${displayName}DidDismiss`;
28
- const didPresentEventName = `on${displayName}DidPresent`;
29
- const willDismissEventName = `on${displayName}WillDismiss`;
30
- const willPresentEventName = `on${displayName}WillPresent`;
31
- let isDismissing = false;
32
- class Overlay extends React.Component {
33
- constructor(props) {
34
- super(props);
35
- if (typeof document !== 'undefined') {
36
- this.el = document.createElement('div');
37
- }
38
- this.handleDismiss = this.handleDismiss.bind(this);
39
- }
40
- static get displayName() {
41
- return displayName;
42
- }
43
- componentDidMount() {
44
- if (this.props.isOpen) {
45
- this.present();
46
- }
47
- }
48
- componentWillUnmount() {
49
- if (this.overlay) {
50
- this.overlay.dismiss();
51
- }
52
- }
53
- handleDismiss(event) {
54
- if (this.props.onDidDismiss) {
55
- this.props.onDidDismiss(event);
56
- }
57
- setRef(this.props.forwardedRef, null);
58
- }
59
- shouldComponentUpdate(nextProps) {
60
- // Check if the overlay component is about to dismiss
61
- if (this.overlay && nextProps.isOpen !== this.props.isOpen && nextProps.isOpen === false) {
62
- isDismissing = true;
63
- }
64
- return true;
65
- }
66
- componentDidUpdate(prevProps) {
67
- return __awaiter(this, void 0, void 0, function* () {
68
- if (this.overlay) {
69
- attachProps(this.overlay, this.props, prevProps);
70
- }
71
- if (prevProps.isOpen !== this.props.isOpen && this.props.isOpen === true) {
72
- this.present(prevProps);
73
- }
74
- if (this.overlay && prevProps.isOpen !== this.props.isOpen && this.props.isOpen === false) {
75
- yield this.overlay.dismiss();
76
- isDismissing = false;
77
- /**
78
- * Now that the overlay is dismissed
79
- * we need to render again so that any
80
- * inner components will be unmounted
81
- */
82
- this.forceUpdate();
83
- }
84
- });
85
- }
86
- present(prevProps) {
87
- return __awaiter(this, void 0, void 0, function* () {
88
- const _a = this.props, { children, isOpen, onDidDismiss, onDidPresent, onWillDismiss, onWillPresent } = _a, cProps = __rest(_a, ["children", "isOpen", "onDidDismiss", "onDidPresent", "onWillDismiss", "onWillPresent"]);
89
- const elementProps = Object.assign(Object.assign({}, cProps), { ref: this.props.forwardedRef, [didDismissEventName]: this.handleDismiss, [didPresentEventName]: (e) => this.props.onDidPresent && this.props.onDidPresent(e), [willDismissEventName]: (e) => this.props.onWillDismiss && this.props.onWillDismiss(e), [willPresentEventName]: (e) => this.props.onWillPresent && this.props.onWillPresent(e) });
90
- this.overlay = yield controller.create(Object.assign(Object.assign({}, elementProps), { component: this.el, componentProps: {} }));
91
- setRef(this.props.forwardedRef, this.overlay);
92
- attachProps(this.overlay, elementProps, prevProps);
93
- yield this.overlay.present();
94
- });
95
- }
96
- render() {
97
- /**
98
- * Continue to render the component even when
99
- * overlay is dismissing otherwise component
100
- * will be hidden before animation is done.
101
- */
102
- return ReactDOM.createPortal(this.props.isOpen || isDismissing ? this.props.children : null, this.el);
103
- }
104
- }
105
- return React.forwardRef((props, ref) => {
106
- return React.createElement(Overlay, Object.assign({}, props, { forwardedRef: ref }));
107
- });
108
- };
109
- //# sourceMappingURL=createOverlayComponent.js.map
@@ -1 +0,0 @@
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,CA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B,CAAC,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,aAAa,IAAI,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,EACnG,CAAC,oBAAoB,CAAC,EAAE,CAAC,CAAc,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,aAAa,IAAI,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,GACpG,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,2 +0,0 @@
1
- export { createReactComponent } from './createComponent';
2
- export { createOverlayComponent } from './createOverlayComponent';
@@ -1,3 +0,0 @@
1
- export { createReactComponent } from './createComponent';
2
- export { createOverlayComponent } from './createOverlayComponent';
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/stencil/react-component-lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC"}
@@ -1,29 +0,0 @@
1
- export interface EventEmitter<T = any> {
2
- emit: (data?: T) => CustomEvent<T>;
3
- }
4
- export interface StyleReactProps {
5
- class?: string;
6
- className?: string;
7
- style?: {
8
- [key: string]: any;
9
- };
10
- }
11
- export interface OverlayEventDetail<T = any> {
12
- data?: T;
13
- role?: string;
14
- }
15
- export interface OverlayInterface {
16
- el: HTMLElement;
17
- animated: boolean;
18
- keyboardClose: boolean;
19
- overlayIndex: number;
20
- presented: boolean;
21
- enterAnimation?: any;
22
- leaveAnimation?: any;
23
- didPresent: EventEmitter<void>;
24
- willPresent: EventEmitter<void>;
25
- willDismiss: EventEmitter<OverlayEventDetail>;
26
- didDismiss: EventEmitter<OverlayEventDetail>;
27
- present(): Promise<void>;
28
- dismiss(data?: any, role?: string): Promise<boolean>;
29
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=interfaces.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../src/components/stencil/react-component-lib/interfaces.ts"],"names":[],"mappings":""}
@@ -1,12 +0,0 @@
1
- export declare const attachProps: (node: HTMLElement, newProps: any, oldProps?: any) => void;
2
- export declare const getClassName: (classList: DOMTokenList, newProps: any, oldProps: any) => string;
3
- /**
4
- * Checks if an event is supported in the current execution environment.
5
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
6
- */
7
- export declare const isCoveredByReact: (eventNameSuffix: string) => boolean;
8
- export declare const syncEvent: (node: Element & {
9
- __events?: {
10
- [key: string]: (e: Event) => any;
11
- };
12
- }, eventName: string, newEventHandler?: (e: Event) => any) => void;
@@ -1,98 +0,0 @@
1
- import { camelToDashCase } from './case';
2
- export const attachProps = (node, newProps, oldProps = {}) => {
3
- // some test frameworks don't render DOM elements, so we test here to make sure we are dealing with DOM first
4
- if (node instanceof Element) {
5
- // add any classes in className to the class list
6
- const className = getClassName(node.classList, newProps, oldProps);
7
- if (className !== '') {
8
- node.className = className;
9
- }
10
- Object.keys(newProps).forEach((name) => {
11
- if (name === 'children' ||
12
- name === 'style' ||
13
- name === 'ref' ||
14
- name === 'class' ||
15
- name === 'className' ||
16
- name === 'forwardedRef') {
17
- return;
18
- }
19
- if (name.indexOf('on') === 0 && name[2] === name[2].toUpperCase()) {
20
- const eventName = name.substring(2);
21
- const eventNameLc = eventName[0].toLowerCase() + eventName.substring(1);
22
- if (!isCoveredByReact(eventNameLc)) {
23
- syncEvent(node, eventNameLc, newProps[name]);
24
- }
25
- }
26
- else {
27
- node[name] = newProps[name];
28
- const propType = typeof newProps[name];
29
- if (propType === 'string') {
30
- node.setAttribute(camelToDashCase(name), newProps[name]);
31
- }
32
- }
33
- });
34
- }
35
- };
36
- export const getClassName = (classList, newProps, oldProps) => {
37
- const newClassProp = newProps.className || newProps.class;
38
- const oldClassProp = oldProps.className || oldProps.class;
39
- // map the classes to Maps for performance
40
- const currentClasses = arrayToMap(classList);
41
- const incomingPropClasses = arrayToMap(newClassProp ? newClassProp.split(' ') : []);
42
- const oldPropClasses = arrayToMap(oldClassProp ? oldClassProp.split(' ') : []);
43
- const finalClassNames = [];
44
- // loop through each of the current classes on the component
45
- // to see if it should be a part of the classNames added
46
- currentClasses.forEach((currentClass) => {
47
- if (incomingPropClasses.has(currentClass)) {
48
- // add it as its already included in classnames coming in from newProps
49
- finalClassNames.push(currentClass);
50
- incomingPropClasses.delete(currentClass);
51
- }
52
- else if (!oldPropClasses.has(currentClass)) {
53
- // add it as it has NOT been removed by user
54
- finalClassNames.push(currentClass);
55
- }
56
- });
57
- incomingPropClasses.forEach((s) => finalClassNames.push(s));
58
- return finalClassNames.join(' ');
59
- };
60
- /**
61
- * Checks if an event is supported in the current execution environment.
62
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
63
- */
64
- export const isCoveredByReact = (eventNameSuffix) => {
65
- if (typeof document === 'undefined') {
66
- return true;
67
- }
68
- else {
69
- const eventName = 'on' + eventNameSuffix;
70
- let isSupported = eventName in document;
71
- if (!isSupported) {
72
- const element = document.createElement('div');
73
- element.setAttribute(eventName, 'return;');
74
- isSupported = typeof element[eventName] === 'function';
75
- }
76
- return isSupported;
77
- }
78
- };
79
- export const syncEvent = (node, eventName, newEventHandler) => {
80
- const eventStore = node.__events || (node.__events = {});
81
- const oldEventHandler = eventStore[eventName];
82
- // Remove old listener so they don't double up.
83
- if (oldEventHandler) {
84
- node.removeEventListener(eventName, oldEventHandler);
85
- }
86
- // Bind new listener.
87
- node.addEventListener(eventName, (eventStore[eventName] = function handler(e) {
88
- if (newEventHandler) {
89
- newEventHandler.call(this, e);
90
- }
91
- }));
92
- };
93
- const arrayToMap = (arr) => {
94
- const map = new Map();
95
- arr.forEach((s) => map.set(s, s));
96
- return map;
97
- };
98
- //# sourceMappingURL=attachProps.js.map