diff --git a/.changeset/chartColors.md b/.changeset/chartColors.md new file mode 100644 index 000000000..62d7c1b49 --- /dev/null +++ b/.changeset/chartColors.md @@ -0,0 +1,5 @@ +--- +'react-magma-dom': patch +--- + +Adding in chartColors to theme. diff --git a/.changeset/feat-paragraphMargins.md b/.changeset/feat-paragraphMargins.md new file mode 100644 index 000000000..2a2245fbb --- /dev/null +++ b/.changeset/feat-paragraphMargins.md @@ -0,0 +1,5 @@ +--- +'react-magma-dom': minor +--- + +feat(Paragraph): New `noTopMargin` and `noBottomMargin` props that allow customization of which margin to remove. diff --git a/.changeset/feat-selectChildren.md b/.changeset/feat-selectChildren.md new file mode 100644 index 000000000..946b064ec --- /dev/null +++ b/.changeset/feat-selectChildren.md @@ -0,0 +1,5 @@ +--- +'react-magma-dom': minor +--- + +feat(Select/NativeSelect): New `additionalContent` prop to provide the ability to add extra content inline with the label similar to the Input component. diff --git a/.changeset/fix-additionalContent.md b/.changeset/fix-additionalContent.md new file mode 100644 index 000000000..a8d02f5de --- /dev/null +++ b/.changeset/fix-additionalContent.md @@ -0,0 +1,5 @@ +--- +'react-magma-dom': minor +--- + +fix(Select/NativeSelect): Fixed alignment issues in Select regarding additional content icon. Fixed duplicate additional content in Native Select. diff --git a/.changeset/fix-additionalContentDocs.md b/.changeset/fix-additionalContentDocs.md new file mode 100644 index 000000000..ad9648eef --- /dev/null +++ b/.changeset/fix-additionalContentDocs.md @@ -0,0 +1,5 @@ +--- +'react-magma-docs': patch +--- + +fix(Select/NativeSelect): Update AdditionalContent CodeSandbox examples diff --git a/.changeset/fix-expressiveText.md b/.changeset/fix-expressiveText.md new file mode 100644 index 000000000..101c589f3 --- /dev/null +++ b/.changeset/fix-expressiveText.md @@ -0,0 +1,5 @@ +--- +'react-magma-dom': patch +--- + +fix: Updates to the expressive font styles for both desktop and mobile. diff --git a/.changeset/fix-modalPadding.md b/.changeset/fix-modalPadding.md new file mode 100644 index 000000000..e9e70eede --- /dev/null +++ b/.changeset/fix-modalPadding.md @@ -0,0 +1,5 @@ +--- +'react-magma-dom': patch +--- + +fix(Modal): Fixed bottom padding on the Modal header. diff --git a/.changeset/fix-modalStorybook.md b/.changeset/fix-modalStorybook.md new file mode 100644 index 000000000..37b4ff382 --- /dev/null +++ b/.changeset/fix-modalStorybook.md @@ -0,0 +1,5 @@ +--- +'react-magma-dom': patch +--- + +fix(Modal): Fixed Storybook Inverse example. diff --git a/.changeset/strong-fans-itch.md b/.changeset/strong-fans-itch.md new file mode 100644 index 000000000..7e66a9074 --- /dev/null +++ b/.changeset/strong-fans-itch.md @@ -0,0 +1,5 @@ +--- +"react-magma-landing": patch +--- + +build(deps-dev): bump axios from 0.21.1 to 1.6.0 diff --git a/packages/react-magma-dom/src/components/DatePicker/DatePicker.test.js b/packages/react-magma-dom/src/components/DatePicker/DatePicker.test.js index c6b26fe98..1c62851e7 100644 --- a/packages/react-magma-dom/src/components/DatePicker/DatePicker.test.js +++ b/packages/react-magma-dom/src/components/DatePicker/DatePicker.test.js @@ -450,12 +450,14 @@ describe('Date Picker', () => { key: 'Escape', code: 27, }); + setTimeout(() => { expect(getByTestId('calendarContainer')).toHaveStyleRule( 'display', 'none' ); }, 500); + expect(getByTestId('modal')).toBeInTheDocument(); }); diff --git a/packages/react-magma-dom/src/components/FormFieldContainer/FormFieldContainer.tsx b/packages/react-magma-dom/src/components/FormFieldContainer/FormFieldContainer.tsx index 855ac94bf..6c5f5da0f 100644 --- a/packages/react-magma-dom/src/components/FormFieldContainer/FormFieldContainer.tsx +++ b/packages/react-magma-dom/src/components/FormFieldContainer/FormFieldContainer.tsx @@ -30,7 +30,7 @@ export interface FormFieldContainerBaseProps { */ errorMessage?: React.ReactNode; /** - * ID of the form field. Also used in the descrption ID. + * ID of the form field. Also used in the description ID. */ fieldId: string; /** diff --git a/packages/react-magma-dom/src/components/Heading/Heading.stories.tsx b/packages/react-magma-dom/src/components/Heading/Heading.stories.tsx index 3f0fe6909..f2552808d 100644 --- a/packages/react-magma-dom/src/components/Heading/Heading.stories.tsx +++ b/packages/react-magma-dom/src/components/Heading/Heading.stories.tsx @@ -11,67 +11,136 @@ import { Meta } from '@storybook/react/types-6-0'; export default { component: Heading, title: 'Heading', + argTypes: { + isInverse: { + control: { + type: 'boolean', + }, + defaultValue: false, + }, + }, } as Meta; -export const Default = () => { +export const Default = args => { return ( - <> - Heading 1 (X-Large) - Productive - Heading 2 (Large) - Productive - Heading 3 (Medium) - Productive - Heading 4 (Small) - Productive - Heading 5 (X-Small) - Productive - Heading 6 (2X-Small) - Productive + + + Heading 1 (X-Large) - Productive + + + Heading 2 (Large) - Productive + + + Heading 3 (Medium) - Productive + + + Heading 4 (Small) - Productive + + + Heading 5 (X-Small) - Productive + + + Heading 6 (2X-Small) - Productive +
Heading 1 (2X-Large) - Expressive - + Heading 1 (X-Large) - Expressive - + Heading 2 (Large) - Expressive - + Heading 3 (Medium) - Expressive - + Heading 4 (Small) - Expressive - + Heading 5 (X-Small) - Expressive - + Heading 6 (2X-Small) - Expressive
- + Heading 1 (X-Large) - Narrative - + Heading 2 (Large) - Narrative - + Heading 3 (Medium) - Narrative - + Heading 4 (Small) - Narrative - + Heading 5 (X-Small) - Narrative - + Heading 6 (2X-Small) - Narrative - +
); }; -export const Colors = () => { +export const Colors = args => { return ( <> @@ -104,78 +173,4 @@ export const Colors = () => { ); }; -export const Inverse = () => { - return ( - - - Heading 1 (X-Large) - Productive - - - Heading 2 (Large) - Productive - - - Heading 3 (Medium) - Productive - - - Heading 4 (Small) - Productive - - - Heading 5 (X-Small) - Productive - - - Heading 6 (2X-Small) - Productive - -
- - Heading 1 (2X-Large) - Expressive - - - Heading 1 (X-Large) - Expressive - - - Heading 2 (Large) - Expressive - - - Heading 3 (Medium) - Expressive - - - Heading 4 (Small) - Expressive - - - Heading 5 (X-Small) - Expressive - - - Heading 6 (2X-Small) - Expressive - -
- ); -}; +Colors.parameters = { controls: { exclude: ['isInverse'] } }; diff --git a/packages/react-magma-dom/src/components/InputBase/index.tsx b/packages/react-magma-dom/src/components/InputBase/index.tsx index a652ea1e0..55cd008b2 100644 --- a/packages/react-magma-dom/src/components/InputBase/index.tsx +++ b/packages/react-magma-dom/src/components/InputBase/index.tsx @@ -433,7 +433,7 @@ function getIconButtonTransform(props) { return position; } -const IconButtonContainer = styled.span<{ +export const IconButtonContainer = styled.span<{ iconPosition?: InputIconPosition; inputSize?: InputSize; theme: ThemeInterface; diff --git a/packages/react-magma-dom/src/components/Modal/Modal.stories.tsx b/packages/react-magma-dom/src/components/Modal/Modal.stories.tsx index 4608706b4..9ed0ddc69 100644 --- a/packages/react-magma-dom/src/components/Modal/Modal.stories.tsx +++ b/packages/react-magma-dom/src/components/Modal/Modal.stories.tsx @@ -9,6 +9,7 @@ import { DatePicker } from '../DatePicker'; import { ButtonGroup, ButtonGroupAlignment } from '../ButtonGroup'; import { Container } from '../Container'; import { NativeSelect } from '../NativeSelect'; +import { Paragraph } from '../Paragraph'; import { Spacer } from '../Spacer'; import { Combobox } from '../Combobox'; import { @@ -40,7 +41,7 @@ export const Default = () => { }} isOpen={showModal} > -

This is a modal, doing modal things.

+ This is a modal, doing modal things. @@ -70,11 +71,11 @@ export const LongContentWithScrolling = () => { return ( <> -

This is a modal, doing modal things.

-

+ This is a modal, doing modal things. + This is linked text in the modal -

-

+ + Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut @@ -82,12 +83,12 @@ export const LongContentWithScrolling = () => { reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. -

-

This is a modal, doing modal things.

-

+ + This is a modal, doing modal things. + This is some more linked text in the modal -

-

+ + Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut @@ -95,12 +96,12 @@ export const LongContentWithScrolling = () => { reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. -

-

This is a modal, doing modal things.

-

+ + This is a modal, doing modal things. + -

-

+ + Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut @@ -108,7 +109,7 @@ export const LongContentWithScrolling = () => { reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. -

+
} + @@ -210,11 +212,11 @@ export const ModalContentUpdate = () => { {page === 2 && ( <> -

Page two

-

+ Page two + {' '} -

+ )} @@ -248,11 +250,13 @@ export const NoHeaderOrFocusableContent = () => { onClose={onModalNoFocusClose} isOpen={showModalNoFocus} > -

This modal has no header and nothing focusable.

-

+ + This modal has no header and nothing focusable. + + Consider the usability implications before implementing a modal like this. A modal should have something actionable inside it. -

+ -

-

+ + This is some more linked text in the modal -

+ { ]} isClearable /> -

+ -

+ -

+