@wistia/ui 0.13.6 → 0.13.7

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.13.6
3
+ * @license @wistia/ui v0.13.7
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -10166,6 +10166,7 @@ ColorGrid.displayName = "ColorGrid_UI";
10166
10166
  // src/components/ColorPicker/ColorGridOption.tsx
10167
10167
  var import_styled_components50 = __toESM(require("styled-components"));
10168
10168
  var import_react_radio_group2 = require("@radix-ui/react-radio-group");
10169
+ var import_fn5 = require("culori/fn");
10169
10170
 
10170
10171
  // src/components/ColorPicker/ColorSwatch.tsx
10171
10172
  var import_styled_components48 = __toESM(require("styled-components"));
@@ -10386,7 +10387,8 @@ var Container2 = (0, import_styled_components50.default)(import_react_radio_grou
10386
10387
  user-select: none;
10387
10388
  `;
10388
10389
  var ColorGridOption = ({ value, name }) => {
10389
- const { valueAsHex, nonDerivedValueAsHex } = useColorPickerState();
10390
+ const { valueAsHsv, nonDerivedValueAsHex } = useColorPickerState();
10391
+ const valueAsHex = (0, import_fn5.formatHex)(valueAsHsv);
10390
10392
  const isSelected = valueAsHex === value;
10391
10393
  const derivativeIsSelected = !isSelected && nonDerivedValueAsHex === value;
10392
10394
  return /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
@@ -10483,6 +10485,7 @@ ColorListGroup.displayName = "ColorListGroup_UI";
10483
10485
  // src/components/ColorPicker/ColorListOption.tsx
10484
10486
  var import_styled_components53 = __toESM(require("styled-components"));
10485
10487
  var import_react_toggle_group2 = require("@radix-ui/react-toggle-group");
10488
+ var import_fn6 = require("culori/fn");
10486
10489
 
10487
10490
  // src/components/ColorPicker/ColorNameOrHexCode.tsx
10488
10491
  var import_jsx_runtime232 = require("react/jsx-runtime");
@@ -10542,7 +10545,8 @@ var Container4 = (0, import_styled_components53.default)(import_react_toggle_gro
10542
10545
  }
10543
10546
  `;
10544
10547
  var ColorListOption = ({ value, name }) => {
10545
- const { valueAsHex, nonDerivedValueAsHex } = useColorPickerState();
10548
+ const { valueAsHsv, nonDerivedValueAsHex } = useColorPickerState();
10549
+ const valueAsHex = (0, import_fn6.formatHex)(valueAsHsv);
10546
10550
  const isSelected = valueAsHex === value;
10547
10551
  const derivativeIsSelected = !isSelected && nonDerivedValueAsHex === value;
10548
10552
  return /* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(
@@ -10614,6 +10618,7 @@ var StyledPopoverContent = (0, import_styled_components54.default)(import_react_
10614
10618
  flex-direction: column;
10615
10619
  max-width: ${COLOR_PICKER_POPOVER_MAX_WIDTH_PX}px;
10616
10620
  overflow: hidden;
10621
+ z-index: var(--wui-zindex-select);
10617
10622
  `;
10618
10623
  var ColorPickerPopoverContent = ({
10619
10624
  children
@@ -10987,7 +10992,7 @@ ContrastControls.displayName = "ContrastControls_UI";
10987
10992
 
10988
10993
  // src/components/ColorPicker/HexColorInput.tsx
10989
10994
  var import_react48 = require("react");
10990
- var import_fn5 = require("culori/fn");
10995
+ var import_fn7 = require("culori/fn");
10991
10996
 
10992
10997
  // src/components/Input/Input.tsx
10993
10998
  var import_react47 = require("react");
@@ -11217,7 +11222,7 @@ var HexColorInput = ({ autoFocus = true }) => {
11217
11222
  (event) => {
11218
11223
  const newValue = (event.target.value || "#").trim().toLocaleLowerCase();
11219
11224
  setTextInputValue(newValue);
11220
- const isValidHexValue = Boolean((0, import_fn5.parseHex)(newValue));
11225
+ const isValidHexValue = Boolean((0, import_fn7.parseHex)(newValue));
11221
11226
  if (!isValidHexValue) {
11222
11227
  return;
11223
11228
  }
@@ -11299,7 +11304,7 @@ var HexColorInput = ({ autoFocus = true }) => {
11299
11304
  event.preventDefault();
11300
11305
  const pastedText = event.clipboardData.getData("text");
11301
11306
  const normalizedValue = normalizeHexInput(pastedText);
11302
- const isValidHexValue = Boolean((0, import_fn5.parseHex)(normalizedValue));
11307
+ const isValidHexValue = Boolean((0, import_fn7.parseHex)(normalizedValue));
11303
11308
  setTextInputValue(normalizedValue);
11304
11309
  if (!isValidHexValue) {
11305
11310
  return;
@@ -11362,12 +11367,12 @@ HexColorInput.displayName = "HexColorInput_UI";
11362
11367
  var import_react50 = require("react");
11363
11368
  var import_react_slider = require("@radix-ui/react-slider");
11364
11369
  var import_styled_components62 = __toESM(require("styled-components"));
11365
- var import_fn7 = require("culori/fn");
11370
+ var import_fn9 = require("culori/fn");
11366
11371
 
11367
11372
  // src/components/ColorPicker/HSVHueCanvas.tsx
11368
11373
  var import_react49 = require("react");
11369
11374
  var import_styled_components61 = __toESM(require("styled-components"));
11370
- var import_fn6 = require("culori/fn");
11375
+ var import_fn8 = require("culori/fn");
11371
11376
  var import_jsx_runtime247 = require("react/jsx-runtime");
11372
11377
  var Canvas = import_styled_components61.default.canvas`
11373
11378
  display: block;
@@ -11389,7 +11394,7 @@ var HSVHueCanvas = ({ hsv }) => {
11389
11394
  const gradient = ctx.createLinearGradient(0, 0, width, 0);
11390
11395
  for (let i = 0; i <= THREE_SIXTY; i++) {
11391
11396
  const hue = i;
11392
- const hexColor = (0, import_fn6.formatHex)({ h: hue, s: hsv.s, v: hsv.v, mode: "hsv" });
11397
+ const hexColor = (0, import_fn8.formatHex)({ h: hue, s: hsv.s, v: hsv.v, mode: "hsv" });
11393
11398
  if (hexColor) {
11394
11399
  gradient.addColorStop(i / THREE_SIXTY, hexColor);
11395
11400
  }
@@ -11452,7 +11457,7 @@ var HueSlider = () => {
11452
11457
  const { nonDerivedValueAsHsv, onChangeNonDerivedValueAsHsv, valueAsHsv } = useColorPickerState();
11453
11458
  const containerStyle = (0, import_react50.useMemo)(() => {
11454
11459
  return {
11455
- backgroundColor: (0, import_fn7.formatHex)({
11460
+ backgroundColor: (0, import_fn9.formatHex)({
11456
11461
  h: 0,
11457
11462
  // red
11458
11463
  s: valueAsHsv.s,
@@ -11462,7 +11467,7 @@ var HueSlider = () => {
11462
11467
  };
11463
11468
  }, [valueAsHsv.s, valueAsHsv.v]);
11464
11469
  const thumbInnerStyle = (0, import_react50.useMemo)(() => {
11465
- return { backgroundColor: (0, import_fn7.formatHex)(valueAsHsv) };
11470
+ return { backgroundColor: (0, import_fn9.formatHex)(valueAsHsv) };
11466
11471
  }, [valueAsHsv]);
11467
11472
  const onHueChange = (0, import_react50.useCallback)(
11468
11473
  (values) => {