@pezeshk-book/modules 0.1.7 → 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 +3 -22
- 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/package.json +7 -4
|
@@ -1,20 +1,23 @@
|
|
|
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 { Pagination } from './pagination';
|
|
4
|
-
|
|
5
|
+
var meta = {
|
|
5
6
|
title: 'Pagination',
|
|
6
7
|
component: Pagination,
|
|
7
8
|
argTypes: {}
|
|
8
9
|
};
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
10
|
+
export default meta;
|
|
11
|
+
export var Default = {
|
|
12
|
+
render: function (args) {
|
|
13
|
+
var _a = useState(1), page = _a[0], setPage = _a[1];
|
|
14
|
+
var nextPageHandler = function () {
|
|
15
|
+
setPage(function (prevState) { return prevState + 1; });
|
|
16
|
+
};
|
|
17
|
+
var previousPageHandler = function () {
|
|
18
|
+
setPage(function (prevState) { return prevState - 1; });
|
|
19
|
+
};
|
|
20
|
+
return _jsx(Pagination, __assign({ currentPage: page, nextPage: nextPageHandler, previousPage: previousPageHandler }, args));
|
|
21
|
+
}
|
|
18
22
|
};
|
|
19
|
-
export var Default = Template.bind({});
|
|
20
23
|
//# sourceMappingURL=pagination.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.stories.js","sourceRoot":"","sources":["../../../stories/pagination/pagination.stories.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pagination.stories.js","sourceRoot":"","sources":["../../../stories/pagination/pagination.stories.tsx"],"names":[],"mappings":";;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,IAAM,IAAI,GAA4B;IACpC,KAAK,EAAE,YAAY;IACnB,SAAS,EAAE,UAAU;IACrB,QAAQ,EAAE,EACT;CACF,CAAC;AAEF,eAAe,IAAI,CAAC;AAGpB,MAAM,CAAC,IAAM,OAAO,GAAU;IAC5B,MAAM,EAAE,UAAC,IAAI;QACL,IAAA,KAAkB,QAAQ,CAAS,CAAC,CAAC,EAApC,IAAI,QAAA,EAAE,OAAO,QAAuB,CAAC;QAE5C,IAAM,eAAe,GAAG;YACtB,OAAO,CAAC,UAAC,SAAS,IAAK,OAAA,SAAS,GAAG,CAAC,EAAb,CAAa,CAAC,CAAC;QACxC,CAAC,CAAC;QAEF,IAAM,mBAAmB,GAAG;YAC1B,OAAO,CAAC,UAAC,SAAS,IAAK,OAAA,SAAS,GAAG,CAAC,EAAb,CAAa,CAAC,CAAC;QACxC,CAAC,CAAC;QAEF,OAAO,KAAC,UAAU,aAChB,WAAW,EAAE,IAAI,EACjB,QAAQ,EAAE,eAAe,EACzB,YAAY,EAAE,mBAAmB,IAC7B,IAAI,EACR,CAAC;IACL,CAAC;CACF,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { SliderProps } from '../../modules/slider/slider.props';
|
|
3
2
|
/**
|
|
4
3
|
* Primary UI component for user interaction
|
|
5
4
|
*/
|
|
6
|
-
export declare const Slider: ({ ...props }: SliderProps) => JSX.Element;
|
|
5
|
+
export declare const Slider: ({ ...props }: SliderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,22 +1,11 @@
|
|
|
1
1
|
import { __assign, __rest } from "tslib";
|
|
2
|
-
import
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import CustomSlider from '../../modules/slider';
|
|
4
4
|
/**
|
|
5
5
|
* Primary UI component for user interaction
|
|
6
6
|
*/
|
|
7
7
|
export var Slider = function (_a) {
|
|
8
8
|
var props = __rest(_a, []);
|
|
9
|
-
return (
|
|
10
|
-
React.createElement("div", { className: 'h-40 bg-secondary justify-center items-center flex text-d-xl text-control-50' }, "1"),
|
|
11
|
-
React.createElement("div", { className: 'h-40 bg-black justify-center items-center flex text-d-xl text-control-50' }, "2"),
|
|
12
|
-
React.createElement("div", { className: 'h-40 bg-danger-800 justify-center items-center flex text-d-xl text-control-50' }, "3"),
|
|
13
|
-
React.createElement("div", { className: 'h-40 bg-info-900 justify-center items-center flex text-d-xl text-control-50' }, "4"),
|
|
14
|
-
React.createElement("div", { className: 'h-40 bg-tertiary justify-center items-center flex text-d-xl text-control-50' }, "5"),
|
|
15
|
-
React.createElement("div", { className: 'h-40 bg-danger-dark justify-center items-center flex text-d-xl text-control-50' }, "6"),
|
|
16
|
-
React.createElement("div", { className: 'h-40 bg-purple-900 justify-center items-center flex text-d-xl text-control-50' }, "7"),
|
|
17
|
-
React.createElement("div", { className: 'h-40 bg-success-900 justify-center items-center flex text-d-xl text-control-50' }, "8"),
|
|
18
|
-
React.createElement("div", { className: 'h-40 bg-success-200 justify-center items-center flex text-d-xl text-control-50' }, "9"),
|
|
19
|
-
React.createElement("div", { className: 'h-40 bg-black justify-center items-center flex text-d-xl text-control-50' }, "10"),
|
|
20
|
-
React.createElement("div", { className: 'h-40 bg-danger-800 justify-center items-center flex text-d-xl text-control-50' }, "11")));
|
|
9
|
+
return (_jsxs(CustomSlider, __assign({}, props, { children: [_jsx("div", __assign({ className: 'h-40 bg-secondary justify-center items-center flex text-d-xl text-control-50' }, { children: "1" })), _jsx("div", __assign({ className: 'h-40 bg-black justify-center items-center flex text-d-xl text-control-50' }, { children: "2" })), _jsx("div", __assign({ className: 'h-40 bg-danger-800 justify-center items-center flex text-d-xl text-control-50' }, { children: "3" })), _jsx("div", __assign({ className: 'h-40 bg-info-900 justify-center items-center flex text-d-xl text-control-50' }, { children: "4" })), _jsx("div", __assign({ className: 'h-40 bg-tertiary justify-center items-center flex text-d-xl text-control-50' }, { children: "5" })), _jsx("div", __assign({ className: 'h-40 bg-danger-dark justify-center items-center flex text-d-xl text-control-50' }, { children: "6" })), _jsx("div", __assign({ className: 'h-40 bg-purple-900 justify-center items-center flex text-d-xl text-control-50' }, { children: "7" })), _jsx("div", __assign({ className: 'h-40 bg-success-900 justify-center items-center flex text-d-xl text-control-50' }, { children: "8" })), _jsx("div", __assign({ className: 'h-40 bg-success-200 justify-center items-center flex text-d-xl text-control-50' }, { children: "9" })), _jsx("div", __assign({ className: 'h-40 bg-black justify-center items-center flex text-d-xl text-control-50' }, { children: "10" })), _jsx("div", __assign({ className: 'h-40 bg-danger-800 justify-center items-center flex text-d-xl text-control-50' }, { children: "11" }))] })));
|
|
21
10
|
};
|
|
22
11
|
//# sourceMappingURL=slider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slider.js","sourceRoot":"","sources":["../../../stories/slider/slider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"slider.js","sourceRoot":"","sources":["../../../stories/slider/slider.tsx"],"names":[],"mappings":";;AAAA,OAAO,YAAY,MAAM,sBAAsB,CAAC;AAGhD;;GAEG;AACH,MAAM,CAAC,IAAM,MAAM,GAAG,UAAC,EAAyB;QAApB,KAAK,cAAV,EAAY,CAAF;IAC/B,OAAO,CACL,MAAC,YAAY,eAAK,KAAK,eACrB,uBAAK,SAAS,EAAE,8EAA8E,uBAExF,EACN,uBAAK,SAAS,EAAE,0EAA0E,uBAEpF,EACN,uBAAK,SAAS,EAAE,+EAA+E,uBAEzF,EACN,uBAAK,SAAS,EAAE,6EAA6E,uBAEvF,EACN,uBAAK,SAAS,EAAE,6EAA6E,uBAEvF,EACN,uBAAK,SAAS,EAAE,gFAAgF,uBAE1F,EACN,uBAAK,SAAS,EAAE,+EAA+E,uBAEzF,EACN,uBAAK,SAAS,EAAE,gFAAgF,uBAE1F,EACN,uBAAK,SAAS,EAAE,gFAAgF,uBAE1F,EACN,uBAAK,SAAS,EAAE,0EAA0E,wBAEpF,EACN,uBAAK,SAAS,EAAE,+EAA+E,wBAEzF,KACO,CAChB,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const Default:
|
|
1
|
+
import { Slider } from './slider';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
declare const meta: Meta<typeof Slider>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Slider>;
|
|
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 { Slider } from './slider';
|
|
4
|
-
|
|
4
|
+
var meta = {
|
|
5
5
|
title: 'Slider',
|
|
6
|
-
component: Slider
|
|
6
|
+
component: Slider,
|
|
7
|
+
argTypes: {}
|
|
7
8
|
};
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
export default meta;
|
|
10
|
+
export var Default = {
|
|
11
|
+
render: function (args) {
|
|
12
|
+
return _jsx(Slider, __assign({}, args));
|
|
13
|
+
}
|
|
11
14
|
};
|
|
12
|
-
export var Default = Template.bind({});
|
|
13
15
|
//# sourceMappingURL=slider.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slider.stories.js","sourceRoot":"","sources":["../../../stories/slider/slider.stories.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"slider.stories.js","sourceRoot":"","sources":["../../../stories/slider/slider.stories.tsx"],"names":[],"mappings":";;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,IAAM,IAAI,GAAwB;IAChC,KAAK,EAAE,QAAQ;IACf,SAAS,EAAE,MAAM;IACjB,QAAQ,EAAE,EACT;CACF,CAAC;AAEF,eAAe,IAAI,CAAC;AAGpB,MAAM,CAAC,IAAM,OAAO,GAAU;IAC5B,MAAM,EAAE,UAAC,IAAI;QACX,OAAO,KAAC,MAAM,eAAK,IAAI,EAAI,CAAC;IAC9B,CAAC;CACF,CAAC"}
|
package/dist/stories/wrapper.js
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { __assign } from "tslib";
|
|
2
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
3
|
import { Text } from '@pezeshk-book/ui-kit';
|
|
3
4
|
export var Wrapper = function (_a) {
|
|
4
5
|
var title = _a.title, children = _a.children, className = _a.className, titleColor = _a.titleColor;
|
|
5
|
-
return (
|
|
6
|
-
React.createElement(Text, { direction: 'ltr', align: 'left', className: "".concat(titleColor, " min-w-[100px] whitespace-nowrap") },
|
|
7
|
-
title,
|
|
8
|
-
":"),
|
|
9
|
-
children));
|
|
6
|
+
return (_jsxs("div", __assign({ className: "flex gap-2 items-center ".concat(className) }, { children: [_jsxs(Text, __assign({ direction: 'ltr', align: 'left', className: "".concat(titleColor, " min-w-[100px] whitespace-nowrap") }, { children: [title, ":"] })), children] })));
|
|
10
7
|
};
|
|
11
8
|
//# sourceMappingURL=wrapper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wrapper.js","sourceRoot":"","sources":["../../stories/wrapper.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"wrapper.js","sourceRoot":"","sources":["../../stories/wrapper.tsx"],"names":[],"mappings":";;AACA,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAE5C,MAAM,CAAC,IAAM,OAAO,GAAG,UAAC,EAA2H;QAAzH,KAAK,WAAA,EAAE,QAAQ,cAAA,EAAE,SAAS,eAAA,EAAE,UAAU,gBAAA;IAC9D,OAAO,CACL,wBAAK,SAAS,EAAE,kCAA2B,SAAS,CAAE,iBACpD,MAAC,IAAI,aAAC,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,UAAG,UAAU,qCAAkC,iBAAG,KAAK,UAAS,EACjH,QAAQ,KACL,CACP,CAAC;AACJ,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pezeshk-book/modules",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"types": "./dist/index.d.ts",
|
|
5
5
|
"main": "./dist/index.ts",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -26,9 +26,12 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@babel/polyfill": "7.12.1",
|
|
28
28
|
"postcss": "8.4.31",
|
|
29
|
-
"tailwindcss": "3.
|
|
30
|
-
"@pezeshk-book/ui-kit": "^0.3.
|
|
31
|
-
"react-date-object": "2.1.7"
|
|
29
|
+
"tailwindcss": "3.4.17",
|
|
30
|
+
"@pezeshk-book/ui-kit": "^0.3.66",
|
|
31
|
+
"react-date-object": "2.1.7",
|
|
32
|
+
"use-debounce": "^10.0.3",
|
|
33
|
+
"@tanstack/react-table": "^8.20.5",
|
|
34
|
+
"motion": "^11.17.0"
|
|
32
35
|
},
|
|
33
36
|
"peerDependencies": {
|
|
34
37
|
"react": "^18.2.0",
|