jb-mobile-input-react
Advanced tools
Comparing version 2.0.2 to 2.0.4
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('jb-mobile-input'), require('jb-input-react')) : | ||
typeof define === 'function' && define.amd ? define(['exports', 'react', 'jb-mobile-input', 'jb-input-react'], factory) : | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.JBMobileInput = {}, global.React, null, global.jbInputReact)); | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.JBMobileInput = {}, global.React, null, global.JBInputReact)); | ||
})(this, (function (exports, React, jbMobileInput, jbInputReact) { 'use strict'; | ||
@@ -6,0 +6,0 @@ |
import React from 'react'; | ||
import 'jb-mobile-input'; | ||
import { Props as JBInputProps } from 'jb-input-react'; | ||
import { JBMobileInputWebComponent } from 'jb-mobile-input'; | ||
import { type Props as JBInputProps } from 'jb-input-react'; | ||
import { type JBMobileInputWebComponent } from 'jb-mobile-input'; | ||
interface JBMobileInputType extends React.DetailedHTMLProps<React.HTMLAttributes<JBMobileInputWebComponent>, JBMobileInputWebComponent> { | ||
class?: string; | ||
label?: string; | ||
name?: string; | ||
message?: string; | ||
placeholder?: string; | ||
} | ||
@@ -12,0 +8,0 @@ declare global { |
@@ -16,6 +16,7 @@ { | ||
"mobile", | ||
"موبایل", | ||
"react", | ||
"react component" | ||
], | ||
"version": "2.0.2", | ||
"version": "2.0.4", | ||
"bugs": "https://github.com/javadbat/jb-mobile-input-react/issues", | ||
@@ -36,5 +37,5 @@ "license": "MIT", | ||
"dependencies": { | ||
"jb-mobile-input": ">=2.0.0", | ||
"jb-input-react": ">-3.1.0" | ||
"jb-mobile-input": ">=2.0.3", | ||
"jb-input-react": ">=3.2.0" | ||
} | ||
} |
# jb-mobile-input-react | ||
superset component on [jb-input-react](https://github.com/javadbat/jb-input-react) , just for mobile number input with extra filter and ready to use validator | ||
Demo: [codeSandbox preview](https://3f63dj.csb.app/samples/jb-mobile-input) for just see the demo and [codeSandbox editor](https://codesandbox.io/p/sandbox/jb-design-system-3f63dj?file=%2Fsrc%2Fsamples%2FJBMobileInput.tsx) if you want to see and play with code | ||
## Installation | ||
@@ -21,2 +23,9 @@ ```bash | ||
for more information like events, styling,... just read [jb-input-react](https://github.com/javadbat/jb-input-react) | ||
## Other Related Docs: | ||
- see [jb-mobile-input](https://github.com/javadbat/jb-mobile-input) if you want to use this component as a pure-js web-component | ||
- see [All JB Design system Component List](https://github.com/javadbat/design-system/blob/master/docs/component-list.md) for more components | ||
- use [Contribution Guide](https://github.com/javadbat/design-system/blob/master/docs/contribution-guide.md) if you want to contribute in this component. | ||
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
31
0
19539
183
+ Addedjb-input-react@3.5.0(transitive)
Updatedjb-input-react@>=3.2.0
Updatedjb-mobile-input@>=2.0.3