@react-hive/honey-style 2.11.0 → 2.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/types.d.ts +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.dev.cjs +95 -68
- package/dist/index.dev.cjs.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/dist/styled.d.ts +4 -1
- package/package.json +5 -5
package/dist/index.dev.cjs
CHANGED
|
@@ -10,75 +10,81 @@
|
|
|
10
10
|
|
|
11
11
|
__webpack_require__.r(__webpack_exports__);
|
|
12
12
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13
|
-
/* harmony export */ FOCUSABLE_HTML_TAGS: () => (/* binding */
|
|
14
|
-
/* harmony export */ assert: () => (/* binding */
|
|
15
|
-
/* harmony export */ blobToFile: () => (/* binding */
|
|
16
|
-
/* harmony export */ calculateEuclideanDistance: () => (/* binding */
|
|
17
|
-
/* harmony export */ calculateMovingSpeed: () => (/* binding */
|
|
18
|
-
/* harmony export */ calculatePercentage: () => (/* binding */
|
|
19
|
-
/* harmony export */ camelToDashCase: () => (/* binding */
|
|
20
|
-
/* harmony export */ camelToWords: () => (/* binding */
|
|
21
|
-
/* harmony export */ chunk: () => (/* binding */
|
|
22
|
-
/* harmony export */ cloneBlob: () => (/* binding */
|
|
23
|
-
/* harmony export */ compact: () => (/* binding */
|
|
24
|
-
/* harmony export */ compose: () => (/* binding */
|
|
13
|
+
/* harmony export */ FOCUSABLE_HTML_TAGS: () => (/* binding */ re),
|
|
14
|
+
/* harmony export */ assert: () => (/* binding */ t),
|
|
15
|
+
/* harmony export */ blobToFile: () => (/* binding */ ge),
|
|
16
|
+
/* harmony export */ calculateEuclideanDistance: () => (/* binding */ Q),
|
|
17
|
+
/* harmony export */ calculateMovingSpeed: () => (/* binding */ ee),
|
|
18
|
+
/* harmony export */ calculatePercentage: () => (/* binding */ te),
|
|
19
|
+
/* harmony export */ camelToDashCase: () => (/* binding */ H),
|
|
20
|
+
/* harmony export */ camelToWords: () => (/* binding */ W),
|
|
21
|
+
/* harmony export */ chunk: () => (/* binding */ M),
|
|
22
|
+
/* harmony export */ cloneBlob: () => (/* binding */ ae),
|
|
23
|
+
/* harmony export */ compact: () => (/* binding */ _),
|
|
24
|
+
/* harmony export */ compose: () => (/* binding */ T),
|
|
25
|
+
/* harmony export */ definedProps: () => (/* binding */ be),
|
|
25
26
|
/* harmony export */ delay: () => (/* binding */ X),
|
|
26
|
-
/* harmony export */ difference: () => (/* binding */
|
|
27
|
-
/* harmony export */ everyAsync: () => (/* binding */
|
|
28
|
-
/* harmony export */ fileListToFiles: () => (/* binding */
|
|
29
|
-
/* harmony export */ filterParallel: () => (/* binding */
|
|
27
|
+
/* harmony export */ difference: () => (/* binding */ x),
|
|
28
|
+
/* harmony export */ everyAsync: () => (/* binding */ z),
|
|
29
|
+
/* harmony export */ fileListToFiles: () => (/* binding */ pe),
|
|
30
|
+
/* harmony export */ filterParallel: () => (/* binding */ B),
|
|
30
31
|
/* harmony export */ filterSequential: () => (/* binding */ $),
|
|
31
|
-
/* harmony export */ findAsync: () => (/* binding */
|
|
32
|
-
/* harmony export */ getDOMRectIntersectionRatio: () => (/* binding */
|
|
33
|
-
/* harmony export */ getElementOffsetRect: () => (/* binding */
|
|
34
|
-
/* harmony export */ getFocusableHtmlElements: () => (/* binding */
|
|
35
|
-
/* harmony export */
|
|
36
|
-
/* harmony export */
|
|
32
|
+
/* harmony export */ findAsync: () => (/* binding */ G),
|
|
33
|
+
/* harmony export */ getDOMRectIntersectionRatio: () => (/* binding */ ie),
|
|
34
|
+
/* harmony export */ getElementOffsetRect: () => (/* binding */ oe),
|
|
35
|
+
/* harmony export */ getFocusableHtmlElements: () => (/* binding */ ue),
|
|
36
|
+
/* harmony export */ getLocalStorageCapabilities: () => (/* binding */ he),
|
|
37
|
+
/* harmony export */ hashString: () => (/* binding */ K),
|
|
38
|
+
/* harmony export */ intersection: () => (/* binding */ P),
|
|
37
39
|
/* harmony export */ invokeIfFunction: () => (/* binding */ F),
|
|
38
|
-
/* harmony export */ isAnchorHtmlElement: () => (/* binding */
|
|
39
|
-
/* harmony export */ isArray: () => (/* binding */
|
|
40
|
+
/* harmony export */ isAnchorHtmlElement: () => (/* binding */ se),
|
|
41
|
+
/* harmony export */ isArray: () => (/* binding */ A),
|
|
42
|
+
/* harmony export */ isBlob: () => (/* binding */ f),
|
|
40
43
|
/* harmony export */ isBool: () => (/* binding */ s),
|
|
41
|
-
/* harmony export */ isContentEditableHtmlElement: () => (/* binding */
|
|
42
|
-
/* harmony export */ isDate: () => (/* binding */
|
|
44
|
+
/* harmony export */ isContentEditableHtmlElement: () => (/* binding */ le),
|
|
45
|
+
/* harmony export */ isDate: () => (/* binding */ u),
|
|
43
46
|
/* harmony export */ isDefined: () => (/* binding */ a),
|
|
44
|
-
/* harmony export */ isEmptyArray: () => (/* binding */
|
|
45
|
-
/* harmony export */ isEmptyObject: () => (/* binding */
|
|
46
|
-
/* harmony export */
|
|
47
|
-
/* harmony export */
|
|
48
|
-
/* harmony export */
|
|
49
|
-
/* harmony export */
|
|
50
|
-
/* harmony export */
|
|
51
|
-
/* harmony export */
|
|
52
|
-
/* harmony export */
|
|
53
|
-
/* harmony export */
|
|
54
|
-
/* harmony export */
|
|
55
|
-
/* harmony export */
|
|
56
|
-
/* harmony export */
|
|
47
|
+
/* harmony export */ isEmptyArray: () => (/* binding */ S),
|
|
48
|
+
/* harmony export */ isEmptyObject: () => (/* binding */ c),
|
|
49
|
+
/* harmony export */ isError: () => (/* binding */ h),
|
|
50
|
+
/* harmony export */ isFile: () => (/* binding */ ye),
|
|
51
|
+
/* harmony export */ isFiniteNumber: () => (/* binding */ d),
|
|
52
|
+
/* harmony export */ isFunction: () => (/* binding */ O),
|
|
53
|
+
/* harmony export */ isHtmlElementFocusable: () => (/* binding */ ce),
|
|
54
|
+
/* harmony export */ isInteger: () => (/* binding */ b),
|
|
55
|
+
/* harmony export */ isLocalStorageReadable: () => (/* binding */ fe),
|
|
56
|
+
/* harmony export */ isMap: () => (/* binding */ p),
|
|
57
|
+
/* harmony export */ isNil: () => (/* binding */ n),
|
|
58
|
+
/* harmony export */ isNilOrEmptyString: () => (/* binding */ V),
|
|
59
|
+
/* harmony export */ isNull: () => (/* binding */ r),
|
|
60
|
+
/* harmony export */ isNumber: () => (/* binding */ o),
|
|
61
|
+
/* harmony export */ isObject: () => (/* binding */ l),
|
|
57
62
|
/* harmony export */ isPromise: () => (/* binding */ L),
|
|
58
|
-
/* harmony export */ isRegExp: () => (/* binding */
|
|
59
|
-
/* harmony export */ isSet: () => (/* binding */
|
|
60
|
-
/* harmony export */ isString: () => (/* binding */
|
|
61
|
-
/* harmony export */ isSymbol: () => (/* binding */
|
|
62
|
-
/* harmony export */ isUndefined: () => (/* binding */
|
|
63
|
-
/* harmony export */ isValidDate: () => (/* binding */
|
|
63
|
+
/* harmony export */ isRegExp: () => (/* binding */ w),
|
|
64
|
+
/* harmony export */ isSet: () => (/* binding */ g),
|
|
65
|
+
/* harmony export */ isString: () => (/* binding */ U),
|
|
66
|
+
/* harmony export */ isSymbol: () => (/* binding */ m),
|
|
67
|
+
/* harmony export */ isUndefined: () => (/* binding */ i),
|
|
68
|
+
/* harmony export */ isValidDate: () => (/* binding */ y),
|
|
64
69
|
/* harmony export */ noop: () => (/* binding */ C),
|
|
65
|
-
/* harmony export */ not: () => (/* binding */
|
|
66
|
-
/* harmony export */
|
|
67
|
-
/* harmony export */
|
|
68
|
-
/* harmony export */
|
|
69
|
-
/* harmony export */
|
|
70
|
-
/* harmony export */
|
|
71
|
-
/* harmony export */
|
|
70
|
+
/* harmony export */ not: () => (/* binding */ v),
|
|
71
|
+
/* harmony export */ once: () => (/* binding */ I),
|
|
72
|
+
/* harmony export */ parse2DMatrix: () => (/* binding */ ne),
|
|
73
|
+
/* harmony export */ parseFileName: () => (/* binding */ we),
|
|
74
|
+
/* harmony export */ pipe: () => (/* binding */ E),
|
|
75
|
+
/* harmony export */ readFilesFromDataTransfer: () => (/* binding */ de),
|
|
76
|
+
/* harmony export */ reduceAsync: () => (/* binding */ Z),
|
|
77
|
+
/* harmony export */ retry: () => (/* binding */ j),
|
|
72
78
|
/* harmony export */ runParallel: () => (/* binding */ Y),
|
|
73
79
|
/* harmony export */ runSequential: () => (/* binding */ R),
|
|
74
80
|
/* harmony export */ someAsync: () => (/* binding */ D),
|
|
75
|
-
/* harmony export */ splitStringIntoWords: () => (/* binding */
|
|
76
|
-
/* harmony export */ timeout: () => (/* binding */
|
|
77
|
-
/* harmony export */ toKebabCase: () => (/* binding */
|
|
78
|
-
/* harmony export */ traverseFileSystemDirectory: () => (/* binding */
|
|
79
|
-
/* harmony export */ unique: () => (/* binding */
|
|
81
|
+
/* harmony export */ splitStringIntoWords: () => (/* binding */ J),
|
|
82
|
+
/* harmony export */ timeout: () => (/* binding */ N),
|
|
83
|
+
/* harmony export */ toKebabCase: () => (/* binding */ q),
|
|
84
|
+
/* harmony export */ traverseFileSystemDirectory: () => (/* binding */ me),
|
|
85
|
+
/* harmony export */ unique: () => (/* binding */ k)
|
|
80
86
|
/* harmony export */ });
|
|
81
|
-
var
|
|
87
|
+
var e={};function t(e,t){if(!e)throw new Error(t)}e.d=(t,r)=>{for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);const r=e=>null===e,n=e=>null==e,a=e=>null!=e,i=e=>void 0===e,o=e=>"number"==typeof e,s=e=>"boolean"==typeof e,l=e=>"object"==typeof e,c=e=>l(e)&&!r(e)&&0===Object.keys(e).length,u=e=>e instanceof Date,f=e=>e instanceof Blob,h=e=>e instanceof Error,y=e=>u(e)&&!isNaN(e.getTime()),w=e=>e instanceof RegExp,p=e=>e instanceof Map,g=e=>e instanceof Set,m=e=>"symbol"==typeof e,d=e=>o(e)&&isFinite(e),b=e=>o(e)&&Number.isInteger(e),A=e=>Array.isArray(e),S=e=>A(e)&&0===e.length,_=e=>e.filter(Boolean),k=e=>[...new Set(e)],M=(e,r)=>(t(r>0,"Chunk size must be greater than 0"),Array.from({length:Math.ceil(e.length/r)},(t,n)=>e.slice(n*r,(n+1)*r))),P=(...e)=>{if(0===e.length)return[];if(1===e.length)return[...e[0]];const[t,...r]=e;return k(t).filter(e=>r.every(t=>t.includes(e)))},x=(e,t)=>e.filter(e=>!t.includes(e)),E=(...e)=>t=>e.reduce((e,t)=>t(e),t),T=(...e)=>t=>e.reduceRight((e,t)=>t(e),t),C=()=>{},O=e=>"function"==typeof e,v=e=>(...t)=>!e(...t),F=(e,...t)=>"function"==typeof e?e(...t):e,X=e=>new Promise(t=>setTimeout(t,e)),N=async(e,t,r="Operation timed out")=>{try{return await Promise.race([e,X(t).then(()=>Promise.reject(new Error(r)))])}finally{}},j=(e,{maxAttempts:t=3,delayMs:r=300,backoff:n=!0,onRetry:a}={})=>async(...i)=>{let o;for(let s=1;s<=t;s++)try{return await e(...i)}catch(e){if(o=e,s<t){a?.(s,e);const t=n?r*2**(s-1):r;await X(t)}}throw o},I=e=>{let t,r=!1;return function(...n){return r||(r=!0,t=e.apply(this,n)),t}},L=e=>O(e?.then),R=async(e,t)=>{const r=[];for(let n=0;n<e.length;n++)r.push(await t(e[n],n,e));return r},Y=async(e,t)=>Promise.all(e.map(t)),$=async(e,t)=>{const r=[];for(let n=0;n<e.length;n++){const a=e[n];await t(a,n,e)&&r.push(a)}return r},B=async(e,t)=>{const r=await Y(e,async(e,r,n)=>!!await t(e,r,n)&&e);return _(r)},D=async(e,t)=>{for(let r=0;r<e.length;r++)if(await t(e[r],r,e))return!0;return!1},z=async(e,t)=>{for(let r=0;r<e.length;r++)if(!await t(e[r],r,e))return!1;return!0},Z=async(e,t,r)=>{let n=r;for(let r=0;r<e.length;r++)n=await t(n,e[r],r,e);return n},G=async(e,t)=>{for(let r=0;r<e.length;r++)if(await t(e[r],r,e))return e[r];return null},U=e=>"string"==typeof e,V=e=>""===e||n(e),q=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),H=e=>{const t=e.charAt(0),r=e.slice(1);return t.toLowerCase()+r.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)},W=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"),J=e=>e.split(" ").filter(Boolean),K=e=>{let t=5381;for(let r=0;r<e.length;r++)t=33*t^e.charCodeAt(r);return(t>>>0).toString(36)},Q=(e,t,r,n)=>{const a=r-e,i=n-t;return Math.hypot(a,i)},ee=(e,t)=>Math.abs(e/t),te=(e,t)=>e*t/100,re=["INPUT","SELECT","TEXTAREA","BUTTON","A"],ne=e=>{const t=window.getComputedStyle(e).getPropertyValue("transform").match(/^matrix\((.+)\)$/);if(!t)return{translateX:0,translateY:0,scaleX:1,scaleY:1,skewX:0,skewY:0};const[r,n,a,i,o,s]=t[1].split(", ").map(parseFloat);return{translateX:o,translateY:s,scaleX:r,scaleY:i,skewX:a,skewY:n}},ae=e=>new Blob([e],{type:e.type}),ie=(e,t)=>Math.max(0,Math.min(e.right,t.right)-Math.max(e.left,t.left))*Math.max(0,Math.min(e.bottom,t.bottom)-Math.max(e.top,t.top))/(t.width*t.height),oe=e=>new DOMRect(e.offsetLeft,e.offsetTop,e.clientWidth,e.clientHeight),se=e=>"A"===e.tagName,le=e=>"true"===e.getAttribute("contenteditable"),ce=e=>{if(!e)return!1;const t=window.getComputedStyle(e);if("hidden"===t.visibility||"none"===t.display)return!1;if("disabled"in e&&e.disabled)return!1;const r=e.getAttribute("tabindex");return"-1"!==r&&(re.includes(e.tagName)?!se(e)||""!==e.href:!!le(e)||null!==r)},ue=e=>Array.from(e.querySelectorAll("*")).filter(ce),fe=()=>{if("undefined"==typeof window||!window.localStorage)return!1;try{return window.localStorage.getItem("__non_existing_key__"),!0}catch{return!1}},he=()=>{if(!fe())return{readable:!1,writable:!1};try{const e="__test_write__";return window.localStorage.setItem(e,"1"),window.localStorage.removeItem(e),{readable:!0,writable:!0}}catch{}return{readable:!0,writable:!1}},ye=e=>e instanceof File,we=e=>{const t=e.lastIndexOf(".");return t<=0||t===e.length-1?[e,""]:[e.slice(0,t),e.slice(t+1).toLowerCase()]},pe=e=>{if(!e)return[];const t=[];for(let r=0;r<e.length;r++)t.push(e[r]);return t},ge=(e,t)=>new File([e],t,{type:e.type}),me=async(e,{skipFiles:t=[".DS_Store","Thumbs.db","desktop.ini","ehthumbs.db",".Spotlight-V100",".Trashes",".fseventsd","__MACOSX"]}={})=>{const r=new Set(t),n=await(async e=>{const t=e.createReader(),r=async()=>new Promise((e,n)=>{t.readEntries(async t=>{if(t.length)try{const n=await r();e([...t,...n])}catch(e){n(e)}else e([])},n)});return r()})(e);return(await Y(n,async e=>e.isDirectory?me(e,{skipFiles:t}):r.has(e.name)?[]:[await new Promise((t,r)=>{e.file(t,r)})])).flat()},de=async(e,t={})=>{const r=e?.items;if(!r)return[];const n=[];for(let e=0;e<r.length;e++){const a=r[e];if("webkitGetAsEntry"in a){const e=a.webkitGetAsEntry?.();if(e?.isDirectory){n.push(me(e,t));continue}if(e?.isFile){n.push(new Promise((t,r)=>e.file(e=>t([e]),r)));continue}}const i=a.getAsFile();i&&n.push(Promise.resolve([i]))}return(await Promise.all(n)).flat()},be=e=>Object.entries(e).reduce((e,[t,r])=>(void 0!==r&&(e[t]=r),e),{});
|
|
82
88
|
//# sourceMappingURL=index.mjs.map
|
|
83
89
|
|
|
84
90
|
/***/ }),
|
|
@@ -2727,7 +2733,7 @@ const evaluateDynamicCss = (interpolation, context) => {
|
|
|
2727
2733
|
// @ts-expect-error
|
|
2728
2734
|
return (0,_css__WEBPACK_IMPORTED_MODULE_4__.css)([''], [interpolation])(context);
|
|
2729
2735
|
};
|
|
2730
|
-
const styled = (target, defaultProps) => {
|
|
2736
|
+
const styled = (target, defaultProps, { omitProps } = {}) => {
|
|
2731
2737
|
return (strings, ...interpolations) => {
|
|
2732
2738
|
const componentId = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.generateId)('hsc');
|
|
2733
2739
|
const computeCss = (0,_css__WEBPACK_IMPORTED_MODULE_4__.css)(strings, ...interpolations);
|
|
@@ -2736,10 +2742,17 @@ const styled = (target, defaultProps) => {
|
|
|
2736
2742
|
console.warn(`[@react-hive/honey-style]: The "css" prop is deprecated. Please use inheritance or composition instead.`);
|
|
2737
2743
|
}
|
|
2738
2744
|
const { theme } = (0,_hooks__WEBPACK_IMPORTED_MODULE_6__.useHoneyStyle)();
|
|
2739
|
-
const cleanedProps =
|
|
2740
|
-
const resolvedDefaultProps =
|
|
2741
|
-
|
|
2742
|
-
|
|
2745
|
+
const cleanedProps = (0,_react_hive_honey_utils__WEBPACK_IMPORTED_MODULE_1__.definedProps)(props);
|
|
2746
|
+
const resolvedDefaultProps = {
|
|
2747
|
+
...((0,_react_hive_honey_utils__WEBPACK_IMPORTED_MODULE_1__.invokeIfFunction)(defaultProps, {
|
|
2748
|
+
theme,
|
|
2749
|
+
as,
|
|
2750
|
+
className,
|
|
2751
|
+
...cleanedProps,
|
|
2752
|
+
}) ?? {}),
|
|
2753
|
+
// Allow overriding the default "className" prop
|
|
2754
|
+
...(className && { className }),
|
|
2755
|
+
};
|
|
2743
2756
|
const context = {
|
|
2744
2757
|
...resolvedDefaultProps,
|
|
2745
2758
|
...cleanedProps,
|
|
@@ -2753,7 +2766,7 @@ const styled = (target, defaultProps) => {
|
|
|
2753
2766
|
});
|
|
2754
2767
|
return (0,_mount_style__WEBPACK_IMPORTED_MODULE_5__.mountStyle)(baseClassName, baseCss, __compositionDepth);
|
|
2755
2768
|
}, [baseClassName]);
|
|
2756
|
-
const cssPropRaw = (0,_react_hive_honey_utils__WEBPACK_IMPORTED_MODULE_1__.
|
|
2769
|
+
const cssPropRaw = (0,_react_hive_honey_utils__WEBPACK_IMPORTED_MODULE_1__.invokeIfFunction)(cssProp, context);
|
|
2757
2770
|
const cssPropString = evaluateDynamicCss(cssPropRaw, context);
|
|
2758
2771
|
const cssPropClassName = cssPropString ? (0,_utils__WEBPACK_IMPORTED_MODULE_3__.resolveClassName)(cssPropString) : '';
|
|
2759
2772
|
(0,react__WEBPACK_IMPORTED_MODULE_0__.useInsertionEffect)(() => {
|
|
@@ -2764,20 +2777,34 @@ const styled = (target, defaultProps) => {
|
|
|
2764
2777
|
return (0,_mount_style__WEBPACK_IMPORTED_MODULE_5__.mountStyle)(cssPropClassName, overrideCss, 1);
|
|
2765
2778
|
}
|
|
2766
2779
|
}, [cssPropClassName]);
|
|
2780
|
+
const finalClassName = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.combineClassNames)([
|
|
2781
|
+
componentId,
|
|
2782
|
+
baseClassName,
|
|
2783
|
+
resolvedDefaultProps.className,
|
|
2784
|
+
cssPropClassName,
|
|
2785
|
+
]);
|
|
2767
2786
|
const mergedProps = {
|
|
2768
2787
|
...resolvedDefaultProps,
|
|
2769
2788
|
...cleanedProps,
|
|
2770
|
-
className:
|
|
2789
|
+
className: finalClassName,
|
|
2771
2790
|
};
|
|
2791
|
+
const finalProps = omitProps
|
|
2792
|
+
? Object.entries(mergedProps).reduce((result, [propName, propValue]) => omitProps(propName)
|
|
2793
|
+
? result
|
|
2794
|
+
: {
|
|
2795
|
+
...result,
|
|
2796
|
+
[propName]: propValue,
|
|
2797
|
+
}, {})
|
|
2798
|
+
: mergedProps;
|
|
2772
2799
|
const finalComponent = as || target;
|
|
2773
2800
|
if ((0,_react_hive_honey_utils__WEBPACK_IMPORTED_MODULE_1__.isString)(target)) {
|
|
2774
2801
|
const filteredProps = (0,_react_hive_honey_utils__WEBPACK_IMPORTED_MODULE_1__.isString)(finalComponent)
|
|
2775
|
-
? (0,_utils__WEBPACK_IMPORTED_MODULE_3__.filterNonHtmlAttrs)(
|
|
2776
|
-
:
|
|
2802
|
+
? (0,_utils__WEBPACK_IMPORTED_MODULE_3__.filterNonHtmlAttrs)(finalProps)
|
|
2803
|
+
: finalProps;
|
|
2777
2804
|
return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(finalComponent, filteredProps);
|
|
2778
2805
|
}
|
|
2779
2806
|
return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(target, {
|
|
2780
|
-
...
|
|
2807
|
+
...finalProps,
|
|
2781
2808
|
...(as && { as }),
|
|
2782
2809
|
...((0,_utils__WEBPACK_IMPORTED_MODULE_3__.isStyledComponent)(target) && {
|
|
2783
2810
|
__compositionDepth: __compositionDepth - 1,
|