-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into Filterable_multiselect_onFocus_issue
- Loading branch information
Showing
36 changed files
with
1,110 additions
and
142 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
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
{ | ||
"settingsInheritedFrom": "ibm-mend-config/mend-config@main", | ||
"minSeverityLevel": "NONE" | ||
"issueSettings": { | ||
"minSeverityLevel": "NONE" | ||
} | ||
} |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
75 changes: 75 additions & 0 deletions
75
packages/react/code-connect/RadioButton/RadioButton.figma.tsx
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,75 @@ | ||
/** | ||
* Copyright IBM Corp. 2016, 2024 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
// @ts-nocheck | ||
import React from 'react'; | ||
import { RadioButton, RadioButtonSkeleton } from '@carbon/react'; | ||
import figma from '@figma/code-connect'; | ||
|
||
figma.connect( | ||
RadioButton, | ||
'https://www.figma.com/design/YAnB1jKx0yCUL29j6uSLpg/(v11)-All-themes---Carbon-Design-System?node-id=2930-23442&t=yFGI7EFVWv0vtqIk-4', | ||
{ | ||
props: { | ||
labelText: figma.string('Value text'), | ||
labelPosition: figma.enum('Position', { | ||
Right: 'right', | ||
}), | ||
hideLabel: figma.boolean('Value', { | ||
true: false, | ||
false: true, | ||
}), | ||
disabled: figma.enum('State', { | ||
Disabled: true, | ||
}), | ||
defaultChecked: figma.boolean('Selected'), | ||
// Below props are set on RadioButtonGroup only in code | ||
// | ||
// labeltext: figma.string('Label text'), | ||
// warningtext: figma.string('Warning text'), | ||
// helpermessage: figma.boolean('Helper message'), | ||
// warningmessage: figma.boolean('Warning message'), | ||
// errormessage: figma.boolean('Error message'), | ||
// helpertext: figma.string('Helper text'), | ||
// errortext: figma.string('Error text'), | ||
// label: figma.boolean('Label'), | ||
// state: figma.enum('State', { | ||
// 'Read-only': 'read-only', | ||
// Invalid: 'invalid', | ||
// Warning: 'warning', | ||
// }), | ||
}, | ||
example: ({ | ||
labelText, | ||
labelPosition, | ||
hideLabel, | ||
disabled, | ||
defaultChecked, | ||
}) => ( | ||
<RadioButton | ||
labelText={labelText} | ||
labelPosition={labelPosition} | ||
hideLabel={hideLabel} | ||
disabled={disabled} | ||
defaultChecked={defaultChecked} | ||
/> | ||
), | ||
} | ||
); | ||
|
||
figma.connect( | ||
RadioButtonSkeleton, | ||
'https://www.figma.com/design/YAnB1jKx0yCUL29j6uSLpg/(v11)-All-themes---Carbon-Design-System?node-id=2930-23442&t=yFGI7EFVWv0vtqIk-4', | ||
{ | ||
variant: { State: 'Skeleton' }, | ||
example: () => { | ||
// Disclaimer: Code Connect is currently in beta and integration with Carbon | ||
// React is in an exploratory phase. Code sample below may be incomplete. | ||
<RadioButtonSkeleton />; | ||
}, | ||
} | ||
); |
64 changes: 64 additions & 0 deletions
64
packages/react/code-connect/RadioButton/RadioButtonGroup.figma.tsx
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,64 @@ | ||
/** | ||
* Copyright IBM Corp. 2016, 2024 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
// @ts-nocheck | ||
import React from 'react'; | ||
import { RadioButtonGroup } from '@carbon/react'; | ||
import figma from '@figma/code-connect'; | ||
|
||
figma.connect( | ||
RadioButtonGroup, | ||
'https://www.figma.com/design/YAnB1jKx0yCUL29j6uSLpg/(v11)-All-themes---Carbon-Design-System?node-id=2927-28166&t=yFGI7EFVWv0vtqIk-4', | ||
{ | ||
props: { | ||
children: figma.children(['Radio button']), | ||
disabled: figma.enum('State', { | ||
Disabled: true, | ||
}), | ||
helperText: figma.boolean('Helper message', { | ||
true: figma.string('Helper text'), | ||
}), | ||
warnText: figma.string('Warning text'), | ||
warn: figma.enum('State', { | ||
Warning: true, | ||
}), | ||
invalidText: figma.string('Error text'), | ||
invalid: figma.enum('State', { | ||
Invalid: true, | ||
}), | ||
legendText: figma.string('Label text'), | ||
orientation: figma.boolean('Horizontal', { | ||
false: 'vertical', | ||
}), | ||
}, | ||
example: ({ | ||
children, | ||
disabled, | ||
helperText, | ||
warnText, | ||
warn, | ||
invalidText, | ||
invalid, | ||
orientation, | ||
legendText, | ||
}) => ( | ||
// Disclaimer: Code Connect is currently in beta and integration with Carbon | ||
// React is in an exploratory phase. Code sample below may be incomplete. | ||
<RadioButtonGroup | ||
disabled={disabled} | ||
helperText={helperText} | ||
warnText={warnText} | ||
warn={warn} | ||
invalidText={invalidText} | ||
invalid={invalid} | ||
orientation={orientation} | ||
legendText={legendText}> | ||
{children} | ||
</RadioButtonGroup> | ||
), | ||
} | ||
); |
Oops, something went wrong.