@noya-app/noya-designsystem 0.1.4 → 0.1.6

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.mjs CHANGED
@@ -137,17 +137,17 @@ var ButtonElement = styled4.button(({ theme, active, disabled, variant, size: si
137
137
  paddingBottom: "12px",
138
138
  paddingLeft: "16px"
139
139
  },
140
- background: active ? theme.colors.primary : variant === "none" || variant === "thin" ? "transparent" : theme.colors.inputBackground,
140
+ background: active ? theme.colors.primary : variant === "primaryGradient" ? `linear-gradient(90deg, ${theme.colors.primary}, ${theme.colors.primaryLight})` : variant === "none" || variant === "thin" ? "transparent" : theme.colors.inputBackground,
141
141
  color: active ? "white" : theme.colors.text,
142
142
  opacity: disabled ? 0.25 : 1,
143
143
  "&:focus": {
144
144
  boxShadow: `0 0 0 1px ${theme.colors.sidebar.background}, 0 0 0 3px ${theme.colors.primary}`
145
145
  },
146
146
  "&:hover": {
147
- background: theme.colors.inputBackgroundLight
147
+ background: variant === "primaryGradient" ? theme.colors.primaryLight : theme.colors.inputBackgroundLight
148
148
  },
149
149
  "&:active": {
150
- background: theme.colors.activeBackground
150
+ background: variant === "primaryGradient" ? theme.colors.primary : theme.colors.activeBackground
151
151
  },
152
152
  ...variant === "primary" && {
153
153
  background: theme.colors.primary,
@@ -558,18 +558,22 @@ var style = {
558
558
  flex: "1 0 0",
559
559
  flexDirection: "column"
560
560
  };
561
- var AutoSizer = memo4(function AutoSizer2({ children }) {
561
+ var AutoSizer = memo4(function AutoSizer2({
562
+ children,
563
+ className
564
+ }) {
562
565
  const containerRef = useRef2(null);
563
566
  const containerSize = useSize(containerRef);
564
- return /* @__PURE__ */ React9.createElement("div", { ref: containerRef, style }, containerSize && containerSize.width > 0 && containerSize.height > 0 && children(containerSize));
567
+ return /* @__PURE__ */ React9.createElement("div", { ref: containerRef, style, className }, containerSize && containerSize.width > 0 && containerSize.height > 0 && children(containerSize));
565
568
  });
566
569
  var SingleDimensionAutoSizer = memo4(function SingleDimensionAutoSizer2({
567
570
  children,
568
- dimension
571
+ dimension,
572
+ className
569
573
  }) {
570
574
  const containerRef = useRef2(null);
571
575
  const containerSize = useSize(containerRef, dimension);
572
- return /* @__PURE__ */ React9.createElement("div", { ref: containerRef, style }, containerSize && containerSize[dimension] > 0 && children(containerSize[dimension]));
576
+ return /* @__PURE__ */ React9.createElement("div", { ref: containerRef, style, className }, containerSize && containerSize[dimension] > 0 && children(containerSize[dimension]));
573
577
  });
574
578
 
575
579
  // ../noya-react-utils/src/components/FileDropTarget.tsx
@@ -4982,6 +4986,7 @@ var StyledRoot = styled29(ToggleGroupPrimitive.Root).withConfig({
4982
4986
  var StyledItem = styled29(ToggleGroupPrimitive.Item).withConfig({
4983
4987
  shouldForwardProp: (prop) => !ignoredProps3.has(prop)
4984
4988
  })(({ theme, colorScheme }) => ({
4989
+ ...theme.textStyles.small,
4985
4990
  position: "relative",
4986
4991
  flex: "1 1 0",
4987
4992
  appearance: "none",
@@ -5399,6 +5404,17 @@ var colors = {
5399
5404
  activeBackground: "rgba(0,0,0,0.1)",
5400
5405
  scrollbar: "rgba(199,199,199,0.8)",
5401
5406
  placeholderDots: "rgba(0,0,0,0.3)",
5407
+ breadcrumb: {
5408
+ get text() {
5409
+ return colors.textMuted;
5410
+ },
5411
+ get textHover() {
5412
+ return colors.textSubtle;
5413
+ },
5414
+ get icon() {
5415
+ return colors.icon;
5416
+ }
5417
+ },
5402
5418
  listView: {
5403
5419
  raisedBackground: "rgba(0,0,0,0.03)",
5404
5420
  editingBackground: "#fff"
@@ -5581,6 +5597,9 @@ var colors2 = produce(colors, (colors3) => {
5581
5597
  colors3.activeBackground = "rgba(181,178,255,0.08)";
5582
5598
  colors3.thumbnailBackground = "#1f1d33";
5583
5599
  colors3.thumbnailShadow = "#1f1d3366";
5600
+ colors3.breadcrumb.text = colors3.textMuted;
5601
+ colors3.breadcrumb.textHover = colors3.textSubtle;
5602
+ colors3.breadcrumb.icon = colors3.icon;
5584
5603
  });
5585
5604
 
5586
5605
  // src/utils/createSectionedMenu.ts