oziko-ui-kit 0.0.67 → 0.0.69
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/components/atoms/inputs/normal/number/Number.d.ts +1 -1
- package/dist/components/atoms/relation-input/relation-select/RelationSelect.d.ts +5 -4
- package/dist/custom-hooks/useInputRepresenter.d.ts +4 -1
- package/dist/index.css +4 -0
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ export type TypeNumberInput = {
|
|
|
6
6
|
description?: string;
|
|
7
7
|
value?: number;
|
|
8
8
|
options?: number[];
|
|
9
|
-
onChange?: (value: number) => void;
|
|
9
|
+
onChange?: (value: number | undefined) => void;
|
|
10
10
|
inputProps?: TypeInput;
|
|
11
11
|
selectProps?: TypeFluidContainer;
|
|
12
12
|
inputContainerClassName?: string;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { Ref, RefObject } from "react";
|
|
2
2
|
import { TypeFluidContainer } from "../../fluid-container/FluidContainer";
|
|
3
3
|
import { TypeLabeledValue } from "../../select-option/SelectOption";
|
|
4
|
+
import { TypeFlexElement } from "../../flex-element/FlexElement";
|
|
4
5
|
export type TypeRelationSelectRef = {
|
|
5
6
|
toggleDropdown: (toggleValue?: boolean) => void;
|
|
6
7
|
clear: () => void;
|
|
7
8
|
};
|
|
8
9
|
export type TypeRelationSelect = {
|
|
9
|
-
options: TypeLabeledValue[];
|
|
10
|
+
options: TypeLabeledValue[] | null;
|
|
10
11
|
placeholder?: string;
|
|
11
12
|
placement?: "bottom" | "top";
|
|
12
13
|
multiple?: boolean;
|
|
@@ -25,9 +26,9 @@ export type TypeRelationSelect = {
|
|
|
25
26
|
dropDownRef?: Ref<HTMLDivElement>;
|
|
26
27
|
};
|
|
27
28
|
declare const _default: import("react").NamedExoticComponent<TypeRelationSelect & {
|
|
28
|
-
prefix?:
|
|
29
|
-
root?:
|
|
30
|
-
suffix?:
|
|
29
|
+
prefix?: TypeFlexElement;
|
|
30
|
+
root?: TypeFlexElement;
|
|
31
|
+
suffix?: TypeFlexElement;
|
|
31
32
|
mode?: "hug" | "fill" | "middle";
|
|
32
33
|
} & {
|
|
33
34
|
ref?: RefObject<HTMLDivElement | null>;
|
|
@@ -79,6 +79,9 @@ type TypeObjectInputProps<T> = {
|
|
|
79
79
|
type TypeSelectInputProps<T extends string | number> = {
|
|
80
80
|
enum?: T[];
|
|
81
81
|
} & TypeInputProps<T>;
|
|
82
|
+
type TypeNumberInput = {
|
|
83
|
+
enum?: number[];
|
|
84
|
+
} & TypeInputProps<number | undefined>;
|
|
82
85
|
type TypeMultiSelectInputProps<T extends string | number> = {
|
|
83
86
|
enum?: T[];
|
|
84
87
|
} & TypeInputProps<T[]>;
|
|
@@ -100,7 +103,7 @@ type TypeChipInputProps<T> = {
|
|
|
100
103
|
} & TypeInputProps<T>;
|
|
101
104
|
export type TypeInputTypeMap = {
|
|
102
105
|
string: (props: TypeSelectInputProps<string>) => ReactNode;
|
|
103
|
-
number: (props:
|
|
106
|
+
number: (props: TypeNumberInput) => ReactNode;
|
|
104
107
|
textarea: (props: TypeInputProps<string>) => ReactNode;
|
|
105
108
|
date: (props: TypeInputProps<Date | string | null>) => ReactNode;
|
|
106
109
|
boolean: (props: TypeInputProps<boolean>) => ReactNode;
|
package/dist/index.css
CHANGED
|
@@ -3144,6 +3144,10 @@ button.font-increment {
|
|
|
3144
3144
|
.RelationSelect-module_deleteIcon__l6plf {
|
|
3145
3145
|
color: var(--oziko-color-danger);
|
|
3146
3146
|
}
|
|
3147
|
+
|
|
3148
|
+
.RelationSelect-module_infiniteScroll__UQClb {
|
|
3149
|
+
overflow: hidden !important;
|
|
3150
|
+
}
|
|
3147
3151
|
.ColorMinimized-module_colorMinimized__CnRpu {
|
|
3148
3152
|
background-color: var(--oziko-color-input-background);
|
|
3149
3153
|
border-radius: var(--oziko-border-radius-md);
|