@elliemae/ds-tabs 3.80.0-next.8 → 3.80.0-next.80
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/dist/cjs/config/useTabs.js +3 -3
- package/dist/cjs/config/useTabs.js.map +2 -2
- package/dist/cjs/constants/index.js +11 -1
- package/dist/cjs/constants/index.js.map +2 -2
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +2 -2
- package/dist/cjs/{exported-related → parts/DSTab}/DSTab.js +2 -4
- package/dist/cjs/parts/DSTab/DSTab.js.map +7 -0
- package/dist/cjs/parts/DSTab/index.js +37 -0
- package/dist/cjs/parts/DSTab/index.js.map +7 -0
- package/dist/cjs/parts/DSTab/react-desc-prop-types.js +55 -0
- package/dist/cjs/parts/DSTab/react-desc-prop-types.js.map +7 -0
- package/dist/cjs/parts/carousel/styles.js +2 -16
- package/dist/cjs/parts/carousel/styles.js.map +2 -2
- package/dist/cjs/parts/tabBar/TabBar.js +11 -1
- package/dist/cjs/parts/tabBar/TabBar.js.map +2 -2
- package/dist/cjs/parts/tabBar/TabBarItemRenderer.js.map +1 -1
- package/dist/cjs/parts/tabBar/styles.js +8 -20
- package/dist/cjs/parts/tabBar/styles.js.map +2 -2
- package/dist/cjs/parts/tabsContent/TabsContent.js +1 -1
- package/dist/cjs/parts/tabsContent/TabsContent.js.map +2 -2
- package/dist/cjs/parts/tabsContent/styles.js +1 -1
- package/dist/cjs/parts/tabsContent/styles.js.map +2 -2
- package/dist/cjs/parts/tabsPanel/TabsPanels.js +5 -4
- package/dist/cjs/parts/tabsPanel/TabsPanels.js.map +2 -2
- package/dist/cjs/parts/tabsPanel/styles.js.map +1 -1
- package/dist/cjs/react-desc-prop-types.js +1 -19
- package/dist/cjs/react-desc-prop-types.js.map +2 -2
- package/dist/cjs/typescript-testing/slot-props.js +61 -0
- package/dist/cjs/typescript-testing/slot-props.js.map +7 -0
- package/dist/esm/config/useTabs.js +3 -3
- package/dist/esm/config/useTabs.js.map +2 -2
- package/dist/esm/constants/index.js +11 -1
- package/dist/esm/constants/index.js.map +2 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +2 -2
- package/dist/esm/{exported-related → parts/DSTab}/DSTab.js +2 -4
- package/dist/esm/parts/DSTab/DSTab.js.map +7 -0
- package/dist/esm/parts/DSTab/index.js +7 -0
- package/dist/esm/parts/DSTab/index.js.map +7 -0
- package/dist/esm/parts/DSTab/react-desc-prop-types.js +30 -0
- package/dist/esm/parts/DSTab/react-desc-prop-types.js.map +7 -0
- package/dist/esm/parts/carousel/styles.js +3 -17
- package/dist/esm/parts/carousel/styles.js.map +2 -2
- package/dist/esm/parts/tabBar/TabBar.js +11 -1
- package/dist/esm/parts/tabBar/TabBar.js.map +2 -2
- package/dist/esm/parts/tabBar/TabBarItemRenderer.js.map +1 -1
- package/dist/esm/parts/tabBar/styles.js +8 -20
- package/dist/esm/parts/tabBar/styles.js.map +2 -2
- package/dist/esm/parts/tabsContent/TabsContent.js +7 -2
- package/dist/esm/parts/tabsContent/TabsContent.js.map +2 -2
- package/dist/esm/parts/tabsContent/styles.js +1 -1
- package/dist/esm/parts/tabsContent/styles.js.map +2 -2
- package/dist/esm/parts/tabsPanel/TabsPanels.js +5 -4
- package/dist/esm/parts/tabsPanel/TabsPanels.js.map +2 -2
- package/dist/esm/parts/tabsPanel/styles.js.map +1 -1
- package/dist/esm/react-desc-prop-types.js +2 -20
- package/dist/esm/react-desc-prop-types.js.map +2 -2
- package/dist/esm/typescript-testing/slot-props.js +38 -0
- package/dist/esm/typescript-testing/slot-props.js.map +7 -0
- package/dist/types/constants/index.d.ts +31 -2
- package/dist/types/index.d.ts +3 -2
- package/dist/types/{exported-related → parts/DSTab}/DSTab.d.ts +1 -2
- package/dist/types/parts/DSTab/index.d.ts +2 -0
- package/dist/types/parts/DSTab/react-desc-prop-types.d.ts +36 -0
- package/dist/types/parts/carousel/styles.d.ts +0 -7
- package/dist/types/parts/tabBar/styles.d.ts +0 -2
- package/dist/types/parts/tabsPanel/styles.d.ts +1 -1
- package/dist/types/react-desc-prop-types.d.ts +17 -23
- package/package.json +12 -12
- package/dist/cjs/exported-related/DSTab.js.map +0 -7
- package/dist/esm/exported-related/DSTab.js.map +0 -7
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { DSPropTypesSchema } from '@elliemae/ds-props-helpers';
|
|
2
|
+
import type { TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';
|
|
3
|
+
import { DSTAB_SLOTS, DSTabsName } from '../../constants/index.js';
|
|
4
|
+
export declare namespace DSTabT {
|
|
5
|
+
interface TabSlotArguments {
|
|
6
|
+
tabId: string;
|
|
7
|
+
}
|
|
8
|
+
interface TabPanelSlotArguments {
|
|
9
|
+
panelId: string;
|
|
10
|
+
}
|
|
11
|
+
type SlotFunctionArguments = {
|
|
12
|
+
dsTabsTabButton: (args: TabSlotArguments) => object;
|
|
13
|
+
dsTabsSubtabButton: (args: TabSlotArguments) => object;
|
|
14
|
+
dsTabsTabPanel: (args: TabPanelSlotArguments) => object;
|
|
15
|
+
};
|
|
16
|
+
interface DefaultProps {
|
|
17
|
+
tabId: string;
|
|
18
|
+
applyAriaDisabled: boolean;
|
|
19
|
+
}
|
|
20
|
+
interface OptionalProps extends TypescriptHelpersT.PropsForGlobalOnSlots<typeof DSTabsName, typeof DSTAB_SLOTS> {
|
|
21
|
+
style?: Record<string, unknown>;
|
|
22
|
+
title?: string;
|
|
23
|
+
required?: boolean;
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
RenderBadge?: React.ComponentType;
|
|
26
|
+
ref?: React.MutableRefObject<HTMLButtonElement>;
|
|
27
|
+
onClick?: (tabId: string | number, e: React.MouseEvent) => null | void;
|
|
28
|
+
onKeyDown?: (e: React.KeyboardEvent) => null | void;
|
|
29
|
+
}
|
|
30
|
+
interface RequiredProps {
|
|
31
|
+
children: TypescriptHelpersT.ReactChildrenComplete;
|
|
32
|
+
}
|
|
33
|
+
interface Props extends Partial<DefaultProps>, OptionalProps, RequiredProps {
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
export declare const DSTabPropTypes: DSPropTypesSchema<DSTabT.Props>;
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
import type { DSTabsInternalsT } from '../../sharedTypes.js';
|
|
2
|
-
interface StyledCarouselButtonWrapperPropsT {
|
|
3
|
-
right?: boolean;
|
|
4
|
-
tabType: DSTabsInternalsT.TabTypesT;
|
|
5
|
-
}
|
|
6
1
|
export declare const StyledCarouselBtnLeft: import("styled-components").StyledComponent<import("react").ComponentType<import("@elliemae/ds-button-v2").DSButtonV2T.Props>, import("@elliemae/ds-system").Theme, import("styled-components").ThemeProps<import("@xstyled/styled-components").Theme> & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<import("react").ComponentType<import("@elliemae/ds-button-v2").DSButtonV2T.Props>>, never>;
|
|
7
2
|
export declare const StyledCarouselBtnRight: import("styled-components").StyledComponent<import("react").ComponentType<import("@elliemae/ds-button-v2").DSButtonV2T.Props>, import("@elliemae/ds-system").Theme, import("styled-components").ThemeProps<import("@xstyled/styled-components").Theme> & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<import("react").ComponentType<import("@elliemae/ds-button-v2").DSButtonV2T.Props>>, never>;
|
|
8
3
|
export declare const StyledCarouselWrapper: import("styled-components").StyledComponent<"span", import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"span">, never>;
|
|
9
4
|
export declare const StyledChildrenWrap: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
|
|
10
|
-
export declare const StyledCarouselButtonWrapper: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, StyledCarouselButtonWrapperPropsT & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
|
|
11
|
-
export {};
|
|
@@ -28,8 +28,6 @@ export declare const StyledMobileGradient: import("styled-components").StyledCom
|
|
|
28
28
|
export declare const StyledTabWrapper: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, StyledTabWrapperPropsT & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
|
|
29
29
|
export declare const StyledSubTabsList: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, StyledSubTabsListPropsT & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
|
|
30
30
|
export declare const StyledTabList: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, StyledTabListPropsT & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
|
|
31
|
-
export declare const StyledRequiredMark: import("styled-components").StyledComponent<"span", import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"span">, never>;
|
|
32
|
-
export declare const ScreenReaderOnly: import("styled-components").StyledComponent<"div", import("@elliemae/ds-system").Theme, object & import("@elliemae/ds-system").OwnerInterface & import("@elliemae/ds-system").InnerRefInterface<"div">, never>;
|
|
33
31
|
interface StyledTabButtonPropsT {
|
|
34
32
|
showSeparator: boolean;
|
|
35
33
|
isDSMobile: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { GlobalAttributesT, useOwnerProps } from '@elliemae/ds-props-helpers';
|
|
2
|
-
import type { DSTabT } from '
|
|
2
|
+
import type { DSTabT } from '../DSTab/index.js';
|
|
3
3
|
interface StyledPanelContainerPropsT {
|
|
4
4
|
hide: boolean;
|
|
5
5
|
isDSMobile: boolean;
|
|
@@ -1,28 +1,23 @@
|
|
|
1
1
|
import type { DSPropTypesSchema, GlobalAttributesT, XstyledProps } from '@elliemae/ds-props-helpers';
|
|
2
2
|
import type { TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';
|
|
3
3
|
import type { DSTabsInternalsT } from './sharedTypes.js';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
tabId: string;
|
|
7
|
-
applyAriaDisabled: boolean;
|
|
8
|
-
}
|
|
9
|
-
interface OptionalProps {
|
|
10
|
-
style?: Record<string, unknown>;
|
|
11
|
-
title?: string;
|
|
12
|
-
required?: boolean;
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
RenderBadge?: React.ComponentType;
|
|
15
|
-
ref?: React.MutableRefObject<HTMLButtonElement>;
|
|
16
|
-
onClick?: (tabId: string | number, e: React.MouseEvent) => null | void;
|
|
17
|
-
onKeyDown?: (e: React.KeyboardEvent) => null | void;
|
|
18
|
-
}
|
|
19
|
-
interface RequiredProps {
|
|
20
|
-
children: TypescriptHelpersT.ReactChildrenComplete;
|
|
21
|
-
}
|
|
22
|
-
interface Props extends Partial<DefaultProps>, OptionalProps, RequiredProps {
|
|
23
|
-
}
|
|
24
|
-
}
|
|
4
|
+
import type { DSTabT } from './parts/DSTab/index.js';
|
|
5
|
+
import { DSTABS_SLOTS, DSTabsName } from './constants/index.js';
|
|
25
6
|
export declare namespace DSTabsT {
|
|
7
|
+
type SlotFunctionArguments = {
|
|
8
|
+
dsTabsRoot: () => object;
|
|
9
|
+
dsTabsContainer: () => object;
|
|
10
|
+
dsTabsTabList: () => object;
|
|
11
|
+
dsTabsSubtabsList: () => object;
|
|
12
|
+
dsTabsChevronRight: () => object;
|
|
13
|
+
dsTabsChevronLeft: () => object;
|
|
14
|
+
dsTabsTabsSwipeCard: () => object;
|
|
15
|
+
dsTabsTabBarContainer: () => object;
|
|
16
|
+
dsTabsTabWrapper: () => object;
|
|
17
|
+
dsTabsMobileGradient: () => object;
|
|
18
|
+
dsTabsCarouselWrapper: () => object;
|
|
19
|
+
dsTabsCarouselList: () => object;
|
|
20
|
+
};
|
|
26
21
|
interface DefaultProps {
|
|
27
22
|
containerProps: Record<string, unknown>;
|
|
28
23
|
animated: boolean;
|
|
@@ -40,7 +35,7 @@ export declare namespace DSTabsT {
|
|
|
40
35
|
tabPanelsProps: GlobalAttributesT<HTMLDivElement>;
|
|
41
36
|
swipeableViewsContainerProps: object;
|
|
42
37
|
}
|
|
43
|
-
interface OptionalProps {
|
|
38
|
+
interface OptionalProps extends TypescriptHelpersT.PropsForGlobalOnSlots<typeof DSTabsName, typeof DSTABS_SLOTS> {
|
|
44
39
|
tabsListAriaLabel?: string;
|
|
45
40
|
firstSubtabRef?: React.MutableRefObject<HTMLElement>;
|
|
46
41
|
lastTabRef?: React.MutableRefObject<HTMLElement>;
|
|
@@ -54,6 +49,5 @@ export declare namespace DSTabsT {
|
|
|
54
49
|
interface InternalProps extends DefaultProps, OptionalProps, Omit<GlobalAttributesT<HTMLElement>, keyof DefaultProps | keyof XstyledProps>, XstyledProps {
|
|
55
50
|
}
|
|
56
51
|
}
|
|
57
|
-
export declare const DSTabPropTypes: DSPropTypesSchema<DSTabT.Props>;
|
|
58
52
|
export declare const DSTabsPropTypes: DSPropTypesSchema<DSTabsT.Props>;
|
|
59
53
|
export declare const DSTabsDefaultProps: DSTabsT.DefaultProps;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-tabs",
|
|
3
|
-
"version": "3.80.0-next.
|
|
3
|
+
"version": "3.80.0-next.80",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Tabs",
|
|
6
6
|
"files": [
|
|
@@ -36,20 +36,20 @@
|
|
|
36
36
|
"indent": 4
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@elliemae/ds-button-v2": "3.80.0-next.
|
|
40
|
-
"@elliemae/ds-icon": "3.80.0-next.
|
|
41
|
-
"@elliemae/ds-
|
|
42
|
-
"@elliemae/ds-
|
|
43
|
-
"@elliemae/ds-swipe-card": "3.80.0-next.
|
|
44
|
-
"@elliemae/ds-
|
|
45
|
-
"@elliemae/ds-
|
|
46
|
-
"@elliemae/ds-
|
|
39
|
+
"@elliemae/ds-button-v2": "3.80.0-next.80",
|
|
40
|
+
"@elliemae/ds-icon": "3.80.0-next.80",
|
|
41
|
+
"@elliemae/ds-icons": "3.80.0-next.80",
|
|
42
|
+
"@elliemae/ds-props-helpers": "3.80.0-next.80",
|
|
43
|
+
"@elliemae/ds-swipe-card": "3.80.0-next.80",
|
|
44
|
+
"@elliemae/ds-system": "3.80.0-next.80",
|
|
45
|
+
"@elliemae/ds-tab-button": "3.80.0-next.80",
|
|
46
|
+
"@elliemae/ds-typescript-helpers": "3.80.0-next.80"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
+
"@elliemae/ds-monorepo-devops": "3.80.0-next.80",
|
|
50
|
+
"@elliemae/ds-test-utils": "3.80.0-next.80",
|
|
49
51
|
"jest": "^30.0.0",
|
|
50
|
-
"styled-components": "~5.3.11"
|
|
51
|
-
"@elliemae/ds-monorepo-devops": "3.80.0-next.8",
|
|
52
|
-
"@elliemae/ds-test-utils": "3.80.0-next.8"
|
|
52
|
+
"styled-components": "~5.3.11"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"lodash-es": "^4.18.1",
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/exported-related/DSTab.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import { describe, type ValidationMap } from '@elliemae/ds-props-helpers';\nimport { DSTabPropTypes } from '../react-desc-prop-types.js';\nimport type { DSTabT } from '../react-desc-prop-types.js';\n\n// const DSTab = (props: DSTabT.Props): JSX.Element => <React.Fragment {...props} />;\nconst DSTab = (props: DSTabT.Props) => props.children;\n\nDSTab.displayName = 'DSTab';\nconst DSTabWithSchema = describe(DSTab);\nDSTabWithSchema.propTypes = DSTabPropTypes as unknown as ValidationMap<DSTabT.Props>;\n\nexport { DSTab, DSTabWithSchema };\nexport default DSTab;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,8BAA6C;AAC7C,mCAA+B;AAI/B,MAAM,QAAQ,CAAC,UAAwB,MAAM;AAE7C,MAAM,cAAc;AACpB,MAAM,sBAAkB,kCAAS,KAAK;AACtC,gBAAgB,YAAY;AAG5B,IAAO,gBAAQ;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/exported-related/DSTab.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { describe, type ValidationMap } from '@elliemae/ds-props-helpers';\nimport { DSTabPropTypes } from '../react-desc-prop-types.js';\nimport type { DSTabT } from '../react-desc-prop-types.js';\n\n// const DSTab = (props: DSTabT.Props): JSX.Element => <React.Fragment {...props} />;\nconst DSTab = (props: DSTabT.Props) => props.children;\n\nDSTab.displayName = 'DSTab';\nconst DSTabWithSchema = describe(DSTab);\nDSTabWithSchema.propTypes = DSTabPropTypes as unknown as ValidationMap<DSTabT.Props>;\n\nexport { DSTab, DSTabWithSchema };\nexport default DSTab;\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,gBAAoC;AAC7C,SAAS,sBAAsB;AAI/B,MAAM,QAAQ,CAAC,UAAwB,MAAM;AAE7C,MAAM,cAAc;AACpB,MAAM,kBAAkB,SAAS,KAAK;AACtC,gBAAgB,YAAY;AAG5B,IAAO,gBAAQ;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|