From fc485c25380f6112418c52c83da65f296ae03479 Mon Sep 17 00:00:00 2001 From: Bernard Date: Thu, 4 Mar 2021 11:11:16 -0600 Subject: [PATCH] [NO_TICKET] Export form components (#959) * Export FormControl and InlineError * Export TextInput and Select * Add comments warning developers --- packages/design-system/src/components/Dropdown/Select.jsx | 5 +++++ packages/design-system/src/components/Dropdown/index.js | 1 + .../src/components/FormControl/FormControl.tsx | 7 +++++++ packages/design-system/src/components/FormControl/index.js | 1 + .../src/components/InlineError/InlineError.tsx | 5 +++++ packages/design-system/src/components/InlineError/index.js | 1 + .../design-system/src/components/TextField/TextInput.jsx | 5 +++++ packages/design-system/src/components/TextField/index.js | 1 + .../design-system/src/components/__tests__/index.test.js | 3 --- packages/design-system/src/components/index.js | 2 ++ 10 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 packages/design-system/src/components/FormControl/index.js create mode 100644 packages/design-system/src/components/InlineError/index.js diff --git a/packages/design-system/src/components/Dropdown/Select.jsx b/packages/design-system/src/components/Dropdown/Select.jsx index 90374fc15d..974dda0fd5 100644 --- a/packages/design-system/src/components/Dropdown/Select.jsx +++ b/packages/design-system/src/components/Dropdown/Select.jsx @@ -2,6 +2,11 @@ import PropTypes from 'prop-types'; import React from 'react'; import classNames from 'classnames'; +/** + * is also exported for advanced design system use cases, where the internal component can be leveraged to build custom form components + * As an internal component, it's subject to more breaking changes. Exercise caution using