feat: add public ColorArea components, docs, and package contract
This commit is contained in:
@@ -173,9 +173,10 @@
|
||||
|
||||
@import "./components/calendar-year-picker.css" layer(components);
|
||||
|
||||
/* Private color interaction foundation; public components are not exported yet. */
|
||||
/* Public ColorArea (COLOR-AREA). */
|
||||
@import "./components/color-area.css" layer(components);
|
||||
|
||||
/* Private color interaction foundation; remaining color families are not public. */
|
||||
@import "./components/color-slider.css" layer(components);
|
||||
|
||||
@import "./components/color-field.css" layer(components);
|
||||
|
||||
@@ -1828,6 +1828,27 @@ export const colorSwatchVariants = tv({
|
||||
|
||||
export type ColorSwatchVariants = VariantProps<typeof colorSwatchVariants>;
|
||||
|
||||
/** HeroUI 3.2.6 / ce90ea3, Apache-2.0; hv namespace only. */
|
||||
export const colorAreaVariants = tv({
|
||||
defaultVariants: {
|
||||
showDots: false,
|
||||
},
|
||||
slots: {
|
||||
base: "hv-color-area",
|
||||
thumb: "hv-color-area__thumb",
|
||||
},
|
||||
variants: {
|
||||
showDots: {
|
||||
false: {},
|
||||
true: {
|
||||
base: "hv-color-area--show-dots",
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
export type ColorAreaVariants = VariantProps<typeof colorAreaVariants>;
|
||||
|
||||
/** HeroUI 3.2.6 / ce90ea3, Apache-2.0; hv namespace only. */
|
||||
export const timeFieldVariants = tv({
|
||||
base: "hv-time-field",
|
||||
|
||||
Reference in New Issue
Block a user