carbon-react
Version:
A library of reusable React components for easily building user interfaces.
2 lines (1 loc) • 702 B
JavaScript
import{jsx as e}from"react/jsx-runtime";import r from"react";import t from"./useInputBehaviour.js";function n(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},o=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),o.forEach((function(r){n(e,r,t[r])}))}return e}const c=r.createContext({}),i=({children:r})=>{const n=t();return e(c.Provider,{value:o({},n),children:r})};export{i as InputBehaviour,c as InputContext};