@northlight/ui 2.36.6 → 2.36.7

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.
@@ -649,18 +649,18 @@
649
649
  baseStyle: {
650
650
  link: {
651
651
  padding: [0.5, 1],
652
- color: "primary",
653
- fontWeight: "600",
654
- fontSize: "semibold",
652
+ color: "text.default",
653
+ fontWeight: "semibold",
654
+ fontSize: "md",
655
655
  _hover: {
656
- bg: "blue.50",
656
+ bg: "brand-alt",
657
657
  borderRadius: "base",
658
658
  textDecor: "none"
659
659
  }
660
660
  },
661
661
  separator: {
662
- color: "gray.300",
663
- fontSize: "semibold"
662
+ color: "subdued",
663
+ fontSize: "sm"
664
664
  }
665
665
  }
666
666
  };
@@ -2336,7 +2336,7 @@
2336
2336
  fontSize: "xs",
2337
2337
  fontWeight: "semibold",
2338
2338
  padding: sizing["0a"],
2339
- bgColor: color.red["500"],
2339
+ bgColor: color.destructive,
2340
2340
  color: color.text.inverted,
2341
2341
  borderRadius: borderRadius.avatar.square,
2342
2342
  border: "none"
@@ -3322,21 +3322,21 @@
3322
3322
  }
3323
3323
  };
3324
3324
  const getInvalidColorStyles = (isInvalid, isImage = true, currentTheme = "webappTheme") => ({
3325
- borderColor: isInvalid ? "red.500" : "gray.300",
3326
- bgColor: isInvalid && "red.50",
3325
+ borderColor: isInvalid ? "border.error" : "border.default",
3326
+ bgColor: isInvalid && "bg.error.default",
3327
3327
  animation: isInvalid && `500ms ${shakeAnimation} ease`,
3328
3328
  _hover: isImage && {
3329
- bgColor: isInvalid ? "red.50" : getBgColor(currentTheme),
3330
- borderColor: isInvalid ? "red.500" : "blue.500"
3329
+ bgColor: isInvalid ? "bg.error.default" : getBgColor(currentTheme),
3330
+ borderColor: isInvalid ? "border.error" : "border.brand.default"
3331
3331
  }
3332
3332
  });
3333
3333
  const getAiColorStyles = (isInvalid, isImage = true) => ({
3334
- borderColor: isInvalid ? "red.500" : "gray.300",
3335
- bgColor: isInvalid && "red.50",
3334
+ borderColor: isInvalid ? "border.error" : "border.default",
3335
+ bgColor: isInvalid && "bg.error.default",
3336
3336
  animation: isInvalid && `500ms ${shakeAnimation} ease`,
3337
3337
  _hover: isImage && {
3338
- bgColor: isInvalid ? "red.50" : "bg.filled",
3339
- borderColor: isInvalid ? "red.500" : "border.ai"
3338
+ bgColor: isInvalid ? "bg.error.default" : "bg.filled",
3339
+ borderColor: isInvalid ? "border.error" : "border.ai"
3340
3340
  }
3341
3341
  });
3342
3342
  const FilePicker$1 = {
@@ -3571,6 +3571,17 @@
3571
3571
  }
3572
3572
  };
3573
3573
 
3574
+ const Progress = {
3575
+ baseStyle: ({ theme: { colors: color } }) => ({
3576
+ track: {
3577
+ bg: color["subdued-alt"]
3578
+ },
3579
+ filledTrack: {
3580
+ bg: color.brand
3581
+ }
3582
+ })
3583
+ };
3584
+
3574
3585
  var components = /*#__PURE__*/Object.freeze({
3575
3586
  __proto__: null,
3576
3587
  Alert: Alert$1,
@@ -3612,6 +3623,7 @@
3612
3623
  PaneDivider: PaneDivider$1,
3613
3624
  PinInput: PinInput$1,
3614
3625
  Popover: Popover$1,
3626
+ Progress: Progress,
3615
3627
  Radio: Radio$1,
3616
3628
  Select: Select$1,
3617
3629
  Small: Small$1,
@@ -4915,7 +4927,7 @@
4915
4927
  { ml: spacing },
4916
4928
  (_child, idx) => idx > 0
4917
4929
  );
4918
- return /* @__PURE__ */ React.createElement(react.HStack, __spreadValues$1Y({ bgColor: "background.default" }, rest), /* @__PURE__ */ React.createElement(react.HStack, { spacing: 0 }, /* @__PURE__ */ React.createElement(OverflowGroup, { max, onChange: setNbrRemainingAvatars }, childrenWithMargin)), nbrRemainingAvatars > 0 && /* @__PURE__ */ React.createElement(Small, { sx: { color: "blue.500" } }, "+", nbrRemainingAvatars));
4930
+ return /* @__PURE__ */ React.createElement(react.HStack, __spreadValues$1Y({ bgColor: "background.default" }, rest), /* @__PURE__ */ React.createElement(react.HStack, { spacing: 0 }, /* @__PURE__ */ React.createElement(OverflowGroup, { max, onChange: setNbrRemainingAvatars }, childrenWithMargin)), nbrRemainingAvatars > 0 && /* @__PURE__ */ React.createElement(Small, { sx: { color: "brand" } }, "+", nbrRemainingAvatars));
4919
4931
  };
4920
4932
 
4921
4933
  var __defProp$1X = Object.defineProperty;
@@ -6585,7 +6597,7 @@
6585
6597
  fontWeight: "medium",
6586
6598
  variant: isSelected ? "brand" : "ghost",
6587
6599
  ring: isToday && !isSelected ? "1px" : "0px",
6588
- ringColor: "blue.500"
6600
+ ringColor: "brand"
6589
6601
  }),
6590
6602
  formattedDate
6591
6603
  ));
@@ -6902,11 +6914,11 @@
6902
6914
  type: "button",
6903
6915
  ref,
6904
6916
  borderRadius: "xs",
6905
- bgColor: isHighlighted ? "brand-alt" : isSelected ? "blue.500" : "transparent",
6917
+ bgColor: isHighlighted ? "brand-alt" : isSelected ? "brand" : "transparent",
6906
6918
  color: isSelected ? "text.inverted" : "text.default",
6907
6919
  fontSize: "sm",
6908
6920
  ring: isToday && !isSelected ? "1px" : "0px",
6909
- ringColor: "blue.500",
6921
+ ringColor: "brand",
6910
6922
  mx: "-1px",
6911
6923
  ml: isToday ? "-2px " : void 0,
6912
6924
  my: "0a",
@@ -6921,7 +6933,7 @@
6921
6933
  ringOffset: "1px"
6922
6934
  },
6923
6935
  _hover: {
6924
- bgColor: isSelected ? "blue.400" : "bg.filled",
6936
+ bgColor: isSelected ? " background.button.brand-hover" : "bg.filled",
6925
6937
  _disabled: {
6926
6938
  bgColor: "transparent"
6927
6939
  }
@@ -11529,7 +11541,7 @@
11529
11541
  {
11530
11542
  as: onlyImageAccepted ? NorthlightIcons.Image03Solid : NorthlightIcons.UploadCloudSolid,
11531
11543
  boxSize: "32px",
11532
- color: isInvalid ? "red.500" : editable ? "blue.500" : "gray.300",
11544
+ color: isInvalid ? "destructive" : editable ? "brand" : "text.subdued",
11533
11545
  display: isImage && !hasLoaded ? "inline-block" : "none",
11534
11546
  "aria-label": "file-icon-upload"
11535
11547
  }
@@ -11561,7 +11573,7 @@
11561
11573
  {
11562
11574
  sx: {
11563
11575
  textDecoration: "underline",
11564
- color: isInvalid ? "red.500" : "blue.500"
11576
+ color: isInvalid ? "destructive" : "brand"
11565
11577
  },
11566
11578
  display: isLoading || hasLoaded ? "none" : "default"
11567
11579
  },
@@ -11611,7 +11623,7 @@
11611
11623
  "aria-label": "delete-file",
11612
11624
  onClick: confirmDelete ? deleteModal.onOpen : clearImage,
11613
11625
  icon: NorthlightIcons.TrashFullDuo,
11614
- color: "red.500"
11626
+ color: "destructive"
11615
11627
  }
11616
11628
  )
11617
11629
  )
@@ -11850,12 +11862,12 @@
11850
11862
  {
11851
11863
  as: onlyImageAccepted ? NorthlightIcons.Image03Solid : NorthlightIcons.UploadCloudSolid,
11852
11864
  boxSize: "32px",
11853
- color: isInvalid ? "red.500 " : active ? "blue.500 " : "gray.300",
11865
+ color: isInvalid ? "destructive" : active ? "brand" : "text.subdued",
11854
11866
  "aria-label": "image-icon-upload",
11855
11867
  mb: onlyImageAccepted ? "0a" : 0
11856
11868
  }
11857
11869
  ),
11858
- /* @__PURE__ */ React.createElement(react.HStack, { spacing: 1, display: isInvalid ? "none" : "flex" }, /* @__PURE__ */ React.createElement(P, { variant: "14", textAlign: "center", alignSelf: "center" }, "Drag & drop ", onlyImageAccepted ? "images" : "files", " here or"), /* @__PURE__ */ React.createElement(Lead, { sx: { textDecoration: "underline", color: "blue.500" } }, "choose ", onlyImageAccepted ? "image" : "file")),
11870
+ /* @__PURE__ */ React.createElement(react.HStack, { spacing: 1, display: isInvalid ? "none" : "flex" }, /* @__PURE__ */ React.createElement(P, { variant: "14", textAlign: "center", alignSelf: "center" }, "Drag & drop ", onlyImageAccepted ? "images" : "files", " here or"), /* @__PURE__ */ React.createElement(Lead, { sx: { textDecoration: "underline", color: "brand" } }, "choose ", onlyImageAccepted ? "image" : "file")),
11859
11871
  /* @__PURE__ */ React.createElement(P, { variant: "14", textAlign: "center", alignSelf: "center", display: isInvalid ? "initial" : "none" }, errorMessage),
11860
11872
  /* @__PURE__ */ React.createElement(P, { variant: "14", sx: { color: "gray.400" } }, "Max file size is ", readableFileSize(maxFileSize))
11861
11873
  ), /* @__PURE__ */ React.createElement(
@@ -12437,7 +12449,7 @@
12437
12449
  const NumberInputStepper = ({
12438
12450
  includePercentage = false,
12439
12451
  enableStepperArrows = false
12440
- }) => /* @__PURE__ */ React.createElement(react.NumberInputStepper, null, /* @__PURE__ */ React.createElement(react.HStack, { alignItems: "center", h: "full" }, includePercentage && /* @__PURE__ */ React.createElement(react.Center, { bgColor: "gray.50", borderRadius: "md", boxSize: "6" }, /* @__PURE__ */ React.createElement(P, null, "%")), enableStepperArrows && /* @__PURE__ */ React.createElement(react.HStack, { alignItems: "center", h: "full" }, /* @__PURE__ */ React.createElement(react.Divider, { orientation: "vertical", h: "50%" }), /* @__PURE__ */ React.createElement(react.NumberIncrementStepper, { border: "none" }, /* @__PURE__ */ React.createElement(
12452
+ }) => /* @__PURE__ */ React.createElement(react.NumberInputStepper, null, /* @__PURE__ */ React.createElement(react.HStack, { alignItems: "center", h: "full" }, includePercentage && /* @__PURE__ */ React.createElement(react.Center, { bgColor: "bg.layer", borderRadius: "md", boxSize: "6" }, /* @__PURE__ */ React.createElement(P, null, "%")), enableStepperArrows && /* @__PURE__ */ React.createElement(react.HStack, { alignItems: "center", h: "full" }, /* @__PURE__ */ React.createElement(react.Divider, { orientation: "vertical", h: "50%" }), /* @__PURE__ */ React.createElement(react.NumberIncrementStepper, { border: "none" }, /* @__PURE__ */ React.createElement(
12441
12453
  Icon,
12442
12454
  {
12443
12455
  as: NorthlightIcons.ChevronUpSolid,
@@ -14302,7 +14314,7 @@
14302
14314
  react.Box,
14303
14315
  {
14304
14316
  borderRadius: "full",
14305
- bgColor: "blue.500",
14317
+ bgColor: "brand",
14306
14318
  boxSize: "6",
14307
14319
  minW: "6",
14308
14320
  minH: "6",