@pine-ds/react 0.0.2-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2019 Ionic
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,11 @@
1
+ # `react`
2
+
3
+ > TODO: description
4
+
5
+ ## Usage
6
+
7
+ ```
8
+ const react = require('react');
9
+
10
+ // TODO: DEMONSTRATE API
11
+ ```
package/dist/index.js ADDED
@@ -0,0 +1,219 @@
1
+ import { __rest } from 'tslib';
2
+ import React, { createElement } from 'react';
3
+ import 'react-dom';
4
+ import { defineCustomElement } from '@pine-ds/core/components/pds-avatar.js';
5
+ import { defineCustomElement as defineCustomElement$1 } from '@pine-ds/core/components/pds-button.js';
6
+ import { defineCustomElement as defineCustomElement$2 } from '@pine-ds/core/components/pds-checkbox.js';
7
+ import { defineCustomElement as defineCustomElement$3 } from '@pine-ds/core/components/pds-chip.js';
8
+ import { defineCustomElement as defineCustomElement$4 } from '@pine-ds/core/components/pds-copytext.js';
9
+ import { defineCustomElement as defineCustomElement$5 } from '@pine-ds/core/components/pds-divider.js';
10
+ import { defineCustomElement as defineCustomElement$6 } from '@pine-ds/core/components/pds-image.js';
11
+ import { defineCustomElement as defineCustomElement$7 } from '@pine-ds/core/components/pds-input.js';
12
+ import { defineCustomElement as defineCustomElement$8 } from '@pine-ds/core/components/pds-link.js';
13
+ import { defineCustomElement as defineCustomElement$9 } from '@pine-ds/core/components/pds-progress.js';
14
+ import { defineCustomElement as defineCustomElement$a } from '@pine-ds/core/components/pds-radio.js';
15
+ import { defineCustomElement as defineCustomElement$b } from '@pine-ds/core/components/pds-sortable.js';
16
+ import { defineCustomElement as defineCustomElement$c } from '@pine-ds/core/components/pds-sortable-item.js';
17
+ import { defineCustomElement as defineCustomElement$d } from '@pine-ds/core/components/pds-switch.js';
18
+ import { defineCustomElement as defineCustomElement$e } from '@pine-ds/core/components/pds-tab.js';
19
+ import { defineCustomElement as defineCustomElement$f } from '@pine-ds/core/components/pds-tabpanel.js';
20
+ import { defineCustomElement as defineCustomElement$g } from '@pine-ds/core/components/pds-tabs.js';
21
+ import { defineCustomElement as defineCustomElement$h } from '@pine-ds/core/components/pds-textarea.js';
22
+ import { defineCustomElement as defineCustomElement$i } from '@pine-ds/core/components/pds-tooltip.js';
23
+ export { defineCustomElements } from '@pine-ds/core/loader';
24
+
25
+ const dashToPascalCase = (str) => str
26
+ .toLowerCase()
27
+ .split('-')
28
+ .map((segment) => segment.charAt(0).toUpperCase() + segment.slice(1))
29
+ .join('');
30
+ const camelToDashCase = (str) => str.replace(/([A-Z])/g, (m) => `-${m[0].toLowerCase()}`);
31
+
32
+ const attachProps = (node, newProps, oldProps = {}) => {
33
+ if (node instanceof Element) {
34
+ const className = getClassName(node.classList, newProps, oldProps);
35
+ if (className !== '') {
36
+ node.className = className;
37
+ }
38
+ Object.keys(newProps).forEach((name) => {
39
+ if (name === 'children' ||
40
+ name === 'style' ||
41
+ name === 'ref' ||
42
+ name === 'class' ||
43
+ name === 'className' ||
44
+ name === 'forwardedRef') {
45
+ return;
46
+ }
47
+ if (name.indexOf('on') === 0 && name[2] === name[2].toUpperCase()) {
48
+ const eventName = name.substring(2);
49
+ const eventNameLc = eventName[0].toLowerCase() + eventName.substring(1);
50
+ if (!isCoveredByReact(eventNameLc)) {
51
+ syncEvent(node, eventNameLc, newProps[name]);
52
+ }
53
+ }
54
+ else {
55
+ node[name] = newProps[name];
56
+ const propType = typeof newProps[name];
57
+ if (propType === 'string') {
58
+ node.setAttribute(camelToDashCase(name), newProps[name]);
59
+ }
60
+ }
61
+ });
62
+ }
63
+ };
64
+ const getClassName = (classList, newProps, oldProps) => {
65
+ const newClassProp = newProps.className || newProps.class;
66
+ const oldClassProp = oldProps.className || oldProps.class;
67
+ const currentClasses = arrayToMap(classList);
68
+ const incomingPropClasses = arrayToMap(newClassProp ? newClassProp.split(' ') : []);
69
+ const oldPropClasses = arrayToMap(oldClassProp ? oldClassProp.split(' ') : []);
70
+ const finalClassNames = [];
71
+ currentClasses.forEach((currentClass) => {
72
+ if (incomingPropClasses.has(currentClass)) {
73
+ finalClassNames.push(currentClass);
74
+ incomingPropClasses.delete(currentClass);
75
+ }
76
+ else if (!oldPropClasses.has(currentClass)) {
77
+ finalClassNames.push(currentClass);
78
+ }
79
+ });
80
+ incomingPropClasses.forEach((s) => finalClassNames.push(s));
81
+ return finalClassNames.join(' ');
82
+ };
83
+ const transformReactEventName = (eventNameSuffix) => {
84
+ switch (eventNameSuffix) {
85
+ case 'doubleclick':
86
+ return 'dblclick';
87
+ }
88
+ return eventNameSuffix;
89
+ };
90
+ const isCoveredByReact = (eventNameSuffix) => {
91
+ if (typeof document === 'undefined') {
92
+ return true;
93
+ }
94
+ else {
95
+ const eventName = 'on' + transformReactEventName(eventNameSuffix);
96
+ let isSupported = eventName in document;
97
+ if (!isSupported) {
98
+ const element = document.createElement('div');
99
+ element.setAttribute(eventName, 'return;');
100
+ isSupported = typeof element[eventName] === 'function';
101
+ }
102
+ return isSupported;
103
+ }
104
+ };
105
+ const syncEvent = (node, eventName, newEventHandler) => {
106
+ const eventStore = node.__events || (node.__events = {});
107
+ const oldEventHandler = eventStore[eventName];
108
+ if (oldEventHandler) {
109
+ node.removeEventListener(eventName, oldEventHandler);
110
+ }
111
+ node.addEventListener(eventName, (eventStore[eventName] = function handler(e) {
112
+ if (newEventHandler) {
113
+ newEventHandler.call(this, e);
114
+ }
115
+ }));
116
+ };
117
+ const arrayToMap = (arr) => {
118
+ const map = new Map();
119
+ arr.forEach((s) => map.set(s, s));
120
+ return map;
121
+ };
122
+
123
+ const setRef = (ref, value) => {
124
+ if (typeof ref === 'function') {
125
+ ref(value);
126
+ }
127
+ else if (ref != null) {
128
+ ref.current = value;
129
+ }
130
+ };
131
+ const mergeRefs = (...refs) => {
132
+ return (value) => {
133
+ refs.forEach((ref) => {
134
+ setRef(ref, value);
135
+ });
136
+ };
137
+ };
138
+ const createForwardRef = (ReactComponent, displayName) => {
139
+ const forwardRef = (props, ref) => {
140
+ return React.createElement(ReactComponent, Object.assign({}, props, { forwardedRef: ref }));
141
+ };
142
+ forwardRef.displayName = displayName;
143
+ return React.forwardRef(forwardRef);
144
+ };
145
+
146
+ const createReactComponent = (tagName, ReactComponentContext, manipulatePropsFunction, defineCustomElement) => {
147
+ if (defineCustomElement !== undefined) {
148
+ defineCustomElement();
149
+ }
150
+ const displayName = dashToPascalCase(tagName);
151
+ const ReactComponent = class extends React.Component {
152
+ constructor(props) {
153
+ super(props);
154
+ this.setComponentElRef = (element) => {
155
+ this.componentEl = element;
156
+ };
157
+ }
158
+ componentDidMount() {
159
+ this.componentDidUpdate(this.props);
160
+ }
161
+ componentDidUpdate(prevProps) {
162
+ attachProps(this.componentEl, this.props, prevProps);
163
+ }
164
+ render() {
165
+ const _a = this.props, { children, forwardedRef, style, className, ref } = _a, cProps = __rest(_a, ["children", "forwardedRef", "style", "className", "ref"]);
166
+ let propsToPass = Object.keys(cProps).reduce((acc, name) => {
167
+ const value = cProps[name];
168
+ if (name.indexOf('on') === 0 && name[2] === name[2].toUpperCase()) {
169
+ const eventName = name.substring(2).toLowerCase();
170
+ if (typeof document !== 'undefined' && isCoveredByReact(eventName)) {
171
+ acc[name] = value;
172
+ }
173
+ }
174
+ else {
175
+ const type = typeof value;
176
+ if (type === 'string' || type === 'boolean' || type === 'number') {
177
+ acc[camelToDashCase(name)] = value;
178
+ }
179
+ }
180
+ return acc;
181
+ }, {});
182
+ if (manipulatePropsFunction) {
183
+ propsToPass = manipulatePropsFunction(this.props, propsToPass);
184
+ }
185
+ const newProps = Object.assign(Object.assign({}, propsToPass), { ref: mergeRefs(forwardedRef, this.setComponentElRef), style });
186
+ return createElement(tagName, newProps, children);
187
+ }
188
+ static get displayName() {
189
+ return displayName;
190
+ }
191
+ };
192
+ if (ReactComponentContext) {
193
+ ReactComponent.contextType = ReactComponentContext;
194
+ }
195
+ return createForwardRef(ReactComponent, displayName);
196
+ };
197
+
198
+ const PdsAvatar = createReactComponent('pds-avatar', undefined, undefined, defineCustomElement);
199
+ const PdsButton = createReactComponent('pds-button', undefined, undefined, defineCustomElement$1);
200
+ const PdsCheckbox = createReactComponent('pds-checkbox', undefined, undefined, defineCustomElement$2);
201
+ const PdsChip = createReactComponent('pds-chip', undefined, undefined, defineCustomElement$3);
202
+ const PdsCopytext = createReactComponent('pds-copytext', undefined, undefined, defineCustomElement$4);
203
+ const PdsDivider = createReactComponent('pds-divider', undefined, undefined, defineCustomElement$5);
204
+ const PdsImage = createReactComponent('pds-image', undefined, undefined, defineCustomElement$6);
205
+ const PdsInput = createReactComponent('pds-input', undefined, undefined, defineCustomElement$7);
206
+ const PdsLink = createReactComponent('pds-link', undefined, undefined, defineCustomElement$8);
207
+ const PdsProgress = createReactComponent('pds-progress', undefined, undefined, defineCustomElement$9);
208
+ const PdsRadio = createReactComponent('pds-radio', undefined, undefined, defineCustomElement$a);
209
+ const PdsSortable = createReactComponent('pds-sortable', undefined, undefined, defineCustomElement$b);
210
+ const PdsSortableItem = createReactComponent('pds-sortable-item', undefined, undefined, defineCustomElement$c);
211
+ const PdsSwitch = createReactComponent('pds-switch', undefined, undefined, defineCustomElement$d);
212
+ const PdsTab = createReactComponent('pds-tab', undefined, undefined, defineCustomElement$e);
213
+ const PdsTabpanel = createReactComponent('pds-tabpanel', undefined, undefined, defineCustomElement$f);
214
+ const PdsTabs = createReactComponent('pds-tabs', undefined, undefined, defineCustomElement$g);
215
+ const PdsTextarea = createReactComponent('pds-textarea', undefined, undefined, defineCustomElement$h);
216
+ const PdsTooltip = createReactComponent('pds-tooltip', undefined, undefined, defineCustomElement$i);
217
+
218
+ export { PdsAvatar, PdsButton, PdsCheckbox, PdsChip, PdsCopytext, PdsDivider, PdsImage, PdsInput, PdsLink, PdsProgress, PdsRadio, PdsSortable, PdsSortableItem, PdsSwitch, PdsTab, PdsTabpanel, PdsTabs, PdsTextarea, PdsTooltip };
219
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../src/components/react-component-lib/utils/case.ts","../src/components/react-component-lib/utils/attachProps.ts","../src/components/react-component-lib/utils/index.tsx","../src/components/react-component-lib/createComponent.tsx","../src/components/proxies.ts"],"sourcesContent":[null,null,null,null,null],"names":["definePdsAvatar","definePdsButton","definePdsCheckbox","definePdsChip","definePdsCopytext","definePdsDivider","definePdsImage","definePdsInput","definePdsLink","definePdsProgress","definePdsRadio","definePdsSortable","definePdsSortableItem","definePdsSwitch","definePdsTab","definePdsTabpanel","definePdsTabs","definePdsTextarea","definePdsTooltip"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAO,MAAM,gBAAgB,GAAG,CAAC,GAAW,KAC1C,GAAG;AACA,KAAA,WAAW,EAAE;KACb,KAAK,CAAC,GAAG,CAAC;KACV,GAAG,CAA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C,qBAAa,EAAE;AACpI,MAAM,WAAW,GAAgB,oBAAoB,CAA0C,cAAc,EAAE,SAAS,EAAE,SAAS,EAAEC,qBAAiB,EAAE;AACxJ,MAAM,QAAQ,GAAgB,oBAAoB,CAAoC,WAAW,EAAE,SAAS,EAAE,SAAS,EAAEC,qBAAc,EAAE;AACzI,MAAM,WAAW,GAAgB,oBAAoB,CAA0C,cAAc,EAAE,SAAS,EAAE,SAAS,EAAEC,qBAAiB,EAAE;AACxJ,MAAM,eAAe,GAAgB,oBAAoB,CAAkD,mBAAmB,EAAE,SAAS,EAAE,SAAS,EAAEC,qBAAqB,EAAE;AAC7K,MAAM,SAAS,GAAgB,oBAAoB,CAAsC,YAAY,EAAE,SAAS,EAAE,SAAS,EAAEC,qBAAe,EAAE;AAC9I,MAAM,MAAM,GAAgB,oBAAoB,CAAgC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAEC,qBAAY,EAAE;AAC/H,MAAM,WAAW,GAAgB,oBAAoB,CAA0C,cAAc,EAAE,SAAS,EAAE,SAAS,EAAEC,qBAAiB,EAAE;AACxJ,MAAM,OAAO,GAAgB,oBAAoB,CAAkC,UAAU,EAAE,SAAS,EAAE,SAAS,EAAEC,qBAAa,EAAE;AACpI,MAAM,WAAW,GAAgB,oBAAoB,CAA0C,cAAc,EAAE,SAAS,EAAE,SAAS,EAAEC,qBAAiB,EAAE;AACxJ,MAAM,UAAU,GAAgB,oBAAoB,CAAwC,aAAa,EAAE,SAAS,EAAE,SAAS,EAAEC,qBAAgB;;;;"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { PdsReactProps } from './PdsReactProps';
3
+ interface PdsIconProps {
4
+ color?: string;
5
+ icon?: string;
6
+ name?: string;
7
+ size?: string;
8
+ }
9
+ export declare const PdsIcon: React.ForwardRefExoticComponent<PdsIconProps & PdsReactProps & Omit<React.HTMLAttributes<HTMLPdsIconElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & React.RefAttributes<HTMLPdsIconElement>>;
10
+ export {};
@@ -0,0 +1,6 @@
1
+ export interface PdsReactProps {
2
+ className?: string;
3
+ style?: {
4
+ [key: string]: any;
5
+ };
6
+ }
@@ -0,0 +1 @@
1
+ export * from "./proxies";
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import type { JSX as PdsIconsJSX } from '@pine-ds/icons';
3
+ export declare const PdsIconInner: import("react").ForwardRefExoticComponent<PdsIconsJSX.PdsIcon & Omit<import("react").HTMLAttributes<HTMLPdsIconElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPdsIconElement>>;
@@ -0,0 +1,21 @@
1
+ /// <reference types="react" />
2
+ import type { JSX } from '@pine-ds/core/components';
3
+ export declare const PdsAvatar: import("react").ForwardRefExoticComponent<JSX.PdsAvatar & Omit<import("react").HTMLAttributes<HTMLPdsAvatarElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPdsAvatarElement>>;
4
+ export declare const PdsButton: import("react").ForwardRefExoticComponent<JSX.PdsButton & Omit<import("react").HTMLAttributes<HTMLPdsButtonElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPdsButtonElement>>;
5
+ export declare const PdsCheckbox: import("react").ForwardRefExoticComponent<JSX.PdsCheckbox & Omit<import("react").HTMLAttributes<HTMLPdsCheckboxElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPdsCheckboxElement>>;
6
+ export declare const PdsChip: import("react").ForwardRefExoticComponent<JSX.PdsChip & Omit<import("react").HTMLAttributes<HTMLPdsChipElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPdsChipElement>>;
7
+ export declare const PdsCopytext: import("react").ForwardRefExoticComponent<JSX.PdsCopytext & Omit<import("react").HTMLAttributes<HTMLPdsCopytextElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPdsCopytextElement>>;
8
+ export declare const PdsDivider: import("react").ForwardRefExoticComponent<JSX.PdsDivider & Omit<import("react").HTMLAttributes<HTMLPdsDividerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPdsDividerElement>>;
9
+ export declare const PdsImage: import("react").ForwardRefExoticComponent<JSX.PdsImage & Omit<import("react").HTMLAttributes<HTMLPdsImageElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPdsImageElement>>;
10
+ export declare const PdsInput: import("react").ForwardRefExoticComponent<JSX.PdsInput & Omit<import("react").HTMLAttributes<HTMLPdsInputElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPdsInputElement>>;
11
+ export declare const PdsLink: import("react").ForwardRefExoticComponent<JSX.PdsLink & Omit<import("react").HTMLAttributes<HTMLPdsLinkElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPdsLinkElement>>;
12
+ export declare const PdsProgress: import("react").ForwardRefExoticComponent<JSX.PdsProgress & Omit<import("react").HTMLAttributes<HTMLPdsProgressElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPdsProgressElement>>;
13
+ export declare const PdsRadio: import("react").ForwardRefExoticComponent<JSX.PdsRadio & Omit<import("react").HTMLAttributes<HTMLPdsRadioElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPdsRadioElement>>;
14
+ export declare const PdsSortable: import("react").ForwardRefExoticComponent<JSX.PdsSortable & Omit<import("react").HTMLAttributes<HTMLPdsSortableElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPdsSortableElement>>;
15
+ export declare const PdsSortableItem: import("react").ForwardRefExoticComponent<JSX.PdsSortableItem & Omit<import("react").HTMLAttributes<HTMLPdsSortableItemElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPdsSortableItemElement>>;
16
+ export declare const PdsSwitch: import("react").ForwardRefExoticComponent<JSX.PdsSwitch & Omit<import("react").HTMLAttributes<HTMLPdsSwitchElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPdsSwitchElement>>;
17
+ export declare const PdsTab: import("react").ForwardRefExoticComponent<JSX.PdsTab & Omit<import("react").HTMLAttributes<HTMLPdsTabElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPdsTabElement>>;
18
+ export declare const PdsTabpanel: import("react").ForwardRefExoticComponent<JSX.PdsTabpanel & Omit<import("react").HTMLAttributes<HTMLPdsTabpanelElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPdsTabpanelElement>>;
19
+ export declare const PdsTabs: import("react").ForwardRefExoticComponent<JSX.PdsTabs & Omit<import("react").HTMLAttributes<HTMLPdsTabsElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPdsTabsElement>>;
20
+ export declare const PdsTextarea: import("react").ForwardRefExoticComponent<JSX.PdsTextarea & Omit<import("react").HTMLAttributes<HTMLPdsTextareaElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPdsTextareaElement>>;
21
+ export declare const PdsTooltip: import("react").ForwardRefExoticComponent<JSX.PdsTooltip & Omit<import("react").HTMLAttributes<HTMLPdsTooltipElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPdsTooltipElement>>;
@@ -0,0 +1,10 @@
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 {};
@@ -0,0 +1,21 @@
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 {};
@@ -0,0 +1,2 @@
1
+ export { createReactComponent } from './createComponent';
2
+ export { createOverlayComponent } from './createOverlayComponent';
@@ -0,0 +1,29 @@
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
+ }
@@ -0,0 +1,9 @@
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
+ export declare const transformReactEventName: (eventNameSuffix: string) => string;
4
+ export declare const isCoveredByReact: (eventNameSuffix: string) => boolean;
5
+ export declare const syncEvent: (node: Element & {
6
+ __events?: {
7
+ [key: string]: (e: Event) => any;
8
+ };
9
+ }, eventName: string, newEventHandler?: (e: Event) => any) => void;
@@ -0,0 +1,2 @@
1
+ export declare const dashToPascalCase: (str: string) => string;
2
+ export declare const camelToDashCase: (str: string) => string;
@@ -0,0 +1,2 @@
1
+ export declare const isDevMode: () => boolean;
2
+ export declare const deprecationWarning: (key: string, message: string) => void;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import type { StyleReactProps } from '../interfaces';
3
+ export type StencilReactExternalProps<PropType, ElementType> = PropType & Omit<React.HTMLAttributes<ElementType>, 'style'> & StyleReactProps;
4
+ export type StencilReactForwardedRef<T> = ((instance: T | null) => void) | React.MutableRefObject<T | null> | null;
5
+ export declare const setRef: (ref: StencilReactForwardedRef<any> | React.Ref<any> | undefined, value: any) => void;
6
+ export declare const mergeRefs: (...refs: (StencilReactForwardedRef<any> | React.Ref<any> | undefined)[]) => React.RefCallback<any>;
7
+ export declare const createForwardRef: <PropType, ElementType>(ReactComponent: any, displayName: string) => React.ForwardRefExoticComponent<React.PropsWithoutRef<StencilReactExternalProps<PropType, ElementType>> & React.RefAttributes<ElementType>>;
8
+ export declare const defineCustomElement: (tagName: string, customElement: any) => void;
9
+ export * from './attachProps';
10
+ export * from './case';
@@ -0,0 +1,2 @@
1
+ export * from "./components/proxies";
2
+ export { defineCustomElements } from '@pine-ds/core/loader';
package/package.json ADDED
@@ -0,0 +1,68 @@
1
+ {
2
+ "name": "@pine-ds/react",
3
+ "version": "0.0.2-alpha.0",
4
+ "license": "MIT",
5
+ "description": "Pine Web Components React Wrapper",
6
+ "author": "Kajabi Design System Services",
7
+ "keywords": [
8
+ "pine",
9
+ "react",
10
+ "components",
11
+ "framework"
12
+ ],
13
+ "homepage": "https://github.com/kajabi/pine/tree/main#readme",
14
+ "sideEffects": false,
15
+ "main": "dist/index.js",
16
+ "module": "dist/index.js",
17
+ "types": "dist/types/index.d.ts",
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "git+https://github.com/Kajabi/pine.git"
21
+ },
22
+ "bugs": {
23
+ "url": "https://github.com/kajabi/pine/issues"
24
+ },
25
+ "directories": {
26
+ "lib": "lib",
27
+ "test": "__tests__"
28
+ },
29
+ "files": [
30
+ "dist/"
31
+ ],
32
+ "scripts": {
33
+ "build": "npm run clean && npm run compile",
34
+ "clean": "rm -rf dist",
35
+ "compile": "rollup -c",
36
+ "tsc": "tsc -p ."
37
+ },
38
+ "dependencies": {
39
+ "@pine-ds/core": "0.0.2-alpha.0",
40
+ "@pine-ds/icons": "3.3.0-rc.0"
41
+ },
42
+ "devDependencies": {
43
+ "@rollup/plugin-typescript": "^11.1.5",
44
+ "@testing-library/jest-dom": "^6.1.3",
45
+ "@types/jest": "^29.1.2",
46
+ "@types/node": "^18.8.4",
47
+ "@types/react": "^18.0.21",
48
+ "@types/react-dom": "^18.0.6",
49
+ "jest": "^29.1.2",
50
+ "np": "^3.1.0",
51
+ "react": "^17.0.2",
52
+ "react-dom": "^17.0.2",
53
+ "ts-jest": "^29.0.3",
54
+ "typescript": "^4.8.4"
55
+ },
56
+ "jest": {
57
+ "preset": "ts-jest",
58
+ "setupTestFrameworkScriptFile": "<rootDir>/jest.setup.js",
59
+ "testPathIgnorePatterns": [
60
+ "node_modules",
61
+ "dist"
62
+ ]
63
+ },
64
+ "peerDependencies": {
65
+ "react": "^17.0.2",
66
+ "react-dom": "^17.0.2"
67
+ }
68
+ }