chop-logic-components 0.8.0 → 0.9.0
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/components/containers/tabs/Tabs.d.ts +5 -0
- package/dist/components/containers/tabs/Tabs.styled.d.ts +14 -0
- package/dist/components/containers/tabs/__docs__/Tabs.stories.d.ts +8 -0
- package/dist/components/containers/tabs/__docs__/TabsExample.d.ts +2 -0
- package/dist/components/containers/tabs/__tests__/TabList.test.d.ts +1 -0
- package/dist/components/containers/tabs/__tests__/Tabs.test.d.ts +1 -0
- package/dist/components/containers/tabs/elements/TabButton.d.ts +14 -0
- package/dist/components/containers/tabs/elements/TabContent.d.ts +9 -0
- package/dist/components/containers/tabs/elements/TabList.d.ts +13 -0
- package/dist/components/containers/tabs/types.d.ts +13 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/index.cjs.js +287 -209
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +5754 -5597
- package/dist/index.es.js.map +1 -1
- package/package.json +10 -10
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ChopLogicTabsMode } from './types';
|
|
2
|
+
|
|
3
|
+
export declare const StyledTabButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
4
|
+
$selected: boolean;
|
|
5
|
+
$disabled: boolean;
|
|
6
|
+
$mode: ChopLogicTabsMode;
|
|
7
|
+
}>> & string;
|
|
8
|
+
export declare const StyledTabContent: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
9
|
+
export declare const StyledTabList: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
10
|
+
$mode: ChopLogicTabsMode;
|
|
11
|
+
}>> & string;
|
|
12
|
+
export declare const StyledTabsContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
13
|
+
$mode: ChopLogicTabsMode;
|
|
14
|
+
}>> & string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { default as ChopLogicTabs } from '../Tabs';
|
|
3
|
+
|
|
4
|
+
declare const meta: Meta<typeof ChopLogicTabs>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof ChopLogicTabs>;
|
|
7
|
+
export declare const Default: Story;
|
|
8
|
+
export declare const VerticalTabs: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ChopLogicTabsMode } from '../types';
|
|
3
|
+
|
|
4
|
+
type ChopLogicTabButtonProps = {
|
|
5
|
+
title: string;
|
|
6
|
+
tabId: string;
|
|
7
|
+
onTabSelect: (id: string) => void;
|
|
8
|
+
tabPanelId: string;
|
|
9
|
+
isSelected: boolean;
|
|
10
|
+
mode: ChopLogicTabsMode;
|
|
11
|
+
isDisabled?: boolean;
|
|
12
|
+
};
|
|
13
|
+
declare const ChopLogicTabButton: React.FC<ChopLogicTabButtonProps>;
|
|
14
|
+
export default ChopLogicTabButton;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ChopLogicTabItem } from '../types';
|
|
3
|
+
|
|
4
|
+
type ChopLogicTabContentProps = {
|
|
5
|
+
tabs: ChopLogicTabItem[];
|
|
6
|
+
selectedTabId: string;
|
|
7
|
+
};
|
|
8
|
+
declare const ChopLogicTabContent: React.FC<ChopLogicTabContentProps>;
|
|
9
|
+
export default ChopLogicTabContent;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ChopLogicTabItem, ChopLogicTabsMode } from '../types';
|
|
3
|
+
|
|
4
|
+
type ChopLogicTabListProps = {
|
|
5
|
+
tabs: ChopLogicTabItem[];
|
|
6
|
+
tabIds: string[];
|
|
7
|
+
onTabSelect: (id: string) => void;
|
|
8
|
+
selectedTabId: string;
|
|
9
|
+
tabPanelIds: string[];
|
|
10
|
+
mode: ChopLogicTabsMode;
|
|
11
|
+
};
|
|
12
|
+
declare const ChopLogicTabList: React.FC<ChopLogicTabListProps>;
|
|
13
|
+
export default ChopLogicTabList;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type ChopLogicTabsProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
3
|
+
tabs: ChopLogicTabItem[];
|
|
4
|
+
defaultTabId?: string;
|
|
5
|
+
mode?: ChopLogicTabsMode;
|
|
6
|
+
};
|
|
7
|
+
export type ChopLogicTabItem = {
|
|
8
|
+
content: React.ReactElement;
|
|
9
|
+
title: string;
|
|
10
|
+
id: string;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
};
|
|
13
|
+
export type ChopLogicTabsMode = 'vertical' | 'horizontal';
|
|
@@ -6,3 +6,4 @@ export { default as ChopLogicTextInput } from './inputs/text/TextInput';
|
|
|
6
6
|
export { default as ChopLogicAlert } from './modals/alert/Alert';
|
|
7
7
|
export { default as ChopLogicDialog } from './modals/dialog/Dialog';
|
|
8
8
|
export { default as ChopLogicTooltip } from './modals/tooltip/Tooltip';
|
|
9
|
+
export { default as ChopLogicTabs } from './containers/tabs/Tabs';
|