@selfdecode/sd-component-library 4.0.30 → 4.0.32
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/buttons/index.d.ts +0 -1
- package/lib/components/checkboxes/checkbox/checkbox.d.ts +2 -1
- package/lib/components/checkboxes/checkbox-v2/checkbox-v2.d.ts +3 -0
- package/lib/components/checkboxes/checkbox-v2/index.d.ts +1 -0
- package/lib/components/checkboxes/checkbox-v2/interfaces.d.ts +9 -0
- package/lib/components/checkboxes/checkbox-v2/partials/checkbox-v2-container/checkbox-v2-container.d.ts +3 -0
- package/lib/components/checkboxes/checkbox-v2/partials/checkbox-v2-container/index.d.ts +2 -0
- package/lib/components/checkboxes/checkbox-v2/partials/checkbox-v2-container/interfaces.d.ts +18 -0
- package/lib/components/checkboxes/checkbox-v2/partials/index.d.ts +1 -0
- package/lib/components/checkboxes/index.d.ts +2 -0
- package/lib/components/checkboxes/partial-checkbox/partial-checkbox.d.ts +2 -1
- package/lib/components/checkboxes/partial-checkbox-v2/index.d.ts +1 -0
- package/lib/components/checkboxes/partial-checkbox-v2/interfaces.d.ts +6 -0
- package/lib/components/checkboxes/partial-checkbox-v2/partial-checkbox-v2.d.ts +3 -0
- package/lib/components/containers/grid-containers/grid-align-content-start/grid-align-content-start.d.ts +3 -0
- package/lib/components/containers/grid-containers/grid-align-content-start/index.d.ts +1 -0
- package/lib/components/containers/grid-containers/index.d.ts +1 -0
- package/lib/components/meters/smiley-meter-v2/constants.d.ts +0 -2
- package/lib/components/meters/smiley-meter-v2/interfaces.d.ts +0 -4
- package/lib/components/selectors/custom-scrollable-selector/partials/custom-scrollable-options-box/custom-scrollable-options-box.d.ts +1 -1
- package/lib/components/selectors/custom-scrollable-selector/partials/index.d.ts +1 -0
- package/lib/components/selectors/custom-selector/partials/index.d.ts +1 -0
- package/lib/components/selectors/secondary-custom-selector/partials/index.d.ts +1 -0
- package/lib/components/selectors/secondary-custom-selector/partials/secondary-custom-selector-options-box/secondary-custom-selector-options-box.d.ts +1 -1
- package/lib/components/selectors/secondary-custom-selector/secondary-custom-selector.d.ts +1 -1
- package/lib/components/selectors/selector-v2/partials/base-selector-v2/base-selector-v2.d.ts +1 -1
- package/lib/components/selectors/selector-v2/partials/index.d.ts +1 -0
- package/lib/components/selectors/selector-v2/selector-v2.d.ts +1 -1
- package/lib/components/tabs/tab-bar-v2/partials/tab-v2/interfaces.d.ts +0 -1
- package/lib/components/texts/base-inline-text/base-inline-text.d.ts +3 -0
- package/lib/components/texts/base-inline-text/index.d.ts +1 -0
- package/lib/components/texts/index.d.ts +2 -0
- package/lib/components/texts/inherit-color-text/index.d.ts +1 -0
- package/lib/components/texts/inherit-color-text/inherit-color-text.d.ts +3 -0
- package/lib/components/tooltips/index.d.ts +0 -1
- package/lib/components/utils/index.d.ts +0 -1
- package/lib/index.d.ts +0 -1
- package/lib/index.js +1 -1
- package/lib/interfaces.d.ts +0 -1
- package/package.json +1 -1
- package/lib/components/buttons/cta/share-button/assets/index.d.ts +0 -1
- package/lib/components/buttons/cta/share-button/assets/share.svg +0 -1
- package/lib/components/buttons/cta/share-button/index.d.ts +0 -3
- package/lib/components/buttons/cta/share-button/interfaces.d.ts +0 -23
- package/lib/components/buttons/cta/share-button/share-button.d.ts +0 -6
- package/lib/components/dropdowns/dropdown/dropdown-placholder/dropdown-placholder.d.ts +0 -6
- package/lib/components/dropdowns/dropdown/dropdown-placholder/index.d.ts +0 -1
- package/lib/components/dropdowns/dropdown/dropdown-placholder/interfaces.d.ts +0 -2
- package/lib/components/dropdowns/dropdown/dropdown.d.ts +0 -6
- package/lib/components/dropdowns/dropdown/index.d.ts +0 -3
- package/lib/components/dropdowns/dropdown/interfaces.d.ts +0 -38
- package/lib/components/dropdowns/index.d.ts +0 -2
- package/lib/components/dropdowns/primary-dropdown/index.d.ts +0 -1
- package/lib/components/dropdowns/primary-dropdown/interfaces.d.ts +0 -2
- package/lib/components/dropdowns/primary-dropdown/primary-dropdown.d.ts +0 -6
- package/lib/components/tooltips/star-tooltip/index.d.ts +0 -1
- package/lib/components/tooltips/star-tooltip/interfaces.d.ts +0 -23
- package/lib/components/tooltips/star-tooltip/partials/toltip-text-modal/index.d.ts +0 -1
- package/lib/components/tooltips/star-tooltip/partials/toltip-text-modal/interfaces.d.ts +0 -6
- package/lib/components/tooltips/star-tooltip/partials/toltip-text-modal/tooltip-text-modal.d.ts +0 -3
- package/lib/components/tooltips/star-tooltip/star-tooltip.d.ts +0 -3
- package/lib/components/utils/page-tracker/index.d.ts +0 -2
- package/lib/components/utils/page-tracker/interfaces.d.ts +0 -7
- package/lib/components/utils/page-tracker/page-tracker.d.ts +0 -2
- package/lib/fd0a680053462edb6f26ac4e136ee800.svg +0 -1
|
@@ -8,7 +8,6 @@ export { SecondaryOrangeButton } from "../buttons/cta/secondary-orange-button";
|
|
|
8
8
|
export { PrimaryTextButton } from "../buttons/cta/primary-text-button";
|
|
9
9
|
export { GoToButton } from "../buttons/partials/goto-button";
|
|
10
10
|
export { NextButton } from "../buttons/cta/next-button";
|
|
11
|
-
export { ShareButton } from "../buttons/cta/share-button";
|
|
12
11
|
export { IconButton } from "../buttons/partials/icon-button";
|
|
13
12
|
export { TickButton } from "../buttons/partials/tick-button";
|
|
14
13
|
export { CrossButton } from "../buttons/partials/cross-button";
|
|
@@ -2,5 +2,6 @@
|
|
|
2
2
|
import { CheckboxProps } from "./interfaces";
|
|
3
3
|
/**
|
|
4
4
|
* Base checkbox component. Other checkbox components should be built from this.
|
|
5
|
+
* @deprecated use CheckboxV2 instead
|
|
5
6
|
*/
|
|
6
|
-
export declare const Checkbox: (
|
|
7
|
+
export declare const Checkbox: ({ children, onChange, checked, disabled, color, bg, borderWidth, m, width, isHoverCheckbox, }: CheckboxProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CheckboxV2 } from "./checkbox-v2";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CheckboxV2ContainerProps } from "./partials";
|
|
2
|
+
export interface CheckboxV2Props extends Omit<CheckboxV2ContainerProps, "showHoverCheckbox" | "showInnerBox" | "onClick"> {
|
|
3
|
+
value: boolean;
|
|
4
|
+
onChange: (newValue: boolean) => void;
|
|
5
|
+
/**
|
|
6
|
+
* Whether to extend checkbox in not checked state on hovering
|
|
7
|
+
*/
|
|
8
|
+
isHoverCheckbox?: boolean;
|
|
9
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CSSProperties } from "react";
|
|
2
|
+
import { SxProps } from "rebass";
|
|
3
|
+
export interface CheckboxV2ContainerProps {
|
|
4
|
+
showInnerBox: boolean;
|
|
5
|
+
onClick: () => void;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
bg?: string;
|
|
8
|
+
color?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
disabledColor?: string;
|
|
11
|
+
borderWidth?: CSSProperties["borderWidth"];
|
|
12
|
+
/**
|
|
13
|
+
* Whether to extend checkbox in not checked state on hovering
|
|
14
|
+
*/
|
|
15
|
+
showHoverCheckbox?: boolean;
|
|
16
|
+
containerSx?: SxProps["sx"];
|
|
17
|
+
innerBoxSx?: SxProps["sx"];
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./checkbox-v2-container";
|
|
@@ -2,5 +2,6 @@ import React from "react";
|
|
|
2
2
|
import { PartialCheckboxProps } from "./interfaces";
|
|
3
3
|
/**
|
|
4
4
|
* Checkbox component that supports partially checked state
|
|
5
|
+
* @deprecated use PartialCheckboxV2 instead
|
|
5
6
|
*/
|
|
6
|
-
export declare const PartialCheckbox: React.
|
|
7
|
+
export declare const PartialCheckbox: React.FC<PartialCheckboxProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PartialCheckboxV2 } from "./partial-checkbox-v2";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CheckboxV2Props } from "../checkbox-v2/interfaces";
|
|
2
|
+
export declare type PartialCheckboxState = "checked" | "unchecked" | "partial";
|
|
3
|
+
export interface PartialCheckboxV2Props extends Omit<CheckboxV2Props, "value" | "onChange"> {
|
|
4
|
+
value: PartialCheckboxState;
|
|
5
|
+
onChange: (newValue: PartialCheckboxState) => void;
|
|
6
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { GridContainerV2Props as Props } from "../grid-container-v2";
|
|
3
|
+
export declare const GridAlignContentStart: React.ForwardRefExoticComponent<Pick<Props, "flex" | "cite" | "data" | "form" | "label" | "p" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "children" | "fontFamily" | "height" | "lineHeight" | "color" | "px" | "gridTemplateColumns" | "alignItems" | "gap" | "textAlign" | "fontWeight" | "fontSize" | "flexDirection" | "justifyContent" | "width" | "py" | "letterSpacing" | "marginBottom" | "bg" | "marginRight" | "pr" | "paddingLeft" | "paddingY" | "paddingRight" | "pb" | "pl" | "pt" | "padding" | "backgroundColor" | "paddingX" | "onChange" | "m" | "mt" | "mr" | "mb" | "ml" | "hidden" | "sizes" | "content" | "variant" | "tx" | "as" | "css" | "key" | "margin" | "marginTop" | "marginLeft" | "mx" | "marginX" | "my" | "marginY" | "paddingTop" | "paddingBottom" | "minWidth" | "minHeight" | "maxWidth" | "maxHeight" | "verticalAlign" | "size" | "overflow" | "overflowX" | "overflowY" | "fontStyle" | "opacity" | "alignContent" | "justifyItems" | "flexBasis" | "justifySelf" | "alignSelf" | "order" | "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" | "gridTemplateRows"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { GridAlignContentStart } from "./grid-align-content-start";
|
|
@@ -5,14 +5,12 @@ import React from "react";
|
|
|
5
5
|
import { SmileyGaugeColor } from "./utils";
|
|
6
6
|
export declare const defaultDistanceBetweenRanges = 10;
|
|
7
7
|
export declare const defaultSmileyWidth = 80;
|
|
8
|
-
export declare const defaultSmileyTopOffset = 80;
|
|
9
8
|
/**
|
|
10
9
|
* Small Smiley meter v2 default values.
|
|
11
10
|
*/
|
|
12
11
|
export declare const smallSmileyMeterWidth = 100;
|
|
13
12
|
export declare const smallSmileyMeterHeight = 87;
|
|
14
13
|
export declare const smallSmileyWidth = 30;
|
|
15
|
-
export declare const smallSmileyTopOffset = 35;
|
|
16
14
|
export declare const smallSmileyInnerPointStrokeWidth = 3;
|
|
17
15
|
export declare const smallSmileyInnerPointRadius = 2;
|
|
18
16
|
export declare const smallSmileyGaugeWidth = 4;
|
|
@@ -9,10 +9,6 @@ export interface SmileyMeterV2Props extends Pick<OutlineMeterProps, "width" | "h
|
|
|
9
9
|
* Smiley width.
|
|
10
10
|
*/
|
|
11
11
|
smileyWidth?: number;
|
|
12
|
-
/**
|
|
13
|
-
* Distance from smiley to the top.
|
|
14
|
-
*/
|
|
15
|
-
smileyTopOffset?: number;
|
|
16
12
|
pointerWidth?: number;
|
|
17
13
|
textBottomMargin?: number;
|
|
18
14
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CustomScrollableOptionsBoxProps as Props } from "./interfaces";
|
|
3
|
-
export declare const CustomScrollableOptionsBox: <T extends string = string>(
|
|
3
|
+
export declare const CustomScrollableOptionsBox: <T extends string = string>({ options, onSelect, }: Props<T>) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./custom-scrollable-options-box";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./custom-option-box";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./secondary-custom-selector-options-box";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { SecondaryCustomSelectorOptionsBoxProps as Props } from "./interfaces";
|
|
3
|
-
export declare const SecondaryCustomSelectorOptionsBox: <T extends string = string>(
|
|
3
|
+
export declare const SecondaryCustomSelectorOptionsBox: <T extends string = string>({ options, onSelect, }: Props<T>) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { SecondaryCustomSelectorProps as Props } from "./interfaces";
|
|
3
|
-
export declare const SecondaryCustomSelector: <T extends string = string>(
|
|
3
|
+
export declare const SecondaryCustomSelector: <T extends string = string>({ value, onChange, options, width, label, variant, containerSx, }: Props<T>) => JSX.Element | null;
|
package/lib/components/selectors/selector-v2/partials/base-selector-v2/base-selector-v2.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { BaseSelectorV2Props as Props } from "./interfaces";
|
|
3
|
-
export declare const BaseSelectorV2: <T extends string = string>(
|
|
3
|
+
export declare const BaseSelectorV2: <T extends string = string>({ variant, options, width, m, mt, mr, mb, ml, gap, selectorLabel, secondLabel, errorMessage, disabledTextValue, hideDefaultOnSelect, labelMargin, selectElementHeight, defaultOptionColor, textTransform, onSelect, noOptionsToSelect, name, selection, hasDefaultValue, onFocus, errorBackground, labelContainerAlignItems, translateSelect, translateDefaultOption, containerVariant, disabled, pl, }: Props<T>) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./base-selector-v2";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { SelectorV2Props as Props } from "./interfaces";
|
|
3
|
-
export declare const SelectorV2: <T extends string = string>(
|
|
3
|
+
export declare const SelectorV2: <T extends string = string>({ value, onChange, defaultOptionObject, options, ...baseProps }: Props<T>) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BaseInlineText } from "./base-inline-text";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { InheritColorText } from "./inherit-color-text";
|
package/lib/index.d.ts
CHANGED
|
@@ -12,7 +12,6 @@ export * from "./components/containers";
|
|
|
12
12
|
export * from "./components/carousels";
|
|
13
13
|
export * from "./components/custom-scrollbar-box";
|
|
14
14
|
export * from "./components/dividers";
|
|
15
|
-
export * from "./components/dropdowns";
|
|
16
15
|
export * from "./components/feature-explanation";
|
|
17
16
|
export * from "./components/boolean-feedback";
|
|
18
17
|
export * from "./components/feedback";
|