@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/cjs/index.js CHANGED
@@ -1244,18 +1244,18 @@ var fontSettings = {
1244
1244
  };
1245
1245
  var radii = {
1246
1246
  none: u(0),
1247
- 50: u(0.5),
1248
- 100: u(1),
1249
- medium: u(1),
1250
- 150: u(1.5),
1251
- 175: u(1.75),
1252
- 200: u(2),
1253
- large: u(2),
1254
- 250: u(2.5),
1255
- 300: u(3),
1256
- xlarge: u(3),
1257
- round: u(999),
1258
- full: u(999)
1247
+ 50: `var(--ds-radius-small, ${u(0.5)})`,
1248
+ 100: `var(--ds-radius-large, ${u(1)})`,
1249
+ medium: `var(--ds-radius-large, ${u(1)})`,
1250
+ 150: `var(--ds-radius-xlarge, ${u(1.5)})`,
1251
+ 175: `var(--ds-radius-xlarge, ${u(1.75)})`,
1252
+ 200: `var(--ds-radius-xxlarge, ${u(2)})`,
1253
+ large: `var(--ds-radius-xxlarge, ${u(2)})`,
1254
+ 250: `var(--ds-radius-xxlarge, ${u(2.5)})`,
1255
+ 300: `var(--ds-radius-xxlarge, ${u(3)})`,
1256
+ xlarge: `var(--ds-radius-xxlarge, ${u(3)})`,
1257
+ round: `var(--ds-radius-full, ${u(999)})`,
1258
+ full: `var(--ds-radius-full, ${u(999)})`
1259
1259
  };
1260
1260
  var shadows = {
1261
1261
  small: `0 ${u(0.5)} ${u(1.25)} hsla(0, 0%, 0%, 0.05)`,
@@ -2265,6 +2265,7 @@ var Avatar = (_a) => {
2265
2265
  size = 4,
2266
2266
  letter,
2267
2267
  imageSrc,
2268
+ imageLoading,
2268
2269
  children,
2269
2270
  themeColor = "blue"
2270
2271
  } = _b, props = __objRest(_b, [
@@ -2272,6 +2273,7 @@ var Avatar = (_a) => {
2272
2273
  "size",
2273
2274
  "letter",
2274
2275
  "imageSrc",
2276
+ "imageLoading",
2275
2277
  "children",
2276
2278
  "themeColor"
2277
2279
  ]);
@@ -2289,7 +2291,8 @@ var Avatar = (_a) => {
2289
2291
  alt: altText,
2290
2292
  src: imageSrc,
2291
2293
  height,
2292
- width
2294
+ width,
2295
+ loading: imageLoading
2293
2296
  }
2294
2297
  );
2295
2298
  }
@@ -2339,11 +2342,6 @@ var buildGlobalStylesheet = (rootElement = ":root", bodyElement = "body") => {
2339
2342
  box-sizing: border-box;
2340
2343
  }
2341
2344
 
2342
- ${bodyElement} * {
2343
- -webkit-font-smoothing: antialiased;
2344
- -moz-osx-font-smoothing: grayscale;
2345
- }
2346
-
2347
2345
  ${getThemeStylesString(rootElement)}
2348
2346
 
2349
2347
  ${getAllCssVarsString(rootElement)}
@@ -2495,24 +2493,27 @@ var loader_default = Loader;
2495
2493
  var sizesStyles = {
2496
2494
  small: {
2497
2495
  height: u(4),
2498
- textSize: "small",
2496
+ textSize: "medium",
2499
2497
  iconSize: 2,
2500
2498
  xSpace: u(1.5),
2501
- radius: "var(--lns-radius-150)"
2499
+ radius: "var(--ds-radius-medium)",
2500
+ iconGap: `var(--ds-space-075, ${u(1)})`
2502
2501
  },
2503
2502
  medium: {
2504
2503
  height: u(4.5),
2505
2504
  textSize: "medium",
2506
2505
  iconSize: 3,
2507
- xSpace: u(2),
2508
- radius: "var(--lns-radius-175)"
2506
+ xSpace: `var(--ds-space-150)`,
2507
+ radius: "var(--ds-radius-large)",
2508
+ iconGap: `var(--ds-space-075)`
2509
2509
  },
2510
2510
  large: {
2511
2511
  height: u(7),
2512
2512
  textSize: "large",
2513
2513
  iconSize: 4,
2514
- xSpace: u(2.5),
2515
- radius: "var(--lns-radius-250)"
2514
+ xSpace: `var(--ds-space-200)`,
2515
+ radius: "var(--ds-radius-xlarge)",
2516
+ iconGap: u(1)
2516
2517
  }
2517
2518
  };
2518
2519
  var hasLoaderStyles = (props) => import_react10.css`
@@ -2607,7 +2608,6 @@ var widthStyles = (props) => ({
2607
2608
  min-width: max-content;
2608
2609
  `
2609
2610
  });
2610
- var iconGap = u(1);
2611
2611
  var ButtonWrapper = import_styled5.default.button`
2612
2612
  appearance: none;
2613
2613
  padding: 0
@@ -2621,7 +2621,7 @@ var ButtonWrapper = import_styled5.default.button`
2621
2621
  justify-content: center;
2622
2622
  vertical-align: middle;
2623
2623
  white-space: nowrap;
2624
- ${getFontWeight("bold")};
2624
+ font-weight: var(--ds-font-weight-medium);
2625
2625
  border-radius: ${(props) => sizesStyles[props.size].radius};
2626
2626
  // TODO: remove hasFullWidth after deprecation period
2627
2627
  ${(props) => props.hasFullWidth ? "display: flex; width: 100%" : "display: inline-flex"};
@@ -2727,7 +2727,7 @@ var Button = (_a) => {
2727
2727
  {
2728
2728
  hasLoader,
2729
2729
  paddingLeft: "0",
2730
- paddingRight: children ? iconGap : "0"
2730
+ paddingRight: children ? sizesStyles[size].iconGap : "0"
2731
2731
  },
2732
2732
  /* @__PURE__ */ import_react11.default.createElement(
2733
2733
  icon_default,
@@ -2743,7 +2743,7 @@ var Button = (_a) => {
2743
2743
  IconSection,
2744
2744
  {
2745
2745
  hasLoader,
2746
- paddingLeft: children ? iconGap : "0",
2746
+ paddingLeft: children ? sizesStyles[size].iconGap : "0",
2747
2747
  paddingRight: "unset"
2748
2748
  },
2749
2749
  /* @__PURE__ */ import_react11.default.createElement(
@@ -3084,21 +3084,21 @@ var sizesStyles2 = {
3084
3084
  height: u(4),
3085
3085
  width: u(5),
3086
3086
  iconSize: 2,
3087
- padding: u(1.75),
3087
+ padding: `var(--ds-space-150)`,
3088
3088
  withIconPadding: u(4.5),
3089
3089
  passwordAdditionalPadding: u(0.5),
3090
3090
  textSize: "small",
3091
- radius: "var(--lns-radius-150)"
3091
+ radius: "var(--ds-radius-medium)"
3092
3092
  },
3093
3093
  medium: {
3094
3094
  height: "var(--lns-formFieldHeight)",
3095
3095
  width: u(6),
3096
3096
  iconSize: 3,
3097
- padding: "var(--lns-formFieldHorizontalPadding)",
3097
+ padding: "var(--ds-space-150)",
3098
3098
  withIconPadding: u(5.5),
3099
3099
  passwordAdditionalPadding: u(0.5),
3100
3100
  textSize: "medium",
3101
- radius: "var(--lns-radius-175)"
3101
+ radius: "var(--ds-radius-large)"
3102
3102
  },
3103
3103
  large: {
3104
3104
  height: u(7),
@@ -3108,7 +3108,7 @@ var sizesStyles2 = {
3108
3108
  withIconPadding: u(5.5),
3109
3109
  passwordAdditionalPadding: u(0.5),
3110
3110
  textSize: "large",
3111
- radius: "var(--lns-radius-250)"
3111
+ radius: "var(--ds-radius-xlarge)"
3112
3112
  }
3113
3113
  };
3114
3114
  var inputRightPadding = (props) => {
@@ -3538,17 +3538,17 @@ var sizeStyles = {
3538
3538
  small: {
3539
3539
  size: u(3),
3540
3540
  iconSize: 2.25,
3541
- radius: "var(--lns-radius-100)"
3541
+ radius: "var(--ds-radius-small)"
3542
3542
  },
3543
3543
  medium: {
3544
3544
  size: u(4),
3545
3545
  iconSize: 3,
3546
- radius: "var(--lns-radius-150)"
3546
+ radius: "var(--ds-radius-medium)"
3547
3547
  },
3548
3548
  large: {
3549
3549
  size: u(5),
3550
3550
  iconSize: 4,
3551
- radius: "var(--lns-radius-175)"
3551
+ radius: "var(--ds-radius-large)"
3552
3552
  }
3553
3553
  };
3554
3554
  var IconButtonBox = import_styled14.default.button`
@@ -3689,7 +3689,7 @@ var CheckboxInput = import_styled15.default.input`
3689
3689
  cursor: pointer;
3690
3690
 
3691
3691
  & ~ .CheckboxBox {
3692
- border: 2px solid ${getColorValue("body")};
3692
+ border: 2px solid ${(props) => getColorValue(props.borderColor || "body")};
3693
3693
  }
3694
3694
 
3695
3695
  &:checked ~ .CheckboxBox,
@@ -3746,14 +3746,16 @@ var Checkbox = (0, import_react21.forwardRef)(
3746
3746
  isIndeterminate,
3747
3747
  onFocus,
3748
3748
  onChange,
3749
- onBlur
3749
+ onBlur,
3750
+ borderColor
3750
3751
  } = _b, props = __objRest(_b, [
3751
3752
  "isDisabled",
3752
3753
  "isChecked",
3753
3754
  "isIndeterminate",
3754
3755
  "onFocus",
3755
3756
  "onChange",
3756
- "onBlur"
3757
+ "onBlur",
3758
+ "borderColor"
3757
3759
  ]);
3758
3760
  const defaultRef = (0, import_react21.useRef)();
3759
3761
  const checkboxRef = ref || defaultRef;
@@ -3773,7 +3775,8 @@ var Checkbox = (0, import_react21.forwardRef)(
3773
3775
  onChange,
3774
3776
  onBlur,
3775
3777
  ref: checkboxRef,
3776
- "aria-checked": isChecked
3778
+ "aria-checked": isChecked,
3779
+ borderColor
3777
3780
  }, props)
3778
3781
  ), /* @__PURE__ */ import_react21.default.createElement(CheckboxBox, { className: "CheckboxBox" }, /* @__PURE__ */ import_react21.default.createElement(SvgCheckboxMinus, { className: "Icon IconMinus", color: iconColor }), /* @__PURE__ */ import_react21.default.createElement(SvgCheckboxCheck, { className: "Icon IconCheck", color: iconColor })));
3779
3782
  }
@@ -3789,21 +3792,21 @@ var sizeStyles2 = {
3789
3792
  iconSize: 2.25,
3790
3793
  height: u(3),
3791
3794
  xSpace: u(1),
3792
- radius: "var(--lns-radius-100)"
3795
+ radius: "var(--ds-radius-small)"
3793
3796
  },
3794
3797
  medium: {
3795
3798
  textSize: "medium",
3796
3799
  iconSize: 3,
3797
3800
  height: u(4),
3798
3801
  xSpace: u(1.5),
3799
- radius: "var(--lns-radius-150)"
3802
+ radius: "var(--ds-radius-medium)"
3800
3803
  },
3801
3804
  large: {
3802
3805
  textSize: "large",
3803
3806
  iconSize: 4,
3804
3807
  height: u(6),
3805
- xSpace: u(3),
3806
- radius: "var(--lns-radius-200)"
3808
+ xSpace: `var(--ds-space-200)`,
3809
+ radius: "var(--ds-radius-large)"
3807
3810
  }
3808
3811
  };
3809
3812
  var TextButtonWrapper = import_styled16.default.button`
@@ -3819,7 +3822,7 @@ var TextButtonWrapper = import_styled16.default.button`
3819
3822
  cursor: pointer;
3820
3823
  transition: 0.6s background-color;
3821
3824
  color: ${(props) => getColorValue(props.color || "body")};
3822
- ${getFontWeight("bold")};
3825
+ font-weight: var(--ds-font-weight-medium);
3823
3826
  border-radius: ${(props) => sizeStyles2[props.size].radius};
3824
3827
  ${(props) => getTextSize(sizeStyles2[props.size].textSize)};
3825
3828
  padding: 0 ${(props) => sizeStyles2[props.size].xSpace};
@@ -4021,7 +4024,7 @@ var MenuContainer = import_styled17.default.div`
4021
4024
  z-index: ${(props) => props.zIndex};
4022
4025
  border: 1px solid ${getColorValue("border")};
4023
4026
  ${getShadow("medium")};
4024
- ${getRadius("250")};
4027
+ border-radius: var(--ds-radius-large);
4025
4028
  overflow: hidden;
4026
4029
  `;
4027
4030
  var SearchWrapper = import_styled17.default.div`
@@ -4040,10 +4043,10 @@ var MenuItemWrapper = import_styled17.default.li`
4040
4043
  grid-auto-flow: column;
4041
4044
  grid-template-columns: ${(props) => props.columns};
4042
4045
  ${getSize("grid-gap", "small")};
4043
- ${getRadius("175")};
4046
+ border-radius: var(--ds-radius-medium);
4044
4047
  align-items: center;
4045
4048
  min-height: ${u(5)};
4046
- padding: 0 ${u(2)};
4049
+ padding: 0 var(--ds-space-150);
4047
4050
  cursor: ${(props) => props.isDisabled ? "default" : "pointer"};
4048
4051
  &:focus-visible {
4049
4052
  outline: 1px solid transparent;
@@ -4138,7 +4141,7 @@ var MenuItem = (_a) => {
4138
4141
  showDeselectIcon
4139
4142
  }, updatedProps),
4140
4143
  icon && (typeof icon === "string" ? /* @__PURE__ */ import_react24.default.createElement(container_default, { radius: "50", width: 3, height: 3, overflow: "hidden" }, /* @__PURE__ */ import_react24.default.createElement(align_default, { alignment: "center" }, /* @__PURE__ */ import_react24.default.createElement(Image2, { src: icon, alt: "", isDisabled }))) : /* @__PURE__ */ import_react24.default.createElement(icon_default, { icon, color })),
4141
- /* @__PURE__ */ import_react24.default.createElement(text_default, { color, hasEllipsis: true }, children),
4144
+ /* @__PURE__ */ import_react24.default.createElement(text_default, { fontWeight: "medium", color, hasEllipsis: true }, children),
4142
4145
  isSelected && /* @__PURE__ */ import_react24.default.createElement(import_react24.default.Fragment, null, /* @__PURE__ */ import_react24.default.createElement("span", { className: "check-icon", "aria-hidden": "true" }, /* @__PURE__ */ import_react24.default.createElement(icon_default, { icon: /* @__PURE__ */ import_react24.default.createElement(SvgCheck, null), color })), /* @__PURE__ */ import_react24.default.createElement("span", { className: "deselect-icon", "aria-hidden": "true" }, /* @__PURE__ */ import_react24.default.createElement(icon_default, { icon: /* @__PURE__ */ import_react24.default.createElement(SvgClose, null), color })))
4143
4146
  );
4144
4147
  };
@@ -4247,12 +4250,12 @@ var SelectHeaderWrapper = import_styled19.default.button`
4247
4250
  cursor: pointer;
4248
4251
  width: 100%;
4249
4252
  min-height: ${u(4.5)};
4250
- padding: 0 ${u(1.5)} 0 var(--lns-formFieldHorizontalPadding);
4253
+ padding: 0 ${u(1.5)} 0 var(--ds-space-150);
4251
4254
  color: ${getColorValue("body")};
4252
4255
  border: none;
4253
4256
  background-color: ${getColorValue("formFieldBackground")};
4254
4257
  transition: 0.3s box-shadow;
4255
- border-radius: var(--lns-formFieldRadius);
4258
+ border-radius: var(--ds-radius-large);
4256
4259
  box-shadow: inset 0 0 0
4257
4260
  ${(props) => props.hasError ? "var(--lns-formFieldBorderWidthFocus) var(--lns-color-danger)" : "var(--lns-formFieldBorderWidth) var(--lns-color-formFieldBorder)"};
4258
4261
 
@@ -4956,7 +4959,7 @@ var ModalCardWrapper = import_styled21.default.dialog`
4956
4959
  color: ${getColorValue("body")};
4957
4960
  bottom: ${(props) => getPlacement(props.maxHeight, props.placement).bottom};
4958
4961
  ${getShadow("large")};
4959
- ${getRadius("xlarge")};
4962
+ border-radius: var(--ds-radius-xlarge);
4960
4963
  // Unsets bottom-radius for bottom-aligned modals
4961
4964
  border-bottom-left-radius: ${(props) => props.placement === "bottom" ? "initial" : void 0};
4962
4965
  border-bottom-right-radius: ${(props) => props.placement === "bottom" ? "initial" : void 0};
@@ -5359,11 +5362,11 @@ var import_styled23 = __toESM(require("@emotion/styled"));
5359
5362
  var import_react32 = __toESM(require("react"));
5360
5363
  var sizesStyles3 = {
5361
5364
  small: {
5362
- padding: `${u(1.5)} ${u(1.75)}`,
5365
+ padding: `var(--ds-space-100) var(--ds-space-150)`,
5363
5366
  textSize: "small"
5364
5367
  },
5365
5368
  medium: {
5366
- padding: `${u(1.5)} var(--lns-formFieldHorizontalPadding)`,
5369
+ padding: `var(--ds-space-100) var(--ds-space-150)`,
5367
5370
  textSize: "medium"
5368
5371
  }
5369
5372
  };
@@ -5375,7 +5378,7 @@ var TextareaWrapper = import_styled23.default.textarea`
5375
5378
  background-color: ${getColorValue("formFieldBackground")};
5376
5379
  transition: 0.3s box-shadow;
5377
5380
  padding: ${(props) => sizesStyles3[props.size].padding};
5378
- ${getRadius("250")};
5381
+ border-radius: var(--ds-radius-large);
5379
5382
  box-shadow: inset 0 0 0 var(--lns-formFieldBorderWidth)
5380
5383
  ${(props) => props.error ? "var(--lns-color-danger)" : "var(--lns-color-formFieldBorder)"};
5381
5384
  ${(props) => getTextSize(sizesStyles3[props.size].textSize)};
@@ -5549,9 +5552,9 @@ var TypeaheadInputField = import_styled24.default.input`
5549
5552
  padding-top: 0;
5550
5553
  padding-bottom: 0;
5551
5554
  id: ${(props) => props.id};
5552
- padding-left: ${(props) => props.hasIcon ? u(5.5) : "var(--lns-formFieldHorizontalPadding)"};
5553
- padding-right: ${(props) => props.hasAddOn ? u(5.5) : "var(--lns-formFieldHorizontalPadding)"};
5554
- border-radius: var(--lns-formFieldRadius);
5555
+ padding-left: ${(props) => props.hasIcon ? u(5.5) : "var(--ds-space-150)"};
5556
+ padding-right: ${(props) => props.hasAddOn ? u(5.5) : "var(--ds-space-150)"};
5557
+ border-radius: var(--ds-radius-large, var(--lns-formFieldRadius));
5555
5558
  box-shadow: inset 0 0 0
5556
5559
  ${(props) => props.hasError ? "var(--lns-formFieldBorderWidthFocus) var(--lns-color-danger)" : "var(--lns-formFieldBorderWidth) var(--lns-color-formFieldBorder)"};
5557
5560
 
@@ -6849,7 +6852,7 @@ var ToastWrapper = import_styled30.default.div`
6849
6852
  animation: ${(props) => enter(props.toastDuration, props.platform)}
6850
6853
  ${(props) => props.toastDuration}ms forwards;
6851
6854
  background-color: ${getColorValue("backgroundInverse")};
6852
- ${getRadius("250")};
6855
+ border-radius: var(--ds-radius-large);
6853
6856
  top: ${(props) => getTop(props.platform)};
6854
6857
  bottom: ${(props) => getBottom(props.platform)};
6855
6858
  ${getShadow("large")};
@@ -6861,7 +6864,7 @@ var ToastWrapper = import_styled30.default.div`
6861
6864
  left: 50%;
6862
6865
  max-width: ${u(50)}; // Fallback when min() function is not supported
6863
6866
  max-width: min(90%, ${u(50)});
6864
- padding: ${u(1.5)} var(--lns-space-medium) ${u(1.5)} var(--lns-space-large);
6867
+ padding: ${u(1.5)} var(--ds-space-150) ${u(1.5)} var(--ds-space-200);
6865
6868
  position: fixed;
6866
6869
  transform: translateX(-50%);
6867
6870
  width: max-content;
@@ -6936,8 +6939,8 @@ var tooltipYPadding = (tooltipMinHeight - textHeight) / 2;
6936
6939
  var TooltipBoxWrapper = import_styled31.default.div`
6937
6940
  background-color: ${getColorValue("backgroundInverse")};
6938
6941
  color: ${getColorValue("bodyInverse")};
6939
- ${getRadius("150")};
6940
- ${getFontWeight("bold")};
6942
+ border-radius: var(--ds-radius-medium);
6943
+ font-weight: var(--ds-font-weight-medium);
6941
6944
  ${getTextSize("small")};
6942
6945
  ${getShadow("medium")};
6943
6946
  ${(props) => getSize("max-width", props.maxWidth)};
@@ -6947,9 +6950,9 @@ var TooltipBoxWrapper = import_styled31.default.div`
6947
6950
  `;
6948
6951
  var ShortcutWrapper = import_styled31.default.div`
6949
6952
  background-color: ${getColorValue("grey7")};
6950
- border-radius: 3px;
6953
+ border-radius: var(--ds-radius-xsmall);
6951
6954
  color: ${getColorValue("grey3")};
6952
- ${getFontWeight("bold")};
6955
+ font-weight: var(--ds-font-weight-medium);
6953
6956
  ${getTextSize("small")};
6954
6957
  padding-left: ${u(0.5)};
6955
6958
  padding-right: ${u(0.5)};
@@ -7135,7 +7138,7 @@ var Tooltip = (_a) => {
7135
7138
  role: "tooltip",
7136
7139
  id: tooltipId
7137
7140
  }, rest),
7138
- /* @__PURE__ */ import_react45.default.createElement(arrange_default, { gap: "small" }, /* @__PURE__ */ import_react45.default.createElement(text_default, { size: "small", fontWeight: "bold" }, content), shortcut && /* @__PURE__ */ import_react45.default.createElement(arrange_default, { gap: "xsmall" }, shortcut.map((char, index) => /* @__PURE__ */ import_react45.default.createElement(ShortcutBox, { key: index }, char))))
7141
+ /* @__PURE__ */ import_react45.default.createElement(arrange_default, { gap: "small" }, /* @__PURE__ */ import_react45.default.createElement(text_default, { size: "small", fontWeight: "medium" }, content), shortcut && /* @__PURE__ */ import_react45.default.createElement(arrange_default, { gap: "xsmall" }, shortcut.map((char, index) => /* @__PURE__ */ import_react45.default.createElement(ShortcutBox, { key: index }, char))))
7139
7142
  ))
7140
7143
  ));
7141
7144
  };
@@ -7944,7 +7947,7 @@ var TabsNav = import_styled36.default.div`
7944
7947
  }
7945
7948
  `;
7946
7949
  var TabsNavPilled = import_styled36.default.div`
7947
- ${getRadius("200")};
7950
+ border-radius: var(--ds-radius-xlarge, var(--lns-radius-200));
7948
7951
  background-color: var(--lns-color-backgroundSecondary);
7949
7952
 
7950
7953
  padding: var(--lns-space-xsmall);
@@ -7989,7 +7992,7 @@ var TabWrapper = import_styled36.default.button`
7989
7992
  color: inherit;
7990
7993
  text-decoration: none;
7991
7994
  flex-shrink: 0;
7992
- ${getFontWeight("bold")};
7995
+ font-weight: var(--ds-font-weight-medium);
7993
7996
  transition: 0.6s color;
7994
7997
  white-space: nowrap;
7995
7998
  color: ${(props) => getColorValue(
@@ -8014,7 +8017,7 @@ var TabWrapper = import_styled36.default.button`
8014
8017
 
8015
8018
  &::after {
8016
8019
  bottom: 0;
8017
- ${getRadius("medium")};
8020
+ border-radius: 0;
8018
8021
  content: '';
8019
8022
  height: var(--activeIndicatorHeight);
8020
8023
  position: absolute;
@@ -8029,7 +8032,7 @@ var TabWrapperPilled = import_styled36.default.button`
8029
8032
  font: inherit;
8030
8033
  background: transparent;
8031
8034
  border: none;
8032
- ${getRadius("175")};
8035
+ border-radius: var(--ds-radius-large, var(--lns-radius-175));
8033
8036
  cursor: pointer;
8034
8037
  display: inline-flex;
8035
8038
  align-items: center;
@@ -8039,7 +8042,7 @@ var TabWrapperPilled = import_styled36.default.button`
8039
8042
  color: inherit;
8040
8043
  text-decoration: none;
8041
8044
  flex-shrink: 0;
8042
- ${getFontWeight("bold")};
8045
+ font-weight: var(--ds-font-weight-medium);
8043
8046
 
8044
8047
  transition: 0.6s color;
8045
8048
  white-space: nowrap;
@@ -8315,13 +8318,13 @@ var PillWrapper = import_styled37.default.div`
8315
8318
  grid-auto-flow: column;
8316
8319
  align-items: center;
8317
8320
  vertical-align: middle;
8318
- padding: 0 ${u(1.5)};
8321
+ padding: 0 var(--ds-space-100);
8319
8322
  min-height: ${u(3.25)};
8320
8323
  color: ${(props) => getColorValue(props.color)};
8321
8324
  background-color: ${(props) => getColorValue(props.backgroundColor)};
8322
- ${getRadius("100")};
8325
+ border-radius: var(--ds-radius-medium);
8323
8326
  ${getTextSize("small")};
8324
- ${getFontWeight("bold")};
8327
+ font-weight: var(--ds-font-weight-medium);
8325
8328
  ${getSize("gap", "xsmall")};
8326
8329
  `;
8327
8330
  var Pill = (_a) => {
@@ -8373,9 +8376,9 @@ var placements2 = {
8373
8376
  };
8374
8377
  var Wrapper2 = import_styled38.default.div`
8375
8378
  position: relative;
8376
- width: fit-content;
8377
8379
  // transform forces the popover to calculate the position from the trigger instead of the viewport
8378
8380
  transform: translate(0);
8381
+ width: ${(props) => props.width};
8379
8382
  z-index: ${(props) => props.childrenZIndex};
8380
8383
  `;
8381
8384
  var ContentWrapper2 = import_styled38.default.div`
@@ -8394,7 +8397,8 @@ var Popover = (_a) => {
8394
8397
  rootId,
8395
8398
  boundaryElement = "body",
8396
8399
  transitionDuration = 0,
8397
- transitionDelay = 0
8400
+ transitionDelay = 0,
8401
+ width = "fit-content"
8398
8402
  } = _b, props = __objRest(_b, [
8399
8403
  "children",
8400
8404
  "content",
@@ -8407,7 +8411,8 @@ var Popover = (_a) => {
8407
8411
  "rootId",
8408
8412
  "boundaryElement",
8409
8413
  "transitionDuration",
8410
- "transitionDelay"
8414
+ "transitionDelay",
8415
+ "width"
8411
8416
  ]);
8412
8417
  const unitOffset = offset * unit;
8413
8418
  const unitBoundaryOffset = boundaryOffset * unit;
@@ -8456,10 +8461,20 @@ var Popover = (_a) => {
8456
8461
  opacity: stage === "enter" ? 1 : 0
8457
8462
  }
8458
8463
  };
8459
- return /* @__PURE__ */ import_react54.default.createElement(Wrapper2, __spreadProps(__spreadValues({ ref: reference }, props), { childrenZIndex }), children, shouldMount && /* @__PURE__ */ import_react54.default.createElement(import_react54.default.Fragment, null, !rootNode && /* @__PURE__ */ import_react54.default.createElement(ContentWrapper2, __spreadValues({}, contentProps), content), rootNode && import_react_dom2.default.createPortal(
8460
- /* @__PURE__ */ import_react54.default.createElement(ContentWrapper2, __spreadValues({}, contentProps), content),
8461
- rootNode
8462
- )));
8464
+ return /* @__PURE__ */ import_react54.default.createElement(
8465
+ Wrapper2,
8466
+ __spreadProps(__spreadValues({
8467
+ ref: reference
8468
+ }, props), {
8469
+ childrenZIndex,
8470
+ width
8471
+ }),
8472
+ children,
8473
+ shouldMount && /* @__PURE__ */ import_react54.default.createElement(import_react54.default.Fragment, null, !rootNode && /* @__PURE__ */ import_react54.default.createElement(ContentWrapper2, __spreadValues({}, contentProps), content), rootNode && import_react_dom2.default.createPortal(
8474
+ /* @__PURE__ */ import_react54.default.createElement(ContentWrapper2, __spreadValues({}, contentProps), content),
8475
+ rootNode
8476
+ ))
8477
+ );
8463
8478
  };
8464
8479
  var popover_default = Popover;
8465
8480
 
@@ -8669,7 +8684,7 @@ var ColorfulWrapper = import_styled41.default.div`
8669
8684
  height: ${u(14)};
8670
8685
  border-bottom: none;
8671
8686
  box-shadow: inset 0 0 0 1px var(--lns-color-border);
8672
- ${getRadius(100)};
8687
+ border-radius: var(--ds-radius-small);
8673
8688
  margin-bottom: var(--lns-space-small);
8674
8689
  }
8675
8690
 
@@ -8702,7 +8717,7 @@ var ColorPickerContainer = import_styled41.default.div`
8702
8717
  position: relative;
8703
8718
  width: ${u(31)};
8704
8719
  background-color: var(--lns-color-overlay);
8705
- ${getRadius("250")};
8720
+ border-radius: var(--ds-radius-large);
8706
8721
  box-shadow:
8707
8722
  0 0 0 1px var(--lns-color-border),
8708
8723
  var(--lns-shadow-medium);
@@ -8720,7 +8735,7 @@ var InputContainer = import_styled41.default.div`
8720
8735
  border: none;
8721
8736
  box-shadow: inset 0 0 0 var(--lns-formFieldBorderWidth)
8722
8737
  var(--lns-color-formFieldBorder);
8723
- ${getRadius("150")};
8738
+ border-radius: var(--ds-radius-medium);
8724
8739
  transition: 0.3s box-shadow;
8725
8740
  background-color: var(--lns-color-overlay);
8726
8741
  color: var(--lns-color-body);
@@ -8743,7 +8758,7 @@ var ColorBox = import_styled41.default.div`
8743
8758
  left: var(--lns-space-xsmall);
8744
8759
  top: var(--lns-space-xsmall);
8745
8760
  border: 1px solid rgba(0, 0, 0, 0.1);
8746
- ${getRadius("100")};
8761
+ border-radius: var(--ds-radius-medium);
8747
8762
  background-color: ${(props) => props.color};
8748
8763
  `;
8749
8764
  var ButtonWrapper2 = import_styled41.default.div`
@@ -8763,7 +8778,7 @@ var Swatch = import_styled41.default.div`
8763
8778
  cursor: pointer;
8764
8779
  width: ${u(3)};
8765
8780
  height: ${u(3)};
8766
- ${getRadius("100")};
8781
+ border-radius: var(--ds-radius-medium);
8767
8782
  background-color: ${(props) => props.color};
8768
8783
  border: ${(props) => props.selected === props.color ? "1px solid white" : "1px solid var(--lns-color-border)"};
8769
8784
  box-shadow: ${(props) => props.selected === props.color && "0 0 0 2px var(--lns-color-focusRing)"};