@dnb/eufemia 9.31.0 → 9.32.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/CHANGELOG.md +16 -0
- package/cjs/components/accordion/style/themes/dnb-accordion-theme-ui.css +19 -20
- package/cjs/components/accordion/style/themes/dnb-accordion-theme-ui.min.css +3 -3
- package/cjs/components/accordion/style/themes/dnb-accordion-theme-ui.scss +11 -14
- package/cjs/components/avatar/Avatar.d.ts +4 -4
- package/cjs/components/avatar/AvatarGroup.d.ts +2 -2
- package/cjs/components/badge/Badge.d.ts +3 -3
- package/cjs/components/breadcrumb/Breadcrumb.d.ts +4 -4
- package/cjs/components/breadcrumb/Breadcrumb.js +1 -1
- package/cjs/components/breadcrumb/BreadcrumbItem.d.ts +2 -1
- package/cjs/components/breadcrumb/BreadcrumbItem.js +5 -2
- package/cjs/components/breadcrumb/BreadcrumbMultiple.d.ts +1 -1
- package/cjs/components/breadcrumb/BreadcrumbMultiple.js +7 -5
- package/cjs/components/button/Button.d.ts +1 -1
- package/cjs/components/height-animation/HeightAnimation.d.ts +2 -2
- package/cjs/components/height-animation/HeightAnimation.js +1 -1
- package/cjs/components/info-card/InfoCard.d.ts +2 -2
- package/cjs/components/lib.d.ts +16 -16
- package/cjs/components/modal/Modal.d.ts +2 -2
- package/cjs/components/section/Section.d.ts +2 -2
- package/cjs/components/slider/types.d.ts +2 -2
- package/cjs/components/table/Table.d.ts +2 -2
- package/cjs/components/tag/Tag.d.ts +4 -4
- package/cjs/components/tag/TagGroup.d.ts +2 -2
- package/cjs/components/timeline/Timeline.d.ts +2 -2
- package/cjs/components/tooltip/types.d.ts +2 -2
- package/cjs/components/visually-hidden/VisuallyHidden.d.ts +1 -1
- package/cjs/elements/Anchor.d.ts +4 -4
- package/cjs/elements/Dd.d.ts +2 -2
- package/cjs/elements/Dl.d.ts +5 -8
- package/cjs/elements/Dl.js +2 -2
- package/cjs/elements/Dt.d.ts +2 -2
- package/cjs/elements/Element.d.ts +4 -2
- package/cjs/elements/Li.d.ts +6 -26
- package/cjs/elements/Li.js +0 -23
- package/cjs/elements/Link.d.ts +2 -2
- package/cjs/elements/Ol.d.ts +20 -29
- package/cjs/elements/Ol.js +0 -33
- package/cjs/elements/Ul.d.ts +20 -30
- package/cjs/elements/Ul.js +0 -35
- package/cjs/elements/lib.d.ts +13 -15
- package/cjs/fragments/lib.d.ts +2 -2
- package/cjs/fragments/scroll-view/ScrollView.d.ts +4 -4
- package/cjs/shared/Eufemia.js +1 -1
- package/cjs/shared/interfaces.d.ts +4 -25
- package/cjs/shared/interfaces.js +24 -1
- package/cjs/shared/types.d.ts +35 -0
- package/cjs/shared/types.js +1 -0
- package/cjs/style/dnb-ui-elements.css +1 -1
- package/cjs/style/dnb-ui-elements.min.css +1 -1
- package/cjs/style/dnb-ui-tags.css +2 -2
- package/cjs/style/dnb-ui-tags.min.css +1 -1
- package/cjs/style/elements/lists.scss +1 -1
- package/cjs/style/themes/theme-eiendom/dnb-theme-eiendom.css +20 -21
- package/cjs/style/themes/theme-eiendom/dnb-theme-eiendom.min.css +3 -3
- package/cjs/style/themes/theme-ui/dnb-theme-ui.css +20 -21
- package/cjs/style/themes/theme-ui/dnb-theme-ui.min.css +3 -3
- package/components/accordion/style/themes/dnb-accordion-theme-ui.css +19 -20
- package/components/accordion/style/themes/dnb-accordion-theme-ui.min.css +3 -3
- package/components/accordion/style/themes/dnb-accordion-theme-ui.scss +11 -14
- package/components/avatar/Avatar.d.ts +4 -4
- package/components/avatar/AvatarGroup.d.ts +2 -2
- package/components/badge/Badge.d.ts +3 -3
- package/components/breadcrumb/Breadcrumb.d.ts +4 -4
- package/components/breadcrumb/Breadcrumb.js +1 -1
- package/components/breadcrumb/BreadcrumbItem.d.ts +2 -1
- package/components/breadcrumb/BreadcrumbItem.js +5 -2
- package/components/breadcrumb/BreadcrumbMultiple.d.ts +1 -1
- package/components/breadcrumb/BreadcrumbMultiple.js +7 -5
- package/components/button/Button.d.ts +1 -1
- package/components/height-animation/HeightAnimation.d.ts +2 -2
- package/components/height-animation/HeightAnimation.js +1 -1
- package/components/info-card/InfoCard.d.ts +2 -2
- package/components/lib.d.ts +16 -16
- package/components/modal/Modal.d.ts +2 -2
- package/components/section/Section.d.ts +2 -2
- package/components/slider/types.d.ts +2 -2
- package/components/table/Table.d.ts +2 -2
- package/components/tag/Tag.d.ts +4 -4
- package/components/tag/TagGroup.d.ts +2 -2
- package/components/timeline/Timeline.d.ts +2 -2
- package/components/tooltip/types.d.ts +2 -2
- package/components/visually-hidden/VisuallyHidden.d.ts +1 -1
- package/elements/Anchor.d.ts +4 -4
- package/elements/Dd.d.ts +2 -2
- package/elements/Dl.d.ts +5 -8
- package/elements/Dl.js +2 -2
- package/elements/Dt.d.ts +2 -2
- package/elements/Element.d.ts +4 -2
- package/elements/Li.d.ts +6 -26
- package/elements/Li.js +0 -20
- package/elements/Link.d.ts +2 -2
- package/elements/Ol.d.ts +20 -29
- package/elements/Ol.js +0 -28
- package/elements/Ul.d.ts +20 -30
- package/elements/Ul.js +0 -30
- package/elements/lib.d.ts +13 -15
- package/es/components/accordion/style/themes/dnb-accordion-theme-ui.css +19 -20
- package/es/components/accordion/style/themes/dnb-accordion-theme-ui.min.css +3 -3
- package/es/components/accordion/style/themes/dnb-accordion-theme-ui.scss +11 -14
- package/es/components/avatar/Avatar.d.ts +4 -4
- package/es/components/avatar/AvatarGroup.d.ts +2 -2
- package/es/components/badge/Badge.d.ts +3 -3
- package/es/components/breadcrumb/Breadcrumb.d.ts +4 -4
- package/es/components/breadcrumb/Breadcrumb.js +1 -1
- package/es/components/breadcrumb/BreadcrumbItem.d.ts +2 -1
- package/es/components/breadcrumb/BreadcrumbItem.js +5 -2
- package/es/components/breadcrumb/BreadcrumbMultiple.d.ts +1 -1
- package/es/components/breadcrumb/BreadcrumbMultiple.js +5 -5
- package/es/components/button/Button.d.ts +1 -1
- package/es/components/height-animation/HeightAnimation.d.ts +2 -2
- package/es/components/height-animation/HeightAnimation.js +1 -1
- package/es/components/info-card/InfoCard.d.ts +2 -2
- package/es/components/lib.d.ts +16 -16
- package/es/components/modal/Modal.d.ts +2 -2
- package/es/components/section/Section.d.ts +2 -2
- package/es/components/slider/types.d.ts +2 -2
- package/es/components/table/Table.d.ts +2 -2
- package/es/components/tag/Tag.d.ts +4 -4
- package/es/components/tag/TagGroup.d.ts +2 -2
- package/es/components/timeline/Timeline.d.ts +2 -2
- package/es/components/tooltip/types.d.ts +2 -2
- package/es/components/visually-hidden/VisuallyHidden.d.ts +1 -1
- package/es/elements/Anchor.d.ts +4 -4
- package/es/elements/Dd.d.ts +2 -2
- package/es/elements/Dl.d.ts +5 -8
- package/es/elements/Dl.js +2 -2
- package/es/elements/Dt.d.ts +2 -2
- package/es/elements/Element.d.ts +4 -2
- package/es/elements/Li.d.ts +6 -26
- package/es/elements/Li.js +0 -15
- package/es/elements/Link.d.ts +2 -2
- package/es/elements/Ol.d.ts +20 -29
- package/es/elements/Ol.js +0 -21
- package/es/elements/Ul.d.ts +20 -30
- package/es/elements/Ul.js +0 -23
- package/es/elements/lib.d.ts +13 -15
- package/es/fragments/lib.d.ts +2 -2
- package/es/fragments/scroll-view/ScrollView.d.ts +4 -4
- package/es/shared/Eufemia.js +1 -1
- package/es/shared/interfaces.d.ts +4 -25
- package/es/shared/interfaces.js +1 -1
- package/es/shared/types.d.ts +35 -0
- package/es/shared/types.js +1 -0
- package/es/style/dnb-ui-elements.css +1 -1
- package/es/style/dnb-ui-elements.min.css +1 -1
- package/es/style/dnb-ui-tags.css +2 -2
- package/es/style/dnb-ui-tags.min.css +1 -1
- package/es/style/elements/lists.scss +1 -1
- package/es/style/themes/theme-eiendom/dnb-theme-eiendom.css +20 -21
- package/es/style/themes/theme-eiendom/dnb-theme-eiendom.min.css +3 -3
- package/es/style/themes/theme-ui/dnb-theme-ui.css +20 -21
- package/es/style/themes/theme-ui/dnb-theme-ui.min.css +3 -3
- package/esm/dnb-ui-basis.min.mjs +1 -1
- package/esm/dnb-ui-components.min.mjs +1 -1
- package/esm/dnb-ui-elements.min.mjs +2 -2
- package/esm/dnb-ui-extensions.min.mjs +1 -1
- package/esm/dnb-ui-lib.min.mjs +2 -2
- package/esm/dnb-ui-web-components.min.mjs +2 -2
- package/fragments/lib.d.ts +2 -2
- package/fragments/scroll-view/ScrollView.d.ts +4 -4
- package/package.json +1 -1
- package/shared/Eufemia.js +1 -1
- package/shared/interfaces.d.ts +4 -25
- package/shared/interfaces.js +1 -1
- package/shared/types.d.ts +35 -0
- package/shared/types.js +1 -0
- package/style/dnb-ui-elements.css +1 -1
- package/style/dnb-ui-elements.min.css +1 -1
- package/style/dnb-ui-tags.css +2 -2
- package/style/dnb-ui-tags.min.css +1 -1
- package/style/elements/lists.scss +1 -1
- package/style/themes/theme-eiendom/dnb-theme-eiendom.css +20 -21
- package/style/themes/theme-eiendom/dnb-theme-eiendom.min.css +3 -3
- package/style/themes/theme-ui/dnb-theme-ui.css +20 -21
- package/style/themes/theme-ui/dnb-theme-ui.min.css +3 -3
- package/umd/dnb-ui-basis.min.js +1 -1
- package/umd/dnb-ui-components.min.js +1 -1
- package/umd/dnb-ui-elements.min.js +5 -5
- package/umd/dnb-ui-extensions.min.js +1 -1
- package/umd/dnb-ui-lib.min.js +2 -2
- package/umd/dnb-ui-web-components.min.js +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SectionSpacing, SectionStyleTypes } from '../section/Section';
|
|
3
|
-
import {
|
|
3
|
+
import { SpacingProps } from '../../shared/types';
|
|
4
4
|
import { SkeletonShow } from '../skeleton/Skeleton';
|
|
5
5
|
import BreadcrumbItem, { BreadcrumbItemProps } from './BreadcrumbItem';
|
|
6
6
|
export interface BreadcrumbProps {
|
|
@@ -18,12 +18,12 @@ export interface BreadcrumbProps {
|
|
|
18
18
|
* Pass in a list of your pages as objects of breadcrumbitem to render them as breadcrumbitems.
|
|
19
19
|
* Default: null
|
|
20
20
|
*/
|
|
21
|
-
data?: BreadcrumbItemProps
|
|
21
|
+
data?: Array<BreadcrumbItemProps>;
|
|
22
22
|
/**
|
|
23
23
|
* The content of the component. Can be used instead of prop "data".
|
|
24
24
|
* Default: null
|
|
25
25
|
*/
|
|
26
|
-
children?: React.
|
|
26
|
+
children?: Array<React.ReactElement<BreadcrumbItemProps>>;
|
|
27
27
|
/**
|
|
28
28
|
* The variant of the component.
|
|
29
29
|
* Default: When children and data is not defined, it defaults to "single". If they are defined, the variant depends on the viewport.
|
|
@@ -97,7 +97,7 @@ export declare const defaultProps: {
|
|
|
97
97
|
spacing: boolean;
|
|
98
98
|
};
|
|
99
99
|
declare const Breadcrumb: {
|
|
100
|
-
(localProps: BreadcrumbProps &
|
|
100
|
+
(localProps: BreadcrumbProps & SpacingProps): JSX.Element;
|
|
101
101
|
Item: (localProps: BreadcrumbItemProps) => JSX.Element;
|
|
102
102
|
};
|
|
103
103
|
export { BreadcrumbItem };
|
|
@@ -87,7 +87,7 @@ var Breadcrumb = function Breadcrumb(localProps) {
|
|
|
87
87
|
}, props), React.createElement(Section, {
|
|
88
88
|
className: "dnb-breadcrumb__bar",
|
|
89
89
|
style_type: styleType || 'transparent',
|
|
90
|
-
spacing:
|
|
90
|
+
spacing: innerSpacing
|
|
91
91
|
}, currentVariant === 'collapse' && React.createElement(Button, {
|
|
92
92
|
text: backToText,
|
|
93
93
|
variant: "tertiary",
|
|
@@ -32,7 +32,8 @@ export interface BreadcrumbItemProps {
|
|
|
32
32
|
* Default: null
|
|
33
33
|
*/
|
|
34
34
|
skeleton?: SkeletonShow;
|
|
35
|
-
|
|
35
|
+
/** Internal */
|
|
36
|
+
itemNr?: number;
|
|
36
37
|
}
|
|
37
38
|
declare const BreadcrumbItem: (localProps: BreadcrumbItemProps) => JSX.Element;
|
|
38
39
|
export default BreadcrumbItem;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["text", "href", "icon", "onClick", "variant", "skeleton", "
|
|
3
|
+
var _excluded = ["text", "href", "icon", "onClick", "variant", "skeleton", "itemNr"];
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import Button from '../button/Button';
|
|
6
6
|
import IconPrimary from '../icon-primary/IconPrimary';
|
|
@@ -28,12 +28,15 @@ var BreadcrumbItem = function BreadcrumbItem(localProps) {
|
|
|
28
28
|
onClick = _extendPropsWithConte.onClick,
|
|
29
29
|
variant = _extendPropsWithConte.variant,
|
|
30
30
|
skeleton = _extendPropsWithConte.skeleton,
|
|
31
|
-
|
|
31
|
+
itemNr = _extendPropsWithConte.itemNr,
|
|
32
32
|
props = _objectWithoutProperties(_extendPropsWithConte, _excluded);
|
|
33
33
|
|
|
34
34
|
var currentIcon = icon || variant === 'home' && homeIcon || 'chevron_left';
|
|
35
35
|
var currentText = text || variant === 'home' && homeText || '';
|
|
36
36
|
var isInteractive = (href || onClick) && variant !== 'current';
|
|
37
|
+
var style = {
|
|
38
|
+
'--delay': String(itemNr)
|
|
39
|
+
};
|
|
37
40
|
return React.createElement("li", {
|
|
38
41
|
className: "dnb-breadcrumb__item",
|
|
39
42
|
"data-testid": "breadcrumb-item",
|
|
@@ -4,7 +4,7 @@ declare type BreadcrumbMultipleProps = {
|
|
|
4
4
|
isCollapsed: boolean;
|
|
5
5
|
noAnimation: boolean;
|
|
6
6
|
data: Array<BreadcrumbItemProps>;
|
|
7
|
-
items: React.
|
|
7
|
+
items: Array<React.ReactElement<BreadcrumbItemProps>>;
|
|
8
8
|
};
|
|
9
9
|
export declare const BreadcrumbMultiple: ({ isCollapsed, items, noAnimation, data, }: BreadcrumbMultipleProps) => JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -19,13 +19,15 @@ export var BreadcrumbMultiple = function BreadcrumbMultiple(_ref) {
|
|
|
19
19
|
element: "ol",
|
|
20
20
|
style_type: "transparent"
|
|
21
21
|
}, data === null || data === void 0 ? void 0 : data.map(function (breadcrumbItem, i) {
|
|
22
|
-
var style = {
|
|
23
|
-
'--delay': String(i)
|
|
24
|
-
};
|
|
25
22
|
return React.createElement(BreadcrumbItem, _extends({
|
|
26
23
|
key: "".concat(breadcrumbItem.text),
|
|
27
24
|
variant: i == 0 && 'home' || i == data.length - 1 && 'current' || null,
|
|
28
|
-
|
|
25
|
+
itemNr: i
|
|
29
26
|
}, breadcrumbItem));
|
|
30
|
-
}), items)
|
|
27
|
+
}), items === null || items === void 0 ? void 0 : items.map(function (item, i) {
|
|
28
|
+
return React.cloneElement(item, {
|
|
29
|
+
key: i,
|
|
30
|
+
itemNr: i
|
|
31
|
+
});
|
|
32
|
+
})));
|
|
31
33
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SkeletonShow } from '../skeleton/Skeleton';
|
|
3
3
|
import { IconPrimaryIcon } from '../icon-primary/IconPrimary';
|
|
4
|
-
import { DataAttributeTypes } from '../../shared/
|
|
4
|
+
import { DataAttributeTypes } from '../../shared/types';
|
|
5
5
|
export type ButtonText = string | React.ReactNode;
|
|
6
6
|
export type ButtonVariant =
|
|
7
7
|
| 'primary'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { DynamicElement,
|
|
2
|
+
import { DynamicElement, SpacingProps } from '../../shared/types';
|
|
3
3
|
import { useHeightAnimationOptions } from './useHeightAnimation';
|
|
4
4
|
export declare type HeightAnimationProps = {
|
|
5
5
|
/**
|
|
@@ -24,4 +24,4 @@ export declare type HeightAnimationProps = {
|
|
|
24
24
|
innerRef?: React.RefObject<HTMLElement>;
|
|
25
25
|
className?: React.ReactNode;
|
|
26
26
|
} & useHeightAnimationOptions;
|
|
27
|
-
export default function HeightAnimation({ open, animate, keepInDOM, element, duration, className, innerRef, children, onInit, onOpen, onAnimationEnd, ...props }: HeightAnimationProps &
|
|
27
|
+
export default function HeightAnimation({ open, animate, keepInDOM, element, duration, className, innerRef, children, onInit, onOpen, onAnimationEnd, ...props }: HeightAnimationProps & SpacingProps): JSX.Element;
|
|
@@ -53,7 +53,7 @@ export default function HeightAnimation(_ref) {
|
|
|
53
53
|
return React.createElement(Space, _extends({
|
|
54
54
|
innerRef: innerRef || ref,
|
|
55
55
|
element: element || 'div',
|
|
56
|
-
className: classnames('dnb-height-animation', className,
|
|
56
|
+
className: classnames('dnb-height-animation', className, isVisible ? 'dnb-height-animation--is-visible' : !isAnimating && !open && 'dnb-height-animation--hidden', isInDOM && 'dnb-height-animation--is-in-dom', isVisibleParallax && 'dnb-height-animation--parallax', isAnimating && 'dnb-height-animation--animating'),
|
|
57
57
|
style: style,
|
|
58
58
|
"aria-hidden": keepInDOM ? !open : undefined
|
|
59
59
|
}, props), children);
|
|
@@ -3,7 +3,7 @@ import { ButtonProps } from '../button/Button';
|
|
|
3
3
|
import { IconPrimaryIcon } from '../icon-primary/IconPrimary';
|
|
4
4
|
import { ImgProps } from '../../elements/Img';
|
|
5
5
|
import { SkeletonShow } from '../skeleton/Skeleton';
|
|
6
|
-
import {
|
|
6
|
+
import { SpacingProps } from '../../shared/types';
|
|
7
7
|
export interface InfoCardProps {
|
|
8
8
|
/**
|
|
9
9
|
* Used in combination with `src` to provide an alt attribute for the `img` element.
|
|
@@ -86,5 +86,5 @@ export declare const defaultProps: {
|
|
|
86
86
|
skeleton: boolean;
|
|
87
87
|
icon: (props: any) => JSX.Element;
|
|
88
88
|
};
|
|
89
|
-
declare const InfoCard: (localProps: InfoCardProps &
|
|
89
|
+
declare const InfoCard: (localProps: InfoCardProps & SpacingProps) => JSX.Element;
|
|
90
90
|
export default InfoCard;
|
package/components/lib.d.ts
CHANGED
|
@@ -2,17 +2,17 @@ export function getComponents(): {
|
|
|
2
2
|
Accordion: typeof Accordion;
|
|
3
3
|
Autocomplete: typeof Autocomplete;
|
|
4
4
|
Avatar: {
|
|
5
|
-
(localProps: import("./avatar/Avatar").AvatarProps & import("../shared/
|
|
6
|
-
space?: import("../shared/
|
|
5
|
+
(localProps: import("./avatar/Avatar").AvatarProps & import("../shared/types").SpacingElementProps & {
|
|
6
|
+
space?: import("../shared/types").SpaceTypes | import("../shared/types").SpacingElementProps;
|
|
7
7
|
}): JSX.Element;
|
|
8
|
-
Group: (localProps: import("./avatar/AvatarGroup").AvatarGroupProps & import("../shared/
|
|
9
|
-
space?: import("../shared/
|
|
8
|
+
Group: (localProps: import("./avatar/AvatarGroup").AvatarGroupProps & import("../shared/types").SpacingElementProps & {
|
|
9
|
+
space?: import("../shared/types").SpaceTypes | import("../shared/types").SpacingElementProps;
|
|
10
10
|
}) => JSX.Element;
|
|
11
11
|
};
|
|
12
12
|
Badge: typeof Badge;
|
|
13
13
|
Breadcrumb: {
|
|
14
|
-
(localProps: import("./breadcrumb/Breadcrumb").BreadcrumbProps & import("../shared/
|
|
15
|
-
space?: import("../shared/
|
|
14
|
+
(localProps: import("./breadcrumb/Breadcrumb").BreadcrumbProps & import("../shared/types").SpacingElementProps & {
|
|
15
|
+
space?: import("../shared/types").SpaceTypes | import("../shared/types").SpacingElementProps;
|
|
16
16
|
}): JSX.Element;
|
|
17
17
|
Item: (localProps: import("./breadcrumb/BreadcrumbItem").BreadcrumbItemProps) => JSX.Element;
|
|
18
18
|
};
|
|
@@ -33,8 +33,8 @@ export function getComponents(): {
|
|
|
33
33
|
HelpButton: typeof HelpButton;
|
|
34
34
|
Icon: typeof Icon;
|
|
35
35
|
IconPrimary: typeof IconPrimary;
|
|
36
|
-
InfoCard: (localProps: import("./info-card/InfoCard").InfoCardProps & import("../shared/
|
|
37
|
-
space?: import("../shared/
|
|
36
|
+
InfoCard: (localProps: import("./info-card/InfoCard").InfoCardProps & import("../shared/types").SpacingElementProps & {
|
|
37
|
+
space?: import("../shared/types").SpaceTypes | import("../shared/types").SpacingElementProps;
|
|
38
38
|
}) => JSX.Element;
|
|
39
39
|
Input: typeof Input;
|
|
40
40
|
InputMasked: import("react").FC<import("./input-masked/InputMasked").InputMaskedProps>;
|
|
@@ -51,24 +51,24 @@ export function getComponents(): {
|
|
|
51
51
|
StepIndicator: typeof StepIndicator;
|
|
52
52
|
Switch: typeof Switch;
|
|
53
53
|
Table: {
|
|
54
|
-
(componentProps: import("./table/Table").TableProps & import("react").TableHTMLAttributes<HTMLTableElement> & import("../shared/
|
|
55
|
-
space?: import("../shared/
|
|
54
|
+
(componentProps: import("./table/Table").TableProps & import("react").TableHTMLAttributes<HTMLTableElement> & import("../shared/types").SpacingElementProps & {
|
|
55
|
+
space?: import("../shared/types").SpaceTypes | import("../shared/types").SpacingElementProps;
|
|
56
56
|
}): JSX.Element;
|
|
57
57
|
StickyHelper: () => JSX.Element;
|
|
58
58
|
};
|
|
59
59
|
Tabs: typeof Tabs;
|
|
60
60
|
Tag: {
|
|
61
|
-
(localProps: import("./tag/Tag").TagProps & import("../shared/
|
|
62
|
-
space?: import("../shared/
|
|
61
|
+
(localProps: import("./tag/Tag").TagProps & import("../shared/types").SpacingElementProps & {
|
|
62
|
+
space?: import("../shared/types").SpaceTypes | import("../shared/types").SpacingElementProps;
|
|
63
63
|
}): JSX.Element;
|
|
64
|
-
Group: (localProps: import("./tag/TagGroup").TagGroupProps & import("../shared/
|
|
65
|
-
space?: import("../shared/
|
|
64
|
+
Group: (localProps: import("./tag/TagGroup").TagGroupProps & import("../shared/types").SpacingElementProps & {
|
|
65
|
+
space?: import("../shared/types").SpaceTypes | import("../shared/types").SpacingElementProps;
|
|
66
66
|
}) => JSX.Element;
|
|
67
67
|
};
|
|
68
68
|
Textarea: typeof Textarea;
|
|
69
69
|
Timeline: {
|
|
70
|
-
(localProps: import("./timeline/Timeline").TimelineProps & import("../shared/
|
|
71
|
-
space?: import("../shared/
|
|
70
|
+
(localProps: import("./timeline/Timeline").TimelineProps & import("../shared/types").SpacingElementProps & {
|
|
71
|
+
space?: import("../shared/types").SpaceTypes | import("../shared/types").SpacingElementProps;
|
|
72
72
|
}): JSX.Element;
|
|
73
73
|
Item: (localProps: import("./timeline/TimelineItem").TimelineItemProps) => JSX.Element;
|
|
74
74
|
};
|
|
@@ -10,14 +10,14 @@ import ModalHeader from './parts/ModalHeader';
|
|
|
10
10
|
import ModalHeaderBar from './parts/ModalHeaderBar';
|
|
11
11
|
import { ScrollViewProps } from '../../fragments/scroll-view/ScrollView';
|
|
12
12
|
import CloseButton from './parts/CloseButton';
|
|
13
|
-
import {
|
|
13
|
+
import { SpacingProps } from '../../shared/types';
|
|
14
14
|
import { ToCamelCasePartial } from '../../shared/helpers/withCamelCaseProps';
|
|
15
15
|
export declare const ANIMATION_DURATION = 300;
|
|
16
16
|
interface ModalState {
|
|
17
17
|
hide: boolean;
|
|
18
18
|
modalActive: boolean;
|
|
19
19
|
}
|
|
20
|
-
export declare type ModalPropTypes = ModalProps &
|
|
20
|
+
export declare type ModalPropTypes = ModalProps & SpacingProps & Omit<ScrollViewProps, 'title'>;
|
|
21
21
|
declare class Modal extends React.PureComponent<ModalPropTypes & ToCamelCasePartial<ModalPropTypes>, ModalState> {
|
|
22
22
|
static contextType: React.Context<import("../../shared/Context").ContextProps>;
|
|
23
23
|
static tagName: string;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import { DynamicElement,
|
|
6
|
+
import { DynamicElement, SpacingProps } from '../../shared/types';
|
|
7
7
|
export declare type SectionStyleTypes = 'divider' | 'white' | 'transparent' | 'lavender' | 'pistachio' | 'emerald-green' | 'sea-green' | 'fire-red' | 'fire-red-8' | 'sand-yellow' | 'black-3' | 'mint-green' | 'mint-green-12';
|
|
8
8
|
export declare type SectionSpacing = boolean | 'x-small' | 'small' | 'medium' | 'large';
|
|
9
9
|
export declare type SectionProps = {
|
|
@@ -22,7 +22,7 @@ export declare type SectionProps = {
|
|
|
22
22
|
inner_ref?: React.RefObject<HTMLElement>;
|
|
23
23
|
className?: string;
|
|
24
24
|
children?: React.ReactNode;
|
|
25
|
-
} &
|
|
25
|
+
} & SpacingProps & React.HTMLProps<HTMLElement>;
|
|
26
26
|
declare function Section(localProps: SectionProps): JSX.Element;
|
|
27
27
|
declare namespace Section {
|
|
28
28
|
var tagName: string;
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import type { SuffixChildren } from '../../shared/helpers/Suffix';
|
|
4
4
|
import type { formatReturnType, formatOptionParams } from '../number-format/NumberUtils';
|
|
5
5
|
import { IncludeSnakeCase } from '../../shared/helpers/withSnakeCaseProps';
|
|
6
|
-
import {
|
|
6
|
+
import { SpacingProps } from '../../shared/types';
|
|
7
7
|
export declare type ValueTypes = number | Array<number>;
|
|
8
8
|
export declare type NumberFormatTypes = formatOptionParams | ((value: number) => unknown);
|
|
9
9
|
export declare type onChangeEventProps = {
|
|
@@ -83,7 +83,7 @@ export declare type SliderProps = IncludeSnakeCase<{
|
|
|
83
83
|
use_scrollwheel?: boolean;
|
|
84
84
|
children?: React.ReactChild;
|
|
85
85
|
}>;
|
|
86
|
-
export declare type SliderAllProps = SliderProps &
|
|
86
|
+
export declare type SliderAllProps = SliderProps & SpacingProps & Omit<React.HTMLProps<HTMLElement>, keyof SliderProps>;
|
|
87
87
|
export declare type ThumbStateEnums = 'initial' | 'normal' | 'activated' | 'released';
|
|
88
88
|
export declare type SliderContextTypes = {
|
|
89
89
|
isMulti: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SkeletonShow } from '../skeleton/Skeleton';
|
|
3
|
-
import {
|
|
3
|
+
import { SpacingProps } from '../../shared/types';
|
|
4
4
|
import { StickyHelper, StickyTableHeaderProps } from './TableStickyHeader';
|
|
5
5
|
export declare type TableSizes = 'medium' | 'large';
|
|
6
6
|
export declare type TableVariants = 'basis' | 'not-defined-yet';
|
|
@@ -34,7 +34,7 @@ export declare const defaultProps: {
|
|
|
34
34
|
variant: string;
|
|
35
35
|
};
|
|
36
36
|
declare const Table: {
|
|
37
|
-
(componentProps: TableProps & React.TableHTMLAttributes<HTMLTableElement> &
|
|
37
|
+
(componentProps: TableProps & React.TableHTMLAttributes<HTMLTableElement> & SpacingProps): JSX.Element;
|
|
38
38
|
StickyHelper: () => JSX.Element;
|
|
39
39
|
};
|
|
40
40
|
export default Table;
|
package/components/tag/Tag.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IconPrimaryIcon } from '../icon-primary/IconPrimary';
|
|
3
|
-
import {
|
|
3
|
+
import { SpacingProps } from '../../shared/types';
|
|
4
4
|
import { SkeletonShow } from '../skeleton/Skeleton';
|
|
5
5
|
export interface TagProps {
|
|
6
6
|
/**
|
|
@@ -59,9 +59,9 @@ export declare const defaultProps: {
|
|
|
59
59
|
omitOnKeyUpDeleteEvent: boolean;
|
|
60
60
|
};
|
|
61
61
|
declare const Tag: {
|
|
62
|
-
(localProps: TagProps &
|
|
63
|
-
Group: (localProps: import("./TagGroup").TagGroupProps & import("../../shared/
|
|
64
|
-
space?: import("../../shared/
|
|
62
|
+
(localProps: TagProps & SpacingProps): JSX.Element;
|
|
63
|
+
Group: (localProps: import("./TagGroup").TagGroupProps & import("../../shared/types").SpacingElementProps & {
|
|
64
|
+
space?: import("../../shared/types").SpaceTypes | import("../../shared/types").SpacingElementProps;
|
|
65
65
|
}) => JSX.Element;
|
|
66
66
|
};
|
|
67
67
|
export default Tag;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { SpacingProps } from '../../shared/types';
|
|
3
3
|
import { SkeletonShow } from '../skeleton/Skeleton';
|
|
4
4
|
export interface TagGroupProps {
|
|
5
5
|
/**
|
|
@@ -29,5 +29,5 @@ export declare const defaultProps: {
|
|
|
29
29
|
children: any;
|
|
30
30
|
skeleton: boolean;
|
|
31
31
|
};
|
|
32
|
-
declare const TagGroup: (localProps: TagGroupProps &
|
|
32
|
+
declare const TagGroup: (localProps: TagGroupProps & SpacingProps) => JSX.Element;
|
|
33
33
|
export default TagGroup;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { SpacingProps } from '../../shared/types';
|
|
3
3
|
import { SkeletonShow } from '../skeleton/Skeleton';
|
|
4
4
|
import TimelineItem, { TimelineItemProps } from './TimelineItem';
|
|
5
5
|
export interface TimelineProps {
|
|
@@ -31,7 +31,7 @@ export declare const defaultProps: {
|
|
|
31
31
|
children: any;
|
|
32
32
|
};
|
|
33
33
|
declare const Timeline: {
|
|
34
|
-
(localProps: TimelineProps &
|
|
34
|
+
(localProps: TimelineProps & SpacingProps): JSX.Element;
|
|
35
35
|
Item: (localProps: TimelineItemProps) => JSX.Element;
|
|
36
36
|
};
|
|
37
37
|
export { TimelineItem };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { IncludeSnakeCase } from '../../shared/helpers/withSnakeCaseProps';
|
|
3
|
-
import {
|
|
3
|
+
import { SpacingProps } from '../../shared/types';
|
|
4
4
|
export declare type TooltipPosition = 'top' | 'right' | 'bottom' | 'left';
|
|
5
5
|
export declare type TooltipArrow = null | 'center' | 'top' | 'right' | 'bottom' | 'left';
|
|
6
6
|
export declare type TooltipAlign = null | 'center' | 'right' | 'left';
|
|
@@ -25,4 +25,4 @@ export declare type TooltipProps = IncludeSnakeCase<{
|
|
|
25
25
|
className?: string;
|
|
26
26
|
children?: React.ReactNode;
|
|
27
27
|
}>;
|
|
28
|
-
export declare type TooltipAllProps = TooltipProps &
|
|
28
|
+
export declare type TooltipAllProps = TooltipProps & SpacingProps & Omit<React.HTMLProps<HTMLElement>, keyof TooltipProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { DynamicElement } from '../../shared/
|
|
2
|
+
import { DynamicElement } from '../../shared/types';
|
|
3
3
|
export interface VisuallyHiddenProps {
|
|
4
4
|
/**
|
|
5
5
|
* The content of the visually hidden element, can be a string or a React Element
|
package/elements/Anchor.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import {
|
|
6
|
+
import { SpacingProps } from '../shared/types';
|
|
7
7
|
export declare type AnchorProps = {
|
|
8
8
|
element?: React.ReactNode;
|
|
9
9
|
href?: string;
|
|
@@ -23,7 +23,7 @@ export declare type AnchorProps = {
|
|
|
23
23
|
inner_ref?: React.ForwardedRef<unknown>;
|
|
24
24
|
/** @deprecated use targetBlankTitle instead */
|
|
25
25
|
target_blank_title?: string;
|
|
26
|
-
} & Partial<Omit<HTMLAnchorElement, 'children'>> &
|
|
26
|
+
} & Partial<Omit<HTMLAnchorElement, 'children'>> & SpacingProps;
|
|
27
27
|
declare const Anchor: React.ForwardRefExoticComponent<{
|
|
28
28
|
element?: React.ReactNode;
|
|
29
29
|
href?: string;
|
|
@@ -43,7 +43,7 @@ declare const Anchor: React.ForwardRefExoticComponent<{
|
|
|
43
43
|
inner_ref?: React.ForwardedRef<unknown>;
|
|
44
44
|
/** @deprecated use targetBlankTitle instead */
|
|
45
45
|
target_blank_title?: string;
|
|
46
|
-
} & Partial<Omit<HTMLAnchorElement, "children">> & import("../shared/
|
|
47
|
-
space?: import("../shared/
|
|
46
|
+
} & Partial<Omit<HTMLAnchorElement, "children">> & import("../shared/types").SpacingElementProps & {
|
|
47
|
+
space?: import("../shared/types").SpaceTypes | import("../shared/types").SpacingElementProps;
|
|
48
48
|
} & React.RefAttributes<unknown>>;
|
|
49
49
|
export default Anchor;
|
package/elements/Dd.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare type DdProps = {
|
|
|
7
7
|
className?: string;
|
|
8
8
|
children: React.ReactNode;
|
|
9
9
|
};
|
|
10
|
-
declare const Dd: React.ForwardRefExoticComponent<DdProps & import("../shared/
|
|
11
|
-
space?: import("../shared/
|
|
10
|
+
declare const Dd: React.ForwardRefExoticComponent<DdProps & import("../shared/types").SpacingElementProps & {
|
|
11
|
+
space?: import("../shared/types").SpaceTypes | import("../shared/types").SpacingElementProps;
|
|
12
12
|
} & React.RefAttributes<unknown>>;
|
|
13
13
|
export default Dd;
|
package/elements/Dl.d.ts
CHANGED
|
@@ -3,20 +3,17 @@
|
|
|
3
3
|
*
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import {
|
|
6
|
+
import { ElementProps } from './Element';
|
|
7
7
|
export declare type DlProps = {
|
|
8
8
|
/**
|
|
9
9
|
* Use "true" to horizontallly align both the term and the description
|
|
10
10
|
*/
|
|
11
11
|
direction?: 'vertical' | 'horizontal';
|
|
12
|
-
className?: string;
|
|
13
|
-
children: React.ReactNode;
|
|
14
12
|
};
|
|
13
|
+
export declare type DlAllProps = DlProps & React.AllHTMLAttributes<Omit<HTMLDListElement, 'children'>> & ElementProps;
|
|
15
14
|
declare const Dl: {
|
|
16
|
-
({ direction, ...props }:
|
|
17
|
-
|
|
18
|
-
};
|
|
19
|
-
export declare type DlLineProps = {
|
|
20
|
-
children: React.ReactNode;
|
|
15
|
+
({ direction, ...props }: DlAllProps): JSX.Element;
|
|
16
|
+
Item({ className, children, }: DlItemProps & React.AllHTMLAttributes<HTMLSpanElement>): JSX.Element;
|
|
21
17
|
};
|
|
18
|
+
export declare type DlItemProps = {};
|
|
22
19
|
export default Dl;
|
package/elements/Dl.js
CHANGED
|
@@ -20,11 +20,11 @@ var Dl = function Dl(_ref) {
|
|
|
20
20
|
}));
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
-
Dl.
|
|
23
|
+
Dl.Item = function (_ref2) {
|
|
24
24
|
var className = _ref2.className,
|
|
25
25
|
children = _ref2.children;
|
|
26
26
|
return React.createElement("span", {
|
|
27
|
-
className: classnames(className, 'dnb-
|
|
27
|
+
className: classnames(className, 'dnb-dl__item')
|
|
28
28
|
}, children);
|
|
29
29
|
};
|
|
30
30
|
|
package/elements/Dt.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare type DtProps = {
|
|
|
7
7
|
className?: string;
|
|
8
8
|
children: React.ReactNode;
|
|
9
9
|
};
|
|
10
|
-
declare const Dt: React.ForwardRefExoticComponent<DtProps & import("../shared/
|
|
11
|
-
space?: import("../shared/
|
|
10
|
+
declare const Dt: React.ForwardRefExoticComponent<DtProps & import("../shared/types").SpacingElementProps & {
|
|
11
|
+
space?: import("../shared/types").SpaceTypes | import("../shared/types").SpacingElementProps;
|
|
12
12
|
} & React.RefAttributes<unknown>>;
|
|
13
13
|
export default Dt;
|
package/elements/Element.d.ts
CHANGED
|
@@ -4,8 +4,10 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { SkeletonMethods } from '../components/skeleton/SkeletonHelper';
|
|
7
|
-
export declare type
|
|
7
|
+
export declare type ElementInternalProps = {
|
|
8
8
|
is: React.ReactNode;
|
|
9
|
+
};
|
|
10
|
+
export declare type ElementProps = {
|
|
9
11
|
skeleton?: boolean;
|
|
10
12
|
skeletonMethod?: SkeletonMethods;
|
|
11
13
|
class?: string;
|
|
@@ -22,5 +24,5 @@ export declare type ElementProps = {
|
|
|
22
24
|
export declare const defaultProps: {
|
|
23
25
|
skeletonMethod: string;
|
|
24
26
|
};
|
|
25
|
-
declare const Element: React.ForwardRefExoticComponent<ElementProps & React.RefAttributes<unknown>>;
|
|
27
|
+
declare const Element: React.ForwardRefExoticComponent<ElementInternalProps & ElementProps & React.RefAttributes<unknown>>;
|
|
26
28
|
export default Element;
|
package/elements/Li.d.ts
CHANGED
|
@@ -1,29 +1,9 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export type LiSpace =
|
|
3
|
-
| string
|
|
4
|
-
| number
|
|
5
|
-
| boolean
|
|
6
|
-
| {
|
|
7
|
-
top?: string | number | boolean;
|
|
8
|
-
right?: string | number | boolean;
|
|
9
|
-
bottom?: string | number | boolean;
|
|
10
|
-
left?: string | number | boolean;
|
|
11
|
-
};
|
|
12
|
-
export type LiTop = string | number | boolean;
|
|
13
|
-
export type LiRight = string | number | boolean;
|
|
14
|
-
export type LiBottom = string | number | boolean;
|
|
15
|
-
export type LiLeft = string | number | boolean;
|
|
16
|
-
|
|
17
1
|
/**
|
|
18
|
-
*
|
|
2
|
+
* HTML Element
|
|
3
|
+
*
|
|
19
4
|
*/
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
bottom?: LiBottom;
|
|
25
|
-
left?: LiLeft;
|
|
26
|
-
className?: string;
|
|
27
|
-
}
|
|
28
|
-
declare const Li: React.FC<LiProps>;
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { ElementProps } from './Element';
|
|
7
|
+
export declare type LiAllProps = React.AllHTMLAttributes<HTMLLIElement> & ElementProps;
|
|
8
|
+
declare const Li: ({ className, ...p }?: LiAllProps) => JSX.Element;
|
|
29
9
|
export default Li;
|
package/elements/Li.js
CHANGED
|
@@ -1,23 +1,10 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
3
|
var _excluded = ["className"];
|
|
5
|
-
|
|
6
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
7
|
-
|
|
8
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
9
|
-
|
|
10
4
|
import "core-js/modules/es.object.to-string.js";
|
|
11
5
|
import "core-js/modules/web.dom-collections.for-each.js";
|
|
12
|
-
import "core-js/modules/es.object.keys.js";
|
|
13
|
-
import "core-js/modules/es.symbol.js";
|
|
14
|
-
import "core-js/modules/es.array.filter.js";
|
|
15
|
-
import "core-js/modules/es.object.get-own-property-descriptor.js";
|
|
16
|
-
import "core-js/modules/es.object.get-own-property-descriptors.js";
|
|
17
6
|
import React from 'react';
|
|
18
|
-
import PropTypes from 'prop-types';
|
|
19
7
|
import classnames from 'classnames';
|
|
20
|
-
import { spacingPropTypes } from '../components/space/SpacingHelper';
|
|
21
8
|
import E from './Element';
|
|
22
9
|
import Ul from './Ul';
|
|
23
10
|
import Ol from './Ol';
|
|
@@ -43,11 +30,4 @@ var Li = function Li() {
|
|
|
43
30
|
}));
|
|
44
31
|
};
|
|
45
32
|
|
|
46
|
-
Li.tagName = 'dnb-li';
|
|
47
|
-
process.env.NODE_ENV !== "production" ? Li.propTypes = _objectSpread(_objectSpread({}, spacingPropTypes), {}, {
|
|
48
|
-
className: PropTypes.string
|
|
49
|
-
}) : void 0;
|
|
50
|
-
Li.defaultProps = {
|
|
51
|
-
className: null
|
|
52
|
-
};
|
|
53
33
|
export default Li;
|
package/elements/Link.d.ts
CHANGED
|
@@ -16,6 +16,6 @@ declare const Link: import("react").ForwardRefExoticComponent<{
|
|
|
16
16
|
lang?: string;
|
|
17
17
|
inner_ref?: import("react").ForwardedRef<unknown>;
|
|
18
18
|
target_blank_title?: string;
|
|
19
|
-
} & Partial<Omit<HTMLAnchorElement, "children">> & import("../shared/
|
|
20
|
-
space?: import("../shared/
|
|
19
|
+
} & Partial<Omit<HTMLAnchorElement, "children">> & import("../shared/types").SpacingElementProps & {
|
|
20
|
+
space?: import("../shared/types").SpaceTypes | import("../shared/types").SpacingElementProps;
|
|
21
21
|
} & import("react").RefAttributes<unknown>>;
|