@codeandfunction/callaloo 3.6.0 → 3.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { CLBorderRadius, CLIconNames, CLInputTypes, CLGenericFocusFunction, CLGenericFunction, CLSizes, CLColors, CLColorVariants, CLOrientation } from '../../index';
1
+ import { CLBorderRadius, CLIconNames, CLInputTypes, CLGenericFocusFunction, CLGenericFunction, CLGenericInputFunction, CLSizes, CLColors, CLColorVariants, CLOrientation } from '../../index';
2
2
  interface Props {
3
3
  /** Sets the aria-label on the input. It should be used when there is no label present. */
4
4
  ariaLabel?: string;
@@ -66,6 +66,8 @@ interface Props {
66
66
  onBlur?: CLGenericFocusFunction;
67
67
  /** A callback function which handles when the input value changes. */
68
68
  onChange?: CLGenericFunction;
69
+ /** A callback function which handles when the input value changes due to user input. */
70
+ onInput?: CLGenericInputFunction;
69
71
  /** A callback function which handles when the input gains focus. */
70
72
  onFocus?: CLGenericFocusFunction;
71
73
  }
@@ -1,4 +1,4 @@
1
- import { CLBorderRadius, CLGenericFunction, CLGenericFocusFunction, CLOrientation, CLSizes, CLColors, CLColorVariants } from '../../index';
1
+ import { CLBorderRadius, CLGenericFunction, CLGenericFocusFunction, CLGenericInputFunction, CLOrientation, CLSizes, CLColors, CLColorVariants } from '../../index';
2
2
  interface Props {
3
3
  /** Sets the aria-label on the textarea. It should be used when there is no label present. */
4
4
  ariaLabel?: string;
@@ -62,6 +62,8 @@ interface Props {
62
62
  onBlur?: CLGenericFocusFunction;
63
63
  /** A callback function which handles when the textarea value changes. */
64
64
  onChange?: CLGenericFunction;
65
+ /** A callback function which handles when the input value changes due to user input. */
66
+ onInput?: CLGenericInputFunction;
65
67
  /** A callback function which handles when the textarea gains focus. */
66
68
  onFocus?: CLGenericFocusFunction;
67
69
  }
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { Align as CLAlign, BorderRadius as CLBorderRadius, ButtonTypes as CLButtonTypes, CardTypes as CLCardTypes, Colors as CLColors, ColorVariants as CLColorVariants, HeadingLevels as CLHeadingLevels, HeadingTypes as CLHeadingTypes, IconSizes as CLIconSizes, IconNames as CLIconNames, InputTypes as CLInputTypes, LinkTarget as CLLinkTarget, Loading as CLLoading, Mode as CLMode, Orientation as CLOrientation, Order as CLOrder, PaginationType as CLPaginationType, Placement as CLPlacement, Position as CLPosition, Sizes as CLSizes, TableTypes as CLTableTypes, TextTypes as CLTextTypes, ToastPosition as CLToastPosition } from './types';
2
- export type { BannerProps as CLBannerProps, ButtonTags as CLButtonTags, CardProps as CLCardProps, GenericFunction as CLGenericFunction, GenericFocusFunction as CLGenericFocusFunction, NavItem as CLNavItem, Palette as CLPalette, Option as CLOption, ThemeConfig as CLThemeConfig, TextHtmlTags as CLTextHtmlTags, ToastProps as CLToastProps } from './types';
2
+ export type { BannerProps as CLBannerProps, ButtonTags as CLButtonTags, CardProps as CLCardProps, GenericFunction as CLGenericFunction, GenericFocusFunction as CLGenericFocusFunction, GenericInputFunction as CLGenericInputFunction, NavItem as CLNavItem, Palette as CLPalette, Option as CLOption, ThemeConfig as CLThemeConfig, TextHtmlTags as CLTextHtmlTags, ToastProps as CLToastProps } from './types';
3
3
  export { CLBadge, CLBanner, CLPill, CLProgress } from './components/Indicators';
4
4
  export { CLA11yButton, CLButton } from './components/Buttons';
5
5
  export { CLCard, CLCarousel, CLCarouselSlide, CLDisclosure } from './components/Containers';