@ssa-ui-kit/core 0.0.25-alpha → 0.0.27-alpha

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 (148) hide show
  1. package/dist/components/AccordionGroup/AccordionContext.d.ts +3 -3
  2. package/dist/components/AccordionGroup/types.d.ts +1 -1
  3. package/dist/components/Badge/helpers.d.ts +2 -2
  4. package/dist/components/Button/Button.d.ts +2 -2
  5. package/dist/components/Button/ButtonText.d.ts +6 -6
  6. package/dist/components/Button/fixtures.d.ts +6 -6
  7. package/dist/components/Button/helpers.d.ts +2 -2
  8. package/dist/components/Button/types.d.ts +5 -5
  9. package/dist/components/Checkbox/Checkbox.d.ts +2 -2
  10. package/dist/components/Checkbox/CheckboxBase.d.ts +2 -2
  11. package/dist/components/Checkbox/types.d.ts +2 -2
  12. package/dist/components/Dropdown/Dropdown.d.ts +3 -3
  13. package/dist/components/Dropdown/types.d.ts +3 -3
  14. package/dist/components/DropdownOption/DropdownOption.d.ts +2 -2
  15. package/dist/components/DropdownOptions/DropdownOptions.d.ts +2 -2
  16. package/dist/components/DropdownOptions/index.d.ts +1 -1
  17. package/dist/components/DropdownOptions/types.d.ts +2 -2
  18. package/dist/components/DropdownToggle/DropdownToggle.d.ts +3 -3
  19. package/dist/components/DropdownToggle/types.d.ts +1 -1
  20. package/dist/components/FormCheckbox/FormCheckbox.d.ts +2 -2
  21. package/dist/components/FormCheckbox/types.d.ts +2 -2
  22. package/dist/components/FormHelperText/FormHelperText.d.ts +2 -2
  23. package/dist/components/FormHelperText/types.d.ts +1 -1
  24. package/dist/components/FormRadioGroup/FormRadioGroup.d.ts +2 -2
  25. package/dist/components/FormRadioGroup/types.d.ts +2 -2
  26. package/dist/components/Icon/types.d.ts +2 -2
  27. package/dist/components/LargeTab/LargeTab.d.ts +2 -2
  28. package/dist/components/LargeTab/LargeTabBase.d.ts +2 -2
  29. package/dist/components/MultipleDropdown/MultipleDropdown.context.d.ts +3 -3
  30. package/dist/components/MultipleDropdown/MultipleDropdown.d.ts +3 -3
  31. package/dist/components/MultipleDropdown/types.d.ts +3 -3
  32. package/dist/components/MultipleDropdown/utils.d.ts +2 -2
  33. package/dist/components/MultipleDropdownOptions/MultipleDropdownOptions.d.ts +2 -2
  34. package/dist/components/MultipleDropdownOptions/index.d.ts +1 -1
  35. package/dist/components/MultipleDropdownOptions/types.d.ts +2 -2
  36. package/dist/components/Popover/PopoverTrigger.d.ts +2 -2
  37. package/dist/components/Radio/Radio.d.ts +2 -2
  38. package/dist/components/Radio/types.d.ts +1 -1
  39. package/dist/components/RadioGroup/RadioGroup.d.ts +2 -2
  40. package/dist/components/RadioGroup/types.d.ts +3 -3
  41. package/dist/components/ResponsiveImage/ResponsiveImage.d.ts +2 -2
  42. package/dist/components/ResponsiveImage/types.d.ts +1 -1
  43. package/dist/components/Switch/Switch.d.ts +2 -2
  44. package/dist/components/Switch/SwitchContext.d.ts +3 -3
  45. package/dist/components/Switch/types.d.ts +1 -1
  46. package/dist/components/Tab/Tab.d.ts +2 -2
  47. package/dist/components/Tab/TabBase.d.ts +2 -2
  48. package/dist/components/TabBar/TabBar.d.ts +2 -2
  49. package/dist/components/TabBar/TabBarContext.d.ts +4 -4
  50. package/dist/components/TabBar/stories/helpers.d.ts +2 -2
  51. package/dist/components/TabBar/types.d.ts +9 -11
  52. package/dist/components/Tooltip/ProgressChartTooltip.d.ts +2 -2
  53. package/dist/components/Tooltip/Tooltip.d.ts +2 -2
  54. package/dist/components/Tooltip/types.d.ts +11 -11
  55. package/dist/components/Tooltip/utils.d.ts +2 -2
  56. package/dist/components/TooltipContent/TooltipContent.d.ts +2 -2
  57. package/dist/components/TooltipTrigger/TooltipTrigger.d.ts +2 -2
  58. package/dist/components/WithVisibleLG/WithVisibleLG.d.ts +10 -0
  59. package/dist/components/WithVisibleLG/index.d.ts +1 -0
  60. package/dist/components/WithVisibleMD/WithVisibleMD.d.ts +6 -0
  61. package/dist/components/WithVisibleMD/index.d.ts +1 -0
  62. package/dist/components/WithVisibleSM/WithVisibleSM.d.ts +6 -0
  63. package/dist/components/WithVisibleSM/index.d.ts +1 -0
  64. package/dist/components/WithVisibleUpToLG/WithVisibleUpToLG.d.ts +6 -0
  65. package/dist/components/WithVisibleUpToLG/index.d.ts +1 -0
  66. package/dist/components/index.d.ts +5 -1
  67. package/dist/index.js +1 -1
  68. package/dist/index.js.map +1 -1
  69. package/package.json +2 -2
  70. package/src/components/AccordionGroup/AccordionContext.tsx +4 -4
  71. package/src/components/AccordionGroup/types.ts +1 -1
  72. package/src/components/Badge/helpers.ts +18 -16
  73. package/src/components/Button/Button.spec.tsx +8 -8
  74. package/src/components/Button/Button.tsx +3 -3
  75. package/src/components/Button/ButtonText.tsx +6 -6
  76. package/src/components/Button/fixtures.ts +14 -14
  77. package/src/components/Button/helpers.ts +2 -2
  78. package/src/components/Button/types.ts +5 -5
  79. package/src/components/Checkbox/Checkbox.spec.tsx +2 -2
  80. package/src/components/Checkbox/Checkbox.stories.tsx +2 -2
  81. package/src/components/Checkbox/Checkbox.tsx +2 -2
  82. package/src/components/Checkbox/CheckboxBase.tsx +2 -2
  83. package/src/components/Checkbox/types.ts +2 -2
  84. package/src/components/Dropdown/Dropdown.stories.tsx +3 -3
  85. package/src/components/Dropdown/Dropdown.tsx +4 -4
  86. package/src/components/Dropdown/types.ts +4 -3
  87. package/src/components/DropdownOption/DropdownOption.tsx +2 -2
  88. package/src/components/DropdownOptions/DropdownOptions.tsx +2 -2
  89. package/src/components/DropdownOptions/index.ts +1 -1
  90. package/src/components/DropdownOptions/types.ts +2 -2
  91. package/src/components/DropdownToggle/DropdownToggle.tsx +3 -3
  92. package/src/components/DropdownToggle/types.ts +1 -1
  93. package/src/components/FormCheckbox/FormCheckbox.tsx +2 -2
  94. package/src/components/FormCheckbox/types.ts +3 -3
  95. package/src/components/FormHelperText/FormHelperText.tsx +2 -2
  96. package/src/components/FormHelperText/types.ts +1 -1
  97. package/src/components/FormRadioGroup/FormRadioGroup.stories.tsx +2 -2
  98. package/src/components/FormRadioGroup/FormRadioGroup.tsx +2 -2
  99. package/src/components/FormRadioGroup/types.ts +3 -3
  100. package/src/components/Icon/Icons.spec.tsx +6 -6
  101. package/src/components/Icon/icons/index.tsx +3 -3
  102. package/src/components/Icon/types.ts +2 -2
  103. package/src/components/LargeTab/LargeTab.tsx +2 -2
  104. package/src/components/LargeTab/LargeTabBase.tsx +2 -2
  105. package/src/components/MultipleDropdown/MultipleDropdown.context.ts +3 -3
  106. package/src/components/MultipleDropdown/MultipleDropdown.tsx +7 -7
  107. package/src/components/MultipleDropdown/types.ts +3 -3
  108. package/src/components/MultipleDropdown/utils.ts +2 -2
  109. package/src/components/MultipleDropdownOptions/MultipleDropdownOptions.tsx +2 -2
  110. package/src/components/MultipleDropdownOptions/index.ts +1 -1
  111. package/src/components/MultipleDropdownOptions/types.ts +2 -2
  112. package/src/components/Popover/PopoverTrigger.tsx +3 -3
  113. package/src/components/Radio/Radio.tsx +2 -2
  114. package/src/components/Radio/types.ts +1 -1
  115. package/src/components/RadioGroup/RadioGroup.tsx +2 -2
  116. package/src/components/RadioGroup/types.ts +3 -3
  117. package/src/components/ResponsiveImage/ResponsiveImage.tsx +2 -2
  118. package/src/components/ResponsiveImage/types.ts +1 -1
  119. package/src/components/Switch/Switch.tsx +2 -2
  120. package/src/components/Switch/SwitchContext.tsx +2 -2
  121. package/src/components/Switch/types.ts +1 -1
  122. package/src/components/Tab/Tab.tsx +2 -2
  123. package/src/components/Tab/TabBase.tsx +2 -3
  124. package/src/components/TabBar/TabBar.spec.tsx +5 -5
  125. package/src/components/TabBar/TabBar.tsx +2 -2
  126. package/src/components/TabBar/TabBarContext.tsx +6 -6
  127. package/src/components/TabBar/stories/helpers.tsx +4 -4
  128. package/src/components/TabBar/types.ts +9 -12
  129. package/src/components/Tooltip/ProgressChartTooltip.tsx +2 -2
  130. package/src/components/Tooltip/Tooltip.tsx +2 -2
  131. package/src/components/Tooltip/types.ts +11 -11
  132. package/src/components/Tooltip/utils.tsx +2 -2
  133. package/src/components/TooltipContent/TooltipContent.tsx +2 -2
  134. package/src/components/TooltipTrigger/TooltipTrigger.tsx +2 -2
  135. package/src/components/WithVisibleLG/WithVisibleLG.spec.tsx +27 -0
  136. package/src/components/WithVisibleLG/WithVisibleLG.tsx +22 -0
  137. package/src/components/WithVisibleLG/index.ts +1 -0
  138. package/src/components/WithVisibleMD/WithVisibleMD.spec.tsx +27 -0
  139. package/src/components/WithVisibleMD/WithVisibleMD.tsx +23 -0
  140. package/src/components/WithVisibleMD/index.ts +1 -0
  141. package/src/components/WithVisibleSM/WithVisibleSM.spec.tsx +27 -0
  142. package/src/components/WithVisibleSM/WithVisibleSM.tsx +22 -0
  143. package/src/components/WithVisibleSM/index.ts +1 -0
  144. package/src/components/WithVisibleUpToLG/WithVisibleUpToLG.spec.tsx +27 -0
  145. package/src/components/WithVisibleUpToLG/WithVisibleUpToLG.tsx +24 -0
  146. package/src/components/WithVisibleUpToLG/index.ts +1 -0
  147. package/src/components/index.ts +5 -1
  148. package/tsbuildcache +1 -1
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
- import { IAccordionGroupContext } from './types';
3
- export declare const AccordionGroupContext: import("react").Context<IAccordionGroupContext>;
4
- export declare const useAccordionGroupContext: () => IAccordionGroupContext;
2
+ import { AccordionGroupContextProps } from './types';
3
+ export declare const AccordionGroupContext: import("react").Context<AccordionGroupContextProps>;
4
+ export declare const useAccordionGroupContext: () => AccordionGroupContextProps;
5
5
  export declare const AccordionGroupContextProvider: ({ children, }: {
6
6
  children: React.ReactNode;
7
7
  }) => import("react/jsx-runtime").JSX.Element;
@@ -38,7 +38,7 @@ export interface AccordionViewProps extends AccordionProps {
38
38
  children?: React.ReactNode;
39
39
  contentProps?: Record<string, any>;
40
40
  }
41
- export interface IAccordionGroupContext {
41
+ export interface AccordionGroupContextProps {
42
42
  openedAccordions: Array<AccordionProps> | [];
43
43
  stayOpen: boolean;
44
44
  setOpenedAccordions: (accordions: Array<AccordionProps>) => void;
@@ -1,10 +1,10 @@
1
1
  /// <reference types="react" />
2
- import { IMapIcons } from '../Icon/types';
2
+ import { MapIconsType } from '../Icon/types';
3
3
  export declare const sizes: Array<keyof MainSizes>;
4
4
  export declare const colors: Array<keyof MainColors>;
5
5
  export declare const icons: Array<{
6
6
  color: keyof MainColors;
7
- icon: keyof IMapIcons;
7
+ icon: keyof MapIconsType;
8
8
  }>;
9
9
  export declare const HeaderTitle: import("@emotion/styled").StyledComponent<{
10
10
  theme?: import("@emotion/react").Theme | undefined;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { IButtonProps } from './types';
3
- export declare const Button: import("react").ForwardRefExoticComponent<IButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
2
+ import { ButtonProps } from './types';
3
+ export declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
4
4
  export default Button;
@@ -1,6 +1,6 @@
1
- import { IColoredButtonTextProps, IButtonTextProps } from './types';
2
- export declare const ButtonText: ({ text, className, testId }: IButtonTextProps) => import("react/jsx-runtime").JSX.Element;
3
- export declare const WhiteButtonText: ({ text }: IColoredButtonTextProps) => import("react/jsx-runtime").JSX.Element;
4
- export declare const GreyButtonText: ({ text }: IColoredButtonTextProps) => import("react/jsx-runtime").JSX.Element;
5
- export declare const GreyLightButtonText: ({ text }: IColoredButtonTextProps) => import("react/jsx-runtime").JSX.Element;
6
- export declare const DisabledButtonText: ({ text }: IColoredButtonTextProps) => import("react/jsx-runtime").JSX.Element;
1
+ import { ColoredButtonTextProps, ButtonTextProps } from './types';
2
+ export declare const ButtonText: ({ text, className, testId }: ButtonTextProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const WhiteButtonText: ({ text }: ColoredButtonTextProps) => import("react/jsx-runtime").JSX.Element;
4
+ export declare const GreyButtonText: ({ text }: ColoredButtonTextProps) => import("react/jsx-runtime").JSX.Element;
5
+ export declare const GreyLightButtonText: ({ text }: ColoredButtonTextProps) => import("react/jsx-runtime").JSX.Element;
6
+ export declare const DisabledButtonText: ({ text }: ColoredButtonTextProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,14 +1,14 @@
1
1
  /// <reference types="react" />
2
2
  import Icon from '../Icon';
3
- import { IButtonProps } from './types';
4
- export type TestPropsType = Omit<IButtonProps, 'isDisabled' | 'startIcon' | 'endIcon'> & {
3
+ import { ButtonProps } from './types';
4
+ export type TestPropsType = Omit<ButtonProps, 'isDisabled' | 'startIcon' | 'endIcon'> & {
5
5
  disabled?: boolean;
6
6
  startIcon?: React.ComponentProps<typeof Icon>['name'];
7
7
  endIcon?: React.ComponentProps<typeof Icon>['name'];
8
8
  };
9
9
  export declare const primaryBtnSpecs: TestPropsType[];
10
10
  export declare const secondaryBtnSpecs: {
11
- variant: keyof import("./types").IButtonVariants | "custom" | undefined;
11
+ variant: keyof import("./types").ButtonVariants | "custom" | undefined;
12
12
  text?: string | undefined;
13
13
  size?: keyof MainSizes | undefined;
14
14
  'aria-labelledby'?: string | undefined;
@@ -27,7 +27,7 @@ export declare const secondaryBtnSpecs: {
27
27
  endIcon?: "filter" | "circle" | "search" | "visible" | "diet" | "calendar" | "home" | "stats" | "sleep" | "trainings" | "measurements" | "settings" | "plus" | "minus" | "more" | "more-vertical" | "check" | "check-circle" | "cross" | "user" | "union" | "notification" | "information" | "warning" | "attention" | "invisible" | "log-out" | "log-in" | "email" | "lock" | "carrot-down" | "carrot-up" | "carrot-left" | "carrot-right" | "radio-on" | "arrow-up" | "arrow-down" | "archive" | "bin" | "change" | "copy" | "robot" | "chart" | "clock" | "unarchive" | "cogwheel" | "circular" | "ban-user" | "confirm-email" | "unlock" | undefined;
28
28
  }[];
29
29
  export declare const tertiaryBtnSpecs: {
30
- variant: keyof import("./types").IButtonVariants | "custom" | undefined;
30
+ variant: keyof import("./types").ButtonVariants | "custom" | undefined;
31
31
  text?: string | undefined;
32
32
  size?: keyof MainSizes | undefined;
33
33
  'aria-labelledby'?: string | undefined;
@@ -46,7 +46,7 @@ export declare const tertiaryBtnSpecs: {
46
46
  endIcon?: "filter" | "circle" | "search" | "visible" | "diet" | "calendar" | "home" | "stats" | "sleep" | "trainings" | "measurements" | "settings" | "plus" | "minus" | "more" | "more-vertical" | "check" | "check-circle" | "cross" | "user" | "union" | "notification" | "information" | "warning" | "attention" | "invisible" | "log-out" | "log-in" | "email" | "lock" | "carrot-down" | "carrot-up" | "carrot-left" | "carrot-right" | "radio-on" | "arrow-up" | "arrow-down" | "archive" | "bin" | "change" | "copy" | "robot" | "chart" | "clock" | "unarchive" | "cogwheel" | "circular" | "ban-user" | "confirm-email" | "unlock" | undefined;
47
47
  }[];
48
48
  export declare const infoBtnSpecs: {
49
- variant: keyof import("./types").IButtonVariants | "custom" | undefined;
49
+ variant: keyof import("./types").ButtonVariants | "custom" | undefined;
50
50
  text?: string | undefined;
51
51
  size?: keyof MainSizes | undefined;
52
52
  'aria-labelledby'?: string | undefined;
@@ -65,7 +65,7 @@ export declare const infoBtnSpecs: {
65
65
  endIcon?: "filter" | "circle" | "search" | "visible" | "diet" | "calendar" | "home" | "stats" | "sleep" | "trainings" | "measurements" | "settings" | "plus" | "minus" | "more" | "more-vertical" | "check" | "check-circle" | "cross" | "user" | "union" | "notification" | "information" | "warning" | "attention" | "invisible" | "log-out" | "log-in" | "email" | "lock" | "carrot-down" | "carrot-up" | "carrot-left" | "carrot-right" | "radio-on" | "arrow-up" | "arrow-down" | "archive" | "bin" | "change" | "copy" | "robot" | "chart" | "clock" | "unarchive" | "cogwheel" | "circular" | "ban-user" | "confirm-email" | "unlock" | undefined;
66
66
  }[];
67
67
  export declare const attentionBtnSpecs: {
68
- variant: keyof import("./types").IButtonVariants | "custom" | undefined;
68
+ variant: keyof import("./types").ButtonVariants | "custom" | undefined;
69
69
  text?: string | undefined;
70
70
  size?: keyof MainSizes | undefined;
71
71
  'aria-labelledby'?: string | undefined;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
- import { IButtonVariants } from './types';
2
+ import { ButtonVariants } from './types';
3
3
  export declare const sizes: Array<keyof MainSizes>;
4
- export declare const variants: Array<keyof IButtonVariants>;
4
+ export declare const variants: Array<keyof ButtonVariants>;
5
5
  export declare const HeaderTitle: import("@emotion/styled").StyledComponent<{
6
6
  theme?: import("@emotion/react").Theme | undefined;
7
7
  as?: import("react").ElementType<any> | undefined;
@@ -5,32 +5,32 @@ import { MouseEventHandler } from 'react';
5
5
  * https://www.w3.org/WAI/ARIA/apg/patterns/button/
6
6
  */
7
7
  type ButtonAriaProps = Pick<AriaAttributes, 'aria-labelledby' | 'aria-label' | 'aria-describedby' | 'aria-disabled' | 'aria-pressed' | 'aria-current'>;
8
- export interface IButtonProps extends ButtonAriaProps {
8
+ export interface ButtonProps extends ButtonAriaProps {
9
9
  block?: boolean;
10
10
  size?: keyof MainSizes;
11
11
  text?: string;
12
12
  startIcon?: React.ReactNode;
13
13
  endIcon?: React.ReactNode;
14
- variant?: keyof IButtonVariants | 'custom';
14
+ variant?: keyof ButtonVariants | 'custom';
15
15
  type?: 'button' | 'reset' | 'submit';
16
16
  isDisabled?: boolean;
17
17
  className?: string;
18
18
  onClick?: MouseEventHandler<HTMLButtonElement>;
19
19
  children?: React.ReactNode;
20
20
  }
21
- export interface IButtonVariants {
21
+ export interface ButtonVariants {
22
22
  primary: (theme: Theme) => SerializedStyles;
23
23
  info: (theme: Theme) => SerializedStyles;
24
24
  secondary: (theme: Theme) => SerializedStyles;
25
25
  tertiary: (theme: Theme) => SerializedStyles;
26
26
  attention: (theme: Theme) => SerializedStyles;
27
27
  }
28
- export type IButtonTextProps = {
28
+ export type ButtonTextProps = {
29
29
  text: string;
30
30
  className?: string;
31
31
  testId?: string;
32
32
  };
33
- export type IColoredButtonTextProps = Required<Pick<IButtonProps, 'size'>> & {
33
+ export type ColoredButtonTextProps = Required<Pick<ButtonProps, 'size'>> & {
34
34
  text: string;
35
35
  };
36
36
  export {};
@@ -1,3 +1,3 @@
1
- import { ICheckboxProps } from './types';
2
- declare const Checkbox: ({ text, id, onChange, isDisabled, externalState, initialState, isIndeterminate, name, isRequired, ref, register, ...rest }: ICheckboxProps) => import("react/jsx-runtime").JSX.Element;
1
+ import { CheckboxProps } from './types';
2
+ declare const Checkbox: ({ text, id, onChange, isDisabled, externalState, initialState, isIndeterminate, name, isRequired, ref, register, ...rest }: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default Checkbox;
@@ -1,4 +1,4 @@
1
- import { ICheckboxProps } from './types';
1
+ import { CheckboxProps } from './types';
2
2
  export declare const CheckboxBase: import("@emotion/styled").StyledComponent<import("../Label/types").LabelProps & {
3
3
  theme?: import("@emotion/react").Theme | undefined;
4
- } & Pick<ICheckboxProps, "color">, {}, {}>;
4
+ } & Pick<CheckboxProps, "color">, {}, {}>;
@@ -1,6 +1,6 @@
1
1
  import { Control, FieldPath, FieldValues, UseFormReturn } from 'react-hook-form';
2
2
  import { MutableRefObject } from 'react';
3
- export interface ICheckboxProps extends Partial<Pick<UseFormReturn, 'register'>> {
3
+ export interface CheckboxProps extends Partial<Pick<UseFormReturn, 'register'>> {
4
4
  text?: string;
5
5
  id?: string;
6
6
  onChange?: (newState: boolean) => void;
@@ -15,7 +15,7 @@ export interface ICheckboxProps extends Partial<Pick<UseFormReturn, 'register'>>
15
15
  as?: React.ElementType;
16
16
  className?: string;
17
17
  }
18
- export type IFormCheckboxProps<T extends FieldValues> = Omit<ICheckboxProps, 'onChange' | 'name'> & {
18
+ export type IFormCheckboxProps<T extends FieldValues> = Omit<CheckboxProps, 'onChange' | 'name'> & {
19
19
  name: FieldPath<T>;
20
20
  control: Control<T>;
21
21
  };
@@ -1,4 +1,4 @@
1
- import { IDropdownOption } from '../DropdownOptions/types';
2
- import { IDropdownProps } from './types';
3
- declare const Dropdown: <T extends IDropdownOption>({ selectedItem, isDisabled, isOpen: isInitOpen, children, onChange: handleChange, className, }: IDropdownProps<T>) => import("react/jsx-runtime").JSX.Element;
1
+ import { DropdownOptionProps } from '../DropdownOptions/types';
2
+ import { DropdownProps } from './types';
3
+ declare const Dropdown: <T extends DropdownOptionProps>({ selectedItem, isDisabled, isOpen: isInitOpen, children, onChange: handleChange, className, }: DropdownProps<T>) => import("react/jsx-runtime").JSX.Element;
4
4
  export default Dropdown;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
- import { IDropdownOption } from '../DropdownOptions';
2
+ import { DropdownOptionProps } from '../DropdownOptions';
3
3
  import { CommonProps } from '../../types/emotion';
4
- export interface IDropdownProps<P extends IDropdownOption> extends CommonProps {
4
+ export interface DropdownProps<P extends DropdownOptionProps> extends CommonProps {
5
5
  selectedItem?: P;
6
6
  onChange?: (item: P) => void;
7
7
  isDisabled?: boolean;
@@ -12,5 +12,5 @@ export interface IDropdownProps<P extends IDropdownOption> extends CommonProps {
12
12
  }
13
13
  export interface DropdownContextType {
14
14
  onChange: (item?: string) => void;
15
- activeItem?: IDropdownOption | null;
15
+ activeItem?: DropdownOptionProps | null;
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { Theme } from '@emotion/react';
3
3
  import { CommonProps } from '../../types/emotion';
4
- interface IDropdownItemProps extends CommonProps {
4
+ interface DropdownItemProps extends CommonProps {
5
5
  onClick?: (e: React.MouseEvent<HTMLElement>) => void;
6
6
  isActive?: boolean;
7
7
  isMultiple?: boolean;
@@ -14,5 +14,5 @@ interface IDropdownItemProps extends CommonProps {
14
14
  declare const DropdownOption: import("@emotion/styled").StyledComponent<{
15
15
  theme?: Theme | undefined;
16
16
  as?: React.ElementType<any> | undefined;
17
- } & IDropdownItemProps, React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, {}>;
17
+ } & DropdownItemProps, React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, {}>;
18
18
  export default DropdownOption;
@@ -1,3 +1,3 @@
1
- import { IDropdownItemsListProps } from './types';
2
- declare const DropdownOptions: ({ ariaLabelledby, id, children, }: IDropdownItemsListProps) => import("react/jsx-runtime").JSX.Element;
1
+ import { DropdownItemsListProps } from './types';
2
+ declare const DropdownOptions: ({ ariaLabelledby, id, children, }: DropdownItemsListProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default DropdownOptions;
@@ -1,2 +1,2 @@
1
1
  export { default } from './DropdownOptions';
2
- export type { IDropdownOption } from './types';
2
+ export type { DropdownOptionProps } from './types';
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { CommonProps } from '../../types/emotion';
3
- export type IDropdownOption = Record<string, string | number>;
4
- export interface IDropdownItemsListProps extends CommonProps {
3
+ export type DropdownOptionProps = Record<string, string | number>;
4
+ export interface DropdownItemsListProps extends CommonProps {
5
5
  ariaLabelledby?: string;
6
6
  id?: string;
7
7
  children?: React.ReactNode;
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
- import { IDropdownToggleProps } from './types';
2
+ import { DropdownToggleProps } from './types';
3
3
  export declare const DropdownToggleBase: import("@emotion/styled").StyledComponent<{
4
4
  theme?: import("@emotion/react").Theme | undefined;
5
5
  as?: import("react").ElementType<any> | undefined;
6
- } & Pick<IDropdownToggleProps, "colors" | "disabled" | "isOpen" | "isMultiple" | "selectedCount">, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
7
- declare const DropdownToggle: ({ onClick, onFocus, isOpen, isMultiple, selectedCount, disabled, children, ariaLabelledby, ariaControls, colors, className, }: IDropdownToggleProps) => import("react/jsx-runtime").JSX.Element;
6
+ } & Pick<DropdownToggleProps, "colors" | "disabled" | "isOpen" | "isMultiple" | "selectedCount">, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
7
+ declare const DropdownToggle: ({ onClick, onFocus, isOpen, isMultiple, selectedCount, disabled, children, ariaLabelledby, ariaControls, colors, className, }: DropdownToggleProps) => import("react/jsx-runtime").JSX.Element;
8
8
  export default DropdownToggle;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { Theme } from '@emotion/react';
3
3
  import { CommonProps } from '../../types/emotion';
4
- export interface IDropdownToggleProps extends CommonProps {
4
+ export interface DropdownToggleProps extends CommonProps {
5
5
  onClick: (e: React.MouseEvent<HTMLElement>) => void;
6
6
  onFocus: (e: React.FocusEvent<HTMLButtonElement, Element>) => void;
7
7
  isOpen: boolean;
@@ -1,4 +1,4 @@
1
1
  import type { FieldValues } from 'react-hook-form';
2
- import { IFormCheckboxProps } from './types';
3
- declare const FormCheckbox: <T extends FieldValues>({ control, name, isRequired, ...props }: IFormCheckboxProps<T>) => import("react/jsx-runtime").JSX.Element;
2
+ import { FormCheckboxProps } from './types';
3
+ declare const FormCheckbox: <T extends FieldValues>({ control, name, isRequired, ...props }: FormCheckboxProps<T>) => import("react/jsx-runtime").JSX.Element;
4
4
  export default FormCheckbox;
@@ -1,6 +1,6 @@
1
1
  import { Control, FieldPath, FieldValues } from 'react-hook-form';
2
- import { ICheckboxProps } from '../..';
3
- export type IFormCheckboxProps<T extends FieldValues> = Omit<ICheckboxProps, 'onChange' | 'name'> & {
2
+ import { CheckboxProps } from '../..';
3
+ export type FormCheckboxProps<T extends FieldValues> = Omit<CheckboxProps, 'onChange' | 'name'> & {
4
4
  name: FieldPath<T>;
5
5
  control: Control<T>;
6
6
  };
@@ -1,3 +1,3 @@
1
- import { IFormHelperText } from './types';
2
- declare const FormHelperText: ({ role, status, disabled, children, }: IFormHelperText) => import("react/jsx-runtime").JSX.Element;
1
+ import { FormHelperTextProps } from './types';
2
+ declare const FormHelperText: ({ role, status, disabled, children, }: FormHelperTextProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default FormHelperText;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { CommonProps } from '../../types/emotion';
3
- export interface IFormHelperText extends CommonProps {
3
+ export interface FormHelperTextProps extends CommonProps {
4
4
  children: React.ReactNode;
5
5
  role?: string;
6
6
  status?: string;
@@ -1,4 +1,4 @@
1
1
  import type { FieldValues } from 'react-hook-form';
2
- import { IFormRadioGroupProps } from './types';
3
- declare const FormRadioGroup: <T extends FieldValues>({ name, isRequired, control, children, ...props }: IFormRadioGroupProps<T>) => import("react/jsx-runtime").JSX.Element;
2
+ import { FormRadioGroupProps } from './types';
3
+ declare const FormRadioGroup: <T extends FieldValues>({ name, isRequired, control, children, ...props }: FormRadioGroupProps<T>) => import("react/jsx-runtime").JSX.Element;
4
4
  export default FormRadioGroup;
@@ -1,7 +1,7 @@
1
1
  import { FieldPath, Control, FieldValues } from 'react-hook-form';
2
- import { IRadioGroupProps } from '../RadioGroup/types';
2
+ import { RadioGroupProps } from '../RadioGroup/types';
3
3
  import { CommonProps } from '../../types/emotion';
4
- export type IFormRadioGroupProps<T extends FieldValues> = Omit<IRadioGroupProps, 'name' | 'onChange'> & {
4
+ export type FormRadioGroupProps<T extends FieldValues> = Omit<RadioGroupProps, 'name' | 'onChange'> & {
5
5
  name: FieldPath<T>;
6
6
  control: Control<T>;
7
7
  } & CommonProps;
@@ -4,8 +4,8 @@ export interface SVGProps extends React.SVGProps<SVGSVGElement> {
4
4
  size?: number;
5
5
  }
6
6
  export interface IconProps extends Omit<SVGProps, 'fill'> {
7
- name: keyof IMapIcons;
7
+ name: keyof MapIconsType;
8
8
  }
9
- export type IMapIcons = {
9
+ export type MapIconsType = {
10
10
  [key in (typeof iconsList)[number]]: React.ElementType;
11
11
  };
@@ -1,3 +1,3 @@
1
- import { ILargeTabProps } from '../TabBar/types';
2
- declare const LargeTab: ({ topText, bottomText, isActive, onClick, ariaControls, tabId, }: ILargeTabProps) => import("react/jsx-runtime").JSX.Element;
1
+ import { LargeTabProps } from '../TabBar/types';
2
+ declare const LargeTab: ({ topText, bottomText, isActive, onClick, ariaControls, tabId, }: LargeTabProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default LargeTab;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { ILargeTabProps } from '../TabBar/types';
2
+ import { LargeTabProps } from '../TabBar/types';
3
3
  export declare const LargeTabBase: import("@emotion/styled").StyledComponent<{
4
4
  theme?: import("@emotion/react").Theme | undefined;
5
5
  as?: import("react").ElementType<any> | undefined;
6
- } & Pick<ILargeTabProps, "isActive">, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
6
+ } & Pick<LargeTabProps, "isActive">, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { DropdownContextType } from './types';
3
- import { IDropdownOption } from '../MultipleDropdownOptions';
4
- declare const MultipleDropdownContext: React.Context<DropdownContextType<IDropdownOption>>;
5
- export declare function useMultipleDropdownContext(): DropdownContextType<IDropdownOption>;
3
+ import { DropdownOptionType } from '../MultipleDropdownOptions';
4
+ declare const MultipleDropdownContext: React.Context<DropdownContextType<DropdownOptionType>>;
5
+ export declare function useMultipleDropdownContext(): DropdownContextType<DropdownOptionType>;
6
6
  export default MultipleDropdownContext;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { IDropdownOption } from '../DropdownOptions/types';
3
- import { IDropdownProps } from './types';
4
- declare const MultipleDropdown: React.ForwardRefExoticComponent<IDropdownProps<IDropdownOption> & React.RefAttributes<HTMLDivElement>>;
2
+ import { DropdownOptionProps } from '../DropdownOptions/types';
3
+ import { DropdownProps } from './types';
4
+ declare const MultipleDropdown: React.ForwardRefExoticComponent<DropdownProps<DropdownOptionProps> & React.RefAttributes<HTMLDivElement>>;
5
5
  export default MultipleDropdown;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { IDropdownOption } from '../DropdownOptions/types';
3
- export type IDropdownProps<P extends IDropdownOption> = {
2
+ import { DropdownOptionProps } from '../DropdownOptions/types';
3
+ export type DropdownProps<P extends DropdownOptionProps> = {
4
4
  selectedItems?: P[];
5
5
  isMultiple?: boolean;
6
6
  isDisabled?: boolean;
@@ -12,7 +12,7 @@ export type IDropdownProps<P extends IDropdownOption> = {
12
12
  label?: string;
13
13
  onChange?: (selectedItem: string | number, isSelected: boolean) => void;
14
14
  };
15
- export interface DropdownContextType<T extends IDropdownOption> {
15
+ export interface DropdownContextType<T extends DropdownOptionProps> {
16
16
  onChange: (item: T) => void;
17
17
  isMultiple?: boolean;
18
18
  allItems: Record<string | number, T>;
@@ -1,7 +1,7 @@
1
- import { IDropdownOption } from '../..';
1
+ import { DropdownOptionProps } from '../..';
2
2
  interface GetActiveItems<T> {
3
3
  allItems: T;
4
4
  placeholder: string;
5
5
  }
6
- export declare const getActiveItems: <T extends Record<string | number, IDropdownOption>>({ allItems, placeholder, }: GetActiveItems<T>) => (Record<string | number, string | number> | NonNullable<string | number>)[];
6
+ export declare const getActiveItems: <T extends Record<string | number, DropdownOptionProps>>({ allItems, placeholder, }: GetActiveItems<T>) => (Record<string | number, string | number> | NonNullable<string | number>)[];
7
7
  export {};
@@ -1,3 +1,3 @@
1
- import { IDropdownItemsListProps } from './types';
2
- declare const MultipleDropdownOptions: ({ ariaLabelledby, id, children, }: IDropdownItemsListProps) => import("react/jsx-runtime").JSX.Element;
1
+ import { DropdownItemsListProps } from './types';
2
+ declare const MultipleDropdownOptions: ({ ariaLabelledby, id, children, }: DropdownItemsListProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default MultipleDropdownOptions;
@@ -1,2 +1,2 @@
1
1
  export { default } from './MultipleDropdownOptions';
2
- export type { IDropdownOption } from './types';
2
+ export type { DropdownOptionType } from './types';
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- export type IDropdownOption = Record<string, string | number>;
3
- export interface IDropdownItemsListProps {
2
+ export type DropdownOptionType = Record<string, string | number>;
3
+ export interface DropdownItemsListProps {
4
4
  ariaLabelledby?: string;
5
5
  id?: string;
6
6
  children?: React.ReactNode;
@@ -1,4 +1,4 @@
1
1
  import * as React from 'react';
2
+ import { ButtonProps } from '../Button/types';
2
3
  import { PopoverTriggerProps } from './types';
3
- import { IButtonProps } from '../Button/types';
4
- export declare const PopoverTrigger: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLElement> & IButtonProps & PopoverTriggerProps, "ref"> & React.RefAttributes<HTMLElement>>;
4
+ export declare const PopoverTrigger: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLElement> & ButtonProps & PopoverTriggerProps, "ref"> & React.RefAttributes<HTMLElement>>;
@@ -1,3 +1,3 @@
1
- import { IRadioProps } from './types';
2
- declare const Radio: ({ id, name, value, isChecked, isDisabled, isRequired, onChange, text, className, }: IRadioProps) => import("react/jsx-runtime").JSX.Element;
1
+ import { RadioProps } from './types';
2
+ declare const Radio: ({ id, name, value, isChecked, isDisabled, isRequired, onChange, text, className, }: RadioProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default Radio;
@@ -1,4 +1,4 @@
1
- export interface IRadioProps {
1
+ export interface RadioProps {
2
2
  id?: string;
3
3
  value: string;
4
4
  name?: string;
@@ -1,3 +1,3 @@
1
- import { IRadioGroupProps } from './types';
2
- declare const RadioGroup: ({ name, isRequired, initialState, onChange, children, className, }: IRadioGroupProps) => import("react/jsx-runtime").JSX.Element;
1
+ import { RadioGroupProps } from './types';
2
+ declare const RadioGroup: ({ name, isRequired, initialState, onChange, children, className, }: RadioGroupProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default RadioGroup;
@@ -1,10 +1,10 @@
1
1
  /// <reference types="react" />
2
- import { IRadioProps } from '../Radio/types';
3
- export interface IRadioGroupProps {
2
+ import { RadioProps } from '../Radio/types';
3
+ export interface RadioGroupProps {
4
4
  name: string;
5
5
  isRequired?: boolean;
6
6
  initialState?: string;
7
7
  className?: string;
8
8
  onChange: (value: string) => void;
9
- children: React.ReactElement<IRadioProps>[];
9
+ children: React.ReactElement<RadioProps>[];
10
10
  }
@@ -1,4 +1,4 @@
1
- import { IResponsiveImageProps } from './types';
1
+ import { ResponsiveImageProps } from './types';
2
2
  /**
3
3
  * A simple wrapper over the `<img />` tag.
4
4
  *
@@ -6,5 +6,5 @@ import { IResponsiveImageProps } from './types';
6
6
  * when testing srcSet, and use Hard Reload to force the
7
7
  * browser to load an image of another resolution.
8
8
  * */
9
- declare const ResponsiveImage: ({ src, alt, ...props }: IResponsiveImageProps) => import("react/jsx-runtime").JSX.Element;
9
+ declare const ResponsiveImage: ({ src, alt, ...props }: ResponsiveImageProps) => import("react/jsx-runtime").JSX.Element;
10
10
  export default ResponsiveImage;
@@ -1,4 +1,4 @@
1
- export interface IResponsiveImageProps {
1
+ export interface ResponsiveImageProps {
2
2
  src: string;
3
3
  srcSet: string;
4
4
  sizes: string;
@@ -1,3 +1,3 @@
1
- import { ISwitchProps } from './types';
2
- declare const Switch: ({ label, isDisabled }: ISwitchProps) => import("react/jsx-runtime").JSX.Element;
1
+ import { SwitchProps } from './types';
2
+ declare const Switch: ({ label, isDisabled }: SwitchProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default Switch;
@@ -1,10 +1,10 @@
1
1
  /// <reference types="react" />
2
- export interface ISwitchContext {
2
+ export interface SwitchContext {
3
3
  isOn: boolean;
4
4
  toggle: () => void;
5
5
  }
6
- export declare const SwitchContext: import("react").Context<ISwitchContext>;
7
- export declare const useSwitchContext: () => ISwitchContext;
6
+ export declare const SwitchContext: import("react").Context<SwitchContext>;
7
+ export declare const useSwitchContext: () => SwitchContext;
8
8
  export declare const SwitchContextProvider: ({ initialState, children, }: {
9
9
  initialState?: boolean | undefined;
10
10
  children: React.ReactNode;
@@ -1,4 +1,4 @@
1
- export interface ISwitchProps {
1
+ export interface SwitchProps {
2
2
  label: string;
3
3
  isDisabled?: boolean;
4
4
  }
@@ -1,3 +1,3 @@
1
- import { ISmallTabProps } from '../TabBar/types';
2
- declare const Tab: ({ onClick, isActive, text, ariaControls, tabId, }: ISmallTabProps) => import("react/jsx-runtime").JSX.Element;
1
+ import { SmallTabProps } from '../TabBar/types';
2
+ declare const Tab: ({ onClick, isActive, text, ariaControls, tabId, }: SmallTabProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default Tab;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { ISmallTabProps } from '../TabBar/types';
2
+ import { SmallTabProps } from '../TabBar/types';
3
3
  export declare const TabBase: import("@emotion/styled").StyledComponent<{
4
4
  theme?: import("@emotion/react").Theme | undefined;
5
5
  as?: import("react").ElementType<any> | undefined;
6
- } & Pick<ISmallTabProps, "isActive">, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
6
+ } & Pick<SmallTabProps, "isActive">, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
@@ -1,4 +1,4 @@
1
- import { ITabBarProps } from './types';
1
+ import { TabBarProps } from './types';
2
2
  /**
3
3
  * This component doesn't show contents of the selected tab,
4
4
  * however it accepts a required `renderContent()` render
@@ -6,5 +6,5 @@ import { ITabBarProps } from './types';
6
6
  * component to decide where to render the contents of the
7
7
  * selected tab.
8
8
  * */
9
- declare const TabBar: ({ children }: ITabBarProps) => import("react/jsx-runtime").JSX.Element;
9
+ declare const TabBar: ({ children }: TabBarProps) => import("react/jsx-runtime").JSX.Element;
10
10
  export default TabBar;
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
- import { ITab, ITabBarContext } from './types';
3
- export declare const TabBarContext: import("react").Context<ITabBarContext>;
4
- export declare const useTabBarContext: () => ITabBarContext;
2
+ import { TabProps, TabBarContextProps } from './types';
3
+ export declare const TabBarContext: import("react").Context<TabBarContextProps>;
4
+ export declare const useTabBarContext: () => TabBarContextProps;
5
5
  export declare const TabBarContextProvider: ({ initialTab, children, }: {
6
- initialTab?: ITab | undefined;
6
+ initialTab?: TabProps | undefined;
7
7
  children: React.ReactNode;
8
8
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { ITab } from '../types';
3
- import TabBar from '../TabBar';
4
2
  import { DecoratorFunction } from '@storybook/types';
3
+ import TabBar from '../TabBar';
4
+ import { TabProps } from '../types';
5
5
  type Args = Parameters<typeof TabBar>[0];
6
6
  export declare const TabBarWrapper: ({ children, selectedTabId, renderContent, }: {
7
7
  children: React.ReactNode;