@inntechcorp/it-design 2.0.139 → 2.0.141
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/index.cjs.js +30 -30
- package/dist/index.d.ts +26 -23
- package/dist/index.esm.js +30 -30
- package/dist/{output-DjWTgiS1.css → output-BwpNST6S.css} +29 -29
- package/dist/select/index.d.ts +0 -1
- package/dist/select/menu/Menu.d.ts +1 -1
- package/dist/select/option/Option.d.ts +10 -10
- package/dist/select/toggle/Toggle.d.ts +1 -1
- package/dist/select/toggle/label/floating/FloatingLabel.d.ts +4 -3
- package/dist/select/toggle/label/single/SingleLabel.d.ts +4 -3
- package/dist/status/index.d.ts +1 -1
- package/dist/types/ChildrenProps.d.ts +1 -1
- package/dist/types/SelectProps.d.ts +16 -14
- package/dist/types/StatusProps.d.ts +1 -0
- package/package.json +1 -1
|
@@ -61,35 +61,6 @@
|
|
|
61
61
|
-webkit-box-shadow: 0 0 0 30px #151d3d inset !important;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
.arrow {
|
|
65
|
-
transition: all 0.25s ease-out;
|
|
66
|
-
margin-left: auto;
|
|
67
|
-
transform: rotate(0deg);
|
|
68
|
-
width: 20px;
|
|
69
|
-
height: 20px;
|
|
70
|
-
fill: rgba(255, 255, 255, 0.6);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.arrowNormal {
|
|
74
|
-
margin-left: auto;
|
|
75
|
-
transform: rotate(-90deg);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.arrowOpen {
|
|
79
|
-
transform: rotate(-180deg);
|
|
80
|
-
fill: #ffffff;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.icon {
|
|
84
|
-
margin-right: 8px;
|
|
85
|
-
height: 22px;
|
|
86
|
-
width: 22px;
|
|
87
|
-
color: rgba(255, 255, 255, 0.6);
|
|
88
|
-
font-size: 22px;
|
|
89
|
-
display: flex;
|
|
90
|
-
align-items: center;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
64
|
.option {
|
|
94
65
|
display: flex;
|
|
95
66
|
align-items: center;
|
|
@@ -182,6 +153,35 @@
|
|
|
182
153
|
transition: height 150ms ease-out;
|
|
183
154
|
}
|
|
184
155
|
|
|
156
|
+
.arrow {
|
|
157
|
+
transition: all 0.25s ease-out;
|
|
158
|
+
margin-left: auto;
|
|
159
|
+
transform: rotate(0deg);
|
|
160
|
+
width: 20px;
|
|
161
|
+
height: 20px;
|
|
162
|
+
fill: rgba(255, 255, 255, 0.6);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.arrowNormal {
|
|
166
|
+
margin-left: auto;
|
|
167
|
+
transform: rotate(-90deg);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.arrowOpen {
|
|
171
|
+
transform: rotate(-180deg);
|
|
172
|
+
fill: #ffffff;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.icon {
|
|
176
|
+
margin-right: 8px;
|
|
177
|
+
height: 22px;
|
|
178
|
+
width: 22px;
|
|
179
|
+
color: rgba(255, 255, 255, 0.6);
|
|
180
|
+
font-size: 22px;
|
|
181
|
+
display: flex;
|
|
182
|
+
align-items: center;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
185
|
.container {
|
|
186
186
|
display: flex;
|
|
187
187
|
align-items: center;
|
package/dist/select/index.d.ts
CHANGED
|
@@ -6,5 +6,4 @@ type SelectSubComponentProps = {
|
|
|
6
6
|
};
|
|
7
7
|
type SelectComponentProps = ForwardRefExoticComponent<PropsWithoutRef<SelectProps> & RefAttributes<ITDImperativeFuncProps>> & SelectSubComponentProps;
|
|
8
8
|
declare const Select: SelectComponentProps;
|
|
9
|
-
export { Option };
|
|
10
9
|
export default Select;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChildrenProps } from 'types/ChildrenProps';
|
|
2
2
|
import { SelectValue } from 'types/SelectProps';
|
|
3
3
|
type MenuProps = {
|
|
4
|
-
defaultValue?: SelectValue |
|
|
4
|
+
defaultValue?: SelectValue | null;
|
|
5
5
|
position: string;
|
|
6
6
|
direction: string;
|
|
7
7
|
multi: boolean;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ChildrenProps } from 'types/ChildrenProps';
|
|
3
2
|
import { SelectValue } from 'types/SelectProps';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
type OptionsProps = {
|
|
8
|
-
icon?: string;
|
|
3
|
+
import { ChildrenProps } from 'types/ChildrenProps';
|
|
4
|
+
export type OptionsTypeProps = {
|
|
5
|
+
icon?: ChildrenProps;
|
|
9
6
|
image?: string;
|
|
7
|
+
label?: ChildrenProps;
|
|
10
8
|
value?: SelectValue;
|
|
11
9
|
multi?: boolean;
|
|
12
|
-
checked?:
|
|
13
|
-
onChange?: (value: SelectValue, checked: boolean,
|
|
14
|
-
children?: ChildrenProps;
|
|
10
|
+
checked?: boolean;
|
|
11
|
+
onChange?: (value: SelectValue, checked: boolean, label: ChildrenProps) => null;
|
|
15
12
|
};
|
|
16
|
-
declare const _default: import("react").MemoExoticComponent<
|
|
13
|
+
declare const _default: import("react").MemoExoticComponent<{
|
|
14
|
+
({ multi, checked, icon, image, value, onChange, label }: OptionsTypeProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
displayName: string;
|
|
16
|
+
}>;
|
|
17
17
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { SelectToggleProps } from '../../index';
|
|
2
|
-
declare const Toggle: ({ id,
|
|
2
|
+
declare const Toggle: ({ id, errorMessage, isOpen, locked, disabled, showSearch, labelType, size, placeholder, value, label, icon, image, onFocus, onBlur, onShow, onFilter }: SelectToggleProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default Toggle;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { SelectValue } from 'types/SelectProps';
|
|
2
|
+
import { ChildrenProps } from 'types/ChildrenProps';
|
|
2
3
|
type FloatingLabelProps = {
|
|
3
4
|
id?: string;
|
|
4
|
-
value
|
|
5
|
-
label
|
|
5
|
+
value?: SelectValue | null;
|
|
6
|
+
label?: ChildrenProps;
|
|
6
7
|
placeholder: string;
|
|
7
8
|
size: string;
|
|
8
9
|
};
|
|
9
|
-
declare const FloatingLabel: ({ id, value, label, placeholder
|
|
10
|
+
declare const FloatingLabel: ({ id, size, value, label, placeholder }: FloatingLabelProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
export default FloatingLabel;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { SelectValue } from 'types/SelectProps';
|
|
3
|
+
import { ChildrenProps } from 'types/ChildrenProps';
|
|
3
4
|
export type SingleLabelRefObject = {
|
|
4
5
|
setFocus: () => void;
|
|
5
6
|
};
|
|
6
7
|
type SingleLabelProps = {
|
|
7
8
|
id?: string;
|
|
8
|
-
value
|
|
9
|
-
label
|
|
10
|
-
placeholder
|
|
9
|
+
value?: SelectValue | null;
|
|
10
|
+
label?: ChildrenProps;
|
|
11
|
+
placeholder?: string;
|
|
11
12
|
size: string;
|
|
12
13
|
isOpen: boolean;
|
|
13
14
|
showSearch: boolean;
|
package/dist/status/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { StatusProps } from '../index';
|
|
2
|
-
export default function Status({ variant, size, children, className, }: StatusProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export default function Status({ variant, size, stretch, children, className, }: StatusProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { CSSProperties
|
|
2
|
-
import { ChildrenProps } from "./ChildrenProps";
|
|
1
|
+
import { CSSProperties } from "react";
|
|
3
2
|
import { ITDSize } from "../index";
|
|
3
|
+
import { ChildrenProps } from "./ChildrenProps";
|
|
4
4
|
export type SelectProps = {
|
|
5
5
|
id?: string;
|
|
6
|
-
defaultValue?: SelectValue
|
|
7
|
-
value?: SelectValue
|
|
8
|
-
label?:
|
|
6
|
+
defaultValue?: SelectValue;
|
|
7
|
+
value?: SelectValue;
|
|
8
|
+
label?: ChildrenProps;
|
|
9
9
|
position?: SelectPosition;
|
|
10
10
|
direction?: SelectDirection;
|
|
11
11
|
multi?: boolean;
|
|
@@ -20,15 +20,16 @@ export type SelectProps = {
|
|
|
20
20
|
locked?: boolean;
|
|
21
21
|
floating?: boolean;
|
|
22
22
|
style?: CSSProperties;
|
|
23
|
-
|
|
23
|
+
options?: SelectOptionProps[];
|
|
24
24
|
onChange?: ((value: SelectValue) => void) | null;
|
|
25
25
|
onUpdate?: ((value: SelectValue, update?: boolean, validation?: boolean) => void) | null;
|
|
26
26
|
};
|
|
27
27
|
export type SelectToggleProps = {
|
|
28
28
|
id?: string;
|
|
29
|
-
label
|
|
30
|
-
value?: SelectValue;
|
|
29
|
+
label?: ChildrenProps;
|
|
30
|
+
value?: SelectValue | null;
|
|
31
31
|
errorMessage: string;
|
|
32
|
+
multi: boolean;
|
|
32
33
|
isOpen: boolean;
|
|
33
34
|
showSearch: boolean;
|
|
34
35
|
locked: boolean;
|
|
@@ -38,18 +39,19 @@ export type SelectToggleProps = {
|
|
|
38
39
|
icon?: string;
|
|
39
40
|
image?: string;
|
|
40
41
|
size: ITDSize;
|
|
41
|
-
selected: SelectOptionProps;
|
|
42
42
|
onFocus: () => void;
|
|
43
43
|
onBlur: () => void;
|
|
44
44
|
onShow: (value: boolean) => void;
|
|
45
45
|
onFilter: (value: string) => void;
|
|
46
46
|
onChange: (open: boolean) => void;
|
|
47
47
|
};
|
|
48
|
-
export type
|
|
48
|
+
export type SelectOptionProps = {
|
|
49
|
+
label: ChildrenProps;
|
|
50
|
+
value: SelectValue;
|
|
51
|
+
icon?: ChildrenProps;
|
|
52
|
+
disabled?: boolean;
|
|
53
|
+
};
|
|
54
|
+
export type SelectValue = string | number | (string | number)[];
|
|
49
55
|
export type SelectVariant = "default" | "solid" | "filled" | "outline" | "custom";
|
|
50
56
|
export type SelectPosition = "top" | "bottom";
|
|
51
57
|
export type SelectDirection = "right" | "left";
|
|
52
|
-
export type SelectOptionProps = {
|
|
53
|
-
value: string;
|
|
54
|
-
children: string;
|
|
55
|
-
};
|