@pezeshk-book/modules 0.2.7 → 0.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/calendar/calendar.js +95 -0
- package/calendar/calendar.js.map +1 -0
- package/calendar/calendar.props.js +3 -0
- package/{dist/calendar → calendar}/config/chunk.js +5 -1
- package/calendar/config/chunk.js.map +1 -0
- package/calendar/config/create-date-range.js +17 -0
- package/calendar/config/create-date-range.js.map +1 -0
- package/calendar/config/days-in-month.en.js +36 -0
- package/calendar/config/days-in-month.en.js.map +1 -0
- package/calendar/config/days-in-month.fa.js +36 -0
- package/calendar/config/days-in-month.fa.js.map +1 -0
- package/calendar/config/index.js +13 -0
- package/calendar/config/index.js.map +1 -0
- package/{dist/calendar → calendar}/config/months.js +5 -2
- package/calendar/config/months.js.map +1 -0
- package/{dist/calendar → calendar}/config/week-day.js +6 -2
- package/calendar/config/week-day.js.map +1 -0
- package/calendar/icons/arrow-left-icon.js +9 -0
- package/calendar/icons/arrow-left-icon.js.map +1 -0
- package/calendar/icons/arrow-right-icon.js +9 -0
- package/calendar/icons/arrow-right-icon.js.map +1 -0
- package/calendar/icons/index.js +9 -0
- package/calendar/icons/index.js.map +1 -0
- package/calendar/index.js +6 -0
- package/calendar/index.js.map +1 -0
- package/calendar/shared/formatDate.js +17 -0
- package/calendar/shared/formatDate.js.map +1 -0
- package/calendar/sub-components/day/day.js +18 -0
- package/calendar/sub-components/day/day.js.map +1 -0
- package/calendar/sub-components/day/day.props.js +3 -0
- package/{dist/calendar → calendar}/sub-components/days/days.js +19 -17
- package/calendar/sub-components/days/days.js.map +1 -0
- package/calendar/sub-components/days/days.props.js +3 -0
- package/calendar/sub-components/days-head/days-head.js +45 -0
- package/calendar/sub-components/days-head/days-head.js.map +1 -0
- package/calendar/sub-components/days-head/days-head.props.js +3 -0
- package/countdown-timer/countdown.js +58 -0
- package/countdown-timer/countdown.js.map +1 -0
- package/countdown-timer/countdown.props.js +3 -0
- package/countdown-timer/index.js +6 -0
- package/countdown-timer/index.js.map +1 -0
- package/data-table/data-table.js +15 -0
- package/data-table/data-table.js.map +1 -0
- package/data-table/data-table.props.js +3 -0
- package/data-table/default/default-data-table.js +169 -0
- package/data-table/default/default-data-table.js.map +1 -0
- package/data-table/default/default-data-table.props.js +3 -0
- package/data-table/default/index.js +6 -0
- package/data-table/default/index.js.map +1 -0
- package/{dist/data-table → data-table}/hooks/use-window-dimensions.js +9 -7
- package/data-table/hooks/use-window-dimensions.js.map +1 -0
- package/data-table/icons/add.js +10 -0
- package/data-table/icons/add.js.map +1 -0
- package/data-table/icons/arrow-down.js +10 -0
- package/data-table/icons/arrow-down.js.map +1 -0
- package/data-table/icons/index.js +11 -0
- package/data-table/icons/index.js.map +1 -0
- package/data-table/icons/sort.js +10 -0
- package/data-table/icons/sort.js.map +1 -0
- package/data-table/index.js +6 -0
- package/data-table/index.js.map +1 -0
- package/data-table/simple/index.js +6 -0
- package/data-table/simple/index.js.map +1 -0
- package/data-table/simple/simple-data-table.js +118 -0
- package/data-table/simple/simple-data-table.js.map +1 -0
- package/data-table/simple/simple-data-table.props.js +3 -0
- package/index.js +15 -0
- package/index.js.map +1 -0
- package/package.json +1 -1
- package/pagination/icons/arrow-Right.js +10 -0
- package/pagination/icons/arrow-Right.js.map +1 -0
- package/pagination/icons/arrow-left.js +10 -0
- package/pagination/icons/arrow-left.js.map +1 -0
- package/pagination/icons/index.js +9 -0
- package/pagination/icons/index.js.map +1 -0
- package/pagination/index.js +6 -0
- package/pagination/index.js.map +1 -0
- package/pagination/pagination.js +55 -0
- package/pagination/pagination.js.map +1 -0
- package/pagination/pagination.props.js +3 -0
- package/{dist/pagination → pagination}/use-pagination.js +3 -1
- package/pagination/use-pagination.js.map +1 -0
- package/slider/index.js +6 -0
- package/slider/index.js.map +1 -0
- package/{dist/slider → slider}/slider.js +31 -29
- package/slider/slider.js.map +1 -0
- package/slider/slider.props.js +3 -0
- package/{dist/utils → utils}/class-names.js +3 -1
- package/utils/class-names.js.map +1 -0
- package/utils/persian-to-english-number.js +9 -0
- package/utils/persian-to-english-number.js.map +1 -0
- package/.eslintrc.json +0 -133
- package/calendar/calendar.props.ts +0 -25
- package/calendar/calendar.tsx +0 -185
- package/calendar/config/chunk.ts +0 -42
- package/calendar/config/create-date-range.ts +0 -14
- package/calendar/config/days-in-month.en.ts +0 -47
- package/calendar/config/days-in-month.fa.ts +0 -37
- package/calendar/config/index.ts +0 -16
- package/calendar/config/months.ts +0 -29
- package/calendar/config/week-day.ts +0 -19
- package/calendar/icons/arrow-left-icon.tsx +0 -14
- package/calendar/icons/arrow-right-icon.tsx +0 -14
- package/calendar/icons/index.ts +0 -7
- package/calendar/index.ts +0 -3
- package/calendar/shared/formatDate.tsx +0 -12
- package/calendar/sub-components/day/day.props.ts +0 -27
- package/calendar/sub-components/day/day.tsx +0 -31
- package/calendar/sub-components/days/days.props.ts +0 -51
- package/calendar/sub-components/days/days.tsx +0 -142
- package/calendar/sub-components/days-head/days-head.props.ts +0 -27
- package/calendar/sub-components/days-head/days-head.tsx +0 -122
- package/countdown-timer/countdown.props.ts +0 -18
- package/countdown-timer/countdown.tsx +0 -79
- package/countdown-timer/index.ts +0 -3
- package/data-table/data-table.props.ts +0 -7
- package/data-table/data-table.tsx +0 -17
- package/data-table/default/default-data-table.props.ts +0 -47
- package/data-table/default/default-data-table.tsx +0 -427
- package/data-table/default/index.ts +0 -3
- package/data-table/hooks/use-window-dimensions.tsx +0 -33
- package/data-table/icons/add.tsx +0 -10
- package/data-table/icons/arrow-down.tsx +0 -11
- package/data-table/icons/index.ts +0 -9
- package/data-table/icons/sort.tsx +0 -16
- package/data-table/index.ts +0 -3
- package/data-table/simple/index.ts +0 -3
- package/data-table/simple/simple-data-table.props.ts +0 -23
- package/data-table/simple/simple-data-table.tsx +0 -258
- package/dist/calendar/calendar.js +0 -93
- package/dist/calendar/calendar.js.map +0 -1
- package/dist/calendar/calendar.props.js +0 -2
- package/dist/calendar/config/chunk.js.map +0 -1
- package/dist/calendar/config/create-date-range.js +0 -14
- package/dist/calendar/config/create-date-range.js.map +0 -1
- package/dist/calendar/config/days-in-month.en.js +0 -32
- package/dist/calendar/config/days-in-month.en.js.map +0 -1
- package/dist/calendar/config/days-in-month.fa.js +0 -32
- package/dist/calendar/config/days-in-month.fa.js.map +0 -1
- package/dist/calendar/config/index.js +0 -6
- package/dist/calendar/config/index.js.map +0 -1
- package/dist/calendar/config/months.js.map +0 -1
- package/dist/calendar/config/week-day.js.map +0 -1
- package/dist/calendar/icons/arrow-left-icon.js +0 -7
- package/dist/calendar/icons/arrow-left-icon.js.map +0 -1
- package/dist/calendar/icons/arrow-right-icon.js +0 -7
- package/dist/calendar/icons/arrow-right-icon.js.map +0 -1
- package/dist/calendar/icons/index.js +0 -4
- package/dist/calendar/icons/index.js.map +0 -1
- package/dist/calendar/index.js +0 -3
- package/dist/calendar/index.js.map +0 -1
- package/dist/calendar/shared/formatDate.js +0 -13
- package/dist/calendar/shared/formatDate.js.map +0 -1
- package/dist/calendar/sub-components/day/day.js +0 -14
- package/dist/calendar/sub-components/day/day.js.map +0 -1
- package/dist/calendar/sub-components/day/day.props.js +0 -2
- package/dist/calendar/sub-components/days/days.js.map +0 -1
- package/dist/calendar/sub-components/days/days.props.js +0 -2
- package/dist/calendar/sub-components/days-head/days-head.js +0 -43
- package/dist/calendar/sub-components/days-head/days-head.js.map +0 -1
- package/dist/calendar/sub-components/days-head/days-head.props.js +0 -2
- package/dist/countdown-timer/countdown.js +0 -56
- package/dist/countdown-timer/countdown.js.map +0 -1
- package/dist/countdown-timer/countdown.props.js +0 -2
- package/dist/countdown-timer/index.js +0 -3
- package/dist/countdown-timer/index.js.map +0 -1
- package/dist/data-table/data-table.js +0 -13
- package/dist/data-table/data-table.js.map +0 -1
- package/dist/data-table/data-table.props.js +0 -2
- package/dist/data-table/default/default-data-table.js +0 -167
- package/dist/data-table/default/default-data-table.js.map +0 -1
- package/dist/data-table/default/default-data-table.props.js +0 -2
- package/dist/data-table/default/index.js +0 -3
- package/dist/data-table/default/index.js.map +0 -1
- package/dist/data-table/hooks/use-window-dimensions.js.map +0 -1
- package/dist/data-table/icons/add.js +0 -8
- package/dist/data-table/icons/add.js.map +0 -1
- package/dist/data-table/icons/arrow-down.js +0 -8
- package/dist/data-table/icons/arrow-down.js.map +0 -1
- package/dist/data-table/icons/index.js +0 -5
- package/dist/data-table/icons/index.js.map +0 -1
- package/dist/data-table/icons/sort.js +0 -8
- package/dist/data-table/icons/sort.js.map +0 -1
- package/dist/data-table/index.js +0 -3
- package/dist/data-table/index.js.map +0 -1
- package/dist/data-table/simple/index.js +0 -3
- package/dist/data-table/simple/index.js.map +0 -1
- package/dist/data-table/simple/simple-data-table.js +0 -116
- package/dist/data-table/simple/simple-data-table.js.map +0 -1
- package/dist/data-table/simple/simple-data-table.props.js +0 -2
- package/dist/index.js +0 -7
- package/dist/index.js.map +0 -1
- package/dist/pagination/icons/arrow-Right.js +0 -8
- package/dist/pagination/icons/arrow-Right.js.map +0 -1
- package/dist/pagination/icons/arrow-left.js +0 -8
- package/dist/pagination/icons/arrow-left.js.map +0 -1
- package/dist/pagination/icons/index.js +0 -4
- package/dist/pagination/icons/index.js.map +0 -1
- package/dist/pagination/index.js +0 -3
- package/dist/pagination/index.js.map +0 -1
- package/dist/pagination/pagination.js +0 -51
- package/dist/pagination/pagination.js.map +0 -1
- package/dist/pagination/pagination.props.js +0 -2
- package/dist/pagination/use-pagination.js.map +0 -1
- package/dist/slider/index.js +0 -3
- package/dist/slider/index.js.map +0 -1
- package/dist/slider/slider.js.map +0 -1
- package/dist/slider/slider.props.js +0 -2
- package/dist/stories/calendar/calendar.d.ts +0 -5
- package/dist/stories/calendar/calendar.js +0 -11
- package/dist/stories/calendar/calendar.js.map +0 -1
- package/dist/stories/calendar/calendar.stories.d.ts +0 -6
- package/dist/stories/calendar/calendar.stories.js +0 -20
- package/dist/stories/calendar/calendar.stories.js.map +0 -1
- package/dist/stories/count-down/count-down.d.ts +0 -5
- package/dist/stories/count-down/count-down.js +0 -11
- package/dist/stories/count-down/count-down.js.map +0 -1
- package/dist/stories/count-down/count-down.stories.d.ts +0 -6
- package/dist/stories/count-down/count-down.stories.js +0 -15
- package/dist/stories/count-down/count-down.stories.js.map +0 -1
- package/dist/stories/data-table/data-table-columns.d.ts +0 -12
- package/dist/stories/data-table/data-table-columns.js +0 -70
- package/dist/stories/data-table/data-table-columns.js.map +0 -1
- package/dist/stories/data-table/default-data-table.d.ts +0 -7
- package/dist/stories/data-table/default-data-table.js +0 -12
- package/dist/stories/data-table/default-data-table.js.map +0 -1
- package/dist/stories/data-table/default-data-table.stories.d.ts +0 -6
- package/dist/stories/data-table/default-data-table.stories.js +0 -18
- package/dist/stories/data-table/default-data-table.stories.js.map +0 -1
- package/dist/stories/data-table/dummy-data.d.ts +0 -11
- package/dist/stories/data-table/dummy-data.js +0 -204
- package/dist/stories/data-table/dummy-data.js.map +0 -1
- package/dist/stories/data-table/simple-data-table.d.ts +0 -7
- package/dist/stories/data-table/simple-data-table.js +0 -12
- package/dist/stories/data-table/simple-data-table.js.map +0 -1
- package/dist/stories/data-table/simple-data-table.stories.d.ts +0 -6
- package/dist/stories/data-table/simple-data-table.stories.js +0 -18
- package/dist/stories/data-table/simple-data-table.stories.js.map +0 -1
- package/dist/stories/pagination/pagination.d.ts +0 -5
- package/dist/stories/pagination/pagination.js +0 -11
- package/dist/stories/pagination/pagination.js.map +0 -1
- package/dist/stories/pagination/pagination.stories.d.ts +0 -6
- package/dist/stories/pagination/pagination.stories.js +0 -23
- package/dist/stories/pagination/pagination.stories.js.map +0 -1
- package/dist/stories/slider/slider.d.ts +0 -5
- package/dist/stories/slider/slider.js +0 -11
- package/dist/stories/slider/slider.js.map +0 -1
- package/dist/stories/slider/slider.stories.d.ts +0 -6
- package/dist/stories/slider/slider.stories.js +0 -15
- package/dist/stories/slider/slider.stories.js.map +0 -1
- package/dist/stories/wrapper.d.ts +0 -7
- package/dist/stories/wrapper.js +0 -8
- package/dist/stories/wrapper.js.map +0 -1
- package/dist/utils/class-names.js.map +0 -1
- package/dist/utils/persian-to-english-number.js +0 -5
- package/dist/utils/persian-to-english-number.js.map +0 -1
- package/index.ts +0 -13
- package/pagination/icons/arrow-Right.tsx +0 -22
- package/pagination/icons/arrow-left.tsx +0 -22
- package/pagination/icons/index.ts +0 -7
- package/pagination/index.ts +0 -3
- package/pagination/pagination.props.ts +0 -33
- package/pagination/pagination.tsx +0 -135
- package/pagination/use-pagination.ts +0 -49
- package/react-app-env.d.ts +0 -1
- package/slider/index.ts +0 -3
- package/slider/slider.props.ts +0 -39
- package/slider/slider.tsx +0 -292
- package/stories/calendar/calendar.stories.tsx +0 -25
- package/stories/calendar/calendar.tsx +0 -11
- package/stories/count-down/count-down.stories.tsx +0 -19
- package/stories/count-down/count-down.tsx +0 -11
- package/stories/data-table/data-table-columns.tsx +0 -70
- package/stories/data-table/default-data-table.stories.tsx +0 -22
- package/stories/data-table/default-data-table.tsx +0 -18
- package/stories/data-table/dummy-data.ts +0 -204
- package/stories/data-table/simple-data-table.stories.tsx +0 -22
- package/stories/data-table/simple-data-table.tsx +0 -18
- package/stories/pagination/pagination.stories.tsx +0 -35
- package/stories/pagination/pagination.tsx +0 -11
- package/stories/slider/slider.stories.tsx +0 -19
- package/stories/slider/slider.tsx +0 -45
- package/stories/wrapper.tsx +0 -11
- package/styles.css +0 -28
- package/utils/class-names.ts +0 -5
- package/utils/persian-to-english-number.ts +0 -4
- /package/{dist/calendar → calendar}/calendar.d.ts +0 -0
- /package/{dist/calendar → calendar}/calendar.props.d.ts +0 -0
- /package/{dist/calendar → calendar}/calendar.props.js.map +0 -0
- /package/{dist/calendar → calendar}/config/chunk.d.ts +0 -0
- /package/{dist/calendar → calendar}/config/create-date-range.d.ts +0 -0
- /package/{dist/calendar → calendar}/config/days-in-month.en.d.ts +0 -0
- /package/{dist/calendar → calendar}/config/days-in-month.fa.d.ts +0 -0
- /package/{dist/calendar → calendar}/config/index.d.ts +0 -0
- /package/{dist/calendar → calendar}/config/months.d.ts +0 -0
- /package/{dist/calendar → calendar}/config/week-day.d.ts +0 -0
- /package/{dist/calendar → calendar}/icons/arrow-left-icon.d.ts +0 -0
- /package/{dist/calendar → calendar}/icons/arrow-right-icon.d.ts +0 -0
- /package/{dist/calendar → calendar}/icons/index.d.ts +0 -0
- /package/{dist/calendar → calendar}/index.d.ts +0 -0
- /package/{dist/calendar → calendar}/shared/formatDate.d.ts +0 -0
- /package/{dist/calendar → calendar}/sub-components/day/day.d.ts +0 -0
- /package/{dist/calendar → calendar}/sub-components/day/day.props.d.ts +0 -0
- /package/{dist/calendar → calendar}/sub-components/day/day.props.js.map +0 -0
- /package/{dist/calendar → calendar}/sub-components/days/days.d.ts +0 -0
- /package/{dist/calendar → calendar}/sub-components/days/days.props.d.ts +0 -0
- /package/{dist/calendar → calendar}/sub-components/days/days.props.js.map +0 -0
- /package/{dist/calendar → calendar}/sub-components/days-head/days-head.d.ts +0 -0
- /package/{dist/calendar → calendar}/sub-components/days-head/days-head.props.d.ts +0 -0
- /package/{dist/calendar → calendar}/sub-components/days-head/days-head.props.js.map +0 -0
- /package/{dist/countdown-timer → countdown-timer}/countdown.d.ts +0 -0
- /package/{dist/countdown-timer → countdown-timer}/countdown.props.d.ts +0 -0
- /package/{dist/countdown-timer → countdown-timer}/countdown.props.js.map +0 -0
- /package/{dist/countdown-timer → countdown-timer}/index.d.ts +0 -0
- /package/{dist/data-table → data-table}/data-table.d.ts +0 -0
- /package/{dist/data-table → data-table}/data-table.props.d.ts +0 -0
- /package/{dist/data-table → data-table}/data-table.props.js.map +0 -0
- /package/{dist/data-table → data-table}/default/default-data-table.d.ts +0 -0
- /package/{dist/data-table → data-table}/default/default-data-table.props.d.ts +0 -0
- /package/{dist/data-table → data-table}/default/default-data-table.props.js.map +0 -0
- /package/{dist/data-table → data-table}/default/index.d.ts +0 -0
- /package/{dist/data-table → data-table}/hooks/use-window-dimensions.d.ts +0 -0
- /package/{dist/data-table → data-table}/icons/add.d.ts +0 -0
- /package/{dist/data-table → data-table}/icons/arrow-down.d.ts +0 -0
- /package/{dist/data-table → data-table}/icons/index.d.ts +0 -0
- /package/{dist/data-table → data-table}/icons/sort.d.ts +0 -0
- /package/{dist/data-table → data-table}/index.d.ts +0 -0
- /package/{dist/data-table → data-table}/simple/index.d.ts +0 -0
- /package/{dist/data-table → data-table}/simple/simple-data-table.d.ts +0 -0
- /package/{dist/data-table → data-table}/simple/simple-data-table.props.d.ts +0 -0
- /package/{dist/data-table → data-table}/simple/simple-data-table.props.js.map +0 -0
- /package/{dist/index.d.ts → index.d.ts} +0 -0
- /package/{dist/pagination → pagination}/icons/arrow-Right.d.ts +0 -0
- /package/{dist/pagination → pagination}/icons/arrow-left.d.ts +0 -0
- /package/{dist/pagination → pagination}/icons/index.d.ts +0 -0
- /package/{dist/pagination → pagination}/index.d.ts +0 -0
- /package/{dist/pagination → pagination}/pagination.d.ts +0 -0
- /package/{dist/pagination → pagination}/pagination.props.d.ts +0 -0
- /package/{dist/pagination → pagination}/pagination.props.js.map +0 -0
- /package/{dist/pagination → pagination}/use-pagination.d.ts +0 -0
- /package/{dist/slider → slider}/index.d.ts +0 -0
- /package/{dist/slider → slider}/slider.d.ts +0 -0
- /package/{dist/slider → slider}/slider.props.d.ts +0 -0
- /package/{dist/slider → slider}/slider.props.js.map +0 -0
- /package/{dist/utils → utils}/class-names.d.ts +0 -0
- /package/{dist/utils → utils}/persian-to-english-number.d.ts +0 -0
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import CustomDataTable from '../../data-table';
|
|
2
|
-
import dummyData from './dummy-data';
|
|
3
|
-
import { columns, header } from './data-table-columns';
|
|
4
|
-
import { DefaultDataTableProps } from '../../data-table/default/default-data-table.props';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Primary UI component for user interaction
|
|
8
|
-
*/
|
|
9
|
-
export const DefaultDataTable = (props: { variant: 'default' } & DefaultDataTableProps) => {
|
|
10
|
-
return (
|
|
11
|
-
<CustomDataTable
|
|
12
|
-
{...props}
|
|
13
|
-
data={dummyData}
|
|
14
|
-
header={header}
|
|
15
|
-
column={columns}
|
|
16
|
-
/>
|
|
17
|
-
);
|
|
18
|
-
};
|
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
const dummyData = [
|
|
2
|
-
{
|
|
3
|
-
id: 1,
|
|
4
|
-
category_id: 101,
|
|
5
|
-
title: 'Item One',
|
|
6
|
-
code: 'X123A',
|
|
7
|
-
environment: 'Production',
|
|
8
|
-
type: 'Hardware',
|
|
9
|
-
status: 'Active',
|
|
10
|
-
created_at: '2024-02-01T10:15:30Z',
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
id: 2,
|
|
14
|
-
category_id: 102,
|
|
15
|
-
title: 'Item Two',
|
|
16
|
-
code: 'Y456B',
|
|
17
|
-
environment: 'Staging',
|
|
18
|
-
type: 'Software',
|
|
19
|
-
status: 'Inactive',
|
|
20
|
-
created_at: '2024-01-25T09:00:00Z',
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
id: 3,
|
|
24
|
-
category_id: 103,
|
|
25
|
-
title: 'Item Three',
|
|
26
|
-
code: 'Z789C',
|
|
27
|
-
environment: 'Development',
|
|
28
|
-
type: 'Network',
|
|
29
|
-
status: 'Pending',
|
|
30
|
-
created_at: '2024-02-10T14:30:15Z',
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
id: 4,
|
|
34
|
-
category_id: 101,
|
|
35
|
-
title: 'Item Four',
|
|
36
|
-
code: 'A111D',
|
|
37
|
-
environment: 'Production',
|
|
38
|
-
type: 'Hardware',
|
|
39
|
-
status: 'Active',
|
|
40
|
-
created_at: '2024-02-12T12:45:00Z',
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
id: 5,
|
|
44
|
-
category_id: 102,
|
|
45
|
-
title: 'Item Five',
|
|
46
|
-
code: 'B222E',
|
|
47
|
-
environment: 'Staging',
|
|
48
|
-
type: 'Software',
|
|
49
|
-
status: 'Inactive',
|
|
50
|
-
created_at: '2024-02-15T08:20:45Z',
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
id: 6,
|
|
54
|
-
category_id: 103,
|
|
55
|
-
title: 'Item Six',
|
|
56
|
-
code: 'C333F',
|
|
57
|
-
environment: 'Development',
|
|
58
|
-
type: 'Network',
|
|
59
|
-
status: 'Pending',
|
|
60
|
-
created_at: '2024-02-18T16:10:30Z',
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
id: 7,
|
|
64
|
-
category_id: 104,
|
|
65
|
-
title: 'Item Seven',
|
|
66
|
-
code: 'D444G',
|
|
67
|
-
environment: 'Production',
|
|
68
|
-
type: 'Hardware',
|
|
69
|
-
status: 'Active',
|
|
70
|
-
created_at: '2024-02-20T11:05:00Z',
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
id: 8,
|
|
74
|
-
category_id: 105,
|
|
75
|
-
title: 'Item Eight',
|
|
76
|
-
code: 'E555H',
|
|
77
|
-
environment: 'Staging',
|
|
78
|
-
type: 'Software',
|
|
79
|
-
status: 'Inactive',
|
|
80
|
-
created_at: '2024-02-22T14:50:25Z',
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
id: 9,
|
|
84
|
-
category_id: 106,
|
|
85
|
-
title: 'Item Nine',
|
|
86
|
-
code: 'F666I',
|
|
87
|
-
environment: 'Development',
|
|
88
|
-
type: 'Network',
|
|
89
|
-
status: 'Pending',
|
|
90
|
-
created_at: '2024-02-24T09:30:15Z',
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
id: 10,
|
|
94
|
-
category_id: 107,
|
|
95
|
-
title: 'Item Ten',
|
|
96
|
-
code: 'G777J',
|
|
97
|
-
environment: 'Production',
|
|
98
|
-
type: 'Hardware',
|
|
99
|
-
status: 'Active',
|
|
100
|
-
created_at: '2024-02-26T13:25:45Z',
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
id: 11,
|
|
104
|
-
category_id: 108,
|
|
105
|
-
title: 'Item Eleven',
|
|
106
|
-
code: 'H888K',
|
|
107
|
-
environment: 'Staging',
|
|
108
|
-
type: 'Software',
|
|
109
|
-
status: 'Inactive',
|
|
110
|
-
created_at: '2024-02-28T10:40:30Z',
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
id: 12,
|
|
114
|
-
category_id: 109,
|
|
115
|
-
title: 'Item Twelve',
|
|
116
|
-
code: 'I999L',
|
|
117
|
-
environment: 'Development',
|
|
118
|
-
type: 'Network',
|
|
119
|
-
status: 'Pending',
|
|
120
|
-
created_at: '2024-03-01T15:55:00Z',
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
id: 13,
|
|
124
|
-
category_id: 110,
|
|
125
|
-
title: 'Item Thirteen',
|
|
126
|
-
code: 'J000M',
|
|
127
|
-
environment: 'Production',
|
|
128
|
-
type: 'Hardware',
|
|
129
|
-
status: 'Active',
|
|
130
|
-
created_at: '2024-03-03T08:10:45Z',
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
id: 14,
|
|
134
|
-
category_id: 111,
|
|
135
|
-
title: 'Item Fourteen',
|
|
136
|
-
code: 'K111N',
|
|
137
|
-
environment: 'Staging',
|
|
138
|
-
type: 'Software',
|
|
139
|
-
status: 'Inactive',
|
|
140
|
-
created_at: '2024-03-05T12:20:30Z',
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
id: 15,
|
|
144
|
-
category_id: 112,
|
|
145
|
-
title: 'Item Fifteen',
|
|
146
|
-
code: 'L222O',
|
|
147
|
-
environment: 'Development',
|
|
148
|
-
type: 'Network',
|
|
149
|
-
status: 'Pending',
|
|
150
|
-
created_at: '2024-03-07T14:45:15Z',
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
id: 16,
|
|
154
|
-
category_id: 113,
|
|
155
|
-
title: 'Item Sixteen',
|
|
156
|
-
code: 'M333P',
|
|
157
|
-
environment: 'Production',
|
|
158
|
-
type: 'Hardware',
|
|
159
|
-
status: 'Active',
|
|
160
|
-
created_at: '2024-03-09T09:30:00Z',
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
id: 17,
|
|
164
|
-
category_id: 114,
|
|
165
|
-
title: 'Item Seventeen',
|
|
166
|
-
code: 'N444Q',
|
|
167
|
-
environment: 'Staging',
|
|
168
|
-
type: 'Software',
|
|
169
|
-
status: 'Inactive',
|
|
170
|
-
created_at: '2024-03-11T11:50:45Z',
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
id: 18,
|
|
174
|
-
category_id: 115,
|
|
175
|
-
title: 'Item Eighteen',
|
|
176
|
-
code: 'O555R',
|
|
177
|
-
environment: 'Development',
|
|
178
|
-
type: 'Network',
|
|
179
|
-
status: 'Pending',
|
|
180
|
-
created_at: '2024-03-13T16:40:30Z',
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
id: 19,
|
|
184
|
-
category_id: 116,
|
|
185
|
-
title: 'Item Nineteen',
|
|
186
|
-
code: 'P666S',
|
|
187
|
-
environment: 'Production',
|
|
188
|
-
type: 'Hardware',
|
|
189
|
-
status: 'Active',
|
|
190
|
-
created_at: '2024-03-15T10:05:15Z',
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
id: 20,
|
|
194
|
-
category_id: 117,
|
|
195
|
-
title: 'Item Twenty',
|
|
196
|
-
code: 'Q777T',
|
|
197
|
-
environment: 'Staging',
|
|
198
|
-
type: 'Software',
|
|
199
|
-
status: 'Inactive',
|
|
200
|
-
created_at: '2024-03-17T14:15:00Z',
|
|
201
|
-
},
|
|
202
|
-
];
|
|
203
|
-
|
|
204
|
-
export default dummyData;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { SimpleDataTable } from './simple-data-table';
|
|
3
|
-
import { SimpleDataTableProps } from '../../data-table/simple/simple-data-table.props';
|
|
4
|
-
|
|
5
|
-
const meta: Meta<typeof SimpleDataTable> = {
|
|
6
|
-
title: 'DataTable',
|
|
7
|
-
component: SimpleDataTable,
|
|
8
|
-
argTypes: {
|
|
9
|
-
},
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export default meta;
|
|
13
|
-
type Story = StoryObj<typeof SimpleDataTable>;
|
|
14
|
-
|
|
15
|
-
export const Simple: Story = {
|
|
16
|
-
render: (args : {variant: 'simple'} & SimpleDataTableProps) => {
|
|
17
|
-
return <SimpleDataTable {...args} />;
|
|
18
|
-
},
|
|
19
|
-
args: {
|
|
20
|
-
variant: 'simple',
|
|
21
|
-
},
|
|
22
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import CustomDataTable from '../../data-table';
|
|
2
|
-
import dummyData from './dummy-data';
|
|
3
|
-
import { columns, header } from './data-table-columns';
|
|
4
|
-
import { SimpleDataTableProps } from '../../data-table/simple/simple-data-table.props';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Primary UI component for user interaction
|
|
8
|
-
*/
|
|
9
|
-
export const SimpleDataTable = (props: {variant: 'simple'} & SimpleDataTableProps) => {
|
|
10
|
-
return (
|
|
11
|
-
<CustomDataTable
|
|
12
|
-
{...props}
|
|
13
|
-
data={dummyData}
|
|
14
|
-
header={header}
|
|
15
|
-
column={columns}
|
|
16
|
-
/>
|
|
17
|
-
);
|
|
18
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { useState } from 'react';
|
|
2
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
-
import { Pagination } from './pagination';
|
|
4
|
-
|
|
5
|
-
const meta: Meta<typeof Pagination> = {
|
|
6
|
-
title: 'Pagination',
|
|
7
|
-
component: Pagination,
|
|
8
|
-
argTypes: {
|
|
9
|
-
},
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export default meta;
|
|
13
|
-
type Story = StoryObj<typeof Pagination>;
|
|
14
|
-
|
|
15
|
-
export const Default: Story = {
|
|
16
|
-
render: (args) => {
|
|
17
|
-
const [page, setPage] = useState<number>(1);
|
|
18
|
-
|
|
19
|
-
const nextPageHandler = () => {
|
|
20
|
-
setPage((prevState) => prevState + 1);
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
const previousPageHandler = () => {
|
|
24
|
-
setPage((prevState) => prevState - 1);
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
return <Pagination
|
|
28
|
-
currentPage={page}
|
|
29
|
-
nextPage={nextPageHandler}
|
|
30
|
-
previousPage={previousPageHandler}
|
|
31
|
-
{...args}
|
|
32
|
-
/>;
|
|
33
|
-
},
|
|
34
|
-
};
|
|
35
|
-
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import CustomPagination from '../../pagination';
|
|
2
|
-
import { PaginationProps } from '../../pagination/pagination.props';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Primary UI component for user interaction
|
|
6
|
-
*/
|
|
7
|
-
export const Pagination = ({ ...props }: PaginationProps) => {
|
|
8
|
-
return (
|
|
9
|
-
<CustomPagination {...props}/>
|
|
10
|
-
);
|
|
11
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Slider } from './slider';
|
|
2
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
-
|
|
4
|
-
const meta: Meta<typeof Slider> = {
|
|
5
|
-
title: 'Slider',
|
|
6
|
-
component: Slider,
|
|
7
|
-
argTypes: {
|
|
8
|
-
},
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export default meta;
|
|
12
|
-
type Story = StoryObj<typeof Slider>;
|
|
13
|
-
|
|
14
|
-
export const Default: Story = {
|
|
15
|
-
render: (args) => {
|
|
16
|
-
return <Slider {...args} />;
|
|
17
|
-
},
|
|
18
|
-
};
|
|
19
|
-
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import CustomSlider from '../../slider';
|
|
2
|
-
import { SliderProps } from '../../slider/slider.props';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Primary UI component for user interaction
|
|
6
|
-
*/
|
|
7
|
-
export const Slider = ({ ...props }: SliderProps) => {
|
|
8
|
-
return (
|
|
9
|
-
<CustomSlider {...props}>
|
|
10
|
-
<div className={'h-40 bg-secondary justify-center items-center flex text-d-xl text-control-50'}>
|
|
11
|
-
1
|
|
12
|
-
</div>
|
|
13
|
-
<div className={'h-40 bg-black justify-center items-center flex text-d-xl text-control-50'}>
|
|
14
|
-
2
|
|
15
|
-
</div>
|
|
16
|
-
<div className={'h-40 bg-danger-800 justify-center items-center flex text-d-xl text-control-50'}>
|
|
17
|
-
3
|
|
18
|
-
</div>
|
|
19
|
-
<div className={'h-40 bg-info-900 justify-center items-center flex text-d-xl text-control-50'}>
|
|
20
|
-
4
|
|
21
|
-
</div>
|
|
22
|
-
<div className={'h-40 bg-tertiary justify-center items-center flex text-d-xl text-control-50'}>
|
|
23
|
-
5
|
|
24
|
-
</div>
|
|
25
|
-
<div className={'h-40 bg-danger-dark justify-center items-center flex text-d-xl text-control-50'}>
|
|
26
|
-
6
|
|
27
|
-
</div>
|
|
28
|
-
<div className={'h-40 bg-purple-900 justify-center items-center flex text-d-xl text-control-50'}>
|
|
29
|
-
7
|
|
30
|
-
</div>
|
|
31
|
-
<div className={'h-40 bg-success-900 justify-center items-center flex text-d-xl text-control-50'}>
|
|
32
|
-
8
|
|
33
|
-
</div>
|
|
34
|
-
<div className={'h-40 bg-success-200 justify-center items-center flex text-d-xl text-control-50'}>
|
|
35
|
-
9
|
|
36
|
-
</div>
|
|
37
|
-
<div className={'h-40 bg-black justify-center items-center flex text-d-xl text-control-50'}>
|
|
38
|
-
10
|
|
39
|
-
</div>
|
|
40
|
-
<div className={'h-40 bg-danger-800 justify-center items-center flex text-d-xl text-control-50'}>
|
|
41
|
-
11
|
|
42
|
-
</div>
|
|
43
|
-
</CustomSlider>
|
|
44
|
-
);
|
|
45
|
-
};
|
package/stories/wrapper.tsx
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { Text } from '@pezeshk-book/ui-kit';
|
|
3
|
-
|
|
4
|
-
export const Wrapper = ({ title, children, className, titleColor }: { title: string, children: ReactNode, className?: string, titleColor?: string }) => {
|
|
5
|
-
return (
|
|
6
|
-
<div className={`flex gap-2 items-center ${className}`}>
|
|
7
|
-
<Text direction={'ltr'} align={'left'} className={`${titleColor} min-w-[100px] whitespace-nowrap`}>{title}:</Text>
|
|
8
|
-
{children}
|
|
9
|
-
</div>
|
|
10
|
-
);
|
|
11
|
-
};
|
package/styles.css
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
@tailwind base;
|
|
2
|
-
@tailwind components;
|
|
3
|
-
@tailwind utilities;
|
|
4
|
-
@tailwind variants;
|
|
5
|
-
|
|
6
|
-
@font-face {
|
|
7
|
-
font-family: 'IRANSansMedium';
|
|
8
|
-
src: url('/fonts/IRANSans/IRANSansMedium.ttf') format('truetype');
|
|
9
|
-
font-display: swap;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
@font-face {
|
|
13
|
-
font-family: 'IRANSansRegular';
|
|
14
|
-
src: url('/fonts/IRANSans/IRANSansRegular.ttf') format('truetype');
|
|
15
|
-
font-display: swap;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
@font-face {
|
|
19
|
-
font-family: 'IRANSansBold';
|
|
20
|
-
src: url('/fonts/IRANSans/IRANSansBold.ttf') format('truetype');
|
|
21
|
-
font-display: swap;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
@font-face {
|
|
25
|
-
font-family: 'IRANSansLight';
|
|
26
|
-
src: url('/fonts/IRANSans/IRANSansLight.ttf') format('truetype');
|
|
27
|
-
font-display: swap;
|
|
28
|
-
}
|
package/utils/class-names.ts
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|