@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.
@@ -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 */ Q),
14
- /* harmony export */ assert: () => (/* binding */ e),
15
- /* harmony export */ blobToFile: () => (/* binding */ ut),
16
- /* harmony export */ calculateEuclideanDistance: () => (/* binding */ W),
17
- /* harmony export */ calculateMovingSpeed: () => (/* binding */ J),
18
- /* harmony export */ calculatePercentage: () => (/* binding */ K),
19
- /* harmony export */ camelToDashCase: () => (/* binding */ U),
20
- /* harmony export */ camelToWords: () => (/* binding */ V),
21
- /* harmony export */ chunk: () => (/* binding */ P),
22
- /* harmony export */ cloneBlob: () => (/* binding */ et),
23
- /* harmony export */ compact: () => (/* binding */ A),
24
- /* harmony export */ compose: () => (/* binding */ x),
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 */ S),
27
- /* harmony export */ everyAsync: () => (/* binding */ B),
28
- /* harmony export */ fileListToFiles: () => (/* binding */ ft),
29
- /* harmony export */ filterParallel: () => (/* binding */ j),
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 */ I),
32
- /* harmony export */ getDOMRectIntersectionRatio: () => (/* binding */ nt),
33
- /* harmony export */ getElementOffsetRect: () => (/* binding */ rt),
34
- /* harmony export */ getFocusableHtmlElements: () => (/* binding */ ot),
35
- /* harmony export */ hashString: () => (/* binding */ H),
36
- /* harmony export */ intersection: () => (/* binding */ k),
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 */ at),
39
- /* harmony export */ isArray: () => (/* binding */ d),
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 */ it),
42
- /* harmony export */ isDate: () => (/* binding */ c),
44
+ /* harmony export */ isContentEditableHtmlElement: () => (/* binding */ le),
45
+ /* harmony export */ isDate: () => (/* binding */ u),
43
46
  /* harmony export */ isDefined: () => (/* binding */ a),
44
- /* harmony export */ isEmptyArray: () => (/* binding */ b),
45
- /* harmony export */ isEmptyObject: () => (/* binding */ l),
46
- /* harmony export */ isFile: () => (/* binding */ lt),
47
- /* harmony export */ isFiniteNumber: () => (/* binding */ m),
48
- /* harmony export */ isFunction: () => (/* binding */ E),
49
- /* harmony export */ isHtmlElementFocusable: () => (/* binding */ st),
50
- /* harmony export */ isInteger: () => (/* binding */ g),
51
- /* harmony export */ isMap: () => (/* binding */ h),
52
- /* harmony export */ isNil: () => (/* binding */ r),
53
- /* harmony export */ isNilOrEmptyString: () => (/* binding */ _),
54
- /* harmony export */ isNull: () => (/* binding */ n),
55
- /* harmony export */ isNumber: () => (/* binding */ i),
56
- /* harmony export */ isObject: () => (/* binding */ o),
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 */ u),
59
- /* harmony export */ isSet: () => (/* binding */ y),
60
- /* harmony export */ isString: () => (/* binding */ Z),
61
- /* harmony export */ isSymbol: () => (/* binding */ p),
62
- /* harmony export */ isUndefined: () => (/* binding */ w),
63
- /* harmony export */ isValidDate: () => (/* binding */ f),
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 */ O),
66
- /* harmony export */ parse2DMatrix: () => (/* binding */ tt),
67
- /* harmony export */ parseFileName: () => (/* binding */ ct),
68
- /* harmony export */ pipe: () => (/* binding */ T),
69
- /* harmony export */ readFilesFromDataTransfer: () => (/* binding */ yt),
70
- /* harmony export */ reduceAsync: () => (/* binding */ z),
71
- /* harmony export */ retry: () => (/* binding */ N),
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 */ q),
76
- /* harmony export */ timeout: () => (/* binding */ v),
77
- /* harmony export */ toKebabCase: () => (/* binding */ G),
78
- /* harmony export */ traverseFileSystemDirectory: () => (/* binding */ ht),
79
- /* harmony export */ unique: () => (/* binding */ M)
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 t={};function e(t,e){if(!t)throw new Error(e)}t.d=(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},t.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);const n=t=>null===t,r=t=>null==t,a=t=>null!=t,i=t=>"number"==typeof t,s=t=>"boolean"==typeof t,o=t=>"object"==typeof t,l=t=>o(t)&&!n(t)&&0===Object.keys(t).length,c=t=>t instanceof Date,f=t=>c(t)&&!isNaN(t.getTime()),u=t=>t instanceof RegExp,h=t=>t instanceof Map,y=t=>t instanceof Set,p=t=>"symbol"==typeof t,w=t=>void 0===t,m=t=>i(t)&&isFinite(t),g=t=>i(t)&&Number.isInteger(t),d=t=>Array.isArray(t),b=t=>d(t)&&0===t.length,A=t=>t.filter(Boolean),M=t=>[...new Set(t)],P=(t,n)=>(e(n>0,"Chunk size must be greater than 0"),Array.from({length:Math.ceil(t.length/n)},(e,r)=>t.slice(r*n,(r+1)*n))),k=(...t)=>{if(0===t.length)return[];if(1===t.length)return[...t[0]];const[e,...n]=t;return M(e).filter(t=>n.every(e=>e.includes(t)))},S=(t,e)=>t.filter(t=>!e.includes(t)),T=(...t)=>e=>t.reduce((t,e)=>e(t),e),x=(...t)=>e=>t.reduceRight((t,e)=>e(t),e),C=()=>{},E=t=>"function"==typeof t,O=t=>(...e)=>!t(...e),F=(t,...e)=>"function"==typeof t?t(...e):t,X=t=>new Promise(e=>setTimeout(e,t)),v=async(t,e,n="Operation timed out")=>{try{return await Promise.race([t,X(e).then(()=>Promise.reject(new Error(n)))])}finally{}},N=(t,{maxAttempts:e=3,delayMs:n=300,backoff:r=!0,onRetry:a}={})=>async(...i)=>{let s;for(let o=1;o<=e;o++)try{return await t(...i)}catch(t){if(s=t,o<e){a?.(o,t);const e=r?n*2**(o-1):n;await X(e)}}throw s},L=t=>E(t?.then),R=async(t,e)=>{const n=[];for(let r=0;r<t.length;r++)n.push(await e(t[r],r,t));return n},Y=async(t,e)=>Promise.all(t.map(e)),$=async(t,e)=>{const n=[];for(let r=0;r<t.length;r++){const a=t[r];await e(a,r,t)&&n.push(a)}return n},j=async(t,e)=>{const n=await Y(t,async(t,n,r)=>!!await e(t,n,r)&&t);return A(n)},D=async(t,e)=>{for(let n=0;n<t.length;n++)if(await e(t[n],n,t))return!0;return!1},B=async(t,e)=>{for(let n=0;n<t.length;n++)if(!await e(t[n],n,t))return!1;return!0},z=async(t,e,n)=>{let r=n;for(let n=0;n<t.length;n++)r=await e(r,t[n],n,t);return r},I=async(t,e)=>{for(let n=0;n<t.length;n++)if(await e(t[n],n,t))return t[n];return null},Z=t=>"string"==typeof t,_=t=>""===t||r(t),G=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),U=t=>{const e=t.charAt(0),n=t.slice(1);return e.toLowerCase()+n.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)},V=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1 $2"),q=t=>t.split(" ").filter(Boolean),H=t=>{let e=5381;for(let n=0;n<t.length;n++)e=33*e^t.charCodeAt(n);return(e>>>0).toString(36)},W=(t,e,n,r)=>{const a=n-t,i=r-e;return Math.hypot(a,i)},J=(t,e)=>Math.abs(t/e),K=(t,e)=>t*e/100,Q=["INPUT","SELECT","TEXTAREA","BUTTON","A"],tt=t=>{const e=window.getComputedStyle(t).getPropertyValue("transform").match(/^matrix\((.+)\)$/);if(!e)return{translateX:0,translateY:0,scaleX:1,scaleY:1,skewX:0,skewY:0};const[n,r,a,i,s,o]=e[1].split(", ").map(parseFloat);return{translateX:s,translateY:o,scaleX:n,scaleY:i,skewX:a,skewY:r}},et=t=>new Blob([t],{type:t.type}),nt=(t,e)=>Math.max(0,Math.min(t.right,e.right)-Math.max(t.left,e.left))*Math.max(0,Math.min(t.bottom,e.bottom)-Math.max(t.top,e.top))/(e.width*e.height),rt=t=>new DOMRect(t.offsetLeft,t.offsetTop,t.clientWidth,t.clientHeight),at=t=>"A"===t.tagName,it=t=>"true"===t.getAttribute("contenteditable"),st=t=>{if(!t)return!1;const e=window.getComputedStyle(t);if("hidden"===e.visibility||"none"===e.display)return!1;if("disabled"in t&&t.disabled)return!1;const n=t.getAttribute("tabindex");return"-1"!==n&&(Q.includes(t.tagName)?!at(t)||""!==t.href:!!it(t)||null!==n)},ot=t=>Array.from(t.querySelectorAll("*")).filter(st),lt=t=>t instanceof File,ct=t=>{const e=t.lastIndexOf(".");return e<=0||e===t.length-1?[t,""]:[t.slice(0,e),t.slice(e+1).toLowerCase()]},ft=t=>{if(!t)return[];const e=[];for(let n=0;n<t.length;n++)e.push(t[n]);return e},ut=(t,e)=>new File([t],e,{type:t.type}),ht=async(t,{skipFiles:e=[".DS_Store","Thumbs.db","desktop.ini","ehthumbs.db",".Spotlight-V100",".Trashes",".fseventsd","__MACOSX"]}={})=>{const n=new Set(e),r=await(async t=>{const e=t.createReader(),n=async()=>new Promise((t,r)=>{e.readEntries(async e=>{if(e.length)try{const r=await n();t([...e,...r])}catch(t){r(t)}else t([])},r)});return n()})(t);return(await Y(r,async t=>t.isDirectory?ht(t,{skipFiles:e}):n.has(t.name)?[]:[await new Promise((e,n)=>{t.file(e,n)})])).flat()},yt=async(t,e={})=>{const n=t?.items;if(!n)return[];const r=[];for(let t=0;t<n.length;t++){const a=n[t];if("webkitGetAsEntry"in a){const t=a.webkitGetAsEntry?.();if(t?.isDirectory){r.push(ht(t,e));continue}if(t?.isFile){r.push(new Promise((e,n)=>t.file(t=>e([t]),n)));continue}}const i=a.getAsFile();i&&r.push(Promise.resolve([i]))}return(await Promise.all(r)).flat()};
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 = Object.fromEntries(Object.entries(props).filter(([, value]) => value !== undefined));
2740
- const resolvedDefaultProps = (0,_react_hive_honey_utils__WEBPACK_IMPORTED_MODULE_1__.isFunction)(defaultProps)
2741
- ? defaultProps({ theme, as, className, ...cleanedProps })
2742
- : (defaultProps ?? {});
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__.isFunction)(cssProp) ? cssProp(context) : cssProp;
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: (0,_utils__WEBPACK_IMPORTED_MODULE_3__.combineClassNames)([componentId, baseClassName, className, cssPropClassName]),
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)(mergedProps)
2776
- : mergedProps;
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
- ...mergedProps,
2807
+ ...finalProps,
2781
2808
  ...(as && { as }),
2782
2809
  ...((0,_utils__WEBPACK_IMPORTED_MODULE_3__.isStyledComponent)(target) && {
2783
2810
  __compositionDepth: __compositionDepth - 1,