@selfdecode/sd-component-library 3.0.17 → 3.0.20

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.
@@ -0,0 +1,26 @@
1
+ <!-- Appears with the stroke -->
2
+ <svg
3
+ xmlns="http://www.w3.org/2000/svg"
4
+ width="18"
5
+ height="18.828"
6
+ viewBox="0 0 18 18.828"
7
+ >
8
+ <g transform="translate(1 1.414)">
9
+ <path
10
+ d="M23.5,18H7.5"
11
+ transform="translate(-7.5 -10)"
12
+ fill="none"
13
+ stroke-linecap="round"
14
+ stroke-linejoin="round"
15
+ stroke-width="2"
16
+ />
17
+ <path
18
+ d="M26,7.5l-8,8,8,8"
19
+ transform="translate(-18 -7.5)"
20
+ fill="none"
21
+ stroke-linecap="round"
22
+ stroke-linejoin="round"
23
+ stroke-width="2"
24
+ />
25
+ </g>
26
+ </svg>
@@ -1,6 +1,13 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="15" height="16.243" viewBox="0 0 15 16.243">
1
+ <svg
2
+ xmlns="http://www.w3.org/2000/svg"
3
+ width="15"
4
+ height="16.243"
5
+ viewBox="0 0 15 16.243"
6
+ >
2
7
  <g id="arrow_right" transform="translate(0.5 -9.879)">
3
- <path id="Path_86" data-name="Path 86" d="M18,24l6-6-6-6" transform="translate(-11)" fill="none" stroke="#4568f9" stroke-linecap="round" stroke-linejoin="round" stroke-width="3"/>
4
- <path id="Path_87" data-name="Path 87" d="M12,18H24" transform="translate(-11)" fill="none" stroke="#4568f9" stroke-linecap="round" stroke-linejoin="round" stroke-width="3"/>
8
+ <path id="Path_86" data-name="Path 86" d="M18,24l6-6-6-6" transform="translate(-11)" fill="none" stroke="#4568f9"
9
+ stroke-linecap="round" stroke-linejoin="round" stroke-width="3"/>
10
+ <path id="Path_87" data-name="Path 87" d="M12,18H24" transform="translate(-11)" fill="none" stroke="#4568f9"
11
+ stroke-linecap="round" stroke-linejoin="round" stroke-width="3"/>
5
12
  </g>
6
13
  </svg>
@@ -1,2 +1,3 @@
1
1
  import React from "react";
2
- export declare const GridCenter: React.FC;
2
+ import { GridContainerV2Props as Props } from "../grid-container-v2";
3
+ export declare const GridCenter: 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" | "letterSpacing" | "marginBottom" | "bg" | "marginRight" | "pr" | "paddingLeft" | "paddingY" | "paddingRight" | "pb" | "pl" | "pt" | "py" | "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>>;
@@ -18,3 +18,4 @@ export { VialIcon } from "./vial-icon";
18
18
  export { WarningCircleIcon } from "./warning-circle-icon";
19
19
  export { TriangularPointerIcon } from "./triangular-pointer-icon";
20
20
  export { EnvironmentIcon } from "./environment-icon";
21
+ export { ReactComponent as ThinArrowLeftIcon } from "./thin-arrow-left.svg";
@@ -0,0 +1,26 @@
1
+ <!-- Appears with the stroke -->
2
+ <svg
3
+ xmlns="http://www.w3.org/2000/svg"
4
+ width="18"
5
+ height="18.828"
6
+ viewBox="0 0 18 18.828"
7
+ >
8
+ <g transform="translate(1 1.414)">
9
+ <path
10
+ d="M23.5,18H7.5"
11
+ transform="translate(-7.5 -10)"
12
+ fill="none"
13
+ stroke-linecap="round"
14
+ stroke-linejoin="round"
15
+ stroke-width="2"
16
+ />
17
+ <path
18
+ d="M26,7.5l-8,8,8,8"
19
+ transform="translate(-18 -7.5)"
20
+ fill="none"
21
+ stroke-linecap="round"
22
+ stroke-linejoin="round"
23
+ stroke-width="2"
24
+ />
25
+ </g>
26
+ </svg>
@@ -12,17 +12,12 @@ export declare type SecondaryTextInputProps = Pick<PrimaryTextInputProps, "onCha
12
12
  /**
13
13
  * Label shown to the right of the label
14
14
  */
15
- secondLabel?: {
15
+ secondLabel?: Omit<ResponsiveTextV2Props, "children" | "fontSizeWeight"> & {
16
16
  text: string;
17
17
  /**
18
18
  * Default value: ["3px"]
19
19
  */
20
20
  ml?: ResponsiveTextV2Props["ml"];
21
- /**
22
- * You can use negative values to show the content
23
- * a little bit above the label. Default value: undefined
24
- */
25
- mt?: ResponsiveTextV2Props["mt"];
26
21
  /**
27
22
  * Default value: "#9BA2B4", "cl_grey", "grey"
28
23
  */
@@ -6,7 +6,7 @@ export declare type TabConfig<T> = Pick<TabProps<T>, "id" | "label" | "secondary
6
6
  /**
7
7
  * Props for TabBar
8
8
  */
9
- export interface TabBarProps<T> {
9
+ export interface TabBarProps<T> extends Pick<TabProps<T>, "labelSx" | "secondaryTextSx"> {
10
10
  /**
11
11
  * Array containing configuration for each tab.
12
12
  */
@@ -49,4 +49,9 @@ export interface TabBarProps<T> {
49
49
  * Max width of each tab.
50
50
  */
51
51
  tabMaxWidth?: string | string[];
52
+ /**
53
+ * Whether component should be scrollable.
54
+ * Otherwise, buttons for the manual scrolling will appear .
55
+ */
56
+ scrollable?: boolean;
52
57
  }
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { ArrowButtonProps as Props } from "./interfaces";
3
+ export declare const ArrowButton: React.FC<Props>;
@@ -0,0 +1 @@
1
+ export { ArrowButton } from "./arrow-button";
@@ -0,0 +1,5 @@
1
+ export interface ArrowButtonProps {
2
+ width: number | string | string[];
3
+ onClick: () => void;
4
+ direction: "left" | "right";
5
+ }
@@ -0,0 +1,3 @@
1
+ export * from "./arrow-button";
2
+ export * from "./mask";
3
+ export * from "./tab";
@@ -0,0 +1 @@
1
+ export { Mask } from "./mask";
@@ -0,0 +1,5 @@
1
+ export interface MaskProps {
2
+ width: number | string | string[];
3
+ offset: number | string | string[];
4
+ direction: "left" | "right";
5
+ }
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { MaskProps as Props } from "./interfaces";
3
+ export declare const Mask: React.FC<Props>;
@@ -1,4 +1,5 @@
1
1
  import React from "react";
2
+ import { SxProps } from "rebass";
2
3
  export interface TabProps<T> {
3
4
  /**
4
5
  * Tab width.
@@ -12,10 +13,12 @@ export interface TabProps<T> {
12
13
  * This is the text to be displayed on the tab
13
14
  */
14
15
  label: string | React.ReactNode;
16
+ labelSx?: SxProps["sx"];
15
17
  /**
16
18
  * Secondary text to be displayed right after label.
17
19
  */
18
20
  secondaryText?: string;
21
+ secondaryTextSx?: SxProps["sx"];
19
22
  /**
20
23
  * Icon to be displayed right after label.
21
24
  */
@@ -5,4 +5,4 @@ export declare const Ribbon: ({ active, activeColor, color, }: {
5
5
  activeColor?: string | undefined;
6
6
  color?: string | undefined;
7
7
  }) => JSX.Element;
8
- export declare function Tab<T>({ width, height, label, secondaryText, icon, id, onClick, selected, activeColor, color, tabPadding, bg, activeBg, activeRibbonColor, borderRadius, tabHeaderComponent, elementId, maxWidth, }: TabProps<T>): JSX.Element;
8
+ export declare function Tab<T>({ width, height, label, secondaryText, icon, id, onClick, selected, activeColor, color, tabPadding, bg, activeBg, activeRibbonColor, borderRadius, tabHeaderComponent, elementId, maxWidth, labelSx, secondaryTextSx, }: TabProps<T>): JSX.Element;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { TabBarProps } from "./interfaces";
3
- export declare function TabBar<T>({ tabs, selectedTabId, onTabSelect, activeColor, color, displayBorder, tabPadding, tabWidth, tabHeight, tabMaxWidth, }: TabBarProps<T>): JSX.Element;
3
+ export declare function TabBar<T>({ tabs, selectedTabId, onTabSelect, activeColor, color, displayBorder, tabPadding, tabWidth, tabHeight, tabMaxWidth, labelSx, secondaryTextSx, scrollable, }: TabBarProps<T>): JSX.Element;
@@ -0,0 +1,13 @@
1
+ <svg
2
+ xmlns="http://www.w3.org/2000/svg"
3
+ width="15"
4
+ height="16.243"
5
+ viewBox="0 0 15 16.243"
6
+ >
7
+ <g id="arrow_right" transform="translate(0.5 -9.879)">
8
+ <path id="Path_86" data-name="Path 86" d="M18,24l6-6-6-6" transform="translate(-11)" fill="none" stroke="#4568f9"
9
+ stroke-linecap="round" stroke-linejoin="round" stroke-width="3"/>
10
+ <path id="Path_87" data-name="Path 87" d="M12,18H24" transform="translate(-11)" fill="none" stroke="#4568f9"
11
+ stroke-linecap="round" stroke-linejoin="round" stroke-width="3"/>
12
+ </g>
13
+ </svg>