Skip to content

Commit

Permalink
fix(rollup&Fields): update rollup, use uuidV4, update packages (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
Franky-OB committed Jun 6, 2023
1 parent 940e49d commit 40e60a9
Show file tree
Hide file tree
Showing 6 changed files with 2,514 additions and 2,568 deletions.
2,851 changes: 1,249 additions & 1,602 deletions example/package-lock.json

Large diffs are not rendered by default.

2,209 changes: 1,252 additions & 957 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
"react-select-event": "^5.3.0",
"rollup": "^2.36.2",
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-polyfill-node": "^0.12.0",
"rollup-plugin-postcss": "^4.0.0",
"rollup-plugin-replace": "^2.2.0",
"rollup-plugin-uglify": "^6.0.4"
Expand All @@ -97,6 +98,7 @@
"react-phone-number-input": "^3.1.10",
"react-select": "^4.0.2",
"react-ymd-date-select": "^0.1.0",
"theme-ui": "^0.10.0"
"theme-ui": "^0.10.0",
"uuidv4": "^6.2.13"
}
}
6 changes: 4 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ export default {
'react-datepicker': 'react-datepicker',
'react-select': 'react-select',
'react-scripts': 'react-scripts',
'react-dom': 'ReactDOM'
'react-dom': 'ReactDOM',
'react-ymd-date-select': 'react-ymd-date-select'
}
},

Expand All @@ -52,6 +53,7 @@ export default {
'react-datepicker',
'react-scripts',
'react-select',
'react-dom'
'react-dom',
'react-ymd-date-select'
]
}
6 changes: 3 additions & 3 deletions src/Fields/AsyncReactSelect/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @jsxRuntime classic */

import React, { useId } from 'react'

import React from 'react'
import { v4 as uuid } from 'uuid'
import { useThemeUI } from 'theme-ui'
import { RHFInput } from 'react-hook-form-input'
import AsyncSelect from 'react-select/async'
Expand Down Expand Up @@ -94,7 +94,7 @@ const Select = ({
<AsyncSelect
aria-label={label}
styles={customStyles}
id={useId()}
id={uuid()}
{...props}
/>
}
Expand Down
6 changes: 3 additions & 3 deletions src/Fields/Select/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @jsxRuntime classic */

import React, { useId } from 'react'

import React from 'react'
import { v4 as uuid } from 'uuid'
import { useThemeUI } from 'theme-ui'
import { RHFInput } from 'react-hook-form-input'
import ReactSelect from 'react-select'
Expand Down Expand Up @@ -94,7 +94,7 @@ const Select = ({
<ReactSelect
aria-label={label}
styles={customStyles}
id={useId()}
id={uuid()}
{...props}
/>
}
Expand Down

0 comments on commit 40e60a9

Please sign in to comment.