@northlight/ui 2.28.16 → 2.29.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.
@@ -935,19 +935,22 @@
935
935
  notificationCount = 0,
936
936
  name,
937
937
  image,
938
- size
938
+ size,
939
+ bgColor
939
940
  } = _b, rest = __objRest$1J(_b, [
940
941
  "variant",
941
942
  "notificationCount",
942
943
  "name",
943
944
  "image",
944
- "size"
945
+ "size",
946
+ "bgColor"
945
947
  ]);
946
948
  const { container, text, userImage, icon } = react.useMultiStyleConfig("Avatar", {
947
949
  variant,
948
950
  image,
949
951
  size,
950
- name
952
+ name,
953
+ bgColor
951
954
  });
952
955
  return /* @__PURE__ */ React.createElement(react.Box, __spreadValues$2c({ __css: container, "data-testid": "avatar-test-id" }, rest), image ? /* @__PURE__ */ React.createElement(
953
956
  react.chakra.img,
@@ -4612,8 +4615,8 @@
4612
4615
  colors: color,
4613
4616
  sizes: sizing,
4614
4617
  radii: borderRadius
4615
- }, image, name }) => {
4616
- const avatarBgColor = getAvatarBgColor(image, name, color);
4618
+ }, image, name, bgColor }) => {
4619
+ const avatarBgColor = bgColor || getAvatarBgColor(image, name, color);
4617
4620
  return {
4618
4621
  container: {
4619
4622
  bgColor: avatarBgColor,
@@ -5816,7 +5819,31 @@
5816
5819
  bgColor: "mono.transparent",
5817
5820
  color: textColor
5818
5821
  };
5822
+ },
5823
+ ghost: ({ colorScheme, theme: { colors } }) => {
5824
+ const textColor = colorScheme === "mediatoolBlue" ? colors[colorScheme][500] : colors[colorScheme] && colors[colorScheme][700];
5825
+ return {
5826
+ bgColor: "mono.transparent",
5827
+ color: textColor
5828
+ };
5829
+ }
5830
+ },
5831
+ sizes: {
5832
+ xs: {
5833
+ fontSize: "2xs"
5834
+ },
5835
+ sm: {
5836
+ fontSize: "xs"
5837
+ },
5838
+ md: {
5839
+ fontSize: "sm"
5840
+ },
5841
+ lg: {
5842
+ fontSize: "md"
5819
5843
  }
5844
+ },
5845
+ defaultProps: {
5846
+ size: "sm"
5820
5847
  }
5821
5848
  };
5822
5849
 
@@ -6940,6 +6967,13 @@
6940
6967
  },
6941
6968
  label: "This Week"
6942
6969
  };
6970
+ const nextWeek = {
6971
+ value: {
6972
+ start: date.startOfWeek(thisDay.add({ weeks: 1 }), locale),
6973
+ end: date.endOfWeek(thisDay.add({ weeks: 1 }), locale)
6974
+ },
6975
+ label: "Next Week"
6976
+ };
6943
6977
  const lastWeek = {
6944
6978
  value: {
6945
6979
  start: date.startOfWeek(thisDay.subtract({ weeks: 1 }), locale),
@@ -7125,17 +7159,18 @@
7125
7159
  const fiscalQuarters = [F1, F2, F3, F4];
7126
7160
  const fiscalYears = fiscalStartMonth === 0 ? [] : [thisFiscalYear, lastFiscalYear];
7127
7161
  const quickDates = [
7128
- thisWeek,
7162
+ yearToDate,
7129
7163
  lastWeek,
7130
- thisMonth,
7164
+ nextWeek,
7165
+ thisWeek,
7131
7166
  lastMonth,
7132
- thisYear,
7133
- yearToDate,
7134
- lastYear,
7135
- nextMonth,
7136
7167
  nextThreeMonths,
7137
7168
  nextSixMonths,
7169
+ nextMonth,
7170
+ thisMonth,
7171
+ lastYear,
7138
7172
  nextYear,
7173
+ thisYear,
7139
7174
  ...fiscalYears
7140
7175
  ];
7141
7176
  return { quickDates, fiscalQuarters };
@@ -8474,7 +8509,7 @@
8474
8509
  direction: direction === "left" ? "row-reverse" : "row"
8475
8510
  }, rest),
8476
8511
  isResizable && /* @__PURE__ */ React.createElement(ResizeHandle, __spreadValues$1b({}, resizeProps)),
8477
- /* @__PURE__ */ React.createElement(focus.FocusScope, { autoFocus }, /* @__PURE__ */ React.createElement(react.Box, { width: "full", height: "full" }, newChildren))
8512
+ /* @__PURE__ */ React.createElement(focus.FocusScope, { autoFocus }, /* @__PURE__ */ React.createElement(react.VStack, { width: "full", height: "full" }, newChildren))
8478
8513
  )
8479
8514
  ))
8480
8515
  );
@@ -8557,12 +8592,12 @@
8557
8592
  return target;
8558
8593
  };
8559
8594
  const ToolboxContent = (_a) => {
8560
- var _b = _a, { children } = _b, rest = __objRest$Y(_b, ["children"]);
8595
+ var _b = _a, { sx = {}, children } = _b, rest = __objRest$Y(_b, ["sx", "children"]);
8561
8596
  const { body } = system.useMultiStyleConfig("Toolbox", {});
8562
8597
  return /* @__PURE__ */ React.createElement(
8563
8598
  react.Flex,
8564
8599
  __spreadValues$19({
8565
- sx: body
8600
+ sx: ramda.merge(body, sx)
8566
8601
  }, rest),
8567
8602
  children
8568
8603
  );
@@ -12599,6 +12634,7 @@
12599
12634
  hidden: value === void 0 || !isClearable,
12600
12635
  onClick: () => {
12601
12636
  onChange(void 0);
12637
+ onChangeCallback(void 0, { action: "clear", removedValues: value });
12602
12638
  },
12603
12639
  icon: /* @__PURE__ */ React.createElement(Icon$1, { as: icons.XCloseSolid })
12604
12640
  }