@inntechcorp/it-design 2.0.126 → 2.0.128
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/dist/calendar/index.d.ts +3 -4
- package/dist/index.cjs.js +69 -71
- package/dist/index.d.ts +10 -10
- package/dist/index.esm.js +30 -32
- package/dist/{output-DCvuWNga.css → output-DjWTgiS1.css} +26 -26
- package/dist/select/menu/Menu.d.ts +3 -3
- package/dist/select/option/Option.d.ts +5 -5
- package/dist/stories/Select.stories.d.ts +1 -0
- package/dist/types/SelectProps.d.ts +2 -2
- package/package.json +1 -1
|
@@ -90,6 +90,32 @@
|
|
|
90
90
|
align-items: center;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
+
.option {
|
|
94
|
+
display: flex;
|
|
95
|
+
align-items: center;
|
|
96
|
+
cursor: pointer;
|
|
97
|
+
min-width: max-content;
|
|
98
|
+
padding: 10px 30px 10px 15px;
|
|
99
|
+
}
|
|
100
|
+
.option:not(:last-child) {
|
|
101
|
+
margin-bottom: 1px;
|
|
102
|
+
}
|
|
103
|
+
.option:hover {
|
|
104
|
+
background-color: rgba(29, 38, 73, 0.5019607843);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.selected .single, .selected .option span {
|
|
108
|
+
color: #ffffff;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.single, .option span {
|
|
112
|
+
color: rgba(255, 255, 255, 0.6666666667);
|
|
113
|
+
font-weight: 400;
|
|
114
|
+
font-size: 12px;
|
|
115
|
+
line-height: 12px;
|
|
116
|
+
white-space: nowrap;
|
|
117
|
+
}
|
|
118
|
+
|
|
93
119
|
.menu {
|
|
94
120
|
background-color: #050A20;
|
|
95
121
|
border-radius: 0 5px 5px 5px;
|
|
@@ -156,32 +182,6 @@
|
|
|
156
182
|
transition: height 150ms ease-out;
|
|
157
183
|
}
|
|
158
184
|
|
|
159
|
-
.option {
|
|
160
|
-
display: flex;
|
|
161
|
-
align-items: center;
|
|
162
|
-
cursor: pointer;
|
|
163
|
-
min-width: max-content;
|
|
164
|
-
padding: 10px 30px 10px 15px;
|
|
165
|
-
}
|
|
166
|
-
.option:not(:last-child) {
|
|
167
|
-
margin-bottom: 1px;
|
|
168
|
-
}
|
|
169
|
-
.option:hover {
|
|
170
|
-
background-color: rgba(29, 38, 73, 0.5019607843);
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
.selected .single, .selected .option span {
|
|
174
|
-
color: #ffffff;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
.single, .option span {
|
|
178
|
-
color: rgba(255, 255, 255, 0.6666666667);
|
|
179
|
-
font-weight: 400;
|
|
180
|
-
font-size: 12px;
|
|
181
|
-
line-height: 12px;
|
|
182
|
-
white-space: nowrap;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
185
|
.container {
|
|
186
186
|
display: flex;
|
|
187
187
|
align-items: center;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ChildrenProps } from 'types/ChildrenProps';
|
|
2
2
|
import { SelectValue } from 'types/SelectProps';
|
|
3
3
|
type MenuProps = {
|
|
4
|
-
value
|
|
4
|
+
value?: SelectValue;
|
|
5
5
|
position: string;
|
|
6
6
|
direction: string;
|
|
7
|
-
|
|
7
|
+
multi: boolean;
|
|
8
8
|
children: ChildrenProps;
|
|
9
9
|
onChange: (value: string | string[] | number | number[], label?: string) => void;
|
|
10
10
|
onClose: () => void;
|
|
11
11
|
isOpen: boolean;
|
|
12
12
|
};
|
|
13
|
-
export default function Menu({
|
|
13
|
+
export default function Menu({ position, direction, multi, isOpen, value, children, onChange, onClose }: MenuProps): import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
export {};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ChildrenProps } from 'types/ChildrenProps';
|
|
3
|
+
import { SelectValue } from 'types/SelectProps';
|
|
3
4
|
type OptionsRefProps = {
|
|
4
|
-
getValue: () =>
|
|
5
|
+
getValue: () => SelectValue;
|
|
5
6
|
};
|
|
6
7
|
type OptionsProps = {
|
|
7
8
|
icon?: string;
|
|
8
9
|
image?: string;
|
|
9
|
-
value?:
|
|
10
|
-
|
|
10
|
+
value?: SelectValue;
|
|
11
|
+
multi?: boolean;
|
|
11
12
|
checked?: false;
|
|
12
|
-
|
|
13
|
-
onChange?: (value: string, checked: boolean, children: ChildrenProps) => null;
|
|
13
|
+
onChange?: (value: SelectValue, checked: boolean, children: ChildrenProps) => null;
|
|
14
14
|
children?: ChildrenProps;
|
|
15
15
|
};
|
|
16
16
|
declare const _default: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<OptionsProps & import("react").RefAttributes<OptionsRefProps>>>;
|
|
@@ -8,7 +8,7 @@ export type SelectProps = {
|
|
|
8
8
|
label?: string;
|
|
9
9
|
position?: SelectPosition;
|
|
10
10
|
direction?: SelectDirection;
|
|
11
|
-
|
|
11
|
+
multi?: boolean;
|
|
12
12
|
size?: ITDSize;
|
|
13
13
|
variant?: SelectVariant;
|
|
14
14
|
className?: string;
|
|
@@ -27,7 +27,7 @@ export type SelectProps = {
|
|
|
27
27
|
export type SelectToggleProps = {
|
|
28
28
|
id?: string;
|
|
29
29
|
label: string;
|
|
30
|
-
value
|
|
30
|
+
value?: SelectValue;
|
|
31
31
|
errorMessage: string;
|
|
32
32
|
isOpen: boolean;
|
|
33
33
|
showSearch: boolean;
|