@appkit/dek-ui 0.6.0 → 0.7.0

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.
@@ -3,6 +3,9 @@ type Props = {
3
3
  onChange?: (newColor: string) => void;
4
4
  width?: number | string;
5
5
  height?: number | string;
6
+ maxWidth?: number | string;
7
+ maxHeight?: number | string;
8
+ alpha?: boolean;
6
9
  };
7
- declare const ColorPicker: ({ color, onChange, width, height }: Props) => import("react/jsx-runtime").JSX.Element;
10
+ declare const ColorPicker: ({ color, onChange, width, height, maxWidth, maxHeight, alpha, }: Props) => import("react/jsx-runtime").JSX.Element;
8
11
  export default ColorPicker;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import { TextColor, TextFamily, TextSize, TextWeight } from '../Text/Text';
2
3
  export type DropdownOption = {
3
4
  label: React.ReactNode;
4
5
  value: string;
@@ -12,6 +13,13 @@ type DropdownProps = {
12
13
  value?: string;
13
14
  onChange?: (option: DropdownOption) => void;
14
15
  placeholder?: string;
16
+ width?: string | number;
17
+ maxWidth?: string | number;
18
+ height?: string | number;
19
+ color?: TextColor | string;
20
+ textSize?: TextSize | number;
21
+ textFamily?: TextFamily | string;
22
+ textWeight?: TextWeight;
15
23
  };
16
- declare const Dropdown: ({ options, value, onChange, placeholder, }: DropdownProps) => import("react/jsx-runtime").JSX.Element;
24
+ declare const Dropdown: ({ options, value, onChange, placeholder, width, maxWidth, height, color, textWeight, textFamily, textSize, }: DropdownProps) => import("react/jsx-runtime").JSX.Element;
17
25
  export default Dropdown;
@@ -1,20 +1,13 @@
1
1
  /// <reference types="react" />
2
- import ReactDropdown from 'react-dropdown';
3
- export declare const Container: import("styled-components").IStyledComponent<"web", {
4
- options: (string | import("react-dropdown").Group | import("react-dropdown").Option)[];
5
- baseClassName?: string | undefined;
6
- className?: string | undefined;
7
- controlClassName?: string | undefined;
8
- placeholderClassName?: string | undefined;
9
- menuClassName?: string | undefined;
10
- arrowClassName?: string | undefined;
11
- disabled?: boolean | undefined;
12
- arrowClosed?: import("react").ReactNode;
13
- arrowOpen?: import("react").ReactNode;
14
- onChange?: ((arg: import("react-dropdown").Option) => void) | undefined;
15
- onFocus?: ((arg: boolean) => void) | undefined;
16
- value?: string | import("react-dropdown").Option | undefined;
17
- placeholder?: String | undefined;
18
- ref?: import("react").Ref<ReactDropdown> | undefined;
19
- key?: import("react").Key | null | undefined;
20
- }> & typeof ReactDropdown;
2
+ import { TextColor, TextFamily, TextSize, TextWeight } from '../Text/Text';
3
+ type ContainerProps = {
4
+ $width: string | number;
5
+ $maxWidth?: string | number;
6
+ $height?: string | number;
7
+ $color: TextColor | string;
8
+ $size: TextSize | number;
9
+ $family: TextFamily | string;
10
+ $weight: TextWeight | number;
11
+ };
12
+ export declare const Container: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ContainerProps>>;
13
+ export {};
@@ -6,6 +6,7 @@ export type SliderProps = {
6
6
  step?: number;
7
7
  minLabel?: string;
8
8
  maxLabel?: string;
9
+ width?: number;
9
10
  };
10
- declare const Slider: ({ initialValue, onChange, min, max, step, minLabel, maxLabel, }: SliderProps) => import("react/jsx-runtime").JSX.Element;
11
+ declare const Slider: ({ initialValue, onChange, min, max, step, minLabel, maxLabel, width, }: SliderProps) => import("react/jsx-runtime").JSX.Element;
11
12
  export default Slider;