@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
|
@@ -19,13 +19,13 @@ export const BreadcrumbMultiple = ({
|
|
|
19
19
|
element: "ol",
|
|
20
20
|
style_type: "transparent"
|
|
21
21
|
}, data === null || data === void 0 ? void 0 : data.map((breadcrumbItem, i) => {
|
|
22
|
-
const style = {
|
|
23
|
-
'--delay': String(i)
|
|
24
|
-
};
|
|
25
22
|
return React.createElement(BreadcrumbItem, _extends({
|
|
26
23
|
key: `${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((item, i) => React.cloneElement(item, {
|
|
28
|
+
key: i,
|
|
29
|
+
itemNr: i
|
|
30
|
+
}))));
|
|
31
31
|
};
|
|
@@ -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;
|
|
@@ -49,7 +49,7 @@ export default function HeightAnimation(_ref) {
|
|
|
49
49
|
return React.createElement(Space, _extends({
|
|
50
50
|
innerRef: innerRef || ref,
|
|
51
51
|
element: element || 'div',
|
|
52
|
-
className: classnames('dnb-height-animation', className,
|
|
52
|
+
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'),
|
|
53
53
|
style: style,
|
|
54
54
|
"aria-hidden": keepInDOM ? !open : undefined
|
|
55
55
|
}, 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/es/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;
|
|
@@ -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/es/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/es/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/es/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/es/elements/Dl.js
CHANGED
|
@@ -22,12 +22,12 @@ const Dl = _ref => {
|
|
|
22
22
|
}));
|
|
23
23
|
};
|
|
24
24
|
|
|
25
|
-
Dl.
|
|
25
|
+
Dl.Item = ({
|
|
26
26
|
className,
|
|
27
27
|
children
|
|
28
28
|
}) => {
|
|
29
29
|
return React.createElement("span", {
|
|
30
|
-
className: classnames(className, 'dnb-
|
|
30
|
+
className: classnames(className, 'dnb-dl__item')
|
|
31
31
|
}, children);
|
|
32
32
|
};
|
|
33
33
|
|
package/es/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/es/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/es/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/es/elements/Li.js
CHANGED
|
@@ -1,16 +1,8 @@
|
|
|
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
|
const _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 React from 'react';
|
|
11
|
-
import PropTypes from 'prop-types';
|
|
12
5
|
import classnames from 'classnames';
|
|
13
|
-
import { spacingPropTypes } from '../components/space/SpacingHelper';
|
|
14
6
|
import E from './Element';
|
|
15
7
|
import Ul from './Ul';
|
|
16
8
|
import Ol from './Ol';
|
|
@@ -36,11 +28,4 @@ const Li = (_ref = {}) => {
|
|
|
36
28
|
}));
|
|
37
29
|
};
|
|
38
30
|
|
|
39
|
-
Li.tagName = 'dnb-li';
|
|
40
|
-
process.env.NODE_ENV !== "production" ? Li.propTypes = _objectSpread(_objectSpread({}, spacingPropTypes), {}, {
|
|
41
|
-
className: PropTypes.string
|
|
42
|
-
}) : void 0;
|
|
43
|
-
Li.defaultProps = {
|
|
44
|
-
className: null
|
|
45
|
-
};
|
|
46
31
|
export default Li;
|
package/es/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>>;
|
package/es/elements/Ol.d.ts
CHANGED
|
@@ -1,32 +1,23 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export type OlSpace =
|
|
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 OlTop = string | number | boolean;
|
|
13
|
-
export type OlRight = string | number | boolean;
|
|
14
|
-
export type OlBottom = string | number | boolean;
|
|
15
|
-
export type OlLeft = string | number | boolean;
|
|
16
|
-
|
|
17
1
|
/**
|
|
18
|
-
*
|
|
2
|
+
* HTML Element
|
|
3
|
+
*
|
|
19
4
|
*/
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { ElementProps } from './Element';
|
|
7
|
+
export declare type OlProps = {
|
|
8
|
+
/**
|
|
9
|
+
* Defines the position of the marker
|
|
10
|
+
*/
|
|
11
|
+
inside?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Defines the position of the marker (default)
|
|
14
|
+
*/
|
|
15
|
+
outside?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Will ensure a nested structure of several lists
|
|
18
|
+
*/
|
|
19
|
+
nested?: boolean;
|
|
20
|
+
};
|
|
21
|
+
export declare type OlAllProps = OlProps & React.AllHTMLAttributes<HTMLOListElement> & ElementProps;
|
|
22
|
+
declare const Ol: ({ nested, inside, outside, ...p }?: OlAllProps) => JSX.Element;
|
|
32
23
|
export default Ol;
|
package/es/elements/Ol.js
CHANGED
|
@@ -1,16 +1,8 @@
|
|
|
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
|
const _excluded = ["nested", "inside", "outside"];
|
|
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 React from 'react';
|
|
11
|
-
import PropTypes from 'prop-types';
|
|
12
5
|
import classnames from 'classnames';
|
|
13
|
-
import { spacingPropTypes } from '../components/space/SpacingHelper';
|
|
14
6
|
import E from './Element';
|
|
15
7
|
|
|
16
8
|
const Ol = (_ref = {}) => {
|
|
@@ -40,17 +32,4 @@ const Ol = (_ref = {}) => {
|
|
|
40
32
|
}));
|
|
41
33
|
};
|
|
42
34
|
|
|
43
|
-
Ol.tagName = 'dnb-ol';
|
|
44
|
-
process.env.NODE_ENV !== "production" ? Ol.propTypes = _objectSpread(_objectSpread({}, spacingPropTypes), {}, {
|
|
45
|
-
className: PropTypes.string,
|
|
46
|
-
inside: PropTypes.bool,
|
|
47
|
-
outside: PropTypes.bool,
|
|
48
|
-
nested: PropTypes.bool
|
|
49
|
-
}) : void 0;
|
|
50
|
-
Ol.defaultProps = {
|
|
51
|
-
className: null,
|
|
52
|
-
inside: null,
|
|
53
|
-
outside: null,
|
|
54
|
-
nested: null
|
|
55
|
-
};
|
|
56
35
|
export default Ol;
|
package/es/elements/Ul.d.ts
CHANGED
|
@@ -1,33 +1,23 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export type UlSpace =
|
|
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 UlTop = string | number | boolean;
|
|
13
|
-
export type UlRight = string | number | boolean;
|
|
14
|
-
export type UlBottom = string | number | boolean;
|
|
15
|
-
export type UlLeft = string | number | boolean;
|
|
16
|
-
|
|
17
1
|
/**
|
|
18
|
-
*
|
|
2
|
+
* HTML Element
|
|
3
|
+
*
|
|
19
4
|
*/
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { ElementProps } from './Element';
|
|
7
|
+
export declare type UlProps = {
|
|
8
|
+
/**
|
|
9
|
+
* Defines the position of the marker
|
|
10
|
+
*/
|
|
11
|
+
inside?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Defines the position of the marker (default)
|
|
14
|
+
*/
|
|
15
|
+
outside?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Will ensure a nested structure of several lists
|
|
18
|
+
*/
|
|
19
|
+
nested?: boolean;
|
|
20
|
+
};
|
|
21
|
+
export declare type UlAllProps = UlProps & React.AllHTMLAttributes<HTMLUListElement> & ElementProps;
|
|
22
|
+
declare const Ul: ({ nested, inside, outside, ...p }?: UlAllProps) => JSX.Element;
|
|
33
23
|
export default Ul;
|