@helpdice/ui 2.6.1-beta.6 → 2.6.2-beta.0

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
- var _row$table, _row$table2, _row$table3, _row$table4, _row$table5;
35970
- var qid = _.uniqueId();
35967
+ // const qid = _.uniqueId();
35971
35968
  if (row === null || row === undefined) {
35972
- var uid = _.uniqueId();
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.jsxs(jsxRuntime.Fragment, {
35983
- children: [renderRow(columns, row, index), (row === null || row === void 0 ? void 0 : row.table) && /*#__PURE__*/jsxRuntime.jsx("tr", {
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 (
@@ -38262,23 +38239,28 @@ var LinearProgress = function LinearProgress(_ref) {
38262
38239
  _ref$color = _ref.color,
38263
38240
  color = _ref$color === void 0 ? '#1976d2' : _ref$color,
38264
38241
  _ref$speed = _ref.speed,
38265
- speed = _ref$speed === void 0 ? 1.5 : _ref$speed;
38242
+ speed = _ref$speed === void 0 ? 1.5 : _ref$speed,
38243
+ _ref$sticky = _ref.sticky,
38244
+ sticky = _ref$sticky === void 0 ? false : _ref$sticky;
38266
38245
  if (!isActive) return null;
38267
38246
  var isDeterminate = typeof progress === 'number' && progress >= 0 && progress <= 100;
38268
38247
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
38269
- className: _JSXStyle.dynamic([["2900495535", [color, speed]]]) + " " + "loader-wrapper",
38248
+ className: _JSXStyle.dynamic([["3876079267", [sticky && 'position: fixed;top: 0;left: 0;', color]]]) + " " + "loader-wrapper",
38270
38249
  children: [isDeterminate ? /*#__PURE__*/jsxRuntime.jsx("div", {
38271
38250
  style: {
38272
38251
  width: "".concat(progress, "%"),
38273
38252
  backgroundColor: color
38274
38253
  },
38275
- className: _JSXStyle.dynamic([["2900495535", [color, speed]]]) + " " + "determinate-bar"
38254
+ className: _JSXStyle.dynamic([["3876079267", [sticky && 'position: fixed;top: 0;left: 0;', color]]]) + " " + "determinate-bar"
38276
38255
  }) : /*#__PURE__*/jsxRuntime.jsx("div", {
38277
- className: _JSXStyle.dynamic([["2900495535", [color, speed]]]) + " " + "indeterminate-loader"
38256
+ style: {
38257
+ animation: "slide ".concat(speed, "s linear infinite")
38258
+ },
38259
+ className: _JSXStyle.dynamic([["3876079267", [sticky && 'position: fixed;top: 0;left: 0;', color]]]) + " " + "indeterminate-loader"
38278
38260
  }), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
38279
- id: "2900495535",
38280
- dynamic: [color, speed],
38281
- children: ".loader-wrapper.__jsx-style-dynamic-selector{position:fixed;top:0;left:0;width:100%;height:4px;background:rgba(0,0,0,0.05);z-index:2000;overflow:hidden;}.determinate-bar.__jsx-style-dynamic-selector{height:100%;-webkit-transition:width 0.3s ease;transition:width 0.3s ease;}.indeterminate-loader.__jsx-style-dynamic-selector{width:100%;height:100%;background:linear-gradient( to right, transparent 0%, ".concat(color, " 50%, transparent 100% );background-size:200% 100%;-webkit-animation:slide-__jsx-style-dynamic-selector ").concat(speed, "s linear infinite;animation:slide-__jsx-style-dynamic-selector ").concat(speed, "s linear infinite;}@-webkit-keyframes slide-__jsx-style-dynamic-selector{from{background-position:-100% 0;}to{background-position:100% 0;}}@keyframes slide-__jsx-style-dynamic-selector{from{background-position:-100% 0;}to{background-position:100% 0;}}")
38261
+ id: "3876079267",
38262
+ dynamic: [sticky && 'position: fixed;top: 0;left: 0;', color],
38263
+ children: ".loader-wrapper.__jsx-style-dynamic-selector{".concat(sticky && 'position: fixed;top: 0;left: 0;', " width:100%;height:4px;background:rgba(0,0,0,0.05);z-index:2000;overflow:hidden;}.determinate-bar.__jsx-style-dynamic-selector{height:100%;-webkit-transition:width 0.3s ease;transition:width 0.3s ease;}.indeterminate-loader.__jsx-style-dynamic-selector{width:100%;height:100%;background:linear-gradient( to right, transparent 0%, ").concat(color, " 50%, transparent 100% );background-size:200% 100%;}@-webkit-keyframes slide-__jsx-style-dynamic-selector{from{background-position:-100% 0;}to{background-position:100% 0;}}@keyframes slide-__jsx-style-dynamic-selector{from{background-position:-100% 0;}to{background-position:100% 0;}}")
38282
38264
  })]
38283
38265
  });
38284
38266
  };
@@ -39300,7 +39282,7 @@ var LoginSocialPinterest = function LoginSocialPinterest(_ref) {
39300
39282
  formBody = [];
39301
39283
  for (property in details) {
39302
39284
  encodedKey = encodeURIComponent(property);
39303
- encodedValue = encodeURIComponent(_.get(details, property));
39285
+ encodedValue = encodeURIComponent(lodashExports.get(details, property));
39304
39286
  formBody.push(encodedKey + '=' + encodedValue);
39305
39287
  }
39306
39288
  formBody = formBody.join('&');
@@ -555,23 +555,28 @@ var LinearProgress = function LinearProgress(_ref) {
555
555
  _ref$color = _ref.color,
556
556
  color = _ref$color === void 0 ? '#1976d2' : _ref$color,
557
557
  _ref$speed = _ref.speed,
558
- speed = _ref$speed === void 0 ? 1.5 : _ref$speed;
558
+ speed = _ref$speed === void 0 ? 1.5 : _ref$speed,
559
+ _ref$sticky = _ref.sticky,
560
+ sticky = _ref$sticky === void 0 ? false : _ref$sticky;
559
561
  if (!isActive) return null;
560
562
  var isDeterminate = typeof progress === 'number' && progress >= 0 && progress <= 100;
561
563
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
562
- className: _JSXStyle.dynamic([["2900495535", [color, speed]]]) + " " + "loader-wrapper",
564
+ className: _JSXStyle.dynamic([["3876079267", [sticky && 'position: fixed;top: 0;left: 0;', color]]]) + " " + "loader-wrapper",
563
565
  children: [isDeterminate ? /*#__PURE__*/jsxRuntime.jsx("div", {
564
566
  style: {
565
567
  width: "".concat(progress, "%"),
566
568
  backgroundColor: color
567
569
  },
568
- className: _JSXStyle.dynamic([["2900495535", [color, speed]]]) + " " + "determinate-bar"
570
+ className: _JSXStyle.dynamic([["3876079267", [sticky && 'position: fixed;top: 0;left: 0;', color]]]) + " " + "determinate-bar"
569
571
  }) : /*#__PURE__*/jsxRuntime.jsx("div", {
570
- className: _JSXStyle.dynamic([["2900495535", [color, speed]]]) + " " + "indeterminate-loader"
572
+ style: {
573
+ animation: "slide ".concat(speed, "s linear infinite")
574
+ },
575
+ className: _JSXStyle.dynamic([["3876079267", [sticky && 'position: fixed;top: 0;left: 0;', color]]]) + " " + "indeterminate-loader"
571
576
  }), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
572
- id: "2900495535",
573
- dynamic: [color, speed],
574
- children: ".loader-wrapper.__jsx-style-dynamic-selector{position:fixed;top:0;left:0;width:100%;height:4px;background:rgba(0,0,0,0.05);z-index:2000;overflow:hidden;}.determinate-bar.__jsx-style-dynamic-selector{height:100%;-webkit-transition:width 0.3s ease;transition:width 0.3s ease;}.indeterminate-loader.__jsx-style-dynamic-selector{width:100%;height:100%;background:linear-gradient( to right, transparent 0%, ".concat(color, " 50%, transparent 100% );background-size:200% 100%;-webkit-animation:slide-__jsx-style-dynamic-selector ").concat(speed, "s linear infinite;animation:slide-__jsx-style-dynamic-selector ").concat(speed, "s linear infinite;}@-webkit-keyframes slide-__jsx-style-dynamic-selector{from{background-position:-100% 0;}to{background-position:100% 0;}}@keyframes slide-__jsx-style-dynamic-selector{from{background-position:-100% 0;}to{background-position:100% 0;}}")
577
+ id: "3876079267",
578
+ dynamic: [sticky && 'position: fixed;top: 0;left: 0;', color],
579
+ children: ".loader-wrapper.__jsx-style-dynamic-selector{".concat(sticky && 'position: fixed;top: 0;left: 0;', " width:100%;height:4px;background:rgba(0,0,0,0.05);z-index:2000;overflow:hidden;}.determinate-bar.__jsx-style-dynamic-selector{height:100%;-webkit-transition:width 0.3s ease;transition:width 0.3s ease;}.indeterminate-loader.__jsx-style-dynamic-selector{width:100%;height:100%;background:linear-gradient( to right, transparent 0%, ").concat(color, " 50%, transparent 100% );background-size:200% 100%;}@-webkit-keyframes slide-__jsx-style-dynamic-selector{from{background-position:-100% 0;}to{background-position:100% 0;}}@keyframes slide-__jsx-style-dynamic-selector{from{background-position:-100% 0;}to{background-position:100% 0;}}")
575
580
  })]
576
581
  });
577
582
  };
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  interface LinearProgressProps {
3
3
  isActive?: boolean;
4
+ sticky?: boolean;
4
5
  progress?: number;
5
6
  color?: string;
6
7
  speed?: number;
@@ -599,23 +599,28 @@ var LinearProgress = function LinearProgress(_ref) {
599
599
  _ref$color = _ref.color,
600
600
  color = _ref$color === void 0 ? '#1976d2' : _ref$color,
601
601
  _ref$speed = _ref.speed,
602
- speed = _ref$speed === void 0 ? 1.5 : _ref$speed;
602
+ speed = _ref$speed === void 0 ? 1.5 : _ref$speed,
603
+ _ref$sticky = _ref.sticky,
604
+ sticky = _ref$sticky === void 0 ? false : _ref$sticky;
603
605
  if (!isActive) return null;
604
606
  var isDeterminate = typeof progress === 'number' && progress >= 0 && progress <= 100;
605
607
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
606
- className: _JSXStyle.dynamic([["2900495535", [color, speed]]]) + " " + "loader-wrapper",
608
+ className: _JSXStyle.dynamic([["3876079267", [sticky && 'position: fixed;top: 0;left: 0;', color]]]) + " " + "loader-wrapper",
607
609
  children: [isDeterminate ? /*#__PURE__*/jsxRuntime.jsx("div", {
608
610
  style: {
609
611
  width: "".concat(progress, "%"),
610
612
  backgroundColor: color
611
613
  },
612
- className: _JSXStyle.dynamic([["2900495535", [color, speed]]]) + " " + "determinate-bar"
614
+ className: _JSXStyle.dynamic([["3876079267", [sticky && 'position: fixed;top: 0;left: 0;', color]]]) + " " + "determinate-bar"
613
615
  }) : /*#__PURE__*/jsxRuntime.jsx("div", {
614
- className: _JSXStyle.dynamic([["2900495535", [color, speed]]]) + " " + "indeterminate-loader"
616
+ style: {
617
+ animation: "slide ".concat(speed, "s linear infinite")
618
+ },
619
+ className: _JSXStyle.dynamic([["3876079267", [sticky && 'position: fixed;top: 0;left: 0;', color]]]) + " " + "indeterminate-loader"
615
620
  }), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
616
- id: "2900495535",
617
- dynamic: [color, speed],
618
- children: ".loader-wrapper.__jsx-style-dynamic-selector{position:fixed;top:0;left:0;width:100%;height:4px;background:rgba(0,0,0,0.05);z-index:2000;overflow:hidden;}.determinate-bar.__jsx-style-dynamic-selector{height:100%;-webkit-transition:width 0.3s ease;transition:width 0.3s ease;}.indeterminate-loader.__jsx-style-dynamic-selector{width:100%;height:100%;background:linear-gradient( to right, transparent 0%, ".concat(color, " 50%, transparent 100% );background-size:200% 100%;-webkit-animation:slide-__jsx-style-dynamic-selector ").concat(speed, "s linear infinite;animation:slide-__jsx-style-dynamic-selector ").concat(speed, "s linear infinite;}@-webkit-keyframes slide-__jsx-style-dynamic-selector{from{background-position:-100% 0;}to{background-position:100% 0;}}@keyframes slide-__jsx-style-dynamic-selector{from{background-position:-100% 0;}to{background-position:100% 0;}}")
621
+ id: "3876079267",
622
+ dynamic: [sticky && 'position: fixed;top: 0;left: 0;', color],
623
+ children: ".loader-wrapper.__jsx-style-dynamic-selector{".concat(sticky && 'position: fixed;top: 0;left: 0;', " width:100%;height:4px;background:rgba(0,0,0,0.05);z-index:2000;overflow:hidden;}.determinate-bar.__jsx-style-dynamic-selector{height:100%;-webkit-transition:width 0.3s ease;transition:width 0.3s ease;}.indeterminate-loader.__jsx-style-dynamic-selector{width:100%;height:100%;background:linear-gradient( to right, transparent 0%, ").concat(color, " 50%, transparent 100% );background-size:200% 100%;}@-webkit-keyframes slide-__jsx-style-dynamic-selector{from{background-position:-100% 0;}to{background-position:100% 0;}}@keyframes slide-__jsx-style-dynamic-selector{from{background-position:-100% 0;}to{background-position:100% 0;}}")
619
624
  })]
620
625
  });
621
626
  };
@@ -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
- var _row$table, _row$table2, _row$table3, _row$table4, _row$table5;
22720
- var qid = _.uniqueId();
22717
+ // const qid = _.uniqueId();
22721
22718
  if (row === null || row === undefined) {
22722
- var uid = _.uniqueId();
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.jsxs(jsxRuntime.Fragment, {
22733
- children: [renderRow(columns, row, index), (row === null || row === void 0 ? void 0 : row.table) && /*#__PURE__*/jsxRuntime.jsx("tr", {
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 (
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  interface LinearProgressProps {
3
3
  isActive?: boolean;
4
+ sticky?: boolean;
4
5
  progress?: number;
5
6
  color?: string;
6
7
  speed?: number;
@@ -7,22 +7,27 @@ var LinearProgress = function LinearProgress(_ref) {
7
7
  _ref$color = _ref.color,
8
8
  color = _ref$color === void 0 ? '#1976d2' : _ref$color,
9
9
  _ref$speed = _ref.speed,
10
- speed = _ref$speed === void 0 ? 1.5 : _ref$speed;
10
+ speed = _ref$speed === void 0 ? 1.5 : _ref$speed,
11
+ _ref$sticky = _ref.sticky,
12
+ sticky = _ref$sticky === void 0 ? false : _ref$sticky;
11
13
  if (!isActive) return null;
12
14
  var isDeterminate = typeof progress === 'number' && progress >= 0 && progress <= 100;
13
15
  return /*#__PURE__*/React.createElement("div", {
14
- className: _JSXStyle.dynamic([["2900495535", [color, speed]]]) + " " + "loader-wrapper"
16
+ className: _JSXStyle.dynamic([["3876079267", [sticky && 'position: fixed;top: 0;left: 0;', color]]]) + " " + "loader-wrapper"
15
17
  }, isDeterminate ? /*#__PURE__*/React.createElement("div", {
16
18
  style: {
17
19
  width: "".concat(progress, "%"),
18
20
  backgroundColor: color
19
21
  },
20
- className: _JSXStyle.dynamic([["2900495535", [color, speed]]]) + " " + "determinate-bar"
22
+ className: _JSXStyle.dynamic([["3876079267", [sticky && 'position: fixed;top: 0;left: 0;', color]]]) + " " + "determinate-bar"
21
23
  }) : /*#__PURE__*/React.createElement("div", {
22
- className: _JSXStyle.dynamic([["2900495535", [color, speed]]]) + " " + "indeterminate-loader"
24
+ style: {
25
+ animation: "slide ".concat(speed, "s linear infinite")
26
+ },
27
+ className: _JSXStyle.dynamic([["3876079267", [sticky && 'position: fixed;top: 0;left: 0;', color]]]) + " " + "indeterminate-loader"
23
28
  }), /*#__PURE__*/React.createElement(_JSXStyle, {
24
- id: "2900495535",
25
- dynamic: [color, speed]
26
- }, ".loader-wrapper.__jsx-style-dynamic-selector{position:fixed;top:0;left:0;width:100%;height:4px;background:rgba(0,0,0,0.05);z-index:2000;overflow:hidden;}.determinate-bar.__jsx-style-dynamic-selector{height:100%;-webkit-transition:width 0.3s ease;transition:width 0.3s ease;}.indeterminate-loader.__jsx-style-dynamic-selector{width:100%;height:100%;background:linear-gradient( to right, transparent 0%, ".concat(color, " 50%, transparent 100% );background-size:200% 100%;-webkit-animation:slide-__jsx-style-dynamic-selector ").concat(speed, "s linear infinite;animation:slide-__jsx-style-dynamic-selector ").concat(speed, "s linear infinite;}@-webkit-keyframes slide-__jsx-style-dynamic-selector{from{background-position:-100% 0;}to{background-position:100% 0;}}@keyframes slide-__jsx-style-dynamic-selector{from{background-position:-100% 0;}to{background-position:100% 0;}}")));
29
+ id: "3876079267",
30
+ dynamic: [sticky && 'position: fixed;top: 0;left: 0;', color]
31
+ }, ".loader-wrapper.__jsx-style-dynamic-selector{".concat(sticky && 'position: fixed;top: 0;left: 0;', " width:100%;height:4px;background:rgba(0,0,0,0.05);z-index:2000;overflow:hidden;}.determinate-bar.__jsx-style-dynamic-selector{height:100%;-webkit-transition:width 0.3s ease;transition:width 0.3s ease;}.indeterminate-loader.__jsx-style-dynamic-selector{width:100%;height:100%;background:linear-gradient( to right, transparent 0%, ").concat(color, " 50%, transparent 100% );background-size:200% 100%;}@-webkit-keyframes slide-__jsx-style-dynamic-selector{from{background-position:-100% 0;}to{background-position:100% 0;}}@keyframes slide-__jsx-style-dynamic-selector{from{background-position:-100% 0;}to{background-position:100% 0;}}")));
27
32
  };
28
33
  export default LinearProgress;
@@ -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 _ from 'lodash';
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(_.get(details, property));
90
+ encodedValue = encodeURIComponent(get(details, property));
91
91
  formBody.push(encodedKey + '=' + encodedValue);
92
92
  }
93
93
  formBody = formBody.join('&');
@@ -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 _ from 'lodash';
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
- import { DataTable } from '@helpdice/pro';
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
- var _row$table, _row$table2, _row$table3, _row$table4, _row$table5;
142
- var qid = _.uniqueId();
143
+ // const qid = _.uniqueId();
143
144
  if (row === null || row === undefined) {
144
- var uid = _.uniqueId();
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), (row === null || row === void 0 ? void 0 : row.table) && /*#__PURE__*/React.createElement("tr", {
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@helpdice/ui",
3
- "version": "2.6.1-beta.6",
3
+ "version": "2.6.2-beta.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "esm/index.d.ts",
6
6
  "unpkg": "dist/index.min.js",
@@ -62,7 +62,7 @@
62
62
  "@babel/preset-react": "^7.14.5",
63
63
  "@babel/preset-typescript": "^7.14.5",
64
64
  "@babel/standalone": "^7.28.3",
65
- "@helpdice/icons": "1.3.8",
65
+ "@helpdice/icons": "1.3.9",
66
66
  "@helpdice/pro": "2.2.0",
67
67
  "@helpdice/sdk": "^0.4.3",
68
68
  "@helpdice/utils": "^0.1.4",