oziko-ui-kit 0.0.99 → 0.0.101
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,3 +1,4 @@
|
|
|
1
|
+
import { TypeFlexElement } from "../flex-element/FlexElement";
|
|
1
2
|
import { Placement } from "../../../custom-hooks/useAdaptivePosition";
|
|
2
3
|
export type ColorFormat = "hex" | "rgb" | "hsl";
|
|
3
4
|
export interface ColorValue {
|
|
@@ -17,14 +18,15 @@ export interface ColorValue {
|
|
|
17
18
|
}
|
|
18
19
|
export type ColorPickerTriggerDisplay = "only-color" | "only-code" | "complete";
|
|
19
20
|
export interface ColorPickerProps {
|
|
21
|
+
containerProps?: TypeFlexElement;
|
|
22
|
+
contentProps?: TypeFlexElement;
|
|
20
23
|
value?: string;
|
|
21
24
|
defaultValue?: string;
|
|
22
25
|
onChange?: (color: ColorValue) => void;
|
|
23
26
|
format?: ColorFormat;
|
|
24
27
|
placement?: Placement;
|
|
25
|
-
disabled?: boolean;
|
|
26
28
|
id?: string;
|
|
27
|
-
|
|
29
|
+
disabled?: boolean;
|
|
28
30
|
triggerDisplay?: ColorPickerTriggerDisplay;
|
|
29
31
|
}
|
|
30
32
|
export interface DragState {
|
package/dist/index.css
CHANGED
|
@@ -1051,6 +1051,7 @@ code {
|
|
|
1051
1051
|
|
|
1052
1052
|
.ColorPicker-module_trigger__5Ukgm {
|
|
1053
1053
|
min-width: 32px;
|
|
1054
|
+
width: 100%;
|
|
1054
1055
|
height: 32px;
|
|
1055
1056
|
border-radius: 8px;
|
|
1056
1057
|
border: var(--oziko-border-default);
|
|
@@ -1063,9 +1064,12 @@ code {
|
|
|
1063
1064
|
outline: none;
|
|
1064
1065
|
position: relative;
|
|
1065
1066
|
gap: 8px;
|
|
1066
|
-
padding:
|
|
1067
|
+
padding: 0 !important;
|
|
1067
1068
|
white-space: nowrap;
|
|
1068
1069
|
}
|
|
1070
|
+
.ColorPicker-module_trigger__5Ukgm:hover {
|
|
1071
|
+
background: transparent !important;
|
|
1072
|
+
}
|
|
1069
1073
|
|
|
1070
1074
|
.ColorPicker-module_trigger__5Ukgm[data-display=only-color] {
|
|
1071
1075
|
width: 32px;
|
|
@@ -1216,7 +1220,6 @@ code {
|
|
|
1216
1220
|
height: 32px;
|
|
1217
1221
|
border: var(--oziko-border-default) !important;
|
|
1218
1222
|
border-radius: var(--oziko-border-radius-md) !important;
|
|
1219
|
-
background: var();
|
|
1220
1223
|
font-weight: 500;
|
|
1221
1224
|
outline: none;
|
|
1222
1225
|
cursor: pointer;
|