@zealicsolutions/web-ui 0.2.69 → 0.2.70

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.
@@ -12,7 +12,7 @@ export declare const TextButton: import("styled-components").StyledComponent<"di
12
12
  children?: import("react").ReactNode;
13
13
  } & {
14
14
  withoutOpacityEffect: boolean;
15
- } & Pick<BaseButtonProps, "children" | "onClick" | "disabled" | "styles" | "buttonPadding" | "textColor" | "textSize" | "buttonFont"> & {
15
+ } & Pick<BaseButtonProps, "disabled" | "onClick" | "textSize" | "textColor" | "styles" | "children" | "buttonPadding" | "buttonFont"> & {
16
16
  buttonLink?: string | undefined;
17
17
  elementId?: string | undefined;
18
18
  }, "withoutOpacityEffect">;
@@ -13,24 +13,44 @@ export declare type TabTheme = 'light' | 'dark';
13
13
  export declare type TabProps<T = string, K = string> = {
14
14
  tabKey: T;
15
15
  text: string;
16
- disabled?: boolean;
17
- vertical?: boolean;
18
- isActive?: boolean;
19
- onClick?: (key: T) => void;
20
- options?: MenuItem<K>[];
21
- onOptionClick?: (optionKey: K) => void;
22
- tabTheme?: TabTheme;
23
- divider?: boolean;
24
- tabFont?: FontSizesTypes;
25
- textSize?: number;
26
- tabPadding?: SizesTypes | number;
27
- textColor?: ThemeColors | string;
28
- selectedTabTextColor?: ThemeColors | string;
29
- selectedTabIndicatorColor?: ThemeColors | string;
30
- styles?: StylesType;
31
- };
16
+ } & Partial<{
17
+ disabled: boolean;
18
+ vertical: boolean;
19
+ isActive: boolean;
20
+ onClick: (key: T) => void;
21
+ options: MenuItem<K>[];
22
+ onOptionClick: (optionKey: K) => void;
23
+ tabTheme: TabTheme;
24
+ divider: boolean;
25
+ tabFont: FontSizesTypes;
26
+ textSize: number;
27
+ tabPadding: SizesTypes | number;
28
+ textColor: ThemeColors | string;
29
+ selectedTabTextColor: ThemeColors | string;
30
+ selectedTabIndicatorColor: ThemeColors | string;
31
+ styles: StylesType;
32
+ }>;
32
33
  declare const ZealTab: <T extends string, K extends string>({ options, onClick, text, tabKey, vertical, onOptionClick, tabTheme, tabFont, tabPadding, selectedTabIndicatorColor, textSize, textColor, ...tabProps }: TabProps<T, K>, ref: React.ForwardedRef<TabElement>) => JSX.Element;
33
- export declare const Tab: <T, K>(props: TabProps<T, K> & {
34
+ export declare const Tab: <T, K>(props: {
35
+ tabKey: T;
36
+ text: string;
37
+ } & Partial<{
38
+ disabled: boolean;
39
+ vertical: boolean;
40
+ isActive: boolean;
41
+ onClick: (key: T) => void;
42
+ options: MenuItem<K>[];
43
+ onOptionClick: (optionKey: K) => void;
44
+ tabTheme: TabTheme;
45
+ divider: boolean;
46
+ tabFont: FontSizesTypes;
47
+ textSize: number;
48
+ tabPadding: SizesTypes | number;
49
+ textColor: ThemeColors | string;
50
+ selectedTabTextColor: ThemeColors | string;
51
+ selectedTabIndicatorColor: ThemeColors | string;
52
+ styles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
53
+ }> & {
34
54
  ref?: React.ForwardedRef<TabElement> | undefined;
35
55
  }) => ReturnType<typeof ZealTab>;
36
56
  export {};
@@ -3,7 +3,26 @@ import React from 'react';
3
3
  import { Tab as TabComponent } from './Tab';
4
4
  declare const _default: {
5
5
  title: string;
6
- component: <T, K>(props: import("atoms").TabProps<T, K> & {
6
+ component: <T, K>(props: {
7
+ tabKey: T;
8
+ text: string;
9
+ } & Partial<{
10
+ disabled: boolean;
11
+ vertical: boolean;
12
+ isActive: boolean;
13
+ onClick: (key: T) => void;
14
+ options: import("../..").MenuItem<K>[];
15
+ onOptionClick: (optionKey: K) => void;
16
+ tabTheme: import("atoms").TabTheme;
17
+ divider: boolean;
18
+ tabFont: import("theme").FontSizesTypes;
19
+ textSize: number;
20
+ tabPadding: number | import("theme").SizesTypes;
21
+ textColor: string;
22
+ selectedTabTextColor: string;
23
+ selectedTabIndicatorColor: string;
24
+ styles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<object, import("styled-components").DefaultTheme>>;
25
+ }> & {
7
26
  ref?: React.ForwardedRef<HTMLDivElement | null> | undefined;
8
27
  }) => JSX.Element;
9
28
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TabProps } from 'atoms/Tab/Tab';
3
2
  declare type TabContainerProps = Pick<TabProps, 'isActive' | 'disabled' | 'tabTheme' | 'selectedTabTextColor' | 'styles' | 'textColor'>;
4
3
  declare type TabTextProps = Pick<TabProps, 'tabTheme' | 'textSize' | 'textColor' | 'tabPadding'>;
@@ -11,7 +11,7 @@ export declare const Link: import("styled-components").StyledComponent<"div", im
11
11
  children?: import("react").ReactNode;
12
12
  } & {
13
13
  withoutOpacityEffect: boolean;
14
- } & Pick<import("atoms").BaseButtonProps, "children" | "onClick" | "disabled" | "styles" | "buttonPadding" | "textColor" | "textSize" | "buttonFont"> & {
14
+ } & Pick<import("atoms").BaseButtonProps, "disabled" | "onClick" | "textSize" | "textColor" | "styles" | "children" | "buttonPadding" | "buttonFont"> & {
15
15
  buttonLink?: string | undefined;
16
16
  elementId?: string | undefined;
17
17
  }, "withoutOpacityEffect">;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TabProps, TabTheme } from 'atoms';
3
2
  import { CSSProperties } from 'styled-components';
4
3
  import { FontSizesTypes, SizesTypes, ThemeColors } from 'theme/types';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { StoryFn } from '@storybook/react';
3
2
  import { TabGroupProps } from './TabGroup';
4
3
  declare const _default: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TabTheme } from 'atoms/Tab/Tab';
3
2
  import { SizesTypes, ThemeColors } from 'theme/types';
4
3
  export declare const TabsWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
package/dist/index.d.ts CHANGED
@@ -214,7 +214,7 @@ declare const TextButton: styled_components.StyledComponent<"div", styled_compon
214
214
  children?: React$1.ReactNode;
215
215
  } & {
216
216
  withoutOpacityEffect: boolean;
217
- } & Pick<BaseButtonProps, "children" | "onClick" | "disabled" | "styles" | "buttonPadding" | "textColor" | "textSize" | "buttonFont"> & {
217
+ } & Pick<BaseButtonProps, "disabled" | "onClick" | "textSize" | "textColor" | "styles" | "children" | "buttonPadding" | "buttonFont"> & {
218
218
  buttonLink?: string | undefined;
219
219
  elementId?: string | undefined;
220
220
  }, "withoutOpacityEffect">;
@@ -372,24 +372,44 @@ declare type TabTheme = 'light' | 'dark';
372
372
  declare type TabProps<T = string, K = string> = {
373
373
  tabKey: T;
374
374
  text: string;
375
- disabled?: boolean;
376
- vertical?: boolean;
377
- isActive?: boolean;
378
- onClick?: (key: T) => void;
379
- options?: MenuItem$1<K>[];
380
- onOptionClick?: (optionKey: K) => void;
381
- tabTheme?: TabTheme;
382
- divider?: boolean;
383
- tabFont?: FontSizesTypes$1;
384
- textSize?: number;
385
- tabPadding?: SizesTypes$1 | number;
386
- textColor?: ThemeColors$1 | string;
387
- selectedTabTextColor?: ThemeColors$1 | string;
388
- selectedTabIndicatorColor?: ThemeColors$1 | string;
389
- styles?: StylesType;
390
- };
375
+ } & Partial<{
376
+ disabled: boolean;
377
+ vertical: boolean;
378
+ isActive: boolean;
379
+ onClick: (key: T) => void;
380
+ options: MenuItem$1<K>[];
381
+ onOptionClick: (optionKey: K) => void;
382
+ tabTheme: TabTheme;
383
+ divider: boolean;
384
+ tabFont: FontSizesTypes$1;
385
+ textSize: number;
386
+ tabPadding: SizesTypes$1 | number;
387
+ textColor: ThemeColors$1 | string;
388
+ selectedTabTextColor: ThemeColors$1 | string;
389
+ selectedTabIndicatorColor: ThemeColors$1 | string;
390
+ styles: StylesType;
391
+ }>;
391
392
  declare const ZealTab: <T extends string, K extends string>({ options, onClick, text, tabKey, vertical, onOptionClick, tabTheme, tabFont, tabPadding, selectedTabIndicatorColor, textSize, textColor, ...tabProps }: TabProps<T, K>, ref: React__default.ForwardedRef<TabElement>) => JSX.Element;
392
- declare const Tab: <T, K>(props: TabProps<T, K> & {
393
+ declare const Tab: <T, K>(props: {
394
+ tabKey: T;
395
+ text: string;
396
+ } & Partial<{
397
+ disabled: boolean;
398
+ vertical: boolean;
399
+ isActive: boolean;
400
+ onClick: (key: T) => void;
401
+ options: MenuItem$1<K>[];
402
+ onOptionClick: (optionKey: K) => void;
403
+ tabTheme: TabTheme;
404
+ divider: boolean;
405
+ tabFont: FontSizesTypes$1;
406
+ textSize: number;
407
+ tabPadding: SizesTypes$1 | number;
408
+ textColor: ThemeColors$1 | string;
409
+ selectedTabTextColor: ThemeColors$1 | string;
410
+ selectedTabIndicatorColor: ThemeColors$1 | string;
411
+ styles: styled_components.FlattenInterpolation<styled_components.ThemedStyledProps<object, styled_components.DefaultTheme>>;
412
+ }> & {
393
413
  ref?: React__default.ForwardedRef<TabElement> | undefined;
394
414
  }) => ReturnType<typeof ZealTab>;
395
415
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zealicsolutions/web-ui",
3
- "version": "0.2.69",
3
+ "version": "0.2.70",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/Zealic_Solutions/zeal-ui-web.git"