@inntechcorp/it-design 2.0.82 → 2.0.84

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,6 +61,61 @@
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
+ .arrow {
91
+ transition: all 0.25s ease-out;
92
+ margin-left: auto;
93
+ transform: rotate(0deg);
94
+ width: 20px;
95
+ height: 20px;
96
+ fill: rgba(255, 255, 255, 0.6);
97
+ }
98
+
99
+ .arrowNormal {
100
+ margin-left: auto;
101
+ transform: rotate(-90deg);
102
+ }
103
+
104
+ .arrowOpen {
105
+ transform: rotate(-180deg);
106
+ fill: #ffffff;
107
+ }
108
+
109
+ .icon {
110
+ margin-right: 8px;
111
+ height: 22px;
112
+ width: 22px;
113
+ color: rgba(255, 255, 255, 0.6);
114
+ font-size: 22px;
115
+ display: flex;
116
+ align-items: center;
117
+ }
118
+
64
119
  .menu {
65
120
  background-color: #050A20;
66
121
  border-radius: 0 5px 5px 5px;
@@ -127,61 +182,6 @@
127
182
  transition: height 150ms ease-out;
128
183
  }
129
184
 
130
- .arrow {
131
- transition: all 0.25s ease-out;
132
- margin-left: auto;
133
- transform: rotate(0deg);
134
- width: 20px;
135
- height: 20px;
136
- fill: rgba(255, 255, 255, 0.6);
137
- }
138
-
139
- .arrowNormal {
140
- margin-left: auto;
141
- transform: rotate(-90deg);
142
- }
143
-
144
- .arrowOpen {
145
- transform: rotate(-180deg);
146
- fill: #ffffff;
147
- }
148
-
149
- .icon {
150
- margin-right: 8px;
151
- height: 22px;
152
- width: 22px;
153
- color: rgba(255, 255, 255, 0.6);
154
- font-size: 22px;
155
- display: flex;
156
- align-items: center;
157
- }
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;
@@ -1,5 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import { ChildrenProps } from 'types/ChildrenProps';
3
+ type OptionsRefProps = {
4
+ getValue: () => string;
5
+ };
3
6
  type OptionsProps = {
4
7
  icon?: string;
5
8
  image?: string;
@@ -9,8 +12,5 @@ type OptionsProps = {
9
12
  onChange?: (value: string, checked: boolean, children: ChildrenProps) => null;
10
13
  children?: ChildrenProps;
11
14
  };
12
- declare const _default: import("react").MemoExoticComponent<{
13
- ({ icon, image, value, mode, checked, onChange, children }: OptionsProps): import("react/jsx-runtime").JSX.Element;
14
- displayName: string;
15
- }>;
15
+ declare const _default: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<OptionsProps & import("react").RefAttributes<OptionsRefProps>>>;
16
16
  export default _default;
@@ -1,3 +1,3 @@
1
1
  import { SelectToggleProps } from '../../index';
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;
2
+ declare const Toggle: ({ id, label, value, errorMessage, isOpen, locked, disabled, showSearch, labelType, placeholder, size, selected, icon, image, onFocus, onBlur, onShow, onFilter }: SelectToggleProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default Toggle;
@@ -13,6 +13,7 @@ type SingleLabelProps = {
13
13
  disabled: boolean;
14
14
  onFocus: () => void;
15
15
  onBlur: () => void;
16
+ onFilter: (value: string) => void;
16
17
  };
17
18
  declare const SingleLabel: import("react").ForwardRefExoticComponent<SingleLabelProps & import("react").RefAttributes<SingleLabelRefObject>>;
18
19
  export default SingleLabel;
@@ -40,6 +40,8 @@ export type SelectToggleProps = {
40
40
  selected: SelectOptionProps;
41
41
  onFocus: () => void;
42
42
  onBlur: () => void;
43
+ onShow: (value: boolean) => void;
44
+ onFilter: (value: string) => void;
43
45
  onChange: (open: boolean) => void;
44
46
  };
45
47
  export type SelectVariant = "default" | "solid" | "filled" | "outline" | "custom";
@@ -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): "x-small" | "small" | "medium" | "default" | "large" | "x-large" | "df";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inntechcorp/it-design",
3
- "version": "2.0.82",
3
+ "version": "2.0.84",
4
4
  "description": "All in one Design library for desktop applications.",
5
5
  "author": "Inn.Tech",
6
6
  "license": "ISC",