Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update all non-major dependencies #147

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 6, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@atlaskit/adf-schema 35.7.0 -> 35.14.0 age adoption passing confidence
@atlaskit/adf-utils 19.0.23 -> 19.2.2 age adoption passing confidence
@atlaskit/editor-json-transformer 8.10.27 -> 8.13.2 age adoption passing confidence
@atlaskit/editor-wikimarkup-transformer 11.2.44 -> 11.4.2 age adoption passing confidence
@hello-pangea/dnd 16.5.0 -> 16.6.0 age adoption passing confidence
@mantine/core (source) 7.6.2 -> 7.10.1 age adoption passing confidence
@mantine/dates (source) 7.6.1 -> 7.10.1 age adoption passing confidence
@mantine/form (source) 7.6.1 -> 7.10.1 age adoption passing confidence
@mantine/hooks (source) 7.6.2 -> 7.10.1 age adoption passing confidence
@mantine/notifications (source) 7.6.1 -> 7.10.1 age adoption passing confidence
@mantine/tiptap (source) 7.6.2 -> 7.10.1 age adoption passing confidence
@playwright/test (source) 1.42.1 -> 1.44.1 age adoption passing confidence
@tanstack/react-query (source) 5.25.0 -> 5.40.0 age adoption passing confidence
@tanstack/react-query-devtools (source) 5.25.0 -> 5.40.0 age adoption passing confidence
@testing-library/jest-dom 6.4.2 -> 6.4.5 age adoption passing confidence
@testing-library/react 14.2.1 -> 14.3.1 age adoption passing confidence
@tiptap/extension-link (source) 2.2.4 -> 2.4.0 age adoption passing confidence
@tiptap/pm (source) 2.2.4 -> 2.4.0 age adoption passing confidence
@tiptap/react (source) 2.2.4 -> 2.4.0 age adoption passing confidence
@tiptap/starter-kit (source) 2.2.4 -> 2.4.0 age adoption passing confidence
@types/lodash (source) 4.14.202 -> 4.17.4 age adoption passing confidence
@types/react (source) 18.2.63 -> 18.3.3 age adoption passing confidence
@types/react-dom (source) 18.2.20 -> 18.3.0 age adoption passing confidence
@typescript-eslint/eslint-plugin (source) 7.1.1 -> 7.11.0 age adoption passing confidence
@typescript-eslint/parser (source) 7.1.1 -> 7.11.0 age adoption passing confidence
@vitejs/plugin-react (source) 4.2.1 -> 4.3.0 age adoption passing confidence
axios (source) 1.6.7 -> 1.7.2 age adoption passing confidence
dayjs (source) 1.11.10 -> 1.11.11 age adoption passing confidence
electron 29.1.0 -> 29.4.2 age adoption passing confidence
electron-squirrel-startup 1.0.0 -> 1.0.1 age adoption passing confidence
eslint-plugin-import-newlines 1.3.4 -> 1.4.0 age adoption passing confidence
eslint-plugin-react 7.34.0 -> 7.34.2 age adoption passing confidence
eslint-plugin-react-hooks (source) 4.6.0 -> 4.6.2 age adoption passing confidence
eslint-plugin-testing-library 6.2.0 -> 6.2.2 age adoption passing confidence
fastify (source) 4.26.2 -> 4.27.0 age adoption passing confidence
immer 10.0.3 -> 10.1.1 age adoption passing confidence
lint-staged 15.2.2 -> 15.2.5 age adoption passing confidence
postcss (source) 8.4.35 -> 8.4.38 age adoption passing confidence
postcss-preset-mantine 1.13.0 -> 1.15.0 age adoption passing confidence
react (source) 18.2.0 -> 18.3.1 age adoption passing confidence
react-dom (source) 18.2.0 -> 18.3.1 age adoption passing confidence
react-router-dom (source) 6.22.2 -> 6.23.1 age adoption passing confidence
sass 1.71.1 -> 1.77.3 age adoption passing confidence
ts-jest (source) 29.1.2 -> 29.1.4 age adoption passing confidence
typescript (source) 5.3.3 -> 5.4.5 age adoption passing confidence
yarn 1.22.21 -> 1.22.22 age adoption passing confidence

Release Notes

hello-pangea/dnd (@​hello-pangea/dnd)

v16.6.0

Compare Source

Others 🔧
CI 🛠
mantinedev/mantine (@​mantine/core)

v7.10.1

Compare Source

v7.10.0: 😎

Compare Source

View changelog with demos on mantine.dev website

Tree component

New Tree component:

import { IconFolder, IconFolderOpen } from '@​tabler/icons-react';
import { Group, RenderTreeNodePayload, Tree } from '@​mantine/core';
import { CssIcon, NpmIcon, TypeScriptCircleIcon } from '@​mantinex/dev-icons';
import { data, dataCode } from './data';
import classes from './Demo.module.css';

interface FileIconProps {
  name: string;
  isFolder: boolean;
  expanded: boolean;
}

function FileIcon({ name, isFolder, expanded }: FileIconProps) {
  if (name.endsWith('package.json')) {
    return <NpmIcon size={14} />;
  }

  if (name.endsWith('.ts') || name.endsWith('.tsx') || name.endsWith('tsconfig.json')) {
    return <TypeScriptCircleIcon size={14} />;
  }

  if (name.endsWith('.css')) {
    return <CssIcon size={14} />;
  }

  if (isFolder) {
    return expanded ? (
      <IconFolderOpen color="var(--mantine-color-yellow-9)" size={14} stroke={2.5} />
    ) : (
      <IconFolder color="var(--mantine-color-yellow-9)" size={14} stroke={2.5} />
    );
  }

  return null;
}

function Leaf({ node, expanded, hasChildren, elementProps }: RenderTreeNodePayload) {
  return (
    <Group gap={5} {...elementProps}>
      <FileIcon name={node.value} isFolder={hasChildren} expanded={expanded} />
      <span>{node.label}</span>
    </Group>
  );
}

function Demo() {
  return (
    <Tree
      classNames={classes}
      selectOnClick
      clearSelectionOnOutsideClick
      data={data}
      renderNode={(payload) => <Leaf {...payload} />}
    />
  );
}
form.getInputNode

New form.getInputNode(path) handler returns input DOM node for the given field path.
Form example, it can be used to focus input on form submit if there is an error:

import { Button, Group, TextInput } from '@&#8203;mantine/core';
import { isEmail, isNotEmpty, useForm } from '@&#8203;mantine/form';

function Demo() {
  const form = useForm({
    mode: 'uncontrolled',
    initialValues: {
      name: '',
      email: '',
    },

    validate: {
      name: isNotEmpty('Name is required'),
      email: isEmail('Invalid email'),
    },
  });

  return (
    <form
      onSubmit={form.onSubmit(
        (values) => console.log(values),
        (errors) => {
          const firstErrorPath = Object.keys(errors)[0];
          form.getInputNode(firstErrorPath)?.focus();
        }
      )}
    >
      <TextInput
        withAsterisk
        label="Your name"
        placeholder="Your name"
        key={form.key('name')}
        {...form.getInputProps('name')}
      />

      <TextInput
        withAsterisk
        label="Your email"
        placeholder="your@email.com"
        key={form.key('email')}
        {...form.getInputProps('email')}
      />

      <Group justify="flex-end" mt="md">
        <Button type="submit">Submit</Button>
      </Group>
    </form>
  );
}
Container queries in SimpleGrid

You can now use container queries
in SimpleGrid component. With container queries, grid columns and spacing
will be adjusted based on the container width, not the viewport width.

Example of using container queries. To see how the grid changes, resize the root element
of the demo with the resize handle located at the bottom right corner of the demo:

import { SimpleGrid } from '@&#8203;mantine/core';

function Demo() {
  return (
    // Wrapper div is added for demonstration purposes only,
    // it is not required in real projects
    <div style={{ resize: 'horizontal', overflow: 'hidden', maxWidth: '100%' }}>
      <SimpleGrid
        type="container"
        cols={{ base: 1, '300px': 2, '500px': 5 }}
        spacing={{ base: 10, '300px': 'xl' }}
      >
        <div>1</div>
        <div>2</div>
        <div>3</div>
        <div>4</div>
        <div>5</div>
      </SimpleGrid>
    </div>
  );
}
Checkbox and Radio indicators

New Checkbox.Indicator and Radio.Indicator
components look exactly the same as Checkbox and Radio components, but they do not
have any semantic meaning, they are just visual representations of checkbox and radio states.

Checkbox.Indicator component:

import { Checkbox, Group } from '@&#8203;mantine/core';

function Demo() {
  return (
    <Group>
      <Checkbox.Indicator />
      <Checkbox.Indicator checked />
      <Checkbox.Indicator indeterminate />
      <Checkbox.Indicator disabled />
      <Checkbox.Indicator disabled checked />
      <Checkbox.Indicator disabled indeterminate />
    </Group>
  );
}

Radio.Indicator component:

import { Group, Radio } from '@&#8203;mantine/core';

function Demo() {
  return (
    <Group>
      <Radio.Indicator />
      <Radio.Indicator checked />
      <Radio.Indicator disabled />
      <Radio.Indicator disabled checked />
    </Group>
  );
}
Checkbox and Radio cards

New Checkbox.Card and Radio.Card
components can be used as replacements for Checkbox and Radio to build custom cards/buttons/etc.
that work as checkboxes and radios. Components are accessible by default and support the same
keyboard interactions as input[type="checkbox"] and input[type="radio"].

Checkbox.Card component:

import { useState } from 'react';
import { Checkbox, Group, Text } from '@&#8203;mantine/core';
import classes from './Demo.module.css';

function Demo() {
  const [checked, setChecked] = useState(false);

  return (
    <Checkbox.Card
      className={classes.root}
      radius="md"
      checked={checked}
      onClick={() => setChecked((c) => !c)}
    >
      <Group wrap="nowrap" align="flex-start">
        <Checkbox.Indicator />
        <div>
          <Text className={classes.label}>@&#8203;mantine/core</Text>
          <Text className={classes.description}>
            Core components library: inputs, buttons, overlays, etc.
          </Text>
        </div>
      </Group>
    </Checkbox.Card>
  );
}

Checkbox.Card component with Checkbox.Group:

import { useState } from 'react';
import { Checkbox, Group, Stack, Text } from '@&#8203;mantine/core';
import classes from './Demo.module.css';

const data = [
  {
    name: '@&#8203;mantine/core',
    description: 'Core components library: inputs, buttons, overlays, etc.',
  },
  { name: '@&#8203;mantine/hooks', description: 'Collection of reusable hooks for React applications.' },
  { name: '@&#8203;mantine/notifications', description: 'Notifications system' },
];

function Demo() {
  const [value, setValue] = useState<string[]>([]);

  const cards = data.map((item) => (
    <Checkbox.Card className={classes.root} radius="md" value={item.name} key={item.name}>
      <Group wrap="nowrap" align="flex-start">
        <Checkbox.Indicator />
        <div>
          <Text className={classes.label}>{item.name}</Text>
          <Text className={classes.description}>{item.description}</Text>
        </div>
      </Group>
    </Checkbox.Card>
  ));

  return (
    <>
      <Checkbox.Group
        value={value}
        onChange={setValue}
        label="Pick packages to install"
        description="Choose all packages that you will need in your application"
      >
        <Stack pt="md" gap="xs">
          {cards}
        </Stack>
      </Checkbox.Group>

      <Text fz="xs" mt="md">
        CurrentValue: {value.join(', ') || '–'}
      </Text>
    </>
  );
}

Radio.Card component:

import { useState } from 'react';
import { Group, Radio, Text } from '@&#8203;mantine/core';
import classes from './Demo.module.css';

function Demo() {
  const [checked, setChecked] = useState(false);

  return (
    <Radio.Card
      className={classes.root}
      radius="md"
      checked={checked}
      onClick={() => setChecked((c) => !c)}
    >
      <Group wrap="nowrap" align="flex-start">
        <Radio.Indicator />
        <div>
          <Text className={classes.label}>@&#8203;mantine/core</Text>
          <Text className={classes.description}>
            Core components library: inputs, buttons, overlays, etc.
          </Text>
        </div>
      </Group>
    </Radio.Card>
  );
}

Radio.Card component with Radio.Group:

import { useState } from 'react';
import { Group, Radio, Stack, Text } from '@&#8203;mantine/core';
import classes from './Demo.module.css';

const data = [
  {
    name: '@&#8203;mantine/core',
    description: 'Core components library: inputs, buttons, overlays, etc.',
  },
  { name: '@&#8203;mantine/hooks', description: 'Collection of reusable hooks for React applications.' },
  { name: '@&#8203;mantine/notifications', description: 'Notifications system' },
];

function Demo() {
  const [value, setValue] = useState<string | null>(null);

  const cards = data.map((item) => (
    <Radio.Card className={classes.root} radius="md" value={item.name} key={item.name}>
      <Group wrap="nowrap" align="flex-start">
        <Radio.Indicator />
        <div>
          <Text className={classes.label}>{item.name}</Text>
          <Text className={classes.description}>{item.description}</Text>
        </div>
      </Group>
    </Radio.Card>
  ));

  return (
    <>
      <Radio.Group
        value={value}
        onChange={setValue}
        label="Pick one package to install"
        description="Choose a package that you will need in your application"
      >
        <Stack pt="md" gap="xs">
          {cards}
        </Stack>
      </Radio.Group>

      <Text fz="xs" mt="md">
        CurrentValue: {value || '–'}
      </Text>
    </>
  );
}
bd style prop

New bd style prop can be used to set border CSS property.
It is available in all components that support style props.

Border width value is automatically converted to rem. For border color you can reference
theme colors similar to other style props:

import { Box } from '@&#8203;mantine/core';

function Demo() {
  return <Box bd="1px solid red.5" />;
}

v7.9.2

Compare Source

What's Changed
  • [@mantine/dates] DateTimePicker: Fix some of timeInputProps not being respected (#​6204)
  • [@mantine/core] NavLink: Add react-router support to display active route (#​6180)
  • [@mantine/core] Fix nonce attribute not being set on <style /> tag generated in color scheme switching script
  • [@mantine/core] Input: Fix incorrect margins when input wrapper order is explicitly set
  • [@mantine/core] Pagination: Fix types definition being incompatible with @​tabler/icons-react 3.x
  • [@mantine/charts] Fix incorrect tooltip position in LineChart, AreaChart and BarChart with vertical orientation
  • [@mantine/core] Rating: Fix readOnly prop now working on touch devices (#​6202)
  • [@mantine/core] TagsInput: Fix existing search value being ignored in onPaste even handler (#​6073)
  • [@mantine/core] TagsInput: Improve clearable prop logic related to dropdown (#​6115)
New Contributors

Full Changelog: mantinedev/mantine@7.9.1...7.9.2

v7.9.1

Compare Source

What's Changed
  • [@mantine/core] Fix theme.scale being ignored in Input, Paper and Table border styles
  • [@mantine/core] Fix virtualColor function requring use client in Next.js
  • [@mantine/core] FloatingIndicator: Fix incorrect resize observer logic (#​6129)
  • [@mantine/core] NumberInput: Fix incorrect allowNegative handling with up/down arrows (#​6170)
  • [@mantine/core] Fix error={true} prop set on Checkbox, Radio and Switch rendering unxpected error element with margin
  • [@mantine/core] SegmentedControl: Fix theme.primaryColor not being respected in the focus ring styles
  • [@mantine/core] CloseButton: Fix incorrect specificity of some selectors
  • [@mantine/core] Fix incorrect aria-label handling in Select, Autocomplete, MultiSelect and TagsInputs components (#​6123)
  • [@mantine/core] Modal: Prevent onClose from being called when modal is not opened ([#​6156](https://togithub.com/m

@renovate renovate bot force-pushed the renovate/all-minor-patch branch 21 times, most recently from 8842d16 to b9e8740 Compare March 13, 2024 22:37
@renovate renovate bot force-pushed the renovate/all-minor-patch branch 9 times, most recently from 72d3c80 to 7445c78 Compare March 18, 2024 14:16
@renovate renovate bot force-pushed the renovate/all-minor-patch branch 12 times, most recently from 7da6c4c to ac4168c Compare May 20, 2024 00:07
@renovate renovate bot force-pushed the renovate/all-minor-patch branch 13 times, most recently from e44f723 to 32534f0 Compare May 27, 2024 19:29
@renovate renovate bot force-pushed the renovate/all-minor-patch branch 3 times, most recently from d1486c2 to 82329f0 Compare May 30, 2024 02:10
@renovate renovate bot force-pushed the renovate/all-minor-patch branch from 82329f0 to adad9c6 Compare May 30, 2024 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants