@inntechcorp/it-design 2.0.120 → 2.0.123
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-DjWTgiS1.css → output-DCvuWNga.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/dist/utils/GetSizeBySizeSlug.d.ts +1 -1
- package/package.json +1 -1
|
@@ -90,32 +90,6 @@
|
|
|
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
|
-
|
|
119
93
|
.menu {
|
|
120
94
|
background-color: #050A20;
|
|
121
95
|
border-radius: 0 5px 5px 5px;
|
|
@@ -182,6 +156,32 @@
|
|
|
182
156
|
transition: height 150ms ease-out;
|
|
183
157
|
}
|
|
184
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,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";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ITDSizeSlug } from "../index";
|
|
2
|
-
export default function GetSizeBySizeSlug(size: ITDSizeSlug): "
|
|
2
|
+
export default function GetSizeBySizeSlug(size: ITDSizeSlug): "small" | "medium" | "large" | "x-small" | "default" | "x-large" | "df";
|