Skip to content

Commit

Permalink
generate proptypes
Browse files Browse the repository at this point in the history
  • Loading branch information
seloner committed Dec 29, 2024
1 parent ecd1b5b commit 11792ab
Showing 1 changed file with 156 additions and 4 deletions.
160 changes: 156 additions & 4 deletions packages/react/src/slider/root/SliderRoot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,83 @@ SliderRoot.propTypes /* remove-proptypes */ = {
*
* To render a controlled slider, use the `value` prop instead.
*/
defaultValue: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.number), PropTypes.number]),
defaultValue: PropTypes.shape({
'__@iterator@63': PropTypes.func.isRequired,
'__@unscopables@2128': PropTypes.shape({
'__@iterator@63': PropTypes.bool,
'__@unscopables@2128': PropTypes.bool,
at: PropTypes.bool,
concat: PropTypes.bool,
copyWithin: PropTypes.bool,
entries: PropTypes.bool,
every: PropTypes.bool,
fill: PropTypes.bool,
filter: PropTypes.bool,
find: PropTypes.bool,
findIndex: PropTypes.bool,
flat: PropTypes.bool,
flatMap: PropTypes.bool,
forEach: PropTypes.bool,
includes: PropTypes.bool,
indexOf: PropTypes.bool,
join: PropTypes.bool,
keys: PropTypes.bool,
lastIndexOf: PropTypes.bool,
length: PropTypes.bool,
map: PropTypes.bool,
pop: PropTypes.bool,
push: PropTypes.bool,
reduce: PropTypes.bool,
reduceRight: PropTypes.bool,
reverse: PropTypes.bool,
shift: PropTypes.bool,
slice: PropTypes.bool,
some: PropTypes.bool,
sort: PropTypes.bool,
splice: PropTypes.bool,
toLocaleString: PropTypes.bool,
toString: PropTypes.bool,
unshift: PropTypes.bool,
values: PropTypes.bool,
}).isRequired,
at: PropTypes.func.isRequired,
concat: PropTypes.func.isRequired,
copyWithin: PropTypes.func.isRequired,
entries: PropTypes.func.isRequired,
every: PropTypes.func.isRequired,
fill: PropTypes.func.isRequired,
filter: PropTypes.func.isRequired,
find: PropTypes.func.isRequired,
findIndex: PropTypes.func.isRequired,
flat: PropTypes.func.isRequired,
flatMap: PropTypes.func.isRequired,
forEach: PropTypes.func.isRequired,
includes: PropTypes.func.isRequired,
indexOf: PropTypes.func.isRequired,
join: PropTypes.func.isRequired,
keys: PropTypes.func.isRequired,
lastIndexOf: PropTypes.func.isRequired,
length: PropTypes.number.isRequired,
map: PropTypes.func.isRequired,
pop: PropTypes.func.isRequired,
push: PropTypes.func.isRequired,
reduce: PropTypes.func.isRequired,
reduceRight: PropTypes.func.isRequired,
reverse: PropTypes.func.isRequired,
shift: PropTypes.func.isRequired,
slice: PropTypes.func.isRequired,
some: PropTypes.func.isRequired,
sort: PropTypes.func.isRequired,
splice: PropTypes.func.isRequired,
toExponential: PropTypes.func.isRequired,
toFixed: PropTypes.func.isRequired,
toLocaleString: PropTypes.func.isRequired,
toPrecision: PropTypes.func.isRequired,
toString: PropTypes.func.isRequired,
unshift: PropTypes.func.isRequired,
valueOf: PropTypes.func.isRequired,
values: PropTypes.func.isRequired,
}),
/**
* Whether the component should ignore user interaction.
* @default false
Expand Down Expand Up @@ -301,7 +377,7 @@ SliderRoot.propTypes /* remove-proptypes */ = {
/**
* Callback function that is fired when the slider's value changed.
*
* @param {number | number[]} value The new value.
* @param {TValue} value The new value.
* @param {Event} event The corresponding event that initiated the change.
* You can pull out the new value by accessing `event.target.value` (any).
* @param {number} activeThumbIndex Index of the currently moved thumb.
Expand All @@ -310,7 +386,7 @@ SliderRoot.propTypes /* remove-proptypes */ = {
/**
* Callback function that is fired when the `pointerup` is triggered.
*
* @param {number | number[]} value The new value.
* @param {TValue} value The new value.
* @param {Event} event The corresponding event that initiated the change.
* **Warning**: This is a generic event not a change event.
*/
Expand Down Expand Up @@ -342,5 +418,81 @@ SliderRoot.propTypes /* remove-proptypes */ = {
* The value of the slider.
* For ranged sliders, provide an array with two values.
*/
value: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.number), PropTypes.number]),
value: PropTypes.shape({
'__@iterator@63': PropTypes.func.isRequired,
'__@unscopables@2128': PropTypes.shape({
'__@iterator@63': PropTypes.bool,
'__@unscopables@2128': PropTypes.bool,
at: PropTypes.bool,
concat: PropTypes.bool,
copyWithin: PropTypes.bool,
entries: PropTypes.bool,
every: PropTypes.bool,
fill: PropTypes.bool,
filter: PropTypes.bool,
find: PropTypes.bool,
findIndex: PropTypes.bool,
flat: PropTypes.bool,
flatMap: PropTypes.bool,
forEach: PropTypes.bool,
includes: PropTypes.bool,
indexOf: PropTypes.bool,
join: PropTypes.bool,
keys: PropTypes.bool,
lastIndexOf: PropTypes.bool,
length: PropTypes.bool,
map: PropTypes.bool,
pop: PropTypes.bool,
push: PropTypes.bool,
reduce: PropTypes.bool,
reduceRight: PropTypes.bool,
reverse: PropTypes.bool,
shift: PropTypes.bool,
slice: PropTypes.bool,
some: PropTypes.bool,
sort: PropTypes.bool,
splice: PropTypes.bool,
toLocaleString: PropTypes.bool,
toString: PropTypes.bool,
unshift: PropTypes.bool,
values: PropTypes.bool,
}).isRequired,
at: PropTypes.func.isRequired,
concat: PropTypes.func.isRequired,
copyWithin: PropTypes.func.isRequired,
entries: PropTypes.func.isRequired,
every: PropTypes.func.isRequired,
fill: PropTypes.func.isRequired,
filter: PropTypes.func.isRequired,
find: PropTypes.func.isRequired,
findIndex: PropTypes.func.isRequired,
flat: PropTypes.func.isRequired,
flatMap: PropTypes.func.isRequired,
forEach: PropTypes.func.isRequired,
includes: PropTypes.func.isRequired,
indexOf: PropTypes.func.isRequired,
join: PropTypes.func.isRequired,
keys: PropTypes.func.isRequired,
lastIndexOf: PropTypes.func.isRequired,
length: PropTypes.number.isRequired,
map: PropTypes.func.isRequired,
pop: PropTypes.func.isRequired,
push: PropTypes.func.isRequired,
reduce: PropTypes.func.isRequired,
reduceRight: PropTypes.func.isRequired,
reverse: PropTypes.func.isRequired,
shift: PropTypes.func.isRequired,
slice: PropTypes.func.isRequired,
some: PropTypes.func.isRequired,
sort: PropTypes.func.isRequired,
splice: PropTypes.func.isRequired,
toExponential: PropTypes.func.isRequired,
toFixed: PropTypes.func.isRequired,
toLocaleString: PropTypes.func.isRequired,
toPrecision: PropTypes.func.isRequired,
toString: PropTypes.func.isRequired,
unshift: PropTypes.func.isRequired,
valueOf: PropTypes.func.isRequired,
values: PropTypes.func.isRequired,
}),
} as any;

0 comments on commit 11792ab

Please sign in to comment.