@cntyclub/ui-react 0.16.0 → 0.16.1

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.
package/dist/index.d.ts CHANGED
@@ -655,6 +655,17 @@ declare function useColorPicker(): react_aria_components.ColorPickerState;
655
655
  declare function ColorPickerProvider(props: React$1.ComponentProps<typeof ColorPicker$1>): React$1.JSX.Element;
656
656
  declare function ColorArea({ className, ...props }: React$1.ComponentProps<typeof ColorArea$1>): React$1.JSX.Element;
657
657
  declare function ColorThumb({ className, ...props }: React$1.ComponentProps<typeof ColorThumb$1>): React$1.JSX.Element;
658
+ /**
659
+ * Hue, in HSB whatever the colour arrived as.
660
+ *
661
+ * `colorSpace` is not decoration here. A slider reads its channel off the picker's
662
+ * current colour, and `hue` is not a channel an RGB colour has — so a picker handed
663
+ * `"#8c1515"`, which is every picker handed a hex, threw `Unknown color channel: hue`
664
+ * and took the page down with it. Naming the space converts on the way in instead,
665
+ * which is what a hue slider means by "hue" in the first place.
666
+ *
667
+ * A caller may still override it; HSL is the other space with a hue.
668
+ */
658
669
  declare function ColorHueSlider(props: Omit<React$1.ComponentProps<typeof ColorSlider>, "channel">): React$1.JSX.Element;
659
670
  declare function ColorAlphaSlider(props: Omit<React$1.ComponentProps<typeof ColorSlider>, "channel">): React$1.JSX.Element;
660
671
  declare function ColorSwatch({ className, ...props }: React$1.ComponentProps<typeof ColorSwatch$1>): React$1.JSX.Element;
package/dist/index.js CHANGED
@@ -3531,7 +3531,7 @@ function ColorSliderBase({
3531
3531
  );
3532
3532
  }
3533
3533
  function ColorHueSlider(props) {
3534
- return /* @__PURE__ */ jsx(ColorSliderBase, { channel: "hue", ...props });
3534
+ return /* @__PURE__ */ jsx(ColorSliderBase, { channel: "hue", colorSpace: "hsb", ...props });
3535
3535
  }
3536
3536
  function ColorAlphaSlider(props) {
3537
3537
  return /* @__PURE__ */ jsx(ColorSliderBase, { channel: "alpha", chequered: true, ...props });