@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.
@@ -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?: number;
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;
@@ -0,0 +1,2 @@
1
+ export declare const MaxZIndex = 2147483647;
2
+ export declare const MinZIndex = -2147483648;
@@ -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
 
@@ -189,6 +189,5 @@ $zone-max-widths: (
189
189
  "extra-large": 1140px,
190
190
  "extra-extra-large": 1320px,
191
191
  ) !default;
192
- $input-padding: 0.6em 1em;
193
192
  $dropdown-hover-background-color: $primary-color;
194
193
  $dropdown-hover-color: $white-color;