@six-group/ui-library-react 0.0.0-insider.d82aaa2 → 0.0.0-insider.d89f9dc
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/stencil-generated/components.js +563 -0
- package/dist/lib/stencil-generated/components.js.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/lib/stencil-generated/components.d.ts +286 -0
- package/package.json +24 -36
- package/LICENSE +0 -201
- package/dist/components.d.ts +0 -53
- package/dist/components.js +0 -59
- package/dist/components.js.map +0 -1
- package/dist/react-component-lib/createComponent.d.ts +0 -10
- package/dist/react-component-lib/createComponent.js +0 -75
- package/dist/react-component-lib/createComponent.js.map +0 -1
- package/dist/react-component-lib/createOverlayComponent.d.ts +0 -21
- package/dist/react-component-lib/createOverlayComponent.js +0 -96
- package/dist/react-component-lib/createOverlayComponent.js.map +0 -1
- package/dist/react-component-lib/index.d.ts +0 -2
- package/dist/react-component-lib/index.js +0 -3
- package/dist/react-component-lib/index.js.map +0 -1
- package/dist/react-component-lib/interfaces.d.ts +0 -29
- package/dist/react-component-lib/interfaces.js +0 -2
- package/dist/react-component-lib/interfaces.js.map +0 -1
- package/dist/react-component-lib/utils/attachProps.d.ts +0 -16
- package/dist/react-component-lib/utils/attachProps.js +0 -108
- package/dist/react-component-lib/utils/attachProps.js.map +0 -1
- package/dist/react-component-lib/utils/case.d.ts +0 -2
- package/dist/react-component-lib/utils/case.js +0 -7
- package/dist/react-component-lib/utils/case.js.map +0 -1
- package/dist/react-component-lib/utils/dev.d.ts +0 -2
- package/dist/react-component-lib/utils/dev.js +0 -13
- package/dist/react-component-lib/utils/dev.js.map +0 -1
- package/dist/react-component-lib/utils/index.d.ts +0 -10
- package/dist/react-component-lib/utils/index.js +0 -32
- package/dist/react-component-lib/utils/index.js.map +0 -1
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export const setRef = (ref, value) => {
|
|
3
|
-
if (typeof ref === 'function') {
|
|
4
|
-
ref(value);
|
|
5
|
-
}
|
|
6
|
-
else if (ref != null) {
|
|
7
|
-
// Cast as a MutableRef so we can assign current
|
|
8
|
-
ref.current = value;
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
export const mergeRefs = (...refs) => {
|
|
12
|
-
return (value) => {
|
|
13
|
-
refs.forEach((ref) => {
|
|
14
|
-
setRef(ref, value);
|
|
15
|
-
});
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
export const createForwardRef = (ReactComponent, displayName) => {
|
|
19
|
-
const forwardRef = (props, ref) => {
|
|
20
|
-
return React.createElement(ReactComponent, Object.assign({}, props, { forwardedRef: ref }));
|
|
21
|
-
};
|
|
22
|
-
forwardRef.displayName = displayName;
|
|
23
|
-
return React.forwardRef(forwardRef);
|
|
24
|
-
};
|
|
25
|
-
export const defineCustomElement = (tagName, customElement) => {
|
|
26
|
-
if (customElement !== undefined && typeof customElements !== 'undefined' && !customElements.get(tagName)) {
|
|
27
|
-
customElements.define(tagName, customElement);
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
export * from './attachProps';
|
|
31
|
-
export * from './case';
|
|
32
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/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,CA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