@loomhq/lens 12.18.0 → 12.19.0

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/esm/index.js CHANGED
@@ -981,18 +981,18 @@ var fontSettings = {
981
981
  };
982
982
  var radii = {
983
983
  none: u(0),
984
- 50: u(0.5),
985
- 100: u(1),
986
- medium: u(1),
987
- 150: u(1.5),
988
- 175: u(1.75),
989
- 200: u(2),
990
- large: u(2),
991
- 250: u(2.5),
992
- 300: u(3),
993
- xlarge: u(3),
994
- round: u(999),
995
- full: u(999)
984
+ 50: `var(--ds-radius-small, ${u(0.5)})`,
985
+ 100: `var(--ds-radius-large, ${u(1)})`,
986
+ medium: `var(--ds-radius-large, ${u(1)})`,
987
+ 150: `var(--ds-radius-xlarge, ${u(1.5)})`,
988
+ 175: `var(--ds-radius-xlarge, ${u(1.75)})`,
989
+ 200: `var(--ds-radius-xxlarge, ${u(2)})`,
990
+ large: `var(--ds-radius-xxlarge, ${u(2)})`,
991
+ 250: `var(--ds-radius-xxlarge, ${u(2.5)})`,
992
+ 300: `var(--ds-radius-xxlarge, ${u(3)})`,
993
+ xlarge: `var(--ds-radius-xxlarge, ${u(3)})`,
994
+ round: `var(--ds-radius-full, ${u(999)})`,
995
+ full: `var(--ds-radius-full, ${u(999)})`
996
996
  };
997
997
  var shadows = {
998
998
  small: `0 ${u(0.5)} ${u(1.25)} hsla(0, 0%, 0%, 0.05)`,
@@ -2002,6 +2002,7 @@ var Avatar = (_a) => {
2002
2002
  size = 4,
2003
2003
  letter,
2004
2004
  imageSrc,
2005
+ imageLoading,
2005
2006
  children,
2006
2007
  themeColor = "blue"
2007
2008
  } = _b, props = __objRest(_b, [
@@ -2009,6 +2010,7 @@ var Avatar = (_a) => {
2009
2010
  "size",
2010
2011
  "letter",
2011
2012
  "imageSrc",
2013
+ "imageLoading",
2012
2014
  "children",
2013
2015
  "themeColor"
2014
2016
  ]);
@@ -2026,7 +2028,8 @@ var Avatar = (_a) => {
2026
2028
  alt: altText,
2027
2029
  src: imageSrc,
2028
2030
  height,
2029
- width
2031
+ width,
2032
+ loading: imageLoading
2030
2033
  }
2031
2034
  );
2032
2035
  }
@@ -2076,11 +2079,6 @@ var buildGlobalStylesheet = (rootElement = ":root", bodyElement = "body") => {
2076
2079
  box-sizing: border-box;
2077
2080
  }
2078
2081
 
2079
- ${bodyElement} * {
2080
- -webkit-font-smoothing: antialiased;
2081
- -moz-osx-font-smoothing: grayscale;
2082
- }
2083
-
2084
2082
  ${getThemeStylesString(rootElement)}
2085
2083
 
2086
2084
  ${getAllCssVarsString(rootElement)}
@@ -2232,24 +2230,27 @@ var loader_default = Loader;
2232
2230
  var sizesStyles = {
2233
2231
  small: {
2234
2232
  height: u(4),
2235
- textSize: "small",
2233
+ textSize: "medium",
2236
2234
  iconSize: 2,
2237
2235
  xSpace: u(1.5),
2238
- radius: "var(--lns-radius-150)"
2236
+ radius: "var(--ds-radius-medium)",
2237
+ iconGap: `var(--ds-space-075, ${u(1)})`
2239
2238
  },
2240
2239
  medium: {
2241
2240
  height: u(4.5),
2242
2241
  textSize: "medium",
2243
2242
  iconSize: 3,
2244
- xSpace: u(2),
2245
- radius: "var(--lns-radius-175)"
2243
+ xSpace: `var(--ds-space-150)`,
2244
+ radius: "var(--ds-radius-large)",
2245
+ iconGap: `var(--ds-space-075)`
2246
2246
  },
2247
2247
  large: {
2248
2248
  height: u(7),
2249
2249
  textSize: "large",
2250
2250
  iconSize: 4,
2251
- xSpace: u(2.5),
2252
- radius: "var(--lns-radius-250)"
2251
+ xSpace: `var(--ds-space-200)`,
2252
+ radius: "var(--ds-radius-xlarge)",
2253
+ iconGap: u(1)
2253
2254
  }
2254
2255
  };
2255
2256
  var hasLoaderStyles = (props) => css2`
@@ -2344,7 +2345,6 @@ var widthStyles = (props) => ({
2344
2345
  min-width: max-content;
2345
2346
  `
2346
2347
  });
2347
- var iconGap = u(1);
2348
2348
  var ButtonWrapper = styled5.button`
2349
2349
  appearance: none;
2350
2350
  padding: 0
@@ -2358,7 +2358,7 @@ var ButtonWrapper = styled5.button`
2358
2358
  justify-content: center;
2359
2359
  vertical-align: middle;
2360
2360
  white-space: nowrap;
2361
- ${getFontWeight("bold")};
2361
+ font-weight: var(--ds-font-weight-medium);
2362
2362
  border-radius: ${(props) => sizesStyles[props.size].radius};
2363
2363
  // TODO: remove hasFullWidth after deprecation period
2364
2364
  ${(props) => props.hasFullWidth ? "display: flex; width: 100%" : "display: inline-flex"};
@@ -2464,7 +2464,7 @@ var Button = (_a) => {
2464
2464
  {
2465
2465
  hasLoader,
2466
2466
  paddingLeft: "0",
2467
- paddingRight: children ? iconGap : "0"
2467
+ paddingRight: children ? sizesStyles[size].iconGap : "0"
2468
2468
  },
2469
2469
  /* @__PURE__ */ React8.createElement(
2470
2470
  icon_default,
@@ -2480,7 +2480,7 @@ var Button = (_a) => {
2480
2480
  IconSection,
2481
2481
  {
2482
2482
  hasLoader,
2483
- paddingLeft: children ? iconGap : "0",
2483
+ paddingLeft: children ? sizesStyles[size].iconGap : "0",
2484
2484
  paddingRight: "unset"
2485
2485
  },
2486
2486
  /* @__PURE__ */ React8.createElement(
@@ -2821,21 +2821,21 @@ var sizesStyles2 = {
2821
2821
  height: u(4),
2822
2822
  width: u(5),
2823
2823
  iconSize: 2,
2824
- padding: u(1.75),
2824
+ padding: `var(--ds-space-150)`,
2825
2825
  withIconPadding: u(4.5),
2826
2826
  passwordAdditionalPadding: u(0.5),
2827
2827
  textSize: "small",
2828
- radius: "var(--lns-radius-150)"
2828
+ radius: "var(--ds-radius-medium)"
2829
2829
  },
2830
2830
  medium: {
2831
2831
  height: "var(--lns-formFieldHeight)",
2832
2832
  width: u(6),
2833
2833
  iconSize: 3,
2834
- padding: "var(--lns-formFieldHorizontalPadding)",
2834
+ padding: "var(--ds-space-150)",
2835
2835
  withIconPadding: u(5.5),
2836
2836
  passwordAdditionalPadding: u(0.5),
2837
2837
  textSize: "medium",
2838
- radius: "var(--lns-radius-175)"
2838
+ radius: "var(--ds-radius-large)"
2839
2839
  },
2840
2840
  large: {
2841
2841
  height: u(7),
@@ -2845,7 +2845,7 @@ var sizesStyles2 = {
2845
2845
  withIconPadding: u(5.5),
2846
2846
  passwordAdditionalPadding: u(0.5),
2847
2847
  textSize: "large",
2848
- radius: "var(--lns-radius-250)"
2848
+ radius: "var(--ds-radius-xlarge)"
2849
2849
  }
2850
2850
  };
2851
2851
  var inputRightPadding = (props) => {
@@ -3275,17 +3275,17 @@ var sizeStyles = {
3275
3275
  small: {
3276
3276
  size: u(3),
3277
3277
  iconSize: 2.25,
3278
- radius: "var(--lns-radius-100)"
3278
+ radius: "var(--ds-radius-small)"
3279
3279
  },
3280
3280
  medium: {
3281
3281
  size: u(4),
3282
3282
  iconSize: 3,
3283
- radius: "var(--lns-radius-150)"
3283
+ radius: "var(--ds-radius-medium)"
3284
3284
  },
3285
3285
  large: {
3286
3286
  size: u(5),
3287
3287
  iconSize: 4,
3288
- radius: "var(--lns-radius-175)"
3288
+ radius: "var(--ds-radius-large)"
3289
3289
  }
3290
3290
  };
3291
3291
  var IconButtonBox = styled14.button`
@@ -3426,7 +3426,7 @@ var CheckboxInput = styled15.input`
3426
3426
  cursor: pointer;
3427
3427
 
3428
3428
  & ~ .CheckboxBox {
3429
- border: 2px solid ${getColorValue("body")};
3429
+ border: 2px solid ${(props) => getColorValue(props.borderColor || "body")};
3430
3430
  }
3431
3431
 
3432
3432
  &:checked ~ .CheckboxBox,
@@ -3483,14 +3483,16 @@ var Checkbox = forwardRef2(
3483
3483
  isIndeterminate,
3484
3484
  onFocus,
3485
3485
  onChange,
3486
- onBlur
3486
+ onBlur,
3487
+ borderColor
3487
3488
  } = _b, props = __objRest(_b, [
3488
3489
  "isDisabled",
3489
3490
  "isChecked",
3490
3491
  "isIndeterminate",
3491
3492
  "onFocus",
3492
3493
  "onChange",
3493
- "onBlur"
3494
+ "onBlur",
3495
+ "borderColor"
3494
3496
  ]);
3495
3497
  const defaultRef = useRef2();
3496
3498
  const checkboxRef = ref || defaultRef;
@@ -3510,7 +3512,8 @@ var Checkbox = forwardRef2(
3510
3512
  onChange,
3511
3513
  onBlur,
3512
3514
  ref: checkboxRef,
3513
- "aria-checked": isChecked
3515
+ "aria-checked": isChecked,
3516
+ borderColor
3514
3517
  }, props)
3515
3518
  ), /* @__PURE__ */ React19.createElement(CheckboxBox, { className: "CheckboxBox" }, /* @__PURE__ */ React19.createElement(SvgCheckboxMinus, { className: "Icon IconMinus", color: iconColor }), /* @__PURE__ */ React19.createElement(SvgCheckboxCheck, { className: "Icon IconCheck", color: iconColor })));
3516
3519
  }
@@ -3526,21 +3529,21 @@ var sizeStyles2 = {
3526
3529
  iconSize: 2.25,
3527
3530
  height: u(3),
3528
3531
  xSpace: u(1),
3529
- radius: "var(--lns-radius-100)"
3532
+ radius: "var(--ds-radius-small)"
3530
3533
  },
3531
3534
  medium: {
3532
3535
  textSize: "medium",
3533
3536
  iconSize: 3,
3534
3537
  height: u(4),
3535
3538
  xSpace: u(1.5),
3536
- radius: "var(--lns-radius-150)"
3539
+ radius: "var(--ds-radius-medium)"
3537
3540
  },
3538
3541
  large: {
3539
3542
  textSize: "large",
3540
3543
  iconSize: 4,
3541
3544
  height: u(6),
3542
- xSpace: u(3),
3543
- radius: "var(--lns-radius-200)"
3545
+ xSpace: `var(--ds-space-200)`,
3546
+ radius: "var(--ds-radius-large)"
3544
3547
  }
3545
3548
  };
3546
3549
  var TextButtonWrapper = styled16.button`
@@ -3556,7 +3559,7 @@ var TextButtonWrapper = styled16.button`
3556
3559
  cursor: pointer;
3557
3560
  transition: 0.6s background-color;
3558
3561
  color: ${(props) => getColorValue(props.color || "body")};
3559
- ${getFontWeight("bold")};
3562
+ font-weight: var(--ds-font-weight-medium);
3560
3563
  border-radius: ${(props) => sizeStyles2[props.size].radius};
3561
3564
  ${(props) => getTextSize(sizeStyles2[props.size].textSize)};
3562
3565
  padding: 0 ${(props) => sizeStyles2[props.size].xSpace};
@@ -3762,7 +3765,7 @@ var MenuContainer = styled17.div`
3762
3765
  z-index: ${(props) => props.zIndex};
3763
3766
  border: 1px solid ${getColorValue("border")};
3764
3767
  ${getShadow("medium")};
3765
- ${getRadius("250")};
3768
+ border-radius: var(--ds-radius-large);
3766
3769
  overflow: hidden;
3767
3770
  `;
3768
3771
  var SearchWrapper = styled17.div`
@@ -3781,10 +3784,10 @@ var MenuItemWrapper = styled17.li`
3781
3784
  grid-auto-flow: column;
3782
3785
  grid-template-columns: ${(props) => props.columns};
3783
3786
  ${getSize("grid-gap", "small")};
3784
- ${getRadius("175")};
3787
+ border-radius: var(--ds-radius-medium);
3785
3788
  align-items: center;
3786
3789
  min-height: ${u(5)};
3787
- padding: 0 ${u(2)};
3790
+ padding: 0 var(--ds-space-150);
3788
3791
  cursor: ${(props) => props.isDisabled ? "default" : "pointer"};
3789
3792
  &:focus-visible {
3790
3793
  outline: 1px solid transparent;
@@ -3879,7 +3882,7 @@ var MenuItem = (_a) => {
3879
3882
  showDeselectIcon
3880
3883
  }, updatedProps),
3881
3884
  icon && (typeof icon === "string" ? /* @__PURE__ */ React25.createElement(container_default, { radius: "50", width: 3, height: 3, overflow: "hidden" }, /* @__PURE__ */ React25.createElement(align_default, { alignment: "center" }, /* @__PURE__ */ React25.createElement(Image2, { src: icon, alt: "", isDisabled }))) : /* @__PURE__ */ React25.createElement(icon_default, { icon, color })),
3882
- /* @__PURE__ */ React25.createElement(text_default, { color, hasEllipsis: true }, children),
3885
+ /* @__PURE__ */ React25.createElement(text_default, { fontWeight: "medium", color, hasEllipsis: true }, children),
3883
3886
  isSelected && /* @__PURE__ */ React25.createElement(React25.Fragment, null, /* @__PURE__ */ React25.createElement("span", { className: "check-icon", "aria-hidden": "true" }, /* @__PURE__ */ React25.createElement(icon_default, { icon: /* @__PURE__ */ React25.createElement(SvgCheck, null), color })), /* @__PURE__ */ React25.createElement("span", { className: "deselect-icon", "aria-hidden": "true" }, /* @__PURE__ */ React25.createElement(icon_default, { icon: /* @__PURE__ */ React25.createElement(SvgClose, null), color })))
3884
3887
  );
3885
3888
  };
@@ -3988,12 +3991,12 @@ var SelectHeaderWrapper = styled19.button`
3988
3991
  cursor: pointer;
3989
3992
  width: 100%;
3990
3993
  min-height: ${u(4.5)};
3991
- padding: 0 ${u(1.5)} 0 var(--lns-formFieldHorizontalPadding);
3994
+ padding: 0 ${u(1.5)} 0 var(--ds-space-150);
3992
3995
  color: ${getColorValue("body")};
3993
3996
  border: none;
3994
3997
  background-color: ${getColorValue("formFieldBackground")};
3995
3998
  transition: 0.3s box-shadow;
3996
- border-radius: var(--lns-formFieldRadius);
3999
+ border-radius: var(--ds-radius-large);
3997
4000
  box-shadow: inset 0 0 0
3998
4001
  ${(props) => props.hasError ? "var(--lns-formFieldBorderWidthFocus) var(--lns-color-danger)" : "var(--lns-formFieldBorderWidth) var(--lns-color-formFieldBorder)"};
3999
4002
 
@@ -4697,7 +4700,7 @@ var ModalCardWrapper = styled21.dialog`
4697
4700
  color: ${getColorValue("body")};
4698
4701
  bottom: ${(props) => getPlacement(props.maxHeight, props.placement).bottom};
4699
4702
  ${getShadow("large")};
4700
- ${getRadius("xlarge")};
4703
+ border-radius: var(--ds-radius-xlarge);
4701
4704
  // Unsets bottom-radius for bottom-aligned modals
4702
4705
  border-bottom-left-radius: ${(props) => props.placement === "bottom" ? "initial" : void 0};
4703
4706
  border-bottom-right-radius: ${(props) => props.placement === "bottom" ? "initial" : void 0};
@@ -5100,11 +5103,11 @@ import styled23 from "@emotion/styled";
5100
5103
  import React32 from "react";
5101
5104
  var sizesStyles3 = {
5102
5105
  small: {
5103
- padding: `${u(1.5)} ${u(1.75)}`,
5106
+ padding: `var(--ds-space-100) var(--ds-space-150)`,
5104
5107
  textSize: "small"
5105
5108
  },
5106
5109
  medium: {
5107
- padding: `${u(1.5)} var(--lns-formFieldHorizontalPadding)`,
5110
+ padding: `var(--ds-space-100) var(--ds-space-150)`,
5108
5111
  textSize: "medium"
5109
5112
  }
5110
5113
  };
@@ -5116,7 +5119,7 @@ var TextareaWrapper = styled23.textarea`
5116
5119
  background-color: ${getColorValue("formFieldBackground")};
5117
5120
  transition: 0.3s box-shadow;
5118
5121
  padding: ${(props) => sizesStyles3[props.size].padding};
5119
- ${getRadius("250")};
5122
+ border-radius: var(--ds-radius-large);
5120
5123
  box-shadow: inset 0 0 0 var(--lns-formFieldBorderWidth)
5121
5124
  ${(props) => props.error ? "var(--lns-color-danger)" : "var(--lns-color-formFieldBorder)"};
5122
5125
  ${(props) => getTextSize(sizesStyles3[props.size].textSize)};
@@ -5297,9 +5300,9 @@ var TypeaheadInputField = styled24.input`
5297
5300
  padding-top: 0;
5298
5301
  padding-bottom: 0;
5299
5302
  id: ${(props) => props.id};
5300
- padding-left: ${(props) => props.hasIcon ? u(5.5) : "var(--lns-formFieldHorizontalPadding)"};
5301
- padding-right: ${(props) => props.hasAddOn ? u(5.5) : "var(--lns-formFieldHorizontalPadding)"};
5302
- border-radius: var(--lns-formFieldRadius);
5303
+ padding-left: ${(props) => props.hasIcon ? u(5.5) : "var(--ds-space-150)"};
5304
+ padding-right: ${(props) => props.hasAddOn ? u(5.5) : "var(--ds-space-150)"};
5305
+ border-radius: var(--ds-radius-large, var(--lns-formFieldRadius));
5303
5306
  box-shadow: inset 0 0 0
5304
5307
  ${(props) => props.hasError ? "var(--lns-formFieldBorderWidthFocus) var(--lns-color-danger)" : "var(--lns-formFieldBorderWidth) var(--lns-color-formFieldBorder)"};
5305
5308
 
@@ -6597,7 +6600,7 @@ var ToastWrapper = styled30.div`
6597
6600
  animation: ${(props) => enter(props.toastDuration, props.platform)}
6598
6601
  ${(props) => props.toastDuration}ms forwards;
6599
6602
  background-color: ${getColorValue("backgroundInverse")};
6600
- ${getRadius("250")};
6603
+ border-radius: var(--ds-radius-large);
6601
6604
  top: ${(props) => getTop(props.platform)};
6602
6605
  bottom: ${(props) => getBottom(props.platform)};
6603
6606
  ${getShadow("large")};
@@ -6609,7 +6612,7 @@ var ToastWrapper = styled30.div`
6609
6612
  left: 50%;
6610
6613
  max-width: ${u(50)}; // Fallback when min() function is not supported
6611
6614
  max-width: min(90%, ${u(50)});
6612
- padding: ${u(1.5)} var(--lns-space-medium) ${u(1.5)} var(--lns-space-large);
6615
+ padding: ${u(1.5)} var(--ds-space-150) ${u(1.5)} var(--ds-space-200);
6613
6616
  position: fixed;
6614
6617
  transform: translateX(-50%);
6615
6618
  width: max-content;
@@ -6684,8 +6687,8 @@ var tooltipYPadding = (tooltipMinHeight - textHeight) / 2;
6684
6687
  var TooltipBoxWrapper = styled31.div`
6685
6688
  background-color: ${getColorValue("backgroundInverse")};
6686
6689
  color: ${getColorValue("bodyInverse")};
6687
- ${getRadius("150")};
6688
- ${getFontWeight("bold")};
6690
+ border-radius: var(--ds-radius-medium);
6691
+ font-weight: var(--ds-font-weight-medium);
6689
6692
  ${getTextSize("small")};
6690
6693
  ${getShadow("medium")};
6691
6694
  ${(props) => getSize("max-width", props.maxWidth)};
@@ -6695,9 +6698,9 @@ var TooltipBoxWrapper = styled31.div`
6695
6698
  `;
6696
6699
  var ShortcutWrapper = styled31.div`
6697
6700
  background-color: ${getColorValue("grey7")};
6698
- border-radius: 3px;
6701
+ border-radius: var(--ds-radius-xsmall);
6699
6702
  color: ${getColorValue("grey3")};
6700
- ${getFontWeight("bold")};
6703
+ font-weight: var(--ds-font-weight-medium);
6701
6704
  ${getTextSize("small")};
6702
6705
  padding-left: ${u(0.5)};
6703
6706
  padding-right: ${u(0.5)};
@@ -6883,7 +6886,7 @@ var Tooltip = (_a) => {
6883
6886
  role: "tooltip",
6884
6887
  id: tooltipId
6885
6888
  }, rest),
6886
- /* @__PURE__ */ React43.createElement(arrange_default, { gap: "small" }, /* @__PURE__ */ React43.createElement(text_default, { size: "small", fontWeight: "bold" }, content), shortcut && /* @__PURE__ */ React43.createElement(arrange_default, { gap: "xsmall" }, shortcut.map((char, index) => /* @__PURE__ */ React43.createElement(ShortcutBox, { key: index }, char))))
6889
+ /* @__PURE__ */ React43.createElement(arrange_default, { gap: "small" }, /* @__PURE__ */ React43.createElement(text_default, { size: "small", fontWeight: "medium" }, content), shortcut && /* @__PURE__ */ React43.createElement(arrange_default, { gap: "xsmall" }, shortcut.map((char, index) => /* @__PURE__ */ React43.createElement(ShortcutBox, { key: index }, char))))
6887
6890
  ))
6888
6891
  ));
6889
6892
  };
@@ -7692,7 +7695,7 @@ var TabsNav = styled36.div`
7692
7695
  }
7693
7696
  `;
7694
7697
  var TabsNavPilled = styled36.div`
7695
- ${getRadius("200")};
7698
+ border-radius: var(--ds-radius-xlarge, var(--lns-radius-200));
7696
7699
  background-color: var(--lns-color-backgroundSecondary);
7697
7700
 
7698
7701
  padding: var(--lns-space-xsmall);
@@ -7737,7 +7740,7 @@ var TabWrapper = styled36.button`
7737
7740
  color: inherit;
7738
7741
  text-decoration: none;
7739
7742
  flex-shrink: 0;
7740
- ${getFontWeight("bold")};
7743
+ font-weight: var(--ds-font-weight-medium);
7741
7744
  transition: 0.6s color;
7742
7745
  white-space: nowrap;
7743
7746
  color: ${(props) => getColorValue(
@@ -7762,7 +7765,7 @@ var TabWrapper = styled36.button`
7762
7765
 
7763
7766
  &::after {
7764
7767
  bottom: 0;
7765
- ${getRadius("medium")};
7768
+ border-radius: 0;
7766
7769
  content: '';
7767
7770
  height: var(--activeIndicatorHeight);
7768
7771
  position: absolute;
@@ -7777,7 +7780,7 @@ var TabWrapperPilled = styled36.button`
7777
7780
  font: inherit;
7778
7781
  background: transparent;
7779
7782
  border: none;
7780
- ${getRadius("175")};
7783
+ border-radius: var(--ds-radius-large, var(--lns-radius-175));
7781
7784
  cursor: pointer;
7782
7785
  display: inline-flex;
7783
7786
  align-items: center;
@@ -7787,7 +7790,7 @@ var TabWrapperPilled = styled36.button`
7787
7790
  color: inherit;
7788
7791
  text-decoration: none;
7789
7792
  flex-shrink: 0;
7790
- ${getFontWeight("bold")};
7793
+ font-weight: var(--ds-font-weight-medium);
7791
7794
 
7792
7795
  transition: 0.6s color;
7793
7796
  white-space: nowrap;
@@ -8063,13 +8066,13 @@ var PillWrapper = styled37.div`
8063
8066
  grid-auto-flow: column;
8064
8067
  align-items: center;
8065
8068
  vertical-align: middle;
8066
- padding: 0 ${u(1.5)};
8069
+ padding: 0 var(--ds-space-100);
8067
8070
  min-height: ${u(3.25)};
8068
8071
  color: ${(props) => getColorValue(props.color)};
8069
8072
  background-color: ${(props) => getColorValue(props.backgroundColor)};
8070
- ${getRadius("100")};
8073
+ border-radius: var(--ds-radius-medium);
8071
8074
  ${getTextSize("small")};
8072
- ${getFontWeight("bold")};
8075
+ font-weight: var(--ds-font-weight-medium);
8073
8076
  ${getSize("gap", "xsmall")};
8074
8077
  `;
8075
8078
  var Pill = (_a) => {
@@ -8128,9 +8131,9 @@ var placements2 = {
8128
8131
  };
8129
8132
  var Wrapper2 = styled38.div`
8130
8133
  position: relative;
8131
- width: fit-content;
8132
8134
  // transform forces the popover to calculate the position from the trigger instead of the viewport
8133
8135
  transform: translate(0);
8136
+ width: ${(props) => props.width};
8134
8137
  z-index: ${(props) => props.childrenZIndex};
8135
8138
  `;
8136
8139
  var ContentWrapper2 = styled38.div`
@@ -8149,7 +8152,8 @@ var Popover = (_a) => {
8149
8152
  rootId,
8150
8153
  boundaryElement = "body",
8151
8154
  transitionDuration = 0,
8152
- transitionDelay = 0
8155
+ transitionDelay = 0,
8156
+ width = "fit-content"
8153
8157
  } = _b, props = __objRest(_b, [
8154
8158
  "children",
8155
8159
  "content",
@@ -8162,7 +8166,8 @@ var Popover = (_a) => {
8162
8166
  "rootId",
8163
8167
  "boundaryElement",
8164
8168
  "transitionDuration",
8165
- "transitionDelay"
8169
+ "transitionDelay",
8170
+ "width"
8166
8171
  ]);
8167
8172
  const unitOffset = offset * unit;
8168
8173
  const unitBoundaryOffset = boundaryOffset * unit;
@@ -8211,10 +8216,20 @@ var Popover = (_a) => {
8211
8216
  opacity: stage === "enter" ? 1 : 0
8212
8217
  }
8213
8218
  };
8214
- return /* @__PURE__ */ React50.createElement(Wrapper2, __spreadProps(__spreadValues({ ref: reference }, props), { childrenZIndex }), children, shouldMount && /* @__PURE__ */ React50.createElement(React50.Fragment, null, !rootNode && /* @__PURE__ */ React50.createElement(ContentWrapper2, __spreadValues({}, contentProps), content), rootNode && ReactDOM.createPortal(
8215
- /* @__PURE__ */ React50.createElement(ContentWrapper2, __spreadValues({}, contentProps), content),
8216
- rootNode
8217
- )));
8219
+ return /* @__PURE__ */ React50.createElement(
8220
+ Wrapper2,
8221
+ __spreadProps(__spreadValues({
8222
+ ref: reference
8223
+ }, props), {
8224
+ childrenZIndex,
8225
+ width
8226
+ }),
8227
+ children,
8228
+ shouldMount && /* @__PURE__ */ React50.createElement(React50.Fragment, null, !rootNode && /* @__PURE__ */ React50.createElement(ContentWrapper2, __spreadValues({}, contentProps), content), rootNode && ReactDOM.createPortal(
8229
+ /* @__PURE__ */ React50.createElement(ContentWrapper2, __spreadValues({}, contentProps), content),
8230
+ rootNode
8231
+ ))
8232
+ );
8218
8233
  };
8219
8234
  var popover_default = Popover;
8220
8235
 
@@ -8424,7 +8439,7 @@ var ColorfulWrapper = styled41.div`
8424
8439
  height: ${u(14)};
8425
8440
  border-bottom: none;
8426
8441
  box-shadow: inset 0 0 0 1px var(--lns-color-border);
8427
- ${getRadius(100)};
8442
+ border-radius: var(--ds-radius-small);
8428
8443
  margin-bottom: var(--lns-space-small);
8429
8444
  }
8430
8445
 
@@ -8457,7 +8472,7 @@ var ColorPickerContainer = styled41.div`
8457
8472
  position: relative;
8458
8473
  width: ${u(31)};
8459
8474
  background-color: var(--lns-color-overlay);
8460
- ${getRadius("250")};
8475
+ border-radius: var(--ds-radius-large);
8461
8476
  box-shadow:
8462
8477
  0 0 0 1px var(--lns-color-border),
8463
8478
  var(--lns-shadow-medium);
@@ -8475,7 +8490,7 @@ var InputContainer = styled41.div`
8475
8490
  border: none;
8476
8491
  box-shadow: inset 0 0 0 var(--lns-formFieldBorderWidth)
8477
8492
  var(--lns-color-formFieldBorder);
8478
- ${getRadius("150")};
8493
+ border-radius: var(--ds-radius-medium);
8479
8494
  transition: 0.3s box-shadow;
8480
8495
  background-color: var(--lns-color-overlay);
8481
8496
  color: var(--lns-color-body);
@@ -8498,7 +8513,7 @@ var ColorBox = styled41.div`
8498
8513
  left: var(--lns-space-xsmall);
8499
8514
  top: var(--lns-space-xsmall);
8500
8515
  border: 1px solid rgba(0, 0, 0, 0.1);
8501
- ${getRadius("100")};
8516
+ border-radius: var(--ds-radius-medium);
8502
8517
  background-color: ${(props) => props.color};
8503
8518
  `;
8504
8519
  var ButtonWrapper2 = styled41.div`
@@ -8518,7 +8533,7 @@ var Swatch = styled41.div`
8518
8533
  cursor: pointer;
8519
8534
  width: ${u(3)};
8520
8535
  height: ${u(3)};
8521
- ${getRadius("100")};
8536
+ border-radius: var(--ds-radius-medium);
8522
8537
  background-color: ${(props) => props.color};
8523
8538
  border: ${(props) => props.selected === props.color ? "1px solid white" : "1px solid var(--lns-color-border)"};
8524
8539
  box-shadow: ${(props) => props.selected === props.color && "0 0 0 2px var(--lns-color-focusRing)"};