@wistia/ui 0.14.1-beta.5005d2fc.7ab4439 → 0.14.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.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.14.1-beta.5005d2fc.7ab4439
3
+ * @license @wistia/ui v0.14.1
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -10174,24 +10174,15 @@ var useColorPickerState = () => {
10174
10174
 
10175
10175
  // src/components/ColorPicker/ColorGrid.tsx
10176
10176
  var import_jsx_runtime226 = require("react/jsx-runtime");
10177
- var Container = import_styled_components47.default.div`
10178
- display: grid;
10179
- gap: var(--wui-space-01);
10180
- grid-template-columns: minmax(0, 1fr);
10181
- padding: var(--wui-space-02);
10182
- `;
10183
- var LabelContainer = import_styled_components47.default.div`
10184
- padding-top: var(--wui-space-01);
10185
- `;
10186
- var ItemsContainer = (0, import_styled_components47.default)(import_react_radio_group.Root)`
10177
+ var Container = (0, import_styled_components47.default)(import_react_radio_group.Root)`
10187
10178
  display: flex;
10188
10179
  flex-wrap: wrap;
10189
10180
  align-items: center;
10190
10181
  justify-content: start;
10191
- padding: var(--wui-space-01) 6px;
10182
+ padding: var(--wui-space-02) 14px;
10192
10183
  gap: var(--wui-space-02);
10193
10184
  `;
10194
- var ColorGrid = ({ children, label }) => {
10185
+ var ColorGrid = ({ children }) => {
10195
10186
  const { valueAsHex, onChangeNonDerivedValueAsHsv } = useColorPickerState();
10196
10187
  const onValueChange = (0, import_react42.useCallback)(
10197
10188
  (value) => {
@@ -10200,25 +10191,14 @@ var ColorGrid = ({ children, label }) => {
10200
10191
  },
10201
10192
  [onChangeNonDerivedValueAsHsv]
10202
10193
  );
10203
- return /* @__PURE__ */ (0, import_jsx_runtime226.jsxs)(Container, { children: [
10204
- label != null && /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(LabelContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
10205
- Text,
10206
- {
10207
- prominence: "secondary",
10208
- renderAs: "p",
10209
- variant: "label4",
10210
- children: label
10211
- }
10212
- ) }),
10213
- /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
10214
- ItemsContainer,
10215
- {
10216
- onValueChange,
10217
- value: valueAsHex,
10218
- children
10219
- }
10220
- )
10221
- ] });
10194
+ return /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
10195
+ Container,
10196
+ {
10197
+ onValueChange,
10198
+ value: valueAsHex,
10199
+ children
10200
+ }
10201
+ );
10222
10202
  };
10223
10203
  ColorGrid.displayName = "ColorGrid_UI";
10224
10204
 
@@ -10514,35 +10494,27 @@ ColorList.displayName = "ColorList_UI";
10514
10494
  // src/components/ColorPicker/ColorListGroup.tsx
10515
10495
  var import_styled_components52 = __toESM(require("styled-components"));
10516
10496
  var import_jsx_runtime231 = require("react/jsx-runtime");
10517
- var Container4 = import_styled_components52.default.div`
10518
- display: grid;
10519
- gap: var(--wui-space-01);
10520
- grid-template-columns: minmax(0, 1fr);
10521
- `;
10522
- var ItemsContainer2 = import_styled_components52.default.div`
10497
+ var ItemsContainer = import_styled_components52.default.div`
10523
10498
  display: flex;
10524
10499
  flex-direction: column;
10525
10500
  `;
10526
- var LabelContainer2 = import_styled_components52.default.div`
10527
- padding-top: var(--wui-space-01);
10528
- `;
10529
10501
  var ColorListGroup = ({ label, children }) => {
10530
10502
  return /* @__PURE__ */ (0, import_jsx_runtime231.jsxs)(
10531
- Container4,
10503
+ "div",
10532
10504
  {
10533
10505
  "aria-label": label,
10534
10506
  role: "group",
10535
10507
  children: [
10536
- /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(LabelContainer2, { children: /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(
10508
+ /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(
10537
10509
  Text,
10538
10510
  {
10539
10511
  prominence: "secondary",
10540
- renderAs: "p",
10512
+ renderAs: "span",
10541
10513
  variant: "label4",
10542
10514
  children: label
10543
10515
  }
10544
- ) }),
10545
- /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(ItemsContainer2, { children })
10516
+ ),
10517
+ /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(ItemsContainer, { children })
10546
10518
  ]
10547
10519
  }
10548
10520
  );
@@ -10589,7 +10561,7 @@ var ColorNameOrHexCode = ({ name, hexCode }) => {
10589
10561
 
10590
10562
  // src/components/ColorPicker/ColorListOption.tsx
10591
10563
  var import_jsx_runtime233 = require("react/jsx-runtime");
10592
- var Container5 = (0, import_styled_components53.default)(import_react_toggle_group2.Item)`
10564
+ var Container4 = (0, import_styled_components53.default)(import_react_toggle_group2.Item)`
10593
10565
  border: none;
10594
10566
  appearance: none;
10595
10567
  outline: none;
@@ -10617,7 +10589,7 @@ var ColorListOption = ({ value, name }) => {
10617
10589
  const isSelected = valueAsHex === value;
10618
10590
  const derivativeIsSelected = !isSelected && nonDerivedValueAsHex === value;
10619
10591
  return /* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(
10620
- Container5,
10592
+ Container4,
10621
10593
  {
10622
10594
  "aria-label": value,
10623
10595
  "aria-selected": valueAsHex === value,
@@ -10704,11 +10676,11 @@ ColorPickerPopoverContent.displayName = "ColorPickerPopoverContent_UI";
10704
10676
  // src/components/ColorPicker/ColorPickerSection.tsx
10705
10677
  var import_styled_components55 = __toESM(require("styled-components"));
10706
10678
  var import_jsx_runtime236 = require("react/jsx-runtime");
10707
- var Container6 = import_styled_components55.default.div`
10679
+ var Container5 = import_styled_components55.default.div`
10708
10680
  padding: var(--wui-space-02);
10709
10681
  `;
10710
10682
  var ColorPickerSection = ({ children }) => {
10711
- return /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(Container6, { children: /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(Stack, { children }) });
10683
+ return /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(Container5, { children: /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(Stack, { children }) });
10712
10684
  };
10713
10685
  ColorPickerSection.displayName = "ColorPickerSection_UI";
10714
10686
 
@@ -10776,7 +10748,7 @@ ColorPickerTrigger.displayName = "ColorPickerTrigger_UI";
10776
10748
  // src/components/ColorPicker/ContrastIndicator.tsx
10777
10749
  var import_styled_components57 = __toESM(require("styled-components"));
10778
10750
  var import_jsx_runtime240 = require("react/jsx-runtime");
10779
- var Container7 = import_styled_components57.default.div`
10751
+ var Container6 = import_styled_components57.default.div`
10780
10752
  display: flex;
10781
10753
  flex-direction: row;
10782
10754
  justify-content: end;
@@ -10810,7 +10782,7 @@ var ContrastIndicator = () => {
10810
10782
  }
10811
10783
  )
10812
10784
  ] });
10813
- return /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(Container7, { children: isContrastSufficient ? /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
10785
+ return /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(Container6, { children: isContrastSufficient ? /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
10814
10786
  Badge,
10815
10787
  {
10816
10788
  colorScheme: "success",
@@ -11484,7 +11456,7 @@ var HSVHueCanvas = ({ hsv }) => {
11484
11456
  // src/components/ColorPicker/HueSlider.tsx
11485
11457
  var import_jsx_runtime248 = require("react/jsx-runtime");
11486
11458
  var TWENTY_FOUR = 24;
11487
- var Container8 = import_styled_components62.default.div`
11459
+ var Container7 = import_styled_components62.default.div`
11488
11460
  border-radius: var(--wui-border-radius-rounded);
11489
11461
  border: 1px solid var(--wui-color-border);
11490
11462
  height: ${TWENTY_FOUR}px;
@@ -11549,7 +11521,7 @@ var HueSlider = () => {
11549
11521
  },
11550
11522
  [nonDerivedValueAsHsv, onChangeNonDerivedValueAsHsv]
11551
11523
  );
11552
- return /* @__PURE__ */ (0, import_jsx_runtime248.jsxs)(Container8, { style: containerStyle, children: [
11524
+ return /* @__PURE__ */ (0, import_jsx_runtime248.jsxs)(Container7, { style: containerStyle, children: [
11553
11525
  /* @__PURE__ */ (0, import_jsx_runtime248.jsxs)(
11554
11526
  Root,
11555
11527
  {
@@ -11727,7 +11699,7 @@ var HSVSaturationValueCanvas = ({
11727
11699
  var import_jsx_runtime250 = require("react/jsx-runtime");
11728
11700
  var SATURATION_NUDGE = 0.02;
11729
11701
  var VALUE_NUDGE = 0.02;
11730
- var Container9 = import_styled_components64.default.div`
11702
+ var Container8 = import_styled_components64.default.div`
11731
11703
  border-radius: var(--wui-border-radius-02);
11732
11704
  box-shadow: 0 0 0 1px var(--wui-color-border);
11733
11705
  overflow: hidden;
@@ -11894,7 +11866,7 @@ var SaturationAndValuePicker = ({
11894
11866
  return (
11895
11867
  // eslint-disable-next-line styled-components-a11y/no-static-element-interactions
11896
11868
  /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(
11897
- Container9,
11869
+ Container8,
11898
11870
  {
11899
11871
  ref: containerRef,
11900
11872
  "data-testid": dataTestId,