@zag-js/color-picker 0.11.1 → 0.12.0

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,4 +1,4 @@
1
- import { Color, type ColorChannel } from "@zag-js/color-utils"
1
+ import type { Color, ColorChannel } from "@zag-js/color-utils"
2
2
  import { getPercentValue, snapValueToStep } from "@zag-js/numeric-range"
3
3
 
4
4
  export function getChannelDetails(color: Color, xChannel: ColorChannel, yChannel: ColorChannel) {
@@ -1,4 +1,4 @@
1
- import { Color, parseColor, type ColorChannel } from "@zag-js/color-utils"
1
+ import { parseColor, type Color, type ColorChannel } from "@zag-js/color-utils"
2
2
 
3
3
  export function getChannelDisplayColor(color: Color, channel: ColorChannel) {
4
4
  switch (channel) {
@@ -1,5 +1,5 @@
1
- import { Color } from "@zag-js/color-utils"
2
- import { ExtendedColorChannel } from "../color-picker.types"
1
+ import type { Color } from "@zag-js/color-utils"
2
+ import type { ExtendedColorChannel } from "../color-picker.types"
3
3
 
4
4
  export function getChannelInputValue(color: Color, channel: ExtendedColorChannel) {
5
5
  switch (channel) {
@@ -1,6 +1,6 @@
1
- import { type ColorChannel } from "@zag-js/color-utils"
2
- import { Style } from "@zag-js/types"
3
- import { MachineContext } from "../color-picker.types"
1
+ import type { ColorChannel } from "@zag-js/color-utils"
2
+ import type { Style } from "@zag-js/types"
3
+ import type { MachineContext } from "../color-picker.types"
4
4
  import {
5
5
  generateHSB_B,
6
6
  generateHSB_H,
@@ -1,4 +1,4 @@
1
- import { ColorChannelProps, MachineContext } from "../color-picker.types"
1
+ import type { ColorChannelProps, MachineContext } from "../color-picker.types"
2
2
 
3
3
  function getSliderBgDirection(orientation: "vertical" | "horizontal", dir: "ltr" | "rtl") {
4
4
  if (orientation === "vertical") {