@wistia/ui 0.14.2 → 0.14.3

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.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.14.2
3
+ * @license @wistia/ui v0.14.3
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -10125,7 +10125,7 @@ var ColorPickerProvider = ({
10125
10125
  );
10126
10126
  const whatValuePropShouldBe = shouldEnforceMinContrast ? (0, import_fn4.formatHex)(getAccessibleDerivativeColor((0, import_fn4.formatHex)(nonDerivedValueAsHsv))) : (0, import_fn4.formatHex)(nonDerivedValueAsHsv);
10127
10127
  (0, import_react41.useEffect)(() => {
10128
- if (valueAsHex.toLocaleLowerCase() !== whatValuePropShouldBe.toLocaleLowerCase() && !isTransitioning) {
10128
+ if (valueAsHex !== whatValuePropShouldBe && !isTransitioning) {
10129
10129
  onValueChange(whatValuePropShouldBe);
10130
10130
  }
10131
10131
  }, [valueAsHex, whatValuePropShouldBe, isTransitioning, onValueChange]);
@@ -10497,7 +10497,8 @@ var Container2 = (0, import_styled_components51.default)(import_react_radio_grou
10497
10497
  cursor: pointer;
10498
10498
  user-select: none;
10499
10499
  `;
10500
- var ColorGridOption = ({ value, name }) => {
10500
+ var ColorGridOption = ({ value: rawValue, name }) => {
10501
+ const value = rawValue.toLocaleLowerCase();
10501
10502
  const { valueAsHsv, nonDerivedValueAsHex } = useColorPickerState();
10502
10503
  const valueAsHex = (0, import_fn5.formatHex)(valueAsHsv);
10503
10504
  const isSelected = valueAsHex === value;
@@ -10655,7 +10656,8 @@ var Container5 = (0, import_styled_components54.default)(import_react_toggle_gro
10655
10656
  background-color: var(--wui-color-bg-surface-secondary-hover);
10656
10657
  }
10657
10658
  `;
10658
- var ColorListOption = ({ value, name }) => {
10659
+ var ColorListOption = ({ value: rawValue, name }) => {
10660
+ const value = rawValue.toLocaleLowerCase();
10659
10661
  const { valueAsHsv, nonDerivedValueAsHex } = useColorPickerState();
10660
10662
  const valueAsHex = (0, import_fn6.formatHex)(valueAsHsv);
10661
10663
  const isSelected = valueAsHex === value;
@@ -10708,7 +10710,7 @@ var ColorPicker = ({
10708
10710
  minimumContrastRatio,
10709
10711
  onValueChange,
10710
10712
  opacityForContrastCalculation,
10711
- value,
10713
+ value: value.toLocaleLowerCase(),
10712
10714
  children
10713
10715
  }
10714
10716
  ) });