@fluentui/react-compose
Advanced tools
Comparing version 1.0.0-beta.8 to 1.0.0-beta.9
@@ -869,3 +869,3 @@ var FluentCompose = | ||
Object(_fluentui_set_version__WEBPACK_IMPORTED_MODULE_0__["setVersion"])('@fluentui/react-compose', '1.0.0-beta.8'); | ||
Object(_fluentui_set_version__WEBPACK_IMPORTED_MODULE_0__["setVersion"])('@fluentui/react-compose', '1.0.0-beta.9'); | ||
@@ -872,0 +872,0 @@ |
@@ -1,2 +0,2 @@ | ||
var FluentCompose=function(e){var r={};function t(o){if(r[o])return r[o].exports;var n=r[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,t),n.l=!0,n.exports}return t.m=e,t.c=r,t.d=function(e,r,o){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:o})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(t.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)t.d(o,n,function(r){return e[r]}.bind(null,n));return o},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=1)}([function(e,r){e.exports=React},function(e,r,t){"use strict";t.r(r),t.d(r,"compose",(function(){return i})),t.d(r,"createClassResolver",(function(){return f})),t.d(r,"mergeProps",(function(){return m})),t.d(r,"mergeSlotProp",(function(){return d}));var o=function(){return(o=Object.assign||function(e){for(var r,t=1,o=arguments.length;t<o;t++)for(var n in r=arguments[t])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e}).apply(this,arguments)};function n(){for(var e=0,r=0,t=arguments.length;r<t;r++)e+=arguments[r].length;var o=Array(e),n=0;for(r=0;r<t;r++)for(var s=arguments[r],a=0,l=s.length;a<l;a++,n++)o[n]=s[a];return o}var s=t(0);function a(e,r){return e.overrideStyles?[e.displayName].filter(Boolean):e.displayName?r.displayNames.concat(e.displayName):r.displayNames}var l={className:"",classes:[],displayName:"",displayNames:[],mapPropsToStylesPropsChain:[],render:function(){return null},handledProps:[],overrideStyles:!1,slots:{__self:function(){return null}},slotProps:[],state:function(e){return e},resolveSlotProps:function(){return{}},shorthandConfig:{}};var i=function(e,r){void 0===r&&(r={});var t=function(e,r,t){void 0===t&&(t=l);var s=r.slotProps?n(t.slotProps,[r.slotProps]):t.slotProps,i=Array.isArray(r.classes)?r.classes:[r.classes];return{className:r.className||t.className,classes:n(t.classes,i),displayName:r.displayName||t.displayName,displayNames:a(r,t),mapPropsToStylesPropsChain:r.mapPropsToStylesProps?n(t.mapPropsToStylesPropsChain,[r.mapPropsToStylesProps]):t.mapPropsToStylesPropsChain,render:"function"==typeof e?e:t.render,handledProps:n(t.handledProps,r.handledProps||[]),overrideStyles:r.overrideStyles||!1,slots:o(o({},t.slots),r.slots),slotProps:s,state:function(e,o,n){return r.state?r.state(t.state(e,o,n),o,n):t.state(e,o,n)},resolveSlotProps:function(e){return s.reduce((function(r,t){var s=o({},t(e)),a=n(Object.keys(r),Object.keys(s)),l={};return a.forEach((function(e){l[e]||(l[e]=o(o({},r[e]),s[e]))})),l}),{})},shorthandConfig:o(o({},t.shorthandConfig),r.shorthandConfig)}}(e,r,function(e){return!!e.fluentComposeConfig}(e)?e.fluentComposeConfig:void 0),i=s.forwardRef((function(e,r){return t.render(e,r,o(o({},t),{state:t.state(e,r,t),slots:o(o({},t.slots),{__self:i})}))}));return i.displayName=t.displayName,e.defaultProps&&(i.defaultProps=e.defaultProps),i.fluentComposeConfig=t,i};function u(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];for(var t="",o=0,n=e;o<n.length;o++){var s=n[o];s&&(t=(t?t+" ":"")+s)}return t}var f=function(e){var r=function(e){var r={slots:{},modifiers:{},enums:{}},t=r.slots,o=r.modifiers,n=r.enums;return Object.keys(e).forEach((function(r){var s=e[r];if(s){var a=r.split("_");switch(a.length){case 2:o[a[1]]=s;break;case 3:var l=a[1],i=a[2];(n[l]=n[l]||{})[i]=s;break;default:t[r]=s}}})),r}(e),t=r.slots,o=r.modifiers,n=r.enums;return function(e){for(var r={},s="",a=0,l=Object.keys(o);a<l.length;a++){var i=l[a];e[i]&&(s=u(s,o[i]))}for(var f="",c=0,p=Object.keys(n);c<p.length;c++){var d=p[c],v=n[d];v[e[d]]&&(f=u(f,v[e[d]]))}for(var y=0,m=Object.keys(t);y<m.length;y++){var h=m[y];r[h]=u(t[h],s,f)}return r}};function c(e,r,t){if(t){var o=e[r]=e[r]||{};o.className=u(o.className,t)}}var p={iframe:"src",img:"src",input:"type"};function d(e,r,t){var n;return void 0===t&&(t="children"),"object"!=typeof e||s.isValidElement(e)?o(((n={})[t]=e,n),r):o(o({},e),r)}var v=function(){return null};function y(e,r){var t=e.state,n=e.slots,a=e.slotProps;return r.slotProps.forEach((function(e){var r=e(t);Object.keys(r).forEach((function(e){a[e]=o(o({},a[e]),r[e])}))})),function(e,r,t){t&&(e[r]||(e[r]={}),e[r]=o(o({},e[r]),t))}(a,"root",function(e,r){for(var t={},o=Object.keys(r.slots),n=0,s=Object.keys(e);n<s.length;n++){var a=s[n];"className"!==a&&"as"!==a&&-1===r.handledProps.indexOf(a)&&-1===o.indexOf(a)&&(t[a]=e[a])}return t}(t,r)),Object.keys(n).forEach((function(e){var r=n[e],l=t[e];if(r&&null!=l){var i=d(l,a[e],r&&r.shorthandConfig&&r.shorthandConfig.mappedProp||p[r]);if("function"==typeof i.children){l.children;var u=function(e,r){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)r.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(t[o[n]]=e[o[n]])}return t}(l,["children"]);n[e]=s.Fragment,a[e]={children:l.children(r,o(o({},a[e]),u))}}else a[e]=i}n[e]&&null!==l||(n[e]=v)})),e}function m(e,r){var t={state:e,slots:o(o({},r.slots),{root:e.as||r.slots.root||"div"}),slotProps:{}};return function(e,r){for(var t=e.state,o=e.slots,n=e.slotProps,s=0,a=r;s<a.length;s++){var l=a[s],i="function"==typeof l?l(t,o):l;if(i)for(var u=0,f=Object.keys(i);u<f.length;u++){var p=f[u];i[p]&&o[p]&&c(n,p,i[p])}}c(n,"root",t.className)}(t,r.classes),y(t,r),t}var h={},P=void 0;try{P=window}catch(e){}function g(e,r){if(void 0!==P){var t=P.__packages__=P.__packages__||{};if(!t[e]||!h[e])h[e]=r,(t[e]=t[e]||[]).push(r)}}g("@fluentui/set-version","6.0.0"),g("@fluentui/react-compose","1.0.0-beta.8")}]); | ||
var FluentCompose=function(e){var r={};function t(o){if(r[o])return r[o].exports;var n=r[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,t),n.l=!0,n.exports}return t.m=e,t.c=r,t.d=function(e,r,o){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:o})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(t.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)t.d(o,n,function(r){return e[r]}.bind(null,n));return o},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=1)}([function(e,r){e.exports=React},function(e,r,t){"use strict";t.r(r),t.d(r,"compose",(function(){return i})),t.d(r,"createClassResolver",(function(){return f})),t.d(r,"mergeProps",(function(){return m})),t.d(r,"mergeSlotProp",(function(){return d}));var o=function(){return(o=Object.assign||function(e){for(var r,t=1,o=arguments.length;t<o;t++)for(var n in r=arguments[t])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e}).apply(this,arguments)};function n(){for(var e=0,r=0,t=arguments.length;r<t;r++)e+=arguments[r].length;var o=Array(e),n=0;for(r=0;r<t;r++)for(var s=arguments[r],a=0,l=s.length;a<l;a++,n++)o[n]=s[a];return o}var s=t(0);function a(e,r){return e.overrideStyles?[e.displayName].filter(Boolean):e.displayName?r.displayNames.concat(e.displayName):r.displayNames}var l={className:"",classes:[],displayName:"",displayNames:[],mapPropsToStylesPropsChain:[],render:function(){return null},handledProps:[],overrideStyles:!1,slots:{__self:function(){return null}},slotProps:[],state:function(e){return e},resolveSlotProps:function(){return{}},shorthandConfig:{}};var i=function(e,r){void 0===r&&(r={});var t=function(e,r,t){void 0===t&&(t=l);var s=r.slotProps?n(t.slotProps,[r.slotProps]):t.slotProps,i=Array.isArray(r.classes)?r.classes:[r.classes];return{className:r.className||t.className,classes:n(t.classes,i),displayName:r.displayName||t.displayName,displayNames:a(r,t),mapPropsToStylesPropsChain:r.mapPropsToStylesProps?n(t.mapPropsToStylesPropsChain,[r.mapPropsToStylesProps]):t.mapPropsToStylesPropsChain,render:"function"==typeof e?e:t.render,handledProps:n(t.handledProps,r.handledProps||[]),overrideStyles:r.overrideStyles||!1,slots:o(o({},t.slots),r.slots),slotProps:s,state:function(e,o,n){return r.state?r.state(t.state(e,o,n),o,n):t.state(e,o,n)},resolveSlotProps:function(e){return s.reduce((function(r,t){var s=o({},t(e)),a=n(Object.keys(r),Object.keys(s)),l={};return a.forEach((function(e){l[e]||(l[e]=o(o({},r[e]),s[e]))})),l}),{})},shorthandConfig:o(o({},t.shorthandConfig),r.shorthandConfig)}}(e,r,function(e){return!!e.fluentComposeConfig}(e)?e.fluentComposeConfig:void 0),i=s.forwardRef((function(e,r){return t.render(e,r,o(o({},t),{state:t.state(e,r,t),slots:o(o({},t.slots),{__self:i})}))}));return i.displayName=t.displayName,e.defaultProps&&(i.defaultProps=e.defaultProps),i.fluentComposeConfig=t,i};function u(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];for(var t="",o=0,n=e;o<n.length;o++){var s=n[o];s&&(t=(t?t+" ":"")+s)}return t}var f=function(e){var r=function(e){var r={slots:{},modifiers:{},enums:{}},t=r.slots,o=r.modifiers,n=r.enums;return Object.keys(e).forEach((function(r){var s=e[r];if(s){var a=r.split("_");switch(a.length){case 2:o[a[1]]=s;break;case 3:var l=a[1],i=a[2];(n[l]=n[l]||{})[i]=s;break;default:t[r]=s}}})),r}(e),t=r.slots,o=r.modifiers,n=r.enums;return function(e){for(var r={},s="",a=0,l=Object.keys(o);a<l.length;a++){var i=l[a];e[i]&&(s=u(s,o[i]))}for(var f="",c=0,p=Object.keys(n);c<p.length;c++){var d=p[c],v=n[d];v[e[d]]&&(f=u(f,v[e[d]]))}for(var y=0,m=Object.keys(t);y<m.length;y++){var h=m[y];r[h]=u(t[h],s,f)}return r}};function c(e,r,t){if(t){var o=e[r]=e[r]||{};o.className=u(o.className,t)}}var p={iframe:"src",img:"src",input:"type"};function d(e,r,t){var n;return void 0===t&&(t="children"),"object"!=typeof e||s.isValidElement(e)?o(((n={})[t]=e,n),r):o(o({},e),r)}var v=function(){return null};function y(e,r){var t=e.state,n=e.slots,a=e.slotProps;return r.slotProps.forEach((function(e){var r=e(t);Object.keys(r).forEach((function(e){a[e]=o(o({},a[e]),r[e])}))})),function(e,r,t){t&&(e[r]||(e[r]={}),e[r]=o(o({},e[r]),t))}(a,"root",function(e,r){for(var t={},o=Object.keys(r.slots),n=0,s=Object.keys(e);n<s.length;n++){var a=s[n];"className"!==a&&"as"!==a&&-1===r.handledProps.indexOf(a)&&-1===o.indexOf(a)&&(t[a]=e[a])}return t}(t,r)),Object.keys(n).forEach((function(e){var r=n[e],l=t[e];if(r&&null!=l){var i=d(l,a[e],r&&r.shorthandConfig&&r.shorthandConfig.mappedProp||p[r]);if("function"==typeof i.children){l.children;var u=function(e,r){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)r.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(t[o[n]]=e[o[n]])}return t}(l,["children"]);n[e]=s.Fragment,a[e]={children:l.children(r,o(o({},a[e]),u))}}else a[e]=i}n[e]&&null!==l||(n[e]=v)})),e}function m(e,r){var t={state:e,slots:o(o({},r.slots),{root:e.as||r.slots.root||"div"}),slotProps:{}};return function(e,r){for(var t=e.state,o=e.slots,n=e.slotProps,s=0,a=r;s<a.length;s++){var l=a[s],i="function"==typeof l?l(t,o):l;if(i)for(var u=0,f=Object.keys(i);u<f.length;u++){var p=f[u];i[p]&&o[p]&&c(n,p,i[p])}}c(n,"root",t.className)}(t,r.classes),y(t,r),t}var h={},P=void 0;try{P=window}catch(e){}function g(e,r){if(void 0!==P){var t=P.__packages__=P.__packages__||{};if(!t[e]||!h[e])h[e]=r,(t[e]=t[e]||[]).push(r)}}g("@fluentui/set-version","6.0.0"),g("@fluentui/react-compose","1.0.0-beta.9")}]); | ||
//# sourceMappingURL=react-compose.min.js.map |
define(["require", "exports", "@fluentui/set-version"], function (require, exports, set_version_1) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
set_version_1.setVersion('@fluentui/react-compose', '1.0.0-beta.8'); | ||
set_version_1.setVersion('@fluentui/react-compose', '1.0.0-beta.9'); | ||
}); | ||
//# sourceMappingURL=version.js.map |
@@ -6,3 +6,3 @@ "use strict"; | ||
var set_version_1 = require("@fluentui/set-version"); | ||
set_version_1.setVersion('@fluentui/react-compose', '1.0.0-beta.8'); | ||
set_version_1.setVersion('@fluentui/react-compose', '1.0.0-beta.9'); | ||
//# sourceMappingURL=version.js.map |
// Do not modify this file; it is generated as part of publish. | ||
// The checked in version is a placeholder only and will not be updated. | ||
import { setVersion } from '@fluentui/set-version'; | ||
setVersion('@fluentui/react-compose', '1.0.0-beta.8'); | ||
setVersion('@fluentui/react-compose', '1.0.0-beta.9'); | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@fluentui/react-compose", | ||
"version": "1.0.0-beta.8", | ||
"version": "1.0.0-beta.9", | ||
"description": "Fluent UI React component composition.", | ||
@@ -41,3 +41,3 @@ "main": "lib-commonjs/index.js", | ||
"@fluentui/set-version": "^8.0.0-beta.0", | ||
"@fluentui/utilities": "^8.0.0-beta.7", | ||
"@fluentui/utilities": "^8.0.0-beta.8", | ||
"tslib": "^1.10.0", | ||
@@ -44,0 +44,0 @@ "classnames": "^2.2.6" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
491733