@dnb/eufemia 9.44.0 → 9.45.1
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 +19 -0
- package/cjs/components/avatar/Avatar.d.ts +1 -1
- package/cjs/components/lib.d.ts +7 -7
- package/cjs/components/section/style/themes/dnb-section-theme-ui.css +2 -7
- package/cjs/components/section/style/themes/dnb-section-theme-ui.min.css +1 -1
- package/cjs/components/space/SpacingHelper.d.ts +1 -2
- package/cjs/components/space/SpacingHelper.js +0 -6
- package/cjs/components/space/SpacingUtils.d.ts +30 -19
- package/cjs/components/space/SpacingUtils.js +151 -132
- package/cjs/components/space/types.d.ts +13 -6
- package/cjs/components/tabs/Tabs.d.ts +1 -1
- package/cjs/components/tag/Tag.d.ts +1 -1
- package/cjs/elements/Anchor.d.ts +4 -4
- package/cjs/elements/Dd.d.ts +1 -1
- package/cjs/elements/Dt.d.ts +1 -1
- package/cjs/elements/Element.d.ts +1 -1
- package/cjs/elements/Link.d.ts +3 -3
- package/cjs/elements/lib.d.ts +9 -9
- package/cjs/fragments/lib.d.ts +1 -1
- package/cjs/fragments/scroll-view/ScrollView.d.ts +1 -1
- package/cjs/shared/Eufemia.js +1 -1
- package/cjs/shared/index.d.ts +1 -1
- package/cjs/shared/index.js +1 -1
- package/cjs/style/dnb-ui-elements.css +12 -39
- package/cjs/style/dnb-ui-elements.min.css +1 -1
- package/cjs/style/dnb-ui-tags.css +21 -59
- package/cjs/style/dnb-ui-tags.min.css +1 -1
- package/cjs/style/elements/_anchor-mixins.scss +9 -14
- package/cjs/style/elements/anchor.scss +1 -1
- package/cjs/style/themes/theme-eiendom/dnb-theme-eiendom.css +14 -46
- package/cjs/style/themes/theme-eiendom/dnb-theme-eiendom.min.css +2 -2
- package/cjs/style/themes/theme-ui/dnb-theme-ui.css +14 -46
- package/cjs/style/themes/theme-ui/dnb-theme-ui.min.css +2 -2
- package/components/avatar/Avatar.d.ts +1 -1
- package/components/lib.d.ts +7 -7
- package/components/section/style/themes/dnb-section-theme-ui.css +2 -7
- package/components/section/style/themes/dnb-section-theme-ui.min.css +1 -1
- package/components/space/SpacingHelper.d.ts +1 -2
- package/components/space/SpacingHelper.js +2 -2
- package/components/space/SpacingUtils.d.ts +30 -19
- package/components/space/SpacingUtils.js +121 -109
- package/components/space/types.d.ts +13 -6
- package/components/tabs/Tabs.d.ts +1 -1
- package/components/tag/Tag.d.ts +1 -1
- package/elements/Anchor.d.ts +4 -4
- package/elements/Dd.d.ts +1 -1
- package/elements/Dt.d.ts +1 -1
- package/elements/Element.d.ts +1 -1
- package/elements/Link.d.ts +3 -3
- package/elements/lib.d.ts +9 -9
- package/es/components/avatar/Avatar.d.ts +1 -1
- package/es/components/lib.d.ts +7 -7
- package/es/components/section/style/themes/dnb-section-theme-ui.css +2 -7
- package/es/components/section/style/themes/dnb-section-theme-ui.min.css +1 -1
- package/es/components/space/SpacingHelper.d.ts +1 -2
- package/es/components/space/SpacingHelper.js +2 -2
- package/es/components/space/SpacingUtils.d.ts +30 -19
- package/es/components/space/SpacingUtils.js +81 -76
- package/es/components/space/types.d.ts +13 -6
- package/es/components/tabs/Tabs.d.ts +1 -1
- package/es/components/tag/Tag.d.ts +1 -1
- package/es/elements/Anchor.d.ts +4 -4
- package/es/elements/Dd.d.ts +1 -1
- package/es/elements/Dt.d.ts +1 -1
- package/es/elements/Element.d.ts +1 -1
- package/es/elements/Link.d.ts +3 -3
- package/es/elements/lib.d.ts +9 -9
- package/es/fragments/lib.d.ts +1 -1
- package/es/fragments/scroll-view/ScrollView.d.ts +1 -1
- package/es/shared/Eufemia.js +1 -1
- package/es/shared/index.d.ts +1 -1
- package/es/shared/index.js +2 -2
- package/es/style/dnb-ui-elements.css +12 -39
- package/es/style/dnb-ui-elements.min.css +1 -1
- package/es/style/dnb-ui-tags.css +21 -59
- package/es/style/dnb-ui-tags.min.css +1 -1
- package/es/style/elements/_anchor-mixins.scss +9 -14
- package/es/style/elements/anchor.scss +1 -1
- package/es/style/themes/theme-eiendom/dnb-theme-eiendom.css +14 -46
- package/es/style/themes/theme-eiendom/dnb-theme-eiendom.min.css +2 -2
- package/es/style/themes/theme-ui/dnb-theme-ui.css +14 -46
- package/es/style/themes/theme-ui/dnb-theme-ui.min.css +2 -2
- 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 +1 -1
- package/fragments/scroll-view/ScrollView.d.ts +1 -1
- package/package.json +1 -1
- package/shared/Eufemia.js +1 -1
- package/shared/index.d.ts +1 -1
- package/shared/index.js +2 -2
- package/style/dnb-ui-elements.css +12 -39
- package/style/dnb-ui-elements.min.css +1 -1
- package/style/dnb-ui-tags.css +21 -59
- package/style/dnb-ui-tags.min.css +1 -1
- package/style/elements/_anchor-mixins.scss +9 -14
- package/style/elements/anchor.scss +1 -1
- package/style/themes/theme-eiendom/dnb-theme-eiendom.css +14 -46
- package/style/themes/theme-eiendom/dnb-theme-eiendom.min.css +2 -2
- package/style/themes/theme-ui/dnb-theme-ui.css +14 -46
- package/style/themes/theme-ui/dnb-theme-ui.min.css +2 -2
- 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 +2 -2
- package/umd/dnb-ui-extensions.min.js +4 -4
- package/umd/dnb-ui-lib.min.js +2 -2
- package/umd/dnb-ui-web-components.min.js +2 -2
- package/cjs/shared/SpacingHelper.d.ts +0 -6
- package/cjs/shared/SpacingHelper.js +0 -11
- package/es/shared/SpacingHelper.d.ts +0 -6
- package/es/shared/SpacingHelper.js +0 -2
- package/shared/SpacingHelper.d.ts +0 -6
- package/shared/SpacingHelper.js +0 -2
package/elements/lib.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
export function getElements(): {
|
|
2
|
-
Anchor: import("react").ForwardRefExoticComponent<import("./Anchor").AnchorProps & import("react").
|
|
3
|
-
space?: import("../shared/types").
|
|
4
|
-
} & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
2
|
+
Anchor: import("react").ForwardRefExoticComponent<Pick<import("./Anchor").AnchorProps & import("react").HTMLProps<HTMLAnchorElement> & import("../shared/types").SpacingElementProps & {
|
|
3
|
+
space?: import("../shared/types").SpaceType | import("../shared/types").SpacingElementProps;
|
|
4
|
+
}, "aria-hidden" | "cite" | "data" | "dir" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "accessKey" | "key" | "value" | "top" | "right" | "bottom" | "left" | "space" | "width" | "height" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "className" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "innerRef" | "list" | "tooltip" | "step" | "size" | "skeleton" | "alt" | "src" | "shape" | "content" | "element" | "inner_ref" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "sizes" | "srcDoc" | "srcLang" | "srcSet" | "start" | "target" | "type" | "useMap" | "wmode" | "wrap" | "to" | "targetBlankTitle" | "omitClass" | "target_blank_title"> & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
5
5
|
Blockquote: import("react").FC<import("./Blockquote").BlockquoteProps>;
|
|
6
6
|
Code: import("react").FC<import("./Code").CodeProps>;
|
|
7
7
|
Dd: import("react").ForwardRefExoticComponent<import("./Dd").DdProps & import("../shared/types").SpacingElementProps & {
|
|
8
|
-
space?: import("../shared/types").
|
|
8
|
+
space?: import("../shared/types").SpaceType | import("../shared/types").SpacingElementProps;
|
|
9
9
|
} & import("react").RefAttributes<unknown>>;
|
|
10
10
|
Div: import("react").FC<import("./Div").DivProps>;
|
|
11
11
|
Dl: {
|
|
12
12
|
({ direction, ...props }: import("./Dl").DlAllProps): JSX.Element;
|
|
13
13
|
Item({ className, children, ...props }: import("react").AllHTMLAttributes<HTMLSpanElement> & import("../shared/types").SpacingElementProps & {
|
|
14
|
-
space?: import("../shared/types").
|
|
14
|
+
space?: import("../shared/types").SpaceType | import("../shared/types").SpacingElementProps;
|
|
15
15
|
}): JSX.Element;
|
|
16
16
|
};
|
|
17
17
|
Dt: import("react").ForwardRefExoticComponent<import("./Dt").DtProps & import("../shared/types").SpacingElementProps & {
|
|
18
|
-
space?: import("../shared/types").
|
|
18
|
+
space?: import("../shared/types").SpaceType | import("../shared/types").SpacingElementProps;
|
|
19
19
|
} & import("react").RefAttributes<unknown>>;
|
|
20
20
|
H: typeof H;
|
|
21
21
|
H1: import("react").FC<import("./H1").H1Props>;
|
|
@@ -35,9 +35,9 @@ export function getElements(): {
|
|
|
35
35
|
tagName: string;
|
|
36
36
|
};
|
|
37
37
|
Li: ({ className, ...p }?: import("./Li").LiAllProps) => JSX.Element;
|
|
38
|
-
Link: import("react").ForwardRefExoticComponent<import("./Anchor").AnchorProps & import("react").
|
|
39
|
-
space?: import("../shared/types").
|
|
40
|
-
} & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
38
|
+
Link: import("react").ForwardRefExoticComponent<Pick<import("./Anchor").AnchorProps & import("react").HTMLProps<HTMLAnchorElement> & import("../shared/types").SpacingElementProps & {
|
|
39
|
+
space?: import("../shared/types").SpaceType | import("../shared/types").SpacingElementProps;
|
|
40
|
+
}, "aria-hidden" | "cite" | "data" | "dir" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "accessKey" | "key" | "value" | "top" | "right" | "bottom" | "left" | "space" | "width" | "height" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "className" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "innerRef" | "list" | "tooltip" | "step" | "size" | "skeleton" | "alt" | "src" | "shape" | "content" | "element" | "inner_ref" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "sizes" | "srcDoc" | "srcLang" | "srcSet" | "start" | "target" | "type" | "useMap" | "wmode" | "wrap" | "to" | "targetBlankTitle" | "omitClass" | "target_blank_title"> & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
41
41
|
Ol: ({ nested, inside, outside, ...p }?: import("./Ol").OlAllProps) => JSX.Element;
|
|
42
42
|
P: import("react").FC<import("./P").PProps>;
|
|
43
43
|
Paragraph: {
|
|
@@ -61,7 +61,7 @@ export declare const defaultProps: {
|
|
|
61
61
|
declare const Avatar: {
|
|
62
62
|
(localProps: AvatarProps & SpacingProps): JSX.Element;
|
|
63
63
|
Group: (localProps: import("./AvatarGroup").AvatarGroupProps & import("../space/types").SpacingElementProps & {
|
|
64
|
-
space?: import("../space/types").
|
|
64
|
+
space?: import("../space/types").SpaceType | import("../space/types").SpacingElementProps;
|
|
65
65
|
}) => JSX.Element;
|
|
66
66
|
};
|
|
67
67
|
export { AvatarGroup };
|
package/es/components/lib.d.ts
CHANGED
|
@@ -3,16 +3,16 @@ export function getComponents(): {
|
|
|
3
3
|
Autocomplete: typeof Autocomplete;
|
|
4
4
|
Avatar: {
|
|
5
5
|
(localProps: import("./avatar/Avatar").AvatarProps & import("./space/types").SpacingElementProps & {
|
|
6
|
-
space?: import("./space/types").
|
|
6
|
+
space?: import("./space/types").SpaceType | import("./space/types").SpacingElementProps;
|
|
7
7
|
}): JSX.Element;
|
|
8
8
|
Group: (localProps: import("./avatar/AvatarGroup").AvatarGroupProps & import("./space/types").SpacingElementProps & {
|
|
9
|
-
space?: import("./space/types").
|
|
9
|
+
space?: import("./space/types").SpaceType | import("./space/types").SpacingElementProps;
|
|
10
10
|
}) => JSX.Element;
|
|
11
11
|
};
|
|
12
12
|
Badge: typeof Badge;
|
|
13
13
|
Breadcrumb: {
|
|
14
14
|
(localProps: import("./breadcrumb/Breadcrumb").BreadcrumbProps & import("./space/types").SpacingElementProps & {
|
|
15
|
-
space?: import("./space/types").
|
|
15
|
+
space?: import("./space/types").SpaceType | import("./space/types").SpacingElementProps;
|
|
16
16
|
}): JSX.Element;
|
|
17
17
|
Item: (localProps: import("./breadcrumb/BreadcrumbItem").BreadcrumbItemProps) => JSX.Element;
|
|
18
18
|
};
|
|
@@ -34,7 +34,7 @@ export function getComponents(): {
|
|
|
34
34
|
Icon: typeof Icon;
|
|
35
35
|
IconPrimary: typeof IconPrimary;
|
|
36
36
|
InfoCard: (localProps: import("./info-card/InfoCard").InfoCardProps & import("./space/types").SpacingElementProps & {
|
|
37
|
-
space?: import("./space/types").
|
|
37
|
+
space?: import("./space/types").SpaceType | import("./space/types").SpacingElementProps;
|
|
38
38
|
}) => JSX.Element;
|
|
39
39
|
Input: typeof Input;
|
|
40
40
|
InputMasked: import("react").FC<import("./input-masked/InputMasked").InputMaskedProps>;
|
|
@@ -58,16 +58,16 @@ export function getComponents(): {
|
|
|
58
58
|
Tabs: typeof Tabs;
|
|
59
59
|
Tag: {
|
|
60
60
|
(localProps: import("./tag/Tag").TagProps & import("./space/types").SpacingElementProps & {
|
|
61
|
-
space?: import("./space/types").
|
|
61
|
+
space?: import("./space/types").SpaceType | import("./space/types").SpacingElementProps;
|
|
62
62
|
}): JSX.Element;
|
|
63
63
|
Group: (localProps: import("./tag/TagGroup").TagGroupProps & import("./space/types").SpacingElementProps & {
|
|
64
|
-
space?: import("./space/types").
|
|
64
|
+
space?: import("./space/types").SpaceType | import("./space/types").SpacingElementProps;
|
|
65
65
|
}) => JSX.Element;
|
|
66
66
|
};
|
|
67
67
|
Textarea: typeof Textarea;
|
|
68
68
|
Timeline: {
|
|
69
69
|
(localProps: import("./timeline/Timeline").TimelineProps & import("./space/types").SpacingElementProps & {
|
|
70
|
-
space?: import("./space/types").
|
|
70
|
+
space?: import("./space/types").SpaceType | import("./space/types").SpacingElementProps;
|
|
71
71
|
}): JSX.Element;
|
|
72
72
|
Item: (localProps: import("./timeline/TimelineItem").TimelineItemProps) => JSX.Element;
|
|
73
73
|
};
|
|
@@ -104,11 +104,7 @@
|
|
|
104
104
|
.dnb-section--emerald-green .dnb-anchor,
|
|
105
105
|
.dnb-section--sea-green .dnb-anchor {
|
|
106
106
|
color: #fff;
|
|
107
|
-
color: var(--color-white);
|
|
108
|
-
-webkit-box-shadow: 0 0.09375rem 0 0 #fff;
|
|
109
|
-
box-shadow: 0 0.09375rem 0 0 #fff;
|
|
110
|
-
-webkit-box-shadow: 0 0.09375rem 0 0 var(--color-white);
|
|
111
|
-
box-shadow: 0 0.09375rem 0 0 var(--color-white); }
|
|
107
|
+
color: var(--color-white); }
|
|
112
108
|
.dnb-section--fire-red .dnb-anchor:hover, .dnb-section--fire-red .dnb-anchor:active,
|
|
113
109
|
.dnb-section--emerald-green .dnb-anchor:hover,
|
|
114
110
|
.dnb-section--emerald-green .dnb-anchor:active,
|
|
@@ -118,8 +114,7 @@
|
|
|
118
114
|
color: var(--color-emerald-green);
|
|
119
115
|
background-color: #fff;
|
|
120
116
|
background-color: var(--color-white);
|
|
121
|
-
-
|
|
122
|
-
box-shadow: none; }
|
|
117
|
+
text-decoration: none; }
|
|
123
118
|
.dnb-section--fire-red .dnb-anchor:active,
|
|
124
119
|
.dnb-section--emerald-green .dnb-anchor:active,
|
|
125
120
|
.dnb-section--sea-green .dnb-anchor:active {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.dnb-section--divider{color:#333;color:var(--color-black-80)}.dnb-section--divider:after{-webkit-box-shadow:99vw 0 0 0 currentColor,198vw 0 0 0 currentColor,297vw 0 0 0 currentColor,396vw 0 0 0 currentColor,0 .0625rem 0 0 #d2f0e9,99vw .0625rem 0 0 #d2f0e9,0 -.0625rem 0 0 #d2f0e9,99vw -.0625rem 0 0 #d2f0e9,198vw .0625rem 0 0 #d2f0e9,198vw -.0625rem 0 0 #d2f0e9;box-shadow:99vw 0 0 0 currentColor,198vw 0 0 0 currentColor,297vw 0 0 0 currentColor,396vw 0 0 0 currentColor,0 .0625rem 0 0 #d2f0e9,99vw .0625rem 0 0 #d2f0e9,0 -.0625rem 0 0 #d2f0e9,99vw -.0625rem 0 0 #d2f0e9,198vw .0625rem 0 0 #d2f0e9,198vw -.0625rem 0 0 #d2f0e9;-webkit-box-shadow:99vw 0 0 0 currentColor,198vw 0 0 0 currentColor,297vw 0 0 0 currentColor,396vw 0 0 0 currentColor,0 .0625rem 0 0 var(--color-mint-green-50),99vw .0625rem 0 0 var(--color-mint-green-50),0 -.0625rem 0 0 var(--color-mint-green-50),99vw -.0625rem 0 0 var(--color-mint-green-50),198vw .0625rem 0 0 var(--color-mint-green-50),198vw -.0625rem 0 0 var(--color-mint-green-50);box-shadow:99vw 0 0 0 currentColor,198vw 0 0 0 currentColor,297vw 0 0 0 currentColor,396vw 0 0 0 currentColor,0 .0625rem 0 0 var(--color-mint-green-50),99vw .0625rem 0 0 var(--color-mint-green-50),0 -.0625rem 0 0 var(--color-mint-green-50),99vw -.0625rem 0 0 var(--color-mint-green-50),198vw .0625rem 0 0 var(--color-mint-green-50),198vw -.0625rem 0 0 var(--color-mint-green-50);color:#fff;color:var(--color-white)}.dnb-section--transparent:after{color:transparent}.dnb-section--mint-green-12{color:#333;color:var(--color-black-80)}.dnb-section--mint-green-12:after{color:#f4fbf9;color:var(--color-mint-green-12)}.dnb-section--white{color:#333;color:var(--color-black-80)}.dnb-section--white:after{color:#fff;color:var(--color-white)}.dnb-section--mint-green{color:#333;color:var(--color-black-80)}.dnb-section--mint-green:after{color:#a5e1d2;color:var(--color-mint-green)}.dnb-section--lavender{color:#333;color:var(--color-black-80)}.dnb-section--lavender:after{color:#f2f2f5;color:var(--color-lavender)}.dnb-section--sand-yellow{color:#333;color:var(--color-black-80)}.dnb-section--sand-yellow:after{color:#fbf6ec;color:var(--color-sand-yellow)}.dnb-section--pistachio{color:#333;color:var(--color-black-80)}.dnb-section--pistachio:after{color:#f2f4ec;color:var(--color-pistachio)}.dnb-section--black-3{color:#333;color:var(--color-black-80)}.dnb-section--black-3:after{color:#f8f8f8;color:var(--color-black-3)}.dnb-section--emerald-green{color:#a5e1d2;color:var(--color-mint-green)}.dnb-section--emerald-green:after{color:#14555a;color:var(--color-emerald-green)}.dnb-section--sea-green{color:#fff;color:var(--color-white)}.dnb-section--sea-green:after{color:#007272;color:var(--color-sea-green)}.dnb-section--fire-red{color:#fff;color:var(--color-white)}.dnb-section--fire-red:after{color:#dc2a2a;color:var(--color-fire-red)}.dnb-section--fire-red-8{color:#333;color:var(--color-black-80)}.dnb-section--fire-red-8:after{color:#fdeeee;color:var(--color-fire-red-8)}.dnb-section--emerald-green .dnb-anchor,.dnb-section--fire-red .dnb-anchor,.dnb-section--sea-green .dnb-anchor{
|
|
1
|
+
.dnb-section--divider{color:#333;color:var(--color-black-80)}.dnb-section--divider:after{-webkit-box-shadow:99vw 0 0 0 currentColor,198vw 0 0 0 currentColor,297vw 0 0 0 currentColor,396vw 0 0 0 currentColor,0 .0625rem 0 0 #d2f0e9,99vw .0625rem 0 0 #d2f0e9,0 -.0625rem 0 0 #d2f0e9,99vw -.0625rem 0 0 #d2f0e9,198vw .0625rem 0 0 #d2f0e9,198vw -.0625rem 0 0 #d2f0e9;box-shadow:99vw 0 0 0 currentColor,198vw 0 0 0 currentColor,297vw 0 0 0 currentColor,396vw 0 0 0 currentColor,0 .0625rem 0 0 #d2f0e9,99vw .0625rem 0 0 #d2f0e9,0 -.0625rem 0 0 #d2f0e9,99vw -.0625rem 0 0 #d2f0e9,198vw .0625rem 0 0 #d2f0e9,198vw -.0625rem 0 0 #d2f0e9;-webkit-box-shadow:99vw 0 0 0 currentColor,198vw 0 0 0 currentColor,297vw 0 0 0 currentColor,396vw 0 0 0 currentColor,0 .0625rem 0 0 var(--color-mint-green-50),99vw .0625rem 0 0 var(--color-mint-green-50),0 -.0625rem 0 0 var(--color-mint-green-50),99vw -.0625rem 0 0 var(--color-mint-green-50),198vw .0625rem 0 0 var(--color-mint-green-50),198vw -.0625rem 0 0 var(--color-mint-green-50);box-shadow:99vw 0 0 0 currentColor,198vw 0 0 0 currentColor,297vw 0 0 0 currentColor,396vw 0 0 0 currentColor,0 .0625rem 0 0 var(--color-mint-green-50),99vw .0625rem 0 0 var(--color-mint-green-50),0 -.0625rem 0 0 var(--color-mint-green-50),99vw -.0625rem 0 0 var(--color-mint-green-50),198vw .0625rem 0 0 var(--color-mint-green-50),198vw -.0625rem 0 0 var(--color-mint-green-50);color:#fff;color:var(--color-white)}.dnb-section--transparent:after{color:transparent}.dnb-section--mint-green-12{color:#333;color:var(--color-black-80)}.dnb-section--mint-green-12:after{color:#f4fbf9;color:var(--color-mint-green-12)}.dnb-section--white{color:#333;color:var(--color-black-80)}.dnb-section--white:after{color:#fff;color:var(--color-white)}.dnb-section--mint-green{color:#333;color:var(--color-black-80)}.dnb-section--mint-green:after{color:#a5e1d2;color:var(--color-mint-green)}.dnb-section--lavender{color:#333;color:var(--color-black-80)}.dnb-section--lavender:after{color:#f2f2f5;color:var(--color-lavender)}.dnb-section--sand-yellow{color:#333;color:var(--color-black-80)}.dnb-section--sand-yellow:after{color:#fbf6ec;color:var(--color-sand-yellow)}.dnb-section--pistachio{color:#333;color:var(--color-black-80)}.dnb-section--pistachio:after{color:#f2f4ec;color:var(--color-pistachio)}.dnb-section--black-3{color:#333;color:var(--color-black-80)}.dnb-section--black-3:after{color:#f8f8f8;color:var(--color-black-3)}.dnb-section--emerald-green{color:#a5e1d2;color:var(--color-mint-green)}.dnb-section--emerald-green:after{color:#14555a;color:var(--color-emerald-green)}.dnb-section--sea-green{color:#fff;color:var(--color-white)}.dnb-section--sea-green:after{color:#007272;color:var(--color-sea-green)}.dnb-section--fire-red{color:#fff;color:var(--color-white)}.dnb-section--fire-red:after{color:#dc2a2a;color:var(--color-fire-red)}.dnb-section--fire-red-8{color:#333;color:var(--color-black-80)}.dnb-section--fire-red-8:after{color:#fdeeee;color:var(--color-fire-red-8)}.dnb-section--emerald-green .dnb-anchor,.dnb-section--fire-red .dnb-anchor,.dnb-section--sea-green .dnb-anchor{color:#fff;color:var(--color-white)}.dnb-section--emerald-green .dnb-anchor:active,.dnb-section--emerald-green .dnb-anchor:hover,.dnb-section--fire-red .dnb-anchor:active,.dnb-section--fire-red .dnb-anchor:hover,.dnb-section--sea-green .dnb-anchor:active,.dnb-section--sea-green .dnb-anchor:hover{background-color:#fff;background-color:var(--color-white);color:#14555a;color:var(--color-emerald-green);text-decoration:none}.dnb-section--emerald-green .dnb-anchor:active,.dnb-section--fire-red .dnb-anchor:active,.dnb-section--sea-green .dnb-anchor:active{background-color:#fff;background-color:var(--color-white);color:#14555a;color:var(--color-emerald-green)}.dnb-section--emerald-green .dnb-anchor:not(:disabled):focus,.dnb-section--fire-red .dnb-anchor:not(:disabled):focus,.dnb-section--sea-green .dnb-anchor:not(:disabled):focus{background-color:transparent;color:#fff;color:var(--color-white);outline:none}html[data-whatinput=keyboard] .dnb-section--emerald-green .dnb-anchor:not(:disabled):focus,html[data-whatinput=keyboard] .dnb-section--fire-red .dnb-anchor:not(:disabled):focus,html[data-whatinput=keyboard] .dnb-section--sea-green .dnb-anchor:not(:disabled):focus{--border-color:var(--color-white);border-color:transparent;-webkit-box-shadow:0 0 0 .125rem var(--border-color);box-shadow:0 0 0 .125rem var(--border-color)}@media screen and (-ms-high-contrast:none){html[data-whatinput=keyboard] .dnb-section--emerald-green .dnb-anchor:not(:disabled):focus,html[data-whatinput=keyboard] .dnb-section--fire-red .dnb-anchor:not(:disabled):focus,html[data-whatinput=keyboard] .dnb-section--sea-green .dnb-anchor:not(:disabled):focus{-webkit-box-shadow:0 0 0 .125rem #fff;box-shadow:0 0 0 .125rem #fff;-webkit-box-shadow:0 0 0 .125rem var(--color-white);box-shadow:0 0 0 .125rem var(--color-white)}}.dnb-section--emerald-green .dnb-button--tertiary,.dnb-section--emerald-green .dnb-button--tertiary:hover,.dnb-section--fire-red .dnb-button--tertiary,.dnb-section--fire-red .dnb-button--tertiary:hover,.dnb-section--sea-green .dnb-button--tertiary,.dnb-section--sea-green .dnb-button--tertiary:hover{color:#fff;color:var(--color-white)}.dnb-section--emerald-green .dnb-button--tertiary:hover .dnb-button__text:after,.dnb-section--fire-red .dnb-button--tertiary:hover .dnb-button__text:after,.dnb-section--sea-green .dnb-button--tertiary:hover .dnb-button__text:after{color:#fff!important;color:var(--color-white)!important}.dnb-section--emerald-green .dnb-button--tertiary:focus,.dnb-section--fire-red .dnb-button--tertiary:focus,.dnb-section--sea-green .dnb-button--tertiary:focus{color:#fff;color:var(--color-white)}.dnb-section--emerald-green .dnb-button--tertiary:focus:before,.dnb-section--fire-red .dnb-button--tertiary:focus:before,.dnb-section--sea-green .dnb-button--tertiary:focus:before{outline:none}html[data-whatinput=keyboard] .dnb-section--emerald-green .dnb-button--tertiary:focus:before,html[data-whatinput=keyboard] .dnb-section--fire-red .dnb-button--tertiary:focus:before,html[data-whatinput=keyboard] .dnb-section--sea-green .dnb-button--tertiary:focus:before{--border-color:var(--color-white);border-color:transparent;-webkit-box-shadow:0 0 0 .125rem var(--border-color);box-shadow:0 0 0 .125rem var(--border-color)}@media screen and (-ms-high-contrast:none){html[data-whatinput=keyboard] .dnb-section--emerald-green .dnb-button--tertiary:focus:before,html[data-whatinput=keyboard] .dnb-section--fire-red .dnb-button--tertiary:focus:before,html[data-whatinput=keyboard] .dnb-section--sea-green .dnb-button--tertiary:focus:before{-webkit-box-shadow:0 0 0 .125rem #fff;box-shadow:0 0 0 .125rem #fff;-webkit-box-shadow:0 0 0 .125rem var(--color-white);box-shadow:0 0 0 .125rem var(--color-white)}}.dnb-section--signal-orange{color:#00343e;color:var(--color-ocean-green)}.dnb-section--signal-orange:after{color:#ff5400;color:var(--color-signal-orange)}.dnb-section--fire-red ::-moz-selection,.dnb-section--mint-green ::-moz-selection,.dnb-section--signal-orange ::-moz-selection{background-color:#fff;background-color:var(--color-white)}.dnb-section--fire-red ::selection,.dnb-section--mint-green ::selection,.dnb-section--signal-orange ::selection{background-color:#fff;background-color:var(--color-white)}
|
|
@@ -12,6 +12,5 @@ export namespace spacingPropTypes {
|
|
|
12
12
|
}
|
|
13
13
|
import { createSpacingClasses } from "./SpacingUtils";
|
|
14
14
|
import { removeSpaceProps } from "./SpacingUtils";
|
|
15
|
-
import { createStyleObject } from "./SpacingUtils";
|
|
16
15
|
import PropTypes from "prop-types";
|
|
17
|
-
export { createSpacingClasses, removeSpaceProps
|
|
16
|
+
export { createSpacingClasses, removeSpaceProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
|
-
import { createSpacingClasses, removeSpaceProps
|
|
3
|
-
export { createSpacingClasses, removeSpaceProps
|
|
2
|
+
import { createSpacingClasses, removeSpaceProps } from './SpacingUtils';
|
|
3
|
+
export { createSpacingClasses, removeSpaceProps };
|
|
4
4
|
export const spacingPropTypes = {
|
|
5
5
|
space: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.bool, PropTypes.shape({
|
|
6
6
|
top: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.bool]),
|
|
@@ -2,14 +2,8 @@
|
|
|
2
2
|
* Space helper
|
|
3
3
|
*
|
|
4
4
|
*/
|
|
5
|
-
import type { SpacingProps } from './types';
|
|
6
|
-
declare type
|
|
7
|
-
declare type StyleObjectProps = {
|
|
8
|
-
maxWidth?: string;
|
|
9
|
-
maxHeight?: string;
|
|
10
|
-
width?: string;
|
|
11
|
-
height?: string;
|
|
12
|
-
};
|
|
5
|
+
import type { StyleObjectProps, SpaceType, SpacingUnknownProps, SpacingProps } from './types';
|
|
6
|
+
declare type SpaceNumber = number;
|
|
13
7
|
export declare const spacingDefaultProps: {
|
|
14
8
|
space: any;
|
|
15
9
|
top: any;
|
|
@@ -27,17 +21,34 @@ export declare const spacePatterns: {
|
|
|
27
21
|
'xx-large': number;
|
|
28
22
|
'xx-large-x2': number;
|
|
29
23
|
};
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
24
|
+
/**
|
|
25
|
+
* Helper function to generate a calc(var(--spacing-large) + var(--spacing-small))
|
|
26
|
+
*
|
|
27
|
+
* @param types 'small', '16px', '1rem'
|
|
28
|
+
* @returns e.g. calc(var(--spacing-large) + var(--spacing-small))
|
|
29
|
+
*/
|
|
30
|
+
export declare const calc: (...types: Array<SpaceType>) => string;
|
|
31
|
+
/**
|
|
32
|
+
* Creates a valid space CSS class out from given space types
|
|
33
|
+
*
|
|
34
|
+
* @param props
|
|
35
|
+
* @param Element to check if it should be handled as inline
|
|
36
|
+
* @returns "dnb-space__large dnb-space__small"
|
|
37
|
+
*/
|
|
38
|
+
export declare const createSpacingClasses: (props: SpacingProps
|
|
39
|
+
/**
|
|
40
|
+
* To support typical not defined props form components
|
|
41
|
+
*/
|
|
42
|
+
| SpacingUnknownProps, Element?: any) => any[];
|
|
43
|
+
export declare const translateSpace: (type: SpaceType) => any;
|
|
44
|
+
export declare const splitTypes: (types: SpaceType | Array<SpaceType>) => SpaceType[];
|
|
45
|
+
export declare const sumTypes: (types: SpaceType | Array<SpaceType>) => any;
|
|
46
|
+
export declare const createTypeModifiers: (types: SpaceType) => Array<SpaceType>;
|
|
47
|
+
export declare const findType: (num: SpaceNumber) => SpaceType;
|
|
48
|
+
export declare const findTypeAll: (num: SpaceNumber) => Array<SpaceType>;
|
|
49
|
+
export declare const findNearestTypes: (num: SpaceNumber, multiply?: boolean) => any[];
|
|
38
50
|
export declare const isValidSpaceProp: (propName: string) => boolean;
|
|
39
|
-
export declare const removeSpaceProps: (props:
|
|
40
|
-
export declare const
|
|
41
|
-
export declare const createStyleObject: (props: Props & StyleObjectProps) => {};
|
|
51
|
+
export declare const removeSpaceProps: (props: StyleObjectProps) => StyleObjectProps;
|
|
52
|
+
export declare const createStyleObject: (props: StyleObjectProps) => {};
|
|
42
53
|
export declare const isInline: (elementName: string) => boolean;
|
|
43
54
|
export {};
|
|
@@ -22,23 +22,81 @@ export const spacePatterns = {
|
|
|
22
22
|
'xx-large': 3.5,
|
|
23
23
|
'xx-large-x2': 7
|
|
24
24
|
};
|
|
25
|
+
export const calc = (...types) => {
|
|
26
|
+
const result = [];
|
|
27
|
+
types.forEach(rawTypes => {
|
|
28
|
+
createTypeModifiers(rawTypes).forEach(type => {
|
|
29
|
+
result.push(`var(--spacing-${type})`);
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
return result.length ? `calc(${result.join(' + ')})` : null;
|
|
33
|
+
};
|
|
34
|
+
export const createSpacingClasses = (props, Element = null) => {
|
|
35
|
+
const p = Object.isFrozen(props) ? _objectSpread({}, props) : props;
|
|
36
|
+
|
|
37
|
+
if (typeof p.space !== 'undefined') {
|
|
38
|
+
if (typeof p.space === 'string' || typeof p.space === 'number' || typeof p.space === 'boolean' && p.space) {
|
|
39
|
+
p.top = p.right = p.bottom = p.left = p.space;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
if (typeof p.space === 'object') {
|
|
43
|
+
for (const i in p.space) {
|
|
44
|
+
if (!p[i] && isValidSpaceProp(i)) {
|
|
45
|
+
p[i] = p.space[i];
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
delete p.space;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
return Object.entries(p).reduce((acc, [direction, cur]) => {
|
|
54
|
+
if (isValidSpaceProp(direction)) {
|
|
55
|
+
if (String(cur) === '0' || String(cur) === 'false') {
|
|
56
|
+
acc.push(`dnb-space__${direction}--zero`);
|
|
57
|
+
} else if (cur) {
|
|
58
|
+
const typeModifiers = createTypeModifiers(cur);
|
|
59
|
+
const sum = sumTypes(typeModifiers);
|
|
60
|
+
|
|
61
|
+
if (sum > 10) {
|
|
62
|
+
warn(`Spacing of more than 10rem is not supported! You used ${sum} / (${typeModifiers.join(',')})`);
|
|
63
|
+
} else {
|
|
64
|
+
const nearestTypes = findNearestTypes(sum, true);
|
|
65
|
+
acc = [...acc, ...nearestTypes.map(type => `dnb-space__${direction}--${type}`)];
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
} else if (direction === 'no_collapse') {
|
|
69
|
+
acc.push('dnb-space--no-collapse');
|
|
70
|
+
|
|
71
|
+
if (Element && isInline(Element)) {
|
|
72
|
+
acc.push('dnb-space--inline');
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
return acc;
|
|
77
|
+
}, []);
|
|
78
|
+
};
|
|
25
79
|
export const translateSpace = type => {
|
|
26
|
-
if (/-x2$/.test(type)) {
|
|
27
|
-
return spacePatterns[type.replace(/-x2$/, '')] * 2;
|
|
80
|
+
if (/-x2$/.test(String(type))) {
|
|
81
|
+
return spacePatterns[String(type).replace(/-x2$/, '')] * 2;
|
|
28
82
|
}
|
|
29
83
|
|
|
30
|
-
return spacePatterns[type] || 0;
|
|
84
|
+
return spacePatterns[String(type)] || 0;
|
|
31
85
|
};
|
|
32
86
|
export const splitTypes = types => {
|
|
33
87
|
if (typeof types === 'string') {
|
|
34
|
-
|
|
88
|
+
return clean(types.split(/ /g));
|
|
35
89
|
} else if (typeof types === 'boolean') {
|
|
36
90
|
return ['small'];
|
|
37
91
|
} else if (typeof types === 'number') {
|
|
38
92
|
return [types];
|
|
39
93
|
}
|
|
40
94
|
|
|
41
|
-
return types
|
|
95
|
+
return clean(types) || null;
|
|
96
|
+
|
|
97
|
+
function clean(t) {
|
|
98
|
+
return t === null || t === void 0 ? void 0 : t.filter(r => r && String(r).length > 0);
|
|
99
|
+
}
|
|
42
100
|
};
|
|
43
101
|
export const sumTypes = types => splitTypes(types).map(type => translateSpace(type)).reduce((acc, cur) => {
|
|
44
102
|
if (cur > 0) {
|
|
@@ -50,18 +108,14 @@ export const sumTypes = types => splitTypes(types).map(type => translateSpace(ty
|
|
|
50
108
|
return acc;
|
|
51
109
|
}, 0);
|
|
52
110
|
export const createTypeModifiers = types => {
|
|
53
|
-
if (typeof types === 'number') {
|
|
54
|
-
types = String(types);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
111
|
return (splitTypes(types) || []).reduce((acc, type) => {
|
|
58
112
|
if (type) {
|
|
59
|
-
const firstLetter = type[0];
|
|
113
|
+
const firstLetter = String(type)[0];
|
|
60
114
|
|
|
61
115
|
if (parseFloat(firstLetter) > -1) {
|
|
62
|
-
let num = parseFloat(type);
|
|
116
|
+
let num = parseFloat(String(type));
|
|
63
117
|
|
|
64
|
-
if (num >= 8 && /[0-9]px/.test(type)) {
|
|
118
|
+
if (num >= 8 && /[0-9]px/.test(String(type))) {
|
|
65
119
|
num = num / 16;
|
|
66
120
|
}
|
|
67
121
|
|
|
@@ -78,7 +132,7 @@ export const createTypeModifiers = types => {
|
|
|
78
132
|
}
|
|
79
133
|
}
|
|
80
134
|
|
|
81
|
-
if (!(parseFloat(type) > 0)) {
|
|
135
|
+
if (!(parseFloat(String(type)) > 0)) {
|
|
82
136
|
acc.push(type);
|
|
83
137
|
}
|
|
84
138
|
}
|
|
@@ -86,39 +140,35 @@ export const createTypeModifiers = types => {
|
|
|
86
140
|
return acc;
|
|
87
141
|
}, []);
|
|
88
142
|
};
|
|
89
|
-
export const findType =
|
|
90
|
-
|
|
91
|
-
} = {}) => {
|
|
92
|
-
const found = Object.entries(spacePatterns).find(([k, v]) => k && v === num) || null;
|
|
93
|
-
|
|
94
|
-
if (returnObject) {
|
|
95
|
-
return found;
|
|
96
|
-
}
|
|
143
|
+
export const findType = num => {
|
|
144
|
+
const found = findTypeAll(num);
|
|
97
145
|
|
|
98
146
|
if (found) {
|
|
99
147
|
return found[0];
|
|
100
148
|
}
|
|
101
149
|
|
|
150
|
+
return null;
|
|
151
|
+
};
|
|
152
|
+
export const findTypeAll = num => {
|
|
153
|
+
const found = Object.entries(spacePatterns).find(([k, v]) => k && v === num) || null;
|
|
102
154
|
return found;
|
|
103
155
|
};
|
|
104
|
-
export const findNearestTypes = num => {
|
|
156
|
+
export const findNearestTypes = (num, multiply = false) => {
|
|
105
157
|
let res = [];
|
|
106
|
-
const near = Object.entries(spacePatterns).reverse().find(([k, v]) => k && num >= v);
|
|
158
|
+
const near = Object.entries(spacePatterns).reverse().filter(k => multiply ? true : !k[0].includes('-x')).find(([k, v]) => k && num >= v);
|
|
107
159
|
const nearNum = near && near[1] || num;
|
|
108
|
-
const
|
|
109
|
-
returnObject: true
|
|
110
|
-
});
|
|
160
|
+
const types = findTypeAll(nearNum);
|
|
111
161
|
|
|
112
|
-
if (
|
|
113
|
-
const nearType =
|
|
162
|
+
if (types) {
|
|
163
|
+
const nearType = types[0];
|
|
114
164
|
res.push(nearType);
|
|
115
|
-
const leftOver = num - parseFloat(String(
|
|
116
|
-
const foundMoreTypes = findNearestTypes(leftOver);
|
|
165
|
+
const leftOver = num - parseFloat(String(types[1]));
|
|
166
|
+
const foundMoreTypes = findNearestTypes(leftOver, multiply);
|
|
117
167
|
foundMoreTypes.forEach(type => {
|
|
118
168
|
const index = res.indexOf(type);
|
|
119
169
|
|
|
120
170
|
if (index !== -1) {
|
|
121
|
-
res[index] = `${type}-x2
|
|
171
|
+
res[index] = multiply ? `${type}-x2` : type;
|
|
122
172
|
}
|
|
123
173
|
});
|
|
124
174
|
res = [...res, ...foundMoreTypes];
|
|
@@ -138,51 +188,6 @@ export const removeSpaceProps = props => {
|
|
|
138
188
|
|
|
139
189
|
return p;
|
|
140
190
|
};
|
|
141
|
-
export const createSpacingClasses = (props, Element = null) => {
|
|
142
|
-
const p = Object.isFrozen(props) ? _objectSpread({}, props) : props;
|
|
143
|
-
|
|
144
|
-
if (typeof p.space !== 'undefined') {
|
|
145
|
-
if (typeof p.space === 'string' || typeof p.space === 'number' || typeof p.space === 'boolean' && p.space) {
|
|
146
|
-
p.top = p.right = p.bottom = p.left = p.space;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
if (typeof p.space === 'object') {
|
|
150
|
-
for (const i in p.space) {
|
|
151
|
-
if (!p[i] && isValidSpaceProp(i)) {
|
|
152
|
-
p[i] = p.space[i];
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
delete p.space;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
return Object.entries(p).reduce((acc, [direction, cur]) => {
|
|
161
|
-
if (isValidSpaceProp(direction)) {
|
|
162
|
-
if (String(cur) === '0' || String(cur) === 'false') {
|
|
163
|
-
acc.push(`dnb-space__${direction}--zero`);
|
|
164
|
-
} else if (cur) {
|
|
165
|
-
const typeModifiers = createTypeModifiers(cur);
|
|
166
|
-
const sum = sumTypes(typeModifiers);
|
|
167
|
-
|
|
168
|
-
if (sum > 10) {
|
|
169
|
-
warn(`Spacing of more than 10rem is not supported! You used ${sum} / (${typeModifiers.join(',')})`);
|
|
170
|
-
} else {
|
|
171
|
-
const nearestTypes = findNearestTypes(sum);
|
|
172
|
-
acc = [...acc, ...nearestTypes.map(type => `dnb-space__${direction}--${type}`)];
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
} else if (direction === 'no_collapse') {
|
|
176
|
-
acc.push('dnb-space--no-collapse');
|
|
177
|
-
|
|
178
|
-
if (Element && isInline(Element)) {
|
|
179
|
-
acc.push('dnb-space--inline');
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
return acc;
|
|
184
|
-
}, []);
|
|
185
|
-
};
|
|
186
191
|
export const createStyleObject = props => {
|
|
187
192
|
const p = Object.isFrozen(props) ? _objectSpread({}, props) : props;
|
|
188
193
|
|
|
@@ -3,26 +3,33 @@ export declare type SpacingElementProps = {
|
|
|
3
3
|
* Use spacing values like: `small`, `1rem`, `1` or , `16px`. Will use `margin-top`.
|
|
4
4
|
*
|
|
5
5
|
*/
|
|
6
|
-
top?:
|
|
6
|
+
top?: SpaceType;
|
|
7
7
|
/**
|
|
8
8
|
* Use spacing values like: `small`, `1rem`, `1` or , `16px`. will use `margin-right`.
|
|
9
9
|
*
|
|
10
10
|
*/
|
|
11
|
-
right?:
|
|
11
|
+
right?: SpaceType;
|
|
12
12
|
/**
|
|
13
13
|
* Use spacing values like: `small`, `1rem`, `1` or , `16px`. will use `margin-bottom`.
|
|
14
14
|
*
|
|
15
15
|
*/
|
|
16
|
-
bottom?:
|
|
16
|
+
bottom?: SpaceType;
|
|
17
17
|
/**
|
|
18
18
|
* Use spacing values like: `small`, `1rem`, `1` or , `16px`. will use `margin-left`.
|
|
19
19
|
*
|
|
20
20
|
*/
|
|
21
|
-
left?:
|
|
21
|
+
left?: SpaceType;
|
|
22
22
|
};
|
|
23
|
-
export declare type
|
|
23
|
+
export declare type SpaceType = string | boolean | number;
|
|
24
24
|
export declare type SpacingProps = SpacingElementProps & {
|
|
25
|
-
space?:
|
|
25
|
+
space?: SpaceType | SpacingElementProps;
|
|
26
|
+
};
|
|
27
|
+
export declare type SpacingUnknownProps = Record<string, unknown>;
|
|
28
|
+
export declare type StyleObjectProps = SpacingProps & {
|
|
29
|
+
maxWidth?: string;
|
|
30
|
+
maxHeight?: string;
|
|
31
|
+
width?: string;
|
|
32
|
+
height?: string;
|
|
26
33
|
};
|
|
27
34
|
/**
|
|
28
35
|
* @deprecated Use SpacingElementProps instead
|
|
@@ -68,7 +68,7 @@ export type TabsChildren =
|
|
|
68
68
|
*/
|
|
69
69
|
export interface TabsProps extends React.HTMLProps<HTMLElement> {
|
|
70
70
|
/**
|
|
71
|
-
* <em>(required)</em> defines the data structure to load as a JSON. e.g. `[{title: '...', content: 'Current tab', key
|
|
71
|
+
* <em>(required)</em> defines the data structure to load as a JSON. e.g. `[{title: '...', content: 'Current tab', key: '...', hash: '...'}]`
|
|
72
72
|
*/
|
|
73
73
|
data?: TabsData;
|
|
74
74
|
|
|
@@ -61,7 +61,7 @@ export declare const defaultProps: {
|
|
|
61
61
|
declare const Tag: {
|
|
62
62
|
(localProps: TagProps & SpacingProps): JSX.Element;
|
|
63
63
|
Group: (localProps: import("./TagGroup").TagGroupProps & import("../space/types").SpacingElementProps & {
|
|
64
|
-
space?: import("../space/types").
|
|
64
|
+
space?: import("../space/types").SpaceType | import("../space/types").SpacingElementProps;
|
|
65
65
|
}) => JSX.Element;
|
|
66
66
|
};
|
|
67
67
|
export default Tag;
|
package/es/elements/Anchor.d.ts
CHANGED
|
@@ -20,9 +20,9 @@ export declare type AnchorProps = {
|
|
|
20
20
|
/** @deprecated use targetBlankTitle instead */
|
|
21
21
|
target_blank_title?: string;
|
|
22
22
|
};
|
|
23
|
-
export declare type AnchorAllProps = AnchorProps & React.
|
|
23
|
+
export declare type AnchorAllProps = AnchorProps & React.HTMLProps<HTMLAnchorElement> & SpacingProps;
|
|
24
24
|
export declare function AnchorInstance(localProps: AnchorAllProps): JSX.Element;
|
|
25
|
-
declare const Anchor: React.ForwardRefExoticComponent<AnchorProps & React.
|
|
26
|
-
space?: import("../shared/types").
|
|
27
|
-
} & React.RefAttributes<HTMLAnchorElement>>;
|
|
25
|
+
declare const Anchor: React.ForwardRefExoticComponent<Pick<AnchorProps & React.HTMLProps<HTMLAnchorElement> & import("../shared/types").SpacingElementProps & {
|
|
26
|
+
space?: import("../shared/types").SpaceType | import("../shared/types").SpacingElementProps;
|
|
27
|
+
}, "aria-hidden" | "cite" | "data" | "dir" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "accessKey" | "key" | "value" | "top" | "right" | "bottom" | "left" | "space" | "width" | "height" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "className" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "innerRef" | "list" | "tooltip" | "step" | "size" | "skeleton" | "alt" | "src" | "shape" | "content" | "element" | "inner_ref" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "sizes" | "srcDoc" | "srcLang" | "srcSet" | "start" | "target" | "type" | "useMap" | "wmode" | "wrap" | "to" | "targetBlankTitle" | "omitClass" | "target_blank_title"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
28
28
|
export default Anchor;
|
package/es/elements/Dd.d.ts
CHANGED
|
@@ -8,6 +8,6 @@ export declare type DdProps = {
|
|
|
8
8
|
children: React.ReactNode;
|
|
9
9
|
};
|
|
10
10
|
declare const Dd: React.ForwardRefExoticComponent<DdProps & import("../shared/types").SpacingElementProps & {
|
|
11
|
-
space?: import("../shared/types").
|
|
11
|
+
space?: import("../shared/types").SpaceType | import("../shared/types").SpacingElementProps;
|
|
12
12
|
} & React.RefAttributes<unknown>>;
|
|
13
13
|
export default Dd;
|
package/es/elements/Dt.d.ts
CHANGED
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
export declare type DtProps = React.AllHTMLAttributes<HTMLDListElement>;
|
|
7
7
|
declare const Dt: React.ForwardRefExoticComponent<DtProps & import("../shared/types").SpacingElementProps & {
|
|
8
|
-
space?: import("../shared/types").
|
|
8
|
+
space?: import("../shared/types").SpaceType | import("../shared/types").SpacingElementProps;
|
|
9
9
|
} & React.RefAttributes<unknown>>;
|
|
10
10
|
export default Dt;
|