@helpdice/ui 1.2.8 → 1.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/dist/index.js +10 -12
- package/dist/table/index.js +1483 -356
- package/esm/table/table.js +7 -7
- package/package.json +1 -1
package/esm/table/table.js
CHANGED
|
@@ -15,8 +15,8 @@ import useResize from '../utils/use-resize';
|
|
|
15
15
|
import { TableContext } from './table-context';
|
|
16
16
|
import useScale, { withScale } from '../use-scale';
|
|
17
17
|
import TableColumn from './table-column';
|
|
18
|
-
import Select from '
|
|
19
|
-
import Input from '
|
|
18
|
+
import Select from '../select';
|
|
19
|
+
import Input from '../input';
|
|
20
20
|
import _ from 'lodash';
|
|
21
21
|
function TableComponent(tableProps) {
|
|
22
22
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
@@ -155,14 +155,14 @@ function TableComponent(tableProps) {
|
|
|
155
155
|
}));
|
|
156
156
|
});
|
|
157
157
|
};
|
|
158
|
-
return /*#__PURE__*/React.createElement(
|
|
159
|
-
value: contextValue
|
|
160
|
-
}, showFilters && /*#__PURE__*/React.createElement("div", {
|
|
158
|
+
return /*#__PURE__*/React.createElement("div", null, showFilters && /*#__PURE__*/React.createElement("div", {
|
|
161
159
|
style: {
|
|
162
160
|
display: 'flex',
|
|
163
161
|
gap: 6
|
|
164
162
|
}
|
|
165
|
-
}, generateFilterInputs()), /*#__PURE__*/React.createElement(
|
|
163
|
+
}, generateFilterInputs()), /*#__PURE__*/React.createElement(TableContext.Provider, {
|
|
164
|
+
value: contextValue
|
|
165
|
+
}, /*#__PURE__*/React.createElement("table", _extends({
|
|
166
166
|
ref: ref
|
|
167
167
|
}, props, {
|
|
168
168
|
className: _JSXStyle.dynamic([["2132340556", [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)]]]) + " " + (props && props.className != null && props.className || className || "")
|
|
@@ -182,7 +182,7 @@ function TableComponent(tableProps) {
|
|
|
182
182
|
}), children, /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
183
183
|
id: "2132340556",
|
|
184
184
|
dynamic: [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)]
|
|
185
|
-
}, "table.__jsx-style-dynamic-selector{border-collapse:separate;border-spacing:0;--table-font-size:".concat(SCALES.font(1), ";font-size:var(--table-font-size);width:").concat(SCALES.width(1, '100%'), ";height:").concat(SCALES.height(1, 'auto'), ";padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}"))));
|
|
185
|
+
}, "table.__jsx-style-dynamic-selector{border-collapse:separate;border-spacing:0;--table-font-size:".concat(SCALES.font(1), ";font-size:var(--table-font-size);width:").concat(SCALES.width(1, '100%'), ";height:").concat(SCALES.height(1, 'auto'), ";padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}")))));
|
|
186
186
|
}
|
|
187
187
|
TableComponent.displayName = 'Table';
|
|
188
188
|
TableComponent.Column = TableColumn;
|