@rpg-engine/long-bow 0.7.27 → 0.7.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.
@@ -1,5 +1,5 @@
1
1
  import { Meta } from '@storybook/react';
2
- import { TableTabProps } from '../components/TableTab/TableTab';
2
+ import { TableTabProps } from '../components/InternalTabs/InternalTabs';
3
3
  declare const meta: Meta;
4
4
  export default meta;
5
5
  export declare const Default: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, TableTabProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpg-engine/long-bow",
3
- "version": "0.7.27",
3
+ "version": "0.7.29",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -1,7 +1,7 @@
1
1
  import { debounce } from 'lodash';
2
2
  import React, { useCallback, useState } from 'react';
3
3
  import styled from 'styled-components';
4
- import { TableTab, UserActionLink } from '../..';
4
+ import { InternalTabs, UserActionLink } from '../..';
5
5
  import { uiColors } from '../../constants/uiColors';
6
6
  import { uiFonts } from '../../constants/uiFonts';
7
7
  import { IFriend } from './FriendList';
@@ -95,7 +95,7 @@ export const SearchFriend: React.FC<ISearchFriendProps> = ({
95
95
 
96
96
  return (
97
97
  <Container>
98
- <TableTab
98
+ <InternalTabs
99
99
  tabs={tabs}
100
100
  activeTextColor="#000"
101
101
  inactiveColor="#777"
@@ -16,7 +16,7 @@ export interface TableTabProps {
16
16
  hoverColor?: string;
17
17
  }
18
18
 
19
- export const TableTab: React.FC<TableTabProps> = ({
19
+ export const InternalTabs: React.FC<TableTabProps> = ({
20
20
  tabs,
21
21
  activeColor = '#fef08a',
22
22
  activeTextColor = '#000000',
@@ -29,7 +29,7 @@ export interface ITabsContainer {
29
29
  imgSrc?: string;
30
30
  imgWidth?: string;
31
31
  };
32
- isDraggableModal: boolean;
32
+ isDraggableModal?: boolean;
33
33
  }
34
34
 
35
35
  export const TabsContainer: React.FC<ITabsContainer> = ({
package/src/index.tsx CHANGED
@@ -17,6 +17,7 @@ export * from './components/HistoryDialog';
17
17
  export * from './components/ImageCarousel/ImageCarousel';
18
18
  export * from './components/ImageCarousel/SimpleImageCarousel';
19
19
  export * from './components/Input';
20
+ export * from './components/InternalTabs/InternalTabs';
20
21
  export { ErrorBoundary } from './components/Item/Inventory/ErrorBoundary';
21
22
  export * from './components/Item/Inventory/ItemContainer';
22
23
  export * from './components/Item/Inventory/ItemSlot';
@@ -45,7 +46,6 @@ export * from './components/SkillProgressBar';
45
46
  export * from './components/SkillsContainer';
46
47
  export * from './components/Spellbook/Spellbook';
47
48
  export * from './components/Stepper';
48
- export * from './components/TableTab/TableTab';
49
49
  export * from './components/TextArea';
50
50
  export * from './components/TimeWidget/TimeWidget';
51
51
  export * from './components/TradingMenu/TradingMenu';
@@ -1,18 +1,21 @@
1
1
  import { Meta, Story } from '@storybook/react';
2
2
  import React from 'react';
3
3
  import { RPGUIRoot } from '..';
4
- import { TableTab, TableTabProps } from '../components/TableTab/TableTab';
4
+ import {
5
+ InternalTabs,
6
+ TableTabProps,
7
+ } from '../components/InternalTabs/InternalTabs';
5
8
 
6
9
  const meta: Meta = {
7
- title: 'TableTab',
8
- component: TableTab,
10
+ title: 'InternalTabs',
11
+ component: InternalTabs,
9
12
  };
10
13
 
11
14
  export default meta;
12
15
 
13
16
  const Template: Story<TableTabProps> = args => (
14
17
  <RPGUIRoot>
15
- <TableTab {...args} />
18
+ <InternalTabs {...args} />
16
19
  </RPGUIRoot>
17
20
  );
18
21