Skip to content

Commit

Permalink
Remove hook exports
Browse files Browse the repository at this point in the history
  • Loading branch information
atomiks committed Jun 26, 2024
1 parent 6c0a2ce commit 44d40b0
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 122 deletions.
24 changes: 2 additions & 22 deletions docs/pages/base-ui/api/use-checkbox-group-label.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,6 @@
{
"parameters": {
"id": {
"type": { "name": "string | undefined", "description": "string | undefined" },
"required": true
},
"setId": {
"type": {
"name": "React.Dispatch<React.SetStateAction<string | undefined>>",
"description": "React.Dispatch<React.SetStateAction<string | undefined>>"
},
"required": true
}
},
"returnValue": {
"getLabelProps": {
"type": {
"name": "(externalProps?: GenericHTMLProps) => GenericHTMLProps",
"description": "(externalProps?: GenericHTMLProps) => GenericHTMLProps"
},
"required": true
}
},
"parameters": {},
"returnValue": {},
"name": "useCheckboxGroupLabel",
"filename": "/packages/mui-base/src/CheckboxGroup/Label/useCheckboxGroupLabel.ts",
"imports": ["import { useCheckboxGroupLabel } from '@base_ui/react/CheckboxGroup';"],
Expand Down
33 changes: 2 additions & 31 deletions docs/pages/base-ui/api/use-checkbox-group-parent.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,6 @@
{
"parameters": {
"allValues": { "type": { "name": "string[]", "description": "string[]" } },
"onValueChange": {
"type": {
"name": "(value: string[]) => void",
"description": "(value: string[]) => void"
}
},
"value": { "type": { "name": "string[]", "description": "string[]" } }
},
"returnValue": {
"getChildProps": {
"type": {
"name": "(name: string) => {\n name: string\n id: string\n checked: boolean\n onChange: (event: React.ChangeEvent<HTMLInputElement>) => void\n}",
"description": "(name: string) => {\n name: string\n id: string\n checked: boolean\n onChange: (event: React.ChangeEvent<HTMLInputElement>) => void\n}"
},
"required": true
},
"getParentProps": {
"type": {
"name": "() => {\n id: string | undefined\n indeterminate: boolean\n checked: boolean\n 'aria-controls': string\n onChange: (event: React.ChangeEvent<HTMLInputElement>) => void\n}",
"description": "() => {\n id: string | undefined\n indeterminate: boolean\n checked: boolean\n 'aria-controls': string\n onChange: (event: React.ChangeEvent<HTMLInputElement>) => void\n}"
},
"required": true
},
"id": {
"type": { "name": "string | undefined", "description": "string | undefined" },
"required": true
},
"indeterminate": { "type": { "name": "boolean", "description": "boolean" }, "required": true }
},
"parameters": {},
"returnValue": {},
"name": "useCheckboxGroupParent",
"filename": "/packages/mui-base/src/CheckboxGroup/Parent/useCheckboxGroupParent.ts",
"imports": ["import { useCheckboxGroupParent } from '@base_ui/react/CheckboxGroup';"],
Expand Down
36 changes: 1 addition & 35 deletions docs/pages/base-ui/api/use-checkbox-group-root.json
Original file line number Diff line number Diff line change
@@ -1,40 +1,6 @@
{
"parameters": {},
"returnValue": {
"getRootProps": {
"type": {
"name": "(externalProps?: GenericHTMLProps) => GenericHTMLProps",
"description": "(externalProps?: GenericHTMLProps) => GenericHTMLProps"
},
"required": true
},
"labelId": {
"type": { "name": "string | undefined", "description": "string | undefined" },
"required": true
},
"parent": {
"type": {
"name": "UseCheckboxGroupParentReturnValue",
"description": "UseCheckboxGroupParentReturnValue"
},
"required": true
},
"setLabelId": {
"type": {
"name": "React.Dispatch<React.SetStateAction<string | undefined>>",
"description": "React.Dispatch<React.SetStateAction<string | undefined>>"
},
"required": true
},
"setValue": {
"type": {
"name": "(value: string[]) => void",
"description": "(value: string[]) => void"
},
"required": true
},
"value": { "type": { "name": "string[]", "description": "string[]" }, "required": true }
},
"returnValue": {},
"name": "useCheckboxGroupRoot",
"filename": "/packages/mui-base/src/CheckboxGroup/Root/useCheckboxGroupRoot.tsx",
"imports": ["import { useCheckboxGroupRoot } from '@base_ui/react/CheckboxGroup';"],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1 @@
{
"hookDescription": "",
"parametersDescriptions": {
"id": { "description": "The id of the label." },
"setId": { "description": "Set the id of the label." }
},
"returnValueDescriptions": {
"getLabelProps": { "description": "Props to apply to the label element." }
}
}
{ "hookDescription": "", "parametersDescriptions": {}, "returnValueDescriptions": {} }
12 changes: 0 additions & 12 deletions packages/mui-base/src/CheckboxGroup/index.barrel.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,11 @@
export * from './Root/CheckboxGroupRoot';
export * from './Root/useCheckboxGroupRoot';
export * from './Label/CheckboxGroupLabel';
export * from './Label/useCheckboxGroupLabel';
export * from './Parent/useCheckboxGroupParent';

export type {
CheckboxGroupRootProps,
CheckboxGroupRootOwnerState,
} from './Root/CheckboxGroupRoot.types';
export type { UseCheckboxGroupRootReturnValue } from './Root/useCheckboxGroupRoot.types';
export type {
CheckboxGroupLabelProps,
CheckboxGroupLabelOwnerState,
} from './Label/CheckboxGroupLabel.types';
export type {
UseCheckboxGroupLabelParameters,
UseCheckboxGroupLabelReturnValue,
} from './Label/useCheckboxGroupLabel.types';
export type {
UseCheckboxGroupParentParameters,
UseCheckboxGroupParentReturnValue,
} from './Parent/useCheckboxGroupParent.types';
12 changes: 0 additions & 12 deletions packages/mui-base/src/CheckboxGroup/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
export { CheckboxGroupRoot as Root } from './Root/CheckboxGroupRoot';
export { CheckboxGroupLabel as Label } from './Label/CheckboxGroupLabel';
export { useCheckboxGroupRoot as useRoot } from './Root/useCheckboxGroupRoot';
export { useCheckboxGroupLabel as useLabel } from './Label/useCheckboxGroupLabel';
export { useCheckboxGroupParent } from './Parent/useCheckboxGroupParent';

export type {
CheckboxGroupRootProps as RootProps,
Expand All @@ -12,12 +9,3 @@ export type {
CheckboxGroupLabelProps as LabelProps,
CheckboxGroupLabelOwnerState as LabelOwnerState,
} from './Label/CheckboxGroupLabel.types';
export type { UseCheckboxGroupRootReturnValue as UseRootReturnValue } from './Root/useCheckboxGroupRoot.types';
export type {
UseCheckboxGroupLabelParameters as UseLabelParameters,
UseCheckboxGroupLabelReturnValue as UseLabelReturnValue,
} from './Label/useCheckboxGroupLabel.types';
export type {
UseCheckboxGroupParentParameters as UseParentParameters,
UseCheckboxGroupParentReturnValue as UseParentReturnValue,
} from './Parent/useCheckboxGroupParent.types';

0 comments on commit 44d40b0

Please sign in to comment.