Skip to content

Commit 22c9d67

Browse files
authored
fix(code-connect): update package and fix component mappings (#20545)
* chore(code-connect): update code connect and remove preview fluid import * fix: add missing FluidPasswordInput export * fix: reconnect breadcrumb * fix: tile * chore: update tile and progressbar * fix: treenode bugs * chore: yarn dedupe * fix: tabs * docs: update readme for code connect * chore: readme update
1 parent a12dbc5 commit 22c9d67

25 files changed

+326
-340
lines changed
244 KB
Binary file not shown.
-381 KB
Binary file not shown.
401 KB
Binary file not shown.

packages/react/code-connect/Breadcrumb/Breadcrumb.figma.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import figma from '@figma/code-connect';
1111

1212
figma.connect(
1313
Breadcrumb,
14-
'https://www.figma.com/design/Bm1EL99jVq8Uv0gW11EpBC/-v11--Carbon-Design-System--Community-?node-id=3155-31030&t=udaFhcGQNUqmjDtx-4',
14+
'https://www.figma.com/design/YAnB1jKx0yCUL29j6uSLpg/-v11--Carbon-Design-System?node-id=104376-11673&m=dev',
1515
{
1616
props: {
1717
//noTrailingSlash: needs to come from child item component in figma

packages/react/code-connect/ComboBox/ComboBox.figma.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ figma.connect(
2626
Small: 'sm',
2727
}),
2828
titleText: figma.string('Label text'),
29-
hideLabel: figma.boolean('Show label', {
30-
true: false,
31-
false: true,
32-
}),
3329
readOnly: figma.enum('State', {
3430
'Read-only': true,
3531
}),
@@ -81,10 +77,6 @@ figma.connect(
8177
Medium: 'md',
8278
Small: 'sm',
8379
}),
84-
hideLabel: figma.boolean('Show label', {
85-
true: false,
86-
false: true,
87-
}),
8880
},
8981
example: ({ ...props }) => {
9082
return <DropdownSkeleton {...props} />;

packages/react/code-connect/ComboBox/FluidComboBox.figma.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,16 @@
88
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- https://github.com/carbon-design-system/carbon/issues/20071
99
// @ts-nocheck
1010
import React from 'react';
11-
import {
12-
preview__FluidComboBox as FluidComboBox,
13-
preview__FluidDropdownSkeleto as FluidDropdownSkeleton,
14-
} from '@carbon/react';
11+
import { FluidComboBox, FluidDropdownSkeleton } from '@carbon/react';
1512
import figma from '@figma/code-connect';
1613

1714
figma.connect(
1815
FluidComboBox,
1916
'https://www.figma.com/design/YAnB1jKx0yCUL29j6uSLpg/(v11)-All-themes---Carbon-Design-System?node-id=14505-304219&t=5acDGCinwyrs5Bbc-4',
2017
{
2118
props: {
22-
titleText: figma.boolean('Show tooltip', {
23-
// true: figma.string('Label text') + figma.children('Tooltip'), //https://github.com/figma/code-connect/issues/92
19+
titleText: figma.boolean('Show toggletip', {
20+
// true: figma.string('Label text') + figma.children('Toggletip'), //https://github.com/figma/code-connect/issues/92
2421
true: figma.string('Label text'),
2522
false: figma.string('Label text'),
2623
}),

packages/react/code-connect/DatePicker/FluidDatePicker.figma.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
// @ts-nocheck
1010
import React from 'react';
1111
import {
12-
preview__FluidDatePicker as FluidDatePicker,
13-
preview__FluidDatePickerInput as FluidDatePickerInput,
14-
preview__FluidDatePickerSkeleton as FluidDatePickerSkeleton,
12+
FluidDatePicker,
13+
FluidDatePickerInput,
14+
FluidDatePickerSkeleton,
1515
} from '@carbon/react';
1616
import figma from '@figma/code-connect';
1717

packages/react/code-connect/Dropdown/Dropdown.figma.tsx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ figma.connect(
2525
}),
2626
titleText: figma.string('Label'),
2727
label: figma.string('Prompt text'),
28-
hideLabel: figma.boolean('Show label', {
29-
true: false,
30-
false: true,
31-
}),
3228
readOnly: figma.enum('State', {
3329
'Read-only': true,
3430
}),
@@ -62,6 +58,7 @@ figma.connect(
6258
return (
6359
<Dropdown
6460
{...props}
61+
items={items}
6562
id="id"
6663
initialSelectedItem={items[0]}
6764
itemToString={(item) => (item ? item.text : '')}
@@ -82,10 +79,6 @@ figma.connect(
8279
Medium: 'md',
8380
Small: 'sm',
8481
}),
85-
hideLabel: figma.boolean('Show label', {
86-
true: false,
87-
false: true,
88-
}),
8982
},
9083
example: ({ ...props }) => {
9184
return <DropdownSkeleton {...props} />;

packages/react/code-connect/Dropdown/FluidDropdown.figma.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@
88
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- https://github.com/carbon-design-system/carbon/issues/20071
99
// @ts-nocheck
1010
import React from 'react';
11-
import {
12-
preview__FluidDropdown as FluidDropdown,
13-
preview__FluidDropdownSkeleton as FluidDropdownSkeleton,
14-
} from '@carbon/react';
11+
import { FluidDropdown, FluidDropdownSkeleton } from '@carbon/react';
1512
import figma from '@figma/code-connect';
1613

1714
figma.connect(

packages/react/code-connect/MultiSelect/FilterableMultiSelect.figma.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ figma.connect(
2222
Small: 'sm',
2323
}),
2424
titleText: figma.string('Label text'),
25-
hideLabel: figma.boolean('Show label', {
26-
true: false,
27-
false: true,
28-
}),
2925
label: figma.string('Filter...'),
3026
helperText: figma.boolean('Show helper', {
3127
true: figma.string('Helper text'),
@@ -81,10 +77,6 @@ figma.connect(
8177
Medium: 'md',
8278
Small: 'sm',
8379
}),
84-
hideLabel: figma.boolean('Show label', {
85-
true: false,
86-
false: true,
87-
}),
8880
},
8981
example: ({ ...props }) => {
9082
return <DropdownSkeleton {...props} />;

0 commit comments

Comments
 (0)