@landtrustinc/design-system 1.1.8 → 1.2.2

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.js CHANGED
@@ -49,6 +49,7 @@ __export(src_exports, {
49
49
  HuntCard: () => HuntCard_default,
50
50
  Icon: () => Icon_default,
51
51
  IconLabel: () => IconLabel_default,
52
+ IconSizeMap: () => IconSizeMap,
52
53
  InfoBox: () => InfoBox_default,
53
54
  Input: () => Input,
54
55
  LayoutTokens: () => LayoutTokens,
@@ -2571,7 +2572,7 @@ var StarRegular_default = SvgStarRegular;
2571
2572
 
2572
2573
  // src/Icon/components/StarSolid.tsx
2573
2574
  var import_jsx_runtime167 = require("@emotion/react/jsx-runtime");
2574
- var SvgStarSolid = (props) => /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 576 512", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("path", { d: "M316.9 18c-5.3-11-16.5-18-28.8-18s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329l-24.6 145.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329l104.2-103.1c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7l-143.7-21.2z" }) });
2575
+ var SvgStarSolid = (props) => /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 26 26", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("path", { d: "M13.781 4.474a.878.878 0 0 0-1.556 0L9.55 9.686l-5.813.918a.87.87 0 0 0-.483 1.471l4.158 4.14-.916 5.78a.87.87 0 0 0 .35.839c.265.191.614.22.908.072l5.25-2.653 5.245 2.653c.29.148.643.12.909-.072a.87.87 0 0 0 .349-.84l-.92-5.78 4.159-4.138a.868.868 0 0 0-.483-1.471l-5.81-.919z" }) });
2575
2576
  var StarSolid_default = SvgStarSolid;
2576
2577
 
2577
2578
  // src/Icon/components/StarSplash.tsx
@@ -2788,15 +2789,45 @@ var YoutubeSquare_default = SvgYoutubeSquare;
2788
2789
 
2789
2790
  // src/Icon/Icon.tsx
2790
2791
  var import_jsx_runtime195 = require("@emotion/react/jsx-runtime");
2792
+ var IconSizeMap = {
2793
+ xsmall: {
2794
+ width: 12,
2795
+ height: 12
2796
+ },
2797
+ small: {
2798
+ width: 16,
2799
+ height: 16
2800
+ },
2801
+ medium: {
2802
+ width: 20,
2803
+ height: 20
2804
+ },
2805
+ large: {
2806
+ width: 26,
2807
+ height: 26
2808
+ },
2809
+ xlarge: {
2810
+ width: 32,
2811
+ height: 32
2812
+ },
2813
+ xxlarge: {
2814
+ width: 48,
2815
+ height: 48
2816
+ },
2817
+ xxxlarge: {
2818
+ width: 64,
2819
+ height: 64
2820
+ }
2821
+ };
2791
2822
  var iconStyles = (size, setAutoHeight, fill) => import_react2.css`
2792
- width: ${space[size]};
2793
- height: ${space[size]};
2823
+ width: ${IconSizeMap[size].width}px;
2824
+ height: ${IconSizeMap[size].height}px;
2794
2825
  ${setAutoHeight && "height: auto;"}
2795
2826
  fill: ${fill != null ? fill : "currentColor"};
2796
2827
  `;
2797
2828
  var Icon = ({
2798
2829
  variant,
2799
- size = 6,
2830
+ size = "medium",
2800
2831
  className,
2801
2832
  setAutoHeight = false,
2802
2833
  fill,
@@ -2834,7 +2865,7 @@ var spinnerStyles = import_react3.css`
2834
2865
 
2835
2866
  // src/Spinner/Spinner.tsx
2836
2867
  var import_jsx_runtime196 = require("@emotion/react/jsx-runtime");
2837
- var Spinner = ({ size = 5, className, fill }) => {
2868
+ var Spinner = ({ size = "medium", className, fill }) => {
2838
2869
  return /* @__PURE__ */ (0, import_jsx_runtime196.jsx)(
2839
2870
  Icon_default,
2840
2871
  {
@@ -3648,7 +3679,7 @@ var import_jsx_runtime201 = require("@emotion/react/jsx-runtime");
3648
3679
  var IconLabel = ({
3649
3680
  variant,
3650
3681
  label,
3651
- iconSize = 4,
3682
+ iconSize = "small",
3652
3683
  className,
3653
3684
  ...rest
3654
3685
  }) => {
@@ -3761,7 +3792,7 @@ var AIResponse = ({
3761
3792
  {
3762
3793
  variant: "AiMagic",
3763
3794
  label: "This AI summary was generated from the property information from this package. This answer may display incorrect information.",
3764
- iconSize: 10
3795
+ iconSize: "large"
3765
3796
  }
3766
3797
  ),
3767
3798
  variant === "error" && /* @__PURE__ */ (0, import_jsx_runtime202.jsx)("div", { css: errorRetryStyles, children: /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(Button_default, { variant: "secondary", size: "xs", onClick: onErrorRetry, children: /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(IconLabel_default, { variant: "ArrowRotateLeft", label: "Try Again" }) }) })
@@ -3856,7 +3887,8 @@ var AvailabilityBadge = ({
3856
3887
  var AvailabilityBadge_default = AvailabilityBadge;
3857
3888
 
3858
3889
  // src/Avatar/Avatar.tsx
3859
- var import_react14 = require("react");
3890
+ var import_react14 = require("@emotion/react");
3891
+ var import_react15 = require("react");
3860
3892
 
3861
3893
  // src/Avatar/Avatar.styles.ts
3862
3894
  var import_react13 = require("@emotion/react");
@@ -3919,7 +3951,7 @@ var Avatar = ({
3919
3951
  size = "md",
3920
3952
  className
3921
3953
  }) => {
3922
- const [hasImageError, setHasImageError] = (0, import_react14.useState)(false);
3954
+ const [hasImageError, setHasImageError] = (0, import_react15.useState)(false);
3923
3955
  const handleImageError = () => {
3924
3956
  setHasImageError(true);
3925
3957
  };
@@ -3945,17 +3977,17 @@ var Avatar = ({
3945
3977
  const getIconSize = (size2) => {
3946
3978
  switch (size2) {
3947
3979
  case "xs":
3948
- return 3;
3980
+ return "xsmall";
3949
3981
  case "sm":
3950
- return 4;
3982
+ return "small";
3951
3983
  case "md":
3952
- return 8;
3984
+ return "xlarge";
3953
3985
  case "lg":
3954
- return 10;
3986
+ return "large";
3955
3987
  case "xl":
3956
- return 16;
3988
+ return "xxxlarge";
3957
3989
  default:
3958
- return 8;
3990
+ return "xlarge";
3959
3991
  }
3960
3992
  };
3961
3993
  if (type === "text" && text) {
@@ -3992,22 +4024,32 @@ var Avatar = ({
3992
4024
  css: [avatarFallbackStyles, avatarSizeStyles[size]],
3993
4025
  className,
3994
4026
  title: alt,
3995
- children: /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(Icon_default, { variant: "User", size: getIconSize(size) })
4027
+ children: /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(
4028
+ Icon_default,
4029
+ {
4030
+ variant: "User",
4031
+ size: getIconSize(size),
4032
+ css: size === "lg" ? import_react14.css`
4033
+ width: 28px;
4034
+ height: 28px;
4035
+ ` : void 0
4036
+ }
4037
+ )
3996
4038
  }
3997
4039
  );
3998
4040
  };
3999
4041
  var Avatar_default = Avatar;
4000
4042
 
4001
4043
  // src/ChatWidget/ChatWidget.tsx
4002
- var import_react23 = __toESM(require("react"));
4044
+ var import_react24 = __toESM(require("react"));
4003
4045
 
4004
4046
  // src/Divider/Divider.tsx
4005
4047
  var import_styled4 = __toESM(require("@emotion/styled"));
4006
4048
  var import_styled_system2 = require("styled-system");
4007
4049
 
4008
4050
  // src/Divider/Divider.styles.ts
4009
- var import_react15 = require("@emotion/react");
4010
- var dividerStyles = import_react15.css`
4051
+ var import_react16 = require("@emotion/react");
4052
+ var dividerStyles = import_react16.css`
4011
4053
  width: 100%;
4012
4054
  height: 1px;
4013
4055
  border: 0;
@@ -4026,17 +4068,17 @@ var Divider = ({ className, ...rest }) => {
4026
4068
  var Divider_default = Divider;
4027
4069
 
4028
4070
  // src/Form/TextArea.tsx
4029
- var import_react17 = require("@emotion/react");
4030
- var import_react18 = require("react");
4071
+ var import_react18 = require("@emotion/react");
4072
+ var import_react19 = require("react");
4031
4073
 
4032
4074
  // src/Form/TextArea.styles.ts
4033
- var import_react16 = require("@emotion/react");
4034
- var wrapperStyles = import_react16.css`
4075
+ var import_react17 = require("@emotion/react");
4076
+ var wrapperStyles = import_react17.css`
4035
4077
  position: relative;
4036
4078
  display: inline-block;
4037
4079
  width: 100%;
4038
4080
  `;
4039
- var textareaBase = import_react16.css`
4081
+ var textareaBase = import_react17.css`
4040
4082
  width: 100%;
4041
4083
  box-sizing: border-box;
4042
4084
  font: inherit;
@@ -4070,32 +4112,32 @@ var textareaBase = import_react16.css`
4070
4112
  cursor: default;
4071
4113
  }
4072
4114
  `;
4073
- var variantError = import_react16.css`
4115
+ var variantError = import_react17.css`
4074
4116
  border-color: var(--border-error);
4075
4117
  &:focus {
4076
4118
  border-color: var(--border-error);
4077
4119
  box-shadow: 0 0 0 3px var(--color-error-100);
4078
4120
  }
4079
4121
  `;
4080
- var variantSuccess = import_react16.css`
4122
+ var variantSuccess = import_react17.css`
4081
4123
  border-color: var(--color-success-500);
4082
4124
  &:focus {
4083
4125
  border-color: var(--color-success-500);
4084
4126
  box-shadow: 0 0 0 3px var(--color-success-100);
4085
4127
  }
4086
4128
  `;
4087
- var submitButtonContainer = import_react16.css`
4129
+ var submitButtonContainer = import_react17.css`
4088
4130
  position: absolute;
4089
4131
  right: var(--spacing-4);
4090
4132
  bottom: var(--spacing-4);
4091
4133
  `;
4092
- var textareaWithSubmit = import_react16.css`
4134
+ var textareaWithSubmit = import_react17.css`
4093
4135
  padding-right: var(--spacing-16);
4094
4136
  `;
4095
4137
 
4096
4138
  // src/Form/TextArea.tsx
4097
4139
  var import_jsx_runtime206 = require("@emotion/react/jsx-runtime");
4098
- var TextArea = (0, import_react18.forwardRef)(
4140
+ var TextArea = (0, import_react19.forwardRef)(
4099
4141
  ({
4100
4142
  rows = 3,
4101
4143
  variant = "default",
@@ -4115,8 +4157,8 @@ var TextArea = (0, import_react18.forwardRef)(
4115
4157
  submitOnEnter = true,
4116
4158
  ...props
4117
4159
  }, ref) => {
4118
- const innerRef = (0, import_react18.useRef)(null);
4119
- (0, import_react18.useEffect)(() => {
4160
+ const innerRef = (0, import_react19.useRef)(null);
4161
+ (0, import_react19.useEffect)(() => {
4120
4162
  const el = innerRef.current;
4121
4163
  if (!el || !autoExpand)
4122
4164
  return;
@@ -4170,7 +4212,7 @@ var TextArea = (0, import_react18.forwardRef)(
4170
4212
  textareaBase,
4171
4213
  variant === "error" && variantError,
4172
4214
  variant === "success" && variantSuccess,
4173
- import_react17.css`
4215
+ import_react18.css`
4174
4216
  resize: ${resize};
4175
4217
  `,
4176
4218
  showSubmit && textareaWithSubmit
@@ -4194,7 +4236,7 @@ var TextArea = (0, import_react18.forwardRef)(
4194
4236
  Icon_default,
4195
4237
  {
4196
4238
  variant: "PaperPlane",
4197
- size: 6,
4239
+ size: "large",
4198
4240
  fill: "var(--color-base-white)"
4199
4241
  }
4200
4242
  )
@@ -4207,14 +4249,14 @@ TextArea.displayName = "TextArea";
4207
4249
  var TextArea_default = TextArea;
4208
4250
 
4209
4251
  // src/MessageBubble/MessageBubble.styles.ts
4210
- var import_react19 = require("@emotion/react");
4211
- var getRootStyles = (variant) => import_react19.css`
4252
+ var import_react20 = require("@emotion/react");
4253
+ var getRootStyles = (variant) => import_react20.css`
4212
4254
  display: flex;
4213
4255
  flex-direction: column;
4214
4256
  gap: var(--spacing-1);
4215
4257
  align-items: ${variant === "sent" ? "flex-end" : "flex-start"};
4216
4258
  `;
4217
- var getBubbleStyles = (variant) => import_react19.css`
4259
+ var getBubbleStyles = (variant) => import_react20.css`
4218
4260
  max-width: 100%;
4219
4261
  width: 100%;
4220
4262
  box-sizing: border-box;
@@ -4231,7 +4273,7 @@ var getBubbleStyles = (variant) => import_react19.css`
4231
4273
  border-bottom-left-radius: ${variant === "sent" ? "var(--radius-lg)" : "0"};
4232
4274
  border-bottom-right-radius: ${variant === "sent" ? "0" : "var(--radius-lg)"};
4233
4275
  `;
4234
- var contentStyles = import_react19.css`
4276
+ var contentStyles = import_react20.css`
4235
4277
  flex: 1 1 auto;
4236
4278
  min-width: 1px;
4237
4279
  min-height: 1px;
@@ -4261,11 +4303,11 @@ var MessageBubble = ({
4261
4303
  var MessageBubble_default = MessageBubble;
4262
4304
 
4263
4305
  // src/Widget/Widget.tsx
4264
- var import_react21 = require("react");
4306
+ var import_react22 = require("react");
4265
4307
 
4266
4308
  // src/Widget/Widget.styles.ts
4267
- var import_react20 = require("@emotion/react");
4268
- var panelContainer = import_react20.css`
4309
+ var import_react21 = require("@emotion/react");
4310
+ var panelContainer = import_react21.css`
4269
4311
  position: absolute;
4270
4312
  right: 0;
4271
4313
  bottom: 0;
@@ -4281,7 +4323,7 @@ var panelContainer = import_react20.css`
4281
4323
  justify-content: stretch;
4282
4324
  }
4283
4325
  `;
4284
- var panelCard = (width2) => import_react20.css`
4326
+ var panelCard = (width2) => import_react21.css`
4285
4327
  background: var(--surface-page);
4286
4328
  color: var(--text-primary);
4287
4329
  border: 1px solid var(--border-primary);
@@ -4302,16 +4344,16 @@ var panelCard = (width2) => import_react20.css`
4302
4344
  overflow: auto;
4303
4345
  }
4304
4346
  `;
4305
- var widgetTrigger = import_react20.css`
4347
+ var widgetTrigger = import_react21.css`
4306
4348
  margin: var(--spacing-1);
4307
4349
  box-shadow: var(--shadow-2xl);
4308
4350
  `;
4309
4351
 
4310
4352
  // src/Widget/Widget.tsx
4311
4353
  var import_jsx_runtime208 = require("@emotion/react/jsx-runtime");
4312
- var WidgetContext = (0, import_react21.createContext)(null);
4354
+ var WidgetContext = (0, import_react22.createContext)(null);
4313
4355
  var useWidgetContext = () => {
4314
- const ctx = (0, import_react21.useContext)(WidgetContext);
4356
+ const ctx = (0, import_react22.useContext)(WidgetContext);
4315
4357
  if (!ctx)
4316
4358
  throw new Error("Widget subcomponents must be used within <Widget>");
4317
4359
  return ctx;
@@ -4327,7 +4369,7 @@ var WidgetTrigger = () => {
4327
4369
  "aria-haspopup": "dialog",
4328
4370
  onClick: toggle,
4329
4371
  size: "lg",
4330
- icon: /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(Icon_default, { variant: currentIcon, size: 12 }),
4372
+ icon: /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(Icon_default, { variant: currentIcon, size: "xxlarge" }),
4331
4373
  css: widgetTrigger
4332
4374
  }
4333
4375
  ) });
@@ -4369,12 +4411,12 @@ var WidgetRoot = ({
4369
4411
  children,
4370
4412
  containerProps
4371
4413
  }) => {
4372
- const [internalExpanded, setInternalExpanded] = (0, import_react21.useState)(defaultExpanded);
4414
+ const [internalExpanded, setInternalExpanded] = (0, import_react22.useState)(defaultExpanded);
4373
4415
  const isControlled = typeof expanded === "boolean";
4374
4416
  const isExpanded = isControlled ? expanded : internalExpanded;
4375
- const triggerRef = (0, import_react21.useRef)(null);
4376
- const containerRef = (0, import_react21.useRef)(null);
4377
- const setExpanded = (0, import_react21.useCallback)(
4417
+ const triggerRef = (0, import_react22.useRef)(null);
4418
+ const containerRef = (0, import_react22.useRef)(null);
4419
+ const setExpanded = (0, import_react22.useCallback)(
4378
4420
  (next) => {
4379
4421
  if (!isControlled)
4380
4422
  setInternalExpanded(next);
@@ -4388,11 +4430,11 @@ var WidgetRoot = ({
4388
4430
  },
4389
4431
  [isControlled, onExpandedChange]
4390
4432
  );
4391
- const toggle = (0, import_react21.useCallback)(
4433
+ const toggle = (0, import_react22.useCallback)(
4392
4434
  () => setExpanded(!isExpanded),
4393
4435
  [isExpanded, setExpanded]
4394
4436
  );
4395
- (0, import_react21.useEffect)(() => {
4437
+ (0, import_react22.useEffect)(() => {
4396
4438
  if (!isExpanded)
4397
4439
  return;
4398
4440
  const onDocClick = (e) => {
@@ -4406,7 +4448,7 @@ var WidgetRoot = ({
4406
4448
  document.addEventListener("mousedown", onDocClick);
4407
4449
  return () => document.removeEventListener("mousedown", onDocClick);
4408
4450
  }, [isExpanded, setExpanded]);
4409
- (0, import_react21.useEffect)(() => {
4451
+ (0, import_react22.useEffect)(() => {
4410
4452
  if (!isExpanded)
4411
4453
  return;
4412
4454
  const onKey = (e) => {
@@ -4416,7 +4458,7 @@ var WidgetRoot = ({
4416
4458
  document.addEventListener("keydown", onKey);
4417
4459
  return () => document.removeEventListener("keydown", onKey);
4418
4460
  }, [isExpanded, setExpanded]);
4419
- const value = (0, import_react21.useMemo)(
4461
+ const value = (0, import_react22.useMemo)(
4420
4462
  () => ({
4421
4463
  expanded: isExpanded,
4422
4464
  toggle,
@@ -4449,8 +4491,8 @@ var Widget = Object.assign(WidgetRoot, {
4449
4491
  var Widget_default = Widget;
4450
4492
 
4451
4493
  // src/ChatWidget/ChatWidget.styles.ts
4452
- var import_react22 = require("@emotion/react");
4453
- var sentWrapperStyles = import_react22.css`
4494
+ var import_react23 = require("@emotion/react");
4495
+ var sentWrapperStyles = import_react23.css`
4454
4496
  align-self: flex-end;
4455
4497
  max-width: 90%;
4456
4498
  width: 100%;
@@ -4458,14 +4500,14 @@ var sentWrapperStyles = import_react22.css`
4458
4500
  overflow-wrap: anywhere;
4459
4501
  padding-top: var(--spacing-4);
4460
4502
  `;
4461
- var receivedWrapperStyles = import_react22.css`
4503
+ var receivedWrapperStyles = import_react23.css`
4462
4504
  align-self: flex-start;
4463
4505
  width: 100%;
4464
4506
  min-width: 0;
4465
4507
  overflow-wrap: anywhere;
4466
4508
  padding-top: var(--spacing-4);
4467
4509
  `;
4468
- var containerStyles = import_react22.css`
4510
+ var containerStyles = import_react23.css`
4469
4511
  display: flex;
4470
4512
  flex-direction: column;
4471
4513
  min-height: 0;
@@ -4475,13 +4517,13 @@ var containerStyles = import_react22.css`
4475
4517
  height: 100%;
4476
4518
  }
4477
4519
  `;
4478
- var thinkingRowStyles = import_react22.css`
4520
+ var thinkingRowStyles = import_react23.css`
4479
4521
  display: flex;
4480
4522
  align-items: center;
4481
4523
  gap: var(--spacing-2);
4482
4524
  color: var(--text-primary);
4483
4525
  `;
4484
- var thinkingTextStyles = import_react22.css`
4526
+ var thinkingTextStyles = import_react23.css`
4485
4527
  animation: ltchat-pulse 1.6s ease-in-out infinite;
4486
4528
 
4487
4529
  @keyframes ltchat-pulse {
@@ -4494,7 +4536,7 @@ var thinkingTextStyles = import_react22.css`
4494
4536
  }
4495
4537
  }
4496
4538
  `;
4497
- var badge = import_react22.css`
4539
+ var badge = import_react23.css`
4498
4540
  width: var(--spacing-11);
4499
4541
  height: var(--spacing-11);
4500
4542
  border-radius: var(--radius-round);
@@ -4504,7 +4546,7 @@ var badge = import_react22.css`
4504
4546
  background-color: var(--color-primary-500);
4505
4547
  color: var(--color-base-white);
4506
4548
  `;
4507
- var closeButtonContent = import_react22.css`
4549
+ var closeButtonContent = import_react23.css`
4508
4550
  display: inline-flex;
4509
4551
  align-items: center;
4510
4552
  gap: var(--spacing-2);
@@ -4540,12 +4582,12 @@ var ChatWidget = ({
4540
4582
  emptyState = DEFAULT_EMPTY_STATE,
4541
4583
  containerProps
4542
4584
  }) => {
4543
- const [value, setValue] = (0, import_react23.useState)("");
4544
- const scrollRef = (0, import_react23.useRef)(null);
4585
+ const [value, setValue] = (0, import_react24.useState)("");
4586
+ const scrollRef = (0, import_react24.useRef)(null);
4545
4587
  const isControlled = typeof expanded === "boolean";
4546
- const [internalExpanded, setInternalExpanded] = (0, import_react23.useState)(defaultExpanded);
4588
+ const [internalExpanded, setInternalExpanded] = (0, import_react24.useState)(defaultExpanded);
4547
4589
  const isExpanded = isControlled ? expanded : internalExpanded;
4548
- const setExpanded = (0, import_react23.useCallback)(
4590
+ const setExpanded = (0, import_react24.useCallback)(
4549
4591
  (next) => {
4550
4592
  if (!isControlled)
4551
4593
  setInternalExpanded(next);
@@ -4553,14 +4595,14 @@ var ChatWidget = ({
4553
4595
  },
4554
4596
  [isControlled, onExpandedChange]
4555
4597
  );
4556
- (0, import_react23.useEffect)(() => {
4598
+ (0, import_react24.useEffect)(() => {
4557
4599
  const el = scrollRef.current;
4558
4600
  if (!el)
4559
4601
  return;
4560
4602
  el.scrollTo({ top: el.scrollHeight, behavior: "smooth" });
4561
4603
  }, [messages, isThinking]);
4562
4604
  const messagesToRender = messages.length === 0 ? emptyState : messages;
4563
- const renderedMessages = (0, import_react23.useMemo)(
4605
+ const renderedMessages = (0, import_react24.useMemo)(
4564
4606
  () => messagesToRender.map((element, index) => {
4565
4607
  var _a;
4566
4608
  const key = (_a = element.key) != null ? _a : index;
@@ -4570,7 +4612,7 @@ var ChatWidget = ({
4570
4612
  if (element.type === MessageBubble_default) {
4571
4613
  return /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(Box_default, { css: sentWrapperStyles, children: element }, key);
4572
4614
  }
4573
- return /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(import_react23.default.Fragment, { children: element }, key);
4615
+ return /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(import_react24.default.Fragment, { children: element }, key);
4574
4616
  }),
4575
4617
  [messagesToRender]
4576
4618
  );
@@ -4604,7 +4646,7 @@ var ChatWidget = ({
4604
4646
  gap: "var(--spacing-4)",
4605
4647
  children: [
4606
4648
  /* @__PURE__ */ (0, import_jsx_runtime209.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-4)", children: [
4607
- /* @__PURE__ */ (0, import_jsx_runtime209.jsx)("span", { css: badge, children: /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(Icon_default, { variant: "ConversationalSearchAi", size: 6 }) }),
4649
+ /* @__PURE__ */ (0, import_jsx_runtime209.jsx)("span", { css: badge, children: /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(Icon_default, { variant: "ConversationalSearchAi", size: "large" }) }),
4608
4650
  /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(
4609
4651
  Heading_default,
4610
4652
  {
@@ -4623,7 +4665,7 @@ var ChatWidget = ({
4623
4665
  "aria-label": "Close widget",
4624
4666
  onClick: () => setExpanded(false),
4625
4667
  children: /* @__PURE__ */ (0, import_jsx_runtime209.jsxs)("span", { css: closeButtonContent, children: [
4626
- /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(Icon_default, { variant: "Xmark", size: 5 }),
4668
+ /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(Icon_default, { variant: "Xmark", size: "medium" }),
4627
4669
  /* @__PURE__ */ (0, import_jsx_runtime209.jsx)("span", { children: "Close" })
4628
4670
  ] })
4629
4671
  }
@@ -4648,7 +4690,7 @@ var ChatWidget = ({
4648
4690
  children: [
4649
4691
  /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: renderedMessages }),
4650
4692
  isThinking && /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(Box_default, { css: receivedWrapperStyles, children: /* @__PURE__ */ (0, import_jsx_runtime209.jsxs)("div", { css: thinkingRowStyles, children: [
4651
- /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(Spinner_default2, { size: 5 }),
4693
+ /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(Spinner_default2, { size: "medium" }),
4652
4694
  /* @__PURE__ */ (0, import_jsx_runtime209.jsx)("span", { css: thinkingTextStyles, children: "Thinking..." })
4653
4695
  ] }) })
4654
4696
  ]
@@ -4677,13 +4719,12 @@ var ChatWidget = ({
4677
4719
  var ChatWidget_default = ChatWidget;
4678
4720
 
4679
4721
  // src/FeatureList/components/FeatureListItem.tsx
4680
- var import_react24 = require("@emotion/react");
4681
4722
  var import_jsx_runtime210 = require("@emotion/react/jsx-runtime");
4682
4723
  var FeatureListItem = ({
4683
4724
  iconVariant,
4684
4725
  label,
4685
4726
  subtitle,
4686
- iconSize = 6,
4727
+ iconSize = "large",
4687
4728
  iconColor,
4688
4729
  className,
4689
4730
  ...rest
@@ -4698,18 +4739,7 @@ var FeatureListItem = ({
4698
4739
  className,
4699
4740
  ...rest,
4700
4741
  children: [
4701
- /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(
4702
- Icon_default,
4703
- {
4704
- variant: iconVariant,
4705
- size: iconSize,
4706
- fill: iconColor,
4707
- css: import_react24.css`
4708
- width: 26px;
4709
- height: 26px;
4710
- `
4711
- }
4712
- ),
4742
+ /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(Icon_default, { variant: iconVariant, size: iconSize, fill: iconColor }),
4713
4743
  /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(Text_default, { fontWeight: "semibold", children: label })
4714
4744
  ]
4715
4745
  }
@@ -5795,7 +5825,7 @@ var ListingChat = ({
5795
5825
  /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(Text_default, { size: "md", children: "Get instant answers with Buck, our AI powered assistant." })
5796
5826
  ] }),
5797
5827
  /* @__PURE__ */ (0, import_jsx_runtime222.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-1)", children: [
5798
- /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(Icon_default, { variant: "AiMagic", size: 5 }),
5828
+ /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(Icon_default, { variant: "AiMagic", size: "medium" }),
5799
5829
  /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(Text_default, { size: "sm", children: "Beta" })
5800
5830
  ] })
5801
5831
  ] }),
@@ -6224,7 +6254,7 @@ var Navigation = ({
6224
6254
  border: "none",
6225
6255
  padding: space[2],
6226
6256
  css: hamburgerButtonStyles,
6227
- children: /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(Icon_default, { variant: "Bars", size: 6 })
6257
+ children: /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(Icon_default, { variant: "Bars", size: "large" })
6228
6258
  }
6229
6259
  ),
6230
6260
  /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(Box_default, { css: desktopLogoStyles, children: /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(Logo_default, { variant: logoVariant, theme: logoTheme }) }),
@@ -6363,7 +6393,13 @@ var PackageCard = ({
6363
6393
  e.stopPropagation();
6364
6394
  onFavoriteClick == null ? void 0 : onFavoriteClick();
6365
6395
  },
6366
- children: /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(Icon_default, { variant: isFavorited ? "HeartSolid" : "Heart", size: 5 })
6396
+ children: /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
6397
+ Icon_default,
6398
+ {
6399
+ variant: isFavorited ? "HeartSolid" : "Heart",
6400
+ size: "medium"
6401
+ }
6402
+ )
6367
6403
  }
6368
6404
  )
6369
6405
  ] }) }),
@@ -6436,15 +6472,16 @@ var PackageHeader = ({
6436
6472
  var PackageHeader_default = PackageHeader;
6437
6473
 
6438
6474
  // src/StarRating/StarRating.tsx
6475
+ var import_react42 = require("@emotion/react");
6439
6476
  var import_jsx_runtime231 = require("@emotion/react/jsx-runtime");
6440
6477
  var starSize = {
6441
6478
  sm: {
6442
- size: 5,
6479
+ size: "medium",
6443
6480
  spacing: "var(--spacing-2)"
6444
6481
  },
6445
6482
  md: {
6446
- size: 7,
6447
- spacing: "var(--spacing-3)"
6483
+ size: "large",
6484
+ spacing: "var(--spacing-1)"
6448
6485
  }
6449
6486
  };
6450
6487
  var StarRating = ({
@@ -6460,7 +6497,10 @@ var StarRating = ({
6460
6497
  {
6461
6498
  variant: "StarSolid",
6462
6499
  size: starSize[size].size,
6463
- fill: i <= rating ? "var(--color-yellow-500)" : "var(--color-neutral-100)"
6500
+ fill: i <= rating ? "var(--color-yellow-500)" : "var(--color-neutral-100)",
6501
+ css: import_react42.css`
6502
+ ${size === "md" && "width: 40px; height: 40px;"}
6503
+ `
6464
6504
  },
6465
6505
  i
6466
6506
  )
@@ -6510,8 +6550,8 @@ var UserCard = ({
6510
6550
  var UserCard_default = UserCard;
6511
6551
 
6512
6552
  // src/ReviewCard/components/ReviewImages.styles.ts
6513
- var import_react42 = require("@emotion/react");
6514
- var imageStyles2 = import_react42.css`
6553
+ var import_react43 = require("@emotion/react");
6554
+ var imageStyles2 = import_react43.css`
6515
6555
  flex: 1;
6516
6556
  min-width: 0;
6517
6557
  aspect-ratio: 1;
@@ -6655,7 +6695,7 @@ var ReviewItem = ({ label, rating }) => {
6655
6695
  children: [
6656
6696
  /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(Text_default, { fontWeight: "semibold", children: label }),
6657
6697
  /* @__PURE__ */ (0, import_jsx_runtime236.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-2)", children: [
6658
- /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(Icon_default, { variant: "StarSolid", size: 5, fill: "var(--surface-action-2)" }),
6698
+ /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(Icon_default, { variant: "StarSolid", size: "large", fill: "var(--surface-action-2)" }),
6659
6699
  /* @__PURE__ */ (0, import_jsx_runtime236.jsxs)(Text_default, { fontWeight: "semibold", children: [
6660
6700
  rating,
6661
6701
  "/5"
@@ -6801,6 +6841,7 @@ var ReviewsShowcase_default = ReviewsShowcase;
6801
6841
  HuntCard,
6802
6842
  Icon,
6803
6843
  IconLabel,
6844
+ IconSizeMap,
6804
6845
  InfoBox,
6805
6846
  Input,
6806
6847
  LayoutTokens,