@pezeshk-book/modules 0.1.6 → 0.1.8
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/dist/modules/calendar/calendar.d.ts +1 -2
- package/dist/modules/calendar/calendar.js +3 -3
- package/dist/modules/calendar/calendar.js.map +1 -1
- package/dist/modules/calendar/icons/arrow-left-icon.d.ts +1 -2
- package/dist/modules/calendar/icons/arrow-left-icon.js +3 -3
- package/dist/modules/calendar/icons/arrow-left-icon.js.map +1 -1
- package/dist/modules/calendar/icons/arrow-right-icon.d.ts +1 -2
- package/dist/modules/calendar/icons/arrow-right-icon.js +3 -3
- package/dist/modules/calendar/icons/arrow-right-icon.js.map +1 -1
- package/dist/modules/calendar/sub-components/day/day.d.ts +1 -2
- package/dist/modules/calendar/sub-components/day/day.js +3 -3
- package/dist/modules/calendar/sub-components/day/day.js.map +1 -1
- package/dist/modules/calendar/sub-components/days/days.d.ts +1 -2
- package/dist/modules/calendar/sub-components/days/days.js +13 -18
- package/dist/modules/calendar/sub-components/days/days.js.map +1 -1
- package/dist/modules/calendar/sub-components/days-head/days-head.d.ts +1 -2
- package/dist/modules/calendar/sub-components/days-head/days-head.js +5 -23
- package/dist/modules/calendar/sub-components/days-head/days-head.js.map +1 -1
- package/dist/modules/countdown-timer/countdown.d.ts +1 -2
- package/dist/modules/countdown-timer/countdown.js +4 -9
- package/dist/modules/countdown-timer/countdown.js.map +1 -1
- package/dist/modules/data-table/complex/complex-data-table.d.ts +9 -0
- package/dist/modules/data-table/complex/complex-data-table.js +158 -0
- package/dist/modules/data-table/complex/complex-data-table.js.map +1 -0
- package/dist/modules/data-table/complex/complex-data-table.props.d.ts +23 -0
- package/dist/modules/data-table/complex/complex-data-table.props.js +2 -0
- package/dist/modules/data-table/complex/complex-data-table.props.js.map +1 -0
- package/dist/modules/data-table/complex/index.d.ts +2 -0
- package/dist/modules/data-table/complex/index.js +3 -0
- package/dist/modules/data-table/complex/index.js.map +1 -0
- package/dist/modules/data-table/data-table.d.ts +3 -0
- package/dist/modules/data-table/data-table.js +13 -0
- package/dist/modules/data-table/data-table.js.map +1 -0
- package/dist/modules/data-table/data-table.props.d.ts +5 -0
- package/dist/modules/data-table/data-table.props.js +2 -0
- package/dist/modules/data-table/data-table.props.js.map +1 -0
- package/dist/modules/data-table/hooks/use-window-dimensions.d.ts +5 -0
- package/dist/modules/data-table/hooks/use-window-dimensions.js +28 -0
- package/dist/modules/data-table/hooks/use-window-dimensions.js.map +1 -0
- package/dist/modules/data-table/images/index.d.ts +2 -0
- package/dist/modules/data-table/images/index.js +3 -0
- package/dist/modules/data-table/images/index.js.map +1 -0
- package/dist/modules/data-table/index.d.ts +2 -0
- package/dist/modules/data-table/index.js +3 -0
- package/dist/modules/data-table/index.js.map +1 -0
- package/dist/modules/data-table/simple/index.d.ts +2 -0
- package/dist/modules/data-table/simple/index.js +3 -0
- package/dist/modules/data-table/simple/index.js.map +1 -0
- package/dist/modules/data-table/simple/simple-data-table.d.ts +9 -0
- package/dist/modules/data-table/simple/simple-data-table.js +107 -0
- package/dist/modules/data-table/simple/simple-data-table.js.map +1 -0
- package/dist/modules/data-table/simple/simple-data-table.props.d.ts +11 -0
- package/dist/modules/data-table/simple/simple-data-table.props.js +2 -0
- package/dist/modules/data-table/simple/simple-data-table.props.js.map +1 -0
- package/dist/modules/pagination/icons/arrow-Right.d.ts +1 -2
- package/dist/modules/pagination/icons/arrow-Right.js +3 -3
- package/dist/modules/pagination/icons/arrow-Right.js.map +1 -1
- package/dist/modules/pagination/icons/arrow-left.d.ts +1 -2
- package/dist/modules/pagination/icons/arrow-left.js +3 -3
- package/dist/modules/pagination/icons/arrow-left.js.map +1 -1
- package/dist/modules/pagination/pagination.d.ts +1 -2
- package/dist/modules/pagination/pagination.js +6 -24
- package/dist/modules/pagination/pagination.js.map +1 -1
- package/dist/modules/slider/slider.d.ts +1 -2
- package/dist/modules/slider/slider.js +14 -23
- package/dist/modules/slider/slider.js.map +1 -1
- package/dist/stories/calendar/calendar.d.ts +1 -2
- package/dist/stories/calendar/calendar.js +2 -2
- package/dist/stories/calendar/calendar.js.map +1 -1
- package/dist/stories/calendar/calendar.stories.d.ts +6 -6
- package/dist/stories/calendar/calendar.stories.js +12 -9
- package/dist/stories/calendar/calendar.stories.js.map +1 -1
- package/dist/stories/count-down/count-down.d.ts +1 -2
- package/dist/stories/count-down/count-down.js +2 -2
- package/dist/stories/count-down/count-down.js.map +1 -1
- package/dist/stories/count-down/count-down.stories.d.ts +6 -6
- package/dist/stories/count-down/count-down.stories.js +10 -8
- package/dist/stories/count-down/count-down.stories.js.map +1 -1
- package/dist/stories/data-table/data-table-columns.d.ts +12 -0
- package/dist/stories/data-table/data-table-columns.js +70 -0
- package/dist/stories/data-table/data-table-columns.js.map +1 -0
- package/dist/stories/data-table/data-table.d.ts +5 -0
- package/dist/stories/data-table/data-table.js +13 -0
- package/dist/stories/data-table/data-table.js.map +1 -0
- package/dist/stories/data-table/data-table.stories.d.ts +6 -0
- package/dist/stories/data-table/data-table.stories.js +15 -0
- package/dist/stories/data-table/data-table.stories.js.map +1 -0
- package/dist/stories/data-table/dummy-data.d.ts +11 -0
- package/dist/stories/data-table/dummy-data.js +204 -0
- package/dist/stories/data-table/dummy-data.js.map +1 -0
- package/dist/stories/pagination/pagination.d.ts +1 -2
- package/dist/stories/pagination/pagination.js +2 -2
- package/dist/stories/pagination/pagination.js.map +1 -1
- package/dist/stories/pagination/pagination.stories.d.ts +6 -6
- package/dist/stories/pagination/pagination.stories.js +15 -12
- package/dist/stories/pagination/pagination.stories.js.map +1 -1
- package/dist/stories/slider/slider.d.ts +1 -2
- package/dist/stories/slider/slider.js +2 -13
- package/dist/stories/slider/slider.js.map +1 -1
- package/dist/stories/slider/slider.stories.d.ts +6 -6
- package/dist/stories/slider/slider.stories.js +10 -8
- package/dist/stories/slider/slider.stories.js.map +1 -1
- package/dist/stories/wrapper.d.ts +1 -1
- package/dist/stories/wrapper.js +3 -6
- package/dist/stories/wrapper.js.map +1 -1
- package/dist/utils/persian-to-english-number.d.ts +1 -0
- package/dist/utils/persian-to-english-number.js +5 -0
- package/dist/utils/persian-to-english-number.js.map +1 -0
- package/package.json +7 -4
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { __assign } from "tslib";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useEffect, useState } from 'react';
|
|
2
4
|
import { Button, Div, Text, Select } from '@pezeshk-book/ui-kit';
|
|
3
5
|
import { ArrowLeft, ArrowRight } from './icons';
|
|
4
6
|
import usePagination from './use-pagination';
|
|
@@ -40,29 +42,9 @@ export var Pagination = function (_a) {
|
|
|
40
42
|
getLimit(event);
|
|
41
43
|
}
|
|
42
44
|
};
|
|
43
|
-
return (
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
showTotal ? (React.createElement(Text, { color: 'grey.500', className: 'text-ellipsis whitespace-nowrap' }, "\u0646\u0645\u0627\u06CC\u0634 ".concat((currentPage - 1) * parseInt(limit) + 1, " \u062A\u0627 ").concat(lastPage === currentPage ? total : parseInt(limit) * currentPage, " \u0627\u0632 ").concat(total))) : null,
|
|
47
|
-
hasLimit ? (React.createElement(Div, { className: 'w-20' },
|
|
48
|
-
React.createElement(Select, { disabled: isLoading, id: 'id', size: 'small', value: limit, onChange: limitHandler, text: 'count', optionsList: Limits, variant: 'outlined', color: 'control' }))) : null)),
|
|
49
|
-
React.createElement("ul", { dir: 'ltr', className: 'flex flex-row gap-x-0.5 md:gap-x-2 items-center md:justify-start justify-center' },
|
|
50
|
-
React.createElement("li", null,
|
|
51
|
-
React.createElement(Button, { disabled: currentPage === 1 || isLoading, variant: variant, shape: 'square', size: 'small', onClick: previousPage, ariaLabel: 'previousPage', loading: isLoading, color: color, rounded: rounded, className: '!px-0' },
|
|
52
|
-
React.createElement(ArrowLeft, null))),
|
|
53
|
-
type === 'default' ? pageNumbers.map(function (number) {
|
|
54
|
-
return (React.createElement("li", { key: "pagination_".concat(number) },
|
|
55
|
-
React.createElement(Button, { disabled: number === currentPage || number === '...' || isLoading, variant: variant, shape: 'square', rounded: rounded, size: 'small', color: color, className: '!px-0', ariaLabel: number.toString(), onClick: function () { return getCurrentPage(+number); } }, number)));
|
|
56
|
-
}) : null,
|
|
57
|
-
React.createElement("li", null,
|
|
58
|
-
React.createElement(Button, { disabled: lastPage === currentPage || isLoading, variant: variant, shape: 'square', size: 'small', rounded: rounded, onClick: nextPage, ariaLabel: 'nextPage', loading: isLoading, color: color, className: '!px-0' },
|
|
59
|
-
React.createElement(ArrowRight, null))),
|
|
60
|
-
type === 'simple' ? (React.createElement(Div, { className: 'gap-2' },
|
|
61
|
-
React.createElement(Text, { typography: 'sm' },
|
|
62
|
-
currentPage,
|
|
63
|
-
" / ",
|
|
64
|
-
lastPage),
|
|
65
|
-
React.createElement(Text, { typography: 'sm' }, "\u0635\u0641\u062D\u0647"))) : null)));
|
|
45
|
+
return (_jsxs(Div, __assign({ className: 'flex-col-reverse sm:flex-row w-full justify-between items-center gap-y-2 px-4' }, { children: [_jsx(Div, __assign({ className: 'flex justify-start items-center' }, { children: _jsxs(Div, __assign({ className: 'items-center gap-6 justify-start md:absolute' }, { children: [showTotal ? (_jsx(Text, __assign({ color: 'grey.500', className: 'text-ellipsis whitespace-nowrap' }, { children: "\u0646\u0645\u0627\u06CC\u0634 ".concat((currentPage - 1) * parseInt(limit) + 1, " \u062A\u0627 ").concat(lastPage === currentPage ? total : parseInt(limit) * currentPage, " \u0627\u0632 ").concat(total) }))) : null, hasLimit ? (_jsx(Div, __assign({ className: 'w-20' }, { children: _jsx(Select, { disabled: isLoading, id: 'id', size: 'small', value: limit, onChange: limitHandler, text: 'count', optionsList: Limits, variant: 'outlined', color: 'control' }) }))) : null] })) })), _jsxs("ul", __assign({ dir: 'ltr', className: 'flex flex-row gap-x-0.5 md:gap-x-2 items-center md:justify-start justify-center' }, { children: [_jsx("li", { children: _jsx(Button, __assign({ disabled: currentPage === 1 || isLoading, variant: variant, shape: 'square', size: 'small', onClick: previousPage, ariaLabel: 'previousPage', loading: isLoading, color: color, rounded: rounded, className: '!px-0' }, { children: _jsx(ArrowLeft, {}) })) }), type === 'default' ? pageNumbers.map(function (number) {
|
|
46
|
+
return (_jsx("li", { children: _jsx(Button, __assign({ disabled: number === currentPage || number === '...' || isLoading, variant: variant, shape: 'square', rounded: rounded, size: 'small', color: color, className: '!px-0', ariaLabel: number.toString(), onClick: function () { return getCurrentPage(+number); } }, { children: number })) }, "pagination_".concat(number)));
|
|
47
|
+
}) : null, _jsx("li", { children: _jsx(Button, __assign({ disabled: lastPage === currentPage || isLoading, variant: variant, shape: 'square', size: 'small', rounded: rounded, onClick: nextPage, ariaLabel: 'nextPage', loading: isLoading, color: color, className: '!px-0' }, { children: _jsx(ArrowRight, {}) })) }), type === 'simple' ? (_jsxs(Div, __assign({ className: 'gap-2' }, { children: [_jsxs(Text, __assign({ typography: 'sm' }, { children: [currentPage, " / ", lastPage] })), _jsx(Text, __assign({ typography: 'sm' }, { children: "\u0635\u0641\u062D\u0647" }))] }))) : null] }))] })));
|
|
66
48
|
};
|
|
67
49
|
export default Pagination;
|
|
68
50
|
//# sourceMappingURL=pagination.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.js","sourceRoot":"","sources":["../../../modules/pagination/pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"pagination.js","sourceRoot":"","sources":["../../../modules/pagination/pagination.tsx"],"names":[],"mappings":";;AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAEhD,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAE7C,IAAM,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ACZ,SAAS,EAAE,OAAO,gBAClB,KAAC,UAAU,KAAE,IACN,GACN,EACJ,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,CACnB,MAAC,GAAG,aAAC,SAAS,EAAE,OAAO,iBACrB,MAAC,IAAI,aAAC,UAAU,EAAE,IAAI,iBAAG,WAAW,SAAK,QAAQ,KAAQ,EACzD,KAAC,IAAI,aAAC,UAAU,EAAE,IAAI,8CAAa,KAC/B,CACP,CAAC,CAAC,CAAC,IAAI,KACL,KACD,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { SliderProps } from './slider.props';
|
|
3
|
-
declare const Slider: ({ children, delay, spaceBetween, slides, infiniteLoop, pauseOnMouseOver, autoMove, indicatorActiveColor, indicator, navigation, prevNavigation, nextNavigation, direction, rows, navigationColor, tabletSlides, mobileSlides, indicatorClassName, }: SliderProps) => JSX.Element;
|
|
2
|
+
declare const Slider: ({ children, delay, spaceBetween, slides, infiniteLoop, pauseOnMouseOver, autoMove, indicatorActiveColor, indicator, navigation, prevNavigation, nextNavigation, direction, rows, navigationColor, tabletSlides, mobileSlides, indicatorClassName, }: SliderProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default Slider;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { __spreadArray } from "tslib";
|
|
1
|
+
import { __assign, __spreadArray } from "tslib";
|
|
2
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
3
|
import React, { useEffect, useState } from 'react';
|
|
3
4
|
import { Div, Button } from '@pezeshk-book/ui-kit';
|
|
4
5
|
import classNames from '../../utils/class-names';
|
|
@@ -127,31 +128,21 @@ var Slider = function (_a) {
|
|
|
127
128
|
setPause(state);
|
|
128
129
|
}
|
|
129
130
|
};
|
|
130
|
-
return (
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
indicator && !limit ? (React.createElement(Div, { className: 'self-center items-center justify-center' }, children.length > 1 ? (React.createElement("div", { className: "flex w-[96px] justify-start gap-x-1 mt-20 pr-11 overflow-hidden ".concat(indicatorClassName) }, __spreadArray([], new Array(length - showSlides + 1), true).map(function (_, idx) {
|
|
142
|
-
return (React.createElement(Div, { style: {
|
|
143
|
-
transform: "translateX(".concat(dir).concat(currentIndex * (130), "%)"),
|
|
144
|
-
transition: !transitionEnabled ? 'none' : undefined
|
|
145
|
-
}, key: idx, className: classNames('w-4 h-4 min-h-4 min-w-4 rounded-full mb-0 transition-all duration-500 justify-center items-center', currentIndex === idx ? "bg-".concat(indicatorActiveColor) : 'bg-transparent'), onClick: function () {
|
|
146
|
-
setCurrentIndex(idx);
|
|
147
|
-
} },
|
|
148
|
-
React.createElement(Div, { className: classNames(currentIndex === idx ? "bg-".concat(indicatorActiveColor) : 'bg-grey-100', "rounded-full transition-all duration-500 justify-center items-center", BulletWidth(Math.abs(4 - Math.abs(currentIndex - idx)))) })));
|
|
149
|
-
}))) : null)) : null));
|
|
131
|
+
return (_jsxs(Div, __assign({ dir: direction, className: 'w-full flex-col', onMouseOver: function () { return handlePauseAutoMove(true); }, onMouseLeave: function () { return handlePauseAutoMove(false); } }, { children: [_jsxs(Div, __assign({ className: 'w-full relative' }, { children: [navigation && !limit ? (_jsx(Button, { ariaLabel: 'previousNavigation', startAdornment: _jsx(ArrowIcon, { className: 'rotate-180' }), disabled: direction === 'rtl' ? currentIndex === length - showSlides : currentIndex === 0, onClick: direction === 'rtl' ? next : prev, color: navigationColor, rounded: 'full', shape: 'square', className: 'absolute flex self-center items-center justify-center z-10 left-2' })) : null, prevNavigation && currentIndex > 0 ? (_jsx(_Fragment, { children: prevNavigation(prev) })) : null, limit ? (_jsx("div", __assign({ ref: ref, className: 'flex shrink-0 grow w-full' }, { children: sliders.map(function (item, itemIndex) { return (_jsx(Div, __assign({ className: 'flex-col w-1/2' }, { children: item }), itemIndex)); }) }))) : (_jsx("div", __assign({ className: 'overflow-hidden w-full h-full', onTouchStart: handleTouchStart, onTouchMove: handleTouchMove }, { children: _jsx("div", __assign({ className: "flex transition ease-linear duration-300 shrink-0 grow w-full", style: {
|
|
132
|
+
transform: "translateX(".concat(dir).concat(currentIndex * (100 / showSlides), "%)"),
|
|
133
|
+
transition: !transitionEnabled ? 'none' : undefined
|
|
134
|
+
}, onTransitionEnd: handleTransitionEnd, ref: ref }, { children: sliders.map(function (item, itemIndex) { return (_jsx(Div, __assign({ className: 'flex-col w-full shrink-0' }, { children: item }), itemIndex)); }) })) }))), navigation && !limit ? (_jsx(Button, { ariaLabel: 'nextNavigation', startAdornment: _jsx(ArrowIcon, {}), color: navigationColor, disabled: direction === 'rtl' ? currentIndex === 0 : currentIndex === length - showSlides, onClick: direction === 'rtl' ? prev : next, rounded: 'full', shape: 'square', className: 'absolute flex self-center items-center justify-center right-2' })) : null, nextNavigation && currentIndex < length ? (_jsx(_Fragment, { children: nextNavigation(next) })) : null] })), indicator && !limit ? (_jsx(Div, __assign({ className: 'self-center items-center justify-center' }, { children: children.length > 1 ? (_jsx("div", __assign({ className: "flex w-[96px] justify-start gap-x-1 mt-20 pr-11 overflow-hidden ".concat(indicatorClassName) }, { children: __spreadArray([], new Array(length - showSlides + 1), true).map(function (_, idx) {
|
|
135
|
+
return (_jsx(Div, __assign({ style: {
|
|
136
|
+
transform: "translateX(".concat(dir).concat(currentIndex * (130), "%)"),
|
|
137
|
+
transition: !transitionEnabled ? 'none' : undefined
|
|
138
|
+
}, className: classNames('w-4 h-4 min-h-4 min-w-4 rounded-full mb-0 transition-all duration-500 justify-center items-center', currentIndex === idx ? "bg-".concat(indicatorActiveColor) : 'bg-transparent'), onClick: function () {
|
|
139
|
+
setCurrentIndex(idx);
|
|
140
|
+
} }, { children: _jsx(Div, { className: classNames(currentIndex === idx ? "bg-".concat(indicatorActiveColor) : 'bg-grey-100', "rounded-full transition-all duration-500 justify-center items-center", BulletWidth(Math.abs(4 - Math.abs(currentIndex - idx)))) }) }), idx));
|
|
141
|
+
}) }))) : null }))) : null] })));
|
|
150
142
|
};
|
|
151
143
|
var ArrowIcon = function (_a) {
|
|
152
144
|
var className = _a.className;
|
|
153
|
-
return (
|
|
154
|
-
React.createElement("path", { fill: 'currentColor', strokeMiterlimit: "10", strokeWidth: "0", d: "M24.64 90L20.36 85.72 61.08 45 20.36 4.28 24.64 0 69.64 45z", transform: "matrix(2.81 0 0 2.81 1.407 1.407)" })));
|
|
145
|
+
return (_jsx("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", width: "256", height: "256", viewBox: "0 0 256 256", fill: 'currentColor', className: "h-3 w-3 ".concat(className) }, { children: _jsx("path", { fill: 'currentColor', strokeMiterlimit: "10", strokeWidth: "0", d: "M24.64 90L20.36 85.72 61.08 45 20.36 4.28 24.64 0 69.64 45z", transform: "matrix(2.81 0 0 2.81 1.407 1.407)" }) })));
|
|
155
146
|
};
|
|
156
147
|
export default Slider;
|
|
157
148
|
var BulletWidth = function (w) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slider.js","sourceRoot":"","sources":["../../../modules/slider/slider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"slider.js","sourceRoot":"","sources":["../../../modules/slider/slider.tsx"],"names":[],"mappings":";;AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,UAAU,MAAM,yBAAyB,CAAC;AAEjD,IAAM,MAAM,GAAG,UACb,EAmBc;QAlBZ,QAAQ,cAAA,EACR,aAAY,EAAZ,KAAK,mBAAG,IAAI,KAAA,EACZ,oBAAgB,EAAhB,YAAY,mBAAG,CAAC,KAAA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AA6B,CAAC;QACvC,KAAK,CAAC;YACJ,OAAO,6BAA6B,CAAC;QACvC;YACE,OAAO,SAAS,CAAC;KACpB;AACH,CAAC,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { CalendarProps } from '../../modules/calendar/calendar.props';
|
|
3
2
|
/**
|
|
4
3
|
* Primary UI component for user interaction
|
|
5
4
|
*/
|
|
6
|
-
export declare const Calendar: ({ ...props }: CalendarProps) => JSX.Element;
|
|
5
|
+
export declare const Calendar: ({ ...props }: CalendarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __assign, __rest } from "tslib";
|
|
2
|
-
import
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import CustomCalendar from '../../modules/calendar';
|
|
4
4
|
/**
|
|
5
5
|
* Primary UI component for user interaction
|
|
6
6
|
*/
|
|
7
7
|
export var Calendar = function (_a) {
|
|
8
8
|
var props = __rest(_a, []);
|
|
9
|
-
return (
|
|
9
|
+
return (_jsx(CustomCalendar, __assign({}, props)));
|
|
10
10
|
};
|
|
11
11
|
//# sourceMappingURL=calendar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar.js","sourceRoot":"","sources":["../../../stories/calendar/calendar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"calendar.js","sourceRoot":"","sources":["../../../stories/calendar/calendar.tsx"],"names":[],"mappings":";;AAAA,OAAO,cAAc,MAAM,wBAAwB,CAAC;AAGpD;;GAEG;AACH,MAAM,CAAC,IAAM,QAAQ,GAAG,UAAC,EAA2B;QAAtB,KAAK,cAAV,EAAY,CAAF;IACjC,OAAO,CACL,KAAC,cAAc,eAAK,KAAK,EAAG,CAC7B,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const Default:
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Calendar } from './calendar';
|
|
3
|
+
declare const meta: Meta<typeof Calendar>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Calendar>;
|
|
6
|
+
export declare const Default: Story;
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
|
-
import
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { useState } from 'react';
|
|
3
4
|
import { Calendar } from './calendar';
|
|
4
|
-
|
|
5
|
+
var meta = {
|
|
5
6
|
title: 'Calendar',
|
|
6
7
|
component: Calendar,
|
|
7
8
|
argTypes: {}
|
|
8
9
|
};
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
export default meta;
|
|
11
|
+
export var Default = {
|
|
12
|
+
render: function (args) {
|
|
13
|
+
var _a = useState(''), selectedDate = _a[0], setSelectedDate = _a[1];
|
|
14
|
+
var handleChange = function (e) {
|
|
15
|
+
setSelectedDate(e.jalaliDate);
|
|
16
|
+
};
|
|
17
|
+
return _jsx(Calendar, __assign({}, args, { selected: selectedDate, onChange: handleChange }));
|
|
18
|
+
}
|
|
15
19
|
};
|
|
16
|
-
export var Default = Template.bind({});
|
|
17
20
|
//# sourceMappingURL=calendar.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar.stories.js","sourceRoot":"","sources":["../../../stories/calendar/calendar.stories.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"calendar.stories.js","sourceRoot":"","sources":["../../../stories/calendar/calendar.stories.tsx"],"names":[],"mappings":";;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,IAAM,IAAI,GAA0B;IAClC,KAAK,EAAE,UAAU;IACjB,SAAS,EAAE,QAAQ;IACnB,QAAQ,EAAE,EACT;CACF,CAAC;AAEF,eAAe,IAAI,CAAC;AAGpB,MAAM,CAAC,IAAM,OAAO,GAAU;IAC5B,MAAM,EAAE,UAAC,IAAI;QACL,IAAA,KAAkC,QAAQ,CAAS,EAAE,CAAC,EAArD,YAAY,QAAA,EAAE,eAAe,QAAwB,CAAC;QAE7D,IAAM,YAAY,GAAG,UAAC,CAAM;YAC1B,eAAe,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC;QAChC,CAAC,CAAC;QAEF,OAAO,KAAC,QAAQ,eAAK,IAAI,IAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE,YAAY,IAAI,CAAC;IAChF,CAAC;CACF,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { CountdownProps } from '../../modules/countdown-timer/countdown.props';
|
|
3
2
|
/**
|
|
4
3
|
* Primary UI component for user interaction
|
|
5
4
|
*/
|
|
6
|
-
export declare const CountDown: ({ ...props }: CountdownProps) => JSX.Element;
|
|
5
|
+
export declare const CountDown: ({ ...props }: CountdownProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __assign, __rest } from "tslib";
|
|
2
|
-
import
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import CustomCountDown from '../../modules/countdown-timer';
|
|
4
4
|
/**
|
|
5
5
|
* Primary UI component for user interaction
|
|
6
6
|
*/
|
|
7
7
|
export var CountDown = function (_a) {
|
|
8
8
|
var props = __rest(_a, []);
|
|
9
|
-
return (
|
|
9
|
+
return (_jsx(CustomCountDown, __assign({}, props)));
|
|
10
10
|
};
|
|
11
11
|
//# sourceMappingURL=count-down.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"count-down.js","sourceRoot":"","sources":["../../../stories/count-down/count-down.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"count-down.js","sourceRoot":"","sources":["../../../stories/count-down/count-down.tsx"],"names":[],"mappings":";;AAAA,OAAO,eAAe,MAAM,+BAA+B,CAAC;AAG5D;;GAEG;AACH,MAAM,CAAC,IAAM,SAAS,GAAG,UAAC,EAA4B;QAAvB,KAAK,cAAV,EAAY,CAAF;IAClC,OAAO,CACL,KAAC,eAAe,eAAK,KAAK,EAAI,CAC/B,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const Default:
|
|
1
|
+
import { CountDown } from './count-down';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
declare const meta: Meta<typeof CountDown>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof CountDown>;
|
|
6
|
+
export declare const Default: Story;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { __assign
|
|
2
|
-
import
|
|
1
|
+
import { __assign } from "tslib";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { CountDown } from './count-down';
|
|
4
|
-
|
|
4
|
+
var meta = {
|
|
5
5
|
title: 'CountDownTimer',
|
|
6
|
-
component: CountDown
|
|
6
|
+
component: CountDown,
|
|
7
|
+
argTypes: {}
|
|
7
8
|
};
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
export default meta;
|
|
10
|
+
export var Default = {
|
|
11
|
+
render: function (args) {
|
|
12
|
+
return _jsx(CountDown, __assign({}, args));
|
|
13
|
+
}
|
|
11
14
|
};
|
|
12
|
-
export var Default = Template.bind({});
|
|
13
15
|
//# sourceMappingURL=count-down.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"count-down.stories.js","sourceRoot":"","sources":["../../../stories/count-down/count-down.stories.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"count-down.stories.js","sourceRoot":"","sources":["../../../stories/count-down/count-down.stories.tsx"],"names":[],"mappings":";;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,IAAM,IAAI,GAA2B;IACnC,KAAK,EAAE,gBAAgB;IACvB,SAAS,EAAE,SAAS;IACpB,QAAQ,EAAE,EACT;CACF,CAAC;AAEF,eAAe,IAAI,CAAC;AAGpB,MAAM,CAAC,IAAM,OAAO,GAAU;IAC5B,MAAM,EAAE,UAAC,IAAI;QACX,OAAO,KAAC,SAAS,eAAK,IAAI,EAAI,CAAC;IACjC,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ColumnDef } from '@tanstack/react-table';
|
|
2
|
+
export declare const header: {
|
|
3
|
+
id: string;
|
|
4
|
+
category_id: string;
|
|
5
|
+
title: string;
|
|
6
|
+
code: string;
|
|
7
|
+
environment: string;
|
|
8
|
+
type: string;
|
|
9
|
+
status: string;
|
|
10
|
+
created_at: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const columns: ColumnDef<any>[];
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { __assign } from "tslib";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { Chip, Text } from '@pezeshk-book/ui-kit';
|
|
4
|
+
export var header = {
|
|
5
|
+
id: 'ID',
|
|
6
|
+
category_id: 'categoryId',
|
|
7
|
+
title: 'Title',
|
|
8
|
+
code: 'Code',
|
|
9
|
+
environment: 'Environment',
|
|
10
|
+
type: 'Type',
|
|
11
|
+
status: 'Status',
|
|
12
|
+
created_at: 'CreatedAt'
|
|
13
|
+
};
|
|
14
|
+
export var columns = [
|
|
15
|
+
{
|
|
16
|
+
id: 'id',
|
|
17
|
+
accessorKey: 'id',
|
|
18
|
+
header: header.id,
|
|
19
|
+
cell: function (info) { return _jsx(Text, __assign({ typography: 'sm' }, { children: info.row.original.id || '-' })); }
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
id: 'category_id',
|
|
23
|
+
accessorKey: 'category_id',
|
|
24
|
+
header: header.category_id,
|
|
25
|
+
cell: function (info) { return _jsx(Text, __assign({ typography: 'sm' }, { children: info.row.original.category_id || '-' })); }
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
id: 'title',
|
|
29
|
+
accessorKey: 'title',
|
|
30
|
+
header: header.title,
|
|
31
|
+
cell: function (info) { return _jsx(Text, __assign({ typography: 'sm' }, { children: info.row.original.title || '-' })); }
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
id: 'code',
|
|
35
|
+
accessorKey: 'code',
|
|
36
|
+
header: header.code,
|
|
37
|
+
cell: function (info) { return _jsx(Text, __assign({ typography: 'sm' }, { children: info.row.original.code || '-' })); }
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
id: 'environment',
|
|
41
|
+
accessorKey: 'environment',
|
|
42
|
+
header: header.environment,
|
|
43
|
+
cell: function (info) {
|
|
44
|
+
return _jsx(Text, __assign({ typography: 'sm' }, { children: info.row.original.environment || '-' }));
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
id: 'type',
|
|
49
|
+
accessorKey: 'type',
|
|
50
|
+
header: header.type,
|
|
51
|
+
cell: function (info) {
|
|
52
|
+
return _jsx(Chip, { size: 'small', variant: 'reverse', color: info.row.original.type === 'Hardware' ? 'info' : 'secondary', value: info.row.original.type });
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
id: 'status',
|
|
57
|
+
accessorKey: 'status',
|
|
58
|
+
header: header.status,
|
|
59
|
+
cell: function (info) {
|
|
60
|
+
return _jsx(Chip, { size: 'small', variant: 'reverse', color: info.row.original.status === 'Active' ? 'green' : 'red', value: info.row.original.status });
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
id: 'created_at',
|
|
65
|
+
accessorKey: 'created_at',
|
|
66
|
+
header: header.created_at,
|
|
67
|
+
cell: function (info) { return _jsx(Text, __assign({ typography: 'sm' }, { children: info.row.original.created_at })); }
|
|
68
|
+
},
|
|
69
|
+
];
|
|
70
|
+
//# sourceMappingURL=data-table-columns.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-table-columns.js","sourceRoot":"","sources":["../../../stories/data-table/data-table-columns.tsx"],"names":[],"mappings":";;AACA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAElD,MAAM,CAAC,IAAM,MAAM,GAAG;IACpB,EAAE,EAAE,IAAI;IACR,WAAW,EAAE,YAAY;IACzB,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,aAAa;IAC1B,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;IAChB,UAAU,EAAE,WAAW;CACxB,CAAC;AAEF,MAAM,CAAC,IAAM,OAAO,GAAqB;IACvC;QACE,EAAE,EAAE,IAAI;QACR,WAAW,EAAE,IAAI;QACjB,MAAM,EAAE,MAAM,CAAC,EAAE;QACjB,IAAI,EAAE,UAAA,IAAI,IAAI,OAAA,KAAC,IAAI,aAAC,UAAU,EAAE,IAAI,gBAAG,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,IAAI,GAAG,IAAQ,EAA5D,CAA4D;KAC3E;IACD;QACE,EAAE,EAAE,aAAa;QACjB,WAAW,EAAE,aAAa;QAC1B,MAAM,EAAE,MAAM,CAAC,WAAW;QAC1B,IAAI,EAAE,UAAA,IAAI,IAAI,OAAA,KAAC,IAAI,aAAC,UAAU,EAAE,IAAI,gBAAG,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,WAAW,IAAI,GAAG,IAAQ,EAArE,CAAqE;KACpF;IACD;QACE,EAAE,EAAE,OAAO;QACX,WAAW,EAAE,OAAO;QACpB,MAA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;YACR,OAAO,KAAC,IAAI,IAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC;QACrJ,CAAC;KACF;IACD;QACE,EAAE,EAAE,YAAY;QAChB,WAAW,EAAE,YAAY;QACzB,MAAM,EAAE,MAAM,CAAC,UAAU;QACzB,IAAI,EAAE,UAAA,IAAI,IAAI,OAAA,KAAC,IAAI,aAAC,UAAU,EAAE,IAAI,gBAAG,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,IAAQ,EAA7D,CAA6D;KAC5E;CACF,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { __assign, __rest } from "tslib";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import CustomDataTable from '../../modules/data-table';
|
|
4
|
+
import dummyData from './dummy-data';
|
|
5
|
+
import { header, columns } from './data-table-columns';
|
|
6
|
+
/**
|
|
7
|
+
* Primary UI component for user interaction
|
|
8
|
+
*/
|
|
9
|
+
export var DataTable = function (_a) {
|
|
10
|
+
var props = __rest(_a, []);
|
|
11
|
+
return (_jsx(CustomDataTable, __assign({}, props, { data: dummyData, header: header, total: 20, perPage: 20, lastPage: 1, column: columns })));
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=data-table.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-table.js","sourceRoot":"","sources":["../../../stories/data-table/data-table.tsx"],"names":[],"mappings":";;AAAA,OAAO,eAAe,MAAM,0BAA0B,CAAC;AAEvD,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;GAEG;AACH,MAAM,CAAC,IAAM,SAAS,GAAG,UAAC,EAA4B;QAAvB,KAAK,cAAV,EAAY,CAAF;IAClC,OAAO,CACL,KAAC,eAAe,eACV,KAAK,IACT,IAAI,EAAE,SAAS,EACf,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,EAAE,EACT,OAAO,EAAE,EAAE,EACX,QAAQ,EAAE,CAAC,EACX,MAAM,EAAE,OAAO,IACf,CACH,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { __assign } from "tslib";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { DataTable } from './data-table';
|
|
4
|
+
var meta = {
|
|
5
|
+
title: 'DataTable',
|
|
6
|
+
component: DataTable,
|
|
7
|
+
argTypes: {}
|
|
8
|
+
};
|
|
9
|
+
export default meta;
|
|
10
|
+
export var Default = {
|
|
11
|
+
render: function (args) {
|
|
12
|
+
return _jsx(DataTable, __assign({}, args));
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=data-table.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-table.stories.js","sourceRoot":"","sources":["../../../stories/data-table/data-table.stories.tsx"],"names":[],"mappings":";;AACA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,IAAM,IAAI,GAA2B;IACnC,KAAK,EAAE,WAAW;IAClB,SAAS,EAAE,SAAS;IACpB,QAAQ,EAAE,EACT;CACF,CAAC;AAEF,eAAe,IAAI,CAAC;AAGpB,MAAM,CAAC,IAAM,OAAO,GAAU;IAC5B,MAAM,EAAE,UAAC,IAAqB;QAC5B,OAAO,KAAC,SAAS,eAAK,IAAI,EAAI,CAAC;IACjC,CAAC;CACF,CAAC"}
|