@digital-ai/dot-components 4.27.0 → 4.28.1
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/package.json
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ColorResult, HsvaColor } from '@uiw/color-convert';
|
|
2
|
+
import { SwatchPresetColor } from '@uiw/react-color-swatch';
|
|
3
|
+
import { CSSProperties } from 'react';
|
|
4
|
+
import { CommonProps } from '../CommonProps';
|
|
5
|
+
export interface ColorPickerProps extends CommonProps {
|
|
6
|
+
color?: string | HsvaColor;
|
|
7
|
+
hideAlpha?: boolean;
|
|
8
|
+
hideRGB?: boolean;
|
|
9
|
+
hideShadow?: boolean;
|
|
10
|
+
onChange?: (newShade: ColorResult) => void;
|
|
11
|
+
presetColors?: SwatchPresetColor[];
|
|
12
|
+
style?: CSSProperties;
|
|
13
|
+
width?: number;
|
|
14
|
+
}
|
|
15
|
+
export declare const DotColorPicker: ({ ariaLabel, ariaRole, className, color, "data-pendoid": dataPendoId, "data-testid": dataTestId, hideAlpha, hideRGB, hideShadow, onChange, presetColors, style, width, }: ColorPickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const rootClassName = "dot-color-picker";
|
|
2
|
+
interface StyledProps {
|
|
3
|
+
$hideShadow?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare const StyledColorPicker: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@uiw/react-color-sketch").SketchProps & import("react").RefAttributes<HTMLDivElement>>, any, StyledProps, never>;
|
|
6
|
+
export {};
|
|
@@ -55,6 +55,7 @@ export type { DashboardHeaderProps } from './analytics/dashboard-header/Dashboar
|
|
|
55
55
|
export type { ChipTooltipProps, ChipProps, ChipSize } from './chip/Chip';
|
|
56
56
|
export type { SearchProps } from './search';
|
|
57
57
|
export type { ToggleSwitchProps, ToggleSwitchValue, ToggleSwitchOption, ToggleSwitchSingleValue, } from './toggle-switch';
|
|
58
|
+
export type { ColorPickerProps, ColorResult, HsvaColor, SwatchPresetColor, } from './color-picker';
|
|
58
59
|
export { DotAccordion } from './accordion/Accordion';
|
|
59
60
|
export { DotActionToolbar } from './action-toolbar/ActionToolbar';
|
|
60
61
|
export { DotAlertBanner } from './alert-banner/AlertBanner';
|
|
@@ -142,4 +143,5 @@ export { CreateUUID } from './createUUID';
|
|
|
142
143
|
export { BoardStatusProvider, ColumnStatusProvider, DotBoard, DotBoardColumn, DotBoardColumnActionBar, DotBoardColumnCollapse, DotBoardColumnExpand, DotBoardColumnHeader, DotBoardColumnItems, DotBoardColumnSummary, useBoardStatus, useColumnStatus, } from './board';
|
|
143
144
|
export { DotSearch } from './search';
|
|
144
145
|
export { DotToggleSwitch } from './toggle-switch';
|
|
146
|
+
export { DotColorPicker } from './color-picker';
|
|
145
147
|
export { useKeyPress } from '../hooks/useKeyPress';
|