@inntechcorp/it-design 2.0.123 → 2.0.124

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.
@@ -7,6 +7,6 @@ declare const Calendar: import("react").ForwardRefExoticComponent<{
7
7
  defaultValue: string;
8
8
  className?: string | undefined;
9
9
  onChange: ((value: CalendarValueProps) => void) | null;
10
- disabledDate: (date: moment.Moment) => boolean;
10
+ disabledDate?: ((date: moment.Moment) => boolean) | undefined;
11
11
  } & import("react").RefAttributes<unknown>>;
12
12
  export default Calendar;
package/dist/index.d.ts CHANGED
@@ -474,7 +474,7 @@ declare const Calendar: react.ForwardRefExoticComponent<{
474
474
  defaultValue: string;
475
475
  className?: string | undefined;
476
476
  onChange: ((value: CalendarValueProps) => void) | null;
477
- disabledDate: (date: moment$1.Moment) => boolean;
477
+ disabledDate?: ((date: moment$1.Moment) => boolean) | undefined;
478
478
  } & react.RefAttributes<unknown>>;
479
479
 
480
480
  declare const DatePicker: react.ForwardRefExoticComponent<DatePickerProps & react.RefAttributes<ITDImperativeFuncProps>>;
@@ -773,7 +773,7 @@ type CalendarDayProps = {
773
773
  type DatePickerProps = {
774
774
  id?: string;
775
775
  placeholder?: string;
776
- defaultValue: CalendarValueProps;
776
+ defaultValue?: CalendarValueProps;
777
777
  className?: string;
778
778
  mask?: null | string;
779
779
  size?: ITDSize;
@@ -783,7 +783,7 @@ type DatePickerProps = {
783
783
  suffix?: ChildrenProps;
784
784
  onChange?: ((value: CalendarValueProps) => void) | null;
785
785
  onUpdate?: ((value: any, update: any, validation: boolean) => void) | null;
786
- disabledDate: (date: moment$1.Moment) => boolean;
786
+ disabledDate?: (date: moment$1.Moment) => boolean;
787
787
  };
788
788
 
789
789
  type TextAreaProps = {
@@ -87,6 +87,35 @@
87
87
  white-space: nowrap;
88
88
  }
89
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
+
90
119
  .menu {
91
120
  background-color: #050A20;
92
121
  border-radius: 0 5px 5px 5px;
@@ -153,35 +182,6 @@
153
182
  transition: height 150ms ease-out;
154
183
  }
155
184
 
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;
@@ -90,6 +90,32 @@
90
90
  align-items: center;
91
91
  }
92
92
 
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
+
93
119
  .menu {
94
120
  background-color: #050A20;
95
121
  border-radius: 0 5px 5px 5px;
@@ -156,32 +182,6 @@
156
182
  transition: height 150ms ease-out;
157
183
  }
158
184
 
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;
@@ -6,7 +6,7 @@ import { ITDSize } from "./ITDProps";
6
6
  export type DatePickerProps = {
7
7
  id?: string;
8
8
  placeholder?: string;
9
- defaultValue: CalendarValueProps;
9
+ defaultValue?: CalendarValueProps;
10
10
  className?: string;
11
11
  mask?: null | string;
12
12
  size?: ITDSize;
@@ -16,5 +16,5 @@ export type DatePickerProps = {
16
16
  suffix?: ChildrenProps;
17
17
  onChange?: ((value: CalendarValueProps) => void) | null;
18
18
  onUpdate?: ((value: any, update: any, validation: boolean) => void) | null;
19
- disabledDate: (date: moment.Moment) => boolean;
19
+ disabledDate?: (date: moment.Moment) => boolean;
20
20
  };
@@ -1,2 +1,2 @@
1
1
  import { ITDSizeSlug } from "../index";
2
- export default function GetSizeBySizeSlug(size: ITDSizeSlug): "small" | "medium" | "large" | "x-small" | "default" | "x-large" | "df";
2
+ export default function GetSizeBySizeSlug(size: ITDSizeSlug): "large" | "small" | "x-small" | "medium" | "default" | "x-large" | "df";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inntechcorp/it-design",
3
- "version": "2.0.123",
3
+ "version": "2.0.124",
4
4
  "description": "All in one Design library for web applications.",
5
5
  "author": "Inn.Tech",
6
6
  "license": "ISC",