@pedidopago/ui 1.5.12 → 1.5.13
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/components/List/types.d.ts +1 -0
- package/dist/components/List/types.d.ts.map +1 -1
- package/dist/components/Table/components/TableSkeleton.d.ts +4 -0
- package/dist/components/Table/components/TableSkeleton.d.ts.map +1 -0
- package/dist/components/Table/components/TableSkeleton.js +45 -0
- package/dist/components/Table/index.d.ts +1 -1
- package/dist/components/Table/index.d.ts.map +1 -1
- package/dist/components/Table/index.js +14 -2
- package/dist/components/Table/types.d.ts +14 -0
- package/dist/components/Table/types.d.ts.map +1 -1
- package/dist/components/Toast/contexts/ToastProvider.d.ts +4 -4
- package/dist/components/Toast/contexts/ToastProvider.d.ts.map +1 -1
- package/dist/components/Toast/types.d.ts +4 -1
- package/dist/components/Toast/types.d.ts.map +1 -1
- package/dist/shared/tests/test-utils.d.ts.map +1 -1
- package/dist/shared/tests/types.d.ts +5 -0
- package/dist/shared/tests/types.d.ts.map +1 -0
- package/dist/shared/tests/types.js +1 -0
- package/dist/shared/theme/theme.test.js +2 -1
- package/package.json +6 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/List/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE1C,MAAM,WAAW,SAAS;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/List/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE1C,MAAM,WAAW,SAAS;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableSkeleton.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/components/TableSkeleton.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAejD,wBAAgB,aAAa,CAAC,EAC5B,eAAe,EACf,YAAY,EACZ,cAAc,GACf,EAAE,qBAAqB,iBAIvB"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.TableSkeleton = TableSkeleton;
|
|
7
|
+
|
|
8
|
+
var _Skeleton = _interopRequireDefault(require("../../../components/Skeleton"));
|
|
9
|
+
|
|
10
|
+
var _GenerateKey = require("../../../utils/GenerateKey");
|
|
11
|
+
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
|
|
16
|
+
function TableSkeletonColumns(_ref) {
|
|
17
|
+
var skeletonColumns = _ref.skeletonColumns,
|
|
18
|
+
skeletonHeight = _ref.skeletonHeight;
|
|
19
|
+
return Array.from({
|
|
20
|
+
length: skeletonColumns
|
|
21
|
+
}).map(function () {
|
|
22
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("td", {
|
|
23
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Skeleton.default, {
|
|
24
|
+
isLoaded: false,
|
|
25
|
+
height: skeletonHeight
|
|
26
|
+
})
|
|
27
|
+
}, (0, _GenerateKey.generateKey)());
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function TableSkeleton(_ref2) {
|
|
32
|
+
var skeletonColumns = _ref2.skeletonColumns,
|
|
33
|
+
skeletonRows = _ref2.skeletonRows,
|
|
34
|
+
skeletonHeight = _ref2.skeletonHeight;
|
|
35
|
+
return Array.from({
|
|
36
|
+
length: skeletonRows
|
|
37
|
+
}).map(function () {
|
|
38
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("tr", {
|
|
39
|
+
children: TableSkeletonColumns({
|
|
40
|
+
skeletonColumns: skeletonColumns,
|
|
41
|
+
skeletonHeight: skeletonHeight
|
|
42
|
+
})
|
|
43
|
+
}, (0, _GenerateKey.generateKey)());
|
|
44
|
+
});
|
|
45
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import { ITableProps } from './types';
|
|
3
|
-
export declare function Table({ selectable, primaryActions, secondaryActions, header, rows, ...rest }: ITableProps & ComponentPropsWithoutRef<'table'>): JSX.Element;
|
|
3
|
+
export declare function Table({ selectable, primaryActions, secondaryActions, header, rows, isLoading, skeletonRows, skeletonHeight, ...rest }: ITableProps & ComponentPropsWithoutRef<'table'>): JSX.Element;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Table/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAkD,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Table/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAkD,MAAM,OAAO,CAAC;AAuBjG,OAAO,EAAE,WAAW,EAAkB,MAAM,SAAS,CAAC;AAMtD,wBAAgB,KAAK,CAAC,EACpB,UAAU,EACV,cAAc,EACd,gBAAgB,EAChB,MAAM,EACN,IAAI,EACJ,SAAiB,EACjB,YAAgB,EAChB,cAAuB,EACvB,GAAG,IAAI,EACR,EAAE,WAAW,GAAG,wBAAwB,CAAC,OAAO,CAAC,eAyMjD"}
|
|
@@ -17,6 +17,8 @@ var _MenuItem = require("./components/MenuItem");
|
|
|
17
17
|
|
|
18
18
|
var _FocusLock = _interopRequireDefault(require("../../shared/components/FocusLock"));
|
|
19
19
|
|
|
20
|
+
var _TableSkeleton = require("./components/TableSkeleton");
|
|
21
|
+
|
|
20
22
|
var _styles = require("./styles");
|
|
21
23
|
|
|
22
24
|
var _useColorMode2 = require("../../shared/theme/hooks/useColorMode");
|
|
@@ -25,7 +27,7 @@ var _GenerateKey = require("../../utils/GenerateKey");
|
|
|
25
27
|
|
|
26
28
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
27
29
|
|
|
28
|
-
var _excluded = ["selectable", "primaryActions", "secondaryActions", "header", "rows"];
|
|
30
|
+
var _excluded = ["selectable", "primaryActions", "secondaryActions", "header", "rows", "isLoading", "skeletonRows", "skeletonHeight"];
|
|
29
31
|
|
|
30
32
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
31
33
|
|
|
@@ -65,6 +67,12 @@ function Table(_ref) {
|
|
|
65
67
|
secondaryActions = _ref.secondaryActions,
|
|
66
68
|
header = _ref.header,
|
|
67
69
|
rows = _ref.rows,
|
|
70
|
+
_ref$isLoading = _ref.isLoading,
|
|
71
|
+
isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
|
|
72
|
+
_ref$skeletonRows = _ref.skeletonRows,
|
|
73
|
+
skeletonRows = _ref$skeletonRows === void 0 ? 5 : _ref$skeletonRows,
|
|
74
|
+
_ref$skeletonHeight = _ref.skeletonHeight,
|
|
75
|
+
skeletonHeight = _ref$skeletonHeight === void 0 ? '16px' : _ref$skeletonHeight,
|
|
68
76
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
69
77
|
|
|
70
78
|
var _useState = (0, _react.useState)([]),
|
|
@@ -225,7 +233,11 @@ function Table(_ref) {
|
|
|
225
233
|
})]
|
|
226
234
|
})
|
|
227
235
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("tbody", {
|
|
228
|
-
children:
|
|
236
|
+
children: isLoading ? (0, _TableSkeleton.TableSkeleton)({
|
|
237
|
+
skeletonColumns: (header === null || header === void 0 ? void 0 : header.length) || 1,
|
|
238
|
+
skeletonRows: skeletonRows,
|
|
239
|
+
skeletonHeight: skeletonHeight
|
|
240
|
+
}) : rowsWithKey.map(function (row) {
|
|
229
241
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("tr", {
|
|
230
242
|
tabIndex: selectable ? 0 : undefined,
|
|
231
243
|
"data-selected": selectedRows.includes(row.key),
|
|
@@ -24,6 +24,12 @@ export interface ITableProps {
|
|
|
24
24
|
header: string[];
|
|
25
25
|
/** An array of TableCell's arrays each matching a row of the table. Each TableCell corresponds to the content displayed inside a table cell. */
|
|
26
26
|
rows: TableRow[];
|
|
27
|
+
/** A boolean that is used to determine if the table is loading. */
|
|
28
|
+
isLoading?: boolean;
|
|
29
|
+
/** Used to determine how many rows to display when the table is loading. */
|
|
30
|
+
skeletonRows?: number;
|
|
31
|
+
/** Used to determine how many columns to display when the table is loading. */
|
|
32
|
+
skeletonHeight?: string | number;
|
|
27
33
|
}
|
|
28
34
|
export interface IMenuItem {
|
|
29
35
|
/** Table row dropdown menu items. */
|
|
@@ -37,4 +43,12 @@ export interface IMenuItem {
|
|
|
37
43
|
/** The left position of the dropdown menu */
|
|
38
44
|
right?: number;
|
|
39
45
|
}
|
|
46
|
+
export interface ITableSkeletonColumns {
|
|
47
|
+
/** Used to determine how many columns to display when the table is loading. */
|
|
48
|
+
skeletonColumns: number;
|
|
49
|
+
/** Used to determine how many rows to display when the table is loading. */
|
|
50
|
+
skeletonRows: number;
|
|
51
|
+
/** Used to determine how many columns to display when the table is loading. */
|
|
52
|
+
skeletonHeight?: string | number;
|
|
53
|
+
}
|
|
40
54
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Table/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,SAAS,CAAC;IACjB,OAAO,EAAE,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,EAAE,WAAW,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CACnE;AAED,oBAAY,QAAQ,GAAG;IACrB,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,OAAO,CAAC,EAAE,WAAW,EAAE,CAAC;CACzB,CAAC;AAEF,gEAAgE;AAChE,oBAAY,SAAS,GAAG,SAAS,CAAC;AAElC,oBAAY,cAAc,GAAG;IAC3B,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,WAAW,WAAW;IAC1B,kFAAkF;IAClF,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,mEAAmE;IACnE,cAAc,CAAC,EAAE,WAAW,EAAE,CAAC;IAC/B,mFAAmF;IACnF,gBAAgB,CAAC,EAAE,WAAW,EAAE,CAAC;IACjC,mFAAmF;IACnF,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,gJAAgJ;IAChJ,IAAI,EAAE,QAAQ,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Table/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,SAAS,CAAC;IACjB,OAAO,EAAE,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,EAAE,WAAW,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CACnE;AAED,oBAAY,QAAQ,GAAG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ProviderProps } from '../types';
|
|
3
|
-
export declare const ToastContext: import("react").Context<
|
|
4
|
-
declare const ToastProvider:
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ToastProviderProps, ToastContextProps } from '../types';
|
|
3
|
+
export declare const ToastContext: import("react").Context<ToastContextProps>;
|
|
4
|
+
declare const ToastProvider: ({ children }: ToastProviderProps) => JSX.Element;
|
|
5
5
|
export default ToastProvider;
|
|
6
6
|
//# sourceMappingURL=ToastProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToastProvider.d.ts","sourceRoot":"","sources":["../../../../src/components/Toast/contexts/ToastProvider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ToastProvider.d.ts","sourceRoot":"","sources":["../../../../src/components/Toast/contexts/ToastProvider.tsx"],"names":[],"mappings":";AAGA,OAAO,EAA4B,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE3F,eAAO,MAAM,YAAY,4CAAyC,CAAC;AAEnE,QAAA,MAAM,aAAa,iBAAkB,kBAAkB,gBAqCtD,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -19,9 +19,12 @@ export declare type Toast = IToastConfig & {
|
|
|
19
19
|
toastId: string;
|
|
20
20
|
close: (id: string) => void;
|
|
21
21
|
};
|
|
22
|
-
export declare type
|
|
22
|
+
export declare type ToastContextProps = {
|
|
23
23
|
add: (options: IToastConfig) => void;
|
|
24
24
|
remove: (id: string) => void;
|
|
25
25
|
toasts: IToastList[];
|
|
26
26
|
};
|
|
27
|
+
export declare type ToastProviderProps = {
|
|
28
|
+
children?: React.ReactNode;
|
|
29
|
+
};
|
|
27
30
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AA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,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,UAAU,CAAC;IAChE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,OAAO,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CAChC,CAAC;AAEF,oBAAY,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC,GAAG;QAChD,OAAO,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;KAChC,CAAC;CACH,CAAC;AAEF,oBAAY,KAAK,GAAG,YAAY,GAAG;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7B,CAAC;AAEF,oBAAY,iBAAiB,GAAG;IAC9B,GAAG,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,IAAI,CAAC;IACrC,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7B,MAAM,EAAE,UAAU,EAAE,CAAC;CACtB,CAAC;AAEF,oBAAY,kBAAkB,GAAG;IAC/B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["../../../src/shared/tests/test-utils.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["../../../src/shared/tests/test-utils.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAGrC,OAAO,EAAU,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAa/D,iBAAS,YAAY,CAAC,EAAE,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,aAAa,EAAE,SAAS,CAAC,mHAE/E;AAED,OAAO,EAAE,YAAY,IAAI,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/shared/tests/types.ts"],"names":[],"mappings":";AAAA,oBAAY,oBAAoB,GAAG;IACjC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -42,8 +42,9 @@ describe('Theme', function () {
|
|
|
42
42
|
var _useTheme = (0, _.useTheme)(),
|
|
43
43
|
theme = _useTheme.theme;
|
|
44
44
|
|
|
45
|
+
var color = theme.colors.primary;
|
|
45
46
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
46
|
-
children:
|
|
47
|
+
children: color
|
|
47
48
|
});
|
|
48
49
|
};
|
|
49
50
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pedidopago/ui",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.13",
|
|
4
4
|
"description": "Quick build beatiful Pedido Pago apps",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@emotion/react": "^11.4.0",
|
|
25
25
|
"@emotion/styled": "^11.3.0",
|
|
26
|
-
"framer-motion": "^4.
|
|
27
|
-
"react": "^
|
|
28
|
-
"react-dom": "^
|
|
26
|
+
"framer-motion": "^7.4.0",
|
|
27
|
+
"react": "^18.2.0",
|
|
28
|
+
"react-dom": "^18.2.0"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
31
|
"start": "react-scripts start",
|
|
@@ -91,7 +91,8 @@
|
|
|
91
91
|
"@testing-library/jest-dom": "^5.11.4",
|
|
92
92
|
"@testing-library/react": "^11.1.0",
|
|
93
93
|
"@testing-library/user-event": "^12.1.10",
|
|
94
|
-
"@types/react
|
|
94
|
+
"@types/react": "^18.0.21",
|
|
95
|
+
"@types/react-dom": "^18.0.6",
|
|
95
96
|
"@typescript-eslint/eslint-plugin": "^5.3.0",
|
|
96
97
|
"@typescript-eslint/parser": "^5.3.0",
|
|
97
98
|
"chromatic": "^5.9.2",
|