@inntechcorp/it-design 2.0.132 → 2.0.134

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,35 @@
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
+
64
93
  .menu {
65
94
  background-color: #050A20;
66
95
  border-radius: 0 5px 5px 5px;
@@ -127,35 +156,6 @@
127
156
  transition: height 150ms ease-out;
128
157
  }
129
158
 
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
159
  .option {
160
160
  display: flex;
161
161
  align-items: center;
@@ -61,6 +61,32 @@
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
+
64
90
  .arrow {
65
91
  transition: all 0.25s ease-out;
66
92
  margin-left: auto;
@@ -90,32 +116,6 @@
90
116
  align-items: center;
91
117
  }
92
118
 
93
- .option {
94
- display: flex;
95
- align-items: center;
96
- cursor: pointer;
97
- min-width: max-content;
98
- padding: 10px 30px 10px 15px;
99
- }
100
- .option:not(:last-child) {
101
- margin-bottom: 1px;
102
- }
103
- .option:hover {
104
- background-color: rgba(29, 38, 73, 0.5019607843);
105
- }
106
-
107
- .selected .single, .selected .option span {
108
- color: #ffffff;
109
- }
110
-
111
- .single, .option span {
112
- color: rgba(255, 255, 255, 0.6666666667);
113
- font-weight: 400;
114
- font-size: 12px;
115
- line-height: 12px;
116
- white-space: nowrap;
117
- }
118
-
119
119
  .menu {
120
120
  background-color: #050A20;
121
121
  border-radius: 0 5px 5px 5px;
@@ -1,7 +1,7 @@
1
1
  import { ChildrenProps } from 'types/ChildrenProps';
2
2
  import { SelectValue } from 'types/SelectProps';
3
3
  type MenuProps = {
4
- value?: SelectValue;
4
+ defaultValue?: SelectValue | SelectValue[];
5
5
  position: string;
6
6
  direction: string;
7
7
  multi: boolean;
@@ -10,5 +10,5 @@ type MenuProps = {
10
10
  onClose: () => void;
11
11
  isOpen: boolean;
12
12
  };
13
- export default function Menu({ position, direction, multi, isOpen, value, children, onChange, onClose }: MenuProps): import("react/jsx-runtime").JSX.Element;
13
+ export default function Menu({ position, direction, multi, isOpen, defaultValue, children, onChange, onClose }: MenuProps): import("react/jsx-runtime").JSX.Element;
14
14
  export {};
@@ -3,8 +3,8 @@ import { ChildrenProps } from "./ChildrenProps";
3
3
  import { ITDSize } from "../index";
4
4
  export type SelectProps = {
5
5
  id?: string;
6
- defaultValue?: SelectValue;
7
- value?: SelectValue;
6
+ defaultValue?: SelectValue | SelectValue[];
7
+ value?: SelectValue | SelectValue[];
8
8
  label?: string;
9
9
  position?: SelectPosition;
10
10
  direction?: SelectDirection;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inntechcorp/it-design",
3
- "version": "2.0.132",
3
+ "version": "2.0.134",
4
4
  "description": "All in one Design library for web applications.",
5
5
  "author": "Inn.Tech",
6
6
  "license": "ISC",