@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.
@@ -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: string;
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) => {
@@ -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, icon, image, size, selected, onFocus, onBlur }: SelectToggleProps) => import("react/jsx-runtime").JSX.Element;
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;
@@ -19,3 +19,4 @@ export declare const Solid: Story;
19
19
  export declare const Filled: Story;
20
20
  export declare const Outline: Story;
21
21
  export declare const Custom: Story;
22
+ export declare const WithIcon: Story;
@@ -6,8 +6,8 @@ export type SelectProps = {
6
6
  defaultValue?: string | number;
7
7
  value?: string | number;
8
8
  label?: string;
9
- position?: string;
10
- direction?: string;
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: string;
38
- image: string;
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" | "x-small" | "medium" | "default" | "x-large" | "df";
2
+ export default function GetSizeBySizeSlug(size: ITDSizeSlug): "large" | "small" | "default" | "x-small" | "medium" | "x-large" | "df";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inntechcorp/it-design",
3
- "version": "2.0.78",
3
+ "version": "2.0.80",
4
4
  "description": "All in one Design library for desktop applications.",
5
5
  "author": "Inn.Tech",
6
6
  "license": "ISC",