@selfdecode/sd-component-library 2.42.25 → 2.42.29
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/animations/up-down-arrow/up-down-arrow.d.ts +1 -0
- package/lib/components/bicolor-badge/interfaces.d.ts +1 -0
- package/lib/components/checkboxes/checkbox/checkbox.d.ts +1 -0
- package/lib/components/complex/footer/partials/footer-link/footer-link.d.ts +1 -0
- package/lib/components/complex/footer/partials/footer-section/footer-section.d.ts +1 -0
- package/lib/components/complex/footer/partials/footer-social/footer-social.d.ts +1 -0
- package/lib/components/complex/footer/presentational/footer-presentational.d.ts +1 -0
- package/lib/components/complex/navbar/partials/navbar-v1/partials/navbar-desktop-v1/partials/menu-row/menu-row.d.ts +1 -0
- package/lib/components/complex/navbar/partials/navbar-v1/partials/navbar-desktop-v1/partials/new-apps/new-apps.d.ts +1 -0
- package/lib/components/complex/navbar/partials/navbar-v2/partials/navbar-desktop-v2/partials/menu-box/menu-box.d.ts +1 -0
- package/lib/components/complex/navbar/presentational/navbar-presentational.d.ts +1 -0
- package/lib/components/containers/max-width-container/max-width-container.d.ts +1 -0
- package/lib/components/containers/section-container/section-container.d.ts +1 -0
- package/lib/components/feature-explanation/feature-explanation.d.ts +1 -0
- package/lib/components/feedback/base-feedback-button/base-feedback-button.d.ts +3 -0
- package/lib/components/feedback/base-feedback-button/index.d.ts +1 -0
- package/lib/components/feedback/base-feedback-button/interfaces.d.ts +4 -0
- package/lib/components/feedback/base-feedback-container/base-feedback-container.d.ts +3 -0
- package/lib/components/feedback/base-feedback-container/index.d.ts +1 -0
- package/lib/components/feedback/base-feedback-container/interfaces.d.ts +5 -0
- package/lib/components/feedback/multiple-options-feedback/index.d.ts +1 -0
- package/lib/components/feedback/multiple-options-feedback/interfaces.d.ts +10 -0
- package/lib/components/feedback/multiple-options-feedback/multiple-options-feedback.d.ts +3 -0
- package/lib/components/feedback/yes-no-feedback-block/index.d.ts +1 -0
- package/lib/components/feedback/yes-no-feedback-block/interfaces.d.ts +6 -0
- package/lib/components/feedback/yes-no-feedback-block/yes-no-feedback-block.d.ts +3 -0
- package/lib/components/inputs/primary-text-input/interfaces.d.ts +1 -1
- package/lib/components/inputs/search-input/partials/search-box/search-box.d.ts +1 -0
- package/lib/components/inputs/secondary-text-input/interfaces.d.ts +1 -1
- package/lib/components/labels/base-label/base-label.d.ts +1 -0
- package/lib/components/radio-button/radio-button.d.ts +1 -0
- package/lib/components/ratings/five-stars-rating/five-stars-rating.d.ts +1 -0
- package/lib/components/selectors/compact-primary-selector/compact-primary-selector.d.ts +1 -0
- package/lib/components/selectors/primary-selector/primary-selector.d.ts +1 -0
- package/lib/components/selectors/secondary-selector/secondary-selector.d.ts +1 -0
- package/lib/components/selectors/selector/selector.d.ts +1 -0
- package/lib/components/selectors/selector-v2/partials/base-selector-v2/base-selector-v2.d.ts +1 -0
- package/lib/components/selectors/selector-v2/selector-v2.d.ts +1 -0
- package/lib/components/selectors/tertiary-selector/tertiary-selector.d.ts +1 -0
- package/lib/components/slider/partials/step-circles/step-circles.d.ts +1 -0
- package/lib/components/slider/slider.d.ts +1 -0
- package/lib/components/tabs/tab-bar/partials/tab/tab.d.ts +1 -0
- package/lib/components/tabs/tab-bar/tab-bar.d.ts +1 -0
- package/lib/components/tabs/tabbed-view/tabbed-view.d.ts +1 -0
- package/lib/components/tabs/tabbed-view-v2/interfaces.d.ts +1 -1
- package/lib/components/tabs/tabs-menu/tabs-menu.d.ts +1 -0
- package/lib/components/texts/base-text/base-text.d.ts +1 -0
- package/lib/components/texts/eighteen-bold/eighteen-bold.d.ts +1 -0
- package/lib/components/texts/eighteen-regular/eighteen-regular.d.ts +1 -0
- package/lib/components/texts/fifty-five-sb/fifty-five-sb.d.ts +1 -0
- package/lib/components/texts/fourteen-regular/fourteen-regular.d.ts +1 -0
- package/lib/components/texts/fourteen-sb/fourteen-sb.d.ts +1 -0
- package/lib/components/texts/fourty-bold/fourty-bold.d.ts +1 -0
- package/lib/components/texts/sixteen-regular/sixteen-regular.d.ts +1 -0
- package/lib/components/texts/ten-sb/ten-sb.d.ts +1 -0
- package/lib/components/texts/thirteen-bold/thirteen-bold.d.ts +1 -0
- package/lib/components/texts/thirteen-regular/thirteen-regular.d.ts +1 -0
- package/lib/components/texts/thirteen-sb/thirteen-sb.d.ts +1 -0
- package/lib/components/texts/thirty-two-bold/thirty-two-bold.d.ts +1 -0
- package/lib/components/texts/thirty-two-regular/thirty-two-regular.d.ts +1 -0
- package/lib/components/texts/twelve-regular/twelve-regular.d.ts +1 -0
- package/lib/components/texts/twelve-sb/twelve-sb.d.ts +1 -0
- package/lib/components/texts/twenty-four-bold/twenty-four-bold.d.ts +1 -0
- package/lib/components/texts/twenty-four-regular/twenty-four-regular.d.ts +1 -0
- package/lib/components/tooltips/react-element-tooltip/index.d.ts +1 -0
- package/lib/components/tooltips/react-element-tooltip/interfaces.d.ts +17 -0
- package/lib/components/tooltips/react-element-tooltip/react-element-tooltip.d.ts +7 -0
- package/lib/components/utils/scroll-to-top/scroll-to-top.d.ts +1 -0
- package/lib/components/utils/scroll-to-top-on-mount/scroll-to-top-on-mount.d.ts +1 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BaseFeedbackButton } from "./base-feedback-button";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BaseFeedbackContainer } from "./base-feedback-container";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MultipleOptionsFeedback } from "./multiple-options-feedback";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseFeedbackBlockProps } from "../base-feedback-container/interfaces";
|
|
2
|
+
export interface MultipleOptionsFeedbackProps extends Pick<BaseFeedbackBlockProps, "questionText"> {
|
|
3
|
+
options: FeedbackOption[];
|
|
4
|
+
selectedOptionId?: string;
|
|
5
|
+
onFeedback: (id: string) => void;
|
|
6
|
+
}
|
|
7
|
+
export interface FeedbackOption {
|
|
8
|
+
id: string;
|
|
9
|
+
label: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { YesNoFeedbackBlock } from "./yes-no-feedback-block";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BaseFeedbackBlockProps } from "../base-feedback-container/interfaces";
|
|
2
|
+
export interface YesNoFeedbackBlockProps extends Pick<BaseFeedbackBlockProps, "questionText"> {
|
|
3
|
+
selectedOption?: YesNoOption;
|
|
4
|
+
onFeedback: (option: YesNoOption) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare type YesNoOption = "yes" | "no";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TextInputProps } from "../text-input";
|
|
2
|
-
export declare type PrimaryTextInputProps = Pick<TextInputProps, "onChange" | "value" | "type" | "placeholder" | "onKeyPress" | "focusInput" | "padding" | "textAlign" | "width" | "m" | "mt" | "mr" | "mb" | "ml" | "onFocus" | "autoFocus" | "errorBackground" | "sx" | "id"> & {
|
|
2
|
+
export declare type PrimaryTextInputProps = Pick<TextInputProps, "onChange" | "value" | "type" | "placeholder" | "onKeyPress" | "focusInput" | "padding" | "textAlign" | "width" | "m" | "mt" | "mr" | "mb" | "ml" | "onFocus" | "autoFocus" | "errorBackground" | "sx" | "id" | "disabled"> & {
|
|
3
3
|
/**
|
|
4
4
|
* Optional error message
|
|
5
5
|
*/
|
|
@@ -3,7 +3,7 @@ import { PrimaryTextInputProps } from "../primary-text-input";
|
|
|
3
3
|
/**
|
|
4
4
|
* Defines the SecondaryTextInput component's properties.
|
|
5
5
|
*/
|
|
6
|
-
export declare type SecondaryTextInputProps = Pick<PrimaryTextInputProps, "onChange" | "value" | "type" | "padding" | "placeholder" | "errorMessage" | "hideErrorText" | "focusInput" | "textAlign" | "width" | "m" | "mt" | "mr" | "mb" | "ml" | "onFocus" | "autoFocus" | "errorBackground"> & {
|
|
6
|
+
export declare type SecondaryTextInputProps = Pick<PrimaryTextInputProps, "onChange" | "value" | "type" | "padding" | "placeholder" | "errorMessage" | "hideErrorText" | "focusInput" | "textAlign" | "width" | "m" | "mt" | "mr" | "mb" | "ml" | "onFocus" | "autoFocus" | "errorBackground" | "disabled"> & {
|
|
7
7
|
/**
|
|
8
8
|
* The label for the text input
|
|
9
9
|
*/
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { CompactPrimarySelectorProps as Props } from "./interfaces";
|
|
2
3
|
export declare const CompactPrimarySelector: <T extends string = string>(props: Pick<import("../selector").SelectorProps<T>, "width" | "m" | "mt" | "mr" | "mb" | "ml" | "onChange" | "name" | "defaultValue" | "textTransform" | "selectorLabel" | "options" | "disabledTextValue" | "hideDefaultOnSelect" | "labelMargin">) => JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TabBarV2Props, TabV2Config } from "../tab-bar-v2/interfaces";
|
|
3
|
-
export interface TabbedViewV2Props extends Pick<TabBarV2Props, "color" | "activeColor" | "borderColor" | "borderWidth" | "borderRadius"> {
|
|
3
|
+
export interface TabbedViewV2Props extends Pick<TabBarV2Props, "color" | "activeColor" | "borderColor" | "borderWidth" | "borderRadius" | "selectedTabId" | "onSelect"> {
|
|
4
4
|
tabs: TabViewTabV2[];
|
|
5
5
|
}
|
|
6
6
|
export interface TabViewTabV2 extends TabV2Config {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ReactElementTooltip } from "./react-element-tooltip";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { BaseInfoTooltipProps } from "../base-info-tooltip";
|
|
3
|
+
/**
|
|
4
|
+
* Additional props we want to add
|
|
5
|
+
*/
|
|
6
|
+
declare type SameProps = Partial<BaseInfoTooltipProps>;
|
|
7
|
+
export interface ReactElementTooltipProps extends SameProps {
|
|
8
|
+
/**
|
|
9
|
+
* Only this prop is required
|
|
10
|
+
*/
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* Limit the width, if it overflows
|
|
14
|
+
*/
|
|
15
|
+
maxWidth?: string;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { BoxProps } from "rebass";
|
|
3
|
+
import { ReactElementTooltipProps } from "./interfaces";
|
|
4
|
+
/**
|
|
5
|
+
* PrimaryInfoTooltip component.
|
|
6
|
+
*/
|
|
7
|
+
export declare const ReactElementTooltip: React.ForwardRefExoticComponent<ReactElementTooltipProps & React.RefAttributes<React.FC<BoxProps>>>;
|
package/lib/index.d.ts
CHANGED
|
@@ -64,6 +64,8 @@ export { PrimaryDropdown } from "./components/dropdowns/primary-dropdown";
|
|
|
64
64
|
export { FeatureExplanation } from "./components/feature-explanation";
|
|
65
65
|
export { ThumbsFeedback } from "./components/boolean-feedback/thumbs-feedback";
|
|
66
66
|
export { YesNoFeedback } from "./components/boolean-feedback/yes-no-feedback";
|
|
67
|
+
export { MultipleOptionsFeedback } from "./components/feedback/multiple-options-feedback";
|
|
68
|
+
export { YesNoFeedbackBlock } from "./components/feedback/yes-no-feedback-block";
|
|
67
69
|
export { Input } from "./components/inputs/input";
|
|
68
70
|
export declare type InputProps = BaseInputProps;
|
|
69
71
|
export { TextInput } from "./components/inputs/text-input";
|
|
@@ -171,6 +173,7 @@ export { BaseInfoTooltip } from "./components/tooltips/base-info-tooltip";
|
|
|
171
173
|
export { PrimaryInfoTooltip } from "./components/tooltips/primary-info-tooltip";
|
|
172
174
|
export { StarTooltip } from "./components/tooltips/star-tooltip";
|
|
173
175
|
export { RadioInfoButtonTooltip } from "./components/tooltips/radio-info-button-tooltip";
|
|
176
|
+
export { ReactElementTooltip } from "./components/tooltips/react-element-tooltip";
|
|
174
177
|
export { Footer } from "./components/complex/footer";
|
|
175
178
|
export { Navbar } from "./components/complex/navbar";
|
|
176
179
|
export { Anchor } from "./components/utils/anchor";
|