@helpdice/ui 1.4.2 → 1.4.3
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/index.js +6 -6
- package/dist/table/index.js +6 -6
- package/esm/table/table.js +4 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
var reactDom = require('react-dom');
|
|
5
|
-
var Button$1 = require('components/button');
|
|
6
|
-
var Tooltip$1 = require('components/tooltip');
|
|
7
5
|
var require$$0 = require('react-is');
|
|
8
6
|
var isEqual = require('react-fast-compare');
|
|
9
7
|
|
|
@@ -43539,25 +43537,27 @@ function TableComponent(tableProps) {
|
|
|
43539
43537
|
margin: '10px'
|
|
43540
43538
|
},
|
|
43541
43539
|
className: _JSXStyle.dynamic([["1971279331", [SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0)]]])
|
|
43542
|
-
}, /*#__PURE__*/React.createElement(Tooltip
|
|
43540
|
+
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
43543
43541
|
text: "Previous"
|
|
43544
|
-
}, /*#__PURE__*/React.createElement(Button
|
|
43542
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
43545
43543
|
disabled: !previousCursor,
|
|
43546
43544
|
onClick: function onClick() {
|
|
43547
43545
|
return onPreviousPage && onPreviousPage(previousCursor);
|
|
43548
43546
|
},
|
|
43549
43547
|
auto: true,
|
|
43550
43548
|
px: 0.6,
|
|
43549
|
+
scale: 2 / 3,
|
|
43551
43550
|
iconRight: /*#__PURE__*/React.createElement(ChevronLeft$1, null)
|
|
43552
|
-
})), /*#__PURE__*/React.createElement(Tooltip
|
|
43551
|
+
})), /*#__PURE__*/React.createElement(Tooltip, {
|
|
43553
43552
|
text: "Next"
|
|
43554
|
-
}, /*#__PURE__*/React.createElement(Button
|
|
43553
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
43555
43554
|
disabled: !nextCursor,
|
|
43556
43555
|
onClick: function onClick() {
|
|
43557
43556
|
return onNextPage && onNextPage(nextCursor);
|
|
43558
43557
|
},
|
|
43559
43558
|
auto: true,
|
|
43560
43559
|
px: 0.6,
|
|
43560
|
+
scale: 2 / 3,
|
|
43561
43561
|
iconRight: /*#__PURE__*/React.createElement(ChevronRight$1, null)
|
|
43562
43562
|
}))))) : dataLength && viewLength && onPageChange ? /*#__PURE__*/React.createElement("tfoot", {
|
|
43563
43563
|
className: _JSXStyle.dynamic([["1971279331", [SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0)]]])
|
package/dist/table/index.js
CHANGED
|
@@ -4,8 +4,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var reactDom = require('react-dom');
|
|
7
|
-
var Button$1 = require('components/button');
|
|
8
|
-
var Tooltip$1 = require('components/tooltip');
|
|
9
7
|
|
|
10
8
|
function _interopNamespaceDefault(e) {
|
|
11
9
|
var n = Object.create(null);
|
|
@@ -32592,25 +32590,27 @@ function TableComponent(tableProps) {
|
|
|
32592
32590
|
margin: '10px'
|
|
32593
32591
|
},
|
|
32594
32592
|
className: _JSXStyle.dynamic([["1971279331", [SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0)]]])
|
|
32595
|
-
}, /*#__PURE__*/React.createElement(Tooltip
|
|
32593
|
+
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
32596
32594
|
text: "Previous"
|
|
32597
|
-
}, /*#__PURE__*/React.createElement(Button
|
|
32595
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
32598
32596
|
disabled: !previousCursor,
|
|
32599
32597
|
onClick: function onClick() {
|
|
32600
32598
|
return onPreviousPage && onPreviousPage(previousCursor);
|
|
32601
32599
|
},
|
|
32602
32600
|
auto: true,
|
|
32603
32601
|
px: 0.6,
|
|
32602
|
+
scale: 2 / 3,
|
|
32604
32603
|
iconRight: /*#__PURE__*/React.createElement(ChevronLeft$1, null)
|
|
32605
|
-
})), /*#__PURE__*/React.createElement(Tooltip
|
|
32604
|
+
})), /*#__PURE__*/React.createElement(Tooltip, {
|
|
32606
32605
|
text: "Next"
|
|
32607
|
-
}, /*#__PURE__*/React.createElement(Button
|
|
32606
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
32608
32607
|
disabled: !nextCursor,
|
|
32609
32608
|
onClick: function onClick() {
|
|
32610
32609
|
return onNextPage && onNextPage(nextCursor);
|
|
32611
32610
|
},
|
|
32612
32611
|
auto: true,
|
|
32613
32612
|
px: 0.6,
|
|
32613
|
+
scale: 2 / 3,
|
|
32614
32614
|
iconRight: /*#__PURE__*/React.createElement(ChevronRight$1, null)
|
|
32615
32615
|
}))))) : dataLength && viewLength && onPageChange ? /*#__PURE__*/React.createElement("tfoot", {
|
|
32616
32616
|
className: _JSXStyle.dynamic([["1971279331", [SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0)]]])
|
package/esm/table/table.js
CHANGED
|
@@ -16,8 +16,8 @@ import useScale, { withScale } from '../use-scale';
|
|
|
16
16
|
import TableColumn from './table-column';
|
|
17
17
|
import { ChevronLeft, ChevronRight } from '@helpdice/icons';
|
|
18
18
|
import Pagination from '../pagination';
|
|
19
|
-
import Button from '
|
|
20
|
-
import Tooltip from '
|
|
19
|
+
import Button from '../button';
|
|
20
|
+
import Tooltip from '../tooltip';
|
|
21
21
|
function TableComponent(tableProps) {
|
|
22
22
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
23
23
|
var _ref = tableProps,
|
|
@@ -154,6 +154,7 @@ function TableComponent(tableProps) {
|
|
|
154
154
|
},
|
|
155
155
|
auto: true,
|
|
156
156
|
px: 0.6,
|
|
157
|
+
scale: 2 / 3,
|
|
157
158
|
iconRight: /*#__PURE__*/React.createElement(ChevronLeft, null)
|
|
158
159
|
})), /*#__PURE__*/React.createElement(Tooltip, {
|
|
159
160
|
text: "Next"
|
|
@@ -164,6 +165,7 @@ function TableComponent(tableProps) {
|
|
|
164
165
|
},
|
|
165
166
|
auto: true,
|
|
166
167
|
px: 0.6,
|
|
168
|
+
scale: 2 / 3,
|
|
167
169
|
iconRight: /*#__PURE__*/React.createElement(ChevronRight, null)
|
|
168
170
|
}))))) : dataLength && viewLength && onPageChange ? /*#__PURE__*/React.createElement("tfoot", {
|
|
169
171
|
className: _JSXStyle.dynamic([["1971279331", [SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0)]]])
|