@inntechcorp/it-design 2.0.121 → 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.
- package/dist/calendar/dates.d.ts +2 -0
- package/dist/calendar/day/Day.d.ts +5 -0
- package/dist/calendar/day/styled.d.ts +8 -0
- package/dist/calendar/header/Header.d.ts +1 -0
- package/dist/calendar/header/styled.d.ts +8 -0
- package/dist/calendar/index.d.ts +12 -0
- package/dist/calendar/styled.d.ts +6 -0
- package/dist/datepicker/index.d.ts +4 -0
- package/dist/datepicker/styled.d.ts +25 -0
- package/dist/index.cjs.js +43 -415
- package/dist/index.d.mts +2 -0
- package/dist/index.d.ts +59 -8
- package/dist/index.esm.js +36 -408
- package/dist/{output-Co64jyKL.css → output-DfOH-aLb.css} +55 -55
- package/dist/{output-DCvuWNga.css → output-DjWTgiS1.css} +26 -26
- package/dist/select/toggle/label/floating/FloatingLabel.d.ts +3 -2
- package/dist/select/toggle/label/single/SingleLabel.d.ts +2 -1
- package/dist/stories/DatePicker.d.ts +3 -0
- package/dist/stories/DatePicker.stories.d.ts +20 -0
- package/dist/types/CalendarProps.d.ts +31 -0
- package/dist/types/DatePickerProps.d.ts +20 -0
- package/dist/types/FlexProps.d.ts +1 -1
- package/dist/types/FormProps.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -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;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { SelectValue } from 'types/SelectProps';
|
|
2
3
|
export type SingleLabelRefObject = {
|
|
3
4
|
setFocus: () => void;
|
|
4
5
|
};
|
|
5
6
|
type SingleLabelProps = {
|
|
6
7
|
id?: string;
|
|
7
|
-
value:
|
|
8
|
+
value: SelectValue;
|
|
8
9
|
label: string;
|
|
9
10
|
placeholder: string;
|
|
10
11
|
size: string;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StoryObj } from "@storybook/react";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import("react").FC<any>;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
tags: string[];
|
|
10
|
+
argTypes: {};
|
|
11
|
+
args: {
|
|
12
|
+
onClick: import("@vitest/spy").Mock<any, any>;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export default meta;
|
|
16
|
+
type Story = StoryObj<typeof meta>;
|
|
17
|
+
export declare const Default: Story;
|
|
18
|
+
export declare const Filled: Story;
|
|
19
|
+
export declare const Dashed: Story;
|
|
20
|
+
export declare const MaskFormat: Story;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import moment from "moment";
|
|
2
|
+
import { ChildrenProps } from "./ChildrenProps";
|
|
3
|
+
import { InputVariant } from "./InputProps";
|
|
4
|
+
import { ITDSize } from "./ITDProps";
|
|
5
|
+
export type CalendarProps = {
|
|
6
|
+
id?: string;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
defaultValue: CalendarValueProps;
|
|
9
|
+
className?: string;
|
|
10
|
+
mask?: null | string;
|
|
11
|
+
size?: ITDSize;
|
|
12
|
+
variant?: InputVariant;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
floating?: boolean;
|
|
15
|
+
suffix?: ChildrenProps;
|
|
16
|
+
onChange?: ((value: CalendarValueProps) => void) | null;
|
|
17
|
+
onUpdate?: ((value: any, update: any, validation: boolean) => void) | null;
|
|
18
|
+
disabledDate: (date: moment.Moment) => boolean;
|
|
19
|
+
};
|
|
20
|
+
export type CalendarValueProps = {
|
|
21
|
+
localizated: string;
|
|
22
|
+
global: string;
|
|
23
|
+
};
|
|
24
|
+
export type CalendarDayProps = {
|
|
25
|
+
date: moment.Moment;
|
|
26
|
+
today?: boolean;
|
|
27
|
+
selected?: boolean;
|
|
28
|
+
current?: boolean;
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
handleClick: (date: moment.Moment) => void;
|
|
31
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import moment from "moment";
|
|
2
|
+
import { CalendarValueProps } from "./CalendarProps";
|
|
3
|
+
import { ChildrenProps } from "./ChildrenProps";
|
|
4
|
+
import { InputVariant } from "./InputProps";
|
|
5
|
+
import { ITDSize } from "./ITDProps";
|
|
6
|
+
export type DatePickerProps = {
|
|
7
|
+
id?: string;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
defaultValue?: CalendarValueProps;
|
|
10
|
+
className?: string;
|
|
11
|
+
mask?: null | string;
|
|
12
|
+
size?: ITDSize;
|
|
13
|
+
variant?: InputVariant;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
floating?: boolean;
|
|
16
|
+
suffix?: ChildrenProps;
|
|
17
|
+
onChange?: ((value: CalendarValueProps) => void) | null;
|
|
18
|
+
onUpdate?: ((value: any, update: any, validation: boolean) => void) | null;
|
|
19
|
+
disabledDate?: (date: moment.Moment) => boolean;
|
|
20
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FormValidationTypes } from "enums/enum";
|
|
2
2
|
import { RefObject } from "react";
|
|
3
|
-
import { ChildrenProps } from "
|
|
3
|
+
import { ChildrenProps } from "./ChildrenProps";
|
|
4
4
|
import { ITDImperativeFuncProps } from "../index";
|
|
5
5
|
import { FormStoreProps } from "../form/context/FormStore";
|
|
6
6
|
import { FormContextType } from "../form/context/FormContext";
|