@inntechcorp/it-design 2.0.78 → 2.0.80
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/accordion/submenu/styled.d.ts +4 -1
- package/dist/global.css +21 -14
- package/dist/index.cjs.js +62 -59
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +7 -5
- package/dist/index.esm.js +55 -52
- package/dist/{output-DfOH-aLb.css → output-DCvuWNga.css} +26 -26
- package/dist/select/style.settings.d.ts +6 -1
- package/dist/select/styled.d.ts +2 -0
- package/dist/select/toggle/Toggle.d.ts +1 -1
- package/dist/stories/Select.stories.d.ts +1 -0
- package/dist/types/SelectProps.d.ts +6 -4
- package/dist/utils/GetSizeBySizeSlug.d.ts +1 -1
- package/package.json +1 -1
|
@@ -61,32 +61,6 @@
|
|
|
61
61
|
-webkit-box-shadow: 0 0 0 30px #151d3d inset !important;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
.option {
|
|
65
|
-
display: flex;
|
|
66
|
-
align-items: center;
|
|
67
|
-
cursor: pointer;
|
|
68
|
-
min-width: max-content;
|
|
69
|
-
padding: 10px 30px 10px 15px;
|
|
70
|
-
}
|
|
71
|
-
.option:not(:last-child) {
|
|
72
|
-
margin-bottom: 1px;
|
|
73
|
-
}
|
|
74
|
-
.option:hover {
|
|
75
|
-
background-color: rgba(29, 38, 73, 0.5019607843);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.selected .single, .selected .option span {
|
|
79
|
-
color: #ffffff;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.single, .option span {
|
|
83
|
-
color: rgba(255, 255, 255, 0.6666666667);
|
|
84
|
-
font-weight: 400;
|
|
85
|
-
font-size: 12px;
|
|
86
|
-
line-height: 12px;
|
|
87
|
-
white-space: nowrap;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
64
|
.arrow {
|
|
91
65
|
transition: all 0.25s ease-out;
|
|
92
66
|
margin-left: auto;
|
|
@@ -182,6 +156,32 @@
|
|
|
182
156
|
transition: height 150ms ease-out;
|
|
183
157
|
}
|
|
184
158
|
|
|
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;
|
|
@@ -7,7 +7,12 @@ export declare const getArrowSizeBySize: (size: string) => {
|
|
|
7
7
|
height: number;
|
|
8
8
|
};
|
|
9
9
|
export declare const getOptionSizeBySize: (size: string) => {
|
|
10
|
-
padding:
|
|
10
|
+
padding: {
|
|
11
|
+
top: string;
|
|
12
|
+
right: string;
|
|
13
|
+
bottom: string;
|
|
14
|
+
left: string;
|
|
15
|
+
};
|
|
11
16
|
height: number;
|
|
12
17
|
};
|
|
13
18
|
export declare const getSelectSizeBySize: (size: string) => {
|
package/dist/select/styled.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
declare const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
3
3
|
$size: string;
|
|
4
|
+
$hasImage?: boolean | undefined;
|
|
5
|
+
$hasIcon?: boolean | undefined;
|
|
4
6
|
}>> & string;
|
|
5
7
|
export { Wrapper };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { SelectToggleProps } from '../../index';
|
|
2
|
-
declare const Toggle: ({ id, label, value, errorMessage, isOpen, locked, disabled, showSearch, labelType, placeholder,
|
|
2
|
+
declare const Toggle: ({ id, label, value, errorMessage, isOpen, locked, disabled, showSearch, labelType, placeholder, size, selected, icon, image, onFocus, onBlur }: SelectToggleProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default Toggle;
|
|
@@ -6,8 +6,8 @@ export type SelectProps = {
|
|
|
6
6
|
defaultValue?: string | number;
|
|
7
7
|
value?: string | number;
|
|
8
8
|
label?: string;
|
|
9
|
-
position?:
|
|
10
|
-
direction?:
|
|
9
|
+
position?: SelectPosition;
|
|
10
|
+
direction?: SelectDirection;
|
|
11
11
|
mode?: string;
|
|
12
12
|
size?: ITDSize;
|
|
13
13
|
variant?: SelectVariant;
|
|
@@ -34,8 +34,8 @@ export type SelectToggleProps = {
|
|
|
34
34
|
disabled: boolean;
|
|
35
35
|
labelType: string;
|
|
36
36
|
placeholder: string;
|
|
37
|
-
icon
|
|
38
|
-
image
|
|
37
|
+
icon?: string;
|
|
38
|
+
image?: string;
|
|
39
39
|
size: ITDSize;
|
|
40
40
|
selected: SelectOptionProps;
|
|
41
41
|
onFocus: () => void;
|
|
@@ -43,6 +43,8 @@ export type SelectToggleProps = {
|
|
|
43
43
|
onChange: (open: boolean) => void;
|
|
44
44
|
};
|
|
45
45
|
export type SelectVariant = "default" | "solid" | "filled" | "outline" | "custom";
|
|
46
|
+
export type SelectPosition = "top" | "bottom";
|
|
47
|
+
export type SelectDirection = "right" | "left";
|
|
46
48
|
export type SelectOptionProps = {
|
|
47
49
|
value: string;
|
|
48
50
|
text: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ITDSizeSlug } from "../index";
|
|
2
|
-
export default function GetSizeBySizeSlug(size: ITDSizeSlug): "large" | "small" | "
|
|
2
|
+
export default function GetSizeBySizeSlug(size: ITDSizeSlug): "large" | "small" | "default" | "x-small" | "medium" | "x-large" | "df";
|