@zealicsolutions/web-ui 0.2.66 → 0.2.67

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.
Files changed (32) hide show
  1. package/dist/cjs/index.js +3 -3
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/src/atoms/Buttons/Button.d.ts +1 -3
  4. package/dist/cjs/src/atoms/Buttons/Button.stories.d.ts +1 -1
  5. package/dist/cjs/src/atoms/Buttons/TextButton.d.ts +5 -3
  6. package/dist/cjs/src/{molecules → atoms}/Tab/Tab.d.ts +2 -2
  7. package/dist/cjs/src/atoms/Tab/Tab.stories.d.ts +12 -0
  8. package/dist/cjs/src/{molecules → atoms}/Tab/styles.d.ts +1 -1
  9. package/dist/{esm/src/molecules → cjs/src/atoms}/Tab/utils.d.ts +1 -1
  10. package/dist/cjs/src/atoms/index.d.ts +1 -0
  11. package/dist/cjs/src/molecules/Columns/styles.d.ts +4 -2
  12. package/dist/cjs/src/molecules/TabGroup/TabGroup.d.ts +2 -2
  13. package/dist/cjs/src/molecules/TabGroup/TabGroup.stories.d.ts +2 -2
  14. package/dist/cjs/src/molecules/TabGroup/styles.d.ts +1 -1
  15. package/dist/cjs/src/molecules/index.d.ts +0 -1
  16. package/dist/esm/index.js +3 -3
  17. package/dist/esm/index.js.map +1 -1
  18. package/dist/esm/src/atoms/Buttons/Button.d.ts +1 -3
  19. package/dist/esm/src/atoms/Buttons/Button.stories.d.ts +1 -1
  20. package/dist/esm/src/atoms/Buttons/TextButton.d.ts +5 -3
  21. package/dist/esm/src/{molecules → atoms}/Tab/Tab.d.ts +2 -2
  22. package/dist/esm/src/atoms/Tab/Tab.stories.d.ts +12 -0
  23. package/dist/esm/src/{molecules → atoms}/Tab/styles.d.ts +1 -1
  24. package/dist/{cjs/src/molecules → esm/src/atoms}/Tab/utils.d.ts +1 -1
  25. package/dist/esm/src/atoms/index.d.ts +1 -0
  26. package/dist/esm/src/molecules/Columns/styles.d.ts +4 -2
  27. package/dist/esm/src/molecules/TabGroup/TabGroup.d.ts +2 -2
  28. package/dist/esm/src/molecules/TabGroup/TabGroup.stories.d.ts +2 -2
  29. package/dist/esm/src/molecules/TabGroup/styles.d.ts +1 -1
  30. package/dist/esm/src/molecules/index.d.ts +0 -1
  31. package/dist/index.d.ts +44 -44
  32. package/package.json +1 -1
@@ -8,8 +8,6 @@ export declare type BaseButtonProps = PropsWithChildren<{
8
8
  disabled?: boolean;
9
9
  fullWidth?: boolean;
10
10
  size?: 'medium' | 'small';
11
- activeOpacity?: number;
12
- withoutOpacityEffect?: boolean;
13
11
  }>;
14
12
  export declare type ButtonProps = BaseButtonProps & {
15
13
  fullWidth?: boolean;
@@ -21,4 +19,4 @@ export declare type ButtonProps = BaseButtonProps & {
21
19
  containerStyle?: CSSProperties;
22
20
  buttonStyle?: CSSProperties;
23
21
  };
24
- export declare const Button: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, activeOpacity, withoutOpacityEffect, buttonStyle, size, }: ButtonProps) => JSX.Element | null;
22
+ export declare const Button: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, buttonStyle, size, }: ButtonProps) => JSX.Element | null;
@@ -6,7 +6,7 @@ import { IconButton as IconButtonComponent } from './IconButton';
6
6
  import { TouchableOpacityProps } from './TouchableOpacity';
7
7
  declare const _default: {
8
8
  title: string;
9
- component: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, activeOpacity, withoutOpacityEffect, buttonStyle, size, }: import("./Button").ButtonProps) => JSX.Element | null;
9
+ component: ({ text: textProp, onClick, loading, disabled, variant, isRichText, fullWidth, elementId, link, containerStyle, children, buttonStyle, size, }: import("./Button").ButtonProps) => JSX.Element | null;
10
10
  };
11
11
  export default _default;
12
12
  export declare const Button: ComponentStory<typeof ButtonComponent>;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { BaseButtonProps } from './Button';
3
- export declare type TextButtonProps = Pick<BaseButtonProps, 'disabled' | 'activeOpacity' | 'withoutOpacityEffect' | 'onClick' | 'children'> & {
3
+ export declare type TextButtonProps = Pick<BaseButtonProps, 'disabled' | 'onClick' | 'children'> & {
4
4
  buttonLink?: string;
5
5
  elementId?: string;
6
6
  };
@@ -10,7 +10,9 @@ export declare const TextButton: import("styled-components").StyledComponent<"di
10
10
  disabled?: boolean | undefined;
11
11
  } & {
12
12
  children?: import("react").ReactNode;
13
- } & Pick<BaseButtonProps, "children" | "onClick" | "disabled" | "activeOpacity" | "withoutOpacityEffect"> & {
13
+ } & {
14
+ withoutOpacityEffect: boolean;
15
+ } & Pick<BaseButtonProps, "children" | "onClick" | "disabled"> & {
14
16
  buttonLink?: string | undefined;
15
17
  elementId?: string | undefined;
16
- }, never>;
18
+ }, "withoutOpacityEffect">;
@@ -1,7 +1,7 @@
1
+ import { MenuItem } from 'molecules';
1
2
  import React from 'react';
2
3
  import { FontSizesTypes, SizesTypes, ThemeColors } from 'theme';
3
4
  import { StylesType } from 'typescript';
4
- import { MenuItem } from '..';
5
5
  export declare type TabOption<T = string> = {
6
6
  menuText: string;
7
7
  menuKey: T;
@@ -22,7 +22,7 @@ export declare type TabProps<T = string, K = string> = {
22
22
  tabTheme?: TabTheme;
23
23
  divider?: boolean;
24
24
  tabFont?: FontSizesTypes;
25
- textSize?: SizesTypes | number;
25
+ textSize?: number;
26
26
  tabPadding?: SizesTypes | number;
27
27
  textColor?: ThemeColors | string;
28
28
  selectedTabTextColor?: ThemeColors | string;
@@ -0,0 +1,12 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ import React from 'react';
3
+ import { Tab as TabComponent } from './Tab';
4
+ declare const _default: {
5
+ title: string;
6
+ component: <T, K>(props: import("atoms").TabProps<T, K> & {
7
+ ref?: React.ForwardedRef<HTMLDivElement | null> | undefined;
8
+ }) => JSX.Element;
9
+ };
10
+ export default _default;
11
+ declare type Story = StoryObj<typeof TabComponent>;
12
+ export declare const Tab: Story;
@@ -1,4 +1,4 @@
1
- import { TabProps } from './Tab';
1
+ import { TabProps } from 'atoms/Tab/Tab';
2
2
  declare type TabContainerProps = Pick<TabProps, 'isActive' | 'disabled' | 'tabTheme' | 'selectedTabTextColor' | 'styles' | 'textColor'>;
3
3
  declare type TabTextProps = Pick<TabProps, 'tabTheme' | 'textSize' | 'textColor' | 'tabPadding'>;
4
4
  export declare const TabText: import("styled-components").StyledComponent<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").BoxTypeMap<{}, "div">>, import("styled-components").DefaultTheme, import("atoms").TextWrapperProps & TabTextProps, never>;
@@ -1,4 +1,4 @@
1
- import { TabTheme } from 'molecules/Tab/Tab';
1
+ import { TabTheme } from 'atoms/Tab/Tab';
2
2
  import { ThemeColors } from 'theme';
3
3
  export declare const getColorForCaretDownIcon: (color?: ThemeColors | string, tabTheme?: TabTheme, disabled?: boolean) => string;
4
4
  export declare const getSelectionIndicatorColor: (selectedTabIndicatorColor?: ThemeColors | string, isActiveTab?: boolean, tabTheme?: TabTheme) => string;
@@ -23,3 +23,4 @@ export * from './RadioButtons/RadioButtons';
23
23
  export * from './Circle/Circle';
24
24
  export * from './CircularIndicator/CircularIndicator';
25
25
  export * from './Buttons/IconButton';
26
+ export * from './Tab/Tab';
@@ -9,10 +9,12 @@ export declare const Link: import("styled-components").StyledComponent<"div", im
9
9
  disabled?: boolean | undefined;
10
10
  } & {
11
11
  children?: import("react").ReactNode;
12
- } & Pick<import("atoms").BaseButtonProps, "children" | "onClick" | "disabled" | "activeOpacity" | "withoutOpacityEffect"> & {
12
+ } & {
13
+ withoutOpacityEffect: boolean;
14
+ } & Pick<import("atoms").BaseButtonProps, "children" | "onClick" | "disabled"> & {
13
15
  buttonLink?: string | undefined;
14
16
  elementId?: string | undefined;
15
- }, never>;
17
+ }, "withoutOpacityEffect">;
16
18
  export declare const ColumnCardWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
17
19
  isMobile: boolean;
18
20
  }, never>;
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
+ import { TabProps, TabTheme } from 'atoms';
2
3
  import { CSSProperties } from 'styled-components';
3
4
  import { FontSizesTypes, SizesTypes, ThemeColors } from 'theme/types';
4
5
  import { StylesType } from 'typescript';
5
- import { TabProps, TabTheme } from '../Tab/Tab';
6
6
  export declare type TabGroupProps<T = string, K = string> = {
7
7
  tabs: Pick<TabProps<T, K>, 'text' | 'tabKey' | 'disabled' | 'options' | 'divider'>[];
8
8
  activeTabKey: T;
@@ -12,7 +12,7 @@ export declare type TabGroupProps<T = string, K = string> = {
12
12
  vertical?: boolean;
13
13
  tabTheme?: TabTheme;
14
14
  tabFont?: FontSizesTypes;
15
- textSize?: SizesTypes | number;
15
+ textSize?: number;
16
16
  tabPadding?: SizesTypes | number;
17
17
  tabSpacing?: SizesTypes;
18
18
  textColor?: ThemeColors | string;
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
- import type { ComponentStory } from '@storybook/react';
2
+ import type { StoryFn } from '@storybook/react';
3
3
  import { TabGroup as TabGroupComponent } from './TabGroup';
4
4
  declare const _default: {
5
5
  title: string;
6
6
  component: <T extends string, K extends string>({ tabs, vertical, activeTabKey, onTabChange, tabTheme, containerStyle, containerProps, tabSpacing, ...props }: import("./TabGroup").TabGroupProps<T, K>) => JSX.Element;
7
7
  };
8
8
  export default _default;
9
- export declare const TabGroup: ComponentStory<typeof TabGroupComponent>;
9
+ export declare const TabGroup: StoryFn<typeof TabGroupComponent>;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { TabTheme } from 'molecules/Tab/Tab';
2
+ import { TabTheme } from 'atoms/Tab/Tab';
3
3
  import { SizesTypes, ThemeColors } from 'theme/types';
4
4
  export declare const TabsWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
5
5
  spacing: SizesTypes;
@@ -10,7 +10,6 @@ export * from './Drawer/Drawer';
10
10
  export * from './Columns/Columns';
11
11
  export * from './MenuItems/MenuItems';
12
12
  export * from './AvatarDropdown/AvatarDropdown';
13
- export * from './Tab/Tab';
14
13
  export * from './TabGroup/TabGroup';
15
14
  export * from './FieldSection/FieldSection';
16
15
  export * from './MenuNavigation/MenuNavigation';