diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index f556e3b82c..d4a2a70056 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,5 +1,14 @@ # docs +## 0.5.2 + +### Patch Changes + +- Deploy 10.7.2 +- Updated dependencies + - @heathmont/moon-core-tw@10.7.2 + - @heathmont/moon-base-tw@10.7.2 + ## 0.5.1 ### Patch Changes diff --git a/docs/package.json b/docs/package.json index beaf00aab4..0e50b9ac6f 100644 --- a/docs/package.json +++ b/docs/package.json @@ -1,6 +1,6 @@ { "name": "docs", - "version": "0.5.1", + "version": "0.5.2", "private": true, "scripts": { "dev": "next dev", @@ -9,8 +9,8 @@ "lint": "next lint" }, "dependencies": { - "@heathmont/moon-base-tw": "workspace:^10.7.1", - "@heathmont/moon-core-tw": "workspace:^10.7.1", + "@heathmont/moon-base-tw": "workspace:^10.7.2", + "@heathmont/moon-core-tw": "workspace:^10.7.2", "@heathmont/moon-icons-tw": "9.28.4", "@types/node": "20.4.9", "@types/react": "18.2.19", diff --git a/next-docs/CHANGELOG.md b/next-docs/CHANGELOG.md index 145a97a5f1..4353131e2f 100644 --- a/next-docs/CHANGELOG.md +++ b/next-docs/CHANGELOG.md @@ -1,5 +1,16 @@ # Change Log +## 10.7.2 + +### Patch Changes + +- Deploy 10.7.2 +- Updated dependencies + - @heathmont/moon-themes-tw@10.7.2 + - @heathmont/moon-core-tw@10.7.2 + - @heathmont/moon-cmdk-tw@10.7.2 + - @heathmont/moon-table-tw@10.7.2 + ## 10.7.1 ### Patch Changes diff --git a/next-docs/components/themes/useThemes.tsx b/next-docs/components/themes/useThemes.tsx index 2ce3e71e0d..dab1fd44e0 100644 --- a/next-docs/components/themes/useThemes.tsx +++ b/next-docs/components/themes/useThemes.tsx @@ -21,6 +21,7 @@ type Themes = { tradeart: ColorModes; tradeartMiniBetting: ColorModes; travel: ColorModes; + pay: ColorModes; }; export const themes: Themes = { @@ -80,6 +81,10 @@ export const themes: Themes = { dark: 'theme-travel-light', light: 'theme-travel-light', }, + pay: { + dark: 'theme-pay-light', + light: 'theme-pay-light', + }, }; export type Brand = keyof Themes; diff --git a/next-docs/package.json b/next-docs/package.json index 211f099885..c42f508e61 100644 --- a/next-docs/package.json +++ b/next-docs/package.json @@ -1,6 +1,6 @@ { "name": "next-docs", - "version": "10.7.1", + "version": "10.7.2", "private": true, "scripts": { "dev": "next dev", @@ -19,9 +19,9 @@ "@heathmont/moon-assets": "workspace:^10.7.1", "@heathmont/moon-charts": "workspace:^10.7.1", "@heathmont/moon-components": "workspace:^10.7.1", - "@heathmont/moon-cmdk-tw": "workspace:^10.7.1", + "@heathmont/moon-cmdk-tw": "workspace:^10.7.2", "@heathmont/moon-core": "workspace:^10.7.1", - "@heathmont/moon-core-tw": "workspace:^10.7.1", + "@heathmont/moon-core-tw": "workspace:^10.7.2", "@heathmont/moon-datepicker": "workspace:^10.7.1", "@heathmont/moon-draggabletable": "workspace:^10.7.1", "@heathmont/moon-icons": "workspace:^10.7.1", @@ -30,9 +30,9 @@ "@heathmont/moon-select": "workspace:^10.7.1", "@heathmont/moon-sidebar": "workspace:^10.7.1", "@heathmont/moon-table": "workspace:^10.7.1", - "@heathmont/moon-table-tw": "workspace:^10.7.1", + "@heathmont/moon-table-tw": "workspace:^10.7.2", "@heathmont/moon-themes": "workspace:^10.7.1", - "@heathmont/moon-themes-tw": "workspace:^10.7.1", + "@heathmont/moon-themes-tw": "workspace:^10.7.2", "@heathmont/moon-utils": "workspace:^10.7.1", "@heathmont/moon-icons-tw": "9.28.5", "@hookform/resolvers": "3.2.0", diff --git a/next-docs/pages/components/button.tsx b/next-docs/pages/components/button.tsx index 76c5a9e3e5..866459d8c3 100644 --- a/next-docs/pages/components/button.tsx +++ b/next-docs/pages/components/button.tsx @@ -1,6 +1,7 @@ import { ReactNode } from 'react'; import Preview from '../../components/codePreview/Preview'; import ComponentPageDescription from '../../components/ComponentPageDescription'; +import type { ComponentNames } from '../../components/getComponent'; import Layout from '../../components/Layout'; import PropsTable from '../../components/PropsTable'; import Animations from '../../public/examples/button/Animations'; @@ -9,10 +10,10 @@ import Default from '../../public/examples/button/Default'; import Disabled from '../../public/examples/button/Disabled'; import FullWidth from '../../public/examples/button/FullWidth'; import Icons from '../../public/examples/button/Icons'; +import Multiline from '../../public/examples/button/Multiline'; import Sizes from '../../public/examples/button/Sizes'; import Variants from '../../public/examples/button/Variants'; import useComponent from '../../utils/useComponent'; -import type { ComponentNames } from '../../components/getComponent'; const COMPONENT_NAME: ComponentNames = 'Button'; @@ -79,6 +80,12 @@ const PageButton = () => { preview={} code={examples ? examples.Animations : 'Loading'} /> + } + code={examples ? examples.Multiline : 'Loading'} + /> { @@ -49,18 +48,11 @@ const PageCircularProgress = () => { title="Progress props" data={[ { - name: 'bgColor', - type: 'string', - required: false, - default: 'stroke-trunks/[.24]', - description: 'Background colour', - }, - { - name: 'progressColor', + name: 'className', type: 'string', required: false, - default: 'stroke-piccolo', - description: 'Progress bar colour', + default: '-', + description: 'Tailwind classes for custom styles.', }, { name: 'size', diff --git a/next-docs/public/examples/button/Multiline.tsx b/next-docs/public/examples/button/Multiline.tsx new file mode 100644 index 0000000000..ffd7159bb4 --- /dev/null +++ b/next-docs/public/examples/button/Multiline.tsx @@ -0,0 +1,14 @@ +import { Button } from '@heathmont/moon-core-tw'; + +const Example = () => ( + + + Button text + + Placeholder text + + + +); + +export default Example; diff --git a/next-docs/public/examples/button/__tests__/__snapshots__/index.test.tsx.snap b/next-docs/public/examples/button/__tests__/__snapshots__/index.test.tsx.snap index 144faf38a6..cca5d255e0 100644 --- a/next-docs/public/examples/button/__tests__/__snapshots__/index.test.tsx.snap +++ b/next-docs/public/examples/button/__tests__/__snapshots__/index.test.tsx.snap @@ -868,6 +868,123 @@ Object { } `; +exports[`Button in RTL renders Multiline 1`] = ` +Object { + "asFragment": [Function], + "baseElement": + + + + + + Button text + + + Placeholder text + + + + + + + , + "container": + + + + + Button text + + + Placeholder text + + + + + + , + "debug": [Function], + "findAllByAltText": [Function], + "findAllByDisplayValue": [Function], + "findAllByLabelText": [Function], + "findAllByPlaceholderText": [Function], + "findAllByRole": [Function], + "findAllByTestId": [Function], + "findAllByText": [Function], + "findAllByTitle": [Function], + "findByAltText": [Function], + "findByDisplayValue": [Function], + "findByLabelText": [Function], + "findByPlaceholderText": [Function], + "findByRole": [Function], + "findByTestId": [Function], + "findByText": [Function], + "findByTitle": [Function], + "getAllByAltText": [Function], + "getAllByDisplayValue": [Function], + "getAllByLabelText": [Function], + "getAllByPlaceholderText": [Function], + "getAllByRole": [Function], + "getAllByTestId": [Function], + "getAllByText": [Function], + "getAllByTitle": [Function], + "getByAltText": [Function], + "getByDisplayValue": [Function], + "getByLabelText": [Function], + "getByPlaceholderText": [Function], + "getByRole": [Function], + "getByTestId": [Function], + "getByText": [Function], + "getByTitle": [Function], + "queryAllByAltText": [Function], + "queryAllByDisplayValue": [Function], + "queryAllByLabelText": [Function], + "queryAllByPlaceholderText": [Function], + "queryAllByRole": [Function], + "queryAllByTestId": [Function], + "queryAllByText": [Function], + "queryAllByTitle": [Function], + "queryByAltText": [Function], + "queryByDisplayValue": [Function], + "queryByLabelText": [Function], + "queryByPlaceholderText": [Function], + "queryByRole": [Function], + "queryByTestId": [Function], + "queryByText": [Function], + "queryByTitle": [Function], + "rerender": [Function], + "unmount": [Function], +} +`; + exports[`Button in RTL renders Sizes 1`] = ` Object { "asFragment": [Function], @@ -2190,6 +2307,115 @@ Object { } `; +exports[`Button renders Multiline 1`] = ` +Object { + "asFragment": [Function], + "baseElement": + + + + + Button text + + + Placeholder text + + + + + + , + "container": + + + + Button text + + + Placeholder text + + + + + , + "debug": [Function], + "findAllByAltText": [Function], + "findAllByDisplayValue": [Function], + "findAllByLabelText": [Function], + "findAllByPlaceholderText": [Function], + "findAllByRole": [Function], + "findAllByTestId": [Function], + "findAllByText": [Function], + "findAllByTitle": [Function], + "findByAltText": [Function], + "findByDisplayValue": [Function], + "findByLabelText": [Function], + "findByPlaceholderText": [Function], + "findByRole": [Function], + "findByTestId": [Function], + "findByText": [Function], + "findByTitle": [Function], + "getAllByAltText": [Function], + "getAllByDisplayValue": [Function], + "getAllByLabelText": [Function], + "getAllByPlaceholderText": [Function], + "getAllByRole": [Function], + "getAllByTestId": [Function], + "getAllByText": [Function], + "getAllByTitle": [Function], + "getByAltText": [Function], + "getByDisplayValue": [Function], + "getByLabelText": [Function], + "getByPlaceholderText": [Function], + "getByRole": [Function], + "getByTestId": [Function], + "getByText": [Function], + "getByTitle": [Function], + "queryAllByAltText": [Function], + "queryAllByDisplayValue": [Function], + "queryAllByLabelText": [Function], + "queryAllByPlaceholderText": [Function], + "queryAllByRole": [Function], + "queryAllByTestId": [Function], + "queryAllByText": [Function], + "queryAllByTitle": [Function], + "queryByAltText": [Function], + "queryByDisplayValue": [Function], + "queryByLabelText": [Function], + "queryByPlaceholderText": [Function], + "queryByRole": [Function], + "queryByTestId": [Function], + "queryByText": [Function], + "queryByTitle": [Function], + "rerender": [Function], + "unmount": [Function], +} +`; + exports[`Button renders Sizes 1`] = ` Object { "asFragment": [Function], diff --git a/next-docs/public/examples/button/__tests__/index.test.tsx b/next-docs/public/examples/button/__tests__/index.test.tsx index ce0395c444..35cc68c347 100644 --- a/next-docs/public/examples/button/__tests__/index.test.tsx +++ b/next-docs/public/examples/button/__tests__/index.test.tsx @@ -11,6 +11,7 @@ import FullWidth from '../FullWidth'; import Disabled from '../Disabled'; import Animations from '../Animations'; import AsLink from '../AsLink'; +import Multiline from '../Multiline'; const withRtl = (component: JSX.Element) => {component}; @@ -48,6 +49,10 @@ describe('Button', () => { const tree = render(); expect(tree).toMatchSnapshot(); }); + it('renders Multiline', () => { + const tree = render(); + expect(tree).toMatchSnapshot(); + }); }); describe('Button in RTL', () => { @@ -84,4 +89,8 @@ describe('Button in RTL', () => { const tree = render(withRtl()); expect(tree).toMatchSnapshot(); }); + it('renders Multiline', () => { + const tree = render(withRtl()); + expect(tree).toMatchSnapshot(); + }); }); diff --git a/next-docs/public/examples/circularProgress/Colors.tsx b/next-docs/public/examples/circularProgress/Colors.tsx index 2292363630..bb2e6329ed 100644 --- a/next-docs/public/examples/circularProgress/Colors.tsx +++ b/next-docs/public/examples/circularProgress/Colors.tsx @@ -2,13 +2,12 @@ import { CircularProgress } from '@heathmont/moon-core-tw'; const Example = () => ( <> - + - + > ); diff --git a/next-docs/public/examples/circularProgress/__tests__/__snapshots__/index.test.tsx.snap b/next-docs/public/examples/circularProgress/__tests__/__snapshots__/index.test.tsx.snap index 8844f3932a..8275cceb77 100644 --- a/next-docs/public/examples/circularProgress/__tests__/__snapshots__/index.test.tsx.snap +++ b/next-docs/public/examples/circularProgress/__tests__/__snapshots__/index.test.tsx.snap @@ -12,13 +12,12 @@ Object { aria-valuemax="100" aria-valuemin="0" aria-valuenow="75" - font-size="2.5rem" + class="w-10 h-10 [&_.background]:stroke-cell" role="progressbar" - style="width: 1em; height: 1em; vertical-align: middle;" viewBox="0 0 100 100" > @@ -115,13 +112,12 @@ Object { aria-valuemax="100" aria-valuemin="0" aria-valuenow="75" - font-size="2.5rem" + class="w-10 h-10 [&_.background]:stroke-cell" role="progressbar" - style="width: 1em; height: 1em; vertical-align: middle;" viewBox="0 0 100 100" > @@ -275,13 +269,12 @@ Object { aria-valuemax="100" aria-valuemin="0" aria-valuenow="0" - font-size="2.5rem" + class="w-10 h-10" role="progressbar" - style="width: 1em; height: 1em; vertical-align: middle;" viewBox="0 0 100 100" > @@ -314,13 +307,12 @@ Object { aria-valuemax="100" aria-valuemin="0" aria-valuenow="0" - font-size="2.5rem" + class="w-10 h-10" role="progressbar" - style="width: 1em; height: 1em; vertical-align: middle;" viewBox="0 0 100 100" > @@ -410,13 +402,12 @@ Object { aria-valuemax="100" aria-valuemin="0" aria-valuenow="75" - font-size="1rem" + class="w-4 h-4" role="progressbar" - style="width: 1em; height: 1em; vertical-align: middle;" viewBox="0 0 100 100" > @@ -577,13 +564,12 @@ Object { aria-valuemax="100" aria-valuemin="0" aria-valuenow="75" - font-size="1rem" + class="w-4 h-4" role="progressbar" - style="width: 1em; height: 1em; vertical-align: middle;" viewBox="0 0 100 100" > @@ -801,13 +783,12 @@ Object { aria-valuemax="100" aria-valuemin="0" aria-valuenow="25" - font-size="2.5rem" + class="w-10 h-10" role="progressbar" - style="width: 1em; height: 1em; vertical-align: middle;" viewBox="0 0 100 100" > @@ -936,13 +914,12 @@ Object { aria-valuemax="100" aria-valuemin="0" aria-valuenow="25" - font-size="2.5rem" + class="w-10 h-10" role="progressbar" - style="width: 1em; height: 1em; vertical-align: middle;" viewBox="0 0 100 100" > @@ -1125,13 +1099,12 @@ Object { aria-valuemax="100" aria-valuemin="0" aria-valuenow="75" - font-size="2.5rem" + class="w-10 h-10 [&_.background]:stroke-cell" role="progressbar" - style="width: 1em; height: 1em; vertical-align: middle;" viewBox="0 0 100 100" > @@ -1224,13 +1195,12 @@ Object { aria-valuemax="100" aria-valuemin="0" aria-valuenow="75" - font-size="2.5rem" + class="w-10 h-10 [&_.background]:stroke-cell" role="progressbar" - style="width: 1em; height: 1em; vertical-align: middle;" viewBox="0 0 100 100" > , @@ -1380,13 +1348,12 @@ Object { aria-valuemax="100" aria-valuemin="0" aria-valuenow="0" - font-size="2.5rem" + class="w-10 h-10" role="progressbar" - style="width: 1em; height: 1em; vertical-align: middle;" viewBox="0 0 100 100" > @@ -1415,13 +1382,12 @@ Object { aria-valuemax="100" aria-valuemin="0" aria-valuenow="0" - font-size="2.5rem" + class="w-10 h-10" role="progressbar" - style="width: 1em; height: 1em; vertical-align: middle;" viewBox="0 0 100 100" > , @@ -1507,13 +1473,12 @@ Object { aria-valuemax="100" aria-valuemin="0" aria-valuenow="75" - font-size="1rem" + class="w-4 h-4" role="progressbar" - style="width: 1em; height: 1em; vertical-align: middle;" viewBox="0 0 100 100" > @@ -1670,13 +1631,12 @@ Object { aria-valuemax="100" aria-valuemin="0" aria-valuenow="75" - font-size="1rem" + class="w-4 h-4" role="progressbar" - style="width: 1em; height: 1em; vertical-align: middle;" viewBox="0 0 100 100" > , @@ -1890,13 +1846,12 @@ Object { aria-valuemax="100" aria-valuemin="0" aria-valuenow="25" - font-size="2.5rem" + class="w-10 h-10" role="progressbar" - style="width: 1em; height: 1em; vertical-align: middle;" viewBox="0 0 100 100" > @@ -2021,13 +1973,12 @@ Object { aria-valuemax="100" aria-valuemin="0" aria-valuenow="25" - font-size="2.5rem" + class="w-10 h-10" role="progressbar" - style="width: 1em; height: 1em; vertical-align: middle;" viewBox="0 0 100 100" > , diff --git a/next-docs/public/examples/pagination/WithHref.tsx b/next-docs/public/examples/pagination/WithHref.tsx index 00666ae9af..29c2f71407 100644 --- a/next-docs/public/examples/pagination/WithHref.tsx +++ b/next-docs/public/examples/pagination/WithHref.tsx @@ -5,7 +5,18 @@ import { ControlsChevronRightSmall, } from '@heathmont/moon-icons-tw'; -const hrefsArray = ['#', '#', '#', '#', '#', '#', '#', '#', '#', '#']; +const hrefsArray = [ + '#?1', + '#?2', + '#?3', + '#?4', + '#?5', + '#?6', + '#?7', + '#?8', + '#?9', + '#?10', +]; const Example = () => { const [page, setPage] = useState(0); @@ -20,7 +31,7 @@ const Example = () => { currentPage={page} setCurrentPage={handlePageChange} > - + {({ disabled }) => ( } @@ -32,7 +43,7 @@ const Example = () => { )} - + {({ disabled }) => ( } diff --git a/next-docs/public/examples/pagination/__tests__/__snapshots__/index.test.tsx.snap b/next-docs/public/examples/pagination/__tests__/__snapshots__/index.test.tsx.snap index 770fbde27b..214c71a81e 100644 --- a/next-docs/public/examples/pagination/__tests__/__snapshots__/index.test.tsx.snap +++ b/next-docs/public/examples/pagination/__tests__/__snapshots__/index.test.tsx.snap @@ -483,7 +483,7 @@ Object { - - + 1 @@ -530,7 +530,7 @@ Object { 2 @@ -538,7 +538,7 @@ Object { 3 @@ -551,15 +551,16 @@ Object { 10 - - + @@ -598,7 +599,7 @@ Object { - - + 1 @@ -645,7 +646,7 @@ Object { 2 @@ -653,7 +654,7 @@ Object { 3 @@ -666,15 +667,16 @@ Object { 10 - - + , @@ -1223,7 +1225,7 @@ Object { - - + 1 @@ -1270,7 +1272,7 @@ Object { 2 @@ -1278,7 +1280,7 @@ Object { 3 @@ -1291,15 +1293,16 @@ Object { 10 - - +