@fluidattacks/design 1.2.21 → 1.2.23

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 (49) hide show
  1. package/dist/design.js +357 -106
  2. package/dist/design.mjs +3725 -3207
  3. package/dist/src/components/accordion/accordion-content/types.d.ts +5 -4
  4. package/dist/src/components/accordion/types.d.ts +4 -2
  5. package/dist/src/components/button/types.d.ts +1 -0
  6. package/dist/src/components/checkbox/index.d.ts +3 -0
  7. package/dist/src/components/checkbox/styles.d.ts +7 -0
  8. package/dist/src/components/checkbox/types.d.ts +20 -0
  9. package/dist/src/components/cloud-image/types.d.ts +1 -0
  10. package/dist/src/components/container/types.d.ts +1 -0
  11. package/dist/src/components/icon/types.d.ts +4 -4
  12. package/dist/src/components/language-selector/types.d.ts +4 -2
  13. package/dist/src/components/logo/types.d.ts +1 -0
  14. package/dist/src/components/message-banner/index.d.ts +1 -1
  15. package/dist/src/components/message-banner/types.d.ts +3 -1
  16. package/dist/src/components/notification-sign/index.d.ts +3 -0
  17. package/dist/src/components/notification-sign/styles.d.ts +9 -0
  18. package/dist/src/components/notification-sign/types.d.ts +16 -0
  19. package/dist/src/components/progress-bar/index.d.ts +4 -0
  20. package/dist/src/components/progress-bar/types.d.ts +12 -0
  21. package/dist/src/components/progress-bar/utils.d.ts +2 -0
  22. package/dist/src/components/radio-button/index.d.ts +3 -0
  23. package/dist/src/components/radio-button/styles.d.ts +9 -0
  24. package/dist/src/components/radio-button/types.d.ts +17 -0
  25. package/dist/src/components/search-bar/types.d.ts +2 -0
  26. package/dist/src/components/tabs/fixed-tabs/index.d.ts +3 -0
  27. package/dist/src/components/tabs/index.d.ts +5 -0
  28. package/dist/src/components/tabs/styles.d.ts +4 -3
  29. package/dist/src/components/tabs/tab/index.d.ts +4 -0
  30. package/dist/src/components/tabs/types.d.ts +48 -0
  31. package/dist/src/components/toggle-buttons/types.d.ts +1 -0
  32. package/dist/src/components/tooltip/types.d.ts +1 -0
  33. package/dist/src/components/typography/types.d.ts +1 -0
  34. package/dist/src/hooks/use-cloudinary-image.d.ts +1 -0
  35. package/dist/src/index.d.ts +6 -0
  36. package/package.json +5 -2
  37. package/dist/src/components/accordion/index.stories.d.ts +0 -7
  38. package/dist/src/components/accordion/platform/index.stories.d.ts +0 -6
  39. package/dist/src/components/button/index.stories.d.ts +0 -10
  40. package/dist/src/components/button/platform/index.stories.d.ts +0 -10
  41. package/dist/src/components/container/index.stories.d.ts +0 -7
  42. package/dist/src/components/grid-layout/index.stories.d.ts +0 -17
  43. package/dist/src/components/language-selector/index.stories.d.ts +0 -8
  44. package/dist/src/components/message-banner/index.stories.d.ts +0 -6
  45. package/dist/src/components/search-bar/index.stories.d.ts +0 -7
  46. package/dist/src/components/search-bar/item-searching/index.stories.d.ts +0 -6
  47. package/dist/src/components/toggle-buttons/index.stories.d.ts +0 -6
  48. package/dist/src/components/tooltip/index.stories.d.ts +0 -8
  49. /package/dist/src/components/{accordion → progress-bar}/styles.d.ts +0 -0
@@ -1,10 +1,11 @@
1
1
  import { IAccordionItemProps, TVariant } from '../types';
2
2
  /**
3
3
  * Accordion Content props
4
- * @property {boolean} [isSelectedAndOpen] If item in accordion is selected and open.
5
- * @property {IAccordionItemProps} [item] Accordion item.
6
- * @property {TVariant} [variant] Type of accordion.
7
- * @property {boolean} [render] Render condition.
4
+ * @interface IAccordionContentProps
5
+ * @property {boolean} isSelectedAndOpen If item in accordion is selected and open.
6
+ * @property {IAccordionItemProps} item Accordion item.
7
+ * @property {TVariant} variant Type of accordion.
8
+ * @property {boolean} render Render condition.
8
9
  */
9
10
  interface IAccordionContentProps {
10
11
  isSelectedAndOpen: boolean;
@@ -2,7 +2,8 @@ type TVariant = "progress" | "simple" | "platform";
2
2
  type TAligned = "end" | "start";
3
3
  /**
4
4
  * Accordion item props
5
- * @property {string} [title] Accordion title.
5
+ * @interface IAccordionItemProps
6
+ * @property {string} title Accordion title.
6
7
  * @property {string} [description] Accordion description.
7
8
  * @property {JSX.Element} [extraElement] Accordion extra components.
8
9
  */
@@ -15,8 +16,9 @@ interface IAccordionItemProps {
15
16
  * Pass more than 1 item to activate progress variant
16
17
  *
17
18
  * Accordion component props
19
+ * @interface IAccordionProps
18
20
  * @property {TAligned} [aligned] Align title.
19
- * @property {IAccordionItemProps} [items] A list of accordion items.
21
+ * @property {IAccordionItemProps} items A list of accordion items.
20
22
  * @property {number} [progressTime] Time remaining until the next item (in seconds).
21
23
  * @property {string} [bgColor] Accordion background color.
22
24
  * @property {TVariant} [variant] Type of accordion.
@@ -4,6 +4,7 @@ import { TPlace } from '../tooltip/types';
4
4
  type TVariant = "primary" | "primaryWeb" | "secondary" | "secondaryWeb" | "tertiary" | "ghost" | "ghostWeb" | "link";
5
5
  /**
6
6
  * Button component props.
7
+ * @interface IButtonProps
7
8
  * @extends IBorderModifiable
8
9
  * @extends IDisplayModifiable
9
10
  * @extends IMarginModifiable
@@ -0,0 +1,3 @@
1
+ import { ICheckboxProps } from './types';
2
+ declare const Checkbox: ({ defaultChecked, disabled, label, name, onChange, onClick, onFocus, onKeyDown, value, variant, }: Readonly<ICheckboxProps>) => JSX.Element;
3
+ export { Checkbox };
@@ -0,0 +1,7 @@
1
+ import { TVariant } from './types';
2
+ declare const InputContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {
3
+ $alert?: boolean;
4
+ $disabled: boolean;
5
+ $variant: TVariant;
6
+ }>> & string;
7
+ export { InputContainer };
@@ -0,0 +1,20 @@
1
+ import { HTMLAttributes } from 'react';
2
+ type TVariant = "web" | "platform";
3
+ /**
4
+ * Checkbox props.
5
+ * @interface ICheckboxProps
6
+ * @extends HTMLAttributes<HTMLInputElement>
7
+ * @property {boolean} [disabled] Disable checkbox.
8
+ * @property {string} name Input name.
9
+ * @property {string} [label] Checkbox label.
10
+ * @property {string} [value] Checkbox value.
11
+ * @property {Function} [variant] Checkbox variant type.
12
+ */
13
+ interface ICheckboxProps extends HTMLAttributes<HTMLInputElement> {
14
+ disabled?: boolean;
15
+ label?: string;
16
+ name: string;
17
+ value?: string;
18
+ variant?: TVariant;
19
+ }
20
+ export type { ICheckboxProps, TVariant };
@@ -1,6 +1,7 @@
1
1
  import { Plugins } from '@cloudinary/html';
2
2
  /**
3
3
  * Cloud image component props.
4
+ * @interface ICloudImageProps
4
5
  * @property {string} [alt] The alternate text for an image.
5
6
  * @property {number | string} [height] The height of the image.
6
7
  * @property {number | string} [width] The width of the image.
@@ -3,6 +3,7 @@ import { TModifiable } from '../@core';
3
3
  type THtmlTag = keyof ReactHTML;
4
4
  /**
5
5
  * Container component props.
6
+ * @interface IContainerProps
6
7
  * @extends TModifiable
7
8
  * @extends HTMLAttributes<HTMLDivElement>
8
9
  * @property {THtmlTag} [as] The react html tag to represent.
@@ -3,14 +3,14 @@ import { IIconModifiable, IMarginModifiable } from '../@core';
3
3
  type TIconType = "fa-brands" | "fa-light" | "fa-regular" | "fa-solid";
4
4
  /**
5
5
  * Icon Wrapper component props.
6
+ * @interface IIconWrapProps
6
7
  * @extends IMarginModifiable
8
+ * @extends IIconModifiable
7
9
  * @property {boolean} [clickable] Defines the cursor to show on icon hover.
8
- * @property {string} [color] The icon color.
9
10
  * @property {string} [hoverColor] The icon color onn hover.
10
11
  * @property {Function} [onClick] Function handler for click event.
11
12
  * @property {boolean} [disabled] Show disabled icon state.
12
13
  * @property {number} [rotation] Rotation degrees to modify icon style.
13
- * @property {TSize} size The icon size.
14
14
  */
15
15
  interface IIconWrapProps extends IIconModifiable, IMarginModifiable {
16
16
  clickable?: boolean;
@@ -21,12 +21,12 @@ interface IIconWrapProps extends IIconModifiable, IMarginModifiable {
21
21
  }
22
22
  /**
23
23
  * Icon component props.
24
+ * @interface IIconProps
24
25
  * @extends IIconWrapProps
25
26
  * @property {string} [iconClass] The icon class from fontawesome.
26
27
  * @property {string} [iconMask] The data-fa-mask prop of icon.
27
28
  * @property {string} [iconTransform] The data-fa-transform prop of icon.
28
- * @property {IconName} icon The icon name coming from fontawesome.
29
- * @property {TIconType} iconType The icon type.
29
+ * @property {TIconType} [iconType] The icon type.
30
30
  */
31
31
  interface IIconProps extends IIconWrapProps {
32
32
  iconClass?: string;
@@ -10,10 +10,11 @@ interface IItem {
10
10
  }
11
11
  /**
12
12
  * Item list for language selector props
13
+ * @interface IItemList
13
14
  * @property {boolean} [disabled] Show the item as disabled.
14
15
  * @property {TMode} [mode] The background theme: dark or light.
15
- * @property {Function} [onClick] Function handler for click event.
16
- * @property {string} [text] Item list text
16
+ * @property {Function} onClick Function handler for click event.
17
+ * @property {string} text Item list text
17
18
  */
18
19
  interface IItemList {
19
20
  disabled?: boolean;
@@ -23,6 +24,7 @@ interface IItemList {
23
24
  }
24
25
  /**
25
26
  * Language selector component props
27
+ * @interface ILangSelectorProps
26
28
  * @property {IItem} [items] The custom items to make selection.
27
29
  * @property {Function} handleClick Function handler for click event.
28
30
  * @property {TMode} [mode] The background theme: dark or light.
@@ -1,6 +1,7 @@
1
1
  type TLogoVariant = "company" | "footer" | "header" | "icon";
2
2
  /**
3
3
  * Logo component props.
4
+ * @interface ILogoProps
4
5
  * @property {string} publicId The publicId location in cloudinary.
5
6
  * @property {TLogoVariant} variant The different types of logo used.
6
7
  */
@@ -1,3 +1,3 @@
1
1
  import { IMessageBannerProps } from './types';
2
- declare const MessageBanner: import('react').ForwardRefExoticComponent<Readonly<IMessageBannerProps> & import('react').RefAttributes<unknown>>;
2
+ declare const MessageBanner: ({ message, onClickButton, buttonText, buttonFontWeight, icon, onClose, variant, }: Readonly<IMessageBannerProps>) => JSX.Element;
3
3
  export { MessageBanner };
@@ -4,13 +4,15 @@ import { MouseEventHandler } from 'react';
4
4
  type TVariant = "web" | "platform";
5
5
  /**
6
6
  * Message banner props.
7
+ * @interface IMessageBannerProps
7
8
  * @extends IMessageBannerProps
8
- * @property {JSX.Element | string} [message] Banner text.
9
+ * @property {JSX.Element | string} message Banner text.
9
10
  * @property {string} [buttonText] Text for action button.
10
11
  * @property {FontWeight} [buttonFontWeight] Weight for button text.
11
12
  * @property {IconName} [icon] Icon for action button.
12
13
  * @property {Function} [onClickButton] Action for action button.
13
14
  * @property {Function} [onClose] Extra action when banner close.
15
+ * @property {TVariant} [variant] Variant to use: platform or web.
14
16
  */
15
17
  interface IMessageBannerProps {
16
18
  message: JSX.Element | string;
@@ -0,0 +1,3 @@
1
+ import { INotificationSignProps } from './types';
2
+ declare const NotificationSign: import('react').ForwardRefExoticComponent<Readonly<INotificationSignProps> & import('react').RefAttributes<HTMLDivElement>>;
3
+ export { NotificationSign };
@@ -0,0 +1,9 @@
1
+ import { INotificationSignProps } from './types';
2
+ interface IStyledNotificationSignProps {
3
+ $variant?: INotificationSignProps["variant"];
4
+ }
5
+ declare const NotificationSignButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('../@core').IPaddingModifiable | keyof import('../@core').IMarginModifiable | keyof import('../@core').IPositionModifiable | keyof import('../@core').IBorderModifiable | keyof import('../@core').IDisplayModifiable | keyof import('../@core').ITextModifiable | keyof import('../@core').IInteractionModifiable> & import('../@core').IBorderModifiable & import('../@core').IDisplayModifiable & import('../@core').IInteractionModifiable & import('../@core').IMarginModifiable & import('../@core').IPaddingModifiable & import('../@core').IPositionModifiable & import('../@core').ITextModifiable, "ref"> & {
6
+ ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
7
+ }, IStyledNotificationSignProps>> & string;
8
+ declare const NumberIndicator: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
9
+ export { NotificationSignButton, NumberIndicator };
@@ -0,0 +1,16 @@
1
+ import { IPositionModifiable } from '../@core';
2
+ type TVariant = "error" | "warning";
3
+ /**
4
+ * Notification sign component props.
5
+ * @interface INotificationSignProps
6
+ * @extends IPositionModifiable
7
+ * @property {number} [numberIndicator] The number of notifications.
8
+ * @property {boolean} [show] The visibility of notification sign.
9
+ * @property {TVariant} [variant] The notification custom variant.
10
+ */
11
+ interface INotificationSignProps extends Pick<IPositionModifiable, "left" | "top"> {
12
+ numberIndicator?: number;
13
+ show?: boolean;
14
+ variant?: TVariant;
15
+ }
16
+ export type { INotificationSignProps };
@@ -0,0 +1,4 @@
1
+ import { IProgressBarProps } from './types';
2
+ declare const ProgressBar: ({ progressTime, onComplete, }: Readonly<IProgressBarProps>) => JSX.Element;
3
+ export { ProgressBar };
4
+ export type { IProgressBarProps };
@@ -0,0 +1,12 @@
1
+ import { IDisplayModifiable } from '../@core';
2
+ /**
3
+ * Progress bar component props
4
+ * @interface IProgressBarProps
5
+ * @property {number} [progressTime] Time to complete.
6
+ * @property {Function} [onComplete] Action when progress complete.
7
+ */
8
+ interface IProgressBarProps extends IDisplayModifiable {
9
+ progressTime?: number;
10
+ onComplete?: () => void;
11
+ }
12
+ export type { IProgressBarProps };
@@ -0,0 +1,2 @@
1
+ declare const getDelay: (progressTime: number) => number;
2
+ export { getDelay };
@@ -0,0 +1,3 @@
1
+ import { IRadioButtonProps } from './types';
2
+ declare const RadioButton: ({ defaultChecked, disabled, label, name, onChange, onClick, value, variant, }: Readonly<IRadioButtonProps>) => JSX.Element;
3
+ export { RadioButton };
@@ -0,0 +1,9 @@
1
+ import { TVariant } from './types';
2
+ declare const LabelContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {
3
+ $disabled: boolean;
4
+ $variant: TVariant;
5
+ }>> & string;
6
+ declare const CheckMark: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
7
+ ref?: ((instance: HTMLSpanElement | null) => void) | import('react').RefObject<HTMLSpanElement> | null | undefined;
8
+ }>, never>, never>> & string;
9
+ export { CheckMark, LabelContainer };
@@ -0,0 +1,17 @@
1
+ import { HTMLAttributes, HTMLProps } from 'react';
2
+ type TVariant = "web" | "platform";
3
+ /**
4
+ * Radio button props.
5
+ * @interface IRadioButtonProps
6
+ * @extends HTMLAttributes<HTMLInputElement>
7
+ * @extends HTMLProps<HTMLInputElement>
8
+ * @property {string} name Input name.
9
+ * @property {string} value Radio button value.
10
+ * @property {Function} [variant] Radio button variant type.
11
+ */
12
+ interface IRadioButtonProps extends HTMLAttributes<HTMLInputElement>, HTMLProps<HTMLInputElement> {
13
+ name: string;
14
+ value: string;
15
+ variant?: TVariant;
16
+ }
17
+ export type { IRadioButtonProps, TVariant };
@@ -2,6 +2,7 @@ import { IIconModifiable } from '../@core';
2
2
  type THit = Record<string, unknown>;
3
3
  /**
4
4
  * Item searching component props.
5
+ * @interface IItemSearchingProps
5
6
  * @property {THit} hit The matched item of the search query.
6
7
  * @property {IconName} [icon] Icon to show with item.
7
8
  * @property {boolean} [showIcon] True if the item includes an icon.
@@ -13,6 +14,7 @@ interface IItemSearchingProps {
13
14
  }
14
15
  /**
15
16
  * Search bar component props.
17
+ * @interface ISearchBarProps
16
18
  * @property {THit[]} items The matched items returned from Algolia.
17
19
  * @property {string} [placeholder] The search bar placeholder.
18
20
  * @property {Function} refine A function to set a new query and searches.
@@ -0,0 +1,3 @@
1
+ import { IFixedTabsProps } from '../types';
2
+ declare const FixedTabs: ({ items }: Readonly<IFixedTabsProps>) => JSX.Element;
3
+ export { FixedTabs };
@@ -0,0 +1,5 @@
1
+ import { FixedTabs } from './fixed-tabs';
2
+ import { Tab } from './tab';
3
+ import { ITabsProps } from './types';
4
+ declare const Tabs: ({ items, borders, box, }: Readonly<ITabsProps>) => JSX.Element;
5
+ export { FixedTabs, Tabs, Tab };
@@ -1,3 +1,4 @@
1
- declare const StyledTab: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, never>> & string;
2
- declare const StyledTabs: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
3
- export { StyledTab, StyledTabs };
1
+ declare const StyledFixedTab: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
2
+ declare const StyledFixedTabs: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
3
+ declare const TabLink: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react-router-dom').NavLinkProps & import('react').RefAttributes<HTMLAnchorElement>, never>> & string & Omit<import('react').ForwardRefExoticComponent<import('react-router-dom').NavLinkProps & import('react').RefAttributes<HTMLAnchorElement>>, keyof import('react').Component<any, {}, any>>;
4
+ export { StyledFixedTab, StyledFixedTabs, TabLink };
@@ -0,0 +1,4 @@
1
+ import { ITabProps } from '../types';
2
+ declare const Tab: ({ label, id, isActive, link, notificationSign, onClick, tooltip, }: Readonly<ITabProps>) => JSX.Element;
3
+ export type { ITabProps };
4
+ export { Tab };
@@ -0,0 +1,48 @@
1
+ import { INotificationSignProps } from '../notification-sign/types';
2
+ /**
3
+ * Individual tab props.
4
+ * @property {boolean} [isActive] Set the current tab active.
5
+ * @property {Function} [onClick] The handler event on tab click.
6
+ * @property {string | JSX.Element} label The tab title.
7
+ */
8
+ interface IFixedTabProps {
9
+ isActive?: boolean;
10
+ onClick?: (event: Readonly<React.MouseEvent>) => void;
11
+ label: string | JSX.Element;
12
+ }
13
+ /**
14
+ * Fixed tabs component props.
15
+ * ** Note: A maximum of 5 tabs is allowed. **
16
+ * @property {ITabProps[]} items The list of tabs to display.
17
+ */
18
+ interface IFixedTabsProps {
19
+ items: IFixedTabProps[];
20
+ }
21
+ /**
22
+ * Tab component props.
23
+ * @interface ITabProps
24
+ * @extends IFixedTabProps
25
+ * @property {string} id The id related to the tab.
26
+ * @property {string} link The link to redirect on tab click.
27
+ * @property {INotificationSignProps} [notificationSign] Notification tab details.
28
+ * @property {string} [tooltip] The tooltip text to add.
29
+ */
30
+ interface ITabProps extends IFixedTabProps {
31
+ id: string;
32
+ link: string;
33
+ notificationSign?: INotificationSignProps;
34
+ tooltip?: string;
35
+ }
36
+ /**
37
+ * Tabs component props.
38
+ * @interface ITabsProps
39
+ * @property {ITabProps[]} items The lists of tabs to display.
40
+ * @property {boolean} [borders] Whether to add borders to set of tabs.
41
+ * @property {boolean} [box] Whether to add box container to set of tabs.
42
+ */
43
+ interface ITabsProps {
44
+ items: ITabProps[];
45
+ borders?: boolean;
46
+ box?: boolean;
47
+ }
48
+ export type { IFixedTabsProps, IFixedTabProps, ITabProps, ITabsProps };
@@ -1,5 +1,6 @@
1
1
  /**
2
2
  * Toggle button component props.
3
+ * @interface IToggleButtonProps
3
4
  * @property {string} [defaultSelection] The option selected by default.
4
5
  * @property {string[]} options The list options label.
5
6
  * @property {Function} handleClick The function to handle the click event.
@@ -4,6 +4,7 @@ type TPlace = "bottom" | "left" | "right" | "top";
4
4
  type TEffect = "float" | "solid";
5
5
  /**
6
6
  * Tooltip component props
7
+ * @interface ITooltipProps
7
8
  * @extends IIconModifiable
8
9
  * @extends IDisplayModifiable
9
10
  * @property {boolean} [disabled] If the tooltip icon is disabled.
@@ -2,6 +2,7 @@ import { Property } from 'csstype';
2
2
  import { IMarginModifiable, IPaddingModifiable, ISizeModifiable, ITextModifiable } from '../@core';
3
3
  /**
4
4
  * Typography component props.
5
+ * @interface ITypographyProps
5
6
  * @extends IMarginModifiable
6
7
  * @extends IPaddingModifiable
7
8
  * @extends ISizeModifiable
@@ -1,6 +1,7 @@
1
1
  import { CloudinaryImage } from '@cloudinary/url-gen';
2
2
  /**
3
3
  * Cloudinary image hook props.
4
+ * @interface IUseCloudinaryImageProps
4
5
  * @property {string} publicId The publicId location in cloudinary.
5
6
  * @property {string} [format] The image format desired (e.g., png, jpg).
6
7
  */
@@ -1,13 +1,19 @@
1
1
  export * from './components/@core';
2
2
  export * from './components/accordion';
3
3
  export * from './components/button';
4
+ export * from './components/checkbox';
4
5
  export * from './components/cloud-image';
5
6
  export * from './components/colors';
6
7
  export * from './components/container';
7
8
  export * from './components/icon';
8
9
  export * from './components/language-selector';
9
10
  export * from './components/logo';
11
+ export * from './components/message-banner';
12
+ export * from './components/notification-sign';
13
+ export * from './components/progress-bar';
14
+ export * from './components/radio-button';
10
15
  export * from './components/search-bar';
16
+ export * from './components/tabs';
11
17
  export * from './components/toggle-buttons';
12
18
  export * from './components/tooltip';
13
19
  export * from './components/typography';
package/package.json CHANGED
@@ -7,7 +7,6 @@
7
7
  "dependencies": {
8
8
  "@cloudinary/react": "1.13.0",
9
9
  "@cloudinary/url-gen": "1.21.0",
10
- "@floating-ui/react-dom": "2.1.2",
11
10
  "@fortawesome/free-solid-svg-icons": "6.6.0",
12
11
  "@fortawesome/react-fontawesome": "0.2.2",
13
12
  "react": "18.2.0",
@@ -15,6 +14,10 @@
15
14
  "react-tooltip": "5.28.0",
16
15
  "styled-components": "6.1.13"
17
16
  },
17
+ "optionalDependencies": {
18
+ "@floating-ui/react-dom": "2.1.2",
19
+ "react-router-dom": "6.27.0"
20
+ },
18
21
  "devDependencies": {
19
22
  "@storybook/addon-a11y": "8.3.6",
20
23
  "@storybook/addon-essentials": "8.3.6",
@@ -82,7 +85,7 @@
82
85
  "preview": "vite preview",
83
86
  "storybook": "storybook dev"
84
87
  },
85
- "version": "1.2.21",
88
+ "version": "1.2.23",
86
89
  "eslintConfig": {
87
90
  "extends": [
88
91
  "plugin:storybook/recommended"
@@ -1,7 +0,0 @@
1
- import { Meta } from '@storybook/react';
2
- import { IAccordionProps } from './types';
3
- declare const config: Meta;
4
- declare const Default: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, IAccordionProps>;
5
- declare const Progress: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, IAccordionProps>;
6
- export { Default, Progress };
7
- export default config;
@@ -1,6 +0,0 @@
1
- import { Meta } from '@storybook/react';
2
- import { IAccordionProps } from '../types';
3
- declare const config: Meta;
4
- declare const Default: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, IAccordionProps>;
5
- export { Default };
6
- export default config;
@@ -1,10 +0,0 @@
1
- import { Meta } from '@storybook/react';
2
- import { PropsWithChildren } from 'react';
3
- import { IButtonProps } from '.';
4
- declare const config: Meta;
5
- declare const Default: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, PropsWithChildren<IButtonProps>>;
6
- declare const Secondary: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, PropsWithChildren<IButtonProps>>;
7
- declare const Ghost: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, PropsWithChildren<IButtonProps>>;
8
- declare const Link: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, PropsWithChildren<IButtonProps>>;
9
- export { Default, Secondary, Ghost, Link };
10
- export default config;
@@ -1,10 +0,0 @@
1
- import { Meta } from '@storybook/react';
2
- import { PropsWithChildren } from 'react';
3
- import { IButtonProps } from '..';
4
- declare const config: Meta;
5
- declare const Default: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, PropsWithChildren<IButtonProps>>;
6
- declare const Secondary: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, PropsWithChildren<IButtonProps>>;
7
- declare const Tertiary: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, PropsWithChildren<IButtonProps>>;
8
- declare const Ghost: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, PropsWithChildren<IButtonProps>>;
9
- export { Default, Secondary, Tertiary, Ghost };
10
- export default config;
@@ -1,7 +0,0 @@
1
- import { Meta, StoryFn } from '@storybook/react';
2
- import { IContainerProps } from './types';
3
- declare const config: Meta;
4
- declare const Default: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, import('react').PropsWithChildren<IContainerProps>>;
5
- declare const FlexBox: StoryFn;
6
- export { Default, FlexBox };
7
- export default config;
@@ -1,17 +0,0 @@
1
- import { Meta } from '@storybook/react';
2
- declare const config: Meta;
3
- declare const PlatformLayout: () => JSX.Element;
4
- declare const Large: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, {
5
- columns: number;
6
- }>;
7
- declare const Medium: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, {
8
- columns: number;
9
- }>;
10
- declare const Tablet: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, {
11
- columns: number;
12
- }>;
13
- declare const Mobile: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, {
14
- columns: number;
15
- }>;
16
- export { PlatformLayout, Large, Medium, Tablet, Mobile };
17
- export default config;
@@ -1,8 +0,0 @@
1
- import { Meta } from '@storybook/react';
2
- import { ILangSelectorProps } from './types';
3
- declare const config: Meta;
4
- declare const Default: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, ILangSelectorProps>;
5
- declare const FullLanguage: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, ILangSelectorProps>;
6
- declare const DarkMode: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, ILangSelectorProps>;
7
- export { Default, FullLanguage, DarkMode };
8
- export default config;
@@ -1,6 +0,0 @@
1
- import { Meta } from '@storybook/react';
2
- import { IMessageBannerProps } from './types';
3
- declare const config: Meta;
4
- declare const Default: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, IMessageBannerProps>;
5
- export default config;
6
- export { Default };
@@ -1,7 +0,0 @@
1
- import { Meta } from '@storybook/react';
2
- import { ISearchBarProps } from './types';
3
- declare const config: Meta;
4
- declare const Default: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, ISearchBarProps>;
5
- declare const EmptyState: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, ISearchBarProps>;
6
- export { Default, EmptyState };
7
- export default config;
@@ -1,6 +0,0 @@
1
- import { Meta } from '@storybook/react';
2
- import { IItemSearchingProps } from '../types';
3
- declare const config: Meta;
4
- declare const Default: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, IItemSearchingProps>;
5
- export { Default };
6
- export default config;
@@ -1,6 +0,0 @@
1
- import { Meta } from '@storybook/react';
2
- import { IToggleButtonProps } from './types';
3
- declare const config: Meta;
4
- declare const Default: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, IToggleButtonProps>;
5
- export { Default };
6
- export default config;
@@ -1,8 +0,0 @@
1
- import { Meta } from '@storybook/react';
2
- import { ITooltipProps } from './types';
3
- declare const config: Meta;
4
- declare const Default: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, ITooltipProps>;
5
- declare const TitleTooltip: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, ITooltipProps>;
6
- declare const IconTooltip: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, ITooltipProps>;
7
- export { Default, TitleTooltip, IconTooltip };
8
- export default config;