Skip to content

Commit 649a988

Browse files
wkeesesangeethababu9223heloiseluiriddhybansal
authored
fix(inlinecheckbox): export inlinecheckbox (#22263)
* fix(inlinecheckbox): export inlinecheckbox For some reason InlineCheckbox is not publicly exported, although InlineCheckboxProps is. Our code has been importing it like: import InlineCheckbox from '@carbon/react/lib/components/InlineCheckbox'; but of course that's not proper. Refs #562 (because that's where InlineCheckbox was added). * fix(inlinecheckbox): update tests --------- Co-authored-by: Sangeetha Babu <sangeetha9223@gmail.com> Co-authored-by: Heloise Lui <71858203+heloiselui@users.noreply.github.com> Co-authored-by: Riddhi Bansal <41935566+riddhybansal@users.noreply.github.com>
1 parent 2d98f4e commit 649a988

3 files changed

Lines changed: 42 additions & 0 deletions

File tree

packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6015,6 +6015,46 @@ Map {
60156015
},
60166016
},
60176017
},
6018+
"InlineCheckbox" => {
6019+
"$$typeof": Symbol(react.forward_ref),
6020+
"propTypes": {
6021+
"aria-label": {
6022+
"isRequired": true,
6023+
"type": "string",
6024+
},
6025+
"ariaLabel": [Function],
6026+
"checked": {
6027+
"type": "bool",
6028+
},
6029+
"disabled": {
6030+
"type": "bool",
6031+
},
6032+
"id": {
6033+
"isRequired": true,
6034+
"type": "string",
6035+
},
6036+
"indeterminate": {
6037+
"type": "bool",
6038+
},
6039+
"name": {
6040+
"isRequired": true,
6041+
"type": "string",
6042+
},
6043+
"onChange": {
6044+
"type": "func",
6045+
},
6046+
"onClick": {
6047+
"type": "func",
6048+
},
6049+
"onKeyDown": {
6050+
"type": "func",
6051+
},
6052+
"title": {
6053+
"type": "string",
6054+
},
6055+
},
6056+
"render": [Function],
6057+
},
60186058
"InlineLoading" => {
60196059
"propTypes": {
60206060
"className": {

packages/react/src/__tests__/index-test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ describe('Carbon Components React', () => {
131131
"IconSwitch",
132132
"IconTab",
133133
"IdPrefix",
134+
"InlineCheckbox",
134135
"InlineLoading",
135136
"InlineNotification",
136137
"Layer",

packages/react/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export * from './components/FormLabel';
5656
export * from './components/Grid';
5757
export * from './components/Icon/Icon.Skeleton';
5858
export * from './components/IdPrefix';
59+
export { InlineCheckbox } from './components/InlineCheckbox';
5960
export * from './components/InlineLoading';
6061
export * from './components/Link';
6162
export * from './components/ListItem';

0 commit comments

Comments
 (0)