@chotot/clad-ui 2.0.0 → 2.2.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/README.md +4 -2
- package/dist/components/Badge/Badge.d.ts +10 -2
- package/dist/components/Badge/Badge.d.ts.map +1 -1
- package/dist/components/Badge/Badge.js +42 -27
- package/dist/components/Badge/Badge.stories.d.ts.map +1 -1
- package/dist/components/Badge/Badge.stories.js +153 -126
- package/dist/components/Badge/Badge.styles.d.ts +2 -1
- package/dist/components/Badge/Badge.styles.d.ts.map +1 -1
- package/dist/components/Badge/Badge.styles.js +77 -18
- package/dist/components/Breadcrumbs/BreadcrumbItem.js +1 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.stories.d.ts.map +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.stories.js +19 -13
- package/dist/components/Button/Button.d.ts +1 -1
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/Button.js +1 -0
- package/dist/components/Button/Button.stories.d.ts +76 -2
- package/dist/components/Button/Button.stories.d.ts.map +1 -1
- package/dist/components/Button/Button.stories.js +86 -10
- package/dist/components/Button/Button.styles.d.ts.map +1 -1
- package/dist/components/Button/Button.styles.js +16 -0
- package/dist/components/Button/GhostButton.d.ts +1 -1
- package/dist/components/Button/GhostButton.d.ts.map +1 -1
- package/dist/components/Button/GhostButton.js +1 -0
- package/dist/components/Button/GhostButton.stories.d.ts +78 -0
- package/dist/components/Button/GhostButton.stories.d.ts.map +1 -1
- package/dist/components/Button/GhostButton.stories.js +62 -7
- package/dist/components/Button/GhostButton.styles.d.ts.map +1 -1
- package/dist/components/Button/GhostButton.styles.js +17 -1
- package/dist/components/Button/IconButton.d.ts.map +1 -1
- package/dist/components/Button/IconButton.js +1 -0
- package/dist/components/Button/IconButton.stories.d.ts +73 -1
- package/dist/components/Button/IconButton.stories.d.ts.map +1 -1
- package/dist/components/Button/IconButton.stories.js +57 -8
- package/dist/components/Button/constant.d.ts +10 -0
- package/dist/components/Button/constant.d.ts.map +1 -0
- package/dist/components/Button/constant.js +21 -0
- package/dist/components/DatePicker/DatePicker.d.ts +4 -0
- package/dist/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePicker.js +4 -1
- package/dist/components/DatePicker/DatePicker.stories.d.ts +1 -0
- package/dist/components/DatePicker/DatePicker.stories.d.ts.map +1 -1
- package/dist/components/Dropdown/Dropdown.d.ts.map +1 -1
- package/dist/components/Dropdown/Dropdown.js +5 -0
- package/dist/components/Dropdown/Dropdown.styles.d.ts.map +1 -1
- package/dist/components/Dropdown/Dropdown.styles.js +27 -3
- package/dist/components/Input/Input.d.ts +1 -1
- package/dist/components/Input/Input.d.ts.map +1 -1
- package/dist/components/Input/Input.js +15 -2
- package/dist/components/Pagination/PageItem.d.ts.map +1 -1
- package/dist/components/Pagination/PageItem.js +1 -0
- package/dist/components/RowItem/RowItem.d.ts.map +1 -1
- package/dist/components/RowItem/RowItem.js +3 -6
- package/dist/components/Tabs/Tab.d.ts.map +1 -1
- package/dist/components/Tabs/Tab.js +1 -0
- package/dist/components/Tabs/Tabs.styles.js +1 -1
- package/dist/components/TextArea/TextArea.d.ts +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/patterns/EmptyState/EmptyState.d.ts +1 -1
- package/dist/patterns/EmptyState/EmptyState.d.ts.map +1 -1
- package/dist/patterns/EmptyState/EmptyState.js +52 -47
- package/dist/patterns/EmptyState/EmptyState.stories.d.ts +11 -1
- package/dist/patterns/EmptyState/EmptyState.stories.d.ts.map +1 -1
- package/dist/patterns/EmptyState/EmptyState.stories.js +50 -11
- package/dist/patterns/EmptyState/EmptyState.styles.d.ts +3 -15
- package/dist/patterns/EmptyState/EmptyState.styles.d.ts.map +1 -1
- package/dist/patterns/EmptyState/EmptyState.styles.js +23 -40
- package/dist/patterns/InputGroup/InputGroup.d.ts +1 -1
- package/dist/patterns/InputGroup/InputGroup.styles.d.ts.map +1 -1
- package/dist/patterns/InputGroup/InputGroup.styles.js +3 -2
- package/dist/patterns/MultiSearchDropdown/MultiSearchDropdown.d.ts +1 -1
- package/dist/patterns/MultiSearchDropdown/MultiSearchDropdown.d.ts.map +1 -1
- package/dist/patterns/MultiSearchDropdown/MultiSearchDropdown.js +4 -0
- package/dist/patterns/RangeInput/RangeInput.d.ts +30 -0
- package/dist/patterns/RangeInput/RangeInput.d.ts.map +1 -0
- package/dist/patterns/RangeInput/RangeInput.js +27 -0
- package/dist/patterns/RangeInput/RangeInput.stories.d.ts +68 -0
- package/dist/patterns/RangeInput/RangeInput.stories.d.ts.map +1 -0
- package/dist/patterns/RangeInput/RangeInput.stories.js +121 -0
- package/dist/patterns/RangeInput/RangeInput.styles.d.ts +5 -0
- package/dist/patterns/RangeInput/RangeInput.styles.d.ts.map +1 -0
- package/dist/patterns/RangeInput/RangeInput.styles.js +32 -0
- package/dist/patterns/SearchInput/SearchInput.d.ts +1 -1
- package/dist/patterns/SearchInput/SearchInput.d.ts.map +1 -1
- package/dist/patterns/SearchInput/SearchInput.js +7 -8
- package/dist/patterns/Searchbar/Searchbar.d.ts +28 -0
- package/dist/patterns/Searchbar/Searchbar.d.ts.map +1 -0
- package/dist/patterns/Searchbar/Searchbar.js +37 -0
- package/dist/patterns/Searchbar/Searchbar.stories.d.ts +70 -0
- package/dist/patterns/Searchbar/Searchbar.stories.d.ts.map +1 -0
- package/dist/patterns/Searchbar/Searchbar.stories.js +80 -0
- package/dist/patterns/Searchbar/Searchbar.styles.d.ts +3 -0
- package/dist/patterns/Searchbar/Searchbar.styles.d.ts.map +1 -0
- package/dist/patterns/Searchbar/Searchbar.styles.js +48 -0
- package/dist/patterns/TagCloud/TagCloud.d.ts +1 -1
- package/dist/patterns/index.d.ts +4 -0
- package/dist/patterns/index.d.ts.map +1 -1
- package/dist/patterns/index.js +2 -0
- package/dist/storybook/ColorFoundationList.js +2 -2
- package/dist/storybook/Popover.js +1 -0
- package/dist/theme/chotot.d.ts +8 -4
- package/dist/theme/chotot.d.ts.map +1 -1
- package/dist/theme/chotot.js +10 -6
- package/dist/theme/ct-job.d.ts +8 -4
- package/dist/theme/ct-job.d.ts.map +1 -1
- package/dist/theme/ct-pty.d.ts +8 -4
- package/dist/theme/ct-pty.d.ts.map +1 -1
- package/dist/theme/ct-veh.d.ts +8 -4
- package/dist/theme/ct-veh.d.ts.map +1 -1
- package/dist/theme/mudah.js +1 -1
- package/dist/typography/HeaderAnnotation.d.ts +19 -0
- package/dist/typography/HeaderAnnotation.d.ts.map +1 -0
- package/dist/typography/HeaderAnnotation.js +15 -0
- package/dist/typography/index.d.ts +2 -0
- package/dist/typography/index.d.ts.map +1 -1
- package/dist/typography/index.js +1 -0
- package/package.json +5 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import GhostButton from './GhostButton';
|
|
3
|
+
import { BUTTON_RADII, BUTTON_SIZES, BUTTON_WEIGHTS, GHOST_BUTTON_VARIANTS, GHOST_BUTTON_COLORS, } from './constant';
|
|
3
4
|
const ghostButtonStories = {
|
|
4
5
|
title: 'Components/Buttons/Ghost Button (Button Link)',
|
|
5
6
|
component: GhostButton,
|
|
@@ -16,10 +17,64 @@ except the \`as\` prop is always \`a\`.
|
|
|
16
17
|
},
|
|
17
18
|
},
|
|
18
19
|
argTypes: {
|
|
20
|
+
variant: {
|
|
21
|
+
control: { type: 'select' },
|
|
22
|
+
options: GHOST_BUTTON_VARIANTS,
|
|
23
|
+
description: 'Different looks of button',
|
|
24
|
+
},
|
|
25
|
+
color: {
|
|
26
|
+
control: { type: 'select' },
|
|
27
|
+
options: GHOST_BUTTON_COLORS,
|
|
28
|
+
description: 'Text color',
|
|
29
|
+
},
|
|
30
|
+
radius: {
|
|
31
|
+
control: { type: 'select' },
|
|
32
|
+
options: BUTTON_RADII,
|
|
33
|
+
description: 'Border radius',
|
|
34
|
+
},
|
|
35
|
+
weight: {
|
|
36
|
+
control: { type: 'select' },
|
|
37
|
+
options: BUTTON_WEIGHTS,
|
|
38
|
+
description: 'Font weight of label',
|
|
39
|
+
},
|
|
40
|
+
size: {
|
|
41
|
+
control: { type: 'select' },
|
|
42
|
+
options: BUTTON_SIZES,
|
|
43
|
+
description: "Button's size",
|
|
44
|
+
},
|
|
45
|
+
disabled: {
|
|
46
|
+
control: { type: 'boolean' },
|
|
47
|
+
description: 'Whether this button is disabled. No events triggered.',
|
|
48
|
+
},
|
|
49
|
+
stretch: {
|
|
50
|
+
control: { type: 'boolean' },
|
|
51
|
+
description: "Whether this button stretch to fill up container's width",
|
|
52
|
+
},
|
|
53
|
+
className: {
|
|
54
|
+
control: { type: 'text' },
|
|
55
|
+
description: 'Additional classes to be added for customization',
|
|
56
|
+
},
|
|
19
57
|
children: {
|
|
20
|
-
control: {
|
|
21
|
-
|
|
22
|
-
|
|
58
|
+
control: { type: 'text' },
|
|
59
|
+
description: 'Button content/label',
|
|
60
|
+
},
|
|
61
|
+
as: {
|
|
62
|
+
control: { type: 'select' },
|
|
63
|
+
options: ['button', 'a'],
|
|
64
|
+
description: 'HTML element or component to render as',
|
|
65
|
+
},
|
|
66
|
+
href: {
|
|
67
|
+
control: { type: 'text' },
|
|
68
|
+
description: 'URL for the link',
|
|
69
|
+
},
|
|
70
|
+
target: {
|
|
71
|
+
control: { type: 'select' },
|
|
72
|
+
options: ['_blank', '_self', '_parent', '_top'],
|
|
73
|
+
description: 'Where to open the linked document',
|
|
74
|
+
},
|
|
75
|
+
onClick: {
|
|
76
|
+
action: 'clicked',
|
|
77
|
+
description: 'Click event handler',
|
|
23
78
|
},
|
|
24
79
|
},
|
|
25
80
|
};
|
|
@@ -28,7 +83,7 @@ export const Overview = {
|
|
|
28
83
|
render: (args) => <GhostButton href="#" {...args}/>,
|
|
29
84
|
args: { children: 'This is a button link' },
|
|
30
85
|
};
|
|
31
|
-
export const ButtonVariant = (
|
|
86
|
+
export const ButtonVariant = () => (<div>
|
|
32
87
|
<GhostButton href="https://clad-ui.chotot.org/" target="_blank" variant="button" color="link">
|
|
33
88
|
Button Variant
|
|
34
89
|
</GhostButton>
|
|
@@ -42,7 +97,7 @@ export const ButtonVariant = ( /* args */) => (<div>
|
|
|
42
97
|
Button Variant
|
|
43
98
|
</GhostButton>
|
|
44
99
|
</div>);
|
|
45
|
-
export const HyperlinkVariant = (
|
|
100
|
+
export const HyperlinkVariant = () => (<div>
|
|
46
101
|
<GhostButton href="https://clad-ui.chotot.org/" target="_blank" variant="hyperlink" color="link">
|
|
47
102
|
Hyperlink Variant
|
|
48
103
|
</GhostButton>
|
|
@@ -56,7 +111,7 @@ export const HyperlinkVariant = ( /* args */) => (<div>
|
|
|
56
111
|
Hyperlink Variant
|
|
57
112
|
</GhostButton>
|
|
58
113
|
</div>);
|
|
59
|
-
export const ButtonWithNextLink = (
|
|
114
|
+
export const ButtonWithNextLink = () => {
|
|
60
115
|
// replace "a" with NextLink
|
|
61
116
|
const NextLink = 'a';
|
|
62
117
|
return (<div>
|
|
@@ -74,7 +129,7 @@ export const ButtonWithNextLink = ( /* args */) => {
|
|
|
74
129
|
</GhostButton>
|
|
75
130
|
</div>);
|
|
76
131
|
};
|
|
77
|
-
export const Disabled = (
|
|
132
|
+
export const Disabled = () => (<div>
|
|
78
133
|
<GhostButton variant="button" href="https://clad-ui.chotot.org/" target="_blank" disabled>
|
|
79
134
|
Disabled Button Variant
|
|
80
135
|
</GhostButton>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GhostButton.styles.d.ts","sourceRoot":"","sources":["../../../components/Button/GhostButton.styles.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"GhostButton.styles.d.ts","sourceRoot":"","sources":["../../../components/Button/GhostButton.styles.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,WAAW,0CAyLhB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import theme from '@clad-ui/theme';
|
|
2
2
|
import { css } from '@linaria/core';
|
|
3
|
-
const { colors, radii, fontSizes, fontWeights, typo } = theme;
|
|
3
|
+
const { colors, radii, fontSizes, fontWeights, typo, sizes, space } = theme;
|
|
4
4
|
const buttonClass = css `
|
|
5
5
|
/* Standard highlight for manual testing & verification */
|
|
6
6
|
outline: 1px solid var(--cladebug);
|
|
@@ -151,6 +151,22 @@ const buttonClass = css `
|
|
|
151
151
|
padding: 9px; /* minus borders */
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
+
&.xlarge {
|
|
155
|
+
height: ${sizes.xl};
|
|
156
|
+
padding: ${space.none} ${space.md}; /* minus borders 7px - 1px and space.md - 1px */
|
|
157
|
+
border-radius: ${radii.md};
|
|
158
|
+
|
|
159
|
+
${typo.label.page}
|
|
160
|
+
|
|
161
|
+
&.icon {
|
|
162
|
+
padding: 11px; /* minus border */
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
& > svg {
|
|
166
|
+
font-size: ${fontSizes.xxl};
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
154
170
|
/* Border radius */
|
|
155
171
|
&.r-normal {
|
|
156
172
|
border-radius: ${radii.sm};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../components/Button/IconButton.tsx"],"names":[],"mappings":"AACA,OAAe,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAGpD,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,WAAW,EAAE,SAAS,GAAG,MAAM,CAAC;CAAG;AAEjF;;;;GAIG;AAEH,QAAA,MAAM,UAAU,yFAEd,CAAC;
|
|
1
|
+
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../components/Button/IconButton.tsx"],"names":[],"mappings":"AACA,OAAe,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAGpD,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,WAAW,EAAE,SAAS,GAAG,MAAM,CAAC;CAAG;AAEjF;;;;GAIG;AAEH,QAAA,MAAM,UAAU,yFAEd,CAAC;AAIH,eAAe,UAAU,CAAC"}
|
|
@@ -10,11 +10,83 @@ declare const iconButtonStories: {
|
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
12
|
argTypes: {
|
|
13
|
-
|
|
13
|
+
variant: {
|
|
14
|
+
control: {
|
|
15
|
+
type: string;
|
|
16
|
+
};
|
|
17
|
+
options: import("./Button").ButtonVariant[];
|
|
18
|
+
description: string;
|
|
19
|
+
};
|
|
20
|
+
color: {
|
|
21
|
+
control: {
|
|
22
|
+
type: string;
|
|
23
|
+
};
|
|
24
|
+
options: import("./Button").ButtonColor[];
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
radius: {
|
|
28
|
+
control: {
|
|
29
|
+
type: string;
|
|
30
|
+
};
|
|
14
31
|
options: string[];
|
|
32
|
+
description: string;
|
|
33
|
+
};
|
|
34
|
+
weight: {
|
|
15
35
|
control: {
|
|
16
36
|
type: string;
|
|
17
37
|
};
|
|
38
|
+
options: string[];
|
|
39
|
+
description: string;
|
|
40
|
+
};
|
|
41
|
+
size: {
|
|
42
|
+
control: {
|
|
43
|
+
type: string;
|
|
44
|
+
};
|
|
45
|
+
options: string[];
|
|
46
|
+
description: string;
|
|
47
|
+
};
|
|
48
|
+
width: {
|
|
49
|
+
control: {
|
|
50
|
+
type: string;
|
|
51
|
+
};
|
|
52
|
+
options: string[];
|
|
53
|
+
description: string;
|
|
54
|
+
};
|
|
55
|
+
disabled: {
|
|
56
|
+
control: {
|
|
57
|
+
type: string;
|
|
58
|
+
};
|
|
59
|
+
description: string;
|
|
60
|
+
};
|
|
61
|
+
extraClasses: {
|
|
62
|
+
control: {
|
|
63
|
+
type: string;
|
|
64
|
+
};
|
|
65
|
+
description: string;
|
|
66
|
+
};
|
|
67
|
+
isLoading: {
|
|
68
|
+
control: {
|
|
69
|
+
type: string;
|
|
70
|
+
};
|
|
71
|
+
description: string;
|
|
72
|
+
};
|
|
73
|
+
children: {
|
|
74
|
+
control: {
|
|
75
|
+
type: string;
|
|
76
|
+
};
|
|
77
|
+
options: string[];
|
|
78
|
+
description: string;
|
|
79
|
+
};
|
|
80
|
+
as: {
|
|
81
|
+
control: {
|
|
82
|
+
type: string;
|
|
83
|
+
};
|
|
84
|
+
options: string[];
|
|
85
|
+
description: string;
|
|
86
|
+
};
|
|
87
|
+
onClick: {
|
|
88
|
+
action: string;
|
|
89
|
+
description: string;
|
|
18
90
|
};
|
|
19
91
|
};
|
|
20
92
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.stories.d.ts","sourceRoot":"","sources":["../../../components/Button/IconButton.stories.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IconButton.stories.d.ts","sourceRoot":"","sources":["../../../components/Button/IconButton.stories.tsx"],"names":[],"mappings":"AAkBA,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwEtB,CAAC;AAEF,eAAe,iBAAiB,CAAC;AAEjC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;CA0BpB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;CAwBpB,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;;CAgCxB,CAAC;AAEF,eAAO,MAAM,kBAAkB,mBA2C9B,CAAC"}
|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { css } from '@linaria/core';
|
|
3
3
|
import IconButton from './IconButton';
|
|
4
4
|
import * as iconComponents from '../../icons';
|
|
5
|
+
import { BUTTON_COLORS, BUTTON_RADII, BUTTON_SIZES, BUTTON_VARIANTS, BUTTON_WEIGHTS, SIZE_OPTIONS, } from './constant';
|
|
5
6
|
// get the list of monochrome icon names
|
|
6
7
|
const icons = Object.keys(iconComponents).filter((iconName) => iconComponents[iconName].type === 'monochrome');
|
|
7
8
|
const iconButtonStories = {
|
|
@@ -19,11 +20,61 @@ const iconButtonStories = {
|
|
|
19
20
|
},
|
|
20
21
|
},
|
|
21
22
|
argTypes: {
|
|
23
|
+
variant: {
|
|
24
|
+
control: { type: 'select' },
|
|
25
|
+
options: BUTTON_VARIANTS,
|
|
26
|
+
description: 'Different looks of button',
|
|
27
|
+
},
|
|
28
|
+
color: {
|
|
29
|
+
control: { type: 'select' },
|
|
30
|
+
options: BUTTON_COLORS,
|
|
31
|
+
description: 'Color of the background (solid) or stroke (outline) of the button',
|
|
32
|
+
},
|
|
33
|
+
radius: {
|
|
34
|
+
control: { type: 'select' },
|
|
35
|
+
options: BUTTON_RADII,
|
|
36
|
+
description: 'Border radius',
|
|
37
|
+
},
|
|
38
|
+
weight: {
|
|
39
|
+
control: { type: 'select' },
|
|
40
|
+
options: BUTTON_WEIGHTS,
|
|
41
|
+
description: 'Font weight of label',
|
|
42
|
+
},
|
|
43
|
+
size: {
|
|
44
|
+
control: { type: 'select' },
|
|
45
|
+
options: BUTTON_SIZES,
|
|
46
|
+
description: "Button's size",
|
|
47
|
+
},
|
|
48
|
+
width: {
|
|
49
|
+
control: { type: 'select' },
|
|
50
|
+
options: SIZE_OPTIONS,
|
|
51
|
+
description: 'Button width',
|
|
52
|
+
},
|
|
53
|
+
disabled: {
|
|
54
|
+
control: { type: 'boolean' },
|
|
55
|
+
description: 'Whether this button is disabled. No events triggered.',
|
|
56
|
+
},
|
|
57
|
+
extraClasses: {
|
|
58
|
+
control: { type: 'text' },
|
|
59
|
+
description: 'Additional classes to be added for customization',
|
|
60
|
+
},
|
|
61
|
+
isLoading: {
|
|
62
|
+
control: { type: 'boolean' },
|
|
63
|
+
description: 'Display loading icon',
|
|
64
|
+
},
|
|
65
|
+
children: {
|
|
66
|
+
control: { type: 'select' },
|
|
67
|
+
options: icons,
|
|
68
|
+
description: 'Icon component to display',
|
|
69
|
+
},
|
|
22
70
|
as: {
|
|
71
|
+
control: { type: 'select' },
|
|
23
72
|
options: ['button', 'a'],
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
73
|
+
description: 'HTML element or component to render as',
|
|
74
|
+
},
|
|
75
|
+
onClick: {
|
|
76
|
+
action: 'clicked',
|
|
77
|
+
description: 'Click event handler',
|
|
27
78
|
},
|
|
28
79
|
},
|
|
29
80
|
};
|
|
@@ -52,9 +103,7 @@ export const Overview = {
|
|
|
52
103
|
},
|
|
53
104
|
};
|
|
54
105
|
export const Variants = {
|
|
55
|
-
render: (
|
|
56
|
-
// Below is sample class definition, colors should be from theme
|
|
57
|
-
<div style={{ display: 'flex', gap: '8px' }}>
|
|
106
|
+
render: () => (<div style={{ display: 'flex', gap: '8px' }}>
|
|
58
107
|
<IconButton variant="default" color="primary" size="large">
|
|
59
108
|
<iconComponents.Heart />
|
|
60
109
|
</IconButton>
|
|
@@ -77,7 +126,7 @@ export const Variants = {
|
|
|
77
126
|
},
|
|
78
127
|
};
|
|
79
128
|
export const ExtraClasses = {
|
|
80
|
-
render: (
|
|
129
|
+
render: () => {
|
|
81
130
|
// Below is sample class definition, colors should be from theme
|
|
82
131
|
const extraClass = css `
|
|
83
132
|
border: none;
|
|
@@ -105,7 +154,7 @@ export const ExtraClasses = {
|
|
|
105
154
|
},
|
|
106
155
|
},
|
|
107
156
|
};
|
|
108
|
-
export const ButtonWithNextLink = (
|
|
157
|
+
export const ButtonWithNextLink = () => {
|
|
109
158
|
// replace "a" with NextLink
|
|
110
159
|
const NextLink = 'a';
|
|
111
160
|
return (<div style={{ display: 'flex', gap: '8px' }}>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type ButtonColor, type ButtonVariant } from './Button';
|
|
2
|
+
export declare const BUTTON_VARIANTS: ButtonVariant[];
|
|
3
|
+
export declare const BUTTON_COLORS: ButtonColor[];
|
|
4
|
+
export declare const BUTTON_SIZES: string[];
|
|
5
|
+
export declare const BUTTON_RADII: string[];
|
|
6
|
+
export declare const BUTTON_WEIGHTS: string[];
|
|
7
|
+
export declare const SIZE_OPTIONS: string[];
|
|
8
|
+
export declare const GHOST_BUTTON_VARIANTS: string[];
|
|
9
|
+
export declare const GHOST_BUTTON_COLORS: string[];
|
|
10
|
+
//# sourceMappingURL=constant.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constant.d.ts","sourceRoot":"","sources":["../../../components/Button/constant.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,aAAa,EAAE,MAAM,UAAU,CAAC;AAEhE,eAAO,MAAM,eAAe,EAAE,aAAa,EAA6C,CAAC;AACzF,eAAO,MAAM,aAAa,EAAE,WAAW,EAYtC,CAAC;AACF,eAAO,MAAM,YAAY,UAAyC,CAAC;AACnE,eAAO,MAAM,YAAY,UAA+B,CAAC;AACzD,eAAO,MAAM,cAAc,UAAqB,CAAC;AACjD,eAAO,MAAM,YAAY,UAA2B,CAAC;AACrD,eAAO,MAAM,qBAAqB,UAA0B,CAAC;AAC7D,eAAO,MAAM,mBAAmB,UAA+C,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import theme from '@clad-ui/theme';
|
|
2
|
+
export const BUTTON_VARIANTS = ['default', 'outline', 'solid', 'tonal'];
|
|
3
|
+
export const BUTTON_COLORS = [
|
|
4
|
+
'error',
|
|
5
|
+
'info',
|
|
6
|
+
'neutral',
|
|
7
|
+
'primary',
|
|
8
|
+
'success',
|
|
9
|
+
'tertiary',
|
|
10
|
+
'chotot',
|
|
11
|
+
'accent',
|
|
12
|
+
'caution',
|
|
13
|
+
'critical',
|
|
14
|
+
'positive',
|
|
15
|
+
];
|
|
16
|
+
export const BUTTON_SIZES = ['xlarge', 'large', 'medium', 'small'];
|
|
17
|
+
export const BUTTON_RADII = ['circle', 'normal', 'pill'];
|
|
18
|
+
export const BUTTON_WEIGHTS = ['bold', 'normal'];
|
|
19
|
+
export const SIZE_OPTIONS = Object.keys(theme.sizes);
|
|
20
|
+
export const GHOST_BUTTON_VARIANTS = ['button', 'hyperlink'];
|
|
21
|
+
export const GHOST_BUTTON_COLORS = ['link', 'primary', 'secondary', 'tertiary'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../components/DatePicker/DatePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA2B/B,KAAK,UAAU,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;AAGxE,oBAAY,UAAU;IACpB,QAAQ,eAAe;IACvB,IAAI,UAAU;IACd,MAAM,YAAY;CACnB;AAED,KAAK,eAAe,GAAG;IACrB;;OAEG;IACH,KAAK,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB;;OAEG;IACH,YAAY,CAAC,EAAE,IAAI,CAAC;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB;;OAEG;IACH,QAAQ,EAAE,CACR,KAAK,EAAE;QACL,OAAO,EAAE,IAAI,GAAG,IAAI,CAAC;QACrB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;QACpB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;QACrB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;KACrB,EACD,KAAK,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC,KACjF,IAAI,CAAC;IAEV;;;OAGG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,i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ACjB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,OAAO,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACtB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC,CAAC;AAyBF,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAumBzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -37,7 +37,7 @@ const generateDateValue = (date) => {
|
|
|
37
37
|
date: (_c = date === null || date === void 0 ? void 0 : date.getDate()) !== null && _c !== void 0 ? _c : null,
|
|
38
38
|
});
|
|
39
39
|
};
|
|
40
|
-
const DatePicker = ({ value, defaultValue = new Date(2025, 1, 1), label, required, onChange, onBlur = noop, onFocus = noop, onClickOutside = noop, onInputFocus = noop, onYearSelect = noop, onMonthSelect = noop, onNextMonthSelect = noop, onPrevMonthSelect = noop, onCalendarOpen = noop, onCalendarClose = noop, icon, disabled, disabledDates = [], disabledDatesFn, defaultOpen = false, minYear = 1900, maxYear = 2100, minDate = null, maxDate = null, allowClear = true, format = DateFormat.DdMmYyyy, helptext = '', hightlightCurrentDate = true, }) => {
|
|
40
|
+
const DatePicker = ({ value, defaultValue = new Date(2025, 1, 1), label, required, onChange, onBlur = noop, onFocus = noop, onClickOutside = noop, onInputFocus = noop, onYearSelect = noop, onMonthSelect = noop, onNextMonthSelect = noop, onPrevMonthSelect = noop, onCalendarOpen = noop, onCalendarClose = noop, icon, disabled, disabledDates = [], disabledDatesFn, defaultOpen = false, minYear = 1900, maxYear = 2100, minDate = null, maxDate = null, allowClear = true, allowInput = true, format = DateFormat.DdMmYyyy, helptext = '', hightlightCurrentDate = true, }) => {
|
|
41
41
|
const today = new Date();
|
|
42
42
|
const yearPanelRef = React.useRef(null);
|
|
43
43
|
const [showingMonth, setShowingMonth] = React.useState((value === null || value === void 0 ? void 0 : value.getMonth()) || defaultValue.getMonth());
|
|
@@ -361,8 +361,11 @@ const DatePicker = ({ value, defaultValue = new Date(2025, 1, 1), label, require
|
|
|
361
361
|
</CalendarBody>);
|
|
362
362
|
}, [value, showingMonth, showingYear, hightlightCurrentDate]);
|
|
363
363
|
const handleInputDate = (e) => {
|
|
364
|
+
if (!allowInput)
|
|
365
|
+
return;
|
|
364
366
|
const { value: valueTarget } = e.target;
|
|
365
367
|
const filteredValue = valueTarget.replace(/[^0-9/]/g, ''); // only allow number or "/"
|
|
368
|
+
setShowCalendar(false);
|
|
366
369
|
setInputValue(filteredValue);
|
|
367
370
|
};
|
|
368
371
|
const handleValidateInputValue = (e) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatePicker.stories.d.ts","sourceRoot":"","sources":["../../../components/DatePicker/DatePicker.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAmB,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAMtD,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;gBAiDoD,CAAC
|
|
1
|
+
{"version":3,"file":"DatePicker.stories.d.ts","sourceRoot":"","sources":["../../../components/DatePicker/DatePicker.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAmB,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAMtD,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;gBAiDoD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAnC3E,CAAC;AAEF,eAAe,iBAAiB,CAAC;AAajC,eAAO,MAAM,iBAAiB;;;;;;;;;;CAwB7B,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;CA2FlB,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;CAyBnC,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;CA4BnC,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;CAsCpC,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;CA6BzB,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;CA+BhC,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;CAqC1B,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;CAqC5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../components/Dropdown/Dropdown.tsx"],"names":[],"mappings":"AAEA,OAAc,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../components/Dropdown/Dropdown.tsx"],"names":[],"mappings":"AAEA,OAAc,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,QAAA,MAAM,WAAW,mBAAmC,CAAC;AAErD,KAAK,IAAI,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzC,KAAK,cAAc,GAAG;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;CAC3B,CAAC;AAEF,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC,GAAG,KAAK,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC;IACrF;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,cAAc,CAAC,CAAC;IAClD;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,CAAC;IACvD;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IACpD;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAC7B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,OAAO,CAAC,EAAE,cAAc,EAAE,CAAC;IAC3B;;OAEG;IACH,KAAK,CAAC,EAAE,IAAI,CAAC;IACb,aAAa,CAAC,EAAE,KAAK,CAAC;IACtB;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAC1B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;;GAIG;AACH,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAuNrC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -7,6 +7,7 @@ import noop from '../../utils/noop';
|
|
|
7
7
|
import ChevronDownFilled from '../../icons/ChevronDownFilled';
|
|
8
8
|
import inputClasses, { Container, InputWrapper, Paragraph } from '../Input/Input.styles';
|
|
9
9
|
import { Menu, Item, LeftIcon } from './Dropdown.styles';
|
|
10
|
+
import SvgCheck from '../../icons/Check';
|
|
10
11
|
const { sizes, colors } = theme;
|
|
11
12
|
const keysOfSizes = [...Object.keys(sizes)];
|
|
12
13
|
/**
|
|
@@ -129,6 +130,10 @@ const Dropdown = ({ className = '', id = '', name = '', label = '', value = '',
|
|
|
129
130
|
{options.map((option) => (<Item role="menuitem" key={option.value} value={option.value} onClick={handleOptionClick} className={option.value === value ? 'selected' : ''}>
|
|
130
131
|
{option.icon}
|
|
131
132
|
{option.label}
|
|
133
|
+
|
|
134
|
+
{option.value === value ? (<span className="check-icon">
|
|
135
|
+
<SvgCheck />
|
|
136
|
+
</span>) : null}
|
|
132
137
|
</Item>))}
|
|
133
138
|
</Menu>)
|
|
134
139
|
: null}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dropdown.styles.d.ts","sourceRoot":"","sources":["../../../components/Dropdown/Dropdown.styles.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,IAAI;;EAYT,CAAC;AAEF,QAAA,MAAM,IAAI;;
|
|
1
|
+
{"version":3,"file":"Dropdown.styles.d.ts","sourceRoot":"","sources":["../../../components/Dropdown/Dropdown.styles.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,IAAI;;EAYT,CAAC;AAEF,QAAA,MAAM,IAAI;;EAoCT,CAAC;AAEF,QAAA,MAAM,QAAQ;;EAMb,CAAC;AAEF,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { styled } from '@linaria/react';
|
|
2
2
|
import theme from '@clad-ui/theme';
|
|
3
|
-
const { colors, space, radii, borders, zIndices } = theme;
|
|
3
|
+
const { colors, space, radii, borders, zIndices, typo, sizes } = theme;
|
|
4
4
|
const Menu = styled.ul `
|
|
5
5
|
background: white;
|
|
6
6
|
border: ${borders.sm};
|
|
@@ -22,10 +22,34 @@ const Item = styled.li `
|
|
|
22
22
|
cursor: pointer;
|
|
23
23
|
padding: ${space.xs} ${space.md};
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
${typo.body.section}
|
|
26
|
+
|
|
27
|
+
label {
|
|
28
|
+
margin-bottom: ${space.none};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&:hover {
|
|
27
32
|
background-color: ${colors.backgroundSecondary};
|
|
28
33
|
}
|
|
34
|
+
|
|
35
|
+
&.selected {
|
|
36
|
+
${typo.label.section}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.check-icon {
|
|
40
|
+
background-color: ${colors.backgroundBrand};
|
|
41
|
+
width: ${sizes.xs};
|
|
42
|
+
height: ${sizes.xs};
|
|
43
|
+
border-radius: ${radii.circle};
|
|
44
|
+
display: flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
justify-content: center;
|
|
47
|
+
margin-left: auto;
|
|
48
|
+
|
|
49
|
+
svg {
|
|
50
|
+
color: ${colors.iconOnBackground};
|
|
51
|
+
}
|
|
52
|
+
}
|
|
29
53
|
`;
|
|
30
54
|
const LeftIcon = styled.div `
|
|
31
55
|
display: flex;
|
|
@@ -67,7 +67,7 @@ export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement>
|
|
|
67
67
|
*/
|
|
68
68
|
status?: 'default' | 'error' | 'success';
|
|
69
69
|
/**
|
|
70
|
-
*
|
|
70
|
+
* Prompt a helptext below input (useful when implemented with form validation)
|
|
71
71
|
*/
|
|
72
72
|
helptext?: string;
|
|
73
73
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../components/Input/Input.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAc,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAgBnD,MAAM,WAAW,UAA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ACxB;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAGD;;;;GAIG;AAEH,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAgP/B,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -44,7 +44,20 @@ const Input = ({ id = '', name = '', type = 'text', label = '', value = '', onCh
|
|
|
44
44
|
const className = cx(inputClasses, inputFocusClasses, value && 'hasValue', !label && 'noLabel', required && 'required', (allowClear || tooltip || showValidationIcon) && 'showRightIcon', placeholder && 'hasPlaceholder');
|
|
45
45
|
const handleClearInput = (e) => {
|
|
46
46
|
if (allowClear) {
|
|
47
|
-
|
|
47
|
+
if (type === 'number' && (ref === null || ref === void 0 ? void 0 : ref.current)) {
|
|
48
|
+
// For number inputs, manually clear and trigger onChange
|
|
49
|
+
// since onNumberInputChange blocks empty string changes unless from keyboard events
|
|
50
|
+
ref.current.value = '';
|
|
51
|
+
const syntheticEvent = {
|
|
52
|
+
target: ref.current,
|
|
53
|
+
currentTarget: ref.current,
|
|
54
|
+
};
|
|
55
|
+
onChange(syntheticEvent);
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
// For other input types, use simulateChangeEvent which triggers onChange via dispatchEvent
|
|
59
|
+
simulateChangeEvent(ref, '');
|
|
60
|
+
}
|
|
48
61
|
}
|
|
49
62
|
if (onClear) {
|
|
50
63
|
onClear(e);
|
|
@@ -139,7 +152,7 @@ const Input = ({ id = '', name = '', type = 'text', label = '', value = '', onCh
|
|
|
139
152
|
{icon ? <LeftIcon>{icon}</LeftIcon> : null}
|
|
140
153
|
<input {...attrs} onBlur={type === 'number' ? onNumberInputBlur : onBlur} onChange={type === 'number' ? onNumberInputChange : onChange} onKeyDown={handleKeyDown} ref={ref} {...props}/>
|
|
141
154
|
{!!label && <label htmlFor={id}>{label}</label>}
|
|
142
|
-
{!!isAllowClear && (<button tabIndex={-1} type="button" onClick={handleClearInput}>
|
|
155
|
+
{!!isAllowClear && !disabled && (<button tabIndex={-1} type="button" onClick={handleClearInput}>
|
|
143
156
|
<CloseFilled width="20px" height="30px" color={colors.iconTertiary}/>
|
|
144
157
|
</button>)}
|
|
145
158
|
{!!isShowPassword && (<button tabIndex={-1} type="button" onClick={handleShowPassword} ref={showPasswordRef}>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageItem.d.ts","sourceRoot":"","sources":["../../../components/Pagination/PageItem.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGnE,MAAM,WAAW,aAAc,SAAQ,eAAe,CAAC,QAAQ,CAAC;IAC9D;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,GAAG,CAAC,EAAE,QAAQ,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;CAC1C;AAED,QAAA,MAAM,QAAQ,uFAWZ,CAAC;
|
|
1
|
+
{"version":3,"file":"PageItem.d.ts","sourceRoot":"","sources":["../../../components/Pagination/PageItem.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGnE,MAAM,WAAW,aAAc,SAAQ,eAAe,CAAC,QAAQ,CAAC;IAC9D;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,GAAG,CAAC,EAAE,QAAQ,CAAC,iBAAiB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W,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,gBAAgB,CAAC,EAAE,CAAC,WAAW,EAAE,OAAO,KAAK,IAAI,CAAC;IAClD;;OAEG;IACH,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACtC;AAGD;;;;GAIG;AAEH,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAmJnC,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -95,17 +95,14 @@ const RowItem = ({ name, size = 'md', icon, border = 'none', type = 'list', inve
|
|
|
95
95
|
}
|
|
96
96
|
};
|
|
97
97
|
const handleClickRowItem = (e) => {
|
|
98
|
-
if (type === 'list') {
|
|
98
|
+
if (type === 'list' || type === 'chevron' || type === 'accordion') {
|
|
99
99
|
onClick(e);
|
|
100
100
|
}
|
|
101
101
|
else {
|
|
102
102
|
onRowPrivateClick(e);
|
|
103
103
|
}
|
|
104
|
-
if (onCollapseChange) {
|
|
105
|
-
|
|
106
|
-
if (onCollapseChange) {
|
|
107
|
-
onCollapseChange(newValue);
|
|
108
|
-
}
|
|
104
|
+
if (type === 'accordion' && onCollapseChange) {
|
|
105
|
+
onCollapseChange(!isCollapsed);
|
|
109
106
|
}
|
|
110
107
|
};
|
|
111
108
|
return (<React.Fragment>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tab.d.ts","sourceRoot":"","sources":["../../../components/Tabs/Tab.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGnE,MAAM,WAAW,QAAS,SAAQ,eAAe,CAAC,QAAQ,EAAE,SAAS,CAAC;IACpE;;OAEG;IACH,GAAG,CAAC,EAAE,QAAQ,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;IACzC;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CA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