@inntechcorp/it-design 2.0.127 → 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.
@@ -61,61 +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
- .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
-
119
64
  .menu {
120
65
  background-color: #050A20;
121
66
  border-radius: 0 5px 5px 5px;
@@ -182,6 +127,61 @@
182
127
  transition: height 150ms ease-out;
183
128
  }
184
129
 
130
+ .option {
131
+ display: flex;
132
+ align-items: center;
133
+ cursor: pointer;
134
+ min-width: max-content;
135
+ padding: 10px 30px 10px 15px;
136
+ }
137
+ .option:not(:last-child) {
138
+ margin-bottom: 1px;
139
+ }
140
+ .option:hover {
141
+ background-color: rgba(29, 38, 73, 0.5019607843);
142
+ }
143
+
144
+ .selected .single, .selected .option span {
145
+ color: #ffffff;
146
+ }
147
+
148
+ .single, .option span {
149
+ color: rgba(255, 255, 255, 0.6666666667);
150
+ font-weight: 400;
151
+ font-size: 12px;
152
+ line-height: 12px;
153
+ white-space: nowrap;
154
+ }
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;
@@ -1,14 +1,14 @@
1
1
  import { ChildrenProps } from 'types/ChildrenProps';
2
2
  import { SelectValue } from 'types/SelectProps';
3
3
  type MenuProps = {
4
- value: SelectValue;
4
+ value?: SelectValue;
5
5
  position: string;
6
6
  direction: string;
7
- mode: string;
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({ value, position, direction, mode, isOpen, children, onChange, onClose }: MenuProps): import("react/jsx-runtime").JSX.Element;
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: () => string;
5
+ getValue: () => SelectValue;
5
6
  };
6
7
  type OptionsProps = {
7
8
  icon?: string;
8
9
  image?: string;
9
- value?: string;
10
- mode?: string;
10
+ value?: SelectValue;
11
+ multi?: boolean;
11
12
  checked?: false;
12
- autoScroll?: false;
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>>>;
@@ -19,4 +19,5 @@ 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 Multiple: Story;
22
23
  export declare const WithIcon: Story;
@@ -8,7 +8,7 @@ export type SelectProps = {
8
8
  label?: string;
9
9
  position?: SelectPosition;
10
10
  direction?: SelectDirection;
11
- mode?: string;
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: SelectValue;
30
+ value?: SelectValue;
31
31
  errorMessage: string;
32
32
  isOpen: boolean;
33
33
  showSearch: boolean;
@@ -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): "default" | "x-small" | "small" | "medium" | "large" | "x-large" | "df";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inntechcorp/it-design",
3
- "version": "2.0.127",
3
+ "version": "2.0.128",
4
4
  "description": "All in one Design library for web applications.",
5
5
  "author": "Inn.Tech",
6
6
  "license": "ISC",