From 5b708203c8002b8076235bdafa6b89b1b26ea5f9 Mon Sep 17 00:00:00 2001 From: siriwatknp Date: Sun, 10 Oct 2021 12:51:27 +0700 Subject: [PATCH 1/2] Add tooltip to pricing icon --- docs/src/components/icon/IconImage.tsx | 10 +- docs/src/components/pricing/PricingTable.tsx | 270 ++++++++++--------- 2 files changed, 146 insertions(+), 134 deletions(-) diff --git a/docs/src/components/icon/IconImage.tsx b/docs/src/components/icon/IconImage.tsx index 9268a10a624e7d..f7a46287d6cb52 100644 --- a/docs/src/components/icon/IconImage.tsx +++ b/docs/src/components/icon/IconImage.tsx @@ -1,6 +1,7 @@ import * as React from 'react'; import { useTheme, styled, Theme } from '@mui/material/styles'; import { SxProps } from '@mui/system'; +import Tooltip from '@mui/material/Tooltip'; export type IconImageProps = { name: @@ -26,11 +27,12 @@ export type IconImageProps = { | 'deloitte' | 'volvo'; sx?: SxProps; + title?: string; } & JSX.IntrinsicElements['img']; const Img = styled('img')({ display: 'inline-block', verticalAlign: 'bottom' }); -export default function IconImage({ name, ...props }: IconImageProps) { +export default function IconImage({ name, title, ...props }: IconImageProps) { const theme = useTheme(); let width = ''; let height = ''; @@ -68,7 +70,7 @@ export default function IconImage({ name, ...props }: IconImageProps) { ) { category = 'companies/'; } - return ( + const element = ( ); + if (!title) { + return element; + } + return {element}; } diff --git a/docs/src/components/pricing/PricingTable.tsx b/docs/src/components/pricing/PricingTable.tsx index 6a58b4ebe71334..198ef699088f69 100644 --- a/docs/src/components/pricing/PricingTable.tsx +++ b/docs/src/components/pricing/PricingTable.tsx @@ -528,158 +528,164 @@ const rowHeaders: Record = { const communityData: Record = { // Core - '@mui/core': , - '@mui/material': , - '@mui/system': , + '@mui/core': , + '@mui/material': , + '@mui/system': , // Advanced - 'data-grid/column-groups': , - 'data-grid/column-spanning': , - 'data-grid/column-resizing': , - 'data-grid/column-reorder': , - 'data-grid/column-pinning': , - 'data-grid/row-sorting': , - 'data-grid/row-height': , - 'data-grid/row-spanning': , - 'data-grid/row-reordering': , - 'data-grid/row-selection': , - 'data-grid/row-multiselection': , - 'data-grid/row-rangeselection': , - 'data-grid/filter-quick': , - 'data-grid/filter-column': , - 'data-grid/filter-multicolumn': , - 'data-grid/pagination': , - 'data-grid/pagination-large': , - 'data-grid/edit-row': , - 'data-grid/edit-cell': , - 'data-grid/file-csv': , - 'data-grid/file-print': , - 'data-grid/file-clipboard': , - 'data-grid/file-excel': , - 'data-grid/customizable-components': , - 'data-grid/virtualize-column': , - 'data-grid/virtualize-row': , - 'data-grid/tree-data': , - 'data-grid/master-detail': , - 'data-grid/grouping': , - 'data-grid/aggregation': , - 'data-grid/pivoting': , - 'data-grid/accessibility': , - 'data-grid/keyboard-nav': , - 'data-grid/localization': , - 'data-grid-pro': , - 'date-range-picker': , + 'data-grid/column-groups': , + 'data-grid/column-spanning': , + 'data-grid/column-resizing': , + 'data-grid/column-reorder': , + 'data-grid/column-pinning': , + 'data-grid/row-sorting': , + 'data-grid/row-height': , + 'data-grid/row-spanning': , + 'data-grid/row-reordering': , + 'data-grid/row-selection': , + 'data-grid/row-multiselection': , + 'data-grid/row-rangeselection': , + 'data-grid/filter-quick': , + 'data-grid/filter-column': , + 'data-grid/filter-multicolumn': , + 'data-grid/pagination': , + 'data-grid/pagination-large': , + 'data-grid/edit-row': , + 'data-grid/edit-cell': , + 'data-grid/file-csv': , + 'data-grid/file-print': , + 'data-grid/file-clipboard': , + 'data-grid/file-excel': , + 'data-grid/customizable-components': , + 'data-grid/virtualize-column': , + 'data-grid/virtualize-row': , + 'data-grid/tree-data': , + 'data-grid/master-detail': , + 'data-grid/grouping': , + 'data-grid/aggregation': , + 'data-grid/pivoting': , + 'data-grid/accessibility': , + 'data-grid/keyboard-nav': , + 'data-grid/localization': , + 'data-grid-pro': , + 'date-range-picker': , // Support - community: , - 'bugs/features': , - 'tech-advisory': , - 'support-duration': , - 'response-time': , - 'pre-screening': , - 'issue-escalation': , + community: , + 'bugs/features': , + 'tech-advisory': , + 'support-duration': , + 'response-time': , + 'pre-screening': , + 'issue-escalation': , }; const proData: Record = { // Core - '@mui/core': , - '@mui/material': , - '@mui/system': , + '@mui/core': , + '@mui/material': , + '@mui/system': , // Advanced - 'data-grid/column-groups': , - 'data-grid/column-spanning': , - 'data-grid/column-resizing': , - 'data-grid/column-reorder': , - 'data-grid/column-pinning': , - 'data-grid/row-sorting': , - 'data-grid/row-height': , - 'data-grid/row-spanning': , - 'data-grid/row-reordering': , - 'data-grid/row-selection': , - 'data-grid/row-multiselection': , - 'data-grid/row-rangeselection': , - 'data-grid/filter-quick': , - 'data-grid/filter-column': , - 'data-grid/filter-multicolumn': , - 'data-grid/pagination': , - 'data-grid/pagination-large': , - 'data-grid/edit-row': , - 'data-grid/edit-cell': , - 'data-grid/file-csv': , - 'data-grid/file-print': , - 'data-grid/file-clipboard': , - 'data-grid/file-excel': , - 'data-grid/customizable-components': , - 'data-grid/virtualize-column': , - 'data-grid/virtualize-row': , - 'data-grid/tree-data': , - 'data-grid/master-detail': , - 'data-grid/grouping': , - 'data-grid/aggregation': , - 'data-grid/pivoting': , - 'data-grid/accessibility': , - 'data-grid/keyboard-nav': , - 'data-grid/localization': , + 'data-grid/column-groups': , + 'data-grid/column-spanning': , + 'data-grid/column-resizing': , + 'data-grid/column-reorder': , + 'data-grid/column-pinning': , + 'data-grid/row-sorting': , + 'data-grid/row-height': , + 'data-grid/row-spanning': , + 'data-grid/row-reordering': , + 'data-grid/row-selection': , + 'data-grid/row-multiselection': , + 'data-grid/row-rangeselection': , + 'data-grid/filter-quick': , + 'data-grid/filter-column': , + 'data-grid/filter-multicolumn': , + 'data-grid/pagination': , + 'data-grid/pagination-large': , + 'data-grid/edit-row': , + 'data-grid/edit-cell': , + 'data-grid/file-csv': , + 'data-grid/file-print': , + 'data-grid/file-clipboard': , + 'data-grid/file-excel': , + 'data-grid/customizable-components': , + 'data-grid/virtualize-column': , + 'data-grid/virtualize-row': , + 'data-grid/tree-data': , + 'data-grid/master-detail': , + 'data-grid/grouping': , + 'data-grid/aggregation': , + 'data-grid/pivoting': , + 'data-grid/accessibility': , + 'data-grid/keyboard-nav': , + 'data-grid/localization': , 'data-grid-pro': , - 'date-range-picker': , + 'date-range-picker': , // Support - community: , - 'bugs/features': } metadata="Priority over Community" />, - 'tech-advisory': , + community: , + 'bugs/features': ( + } metadata="Priority over Community" /> + ), + 'tech-advisory': , 'support-duration': , - 'response-time': , - 'pre-screening': , - 'issue-escalation': , + 'response-time': , + 'pre-screening': , + 'issue-escalation': , }; const premiumData: Record = { // Core - '@mui/core': , - '@mui/material': , - '@mui/system': , + '@mui/core': , + '@mui/material': , + '@mui/system': , // Advanced - 'data-grid/column-groups': , - 'data-grid/column-spanning': , - 'data-grid/column-resizing': , - 'data-grid/column-reorder': , - 'data-grid/column-pinning': , - 'data-grid/row-sorting': , - 'data-grid/row-height': , - 'data-grid/row-spanning': , - 'data-grid/row-reordering': , - 'data-grid/row-selection': , - 'data-grid/row-multiselection': , - 'data-grid/row-rangeselection': , - 'data-grid/filter-quick': , - 'data-grid/filter-column': , - 'data-grid/filter-multicolumn': , - 'data-grid/pagination': , - 'data-grid/pagination-large': , - 'data-grid/edit-row': , - 'data-grid/edit-cell': , - 'data-grid/file-csv': , - 'data-grid/file-print': , - 'data-grid/file-clipboard': , - 'data-grid/file-excel': , - 'data-grid/customizable-components': , - 'data-grid/virtualize-column': , - 'data-grid/virtualize-row': , - 'data-grid/tree-data': , - 'data-grid/master-detail': , - 'data-grid/grouping': , - 'data-grid/aggregation': , - 'data-grid/pivoting': , - 'data-grid/accessibility': , - 'data-grid/keyboard-nav': , - 'data-grid/localization': , + 'data-grid/column-groups': , + 'data-grid/column-spanning': , + 'data-grid/column-resizing': , + 'data-grid/column-reorder': , + 'data-grid/column-pinning': , + 'data-grid/row-sorting': , + 'data-grid/row-height': , + 'data-grid/row-spanning': , + 'data-grid/row-reordering': , + 'data-grid/row-selection': , + 'data-grid/row-multiselection': , + 'data-grid/row-rangeselection': , + 'data-grid/filter-quick': , + 'data-grid/filter-column': , + 'data-grid/filter-multicolumn': , + 'data-grid/pagination': , + 'data-grid/pagination-large': , + 'data-grid/edit-row': , + 'data-grid/edit-cell': , + 'data-grid/file-csv': , + 'data-grid/file-print': , + 'data-grid/file-clipboard': , + 'data-grid/file-excel': , + 'data-grid/customizable-components': , + 'data-grid/virtualize-column': , + 'data-grid/virtualize-row': , + 'data-grid/tree-data': , + 'data-grid/master-detail': , + 'data-grid/grouping': , + 'data-grid/aggregation': , + 'data-grid/pivoting': , + 'data-grid/accessibility': , + 'data-grid/keyboard-nav': , + 'data-grid/localization': , 'data-grid-pro': , - 'date-range-picker': , + 'date-range-picker': , // Support - community: , - 'bugs/features': } metadata="Priority over Pro" />, - 'tech-advisory': , + community: , + 'bugs/features': ( + } metadata="Priority over Pro" /> + ), + 'tech-advisory': , 'support-duration': , 'response-time': , 'pre-screening': , - 'issue-escalation': } metadata="priority only" />, + 'issue-escalation': ( + } metadata="priority only" /> + ), }; const RowCategory = (props: BoxProps) => ( From 78f2e781509c31c809d791b8e086d815843fc12b Mon Sep 17 00:00:00 2001 From: danilo leal Date: Mon, 18 Oct 2021 13:52:01 -0300 Subject: [PATCH 2/2] =?UTF-8?q?available=20=E2=86=92=20included?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/src/components/pricing/PricingTable.tsx | 132 +++++++++---------- 1 file changed, 66 insertions(+), 66 deletions(-) diff --git a/docs/src/components/pricing/PricingTable.tsx b/docs/src/components/pricing/PricingTable.tsx index 198ef699088f69..25ad6a47ab910d 100644 --- a/docs/src/components/pricing/PricingTable.tsx +++ b/docs/src/components/pricing/PricingTable.tsx @@ -528,49 +528,49 @@ const rowHeaders: Record = { const communityData: Record = { // Core - '@mui/core': , - '@mui/material': , - '@mui/system': , + '@mui/core': , + '@mui/material': , + '@mui/system': , // Advanced 'data-grid/column-groups': , 'data-grid/column-spanning': , 'data-grid/column-resizing': , 'data-grid/column-reorder': , 'data-grid/column-pinning': , - 'data-grid/row-sorting': , - 'data-grid/row-height': , + 'data-grid/row-sorting': , + 'data-grid/row-height': , 'data-grid/row-spanning': , 'data-grid/row-reordering': , - 'data-grid/row-selection': , + 'data-grid/row-selection': , 'data-grid/row-multiselection': , 'data-grid/row-rangeselection': , 'data-grid/filter-quick': , - 'data-grid/filter-column': , + 'data-grid/filter-column': , 'data-grid/filter-multicolumn': , - 'data-grid/pagination': , + 'data-grid/pagination': , 'data-grid/pagination-large': , - 'data-grid/edit-row': , - 'data-grid/edit-cell': , - 'data-grid/file-csv': , + 'data-grid/edit-row': , + 'data-grid/edit-cell': , + 'data-grid/file-csv': , 'data-grid/file-print': , 'data-grid/file-clipboard': , 'data-grid/file-excel': , - 'data-grid/customizable-components': , - 'data-grid/virtualize-column': , + 'data-grid/customizable-components': , + 'data-grid/virtualize-column': , 'data-grid/virtualize-row': , 'data-grid/tree-data': , 'data-grid/master-detail': , 'data-grid/grouping': , 'data-grid/aggregation': , 'data-grid/pivoting': , - 'data-grid/accessibility': , - 'data-grid/keyboard-nav': , - 'data-grid/localization': , + 'data-grid/accessibility': , + 'data-grid/keyboard-nav': , + 'data-grid/localization': , 'data-grid-pro': , 'date-range-picker': , // Support - community: , - 'bugs/features': , + community: , + 'bugs/features': , 'tech-advisory': , 'support-duration': , 'response-time': , @@ -580,50 +580,50 @@ const communityData: Record = { const proData: Record = { // Core - '@mui/core': , - '@mui/material': , - '@mui/system': , + '@mui/core': , + '@mui/material': , + '@mui/system': , // Advanced 'data-grid/column-groups': , 'data-grid/column-spanning': , - 'data-grid/column-resizing': , - 'data-grid/column-reorder': , + 'data-grid/column-resizing': , + 'data-grid/column-reorder': , 'data-grid/column-pinning': , - 'data-grid/row-sorting': , - 'data-grid/row-height': , + 'data-grid/row-sorting': , + 'data-grid/row-height': , 'data-grid/row-spanning': , 'data-grid/row-reordering': , - 'data-grid/row-selection': , - 'data-grid/row-multiselection': , + 'data-grid/row-selection': , + 'data-grid/row-multiselection': , 'data-grid/row-rangeselection': , 'data-grid/filter-quick': , - 'data-grid/filter-column': , - 'data-grid/filter-multicolumn': , - 'data-grid/pagination': , - 'data-grid/pagination-large': , - 'data-grid/edit-row': , - 'data-grid/edit-cell': , - 'data-grid/file-csv': , + 'data-grid/filter-column': , + 'data-grid/filter-multicolumn': , + 'data-grid/pagination': , + 'data-grid/pagination-large': , + 'data-grid/edit-row': , + 'data-grid/edit-cell': , + 'data-grid/file-csv': , 'data-grid/file-print': , 'data-grid/file-clipboard': , 'data-grid/file-excel': , - 'data-grid/customizable-components': , - 'data-grid/virtualize-column': , - 'data-grid/virtualize-row': , + 'data-grid/customizable-components': , + 'data-grid/virtualize-column': , + 'data-grid/virtualize-row': , 'data-grid/tree-data': , 'data-grid/master-detail': , 'data-grid/grouping': , 'data-grid/aggregation': , 'data-grid/pivoting': , - 'data-grid/accessibility': , - 'data-grid/keyboard-nav': , - 'data-grid/localization': , + 'data-grid/accessibility': , + 'data-grid/keyboard-nav': , + 'data-grid/localization': , 'data-grid-pro': , 'date-range-picker': , // Support - community: , + community: , 'bugs/features': ( - } metadata="Priority over Community" /> + } metadata="Priority over Community" /> ), 'tech-advisory': , 'support-duration': , @@ -634,50 +634,50 @@ const proData: Record = { const premiumData: Record = { // Core - '@mui/core': , - '@mui/material': , - '@mui/system': , + '@mui/core': , + '@mui/material': , + '@mui/system': , // Advanced 'data-grid/column-groups': , 'data-grid/column-spanning': , - 'data-grid/column-resizing': , - 'data-grid/column-reorder': , + 'data-grid/column-resizing': , + 'data-grid/column-reorder': , 'data-grid/column-pinning': , - 'data-grid/row-sorting': , - 'data-grid/row-height': , + 'data-grid/row-sorting': , + 'data-grid/row-height': , 'data-grid/row-spanning': , 'data-grid/row-reordering': , - 'data-grid/row-selection': , - 'data-grid/row-multiselection': , + 'data-grid/row-selection': , + 'data-grid/row-multiselection': , 'data-grid/row-rangeselection': , 'data-grid/filter-quick': , - 'data-grid/filter-column': , - 'data-grid/filter-multicolumn': , - 'data-grid/pagination': , - 'data-grid/pagination-large': , - 'data-grid/edit-row': , - 'data-grid/edit-cell': , - 'data-grid/file-csv': , + 'data-grid/filter-column': , + 'data-grid/filter-multicolumn': , + 'data-grid/pagination': , + 'data-grid/pagination-large': , + 'data-grid/edit-row': , + 'data-grid/edit-cell': , + 'data-grid/file-csv': , 'data-grid/file-print': , 'data-grid/file-clipboard': , 'data-grid/file-excel': , - 'data-grid/customizable-components': , - 'data-grid/virtualize-column': , - 'data-grid/virtualize-row': , + 'data-grid/customizable-components': , + 'data-grid/virtualize-column': , + 'data-grid/virtualize-row': , 'data-grid/tree-data': , 'data-grid/master-detail': , 'data-grid/grouping': , 'data-grid/aggregation': , 'data-grid/pivoting': , - 'data-grid/accessibility': , - 'data-grid/keyboard-nav': , - 'data-grid/localization': , + 'data-grid/accessibility': , + 'data-grid/keyboard-nav': , + 'data-grid/localization': , 'data-grid-pro': , 'date-range-picker': , // Support - community: , + community: , 'bugs/features': ( - } metadata="Priority over Pro" /> + } metadata="Priority over Pro" /> ), 'tech-advisory': , 'support-duration': ,