Skip to content

Commit

Permalink
feat(project): add flat exports for namespaced components, carbon-des…
Browse files Browse the repository at this point in the history
  • Loading branch information
tay1orjones committed Jun 23, 2021
1 parent 239b4f0 commit 613dda7
Show file tree
Hide file tree
Showing 5 changed files with 252 additions and 0 deletions.
243 changes: 243 additions & 0 deletions packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4311,6 +4311,249 @@ Map {
},
"render": [Function],
},
"ControlledPasswordInput" => Object {
"$$typeof": Symbol(react.forward_ref),
"defaultProps": Object {
"className": "\${prefix}--text__input",
"disabled": false,
"helperText": "",
"invalid": false,
"invalidText": "",
"light": false,
"onChange": [Function],
"onClick": [Function],
"size": "",
},
"propTypes": Object {
"className": Object {
"type": "string",
},
"defaultValue": Object {
"args": Array [
Array [
Object {
"type": "string",
},
Object {
"type": "number",
},
],
],
"type": "oneOfType",
},
"disabled": Object {
"type": "bool",
},
"helperText": Object {
"type": "node",
},
"hideLabel": Object {
"type": "bool",
},
"hidePasswordLabel": Object {
"type": "string",
},
"id": Object {
"isRequired": true,
"type": "string",
},
"invalid": Object {
"type": "bool",
},
"invalidText": Object {
"type": "node",
},
"labelText": Object {
"isRequired": true,
"type": "node",
},
"light": Object {
"type": "bool",
},
"onChange": Object {
"type": "func",
},
"onClick": Object {
"type": "func",
},
"placeholder": Object {
"type": "string",
},
"showPasswordLabel": Object {
"type": "string",
},
"size": Object {
"type": "string",
},
"tooltipAlignment": Object {
"args": Array [
Array [
"start",
"center",
"end",
],
],
"type": "oneOf",
},
"tooltipPosition": Object {
"args": Array [
Array [
"top",
"right",
"bottom",
"left",
],
],
"type": "oneOf",
},
"value": Object {
"args": Array [
Array [
Object {
"type": "string",
},
Object {
"type": "number",
},
],
],
"type": "oneOfType",
},
},
"render": [Function],
},
"PasswordInput" => Object {
"$$typeof": Symbol(react.forward_ref),
"defaultProps": Object {
"className": "\${prefix}--text__input",
"disabled": false,
"helperText": "",
"invalid": false,
"invalidText": "",
"light": false,
"onChange": [Function],
"onClick": [Function],
"size": "",
},
"propTypes": Object {
"className": Object {
"type": "string",
},
"defaultValue": Object {
"args": Array [
Array [
Object {
"type": "string",
},
Object {
"type": "number",
},
],
],
"type": "oneOfType",
},
"disabled": Object {
"type": "bool",
},
"helperText": Object {
"type": "node",
},
"hideLabel": Object {
"type": "bool",
},
"hidePasswordLabel": Object {
"type": "string",
},
"id": Object {
"isRequired": true,
"type": "string",
},
"inline": Object {
"type": "bool",
},
"invalid": Object {
"type": "bool",
},
"invalidText": Object {
"type": "node",
},
"labelText": Object {
"isRequired": true,
"type": "node",
},
"light": Object {
"type": "bool",
},
"onChange": Object {
"type": "func",
},
"onClick": Object {
"type": "func",
},
"onTogglePasswordVisibility": Object {
"type": "func",
},
"placeholder": Object {
"type": "string",
},
"showPasswordLabel": Object {
"type": "string",
},
"size": Object {
"type": "string",
},
"tooltipAlignment": Object {
"args": Array [
Array [
"start",
"center",
"end",
],
],
"type": "oneOf",
},
"tooltipPosition": Object {
"args": Array [
Array [
"top",
"right",
"bottom",
"left",
],
],
"type": "oneOf",
},
"type": Object {
"args": Array [
Array [
"password",
"text",
],
],
"type": "oneOf",
},
"value": Object {
"args": Array [
Array [
Object {
"type": "string",
},
Object {
"type": "number",
},
],
],
"type": "oneOfType",
},
"warn": Object {
"type": "bool",
},
"warnText": Object {
"type": "node",
},
},
"render": [Function],
},
"PrimaryButton" => Object {},
"ProgressIndicator" => Object {
"defaultProps": Object {
Expand Down
2 changes: 2 additions & 0 deletions packages/react/src/__tests__/index-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ describe('Carbon Components React', () => {
"ComposedModal",
"Content",
"ContentSwitcher",
"ControlledPasswordInput",
"Copy",
"CopyButton",
"DangerButton",
Expand Down Expand Up @@ -96,6 +97,7 @@ describe('Carbon Components React', () => {
"Pagination",
"PaginationNav",
"PaginationSkeleton",
"PasswordInput",
"PrimaryButton",
"ProgressIndicator",
"ProgressIndicatorSkeleton",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export FilterableMultiSelect from '../MultiSelect/FilterableMultiSelect';
2 changes: 2 additions & 0 deletions packages/react/src/components/PasswordInput/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export ControlledPasswordInput from '../TextInput/ControlledPasswordInput';
export PasswordInput from '../TextInput/PasswordInput';
4 changes: 4 additions & 0 deletions packages/react/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ export OverflowMenu from './components/OverflowMenu';
export OverflowMenuItem from './components/OverflowMenuItem';
export Pagination from './components/Pagination';
export PaginationNav from './components/PaginationNav';
export {
ControlledPasswordInput,
PasswordInput,
} from './components/PasswordInput';
export PrimaryButton from './components/PrimaryButton';
export {
ProgressIndicator,
Expand Down

0 comments on commit 613dda7

Please sign in to comment.