@helpdice/ui 1.6.8 → 1.6.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/Placeholder/index.js +10 -10
- package/dist/auto-complete/auto-complete.d.ts +35 -3
- package/dist/auto-complete/index.js +8 -7
- package/dist/breadcrumbs/index.js +1 -1
- package/dist/button/index.js +2 -2
- package/dist/button-dropdown/index.js +1 -1
- package/dist/card/index.js +1 -1
- package/dist/checkbox/index.js +1 -1
- package/dist/code-block/index.d.ts +10 -0
- package/dist/image/index.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +59 -30
- package/dist/input/index.js +2 -2
- package/dist/link/index.js +1 -1
- package/dist/modal/index.js +3 -3
- package/dist/rating/index.js +1 -1
- package/dist/select/index.js +3 -3
- package/dist/snippet/index.js +1 -1
- package/dist/table/index.js +17 -17
- package/dist/tabs/index.js +2 -2
- package/dist/text/child.d.ts +1 -1
- package/dist/text/index.js +10 -10
- package/dist/text/text.d.ts +1 -1
- package/dist/ui-provider/index.js +2 -2
- package/dist/user/index.js +1 -1
- package/dist/utils/collections.d.ts +1 -1
- package/esm/auto-complete/auto-complete.d.ts +35 -3
- package/esm/auto-complete/auto-complete.js +3 -4
- package/esm/button/button-loading.js +1 -1
- package/esm/button/styles.js +1 -1
- package/esm/button-dropdown/icon.js +1 -1
- package/esm/checkbox/checkbox.icon.js +1 -1
- package/esm/code-block/index.d.ts +10 -0
- package/esm/code-block/index.js +27 -28
- package/esm/index.d.ts +1 -0
- package/esm/index.js +1 -1
- package/esm/input/input-block-label.js +1 -1
- package/esm/input/input-icon.js +1 -1
- package/esm/link/icon.js +1 -1
- package/esm/modal/modal-actions.js +1 -1
- package/esm/rating/rating-icon.js +1 -1
- package/esm/select/select-icon.js +1 -1
- package/esm/select/select-input.js +1 -1
- package/esm/select/select-multiple-value.js +1 -1
- package/esm/snippet/snippet-icon.js +1 -1
- package/esm/tabs/tabs.js +2 -2
- package/esm/text/child.d.ts +1 -1
- package/esm/text/child.js +10 -10
- package/esm/text/text.d.ts +1 -1
- package/esm/tooltip/__test__/index.test.js +2 -2
- package/esm/utils/collections.d.ts +1 -1
- package/esm/utils/collections.js +1 -1
- package/package.json +6 -3
- /package/esm/utils/use-context-state/{create-geist-context.js → create-ui-context.js} +0 -0
|
@@ -2,7 +2,7 @@ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { mount } from 'enzyme';
|
|
5
|
-
import { Button, Tooltip,
|
|
5
|
+
import { Button, Tooltip, UiProvider } from 'components';
|
|
6
6
|
import { nativeEvent, updateWrapper } from 'tests/utils';
|
|
7
7
|
import { act } from 'react-dom/test-utils';
|
|
8
8
|
var expectTooltipIsShow = function expectTooltipIsShow(wrapper) {
|
|
@@ -17,7 +17,7 @@ describe('Tooltip', function () {
|
|
|
17
17
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
18
18
|
while (1) switch (_context.prev = _context.next) {
|
|
19
19
|
case 0:
|
|
20
|
-
wrapper = mount(/*#__PURE__*/React.createElement(
|
|
20
|
+
wrapper = mount(/*#__PURE__*/React.createElement(UiProvider, {
|
|
21
21
|
themeType: "dark"
|
|
22
22
|
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
23
23
|
text: /*#__PURE__*/React.createElement("p", {
|
|
@@ -9,7 +9,7 @@ export declare const setChildrenProps: (children: ReactNode | undefined, props:
|
|
|
9
9
|
export declare const setChildrenIndex: (children: ReactNode | undefined, targetComponents?: Array<React.ElementType>) => ReactNode | undefined;
|
|
10
10
|
export declare const getReactNode: (node?: React.ReactNode | (() => React.ReactNode)) => React.ReactNode;
|
|
11
11
|
export declare const isChildElement: (parent: Element | null | undefined, child: Element | null | undefined) => boolean;
|
|
12
|
-
export declare const
|
|
12
|
+
export declare const isUiElement: (el?: HTMLElement) => boolean;
|
|
13
13
|
export declare const isBrowser: () => boolean;
|
|
14
14
|
export declare const isMac: () => boolean;
|
|
15
15
|
export declare const isCSSNumberValue: (value?: string | number) => boolean;
|
package/esm/utils/collections.js
CHANGED
|
@@ -110,7 +110,7 @@ export var isChildElement = function isChildElement(parent, child) {
|
|
|
110
110
|
}
|
|
111
111
|
return false;
|
|
112
112
|
};
|
|
113
|
-
export var
|
|
113
|
+
export var isUiElement = function isUiElement(el) {
|
|
114
114
|
if (!el) return false;
|
|
115
115
|
if (el !== null && el !== void 0 && el.dataset && el !== null && el !== void 0 && el.dataset['helpdice']) return true;
|
|
116
116
|
el.attributes.getNamedItem('data-helpdice');
|
package/package.json
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@helpdice/ui",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.9",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "esm/index.d.ts",
|
|
6
6
|
"unpkg": "dist/index.min.js",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"
|
|
9
|
-
"
|
|
8
|
+
"start": "next start",
|
|
9
|
+
"dev": "next dev",
|
|
10
|
+
"next": "next build",
|
|
11
|
+
"docs:dev": "yarn docs:collect && next dev",
|
|
10
12
|
"docs:collect": "node scripts/collect-meta.js",
|
|
11
13
|
"docs:seeds": "node scripts/seeds/update.js",
|
|
12
14
|
"docs:build": "yarn docs:collect & yarn docs:seeds && next build",
|
|
@@ -105,6 +107,7 @@
|
|
|
105
107
|
"hoist-non-react-statics": "^3.3.2",
|
|
106
108
|
"lodash": "^4.17.21",
|
|
107
109
|
"lodash-es": "^4.17.21",
|
|
110
|
+
"next-sitemap": "^4.2.3",
|
|
108
111
|
"polished": "^4.3.1",
|
|
109
112
|
"react-fast-compare": "^3.2.2",
|
|
110
113
|
"react-is": "^19.0.0",
|
|
File without changes
|