forked from mui/base-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
62d1ee7
commit 5343a3c
Showing
60 changed files
with
729 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"props": { | ||
"className": { "type": { "name": "union", "description": "func<br>| string" } }, | ||
"render": { "type": { "name": "union", "description": "element<br>| func" } } | ||
}, | ||
"name": "SliderOutput", | ||
"imports": [ | ||
"import * as Slider from '@base_ui/react/Slider';\nconst SliderOutput = Slider.Output;" | ||
], | ||
"classes": [], | ||
"spread": true, | ||
"themeDefaultProps": true, | ||
"muiName": "SliderOutput", | ||
"forwardsRefTo": "HTMLOutputElement", | ||
"filename": "/packages/mui-base/src/Slider/SliderOutput/SliderOutput.tsx", | ||
"inheritance": null, | ||
"demos": "<ul><li><a href=\"/base-ui/react-slider/\">Slider</a></li></ul>", | ||
"cssComponent": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{ | ||
"props": { | ||
"aria-labelledby": { "type": { "name": "string" } }, | ||
"className": { "type": { "name": "union", "description": "func<br>| string" } }, | ||
"defaultValue": { | ||
"type": { "name": "union", "description": "Array<number><br>| number" } | ||
}, | ||
"disabled": { "type": { "name": "bool" }, "default": "false" }, | ||
"disableSwap": { "type": { "name": "bool" }, "default": "false" }, | ||
"isRtl": { "type": { "name": "bool" }, "default": "false" }, | ||
"largeStep": { "type": { "name": "number" }, "default": "10" }, | ||
"marks": { | ||
"type": { | ||
"name": "union", | ||
"description": "Array<{ label?: node, value: number }><br>| bool" | ||
}, | ||
"default": "false" | ||
}, | ||
"max": { "type": { "name": "number" }, "default": "100" }, | ||
"min": { "type": { "name": "number" }, "default": "0" }, | ||
"name": { "type": { "name": "string" } }, | ||
"onValueChange": { | ||
"type": { "name": "func" }, | ||
"signature": { | ||
"type": "function(value: number | Array<number>, activeThumb: number, event: Event) => void", | ||
"describedArgs": ["value", "activeThumb", "event"] | ||
} | ||
}, | ||
"onValueCommitted": { | ||
"type": { "name": "func" }, | ||
"signature": { | ||
"type": "function(value: number | Array<number>, event: React.SyntheticEvent | Event) => void", | ||
"describedArgs": ["value", "event"] | ||
} | ||
}, | ||
"orientation": { | ||
"type": { "name": "enum", "description": "'horizontal'<br>| 'vertical'" }, | ||
"default": "'horizontal'" | ||
}, | ||
"render": { "type": { "name": "union", "description": "element<br>| func" } }, | ||
"scale": { | ||
"type": { "name": "func" }, | ||
"default": "function Identity(x) {\n return x;\n}", | ||
"signature": { "type": "function(x: any) => any", "describedArgs": [] } | ||
}, | ||
"step": { "type": { "name": "number" }, "default": "1" }, | ||
"tabIndex": { "type": { "name": "number" } }, | ||
"value": { | ||
"type": { "name": "union", "description": "Array<number><br>| number" } | ||
} | ||
}, | ||
"name": "SliderRoot", | ||
"imports": ["import * as Slider from '@base_ui/react/Slider';\nconst SliderRoot = Slider.Root;"], | ||
"classes": [], | ||
"spread": true, | ||
"themeDefaultProps": true, | ||
"muiName": "SliderRoot", | ||
"forwardsRefTo": "HTMLSpanElement", | ||
"filename": "/packages/mui-base/src/Slider/Root/SliderRoot.tsx", | ||
"inheritance": null, | ||
"demos": "<ul><li><a href=\"/base-ui/react-slider/\">Slider</a></li></ul>", | ||
"cssComponent": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"props": { | ||
"className": { "type": { "name": "union", "description": "func<br>| string" } }, | ||
"render": { "type": { "name": "union", "description": "element<br>| func" } } | ||
}, | ||
"name": "SliderThumb", | ||
"imports": [ | ||
"import * as Slider from '@base_ui/react/Slider';\nconst SliderThumb = Slider.Thumb;" | ||
], | ||
"classes": [], | ||
"spread": false, | ||
"themeDefaultProps": true, | ||
"muiName": "SliderThumb", | ||
"forwardsRefTo": "HTMLSpanElement", | ||
"filename": "/packages/mui-base/src/Slider/SliderThumb/SliderThumb.tsx", | ||
"inheritance": null, | ||
"demos": "<ul><li><a href=\"/base-ui/react-slider/\">Slider</a></li></ul>", | ||
"cssComponent": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"props": { | ||
"className": { "type": { "name": "union", "description": "func<br>| string" } }, | ||
"render": { "type": { "name": "union", "description": "element<br>| func" } } | ||
}, | ||
"name": "SliderTrack", | ||
"imports": [ | ||
"import * as Slider from '@base_ui/react/Slider';\nconst SliderTrack = Slider.Track;" | ||
], | ||
"classes": [], | ||
"spread": true, | ||
"themeDefaultProps": true, | ||
"muiName": "SliderTrack", | ||
"forwardsRefTo": "HTMLSpanElement", | ||
"filename": "/packages/mui-base/src/Slider/SliderTrack/SliderTrack.tsx", | ||
"inheritance": null, | ||
"demos": "<ul><li><a href=\"/base-ui/react-slider/\">Slider</a></li></ul>", | ||
"cssComponent": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"parameters": {}, | ||
"returnValue": {}, | ||
"name": "useSliderOutput", | ||
"filename": "/packages/mui-base/src/Slider/SliderOutput/useSliderOutput.ts", | ||
"imports": ["import { useSliderOutput } from '@base_ui/react/Slider';"], | ||
"demos": "<ul></ul>" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"parameters": {}, | ||
"returnValue": {}, | ||
"name": "useSliderRoot", | ||
"filename": "/packages/mui-base/src/Slider/Root/useSliderRoot.ts", | ||
"imports": ["import { useSliderRoot } from '@base_ui/react/Slider';"], | ||
"demos": "<ul></ul>" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"parameters": { | ||
"disabled": { "type": { "name": "boolean", "description": "boolean" } }, | ||
"id": { "type": { "name": "string", "description": "string" } }, | ||
"rootRef": { | ||
"type": { "name": "React.Ref<Element>", "description": "React.Ref<Element>" } | ||
} | ||
}, | ||
"returnValue": { | ||
"getRootProps": { | ||
"type": { | ||
"name": "(externalProps?: React.ComponentPropsWithRef<'span'>) => React.ComponentPropsWithRef<'span'>", | ||
"description": "(externalProps?: React.ComponentPropsWithRef<'span'>) => React.ComponentPropsWithRef<'span'>" | ||
}, | ||
"required": true | ||
}, | ||
"getThumbInputProps": { | ||
"type": { | ||
"name": "(externalProps?: React.ComponentPropsWithRef<'input'>) => React.ComponentPropsWithRef<'input'>", | ||
"description": "(externalProps?: React.ComponentPropsWithRef<'input'>) => React.ComponentPropsWithRef<'input'>" | ||
}, | ||
"required": true | ||
}, | ||
"getThumbStyle": { | ||
"type": { | ||
"name": "(index: number) => Record<string, unknown>", | ||
"description": "(index: number) => Record<string, unknown>" | ||
}, | ||
"required": true | ||
}, | ||
"index": { "type": { "name": "number", "description": "number" }, "required": true } | ||
}, | ||
"name": "useSliderThumb", | ||
"filename": "/packages/mui-base/src/Slider/SliderThumb/useSliderThumb.ts", | ||
"imports": ["import { useSliderThumb } from '@base_ui/react/Slider';"], | ||
"demos": "<ul></ul>" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"parameters": {}, | ||
"returnValue": {}, | ||
"name": "useSliderTrack", | ||
"filename": "/packages/mui-base/src/Slider/SliderTrack/useSliderTrack.ts", | ||
"imports": ["import { useSliderTrack } from '@base_ui/react/Slider';"], | ||
"demos": "<ul></ul>" | ||
} |
Oops, something went wrong.