@fewbox/den 0.1.35 → 0.1.37
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/index.css +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Layout/Dock/index.d.ts +2 -1
- package/src/components/View/VInput/VDropdown/index.d.ts +6 -0
- package/src/components/consts.d.ts +2 -0
- package/src/components/core.d.ts +1 -1
- package/templates/style/_root-properties.scss +0 -2
- package/templates/style/_variables.scss +0 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IBaseProps, IBaseStates } from '../../Engine/Base';
|
|
2
|
+
import { Property } from 'csstype';
|
|
2
3
|
export declare enum DockCategory {
|
|
3
4
|
Top = "top",
|
|
4
5
|
Right = "right",
|
|
@@ -25,7 +26,7 @@ type AlignmentCategory = DockCategory.LeftTop | DockCategory.RightTop | DockCate
|
|
|
25
26
|
type NonAlignmentCategory = Exclude<DockCategory, AlignmentCategory>;
|
|
26
27
|
interface IDockBaseProps extends IBaseProps {
|
|
27
28
|
offset?: number;
|
|
28
|
-
overlayZIndex?:
|
|
29
|
+
overlayZIndex?: Property.ZIndex;
|
|
29
30
|
renderOverlay: () => React.JSX.Element;
|
|
30
31
|
}
|
|
31
32
|
export type IDockProps = ({
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { DockAlignment, DockCategory } from "../../../Layout/Dock";
|
|
2
|
+
import { ColorType, FontSizeType } from "../../../Engine";
|
|
2
3
|
import { IBaseProps } from "../../../Engine/Base";
|
|
4
|
+
import { Property } from "csstype";
|
|
3
5
|
export interface IDropdownItemData {
|
|
4
6
|
icon?: React.JSX.Element;
|
|
5
7
|
caption: string;
|
|
@@ -13,10 +15,14 @@ export interface IVDropdownProps extends IBaseProps<'input'> {
|
|
|
13
15
|
emptyIcon: React.JSX.Element;
|
|
14
16
|
downIcon: React.JSX.Element;
|
|
15
17
|
upIcon: React.JSX.Element;
|
|
18
|
+
iconSize?: FontSizeType;
|
|
16
19
|
enableClear?: boolean;
|
|
17
20
|
items: IDropdownItemData[];
|
|
18
21
|
dockCategory?: DockCategory;
|
|
19
22
|
dockAlignment?: DockAlignment;
|
|
23
|
+
menuBackgroundColor?: ColorType;
|
|
24
|
+
menuZIndex?: Property.ZIndex;
|
|
25
|
+
overWriteDropdownMenu?: (items: IDropdownItemData[]) => React.JSX.Element;
|
|
20
26
|
overWriteDropdownItem?: (item: IDropdownItemData) => React.JSX.Element;
|
|
21
27
|
handleChange?: (value: string) => void;
|
|
22
28
|
renderOptions?: (inputRef: React.RefObject<HTMLInputElement | null>) => React.JSX.Element;
|
package/src/components/core.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { default as Base, IBaseProps, IBaseStates, IBaseReturn } from './Engine/Base';
|
|
1
|
+
export { default as Base, IBaseProps, IBaseStates, IBaseReturn, IViewProps } from './Engine/Base';
|
|
2
2
|
export { BreakpointType } from './Layout';
|
|
3
3
|
export { default as VZone, ZoneCategory } from './View/VZone';
|
|
4
4
|
export { default as Display, DisplayCategory, DisplayType } from './Layout/Display';
|
|
@@ -37,8 +37,6 @@
|
|
|
37
37
|
#{v.$var-prefix}scrollbar-thumb-active-color: #{v.$scrollbar-thumb-active-color};
|
|
38
38
|
#{v.$var-prefix}scrollbar-radius: #{v.$scrollbar-radius};
|
|
39
39
|
// Component
|
|
40
|
-
#{v.$var-prefix}input-padding: #{v.$input-padding};
|
|
41
|
-
#{v.$var-prefix}input-padding: #{v.$input-padding};
|
|
42
40
|
#{v.$var-prefix}dropdown-hover-background-color: #{v.$dropdown-hover-background-color};
|
|
43
41
|
#{v.$var-prefix}dropdown-hover-color: #{v.$dropdown-hover-color};
|
|
44
42
|
|