@helpdice/ui 2.6.1-beta.4 → 2.6.1-beta.5
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/auto-complete/index.js +2 -2
- package/dist/carousal/index.js +4 -3
- package/dist/copy-to-clipboard/index.js +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +12 -9
- package/dist/table/index.js +6 -5
- package/esm/auto-complete/auto-complete.js +1 -1
- package/esm/carousal/Thumbs.js +3 -1
- package/esm/copy-to-clipboard/clipboard.js +2 -1
- package/esm/index.d.ts +2 -2
- package/esm/index.js +1 -1
- package/esm/notetip/index.js +1 -1
- package/esm/table/table.js +3 -1
- package/package.json +2 -2
- /package/dist/notetip/{note-tip.d.ts → notetip.d.ts} +0 -0
- /package/esm/notetip/{note-tip.d.ts → notetip.d.ts} +0 -0
- /package/esm/notetip/{note-tip.js → notetip.js} +0 -0
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var theme = require('@helpdice/theme');
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
8
|
-
var
|
|
8
|
+
var ArrowRight = require('@helpdice/icons/curved/ArrowRight');
|
|
9
9
|
|
|
10
10
|
function _arrayLikeToArray(r, a) {
|
|
11
11
|
(null == a || a > r.length) && (a = r.length);
|
|
@@ -4084,7 +4084,7 @@ var getSearchIcon = function getSearchIcon(searching) {
|
|
|
4084
4084
|
if (searching === undefined) return null;
|
|
4085
4085
|
return searching ? /*#__PURE__*/jsxRuntime.jsx(Loading, {
|
|
4086
4086
|
scale: +scale / 2
|
|
4087
|
-
}) : /*#__PURE__*/jsxRuntime.jsx(
|
|
4087
|
+
}) : /*#__PURE__*/jsxRuntime.jsx(ArrowRight, {});
|
|
4088
4088
|
};
|
|
4089
4089
|
var AutoCompleteComponent = /*#__PURE__*/React.forwardRef(function (_ref, userRef) {
|
|
4090
4090
|
var _ref$options = _ref.options,
|
package/dist/carousal/index.js
CHANGED
|
@@ -6,7 +6,8 @@ var React = require('react');
|
|
|
6
6
|
var require$$0 = require('react-is');
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
8
8
|
var theme = require('@helpdice/theme');
|
|
9
|
-
var
|
|
9
|
+
var ChevronLeft = require('@helpdice/icons/curved/ChevronLeft');
|
|
10
|
+
var ChevronRight = require('@helpdice/icons/curved/ChevronRight');
|
|
10
11
|
|
|
11
12
|
function _arrayLikeToArray(r, a) {
|
|
12
13
|
(null == a || a > r.length) && (a = r.length);
|
|
@@ -3206,7 +3207,7 @@ var Thumbs = /*#__PURE__*/function (_Component) {
|
|
|
3206
3207
|
zIndex: '2',
|
|
3207
3208
|
left: 0
|
|
3208
3209
|
},
|
|
3209
|
-
iconRight: /*#__PURE__*/jsxRuntime.jsx(
|
|
3210
|
+
iconRight: /*#__PURE__*/jsxRuntime.jsx(ChevronLeft, {}),
|
|
3210
3211
|
className: klass.ARROW_PREV(!hasPrev),
|
|
3211
3212
|
onClick: function onClick() {
|
|
3212
3213
|
return _this3.slideRight();
|
|
@@ -3244,7 +3245,7 @@ var Thumbs = /*#__PURE__*/function (_Component) {
|
|
|
3244
3245
|
zIndex: '2',
|
|
3245
3246
|
right: 0
|
|
3246
3247
|
},
|
|
3247
|
-
iconRight: /*#__PURE__*/jsxRuntime.jsx(
|
|
3248
|
+
iconRight: /*#__PURE__*/jsxRuntime.jsx(ChevronRight, {}),
|
|
3248
3249
|
className: klass.ARROW_NEXT(!hasNext),
|
|
3249
3250
|
onClick: function onClick() {
|
|
3250
3251
|
return _this3.slideLeft();
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var icons = require('@helpdice/icons');
|
|
7
6
|
var theme = require('@helpdice/theme');
|
|
8
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
8
|
+
var Copy = require('@helpdice/icons/curved/Copy');
|
|
9
9
|
|
|
10
10
|
function _arrayLikeToArray(r, a) {
|
|
11
11
|
(null == a || a > r.length) && (a = r.length);
|
|
@@ -1709,7 +1709,7 @@ function Clipboard(props) {
|
|
|
1709
1709
|
onClick: function onClick() {
|
|
1710
1710
|
return _onClick;
|
|
1711
1711
|
},
|
|
1712
|
-
icon: /*#__PURE__*/jsxRuntime.jsx(
|
|
1712
|
+
icon: /*#__PURE__*/jsxRuntime.jsx(Copy, {})
|
|
1713
1713
|
})]
|
|
1714
1714
|
});
|
|
1715
1715
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -94,9 +94,9 @@ export type { HUIThemes, HUserTheme } from './themes';
|
|
|
94
94
|
export { default as Toggle } from './toggle';
|
|
95
95
|
export type { ToggleProps } from './toggle';
|
|
96
96
|
export { default as Tooltip } from './tooltip';
|
|
97
|
-
export { default as Notetip } from './notetip/
|
|
97
|
+
export { default as Notetip } from './notetip/notetip';
|
|
98
98
|
export type { TooltipProps } from './tooltip';
|
|
99
|
-
export type { NotetipProps } from './notetip/
|
|
99
|
+
export type { NotetipProps } from './notetip/notetip';
|
|
100
100
|
export { default as Tree } from './tree';
|
|
101
101
|
export type { TreeProps } from './tree';
|
|
102
102
|
export { useTime, useTimer, useStopwatch } from './timer';
|
package/dist/index.js
CHANGED
|
@@ -3,14 +3,17 @@
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
var theme = require('@helpdice/theme');
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
-
var
|
|
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
10
|
var pro = require('@helpdice/pro');
|
|
11
|
+
var ChevronLeft = require('@helpdice/icons/curved/ChevronLeft');
|
|
12
|
+
var ChevronRight = require('@helpdice/icons/curved/ChevronRight');
|
|
11
13
|
var reactSyntaxHighlighter = require('react-syntax-highlighter');
|
|
12
14
|
var prism = require('react-syntax-highlighter/dist/cjs/styles/prism');
|
|
13
15
|
var require$$0 = require('react-is');
|
|
16
|
+
var Copy = require('@helpdice/icons/curved/Copy');
|
|
14
17
|
var isEqual = require('react-fast-compare');
|
|
15
18
|
|
|
16
19
|
function _interopNamespaceDefault(e) {
|
|
@@ -4421,7 +4424,7 @@ var getSearchIcon = function getSearchIcon(searching) {
|
|
|
4421
4424
|
if (searching === undefined) return null;
|
|
4422
4425
|
return searching ? /*#__PURE__*/jsxRuntime.jsx(Loading, {
|
|
4423
4426
|
scale: +scale / 2
|
|
4424
|
-
}) : /*#__PURE__*/jsxRuntime.jsx(
|
|
4427
|
+
}) : /*#__PURE__*/jsxRuntime.jsx(ArrowRight, {});
|
|
4425
4428
|
};
|
|
4426
4429
|
var AutoCompleteComponent = /*#__PURE__*/React.forwardRef(function (_ref, userRef) {
|
|
4427
4430
|
var _ref$options = _ref.options,
|
|
@@ -36664,7 +36667,7 @@ function TableComponent(tableProps) {
|
|
|
36664
36667
|
auto: true,
|
|
36665
36668
|
px: 0.6,
|
|
36666
36669
|
scale: 2 / 3,
|
|
36667
|
-
iconRight: /*#__PURE__*/jsxRuntime.jsx(
|
|
36670
|
+
iconRight: /*#__PURE__*/jsxRuntime.jsx(ChevronLeft, {})
|
|
36668
36671
|
})
|
|
36669
36672
|
}), /*#__PURE__*/jsxRuntime.jsx(Tooltip.Small, {
|
|
36670
36673
|
text: "Next",
|
|
@@ -36680,7 +36683,7 @@ function TableComponent(tableProps) {
|
|
|
36680
36683
|
iconRight: isLoading ? /*#__PURE__*/jsxRuntime.jsx(Loading, {
|
|
36681
36684
|
width: "20px",
|
|
36682
36685
|
height: "20px"
|
|
36683
|
-
}) : /*#__PURE__*/jsxRuntime.jsx(
|
|
36686
|
+
}) : /*#__PURE__*/jsxRuntime.jsx(ChevronRight, {})
|
|
36684
36687
|
})
|
|
36685
36688
|
})]
|
|
36686
36689
|
}), dataLength && viewLength && onPageChange ? /*#__PURE__*/jsxRuntime.jsxs(Pagination, {
|
|
@@ -36698,9 +36701,9 @@ function TableComponent(tableProps) {
|
|
|
36698
36701
|
limit: 5,
|
|
36699
36702
|
count: Number(dataLength / viewLength),
|
|
36700
36703
|
children: [/*#__PURE__*/jsxRuntime.jsx(Pagination.Next, {
|
|
36701
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
36704
|
+
children: /*#__PURE__*/jsxRuntime.jsx(ChevronRight, {})
|
|
36702
36705
|
}), /*#__PURE__*/jsxRuntime.jsx(Pagination.Previous, {
|
|
36703
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
36706
|
+
children: /*#__PURE__*/jsxRuntime.jsx(ChevronLeft, {})
|
|
36704
36707
|
})]
|
|
36705
36708
|
}) : null]
|
|
36706
36709
|
}) : null, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
@@ -41395,7 +41398,7 @@ var Thumbs = /*#__PURE__*/function (_Component) {
|
|
|
41395
41398
|
zIndex: '2',
|
|
41396
41399
|
left: 0
|
|
41397
41400
|
},
|
|
41398
|
-
iconRight: /*#__PURE__*/jsxRuntime.jsx(
|
|
41401
|
+
iconRight: /*#__PURE__*/jsxRuntime.jsx(ChevronLeft, {}),
|
|
41399
41402
|
className: klass.ARROW_PREV(!hasPrev),
|
|
41400
41403
|
onClick: function onClick() {
|
|
41401
41404
|
return _this3.slideRight();
|
|
@@ -41433,7 +41436,7 @@ var Thumbs = /*#__PURE__*/function (_Component) {
|
|
|
41433
41436
|
zIndex: '2',
|
|
41434
41437
|
right: 0
|
|
41435
41438
|
},
|
|
41436
|
-
iconRight: /*#__PURE__*/jsxRuntime.jsx(
|
|
41439
|
+
iconRight: /*#__PURE__*/jsxRuntime.jsx(ChevronRight, {}),
|
|
41437
41440
|
className: klass.ARROW_NEXT(!hasNext),
|
|
41438
41441
|
onClick: function onClick() {
|
|
41439
41442
|
return _this3.slideLeft();
|
|
@@ -42752,7 +42755,7 @@ function Clipboard(props) {
|
|
|
42752
42755
|
onClick: function onClick() {
|
|
42753
42756
|
return _onClick;
|
|
42754
42757
|
},
|
|
42755
|
-
icon: /*#__PURE__*/jsxRuntime.jsx(
|
|
42758
|
+
icon: /*#__PURE__*/jsxRuntime.jsx(Copy, {})
|
|
42756
42759
|
})]
|
|
42757
42760
|
});
|
|
42758
42761
|
}
|
package/dist/table/index.js
CHANGED
|
@@ -7,7 +7,8 @@ var theme = require('@helpdice/theme');
|
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
8
8
|
var reactDom = require('react-dom');
|
|
9
9
|
var pro = require('@helpdice/pro');
|
|
10
|
-
var
|
|
10
|
+
var ChevronLeft = require('@helpdice/icons/curved/ChevronLeft');
|
|
11
|
+
var ChevronRight = require('@helpdice/icons/curved/ChevronRight');
|
|
11
12
|
|
|
12
13
|
function _arrayLikeToArray(r, a) {
|
|
13
14
|
(null == a || a > r.length) && (a = r.length);
|
|
@@ -24408,7 +24409,7 @@ function TableComponent(tableProps) {
|
|
|
24408
24409
|
auto: true,
|
|
24409
24410
|
px: 0.6,
|
|
24410
24411
|
scale: 2 / 3,
|
|
24411
|
-
iconRight: /*#__PURE__*/jsxRuntime.jsx(
|
|
24412
|
+
iconRight: /*#__PURE__*/jsxRuntime.jsx(ChevronLeft, {})
|
|
24412
24413
|
})
|
|
24413
24414
|
}), /*#__PURE__*/jsxRuntime.jsx(Tooltip.Small, {
|
|
24414
24415
|
text: "Next",
|
|
@@ -24424,7 +24425,7 @@ function TableComponent(tableProps) {
|
|
|
24424
24425
|
iconRight: isLoading ? /*#__PURE__*/jsxRuntime.jsx(Loading, {
|
|
24425
24426
|
width: "20px",
|
|
24426
24427
|
height: "20px"
|
|
24427
|
-
}) : /*#__PURE__*/jsxRuntime.jsx(
|
|
24428
|
+
}) : /*#__PURE__*/jsxRuntime.jsx(ChevronRight, {})
|
|
24428
24429
|
})
|
|
24429
24430
|
})]
|
|
24430
24431
|
}), dataLength && viewLength && onPageChange ? /*#__PURE__*/jsxRuntime.jsxs(Pagination, {
|
|
@@ -24442,9 +24443,9 @@ function TableComponent(tableProps) {
|
|
|
24442
24443
|
limit: 5,
|
|
24443
24444
|
count: Number(dataLength / viewLength),
|
|
24444
24445
|
children: [/*#__PURE__*/jsxRuntime.jsx(Pagination.Next, {
|
|
24445
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
24446
|
+
children: /*#__PURE__*/jsxRuntime.jsx(ChevronRight, {})
|
|
24446
24447
|
}), /*#__PURE__*/jsxRuntime.jsx(Pagination.Previous, {
|
|
24447
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
24448
|
+
children: /*#__PURE__*/jsxRuntime.jsx(ChevronLeft, {})
|
|
24448
24449
|
})]
|
|
24449
24450
|
}) : null]
|
|
24450
24451
|
}) : null, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
@@ -16,7 +16,7 @@ import Loading from '../loading';
|
|
|
16
16
|
import { pickChild } from '../utils/collections';
|
|
17
17
|
import { useCurrentState } from '@helpdice/theme';
|
|
18
18
|
import useScale, { withScale } from '../use-scale';
|
|
19
|
-
import
|
|
19
|
+
import ArrowRight from '@helpdice/icons/curved/ArrowRight';
|
|
20
20
|
var childrenToOptionsNode = function childrenToOptionsNode(options) {
|
|
21
21
|
return options.map(function (item, index) {
|
|
22
22
|
var key = "auto-complete-item-".concat(index);
|
package/esm/carousal/Thumbs.js
CHANGED
|
@@ -16,7 +16,9 @@ import CSSTranslate from './CSSTranslate';
|
|
|
16
16
|
import Swipe from '../swipe';
|
|
17
17
|
import getWindow from './shims/window';
|
|
18
18
|
import Button from '../button';
|
|
19
|
-
|
|
19
|
+
// icons
|
|
20
|
+
import ChevronLeft from "@helpdice/icons/curved/ChevronLeft";
|
|
21
|
+
import ChevronRight from "@helpdice/icons/curved/ChevronRight";
|
|
20
22
|
var isKeyboardEvent = function isKeyboardEvent(e) {
|
|
21
23
|
return e.hasOwnProperty('key');
|
|
22
24
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import React, { Children } from 'react';
|
|
3
3
|
import copy from './copy';
|
|
4
|
-
import { Copy } from '@helpdice/icons';
|
|
5
4
|
import Button from '../button';
|
|
6
5
|
import { useToasts } from '@helpdice/theme';
|
|
6
|
+
// icons
|
|
7
|
+
import Copy from "@helpdice/icons/curved/Copy";
|
|
7
8
|
|
|
8
9
|
// export function Clipboard(props: ClipboardProps) {
|
|
9
10
|
// const { setToast } = useToasts();
|
package/esm/index.d.ts
CHANGED
|
@@ -94,9 +94,9 @@ export type { HUIThemes, HUserTheme } from './themes';
|
|
|
94
94
|
export { default as Toggle } from './toggle';
|
|
95
95
|
export type { ToggleProps } from './toggle';
|
|
96
96
|
export { default as Tooltip } from './tooltip';
|
|
97
|
-
export { default as Notetip } from './notetip/
|
|
97
|
+
export { default as Notetip } from './notetip/notetip';
|
|
98
98
|
export type { TooltipProps } from './tooltip';
|
|
99
|
-
export type { NotetipProps } from './notetip/
|
|
99
|
+
export type { NotetipProps } from './notetip/notetip';
|
|
100
100
|
export { default as Tree } from './tree';
|
|
101
101
|
export type { TreeProps } from './tree';
|
|
102
102
|
export { useTime, useTimer, useStopwatch } from './timer';
|
package/esm/index.js
CHANGED
|
@@ -55,7 +55,7 @@ export { default as Textarea } from './textarea';
|
|
|
55
55
|
export { default as Themes } from './themes';
|
|
56
56
|
export { default as Toggle } from './toggle';
|
|
57
57
|
export { default as Tooltip } from './tooltip';
|
|
58
|
-
export { default as Notetip } from './notetip/
|
|
58
|
+
export { default as Notetip } from './notetip/notetip';
|
|
59
59
|
export { default as Tree } from './tree';
|
|
60
60
|
export { useTime, useTimer, useStopwatch } from './timer';
|
|
61
61
|
export { default as User } from './user';
|
package/esm/notetip/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import Notetip from "./
|
|
1
|
+
import Notetip from "./notetip";
|
|
2
2
|
export default Notetip;
|
package/esm/table/table.js
CHANGED
|
@@ -14,13 +14,15 @@ import useResize from '../utils/use-resize';
|
|
|
14
14
|
import { TableContext } from './table-context';
|
|
15
15
|
import useScale, { withScale } from '../use-scale';
|
|
16
16
|
import TableColumn from './table-column';
|
|
17
|
-
import { ChevronLeft, ChevronRight } from '@helpdice/icons';
|
|
18
17
|
import Pagination from '../pagination';
|
|
19
18
|
import Button from '../button';
|
|
20
19
|
import Tooltip from '../tooltip';
|
|
21
20
|
import Placeholder from '../placeholder';
|
|
22
21
|
import { useTheme } from '@helpdice/theme';
|
|
23
22
|
import Loading from '../loading';
|
|
23
|
+
// icons
|
|
24
|
+
import ChevronLeft from "@helpdice/icons/curved/ChevronLeft";
|
|
25
|
+
import ChevronRight from "@helpdice/icons/curved/ChevronRight";
|
|
24
26
|
function TableComponent(tableProps) {
|
|
25
27
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
26
28
|
var _ref = tableProps,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@helpdice/ui",
|
|
3
|
-
"version": "2.6.1-beta.
|
|
3
|
+
"version": "2.6.1-beta.5",
|
|
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.
|
|
65
|
+
"@helpdice/icons": "1.3.8",
|
|
66
66
|
"@helpdice/pro": "2.2.0",
|
|
67
67
|
"@helpdice/sdk": "^0.4.3",
|
|
68
68
|
"@helpdice/utils": "^0.1.4",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|