@pdg/react-form 1.0.91 → 1.0.92
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.
- package/dist/index.esm.js +2 -2
- package/dist/index.js +1 -1
- package/package.json +4 -4
package/dist/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React,{createContext,useContext,useMemo,useRef,useState,useCallback,useLayoutEffect,useEffect,useId}from'react';import classNames from'classnames';import {Box,Icon,Button,styled,useTheme,InputLabel,Grid,Collapse,FormHelperText,InputAdornment,IconButton,TextField,Chip,Autocomplete,CircularProgress,MenuItem,Checkbox,FormControl,Input,OutlinedInput,FilledInput,FormControlLabel,Typography,RadioGroup,Radio,ToggleButton,ToggleButtonGroup,Rating,Skeleton,darken,Tooltip,tooltipClasses,ClickAwayListener,Dialog,DialogTitle,DialogContent,DialogActions,Switch,Paper,Menu}from'@mui/material';import {empty,nextTick,notEmpty,equal,
|
|
1
|
+
import React,{createContext,useContext,useMemo,useRef,useState,useCallback,useLayoutEffect,useEffect,useId}from'react';import classNames from'classnames';import {Box,Icon,Button,styled,useTheme,InputLabel,Grid,Collapse,FormHelperText,InputAdornment,IconButton,TextField,Chip,Autocomplete,CircularProgress,MenuItem,Checkbox,FormControl,Input,OutlinedInput,FilledInput,FormControlLabel,Typography,RadioGroup,Radio,ToggleButton,ToggleButtonGroup,Rating,Skeleton,darken,Tooltip,tooltipClasses,ClickAwayListener,Dialog,DialogTitle,DialogContent,DialogActions,Switch,Paper,Menu}from'@mui/material';import {empty,nextTick,notEmpty,equal,telNoAutoDash,companyNoAutoDash,personalNoAutoDash}from'@pdg/util';import dayjs from'dayjs';import {useAutoUpdateState,useFirstSkipEffect}from'@pdg/react-hook';import {useResizeDetector}from'react-resize-detector';import {NumericFormat}from'react-number-format';import {CheckBox,CheckBoxOutlineBlank,RadioButtonUnchecked,RadioButtonChecked}from'@mui/icons-material';import {Editor}from'@tinymce/tinymce-react';import CircularProgress$1 from'@mui/material/CircularProgress';import {AdapterDayjs}from'@mui/x-date-pickers/AdapterDayjs';import {PickersDay,StaticDatePicker,LocalizationProvider,DesktopDatePicker,StaticDateTimePicker,DesktopDateTimePicker}from'@mui/x-date-pickers';import {PdgIconText}from'@pdg/react-component';import SimpleBar from'simplebar-react';import'dayjs/locale/ko';/******************************************************************************
|
|
2
2
|
Copyright (c) Microsoft Corporation.
|
|
3
3
|
|
|
4
4
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -1676,7 +1676,7 @@ var templateObject_1$b;var FormTelDefaultProps = __assign(__assign({}, FormTextD
|
|
|
1676
1676
|
* ******************************************************************************************************************/
|
|
1677
1677
|
var className = _a.className, onValue = _a.onValue, props = __rest(_a, ["className", "onValue"]);
|
|
1678
1678
|
var handleValue = useCallback(function (value) {
|
|
1679
|
-
var newValue =
|
|
1679
|
+
var newValue = telNoAutoDash(value.replace(/[^0-9]/gi, ''));
|
|
1680
1680
|
return onValue ? onValue(newValue) : newValue;
|
|
1681
1681
|
}, [onValue]);
|
|
1682
1682
|
/********************************************************************************************************************
|
package/dist/index.js
CHANGED
|
@@ -1676,7 +1676,7 @@ var templateObject_1$b;var FormTelDefaultProps = __assign(__assign({}, FormTextD
|
|
|
1676
1676
|
* ******************************************************************************************************************/
|
|
1677
1677
|
var className = _a.className, onValue = _a.onValue, props = __rest(_a, ["className", "onValue"]);
|
|
1678
1678
|
var handleValue = React.useCallback(function (value) {
|
|
1679
|
-
var newValue = util.
|
|
1679
|
+
var newValue = util.telNoAutoDash(value.replace(/[^0-9]/gi, ''));
|
|
1680
1680
|
return onValue ? onValue(newValue) : newValue;
|
|
1681
1681
|
}, [onValue]);
|
|
1682
1682
|
/********************************************************************************************************************
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pdg/react-form",
|
|
3
3
|
"title": "React Form",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.92",
|
|
5
5
|
"description": "React Form",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"@mui/icons-material": "^5.15.13",
|
|
45
45
|
"@mui/material": "^5.15.13",
|
|
46
46
|
"@mui/x-date-pickers": "^6.19.7",
|
|
47
|
-
"@pdg/react-component": "^1.0.
|
|
48
|
-
"@pdg/react-hook": "^1.0.
|
|
49
|
-
"@pdg/util": "^1.0.
|
|
47
|
+
"@pdg/react-component": "^1.0.7",
|
|
48
|
+
"@pdg/react-hook": "^1.0.7",
|
|
49
|
+
"@pdg/util": "^1.0.13",
|
|
50
50
|
"@tinymce/tinymce-react": "^4.3.2",
|
|
51
51
|
"@types/react": "^17.0.0 || ^18.0.0",
|
|
52
52
|
"classnames": "^2.5.1",
|