@indico-data/design-system 2.15.0 → 2.15.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.
@@ -4,11 +4,5 @@ type Props = PermafrostComponent & {
4
4
  style?: object;
5
5
  children?: React.ReactNode;
6
6
  };
7
- export declare const SectionHeader: {
8
- (props: Props): import("react/jsx-runtime").JSX.Element;
9
- defaultProps: {
10
- className: string;
11
- style: {};
12
- };
13
- };
7
+ export declare const SectionHeader: (props: Props) => import("react/jsx-runtime").JSX.Element;
14
8
  export {};
@@ -2,16 +2,10 @@ import React from 'react';
2
2
  import type { StoryObj } from '@storybook/react';
3
3
  import { SectionHeader } from './SectionHeader';
4
4
  declare const meta: {
5
- component: {
6
- (props: import("../../../../types").PermafrostComponent & {
7
- style?: object;
8
- children?: React.ReactNode;
9
- }): import("react/jsx-runtime").JSX.Element;
10
- defaultProps: {
11
- className: string;
12
- style: {};
13
- };
14
- };
5
+ component: (props: import("../../../../types").PermafrostComponent & {
6
+ style?: object;
7
+ children?: React.ReactNode;
8
+ }) => import("react/jsx-runtime").JSX.Element;
15
9
  title: string;
16
10
  argTypes: {};
17
11
  };
@@ -13,10 +13,5 @@ type Props = PermafrostComponent & {
13
13
  placeholder?: string;
14
14
  value?: string;
15
15
  };
16
- export declare const SearchInput: {
17
- (props: Props): import("react/jsx-runtime").JSX.Element;
18
- defaultProps: {
19
- className: string;
20
- };
21
- };
16
+ export declare const SearchInput: (props: Props) => import("react/jsx-runtime").JSX.Element;
22
17
  export default SearchInput;
@@ -1,24 +1,19 @@
1
1
  import { StoryObj } from '@storybook/react';
2
2
  import { SearchInput } from './SearchInput';
3
3
  declare const meta: {
4
- component: {
5
- (props: import("../../../../types").PermafrostComponent & {
6
- inputBorder?: boolean;
7
- showClearInputIcon?: boolean;
8
- showSearchIcon?: boolean;
9
- inputProps?: {
10
- [key: string]: string;
11
- };
12
- onChange?: (e: import("react").ChangeEvent<HTMLInputElement>) => void;
13
- onClear?(): void;
14
- onKeyUp?: (e: import("react").KeyboardEvent<HTMLInputElement>) => void;
15
- placeholder?: string;
16
- value?: string;
17
- }): import("react/jsx-runtime").JSX.Element;
18
- defaultProps: {
19
- className: string;
4
+ component: (props: import("../../../../types").PermafrostComponent & {
5
+ inputBorder?: boolean;
6
+ showClearInputIcon?: boolean;
7
+ showSearchIcon?: boolean;
8
+ inputProps?: {
9
+ [key: string]: string;
20
10
  };
21
- };
11
+ onChange?: (e: import("react").ChangeEvent<HTMLInputElement>) => void;
12
+ onClear?(): void;
13
+ onKeyUp?: (e: import("react").KeyboardEvent<HTMLInputElement>) => void;
14
+ placeholder?: string;
15
+ value?: string;
16
+ }) => import("react/jsx-runtime").JSX.Element;
22
17
  title: string;
23
18
  argTypes: {};
24
19
  args: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indico-data/design-system",
3
- "version": "2.15.0",
3
+ "version": "2.15.1",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "main": "lib/index.js",
@@ -14,7 +14,7 @@ type Props = PermafrostComponent & {
14
14
  };
15
15
 
16
16
  export const SectionHeader = (props: Props) => {
17
- const { className, style, children, id, ...restOfProps } = props;
17
+ const { className = '', style = {}, children, id, ...restOfProps } = props;
18
18
 
19
19
  return (
20
20
  <StyledSectionHeader
@@ -28,8 +28,3 @@ export const SectionHeader = (props: Props) => {
28
28
  </StyledSectionHeader>
29
29
  );
30
30
  };
31
-
32
- SectionHeader.defaultProps = {
33
- className: '',
34
- style: {},
35
- };
@@ -27,7 +27,7 @@ export const SearchInput = (props: Props) => {
27
27
  inputBorder,
28
28
  showSearchIcon,
29
29
  showClearInputIcon,
30
- className,
30
+ className = '',
31
31
  inputProps,
32
32
  onChange,
33
33
  onClear,
@@ -70,8 +70,4 @@ export const SearchInput = (props: Props) => {
70
70
  );
71
71
  };
72
72
 
73
- SearchInput.defaultProps = {
74
- className: '',
75
- };
76
-
77
73
  export default SearchInput;