Skip to content

Commit

Permalink
Added: Table data file added.
Browse files Browse the repository at this point in the history
  • Loading branch information
Arifulislam5577 committed Oct 15, 2024
1 parent cc3af00 commit 5fc2da7
Show file tree
Hide file tree
Showing 4 changed files with 256 additions and 0 deletions.
49 changes: 49 additions & 0 deletions app/docs/components/table/variant/DefaultTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,54 @@ export const TableComponent = () => {
)
}
`,
'TableData.ts': `
const tableData = [
{
id: 1,
fileName: 'Landscape-Beach.png',
fileFormat: 'Png',
ratio: '16:9',
resolution: '1920x1080',
fileSize: '43 KB',
status: 'In Progress',
},
{
id: 2,
fileName: 'Portrait-Sunset.jpg',
fileFormat: 'Jpg',
ratio: '4:3',
resolution: '1024x768',
fileSize: '128 KB',
status: 'Complete',
},
{
id: 3,
fileName: 'Cityscape-Night.png',
fileFormat: 'Png',
ratio: '16:9',
resolution: '3840x2160',
fileSize: '210 KB',
status: 'Pending',
},
{
id: 4,
fileName: 'Animation-Loading.gif',
fileFormat: 'Gif',
ratio: '1:1',
resolution: '800x800',
fileSize: '76 KB',
status: 'In Progress',
},
{
id: 5,
fileName: 'Mountain-Peak.jpg',
fileFormat: 'Jpg',
ratio: '16:9',
resolution: '2560x1440',
fileSize: '312 KB',
status: 'Complete',
},
]
`,
}
export { DefaultTable, DefaultTableCode }
69 changes: 69 additions & 0 deletions app/docs/components/table/variant/OrdersTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,75 @@ export const TableComponent = () => {
)
}
`,
'TableData.ts': `
const tableData = [
{
id: 1,
type: 'DL-19266755',
date: {
day: 'Feb 28, 2024',
time: '10:00 am',
},
country: '/images/icon/country-0.svg',
status: 'Delivered',
quant: 100,
price: 21000,
location: 'New York, USA',
},
{
id: 2,
type: 'DL-19266756',
date: {
day: 'Mar 1, 2024',
time: '11:00 am',
},
country: '/images/icon/country-1.svg',
status: 'In Transit',
quant: 200,
price: 42000,
location: 'Los Angeles, USA',
},
{
id: 3,
type: 'DL-19266757',
date: {
day: 'Mar 2, 2024',
time: '12:00 pm',
},
country: '/images/icon/country-2.svg',
status: 'Pending',
quant: 150,
price: 31500,
location: 'Chicago, USA',
},
{
id: 4,
type: 'DL-19266758',
date: {
day: 'Mar 3, 2024',
time: '1:00 pm',
},
country: '/images/icon/country-4.svg',
status: 'Delivered',
quant: 300,
price: 63000,
location: 'Houston, USA',
},
{
id: 5,
type: 'DL-19266759',
date: {
day: 'Mar 4, 2024',
time: '2:00 pm',
},
country: '/images/icon/country-5.svg',
status: 'In Transit',
quant: 250,
price: 52500,
location: 'Phoenix, USA',
},
]
`,
}

export { OrdersTable, OrdersTableCode }
69 changes: 69 additions & 0 deletions app/docs/components/table/variant/ProductTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,5 +181,74 @@ export const TableComponent = () => {
}
`,
'TableData.ts': `
const tableData = [
{
id: 1,
title: 'Fjallraven - Foldsack No. 1 Backpack, Fits 15 Laptops',
price: 109.95,
description:
'Your perfect pack for everyday use and walks in the forest. Stash your laptop (up to 15 inches) in the padded sleeve, your everyday',
category: "men's clothing",
image: 'https://fakestoreapi.com/img/81fPKd-2AYL._AC_SL1500_.jpg',
rating: {
rate: 3.9,
count: 120,
},
},
{
id: 2,
title: 'Mens Casual Premium Slim Fit T-Shirts ',
price: 22.3,
description:
'Slim-fitting style, contrast raglan long sleeve, three-button henley placket, light weight & soft fabric for breathable and comfortable wearing. And Solid stitched shirts with round neck made for durability and a great fit for casual fashion wear and diehard baseball fans. The Henley style round neckline includes a three-button placket.',
category: "men's clothing",
image: 'https://fakestoreapi.com/img/71-3HjGNDUL._AC_SY879._SX._UX._SY._UY_.jpg',
rating: {
rate: 4.1,
count: 259,
},
},
{
id: 3,
title: 'Mens Cotton Jacket',
price: 55.99,
description:
'great outerwear jackets for Spring/Autumn/Winter, suitable for many occasions, such as working, hiking, camping, mountain/rock climbing, cycling, traveling or other outdoors. Good gift choice for you or your family member. A warm hearted love to Father, husband or son in this thanksgiving or Christmas Day.',
category: "men's clothing",
image: 'https://fakestoreapi.com/img/71li-ujtlUL._AC_UX679_.jpg',
rating: {
rate: 4.7,
count: 500,
},
},
{
id: 4,
title: 'Mens Casual Slim Fit',
price: 15.99,
description:
'The color could be slightly different between on the screen and in practice. / Please note that body builds vary by person, therefore, detailed size information should be reviewed below on the product description.',
category: "men's clothing",
image: 'https://fakestoreapi.com/img/71YXzeOuslL._AC_UY879_.jpg',
rating: {
rate: 2.1,
count: 430,
},
},
{
id: 6,
title: 'Solid Gold Petite Micropave ',
price: 168,
description:
'Satisfaction Guaranteed. Return or exchange any order within 30 days.Designed and sold by Hafeez Center in the United States. Satisfaction Guaranteed. Return or exchange any order within 30 days.',
category: 'jewelery',
image: 'https://fakestoreapi.com/img/61sbMiUnoGL._AC_UL640_QL65_ML3_.jpg',
rating: {
rate: 3.9,
count: 70,
},
},
]
`,
}
export { ProductTable, ProductTableCode }
69 changes: 69 additions & 0 deletions app/docs/components/table/variant/TeamTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -240,5 +240,74 @@ export const TableComponent = () => {
}
`,
'TableData.ts': `
const tableData = [
{
id: 1,
user: {
img: '/images/avatar/avatar-1.png',
name: 'Robert Fox',
position: 'Software Engineer',
},
status: 'Active',
role: 'Manager',
email: '[email protected]',
team: ['Product', 'Marketing', '+3'],
performance: '/images/series/series-1.svg',
},
{
id: 2,
user: {
img: '/images/avatar/avatar-2.png',
name: 'Jane Doe',
position: 'UI/UX Designer',
},
status: 'Inactive',
role: 'Designer',
email: '[email protected]',
team: ['Design', 'Development', '+2'],
performance: '/images/series/series-2.svg',
},
{
id: 3,
user: {
img: '/images/avatar/avatar-3.png',
name: 'John Smith',
position: 'Backend Developer',
},
status: 'Active',
role: 'CTO',
email: '[email protected]',
team: ['Development', 'Operations', '+4'],
performance: '/images/series/series-3.svg',
},
{
id: 4,
user: {
img: '/images/avatar/avatar-4.png',
name: 'Alice Johnson',
position: 'Project Manager',
},
status: 'Inactive',
role: 'Manager',
email: '[email protected]',
team: ['Project Management', 'HR', '+1'],
performance: '/images/series/series-4.svg',
},
{
id: 5,
user: {
img: '/images/avatar/avatar-5.png',
name: 'Michael Brown',
position: 'Data Scientist',
},
status: 'Active',
role: 'Data Analyst',
email: '[email protected]',
team: ['Data Science', 'Marketing', '+2'],
performance: '/images/series/series-5.svg',
},
]
`,
}
export { TeamTable, TeamTableCode }

0 comments on commit 5fc2da7

Please sign in to comment.