@selfdecode/sd-component-library 2.46.9 → 2.46.12
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/lib/components/boxes/index.d.ts +5 -0
- package/lib/components/breadcrumbs/breadcrumb/breadcrumb.d.ts +1 -1
- package/lib/components/buttons/button/interfaces.d.ts +7 -1
- package/lib/components/buttons/cta/text-cta-button/interfaces.d.ts +1 -1
- package/lib/components/buttons/partials/icon-button/icon-button.d.ts +1 -1
- package/lib/components/buttons/partials/icon-button/interfaces.d.ts +1 -1
- package/lib/components/containers/flex-center/flex-center.d.ts +1 -1
- package/lib/components/containers/grid-containers/grid-container-v2/grid-container-v2.d.ts +1 -1
- package/lib/components/containers/grid-containers/index.d.ts +7 -0
- package/lib/components/containers/index.d.ts +6 -0
- package/lib/components/containers/layout-independend-max-width-container/index.d.ts +1 -0
- package/lib/components/containers/layout-independend-max-width-container/interfaces.d.ts +3 -0
- package/lib/components/containers/layout-independend-max-width-container/layout-independent-max-width-container.d.ts +3 -0
- package/lib/components/containers/max-width-container/max-width-container.d.ts +3 -2
- package/lib/components/containers/max-width-container-v2/max-width-container-v2.d.ts +1 -2
- package/lib/components/meters/common-outline-meter-partials/matched-range-label-box/interfaces.d.ts +2 -0
- package/lib/components/meters/multi-option-discrete-outline-meter/partials/matched-range-label-box/interfaces.d.ts +1 -1
- package/lib/components/meters/outline-meter/partials/outline-meter-range/outline-meter-range.d.ts +1 -1
- package/lib/components/meters/smiley-meter-v2/partials/matched-range-label-box/interfaces.d.ts +3 -0
- package/lib/components/meters/smiley-meter-v2/partials/smiley-meter-range/smiley-meter-range.d.ts +1 -1
- package/lib/components/meters/smiley-meter-v2/partials/smiley-meter-ranges/smiley-meter-ranges.d.ts +1 -1
- package/lib/core/custom-hooks.d.ts +14 -1
- package/lib/index.d.ts +3 -19
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/lib/components/containers/responsive-containers/responsive-container-t1/index.d.ts +0 -1
- package/lib/components/containers/responsive-containers/responsive-container-t1/interfaces.d.ts +0 -2
- package/lib/components/containers/responsive-containers/responsive-container-t1/responsive-grid-container-t1.d.ts +0 -9
- package/lib/components/containers/responsive-containers/responsive-container-t2/index.d.ts +0 -1
- package/lib/components/containers/responsive-containers/responsive-container-t2/interfaces.d.ts +0 -2
- package/lib/components/containers/responsive-containers/responsive-container-t2/responsive-grid-container-t2.d.ts +0 -9
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { DesktopHiddenBox } from "./desktop-hidden-box";
|
|
2
|
+
export { MobileHiddenBox } from "./mobile-hidden-box";
|
|
3
|
+
export { NoTranslateBox } from "./no-translate-box";
|
|
4
|
+
export { OutsideClickBox } from "./outside-click-box";
|
|
5
|
+
export { ScrollOnHoverBox } from "./scroll-on-hover-box";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
1
|
+
import { CSSProperties, ReactNode } from "react";
|
|
2
2
|
import { History } from "history";
|
|
3
3
|
import { SxProps } from "rebass";
|
|
4
4
|
import { LoadingSpinnerProps as LoadingIconProps } from "../../animations/loading-spinner/interfaces";
|
|
@@ -169,4 +169,10 @@ export interface ButtonProps extends BaseComponentProps {
|
|
|
169
169
|
* Button component sx.
|
|
170
170
|
*/
|
|
171
171
|
sx?: SxProps["sx"];
|
|
172
|
+
/**
|
|
173
|
+
* The cursor when the button is hovered
|
|
174
|
+
*
|
|
175
|
+
* Default value: "pointer"
|
|
176
|
+
*/
|
|
177
|
+
cursor?: CSSProperties["cursor"];
|
|
172
178
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ButtonProps } from "../../button";
|
|
2
|
-
export declare type TextCtaButtonProps = Pick<ButtonProps, "link" | "isInternal" | "scrollTo" | "width" | "history" | "onClick" | "children" | "disabled" | "color" | "hoverFontWeight" | "hoverTextDecoration" | "letterSpacing" | "textDecoration" | "textTransform" | "fontWeight" | "fontSize" | "m" | "mt" | "mr" | "mb" | "ml">;
|
|
2
|
+
export declare type TextCtaButtonProps = Pick<ButtonProps, "link" | "isInternal" | "scrollTo" | "width" | "history" | "onClick" | "children" | "disabled" | "color" | "hoverFontWeight" | "hoverTextDecoration" | "letterSpacing" | "textDecoration" | "textTransform" | "fontWeight" | "fontSize" | "m" | "mt" | "mr" | "mb" | "ml" | "cursor">;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ButtonProps } from "../../button";
|
|
3
|
-
export declare type BaseButtonProps =
|
|
3
|
+
export declare type BaseButtonProps = Omit<ButtonProps, "variant">;
|
|
4
4
|
/**
|
|
5
5
|
* Defines the icon button component's properties.
|
|
6
6
|
*/
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { FlexProps } from "rebass";
|
|
3
|
-
export declare const FlexCenter: React.ForwardRefExoticComponent<Pick<FlexProps, "flex" | "cite" | "data" | "form" | "label" | "p" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "children" | "width" | "
|
|
3
|
+
export declare const FlexCenter: React.ForwardRefExoticComponent<Pick<FlexProps, "flex" | "cite" | "data" | "form" | "label" | "p" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "children" | "width" | "backgroundColor" | "px" | "py" | "m" | "mt" | "mr" | "mb" | "ml" | "onChange" | "hidden" | "sizes" | "content" | "variant" | "tx" | "as" | "css" | "key" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "mx" | "marginX" | "my" | "marginY" | "padding" | "pt" | "paddingTop" | "pr" | "paddingRight" | "pb" | "paddingBottom" | "pl" | "paddingLeft" | "paddingX" | "paddingY" | "height" | "minWidth" | "minHeight" | "maxWidth" | "maxHeight" | "display" | "verticalAlign" | "size" | "overflow" | "overflowX" | "overflowY" | "fontSize" | "color" | "bg" | "opacity" | "order" | "alignSelf" | "sx" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "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" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "target" | "type" | "useMap" | "value" | "wmode" | "wrap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "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-hidden" | "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" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "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" | "alignContent" | "alignItems" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "justifyContent" | "justifyItems" | "justifySelf"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { GridContainerV2Props as Props } from "./interfaces";
|
|
3
|
-
export declare const GridContainerV2: React.ForwardRefExoticComponent<Pick<Props, "flex" | "cite" | "data" | "form" | "label" | "p" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "children" | "width" | "
|
|
3
|
+
export declare const GridContainerV2: React.ForwardRefExoticComponent<Pick<Props, "flex" | "cite" | "data" | "form" | "label" | "p" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "children" | "width" | "backgroundColor" | "px" | "py" | "m" | "mt" | "mr" | "mb" | "ml" | "onChange" | "hidden" | "sizes" | "content" | "variant" | "tx" | "as" | "css" | "key" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "mx" | "marginX" | "my" | "marginY" | "padding" | "pt" | "paddingTop" | "pr" | "paddingRight" | "pb" | "paddingBottom" | "pl" | "paddingLeft" | "paddingX" | "paddingY" | "height" | "minWidth" | "minHeight" | "maxWidth" | "maxHeight" | "verticalAlign" | "size" | "overflow" | "overflowX" | "overflowY" | "fontSize" | "color" | "bg" | "opacity" | "order" | "alignSelf" | "sx" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "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" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "target" | "type" | "useMap" | "value" | "wmode" | "wrap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "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-hidden" | "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" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "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" | "alignContent" | "alignItems" | "flexDirection" | "gridTemplateColumns" | "gridTemplateRows" | "justifyContent" | "justifyItems" | "justifySelf" | "gap"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { BaseGridContainer } from "./base-grid-container";
|
|
2
|
+
export type { BaseGridContainerProps } from "./base-grid-container";
|
|
3
|
+
export { FrFrContainer } from "./fr-fr-container";
|
|
4
|
+
export { FrMaxContainer } from "./fr-max-container";
|
|
5
|
+
export { GridContainerV2 as Grid } from "./grid-container-v2";
|
|
6
|
+
export { MaxFrContainer } from "./max-fr-container";
|
|
7
|
+
export { MaxMaxContainer } from "./max-max-container";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { FlexCenter } from "./flex-center";
|
|
2
|
+
export * from "./grid-containers";
|
|
3
|
+
export { LayoutIndependentMaxWidthContainer } from "./layout-independend-max-width-container";
|
|
4
|
+
export { MaxWidthContainer } from "./max-width-container";
|
|
5
|
+
export { MaxWidthContainerV2 as MaxWidth } from "./max-width-container-v2";
|
|
6
|
+
export { SectionContainer } from "./section-container";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { LayoutIndependentMaxWidthContainer } from "./layout-independent-max-width-container";
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { MaxWidthContainerProps as Props } from "./interfaces";
|
|
3
|
+
export declare const MaxWidthContainer: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
3
|
-
export declare const MaxWidthContainerV2: React.FC<Props>;
|
|
2
|
+
export declare const MaxWidthContainerV2: React.ForwardRefExoticComponent<import("../max-width-container/interfaces").MaxWidthContainerProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MatchedRangeLabelBoxProps as BaseProps } from "../../../common-outline-meter-partials";
|
|
2
2
|
import { MultiOptionDiscreteOutlineMeterProps } from "../../interfaces";
|
|
3
|
-
export interface MatchedRangeLabelBoxProps<T = string> extends Required<Pick<MultiOptionDiscreteOutlineMeterProps<T>, "distanceBetweenRanges" | "arc">>, Omit<BaseProps, "alpha"> {
|
|
3
|
+
export interface MatchedRangeLabelBoxProps<T = string> extends Required<Pick<MultiOptionDiscreteOutlineMeterProps<T>, "distanceBetweenRanges" | "arc">>, Omit<BaseProps, "alpha" | "round"> {
|
|
4
4
|
idx: number;
|
|
5
5
|
totalRanges: number;
|
|
6
6
|
}
|
package/lib/components/meters/smiley-meter-v2/partials/matched-range-label-box/interfaces.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { MatchedRangeLabelBoxProps as BaseProps } from "../../../common-outline-meter-partials";
|
|
2
2
|
import { SmileyMeterRange, SmileyMeterV2Props } from "../../interfaces";
|
|
3
3
|
export interface MatchedRangeBoxProps extends Required<Pick<SmileyMeterV2Props, "arc" | "distanceBetweenRanges">>, Omit<BaseProps, "alpha" | "color" | "label" | "radius"> {
|
|
4
|
+
segmented?: boolean;
|
|
4
5
|
diameter: number;
|
|
5
6
|
totalRanges: number;
|
|
6
7
|
idx: number;
|
|
7
8
|
range: SmileyMeterRange;
|
|
9
|
+
pointX: number;
|
|
10
|
+
pointY: number;
|
|
8
11
|
}
|
|
@@ -59,7 +59,7 @@ export declare function useHover(onHover?: (newState: boolean) => void): {
|
|
|
59
59
|
onMouseLeave: () => void;
|
|
60
60
|
};
|
|
61
61
|
};
|
|
62
|
-
export
|
|
62
|
+
export declare function useContentSize<T extends Element = HTMLElement>(settings?: {
|
|
63
63
|
listenForResize?: boolean;
|
|
64
64
|
debounceDelay?: number;
|
|
65
65
|
checkEachRender?: boolean;
|
|
@@ -68,3 +68,16 @@ export default function useContentSize<T extends Element = HTMLElement>(settings
|
|
|
68
68
|
contentWidth: number;
|
|
69
69
|
contentHeight: number;
|
|
70
70
|
};
|
|
71
|
+
export declare function useElementCoordinates<T extends Element = HTMLElement>(): {
|
|
72
|
+
ref: RefObject<T>;
|
|
73
|
+
x: number;
|
|
74
|
+
y: number;
|
|
75
|
+
};
|
|
76
|
+
export declare function useBoundingClientRect<T extends Element = HTMLElement>(settings?: {
|
|
77
|
+
listenForResize?: boolean;
|
|
78
|
+
debounceDelay?: number;
|
|
79
|
+
checkEachRender?: boolean;
|
|
80
|
+
}): {
|
|
81
|
+
ref: RefObject<T>;
|
|
82
|
+
rect: DOMRect | undefined;
|
|
83
|
+
};
|
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { BaseAccordionProps, BaseBadgeProps,
|
|
2
|
+
import { BaseAccordionProps, BaseBadgeProps, BaseBicolorBadgeProps, BaseBoxyNumberInputProps, BaseBreadcrumbProps, BaseCarouselSwitchProps, BaseDateRangeInputProps, BaseDropdownProps, BaseInputProps, BaseLinkProps, BaseListProps, BaseModalProps, BaseNumberInputProps, BasePaginationBarProps, BaseProgressBarProps, BaseResponsiveTextProps, BaseSublistAccordionProps, BaseTextInputProps, BaseTextPropsInterface, BaseTextSwitchProps, OutlinedDateRangeInputProps, SlideSettingsType } from "./interfaces";
|
|
3
3
|
export declare const ComponentLibThemeProvider: import("react").FC<import("./components/wrapper/interfaces").WrapperProps>;
|
|
4
4
|
export { Accordion } from "./components/accordions/base-accordion";
|
|
5
5
|
export declare type AccordionProps = BaseAccordionProps;
|
|
@@ -13,11 +13,7 @@ export { SecondaryBadge } from "./components/badges/secondary-badge";
|
|
|
13
13
|
export { TertiaryBadge } from "./components/badges/tertiary-badge";
|
|
14
14
|
export { BicolorBadge } from "./components/bicolor-badge";
|
|
15
15
|
export declare type BicolorBadgeProps = BaseBicolorBadgeProps;
|
|
16
|
-
export
|
|
17
|
-
export { MobileHiddenBox } from "./components/boxes/mobile-hidden-box";
|
|
18
|
-
export { OutsideClickBox } from "./components/boxes/outside-click-box";
|
|
19
|
-
export { ScrollOnHoverBox } from "./components/boxes/scroll-on-hover-box";
|
|
20
|
-
export { NoTranslateBox } from "./components/boxes/no-translate-box";
|
|
16
|
+
export * from "./components/boxes";
|
|
21
17
|
export { Breadcrumb } from "./components/breadcrumbs/breadcrumb";
|
|
22
18
|
export declare type BreadCrumbProps = BaseBreadcrumbProps;
|
|
23
19
|
export { PrimaryBreadcrumb } from "./components/breadcrumbs/primary-breadcrumb";
|
|
@@ -26,20 +22,8 @@ export * from "./components/buttons";
|
|
|
26
22
|
export { RoundCard } from "./components/cards/round-card";
|
|
27
23
|
export { Checkbox } from "./components/checkboxes/checkbox";
|
|
28
24
|
export { PartialCheckbox } from "./components/checkboxes/partial-checkbox";
|
|
29
|
-
export
|
|
30
|
-
export declare type BaseGridContainerProps = BaseBaseGridContainerProps;
|
|
31
|
-
export { FrFrContainer } from "./components/containers/grid-containers/fr-fr-container";
|
|
32
|
-
export { FrMaxContainer } from "./components/containers/grid-containers/fr-max-container";
|
|
33
|
-
export { MaxFrContainer } from "./components/containers/grid-containers/max-fr-container";
|
|
34
|
-
export { MaxMaxContainer } from "./components/containers/grid-containers/max-max-container";
|
|
35
|
-
export { SectionContainer } from "./components/containers/section-container";
|
|
36
|
-
export { MaxWidthContainer } from "./components/containers/max-width-container";
|
|
37
|
-
export { MaxWidthContainerV2 as MaxWidth } from "./components/containers/max-width-container-v2";
|
|
38
|
-
export { GridContainerV2 as Grid } from "./components/containers/grid-containers/grid-container-v2";
|
|
39
|
-
export { FlexCenter } from "./components/containers/flex-center";
|
|
25
|
+
export * from "./components/containers";
|
|
40
26
|
export { CarouselSectionContainer } from "./components/carousels/carousel-section-container";
|
|
41
|
-
export { ResponsiveGridContainerT1 } from "./components/containers/responsive-containers/responsive-container-t1";
|
|
42
|
-
export { ResponsiveGridContainerT2 } from "./components/containers/responsive-containers/responsive-container-t2";
|
|
43
27
|
export { CustomScrollbarBox } from "./components/custom-scrollbar-box";
|
|
44
28
|
export { HorizontalDivider } from "./components/dividers/horizontal-divider";
|
|
45
29
|
export { VerticalDivider } from "./components/dividers/vertical-divider";
|