@wistia/ui 0.13.6-beta.e8bdf48a.d4d35de → 0.13.6

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