@helpdice/ui 2.6.1-beta.6 → 2.6.1
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
CHANGED
|
@@ -7,7 +7,6 @@ var ArrowRight = require('@helpdice/icons/curved/ArrowRight');
|
|
|
7
7
|
var framerMotion = require('framer-motion');
|
|
8
8
|
var reactDom = require('react-dom');
|
|
9
9
|
var reactDom$1 = require('@floating-ui/react-dom');
|
|
10
|
-
var pro = require('@helpdice/pro');
|
|
11
10
|
var ChevronLeft = require('@helpdice/icons/curved/ChevronLeft');
|
|
12
11
|
var ChevronRight = require('@helpdice/icons/curved/ChevronRight');
|
|
13
12
|
var reactSyntaxHighlighter = require('react-syntax-highlighter');
|
|
@@ -35527,7 +35526,6 @@ function requireLodash () {
|
|
|
35527
35526
|
}
|
|
35528
35527
|
|
|
35529
35528
|
var lodashExports = requireLodash();
|
|
35530
|
-
var _ = /*@__PURE__*/getDefaultExportFromCjs(lodashExports);
|
|
35531
35529
|
|
|
35532
35530
|
var makeColgroup = function makeColgroup(width, columns) {
|
|
35533
35531
|
var colId = lodashExports.uniqueId('col');
|
|
@@ -35966,10 +35964,9 @@ var TableBody = function TableBody(_ref) {
|
|
|
35966
35964
|
return /*#__PURE__*/jsxRuntime.jsxs("tbody", {
|
|
35967
35965
|
className: _JSXStyle.dynamic([["1422656197", [theme$1.palette.accents_1, theme$1.palette.border, theme$1.palette.accents_6]]]),
|
|
35968
35966
|
children: [data.map(function (row, index) {
|
|
35969
|
-
|
|
35970
|
-
var qid = _.uniqueId();
|
|
35967
|
+
// const qid = _.uniqueId();
|
|
35971
35968
|
if (row === null || row === undefined) {
|
|
35972
|
-
var uid =
|
|
35969
|
+
var uid = lodashExports.uniqueId();
|
|
35973
35970
|
return /*#__PURE__*/jsxRuntime.jsx("tr", {
|
|
35974
35971
|
className: _JSXStyle.dynamic([["1422656197", [theme$1.palette.accents_1, theme$1.palette.border, theme$1.palette.accents_6]]]),
|
|
35975
35972
|
children: /*#__PURE__*/jsxRuntime.jsx("td", {
|
|
@@ -35979,28 +35976,8 @@ var TableBody = function TableBody(_ref) {
|
|
|
35979
35976
|
})
|
|
35980
35977
|
}, uid);
|
|
35981
35978
|
}
|
|
35982
|
-
return /*#__PURE__*/jsxRuntime.
|
|
35983
|
-
children:
|
|
35984
|
-
className: _JSXStyle.dynamic([["1422656197", [theme$1.palette.accents_1, theme$1.palette.border, theme$1.palette.accents_6]]]),
|
|
35985
|
-
children: /*#__PURE__*/jsxRuntime.jsx("td", {
|
|
35986
|
-
style: {
|
|
35987
|
-
padding: '1rem'
|
|
35988
|
-
},
|
|
35989
|
-
colSpan: columns.length,
|
|
35990
|
-
className: _JSXStyle.dynamic([["1422656197", [theme$1.palette.accents_1, theme$1.palette.border, theme$1.palette.accents_6]]]),
|
|
35991
|
-
children: /*#__PURE__*/jsxRuntime.jsx(pro.DataTable, {
|
|
35992
|
-
readOnly: true,
|
|
35993
|
-
stickyHeader: false,
|
|
35994
|
-
style: _objectSpread2({
|
|
35995
|
-
height: 'auto !important'
|
|
35996
|
-
}, row === null || row === void 0 || (_row$table = row.table) === null || _row$table === void 0 ? void 0 : _row$table.style),
|
|
35997
|
-
menu: (_row$table2 = row.table) === null || _row$table2 === void 0 ? void 0 : _row$table2.menu,
|
|
35998
|
-
rows: (_row$table3 = row.table) === null || _row$table3 === void 0 ? void 0 : _row$table3.rows,
|
|
35999
|
-
heading: (_row$table4 = row.table) === null || _row$table4 === void 0 ? void 0 : _row$table4.heading,
|
|
36000
|
-
cols: (_row$table5 = row.table) === null || _row$table5 === void 0 ? void 0 : _row$table5.cols
|
|
36001
|
-
})
|
|
36002
|
-
})
|
|
36003
|
-
}, qid)]
|
|
35979
|
+
return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
35980
|
+
children: renderRow(columns, row, index)
|
|
36004
35981
|
});
|
|
36005
35982
|
|
|
36006
35983
|
// return (
|
|
@@ -39300,7 +39277,7 @@ var LoginSocialPinterest = function LoginSocialPinterest(_ref) {
|
|
|
39300
39277
|
formBody = [];
|
|
39301
39278
|
for (property in details) {
|
|
39302
39279
|
encodedKey = encodeURIComponent(property);
|
|
39303
|
-
encodedValue = encodeURIComponent(
|
|
39280
|
+
encodedValue = encodeURIComponent(lodashExports.get(details, property));
|
|
39304
39281
|
formBody.push(encodedKey + '=' + encodedValue);
|
|
39305
39282
|
}
|
|
39306
39283
|
formBody = formBody.join('&');
|
package/dist/table/index.js
CHANGED
|
@@ -6,7 +6,6 @@ var React = require('react');
|
|
|
6
6
|
var theme = require('@helpdice/theme');
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
8
8
|
var reactDom = require('react-dom');
|
|
9
|
-
var pro = require('@helpdice/pro');
|
|
10
9
|
var ChevronLeft = require('@helpdice/icons/curved/ChevronLeft');
|
|
11
10
|
var ChevronRight = require('@helpdice/icons/curved/ChevronRight');
|
|
12
11
|
|
|
@@ -21138,7 +21137,6 @@ function requireLodash () {
|
|
|
21138
21137
|
}
|
|
21139
21138
|
|
|
21140
21139
|
var lodashExports = requireLodash();
|
|
21141
|
-
var _ = /*@__PURE__*/getDefaultExportFromCjs(lodashExports);
|
|
21142
21140
|
|
|
21143
21141
|
var SelectIconComponent = function SelectIconComponent() {
|
|
21144
21142
|
return /*#__PURE__*/jsxRuntime.jsxs("svg", {
|
|
@@ -22716,10 +22714,9 @@ var TableBody = function TableBody(_ref) {
|
|
|
22716
22714
|
return /*#__PURE__*/jsxRuntime.jsxs("tbody", {
|
|
22717
22715
|
className: _JSXStyle.dynamic([["1422656197", [theme$1.palette.accents_1, theme$1.palette.border, theme$1.palette.accents_6]]]),
|
|
22718
22716
|
children: [data.map(function (row, index) {
|
|
22719
|
-
|
|
22720
|
-
var qid = _.uniqueId();
|
|
22717
|
+
// const qid = _.uniqueId();
|
|
22721
22718
|
if (row === null || row === undefined) {
|
|
22722
|
-
var uid =
|
|
22719
|
+
var uid = lodashExports.uniqueId();
|
|
22723
22720
|
return /*#__PURE__*/jsxRuntime.jsx("tr", {
|
|
22724
22721
|
className: _JSXStyle.dynamic([["1422656197", [theme$1.palette.accents_1, theme$1.palette.border, theme$1.palette.accents_6]]]),
|
|
22725
22722
|
children: /*#__PURE__*/jsxRuntime.jsx("td", {
|
|
@@ -22729,28 +22726,8 @@ var TableBody = function TableBody(_ref) {
|
|
|
22729
22726
|
})
|
|
22730
22727
|
}, uid);
|
|
22731
22728
|
}
|
|
22732
|
-
return /*#__PURE__*/jsxRuntime.
|
|
22733
|
-
children:
|
|
22734
|
-
className: _JSXStyle.dynamic([["1422656197", [theme$1.palette.accents_1, theme$1.palette.border, theme$1.palette.accents_6]]]),
|
|
22735
|
-
children: /*#__PURE__*/jsxRuntime.jsx("td", {
|
|
22736
|
-
style: {
|
|
22737
|
-
padding: '1rem'
|
|
22738
|
-
},
|
|
22739
|
-
colSpan: columns.length,
|
|
22740
|
-
className: _JSXStyle.dynamic([["1422656197", [theme$1.palette.accents_1, theme$1.palette.border, theme$1.palette.accents_6]]]),
|
|
22741
|
-
children: /*#__PURE__*/jsxRuntime.jsx(pro.DataTable, {
|
|
22742
|
-
readOnly: true,
|
|
22743
|
-
stickyHeader: false,
|
|
22744
|
-
style: _objectSpread2({
|
|
22745
|
-
height: 'auto !important'
|
|
22746
|
-
}, row === null || row === void 0 || (_row$table = row.table) === null || _row$table === void 0 ? void 0 : _row$table.style),
|
|
22747
|
-
menu: (_row$table2 = row.table) === null || _row$table2 === void 0 ? void 0 : _row$table2.menu,
|
|
22748
|
-
rows: (_row$table3 = row.table) === null || _row$table3 === void 0 ? void 0 : _row$table3.rows,
|
|
22749
|
-
heading: (_row$table4 = row.table) === null || _row$table4 === void 0 ? void 0 : _row$table4.heading,
|
|
22750
|
-
cols: (_row$table5 = row.table) === null || _row$table5 === void 0 ? void 0 : _row$table5.cols
|
|
22751
|
-
})
|
|
22752
|
-
})
|
|
22753
|
-
}, qid)]
|
|
22729
|
+
return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
22730
|
+
children: renderRow(columns, row, index)
|
|
22754
22731
|
});
|
|
22755
22732
|
|
|
22756
22733
|
// return (
|
|
@@ -11,7 +11,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
11
11
|
/* "use client" */
|
|
12
12
|
|
|
13
13
|
import React, { memo, useCallback, useEffect } from 'react';
|
|
14
|
-
import
|
|
14
|
+
import { get } from 'lodash';
|
|
15
15
|
var PINTEREST_URL = 'https://www.pinterest.com/oauth';
|
|
16
16
|
var PINTEREST_URL_API = 'https://api.pinterest.com/v5';
|
|
17
17
|
var PREVENT_CORS_URL = '';
|
|
@@ -87,7 +87,7 @@ export var LoginSocialPinterest = function LoginSocialPinterest(_ref) {
|
|
|
87
87
|
formBody = [];
|
|
88
88
|
for (property in details) {
|
|
89
89
|
encodedKey = encodeURIComponent(property);
|
|
90
|
-
encodedValue = encodeURIComponent(
|
|
90
|
+
encodedValue = encodeURIComponent(get(details, property));
|
|
91
91
|
formBody.push(encodedKey + '=' + encodedValue);
|
|
92
92
|
}
|
|
93
93
|
formBody = formBody.join('&');
|
package/esm/table/table-body.js
CHANGED
|
@@ -3,11 +3,13 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
|
3
3
|
import _JSXStyle from "../styled-jsx.es.js";
|
|
4
4
|
import React, { useState } from 'react';
|
|
5
5
|
import { useTheme, useClasses } from '@helpdice/theme';
|
|
6
|
-
import
|
|
6
|
+
import { uniqueId } from 'lodash';
|
|
7
7
|
// import Placeholder from '../placeholder';
|
|
8
8
|
import TableCell from './table-cell';
|
|
9
9
|
import { useTableContext } from './table-context';
|
|
10
|
-
|
|
10
|
+
|
|
11
|
+
// import { DataTable } from '@helpdice/pro';
|
|
12
|
+
|
|
11
13
|
var TableBody = function TableBody(_ref) {
|
|
12
14
|
var data = _ref.data,
|
|
13
15
|
emptyText = _ref.emptyText,
|
|
@@ -138,10 +140,9 @@ var TableBody = function TableBody(_ref) {
|
|
|
138
140
|
return /*#__PURE__*/React.createElement("tbody", {
|
|
139
141
|
className: _JSXStyle.dynamic([["1422656197", [theme.palette.accents_1, theme.palette.border, theme.palette.accents_6]]])
|
|
140
142
|
}, data.map(function (row, index) {
|
|
141
|
-
|
|
142
|
-
var qid = _.uniqueId();
|
|
143
|
+
// const qid = _.uniqueId();
|
|
143
144
|
if (row === null || row === undefined) {
|
|
144
|
-
var uid =
|
|
145
|
+
var uid = uniqueId();
|
|
145
146
|
return /*#__PURE__*/React.createElement("tr", {
|
|
146
147
|
key: uid,
|
|
147
148
|
className: _JSXStyle.dynamic([["1422656197", [theme.palette.accents_1, theme.palette.border, theme.palette.accents_6]]])
|
|
@@ -150,26 +151,7 @@ var TableBody = function TableBody(_ref) {
|
|
|
150
151
|
className: _JSXStyle.dynamic([["1422656197", [theme.palette.accents_1, theme.palette.border, theme.palette.accents_6]]])
|
|
151
152
|
}, "\u2003"));
|
|
152
153
|
}
|
|
153
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, renderRow(columns, row, index)
|
|
154
|
-
key: qid,
|
|
155
|
-
className: _JSXStyle.dynamic([["1422656197", [theme.palette.accents_1, theme.palette.border, theme.palette.accents_6]]])
|
|
156
|
-
}, /*#__PURE__*/React.createElement("td", {
|
|
157
|
-
style: {
|
|
158
|
-
padding: '1rem'
|
|
159
|
-
},
|
|
160
|
-
colSpan: columns.length,
|
|
161
|
-
className: _JSXStyle.dynamic([["1422656197", [theme.palette.accents_1, theme.palette.border, theme.palette.accents_6]]])
|
|
162
|
-
}, /*#__PURE__*/React.createElement(DataTable, {
|
|
163
|
-
readOnly: true,
|
|
164
|
-
stickyHeader: false,
|
|
165
|
-
style: _extends({
|
|
166
|
-
height: 'auto !important'
|
|
167
|
-
}, row === null || row === void 0 || (_row$table = row.table) === null || _row$table === void 0 ? void 0 : _row$table.style),
|
|
168
|
-
menu: (_row$table2 = row.table) === null || _row$table2 === void 0 ? void 0 : _row$table2.menu,
|
|
169
|
-
rows: (_row$table3 = row.table) === null || _row$table3 === void 0 ? void 0 : _row$table3.rows,
|
|
170
|
-
heading: (_row$table4 = row.table) === null || _row$table4 === void 0 ? void 0 : _row$table4.heading,
|
|
171
|
-
cols: (_row$table5 = row.table) === null || _row$table5 === void 0 ? void 0 : _row$table5.cols
|
|
172
|
-
}))));
|
|
154
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, renderRow(columns, row, index));
|
|
173
155
|
|
|
174
156
|
// return (
|
|
175
157
|
// <tr
|