@pdg/react-form 1.0.105 → 1.0.107

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/README.md CHANGED
@@ -5,19 +5,12 @@ React Form
5
5
  ## Demo 사이트
6
6
  https://parkdigy.github.io/react-form/
7
7
 
8
-
9
8
  ## 설치
10
- ```
9
+ ```shell
11
10
  npm install -D @pdg/react-form @mui/material @mui/icons-material @emotion/react @emotion/styled @mui/x-date-pickers @pdg/react-component @pdg/react-dialog @pdg/react-hook @pdg/util @tinymce/tinymce-react classnames dayjs react-number-format react-resize-detector simplebar-react
12
11
  ```
13
12
 
14
- ## simplebar-react 컴포넌트 사용을 위한 설정 (scss)
15
- ```scss
16
- @import 'simplebar-react/dist/simplebar.min.css';
17
- .simplebar-track.simplebar-vertical {
18
- width: 8px !important;
19
- .simplebar-scrollbar.simplebar-visible:before {
20
- opacity: 0.3 !important;
21
- }
22
- }
13
+ ### simplebar-react css 추가
14
+ ```
15
+ import 'simplebar-react/dist/simplebar.min.css';
23
16
  ```
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import './index.scss';
1
2
  export * from './@types';
2
3
  export * from './Form';
3
4
  export * from './FormContext';
package/dist/index.esm.js CHANGED
@@ -1,4 +1,30 @@
1
- import React,{createContext,useContext,useMemo,useRef,useState,useCallback,useLayoutEffect,useEffect,useId}from'react';import classNames from'classnames';import {Box,Button,styled,useTheme,InputLabel,Grid,Collapse,FormHelperText,InputAdornment,IconButton,TextField,Chip,Autocomplete,Icon,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,ifUndefined,companyNoAutoDash,personalNoAutoDash}from'@pdg/util';import dayjs from'dayjs';import {PdgIcon,PdgIconText}from'@pdg/react-component';import {useAutoUpdateState,useAutoUpdateRefState,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 {AdapterDayjs}from'@mui/x-date-pickers/AdapterDayjs';import {PickersDay,StaticDatePicker,LocalizationProvider,DesktopDatePicker,StaticDateTimePicker,DesktopDateTimePicker}from'@mui/x-date-pickers';import SimpleBar from'simplebar-react';import'dayjs/locale/ko';/******************************************************************************
1
+ import React,{createContext,useContext,useMemo,useRef,useState,useCallback,useLayoutEffect,useEffect,useId}from'react';import classNames from'classnames';import {Box,Button,styled,useTheme,InputLabel,Grid,Collapse,FormHelperText,InputAdornment,IconButton,TextField,Chip,Autocomplete,Icon,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,ifUndefined,companyNoAutoDash,personalNoAutoDash}from'@pdg/util';import dayjs from'dayjs';import {PdgIcon,PdgIconText}from'@pdg/react-component';import {useAutoUpdateState,useAutoUpdateRefState,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 {AdapterDayjs}from'@mui/x-date-pickers/AdapterDayjs';import {PickersDay,StaticDatePicker,LocalizationProvider,DesktopDatePicker,StaticDateTimePicker,DesktopDateTimePicker}from'@mui/x-date-pickers';import SimpleBar from'simplebar-react';import'dayjs/locale/ko';function styleInject(css, ref) {
2
+ if ( ref === void 0 ) ref = {};
3
+ var insertAt = ref.insertAt;
4
+
5
+ if (!css || typeof document === 'undefined') { return; }
6
+
7
+ var head = document.head || document.getElementsByTagName('head')[0];
8
+ var style = document.createElement('style');
9
+ style.type = 'text/css';
10
+
11
+ if (insertAt === 'top') {
12
+ if (head.firstChild) {
13
+ head.insertBefore(style, head.firstChild);
14
+ } else {
15
+ head.appendChild(style);
16
+ }
17
+ } else {
18
+ head.appendChild(style);
19
+ }
20
+
21
+ if (style.styleSheet) {
22
+ style.styleSheet.cssText = css;
23
+ } else {
24
+ style.appendChild(document.createTextNode(css));
25
+ }
26
+ }var css_248z$m = ".simplebar-track.simplebar-vertical {\n width: 8px !important;\n}\n.simplebar-track.simplebar-vertical .simplebar-scrollbar.simplebar-visible:before {\n opacity: 0.3 !important;\n}";
27
+ styleInject(css_248z$m);/******************************************************************************
2
28
  Copyright (c) Microsoft Corporation.
3
29
 
4
30
  Permission to use, copy, modify, and/or distribute this software for any
@@ -991,32 +1017,7 @@ FormBody.defaultProps = FormBodyDefaultProps;var FormFooterDefaultProps = {};var
991
1017
  children)));
992
1018
  };
993
1019
  FormFooter.displayName = 'FormFooter';
994
- FormFooter.defaultProps = FormFooterDefaultProps;var FormTextFieldDefaultProps = {};function styleInject(css, ref) {
995
- if ( ref === void 0 ) ref = {};
996
- var insertAt = ref.insertAt;
997
-
998
- if (!css || typeof document === 'undefined') { return; }
999
-
1000
- var head = document.head || document.getElementsByTagName('head')[0];
1001
- var style = document.createElement('style');
1002
- style.type = 'text/css';
1003
-
1004
- if (insertAt === 'top') {
1005
- if (head.firstChild) {
1006
- head.insertBefore(style, head.firstChild);
1007
- } else {
1008
- head.appendChild(style);
1009
- }
1010
- } else {
1011
- head.appendChild(style);
1012
- }
1013
-
1014
- if (style.styleSheet) {
1015
- style.styleSheet.cssText = css;
1016
- } else {
1017
- style.appendChild(document.createTextNode(css));
1018
- }
1019
- }var css_248z$l = ".FormTextField {\n min-width: 200px;\n}\n.FormTextField .clear-icon-button-wrap {\n visibility: hidden;\n}\n.FormTextField.variant-filled .clear-icon-button-wrap {\n margin-top: 9px;\n margin-bottom: -9px;\n}\n.FormTextField:hover .clear-icon-button-wrap.show,\n.FormTextField .MuiInputBase-root.Mui-focused .clear-icon-button-wrap.show {\n visibility: visible;\n}";
1020
+ FormFooter.defaultProps = FormFooterDefaultProps;var FormTextFieldDefaultProps = {};var css_248z$l = ".FormTextField {\n min-width: 200px;\n}\n.FormTextField .clear-icon-button-wrap {\n visibility: hidden;\n}\n.FormTextField.variant-filled .clear-icon-button-wrap {\n margin-top: 9px;\n margin-bottom: -9px;\n}\n.FormTextField:hover .clear-icon-button-wrap.show,\n.FormTextField .MuiInputBase-root.Mui-focused .clear-icon-button-wrap.show {\n visibility: visible;\n}";
1020
1021
  styleInject(css_248z$l);var FormTextField = React.forwardRef(function (_a, ref) {
1021
1022
  /********************************************************************************************************************
1022
1023
  * ID
package/dist/index.js CHANGED
@@ -1,4 +1,30 @@
1
- 'use strict';var React=require('react'),classNames=require('classnames'),material=require('@mui/material'),util=require('@pdg/util'),dayjs=require('dayjs'),reactComponent=require('@pdg/react-component'),reactHook=require('@pdg/react-hook'),reactResizeDetector=require('react-resize-detector'),reactNumberFormat=require('react-number-format'),iconsMaterial=require('@mui/icons-material'),tinymceReact=require('@tinymce/tinymce-react'),AdapterDayjs=require('@mui/x-date-pickers/AdapterDayjs'),xDatePickers=require('@mui/x-date-pickers'),SimpleBar=require('simplebar-react');require('dayjs/locale/ko');/******************************************************************************
1
+ 'use strict';var React=require('react'),classNames=require('classnames'),material=require('@mui/material'),util=require('@pdg/util'),dayjs=require('dayjs'),reactComponent=require('@pdg/react-component'),reactHook=require('@pdg/react-hook'),reactResizeDetector=require('react-resize-detector'),reactNumberFormat=require('react-number-format'),iconsMaterial=require('@mui/icons-material'),tinymceReact=require('@tinymce/tinymce-react'),AdapterDayjs=require('@mui/x-date-pickers/AdapterDayjs'),xDatePickers=require('@mui/x-date-pickers'),SimpleBar=require('simplebar-react');require('dayjs/locale/ko');function styleInject(css, ref) {
2
+ if ( ref === void 0 ) ref = {};
3
+ var insertAt = ref.insertAt;
4
+
5
+ if (!css || typeof document === 'undefined') { return; }
6
+
7
+ var head = document.head || document.getElementsByTagName('head')[0];
8
+ var style = document.createElement('style');
9
+ style.type = 'text/css';
10
+
11
+ if (insertAt === 'top') {
12
+ if (head.firstChild) {
13
+ head.insertBefore(style, head.firstChild);
14
+ } else {
15
+ head.appendChild(style);
16
+ }
17
+ } else {
18
+ head.appendChild(style);
19
+ }
20
+
21
+ if (style.styleSheet) {
22
+ style.styleSheet.cssText = css;
23
+ } else {
24
+ style.appendChild(document.createTextNode(css));
25
+ }
26
+ }var css_248z$m = ".simplebar-track.simplebar-vertical {\n width: 8px !important;\n}\n.simplebar-track.simplebar-vertical .simplebar-scrollbar.simplebar-visible:before {\n opacity: 0.3 !important;\n}";
27
+ styleInject(css_248z$m);/******************************************************************************
2
28
  Copyright (c) Microsoft Corporation.
3
29
 
4
30
  Permission to use, copy, modify, and/or distribute this software for any
@@ -991,32 +1017,7 @@ FormBody.defaultProps = FormBodyDefaultProps;var FormFooterDefaultProps = {};var
991
1017
  children)));
992
1018
  };
993
1019
  FormFooter.displayName = 'FormFooter';
994
- FormFooter.defaultProps = FormFooterDefaultProps;var FormTextFieldDefaultProps = {};function styleInject(css, ref) {
995
- if ( ref === void 0 ) ref = {};
996
- var insertAt = ref.insertAt;
997
-
998
- if (!css || typeof document === 'undefined') { return; }
999
-
1000
- var head = document.head || document.getElementsByTagName('head')[0];
1001
- var style = document.createElement('style');
1002
- style.type = 'text/css';
1003
-
1004
- if (insertAt === 'top') {
1005
- if (head.firstChild) {
1006
- head.insertBefore(style, head.firstChild);
1007
- } else {
1008
- head.appendChild(style);
1009
- }
1010
- } else {
1011
- head.appendChild(style);
1012
- }
1013
-
1014
- if (style.styleSheet) {
1015
- style.styleSheet.cssText = css;
1016
- } else {
1017
- style.appendChild(document.createTextNode(css));
1018
- }
1019
- }var css_248z$l = ".FormTextField {\n min-width: 200px;\n}\n.FormTextField .clear-icon-button-wrap {\n visibility: hidden;\n}\n.FormTextField.variant-filled .clear-icon-button-wrap {\n margin-top: 9px;\n margin-bottom: -9px;\n}\n.FormTextField:hover .clear-icon-button-wrap.show,\n.FormTextField .MuiInputBase-root.Mui-focused .clear-icon-button-wrap.show {\n visibility: visible;\n}";
1020
+ FormFooter.defaultProps = FormFooterDefaultProps;var FormTextFieldDefaultProps = {};var css_248z$l = ".FormTextField {\n min-width: 200px;\n}\n.FormTextField .clear-icon-button-wrap {\n visibility: hidden;\n}\n.FormTextField.variant-filled .clear-icon-button-wrap {\n margin-top: 9px;\n margin-bottom: -9px;\n}\n.FormTextField:hover .clear-icon-button-wrap.show,\n.FormTextField .MuiInputBase-root.Mui-focused .clear-icon-button-wrap.show {\n visibility: visible;\n}";
1020
1021
  styleInject(css_248z$l);var FormTextField = React.forwardRef(function (_a, ref) {
1021
1022
  /********************************************************************************************************************
1022
1023
  * ID
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.105",
4
+ "version": "1.0.107",
5
5
  "description": "React Form",
6
6
  "type": "module",
7
7
  "types": "dist/index.d.ts",
@@ -45,7 +45,7 @@
45
45
  "@mui/icons-material": "^5.15.13",
46
46
  "@mui/material": "^5.15.13",
47
47
  "@mui/x-date-pickers": "^6.19.7",
48
- "@pdg/react-component": "^1.0.12",
48
+ "@pdg/react-component": "^1.0.14",
49
49
  "@pdg/react-hook": "^1.0.16",
50
50
  "@pdg/util": "^1.0.20",
51
51
  "@tinymce/tinymce-react": "^4.3.2",