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

feat: update favicon #5564

Merged
merged 7 commits into from
Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/happy-donuts-accept.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@refinedev/live-previews": patch
---

feat: refine.svg updated.
8 changes: 8 additions & 0 deletions .changeset/smooth-insects-prove.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@refinedev/antd": patch
"@refinedev/chakra-ui": patch
"@refinedev/mantine": patch
"@refinedev/mui": patch
---

feat: [`<ThemedTitleV2 />'s`](https://refine.dev/docs/ui-integrations/material-ui/components/themed-layout/) default icon updated.
Binary file modified examples/access-control-casbin/public/favicon.ico
Binary file not shown.
Binary file modified examples/access-control-cerbos/public/favicon.ico
Binary file not shown.
Binary file modified examples/access-control-permify/public/favicon.ico
Binary file not shown.
Binary file modified examples/app-crm-minimal/public/favicon.ico
Binary file not shown.
Binary file modified examples/app-crm/public/refine_favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/audit-log-provider/src/favicon.ico
Binary file not shown.
Binary file modified examples/auth-antd/public/favicon.ico
Binary file not shown.
Binary file modified examples/auth-auth0/public/favicon.ico
Binary file not shown.
Binary file modified examples/auth-chakra-ui/src/favicon.ico
Binary file not shown.
Binary file modified examples/auth-google-login/public/favicon.ico
Binary file not shown.
Binary file modified examples/auth-headless/src/favicon.ico
Binary file not shown.
Binary file modified examples/auth-keycloak/public/favicon.ico
Binary file not shown.
Binary file modified examples/auth-kinde/public/favicon.ico
Binary file not shown.
Binary file modified examples/auth-mantine/src/favicon.ico
Binary file not shown.
Binary file modified examples/auth-material-ui/public/favicon.ico
Binary file not shown.
Binary file modified examples/auth-otp/public/favicon.ico
Binary file not shown.
Binary file modified examples/base-antd/public/favicon.ico
Binary file not shown.
Binary file modified examples/base-chakra-ui/src/favicon.ico
Binary file not shown.
Binary file modified examples/base-headless/public/favicon.ico
Binary file not shown.
Binary file modified examples/base-mantine/src/favicon.ico
Binary file not shown.
Binary file modified examples/base-material-ui/public/favicon.ico
Binary file not shown.
Binary file modified examples/blog-ecommerce/public/favicon.ico
Binary file not shown.
Binary file modified examples/blog-hackathonize/public/favicon.ico
Binary file not shown.
Binary file modified examples/blog-heroicons-example/public/favicon.ico
Binary file not shown.
Binary file modified examples/blog-invoice-generator/public/favicon.ico
Binary file not shown.
Binary file modified examples/blog-issue-tracker/public/favicon.ico
Binary file not shown.
Binary file modified examples/blog-job-posting/public/favicon.ico
Binary file not shown.
Binary file modified examples/blog-mail-subscription/public/favicon.ico
Binary file not shown.
Binary file modified examples/blog-material-ui-datagrid/public/favicon.ico
Binary file not shown.
Binary file modified examples/blog-material-ui/public/favicon.ico
Binary file not shown.
Binary file modified examples/blog-next-refine-pwa/public/favicon.ico
Binary file not shown.
Binary file modified examples/blog-next-refine-pwa/public/icon-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/blog-next-refine-pwa/public/icon-256x256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/blog-next-refine-pwa/public/icon-384x384.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/blog-next-refine-pwa/public/icon-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/blog-ra-chakra-tutorial/public/favicon.ico
Binary file not shown.
Binary file modified examples/blog-react-aria/public/favicon.ico
Binary file not shown.
Binary file modified examples/blog-react-dnd/public/favicon.ico
Binary file not shown.
Binary file modified examples/blog-react-hook-dynamic-form/public/favicon.ico
Binary file not shown.
Binary file modified examples/blog-react-memoization-memo/public/favicon.ico
Binary file not shown.
Binary file modified examples/blog-react-memoization-memo/public/logo192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/blog-react-memoization-memo/public/logo512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/blog-react-toastify/public/favicon.ico
Binary file not shown.
Binary file modified examples/blog-refeedback/public/favicon.ico
Binary file not shown.
Binary file modified examples/blog-refine-airtable-crud/public/favicon.ico
Binary file not shown.
Binary file modified examples/blog-refine-antd-dynamic-form/public/favicon.ico
Binary file not shown.
Binary file modified examples/blog-refine-daisyui/public/favicon.ico
Binary file not shown.
Binary file modified examples/blog-refine-digital-ocean/public/favicon.ico
Binary file not shown.
Binary file modified examples/blog-refine-filtering/public/favicon.ico
Binary file not shown.
Binary file modified examples/blog-refine-mantine-strapi/public/favicon.ico
Binary file not shown.
Binary file modified examples/blog-refine-markdown/public/favicon.ico
Binary file not shown.
Binary file modified examples/blog-refine-mui/public/favicon.ico
Binary file not shown.
Binary file modified examples/blog-refine-nextui/public/favicon.ico
Binary file not shown.
Binary file modified examples/blog-refine-primereact/public/favicon.ico
Binary file not shown.
Binary file modified examples/blog-refine-react-hook-form/public/favicon.ico
Binary file not shown.
Binary file modified examples/blog-refine-supabase-auth/public/favicon.ico
Binary file not shown.
Binary file modified examples/blog-refine-tremor/public/favicon.ico
Binary file not shown.
Binary file modified examples/blog-refineflix/public/favicon.ico
Binary file not shown.
Binary file modified examples/blog-responsive-navbar/public/favicon.ico
Binary file not shown.
7 changes: 5 additions & 2 deletions examples/blog-sveltekit-crud/src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
<link rel="icon" href="%sveltekit.assets%/favicon.ico" />

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/bare.min.css" />
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/bare.min.css"
/>
<meta name="viewport" content="width=device-width" />
%sveltekit.head%
</head>
Expand Down
Binary file added examples/blog-sveltekit-crud/static/favicon.ico
Binary file not shown.
Binary file removed examples/blog-sveltekit-crud/static/favicon.png
Binary file not shown.
Binary file modified examples/blog-win95/public/favicon.ico
Binary file not shown.
Binary file modified examples/calendar-app/public/favicon.ico
Binary file not shown.
Binary file modified examples/core-use-import/public/favicon.ico
Binary file not shown.
Binary file modified examples/core-use-menu/public/favicon.ico
Binary file not shown.
Binary file modified examples/core-use-modal/public/favicon.ico
Binary file not shown.
Binary file modified examples/core-use-select/public/favicon.ico
Binary file not shown.
Binary file modified examples/customization-footer/public/favicon.ico
Binary file not shown.
Binary file modified examples/customization-login/public/favicon.ico
Binary file not shown.
Binary file modified examples/customization-offlayout-area/public/favicon.ico
Binary file not shown.
Binary file modified examples/customization-rtl/public/favicon.ico
Binary file not shown.
Binary file modified examples/customization-sider/public/favicon.ico
Binary file not shown.
Binary file modified examples/customization-theme-antd/public/favicon.ico
Binary file not shown.
Binary file modified examples/customization-theme-chakra-ui/src/favicon.ico
Binary file not shown.
Binary file modified examples/customization-theme-mantine/src/favicon.ico
Binary file not shown.
Binary file modified examples/customization-theme-material-ui/public/favicon.ico
Binary file not shown.
Binary file modified examples/customization-top-menu-layout/public/favicon.ico
Binary file not shown.
Binary file modified examples/data-provider-airtable/public/favicon.ico
Binary file not shown.
Binary file not shown.
Binary file modified examples/data-provider-appwrite/public/favicon.ico
Binary file not shown.
Binary file modified examples/data-provider-hasura/public/favicon.ico
Binary file not shown.
Binary file modified examples/data-provider-multiple/public/favicon.ico
Binary file not shown.
Binary file modified examples/data-provider-nestjs-query/public/favicon.ico
Binary file not shown.
Binary file modified examples/data-provider-nestjsx-crud/public/favicon.ico
Binary file not shown.
Binary file modified examples/data-provider-nhost/public/favicon.ico
Binary file not shown.
Binary file modified examples/data-provider-sanity/public/favicon.ico
Binary file not shown.
Binary file modified examples/data-provider-strapi-graphql/public/favicon.ico
Binary file not shown.
Binary file modified examples/data-provider-strapi-v4/public/favicon.ico
Binary file not shown.
Binary file modified examples/data-provider-strapi/public/favicon.ico
Binary file not shown.
Binary file modified examples/data-provider-supabase/public/favicon.ico
Binary file not shown.
Binary file modified examples/field-antd-use-checkbox-group/public/favicon.ico
Binary file not shown.
Binary file modified examples/field-antd-use-radio-group/public/favicon.ico
Binary file not shown.
Binary file modified examples/field-antd-use-select-basic/public/favicon.ico
Binary file not shown.
Binary file modified examples/field-antd-use-select-infinite/public/favicon.ico
Binary file not shown.
Binary file modified examples/field-material-ui-use-autocomplete/public/favicon.ico
Binary file not shown.
Binary file modified examples/finefoods-antd/public/favicon.ico
Binary file not shown.
Binary file modified examples/finefoods-client/public/favicon.ico
Binary file not shown.
Binary file modified examples/finefoods-material-ui/public/favicon.ico
Binary file not shown.
Binary file modified examples/form-antd-custom-validation/public/favicon.ico
Binary file not shown.
Binary file modified examples/form-antd-mutation-mode/public/favicon.ico
Binary file not shown.
Binary file modified examples/form-antd-use-drawer-form/public/favicon.ico
Binary file not shown.
Binary file modified examples/form-antd-use-form/public/favicon.ico
Binary file not shown.
Binary file modified examples/form-antd-use-modal-form/public/favicon.ico
Binary file not shown.
Binary file modified examples/form-antd-use-steps-form/public/favicon.ico
Binary file not shown.
Binary file modified examples/form-chakra-ui-mutation-mode/src/favicon.ico
Binary file not shown.
Binary file modified examples/form-chakra-ui-use-drawer-form/src/favicon.ico
Binary file not shown.
Binary file modified examples/form-chakra-ui-use-form/src/favicon.ico
Binary file not shown.
Binary file modified examples/form-chakra-use-modal-form/src/favicon.ico
Binary file not shown.
Binary file modified examples/form-core-use-form/public/favicon.ico
Binary file not shown.
Binary file modified examples/form-mantine-mutation-mode/src/favicon.ico
Binary file not shown.
Binary file modified examples/form-mantine-use-drawer-form/src/favicon.ico
Binary file not shown.
Binary file modified examples/form-mantine-use-form/src/favicon.ico
Binary file not shown.
Binary file modified examples/form-mantine-use-modal-form/src/favicon.ico
Binary file not shown.
Binary file modified examples/form-mantine-use-steps-form/src/favicon.ico
Binary file not shown.
Binary file modified examples/form-material-ui-mutation-mode/public/favicon.ico
Binary file not shown.
Binary file modified examples/form-material-ui-use-drawer-form/public/favicon.ico
Binary file not shown.
Binary file modified examples/form-material-ui-use-form/public/favicon.ico
Binary file not shown.
Binary file modified examples/form-material-ui-use-modal-form/public/favicon.ico
Binary file not shown.
Binary file modified examples/form-material-ui-use-steps-form/public/favicon.ico
Binary file not shown.
Binary file modified examples/form-react-hook-form-use-form/public/favicon.ico
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified examples/form-save-and-continue/public/favicon.ico
Binary file not shown.
Binary file modified examples/i18n-react/public/favicon.ico
Binary file not shown.
Binary file modified examples/import-export-antd/public/favicon.ico
Binary file not shown.
Binary file modified examples/import-export-mantine/src/favicon.ico
Binary file not shown.
Binary file modified examples/import-export-material-ui/public/favicon.ico
Binary file not shown.
Binary file modified examples/inferencer-antd/public/favicon.ico
Binary file not shown.
Binary file modified examples/inferencer-chakra-ui/public/favicon.ico
Binary file not shown.
Binary file modified examples/inferencer-graphql-hasura/public/favicon.ico
Binary file not shown.
Binary file modified examples/inferencer-headless/public/favicon.ico
Binary file not shown.
Binary file modified examples/inferencer-mantine/public/favicon.ico
Binary file not shown.
Binary file modified examples/inferencer-material-ui/public/favicon.ico
Binary file not shown.
Binary file modified examples/input-custom/public/favicon.ico
Binary file not shown.
Binary file modified examples/input-date-picker/public/favicon.ico
Binary file not shown.
Binary file modified examples/live-provider-ably/public/favicon.ico
Binary file not shown.
Binary file modified examples/loading-overtime/public/favicon.ico
Binary file not shown.
Binary file modified examples/mern-dashboard-client/public/favicon.ico
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified examples/multi-level-menu/public/favicon.ico
Binary file not shown.
Binary file modified examples/multi-tenancy-appwrite/public/favicon.ico
Binary file not shown.
Binary file modified examples/multi-tenancy-strapi/public/favicon.ico
Binary file not shown.
Binary file modified examples/new-routing-example/public/favicon.ico
Binary file not shown.
Binary file modified examples/pixels-admin/public/favicon.ico
Binary file not shown.
Binary file modified examples/pixels/public/favicon.ico
Binary file not shown.
Binary file modified examples/refine-week-invoice-generator/public/favicon.ico
Binary file not shown.
Binary file modified examples/search/public/favicon.ico
Binary file not shown.
Binary file modified examples/server-side-form-validation-antd/public/favicon.ico
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified examples/store/public/favicon.ico
Binary file not shown.
Binary file modified examples/table-antd-advanced/public/favicon.ico
Binary file not shown.
Binary file modified examples/table-antd-table-filter/public/favicon.ico
Binary file not shown.
Binary file modified examples/table-antd-use-delete-many/public/favicon.ico
Binary file not shown.
Binary file modified examples/table-antd-use-editable-table/public/favicon.ico
Binary file not shown.
Binary file modified examples/table-antd-use-table/public/favicon.ico
Binary file not shown.
Binary file modified examples/table-antd-use-update-many/public/favicon.ico
Binary file not shown.
Binary file modified examples/table-chakra-ui-advanced/src/favicon.ico
Binary file not shown.
Binary file modified examples/table-chakra-ui-basic/src/favicon.ico
Binary file not shown.
Binary file modified examples/table-handson/src/favicon.ico
Binary file not shown.
Binary file modified examples/table-mantine-advanced/src/favicon.ico
Binary file not shown.
Binary file modified examples/table-mantine-basic/src/favicon.ico
Binary file not shown.
Binary file modified examples/table-material-ui-advanced/public/favicon.ico
Binary file not shown.
Binary file not shown.
Binary file modified examples/table-material-ui-data-grid-pro/public/favicon.ico
Binary file not shown.
Binary file modified examples/table-material-ui-table-filter/public/favicon.ico
Binary file not shown.
Binary file modified examples/table-material-ui-use-data-grid/public/favicon.ico
Binary file not shown.
Binary file modified examples/table-material-ui-use-delete-many/public/favicon.ico
Binary file not shown.
Binary file modified examples/table-material-ui-use-update-many/public/favicon.ico
Binary file not shown.
Binary file modified examples/table-react-table-advanced/public/favicon.ico
Binary file not shown.
Binary file modified examples/table-react-table-basic/public/favicon.ico
Binary file not shown.
Binary file modified examples/template-antd/public/favicon.ico
Binary file not shown.
Binary file modified examples/template-chakra-ui/public/favicon.ico
Binary file not shown.
Binary file modified examples/template-headless/public/favicon.ico
Binary file not shown.
Binary file modified examples/template-mantine/public/favicon.ico
Binary file not shown.
Binary file modified examples/template-material-ui/public/favicon.ico
Binary file not shown.
Binary file modified examples/theme-antd-demo/public/favicon.ico
Binary file not shown.
Binary file modified examples/theme-chakra-ui-demo/src/favicon.ico
Binary file not shown.
Binary file modified examples/theme-mantine-demo/src/favicon.ico
Binary file not shown.
Binary file modified examples/theme-material-ui-demo/public/favicon.ico
Binary file not shown.
Binary file modified examples/tutorial-antd/public/favicon.ico
Binary file not shown.
Binary file modified examples/tutorial-chakra-ui/public/favicon.ico
Binary file not shown.
Binary file modified examples/tutorial-headless/public/favicon.ico
Binary file not shown.
Binary file modified examples/tutorial-mantine/public/favicon.ico
Binary file not shown.
Binary file modified examples/tutorial-material-ui/public/favicon.ico
Binary file not shown.
Binary file modified examples/upload-antd-base64/public/favicon.ico
Binary file not shown.
Binary file modified examples/upload-antd-multipart/public/favicon.ico
Binary file not shown.
Binary file modified examples/upload-chakra-ui-basic64/src/favicon.ico
Binary file not shown.
Binary file modified examples/upload-chakra-ui-multipart/src/favicon.ico
Binary file not shown.
Binary file modified examples/upload-mantine-base64/src/favicon.ico
Binary file not shown.
Binary file modified examples/upload-mantine-multipart/src/favicon.ico
Binary file not shown.
Binary file modified examples/upload-material-ui-base64/public/favicon.ico
Binary file not shown.
Binary file modified examples/upload-material-ui-multipart/public/favicon.ico
Binary file not shown.
Binary file modified examples/use-infinite-list/public/favicon.ico
Binary file not shown.
Binary file modified examples/use-modal-antd/public/favicon.ico
Binary file not shown.
Binary file modified examples/use-simple-list-antd/public/favicon.ico
Binary file not shown.
Binary file modified examples/with-custom-pages/public/favicon.ico
Binary file not shown.
Binary file modified examples/with-javascript/public/favicon.ico
Binary file not shown.
Binary file modified examples/with-meta-properties/src/favicon.ico
Binary file not shown.
Binary file added examples/with-nextjs-appdir/public/favicon.ico
Binary file not shown.
Binary file added examples/with-nextjs-auth/public/favicon.ico
Binary file not shown.
Binary file not shown.
Binary file added examples/with-nextjs/public/favicon.ico
Binary file not shown.
Binary file modified examples/with-persist-query/public/favicon.ico
Binary file not shown.
Binary file modified examples/with-react-toastify/public/favicon.ico
Binary file not shown.
Binary file modified examples/with-remix-antd/public/favicon.ico
Binary file not shown.
Binary file modified examples/with-remix-auth/public/favicon.ico
Binary file not shown.
Binary file modified examples/with-remix-headless/public/favicon.ico
Binary file not shown.
Binary file modified examples/with-remix-material-ui/public/favicon.ico
Binary file not shown.
Binary file modified examples/with-storybook-antd/public/favicon.ico
Binary file not shown.
Binary file modified examples/with-storybook-material-ui/public/favicon.ico
Binary file not shown.
Binary file modified examples/with-web3/public/favicon.ico
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { ThemedTitle } from ".";
describe("Themed Title", () => {
test("should render default text", () => {
const { getByText } = render(<ThemedTitle collapsed={false} />);
expect(getByText("refine Project")).toBeInTheDocument();
expect(getByText("Refine Project")).toBeInTheDocument();
});

test("should render custom text", () => {
Expand All @@ -32,6 +32,6 @@ describe("Themed Title", () => {

test("should not render text when collapsed true", () => {
const { queryByText } = render(<ThemedTitle collapsed={true} />);
expect(queryByText("refine Project")).not.toBeInTheDocument();
expect(queryByText("Refine Project")).not.toBeInTheDocument();
});
});
14 changes: 7 additions & 7 deletions packages/antd/src/components/themedLayout/title/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,25 @@ import { RefineLayoutThemedTitleProps } from "../types";

const { useToken } = theme;

const defaultText = "refine Project";
const defaultText = "Refine Project";

const defaultIcon = (
<svg
width="24"
height="24"
width={24}
height={24}
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
data-testid="refine-logo"
>
<path
d="M12 9C13.6569 9 15 7.65685 15 6C15 4.34315 13.6569 3 12 3C10.3431 3 9 4.34315 9 6C9 7.65685 10.3431 9 12 9Z"
fillRule="evenodd"
clipRule="evenodd"
d="M13.7889 0.422291C12.6627 -0.140764 11.3373 -0.140764 10.2111 0.422291L2.21115 4.42229C0.85601 5.09986 0 6.48491 0 8V16C0 17.5151 0.85601 18.9001 2.21115 19.5777L10.2111 23.5777C11.3373 24.1408 12.6627 24.1408 13.7889 23.5777L21.7889 19.5777C23.144 18.9001 24 17.5151 24 16V8C24 6.48491 23.144 5.09986 21.7889 4.42229L13.7889 0.422291ZM8 8C8 5.79086 9.79086 4 12 4C14.2091 4 16 5.79086 16 8V16C16 18.2091 14.2091 20 12 20C9.79086 20 8 18.2091 8 16V8Z"
fill="currentColor"
/>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12ZM8 6C8 3.79086 9.79086 2 12 2C14.2091 2 16 3.79086 16 6V18C16 20.2091 14.2091 22 12 22C9.79086 22 8 20.2091 8 18V6Z"
d="M14 8C14 9.10457 13.1046 10 12 10C10.8954 10 10 9.10457 10 8C10 6.89543 10.8954 6 12 6C13.1046 6 14 6.89543 14 8Z"
fill="currentColor"
/>
</svg>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { ThemedTitleV2 } from ".";
describe("Themed Title", () => {
test("should render default text", () => {
const { getByText } = render(<ThemedTitleV2 collapsed={false} />);
expect(getByText("refine Project")).toBeInTheDocument();
expect(getByText("Refine Project")).toBeInTheDocument();
});

test("should render custom text", () => {
Expand All @@ -32,6 +32,6 @@ describe("Themed Title", () => {

test("should not render text when collapsed true", () => {
const { queryByText } = render(<ThemedTitleV2 collapsed={true} />);
expect(queryByText("refine Project")).not.toBeInTheDocument();
expect(queryByText("Refine Project")).not.toBeInTheDocument();
});
});
14 changes: 7 additions & 7 deletions packages/antd/src/components/themedLayoutV2/title/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,25 @@ import { RefineLayoutThemedTitleProps } from "../types";

const { useToken } = theme;

const defaultText = "refine Project";
const defaultText = "Refine Project";

const defaultIcon = (
<svg
width="24"
height="24"
width={24}
height={24}
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
data-testid="refine-logo"
>
<path
d="M12 9C13.6569 9 15 7.65685 15 6C15 4.34315 13.6569 3 12 3C10.3431 3 9 4.34315 9 6C9 7.65685 10.3431 9 12 9Z"
fillRule="evenodd"
clipRule="evenodd"
d="M13.7889 0.422291C12.6627 -0.140764 11.3373 -0.140764 10.2111 0.422291L2.21115 4.42229C0.85601 5.09986 0 6.48491 0 8V16C0 17.5151 0.85601 18.9001 2.21115 19.5777L10.2111 23.5777C11.3373 24.1408 12.6627 24.1408 13.7889 23.5777L21.7889 19.5777C23.144 18.9001 24 17.5151 24 16V8C24 6.48491 23.144 5.09986 21.7889 4.42229L13.7889 0.422291ZM8 8C8 5.79086 9.79086 4 12 4C14.2091 4 16 5.79086 16 8V16C16 18.2091 14.2091 20 12 20C9.79086 20 8 18.2091 8 16V8Z"
fill="currentColor"
/>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12ZM8 6C8 3.79086 9.79086 2 12 2C14.2091 2 16 3.79086 16 6V18C16 20.2091 14.2091 22 12 22C9.79086 22 8 20.2091 8 18V6Z"
d="M14 8C14 9.10457 13.1046 10 12 10C10.8954 10 10 9.10457 10 8C10 6.89543 10.8954 6 12 6C13.1046 6 14 6.89543 14 8Z"
fill="currentColor"
/>
</svg>
Expand Down
14 changes: 7 additions & 7 deletions packages/chakra-ui/src/components/themedLayout/title/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@ import { useRouterContext, useRouterType, useLink } from "@refinedev/core";
import { Link as ChakraLink, Icon, HStack, Heading } from "@chakra-ui/react";
import { RefineLayoutThemedTitleProps } from "../types";

const defaultText = "refine Project";
const defaultText = "Refine Project";

const defaultIcon = (
<svg
width="24"
height="24"
width={24}
height={24}
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
data-testid="refine-logo"
>
<path
d="M12 9C13.6569 9 15 7.65685 15 6C15 4.34315 13.6569 3 12 3C10.3431 3 9 4.34315 9 6C9 7.65685 10.3431 9 12 9Z"
fillRule="evenodd"
clipRule="evenodd"
d="M13.7889 0.422291C12.6627 -0.140764 11.3373 -0.140764 10.2111 0.422291L2.21115 4.42229C0.85601 5.09986 0 6.48491 0 8V16C0 17.5151 0.85601 18.9001 2.21115 19.5777L10.2111 23.5777C11.3373 24.1408 12.6627 24.1408 13.7889 23.5777L21.7889 19.5777C23.144 18.9001 24 17.5151 24 16V8C24 6.48491 23.144 5.09986 21.7889 4.42229L13.7889 0.422291ZM8 8C8 5.79086 9.79086 4 12 4C14.2091 4 16 5.79086 16 8V16C16 18.2091 14.2091 20 12 20C9.79086 20 8 18.2091 8 16V8Z"
fill="currentColor"
/>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12ZM8 6C8 3.79086 9.79086 2 12 2C14.2091 2 16 3.79086 16 6V18C16 20.2091 14.2091 22 12 22C9.79086 22 8 20.2091 8 18V6Z"
d="M14 8C14 9.10457 13.1046 10 12 10C10.8954 10 10 9.10457 10 8C10 6.89543 10.8954 6 12 6C13.1046 6 14 6.89543 14 8Z"
fill="currentColor"
/>
</svg>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@ import { useRouterContext, useRouterType, useLink } from "@refinedev/core";
import { Link as ChakraLink, Icon, HStack, Heading } from "@chakra-ui/react";
import { RefineLayoutThemedTitleProps } from "../types";

const defaultText = "refine Project";
const defaultText = "Refine Project";

const defaultIcon = (
<svg
width="24"
height="24"
width={24}
height={24}
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
data-testid="refine-logo"
>
<path
d="M12 9C13.6569 9 15 7.65685 15 6C15 4.34315 13.6569 3 12 3C10.3431 3 9 4.34315 9 6C9 7.65685 10.3431 9 12 9Z"
fillRule="evenodd"
clipRule="evenodd"
d="M13.7889 0.422291C12.6627 -0.140764 11.3373 -0.140764 10.2111 0.422291L2.21115 4.42229C0.85601 5.09986 0 6.48491 0 8V16C0 17.5151 0.85601 18.9001 2.21115 19.5777L10.2111 23.5777C11.3373 24.1408 12.6627 24.1408 13.7889 23.5777L21.7889 19.5777C23.144 18.9001 24 17.5151 24 16V8C24 6.48491 23.144 5.09986 21.7889 4.42229L13.7889 0.422291ZM8 8C8 5.79086 9.79086 4 12 4C14.2091 4 16 5.79086 16 8V16C16 18.2091 14.2091 20 12 20C9.79086 20 8 18.2091 8 16V8Z"
fill="currentColor"
/>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12ZM8 6C8 3.79086 9.79086 2 12 2C14.2091 2 16 3.79086 16 6V18C16 20.2091 14.2091 22 12 22C9.79086 22 8 20.2091 8 18V6Z"
d="M14 8C14 9.10457 13.1046 10 12 10C10.8954 10 10 9.10457 10 8C10 6.89543 10.8954 6 12 6C13.1046 6 14 6.89543 14 8Z"
fill="currentColor"
/>
</svg>
Expand Down
2 changes: 1 addition & 1 deletion packages/live-previews/public/assets/icons/refine.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 7 additions & 7 deletions packages/mantine/src/components/themedLayout/title/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@ import { useRouterContext, useRouterType, useLink } from "@refinedev/core";
import { Center, Text, useMantineTheme } from "@mantine/core";
import { RefineLayoutThemedTitleProps } from "../types";

const defaultText = "refine Project";
const defaultText = "Refine Project";

const defaultIcon = (
<svg
width="24"
height="24"
width={24}
height={24}
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
data-testid="refine-logo"
>
<path
d="M12 9C13.6569 9 15 7.65685 15 6C15 4.34315 13.6569 3 12 3C10.3431 3 9 4.34315 9 6C9 7.65685 10.3431 9 12 9Z"
fillRule="evenodd"
clipRule="evenodd"
d="M13.7889 0.422291C12.6627 -0.140764 11.3373 -0.140764 10.2111 0.422291L2.21115 4.42229C0.85601 5.09986 0 6.48491 0 8V16C0 17.5151 0.85601 18.9001 2.21115 19.5777L10.2111 23.5777C11.3373 24.1408 12.6627 24.1408 13.7889 23.5777L21.7889 19.5777C23.144 18.9001 24 17.5151 24 16V8C24 6.48491 23.144 5.09986 21.7889 4.42229L13.7889 0.422291ZM8 8C8 5.79086 9.79086 4 12 4C14.2091 4 16 5.79086 16 8V16C16 18.2091 14.2091 20 12 20C9.79086 20 8 18.2091 8 16V8Z"
fill="currentColor"
/>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12ZM8 6C8 3.79086 9.79086 2 12 2C14.2091 2 16 3.79086 16 6V18C16 20.2091 14.2091 22 12 22C9.79086 22 8 20.2091 8 18V6Z"
d="M14 8C14 9.10457 13.1046 10 12 10C10.8954 10 10 9.10457 10 8C10 6.89543 10.8954 6 12 6C13.1046 6 14 6.89543 14 8Z"
fill="currentColor"
/>
</svg>
Expand Down
14 changes: 7 additions & 7 deletions packages/mantine/src/components/themedLayoutV2/title/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@ import { useRouterContext, useRouterType, useLink } from "@refinedev/core";
import { Center, Text, useMantineTheme } from "@mantine/core";
import { RefineLayoutThemedTitleProps } from "../types";

const defaultText = "refine Project";
const defaultText = "Refine Project";

const defaultIcon = (
<svg
width="24"
height="24"
width={24}
height={24}
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
data-testid="refine-logo"
>
<path
d="M12 9C13.6569 9 15 7.65685 15 6C15 4.34315 13.6569 3 12 3C10.3431 3 9 4.34315 9 6C9 7.65685 10.3431 9 12 9Z"
fillRule="evenodd"
clipRule="evenodd"
d="M13.7889 0.422291C12.6627 -0.140764 11.3373 -0.140764 10.2111 0.422291L2.21115 4.42229C0.85601 5.09986 0 6.48491 0 8V16C0 17.5151 0.85601 18.9001 2.21115 19.5777L10.2111 23.5777C11.3373 24.1408 12.6627 24.1408 13.7889 23.5777L21.7889 19.5777C23.144 18.9001 24 17.5151 24 16V8C24 6.48491 23.144 5.09986 21.7889 4.42229L13.7889 0.422291ZM8 8C8 5.79086 9.79086 4 12 4C14.2091 4 16 5.79086 16 8V16C16 18.2091 14.2091 20 12 20C9.79086 20 8 18.2091 8 16V8Z"
fill="currentColor"
/>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12ZM8 6C8 3.79086 9.79086 2 12 2C14.2091 2 16 3.79086 16 6V18C16 20.2091 14.2091 22 12 22C9.79086 22 8 20.2091 8 18V6Z"
d="M14 8C14 9.10457 13.1046 10 12 10C10.8954 10 10 9.10457 10 8C10 6.89543 10.8954 6 12 6C13.1046 6 14 6.89543 14 8Z"
fill="currentColor"
/>
</svg>
Expand Down
14 changes: 7 additions & 7 deletions packages/mui/src/components/themedLayout/title/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,25 @@ import Typography from "@mui/material/Typography";

import { RefineLayoutThemedTitleProps } from "../types";

const defaultText = "refine Project";
const defaultText = "Refine Project";

const defaultIcon = (
<svg
width="24"
height="24"
width={24}
height={24}
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
data-testid="refine-logo"
>
<path
d="M12 9C13.6569 9 15 7.65685 15 6C15 4.34315 13.6569 3 12 3C10.3431 3 9 4.34315 9 6C9 7.65685 10.3431 9 12 9Z"
fillRule="evenodd"
clipRule="evenodd"
d="M13.7889 0.422291C12.6627 -0.140764 11.3373 -0.140764 10.2111 0.422291L2.21115 4.42229C0.85601 5.09986 0 6.48491 0 8V16C0 17.5151 0.85601 18.9001 2.21115 19.5777L10.2111 23.5777C11.3373 24.1408 12.6627 24.1408 13.7889 23.5777L21.7889 19.5777C23.144 18.9001 24 17.5151 24 16V8C24 6.48491 23.144 5.09986 21.7889 4.42229L13.7889 0.422291ZM8 8C8 5.79086 9.79086 4 12 4C14.2091 4 16 5.79086 16 8V16C16 18.2091 14.2091 20 12 20C9.79086 20 8 18.2091 8 16V8Z"
fill="currentColor"
/>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12ZM8 6C8 3.79086 9.79086 2 12 2C14.2091 2 16 3.79086 16 6V18C16 20.2091 14.2091 22 12 22C9.79086 22 8 20.2091 8 18V6Z"
d="M14 8C14 9.10457 13.1046 10 12 10C10.8954 10 10 9.10457 10 8C10 6.89543 10.8954 6 12 6C13.1046 6 14 6.89543 14 8Z"
fill="currentColor"
/>
</svg>
Expand Down
14 changes: 7 additions & 7 deletions packages/mui/src/components/themedLayoutV2/title/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,25 @@ import Typography from "@mui/material/Typography";

import { RefineLayoutThemedTitleProps } from "../types";

const defaultText = "refine Project";
const defaultText = "Refine Project";

const defaultIcon = (
<svg
width="24"
height="24"
width={24}
height={24}
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
data-testid="refine-logo"
>
<path
d="M12 9C13.6569 9 15 7.65685 15 6C15 4.34315 13.6569 3 12 3C10.3431 3 9 4.34315 9 6C9 7.65685 10.3431 9 12 9Z"
fillRule="evenodd"
clipRule="evenodd"
d="M13.7889 0.422291C12.6627 -0.140764 11.3373 -0.140764 10.2111 0.422291L2.21115 4.42229C0.85601 5.09986 0 6.48491 0 8V16C0 17.5151 0.85601 18.9001 2.21115 19.5777L10.2111 23.5777C11.3373 24.1408 12.6627 24.1408 13.7889 23.5777L21.7889 19.5777C23.144 18.9001 24 17.5151 24 16V8C24 6.48491 23.144 5.09986 21.7889 4.42229L13.7889 0.422291ZM8 8C8 5.79086 9.79086 4 12 4C14.2091 4 16 5.79086 16 8V16C16 18.2091 14.2091 20 12 20C9.79086 20 8 18.2091 8 16V8Z"
fill="currentColor"
/>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12ZM8 6C8 3.79086 9.79086 2 12 2C14.2091 2 16 3.79086 16 6V18C16 20.2091 14.2091 22 12 22C9.79086 22 8 20.2091 8 18V6Z"
d="M14 8C14 9.10457 13.1046 10 12 10C10.8954 10 10 9.10457 10 8C10 6.89543 10.8954 6 12 6C13.1046 6 14 6.89543 14 8Z"
fill="currentColor"
/>
</svg>
Expand Down
Loading