Bindable. Drives ValueText, FormatSelect y ChannelInput segments.
+
allowedFormats
soma
['hex','rgb','hsl']
Whitelist en FormatSelect.
+
open / inline
soma
false / false
Modo popover vs inline.
+
closeOnSelect
soma
false
Cierra el popover al elegir swatch / eyedropper.
+
enableAlpha
soma
true
Quita el slider alpha cuando false.
+
areaChannels
soma
{ x: 'saturation', y: 'brightness' }
Eje X/Y de la 2D area.
+
size / variant / color
eidos
md / surface / primary
Visual-only data attrs.
+
+
+
+
+ {/if}
+
+ {#if tab === 'morfo'}
+
+
Morfo contract
+
+
+
Part
Marker
Element
Role
Optional
+
+ {#each partsList as part}
+
+
{part.kebab}
+
[{part.marker}]
+
<{part.defaultElement}>
+
{part.role ?? '—'}
+
{part.optional ? 'yes' : 'no'}
+
+ {/each}
+
+
+
+
+ {/if}
+
+ {#if tab === 'sema'}
+
+
+ sema · events + perceptual signature
+
+
+ ColorPicker no declara eventos sema propios todavía — la apertura/cierre y commit
+ vienen de Popover y ColorField subyacentes. Se añadirán open / close-commit /
+ commit-clear cuando se alinee con el contrato canónico de pickers.
+
+
+
+
Owner
Name
Family
Verb
Sequence
Target
Play
+
+ {#each eventRows as row}
+
+
{row.owner}
+
{row.action.name}
+
{row.action.semantic.family}
+
{row.action.semantic.verb ?? '—'}
+
{row.action.semantic.sequence ?? 'pre'}
+
{row.action.target}
+
+
+
+
+ {/each}
+
+
+
+
+ {/if}
+
+ {#if tab === 'recipe'}
+
+
Eidos recipe
+
+ Selectors live in src/uix/eidos/components/color-picker/color-picker.css.
+ Reuses color-field tokens for the segmented input and adds picker-specific
+ tokens for the area, channel sliders, swatches and eye-dropper.
+
+
+
+
Selector
Owner
Purpose
+
+
[data-color-picker]
morfo
Root scope + size/variant/color tokens.
+
[data-color-picker-trigger]
morfo
Open button con swatch dot (CSS var --cp-trigger-color).
+
[data-color-picker-area]
morfo
Contenedor 2D; soma calcula backgroundStyle y posición del thumb.
+
[data-color-picker-channel-slider][data-channel]
morfo
Slider 1D por canal; data-channel permite tintar el gradient en CSS.
+
[data-color-picker-swatch-trigger][data-checked]
morfo
Preset swatch; ring acento cuando matchea el valor actual.
+
[data-color-picker-eye-dropper][data-unsupported]
morfo
Botón eye-dropper; disabled cuando el browser no implementa la API.