@selfdecode/sd-component-library 2.42.29 → 2.42.30
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 +0 -1
- package/lib/components/bicolor-badge/interfaces.d.ts +0 -1
- package/lib/components/checkboxes/checkbox/checkbox.d.ts +0 -1
- package/lib/components/complex/footer/partials/footer-link/footer-link.d.ts +0 -1
- package/lib/components/complex/footer/partials/footer-section/footer-section.d.ts +0 -1
- package/lib/components/complex/footer/partials/footer-social/footer-social.d.ts +0 -1
- package/lib/components/complex/footer/presentational/footer-presentational.d.ts +0 -1
- package/lib/components/complex/navbar/partials/navbar-v1/partials/navbar-desktop-v1/partials/menu-row/menu-row.d.ts +0 -1
- package/lib/components/complex/navbar/partials/navbar-v1/partials/navbar-desktop-v1/partials/new-apps/new-apps.d.ts +0 -1
- package/lib/components/complex/navbar/partials/navbar-v2/partials/navbar-desktop-v2/partials/menu-box/menu-box.d.ts +0 -1
- package/lib/components/complex/navbar/presentational/navbar-presentational.d.ts +0 -1
- package/lib/components/containers/max-width-container/max-width-container.d.ts +0 -1
- package/lib/components/containers/section-container/section-container.d.ts +0 -1
- package/lib/components/feature-explanation/feature-explanation.d.ts +0 -1
- package/lib/components/inputs/search-input/partials/search-box/search-box.d.ts +0 -1
- package/lib/components/labels/base-label/base-label.d.ts +0 -1
- package/lib/components/radio-button/radio-button.d.ts +0 -1
- package/lib/components/ratings/five-stars-rating/five-stars-rating.d.ts +0 -1
- package/lib/components/selectors/compact-primary-selector/compact-primary-selector.d.ts +0 -1
- package/lib/components/selectors/primary-selector/primary-selector.d.ts +0 -1
- package/lib/components/selectors/secondary-selector/secondary-selector.d.ts +0 -1
- package/lib/components/selectors/selector/selector.d.ts +0 -1
- package/lib/components/selectors/selector-v2/partials/base-selector-v2/base-selector-v2.d.ts +0 -1
- package/lib/components/selectors/selector-v2/selector-v2.d.ts +0 -1
- package/lib/components/selectors/tertiary-selector/tertiary-selector.d.ts +0 -1
- package/lib/components/slider/partials/step-circles/step-circles.d.ts +0 -1
- package/lib/components/slider/slider.d.ts +0 -1
- package/lib/components/tabs/tab-bar/partials/tab/interfaces.d.ts +5 -1
- package/lib/components/tabs/tab-bar/partials/tab/tab.d.ts +1 -2
- package/lib/components/tabs/tab-bar/tab-bar.d.ts +0 -1
- package/lib/components/tabs/tabbed-view/interfaces.d.ts +5 -1
- package/lib/components/tabs/tabbed-view/tabbed-view.d.ts +1 -2
- package/lib/components/tabs/tabs-menu/tabs-menu.d.ts +0 -1
- package/lib/components/texts/base-text/base-text.d.ts +0 -1
- package/lib/components/texts/base-text/index.d.ts +1 -2
- package/lib/components/texts/base-text/interfaces.d.ts +5 -1
- package/lib/components/texts/eighteen-bold/eighteen-bold.d.ts +0 -1
- package/lib/components/texts/eighteen-regular/eighteen-regular.d.ts +0 -1
- package/lib/components/texts/fifty-five-sb/fifty-five-sb.d.ts +0 -1
- package/lib/components/texts/fourteen-regular/fourteen-regular.d.ts +0 -1
- package/lib/components/texts/fourteen-sb/fourteen-sb.d.ts +0 -1
- package/lib/components/texts/fourty-bold/fourty-bold.d.ts +0 -1
- package/lib/components/texts/responsive-text/interfaces.d.ts +1 -1
- package/lib/components/texts/sixteen-regular/sixteen-regular.d.ts +0 -1
- package/lib/components/texts/ten-sb/ten-sb.d.ts +0 -1
- package/lib/components/texts/thirteen-bold/thirteen-bold.d.ts +0 -1
- package/lib/components/texts/thirteen-regular/thirteen-regular.d.ts +0 -1
- package/lib/components/texts/thirteen-sb/thirteen-sb.d.ts +0 -1
- package/lib/components/texts/thirty-two-bold/thirty-two-bold.d.ts +0 -1
- package/lib/components/texts/thirty-two-regular/thirty-two-regular.d.ts +0 -1
- package/lib/components/texts/twelve-regular/twelve-regular.d.ts +0 -1
- package/lib/components/texts/twelve-sb/twelve-sb.d.ts +0 -1
- package/lib/components/texts/twenty-four-bold/twenty-four-bold.d.ts +0 -1
- package/lib/components/texts/twenty-four-regular/twenty-four-regular.d.ts +0 -1
- package/lib/components/utils/scroll-to-top/scroll-to-top.d.ts +0 -1
- package/lib/components/utils/scroll-to-top-on-mount/scroll-to-top-on-mount.d.ts +0 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { CompactPrimarySelectorProps as Props } from "./interfaces";
|
|
3
2
|
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,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
export interface TabProps<T> {
|
|
3
3
|
/**
|
|
4
4
|
* Tab width.
|
|
@@ -56,4 +56,8 @@ export interface TabProps<T> {
|
|
|
56
56
|
* Color of the ribbon in active state.
|
|
57
57
|
*/
|
|
58
58
|
activeRibbonColor?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Provide a custom component to render instead of label/icon
|
|
61
|
+
*/
|
|
62
|
+
tabHeaderComponent?: React.ReactNode;
|
|
59
63
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { TabProps } from "./interfaces";
|
|
3
2
|
export declare const Ribbon: ({ active, activeColor }: {
|
|
4
3
|
active?: boolean | undefined;
|
|
5
4
|
activeColor?: string | undefined;
|
|
6
5
|
}) => JSX.Element;
|
|
7
|
-
export declare function Tab<T>({ width, label, secondaryText, icon, id, onClick, selected, activeColor, color, tabPadding, bg, activeBg, activeRibbonColor, borderRadius, }: TabProps<T>): JSX.Element;
|
|
6
|
+
export declare function Tab<T>({ width, label, secondaryText, icon, id, onClick, selected, activeColor, color, tabPadding, bg, activeBg, activeRibbonColor, borderRadius, tabHeaderComponent, }: TabProps<T>): JSX.Element;
|
|
@@ -4,7 +4,7 @@ import { TabProps } from "../tab-bar/partials/tab/interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* Configuration for each tab and the corresponding view
|
|
6
6
|
*/
|
|
7
|
-
export interface TabViewConfig extends Pick<TabProps<string>, "label" | "width" | "color" | "activeColor" | "bg" | "activeBg" | "borderRadius" | "activeRibbonColor"> {
|
|
7
|
+
export interface TabViewConfig extends Pick<TabProps<string>, "label" | "width" | "color" | "activeColor" | "bg" | "activeBg" | "borderRadius" | "activeRibbonColor" | "tabHeaderComponent"> {
|
|
8
8
|
/**
|
|
9
9
|
* Component to be rendered when the tab is active
|
|
10
10
|
*/
|
|
@@ -30,4 +30,8 @@ export interface TabbedViewProps<ThemeType extends Theme = RequiredTheme> {
|
|
|
30
30
|
* Padding around the content
|
|
31
31
|
*/
|
|
32
32
|
contentPadding?: ResponsiveValue<number | string, ThemeType>;
|
|
33
|
+
/**
|
|
34
|
+
* Padding of each tab to be set up externally
|
|
35
|
+
*/
|
|
36
|
+
tabPadding?: string[];
|
|
33
37
|
}
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { TabbedViewProps } from "./interfaces";
|
|
3
|
-
export declare function TabbedView({ tabs, color, activeColor, contentPadding, }: TabbedViewProps): JSX.Element;
|
|
2
|
+
export declare function TabbedView({ tabs, color, activeColor, contentPadding, tabPadding, }: TabbedViewProps): JSX.Element;
|
|
@@ -12,7 +12,11 @@ interface CommonBaseTextProps extends Pick<BaseComponentProps, "m" | "mt" | "mr"
|
|
|
12
12
|
/**
|
|
13
13
|
* The width of the text component
|
|
14
14
|
*/
|
|
15
|
-
width?:
|
|
15
|
+
width?: string | string[];
|
|
16
|
+
/**
|
|
17
|
+
* The height of the text component
|
|
18
|
+
*/
|
|
19
|
+
height?: string | string[];
|
|
16
20
|
/**
|
|
17
21
|
* The color of the text
|
|
18
22
|
*/
|
|
@@ -2,7 +2,7 @@ import { BaseTextProps } from "../base-text";
|
|
|
2
2
|
/**
|
|
3
3
|
* Props we want from the base text.
|
|
4
4
|
*/
|
|
5
|
-
declare type PropsFromBaseText = Pick<BaseTextProps, "children" | "color" | "display" | "cursor" | "textAlign" | "textDecoration" | "textTransform" | "letterSpacing" | "lineHeight" | "backgroundColor" | "width" | "onClick" | "m" | "mt" | "mr" | "mb" | "ml">;
|
|
5
|
+
declare type PropsFromBaseText = Pick<BaseTextProps, "children" | "color" | "display" | "cursor" | "textAlign" | "textDecoration" | "textTransform" | "letterSpacing" | "lineHeight" | "backgroundColor" | "width" | "height" | "onClick" | "m" | "mt" | "mr" | "mb" | "ml">;
|
|
6
6
|
/**
|
|
7
7
|
* SelfDecode's combinations of fontSize and fontWeight.
|
|
8
8
|
*/
|