feat: establish composed color field and input group protocols
This commit is contained in:
+9
-10
@@ -17,7 +17,9 @@ import {
|
||||
import Boundary from "./ColorPickerBoundary";
|
||||
import Area from "./ColorAreaFoundation.vue";
|
||||
import Slider from "./ColorSliderFoundation.vue";
|
||||
import Input from "./ColorInputFoundation.vue";
|
||||
import ColorField from "../../src/components/color-field/ColorField.vue";
|
||||
import ColorInputGroup from "../../src/components/color-field/ColorInputGroup.vue";
|
||||
import ColorInputGroupInput from "../../src/components/color-field/ColorInputGroupInput.vue";
|
||||
const props = withDefaults(
|
||||
defineProps<
|
||||
ColorModelProps & {
|
||||
@@ -90,8 +92,12 @@ defineExpose({ state });
|
||||
<Area aria-label="Color area" />
|
||||
<Slider channel="hue" aria-label="Color hue" />
|
||||
<Slider channel="alpha" aria-label="Color alpha" />
|
||||
<Input channel="alpha" aria-label="Color alpha text" />
|
||||
<Input aria-label="Color hex text" />
|
||||
<ColorField channel="alpha" aria-label="Color alpha text">
|
||||
<ColorInputGroup><ColorInputGroupInput /></ColorInputGroup>
|
||||
</ColorField>
|
||||
<ColorField aria-label="Color hex text">
|
||||
<ColorInputGroup><ColorInputGroupInput /></ColorInputGroup>
|
||||
</ColorField>
|
||||
</PopoverDialog>
|
||||
</PopoverContent>
|
||||
</Boundary>
|
||||
@@ -113,11 +119,4 @@ defineExpose({ state });
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
}
|
||||
.color-picker-composition-panel [data-color-input] {
|
||||
width: 100%;
|
||||
padding: 8px 12px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
background: var(--field-background);
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user