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

Bump @mantine/hooks from 7.0.0 to 7.1.0 #419

Merged
merged 1 commit into from
Oct 1, 2023

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 1, 2023

Bumps @mantine/hooks from 7.0.0 to 7.1.0.

Release notes

Sourced from @​mantine/hooks's releases.

7.1.0 ⭐

CSS layers

Starting from 7.1.0 it is possible to import all @mantine/* packages styles with rules defined in mantine CSS layer. CSS rules within a layer are grouped together and applied before rules without a layer. This means that even if you do not have control over styles import order, you can still override Mantine styles with regular styles.

// If your styles are not wrapped in @layer directive,
// they will be applied after Mantine styles.
// Import order does not affect styles in this case
import classes from './Demo.module.css';
import '@mantine/core/styles.layer.css';

You can import styles within a layer by importing @mantine/*/styles.layer.css files. Note that these files are a full replacement for @mantine/*/styles.css files – you should not import both of them.

import '@mantine/core/styles.layer.css';
import '@mantine/dates/styles.layer.css';
// ... other styles

CSS layers are also useful if you want to combine Mantine components with other libraries which also provide styles. You can use @layer directive to control the order of styles:

@layer base, mantine, components;

In this example, Mantine styles will take precedence over other library base styles, but other library components styles will take precedence over Mantine component styles.

As of September 2023, CSS layers are supported in all modern browsers and have 90% browser support.

renderRoot prop

All polymorphic components now support renderRoot prop, which is an alternative to component prop. renderRoot prop allows changing the root element to any other component or HTML tag with a callback function. It can be used in cases when component prop is not flexible enough:

  • Target component props are incompatible with Mantine component. For example, Button component expects className to be a string, but react-router-dom NavLink expects className to be a function.
  • Target component is a generic – it either accepts type as a parameter or its type changes depending

... (truncated)

Commits
  • 7dc4a72 [release] Version: 7.1.0
  • a9b51e4 [release] Version: 7.0.2
  • d0a8feb [release] Release 7.0.1
  • e1453a3 [release] Version: 7.0.1-alpha.1
  • 6bfa8ec [refactor] Fix prettier error
  • ec74da6 [release] Version: 7.0.1-alpha.0
  • db6f0e2 [core] Fix entry points of ESM bundles (#4792)
  • 2174e54 [refactor] Wrap useDebouncedState in useCallback (#4569)
  • 9091bf8 [@​mantine/hooks] use-local-storage: Fix hook throwing error if local storage ...
  • 65a0e5b [refactor] Cleanup hooks types names
  • See full diff in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/mantine/hooks-7.1.0 branch 2 times, most recently from 24cbeca to 243d060 Compare October 1, 2023 12:34
@github-actions github-actions bot enabled auto-merge (squash) October 1, 2023 12:35
Bumps [@mantine/hooks](https://github.com/mantinedev/mantine/tree/HEAD/src/mantine-hooks) from 7.0.0 to 7.1.0.
- [Release notes](https://github.com/mantinedev/mantine/releases)
- [Changelog](https://github.com/mantinedev/mantine/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mantinedev/mantine/commits/7.1.0/src/mantine-hooks)

---
updated-dependencies:
- dependency-name: "@mantine/hooks"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/mantine/hooks-7.1.0 branch from 243d060 to 0876ad5 Compare October 1, 2023 12:38
@github-actions
Copy link

github-actions bot commented Oct 1, 2023

Coverage Report for packages/schema

Status Category Percentage Covered / Total
🔵 Lines 72.44% 1036 / 1430
🔵 Statements 72.44% 1036 / 1430
🔵 Functions 51.78% 29 / 56
🔵 Branches 86.72% 98 / 113
File CoverageNo changed files found.
Generated in workflow #600

@github-actions
Copy link

github-actions bot commented Oct 1, 2023

Coverage Report for app

Status Category Percentage Covered / Total
🔵 Lines 93.44% 57 / 61
🔵 Statements 93.44% 57 / 61
🔵 Functions 100% 3 / 3
🔵 Branches 66.66% 4 / 6
File CoverageNo changed files found.
Generated in workflow #600

@github-actions
Copy link

github-actions bot commented Oct 1, 2023

Coverage Report for packages/database

Status Category Percentage Covered / Total
🔵 Lines 93.8% 4237 / 4517
🔵 Statements 93.8% 4237 / 4517
🔵 Functions 91.66% 143 / 156
🔵 Branches 89.23% 348 / 390
File CoverageNo changed files found.
Generated in workflow #600

@github-actions github-actions bot merged commit 2d42a20 into main Oct 1, 2023
6 checks passed
@github-actions github-actions bot deleted the dependabot/npm_and_yarn/mantine/hooks-7.1.0 branch October 1, 2023 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants