@indico-data/design-system 2.15.0 → 2.16.0
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.
- package/lib/index.d.ts +2 -13
- package/lib/index.esm.js +2 -9
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +2 -9
- package/lib/index.js.map +1 -1
- package/lib/src/legacy/components/basic-section/SectionHeader/SectionHeader.d.ts +1 -7
- package/lib/src/legacy/components/basic-section/SectionHeader/SectionHeader.stories.d.ts +4 -10
- package/lib/src/legacy/components/inputs/SearchInput/SearchInput.d.ts +1 -6
- package/lib/src/legacy/components/inputs/SearchInput/SearchInput.stories.d.ts +12 -17
- package/package.json +1 -1
- package/src/components/button/Button.stories.tsx +25 -9
- package/src/legacy/components/basic-section/SectionHeader/SectionHeader.tsx +1 -6
- package/src/legacy/components/inputs/SearchInput/SearchInput.tsx +1 -5
|
@@ -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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
@@ -16,7 +16,7 @@ const meta: Meta = {
|
|
|
16
16
|
options: ['solid', 'outline', 'text'],
|
|
17
17
|
description: 'It sets the variant style for the button',
|
|
18
18
|
table: {
|
|
19
|
-
category: '
|
|
19
|
+
category: 'Props',
|
|
20
20
|
type: {
|
|
21
21
|
summary: 'solid | outline | text',
|
|
22
22
|
},
|
|
@@ -28,7 +28,7 @@ const meta: Meta = {
|
|
|
28
28
|
options: ['primary', 'secondary', 'warning', 'error', 'success', 'info'],
|
|
29
29
|
description: 'It sets the color for the button',
|
|
30
30
|
table: {
|
|
31
|
-
category: '
|
|
31
|
+
category: 'Props',
|
|
32
32
|
type: {
|
|
33
33
|
summary: 'primary | secondary | warning | error | success | info',
|
|
34
34
|
},
|
|
@@ -41,7 +41,7 @@ const meta: Meta = {
|
|
|
41
41
|
description: 'It sets the size for the button',
|
|
42
42
|
defaultValue: { summary: 'md' },
|
|
43
43
|
table: {
|
|
44
|
-
category: '
|
|
44
|
+
category: 'Props',
|
|
45
45
|
type: {
|
|
46
46
|
summary: 'sm | md | lg',
|
|
47
47
|
},
|
|
@@ -49,7 +49,7 @@ const meta: Meta = {
|
|
|
49
49
|
},
|
|
50
50
|
type: {
|
|
51
51
|
table: {
|
|
52
|
-
category: '
|
|
52
|
+
category: 'Props',
|
|
53
53
|
type: {
|
|
54
54
|
summary: 'button | submit | reset',
|
|
55
55
|
},
|
|
@@ -63,7 +63,7 @@ const meta: Meta = {
|
|
|
63
63
|
description:
|
|
64
64
|
'Sets an icon to the left or right of the child element inside the button. It requires an icon to be set.',
|
|
65
65
|
table: {
|
|
66
|
-
category: '
|
|
66
|
+
category: 'Props',
|
|
67
67
|
defaultValue: { summary: 'left' },
|
|
68
68
|
type: {
|
|
69
69
|
summary: 'left | right',
|
|
@@ -74,7 +74,7 @@ const meta: Meta = {
|
|
|
74
74
|
},
|
|
75
75
|
iconName: {
|
|
76
76
|
table: {
|
|
77
|
-
category: '
|
|
77
|
+
category: 'Props',
|
|
78
78
|
type: {
|
|
79
79
|
summary: Object.values(exampleIcons).join(' | '),
|
|
80
80
|
},
|
|
@@ -87,7 +87,7 @@ const meta: Meta = {
|
|
|
87
87
|
ariaLabel: {
|
|
88
88
|
description: 'Sets the aria-label attribute for the button.',
|
|
89
89
|
table: {
|
|
90
|
-
category: '
|
|
90
|
+
category: 'Props',
|
|
91
91
|
type: {
|
|
92
92
|
summary: 'string',
|
|
93
93
|
},
|
|
@@ -118,7 +118,7 @@ const meta: Meta = {
|
|
|
118
118
|
control: 'boolean',
|
|
119
119
|
table: {
|
|
120
120
|
type: { summary: 'true | false' },
|
|
121
|
-
category: '
|
|
121
|
+
category: 'Props',
|
|
122
122
|
},
|
|
123
123
|
defaultValue: { summary: false },
|
|
124
124
|
description:
|
|
@@ -128,11 +128,27 @@ const meta: Meta = {
|
|
|
128
128
|
control: 'boolean',
|
|
129
129
|
table: {
|
|
130
130
|
type: { summary: 'true | false' },
|
|
131
|
-
category: '
|
|
131
|
+
category: 'Props',
|
|
132
132
|
},
|
|
133
133
|
defaultValue: { summary: false },
|
|
134
134
|
description: 'It disables the button',
|
|
135
135
|
},
|
|
136
|
+
className: {
|
|
137
|
+
control: 'text',
|
|
138
|
+
table: {
|
|
139
|
+
category: 'Props',
|
|
140
|
+
},
|
|
141
|
+
defaultValue: { summary: '' },
|
|
142
|
+
description: 'allows the passing of classes',
|
|
143
|
+
},
|
|
144
|
+
href: {
|
|
145
|
+
control: 'text',
|
|
146
|
+
table: {
|
|
147
|
+
category: 'Props',
|
|
148
|
+
},
|
|
149
|
+
defaultValue: { summary: '' },
|
|
150
|
+
description: 'passes a href value to the button for creating links',
|
|
151
|
+
},
|
|
136
152
|
},
|
|
137
153
|
};
|
|
138
154
|
|
|
@@ -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;
|