react-input-material 0.0.712 → 0.0.713
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.
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FunctionComponent, ReactElement } from 'react';
|
|
2
|
+
import { ThemeProviderProps } from '@rmwc/theme';
|
|
3
|
+
/**
|
|
4
|
+
* Wraps a theme provider to given element if a configuration is provided.
|
|
5
|
+
* @param properties - Component provided properties.
|
|
6
|
+
* @param properties.children - Component or string to wrap.
|
|
7
|
+
* @param properties.configuration - Potential theme provider configuration.
|
|
8
|
+
* @param properties.wrap - Instead of injecting a div tag, wrap a child
|
|
9
|
+
* component by merging the theme styles directly onto it. Useful when you
|
|
10
|
+
* don't want to mess with layout.
|
|
11
|
+
* @returns Wrapped content.
|
|
12
|
+
*/
|
|
13
|
+
export declare const WrapThemeProvider: FunctionComponent<{
|
|
14
|
+
children: ReactElement;
|
|
15
|
+
configuration?: ThemeProviderProps['options'];
|
|
16
|
+
wrap?: boolean;
|
|
17
|
+
}>;
|
|
18
|
+
export default WrapThemeProvider;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";if("undefined"!=typeof module&&null!==module&&"undefined"!==eval("typeof require")&&null!==eval("require")&&"main"in eval("require")&&"undefined"!==eval("typeof require.main")&&null!==eval("require.main")){var ORIGINAL_MAIN_MODULE=module;module!==eval("require.main")&&"paths"in module&&"paths"in eval("require.main")&&"undefined"!=typeof __dirname&&null!==__dirname&&(module.paths=eval("require.main.paths").concat(module.paths.filter((function(path){return eval("require.main.paths").includes(path)}))))}if(null==window)var window="undefined"==typeof global||null===global?{}:global;!function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("@rmwc/theme"),require("react/jsx-runtime"));else if("function"==typeof define&&define.amd)define(["@rmwc/theme","react/jsx-runtime"],r);else{var n="object"==typeof exports?r(require("@rmwc/theme"),require("react/jsx-runtime")):r(e["@rmwc/theme"],e["react/jsx-runtime"]);for(var t in n)("object"==typeof exports?exports:e)[t]=n[t]}}(this,(function(e,r){return function(){var n={1:function(e){e.exports=r},6:function(r){r.exports=e}},t={};function o(e){var r=t[e];if(void 0!==r)return r.exports;var i=t[e]={exports:{}};return n[e](i,i.exports,o),i.exports}o.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(r,{a:r}),r},o.d=function(e,r){for(var n in r)o.o(r,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},o.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};o.r(i),o.d(i,{WrapThemeProvider:function(){return l}});var u=o(6),a=o(1),l=function(e){var r=e.children,n=e.configuration,t=e.wrap;return n?(0,a.jsx)(u.ThemeProvider,{options:n,wrap:!1!==t,children:r}):r};return i.default=l,i}()}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-input-material",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.713",
|
|
4
4
|
"description": "Reusable material design based input field with support for (richt-)text, code, selections, numbers, dates and so on.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"form-field",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"dist/components/WrapConfigurations.js",
|
|
27
27
|
"dist/components/WrapStrict.d.ts",
|
|
28
28
|
"dist/components/WrapStrict.js",
|
|
29
|
-
"dist/components/
|
|
30
|
-
"dist/components/
|
|
29
|
+
"dist/components/WrapThemeProvider.d.ts",
|
|
30
|
+
"dist/components/WrapThemeProvider.js",
|
|
31
31
|
"dist/components/WrapTooltip.d.ts",
|
|
32
32
|
"dist/components/WrapTooltip.js",
|
|
33
33
|
"dist/components/FileInput/helper.d.ts",
|