@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.
@@ -5,13 +5,13 @@
5
5
  CLI Target: esnext
6
6
  CJS Build start
7
7
  ESM Build start
8
- ESM dist/index.mjs 182.50 KB
9
- ESM dist/index.mjs.map 402.42 KB
10
- ESM ⚡️ Build success in 89ms
11
- CJS dist/index.js 198.78 KB
12
- CJS dist/index.js.map 402.70 KB
13
- CJS ⚡️ Build success in 89ms
8
+ ESM dist/index.mjs 183.12 KB
9
+ ESM dist/index.mjs.map 404.00 KB
10
+ ESM ⚡️ Build success in 111ms
11
+ CJS dist/index.js 199.40 KB
12
+ CJS dist/index.js.map 404.28 KB
13
+ CJS ⚡️ Build success in 112ms
14
14
  DTS Build start
15
- DTS ⚡️ Build success in 5952ms
16
- DTS dist/index.d.ts 53.87 KB
17
- DTS dist/index.d.mts 53.87 KB
15
+ DTS ⚡️ Build success in 6149ms
16
+ DTS dist/index.d.ts 54.18 KB
17
+ DTS dist/index.d.mts 54.18 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @noya-app/noya-designsystem
2
2
 
3
+ ## 0.1.6
4
+
5
+ ### Patch Changes
6
+
7
+ - 149f2f9: Improve multiplayer
8
+ - Updated dependencies [149f2f9]
9
+ - @noya-app/noya-icons@0.1.1
10
+ - @noya-app/noya-colorpicker@0.1.4
11
+
12
+ ## 0.1.5
13
+
14
+ ### Patch Changes
15
+
16
+ - @noya-app/noya-colorpicker@0.1.3
17
+
3
18
  ## 0.1.4
4
19
 
5
20
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -33,7 +33,7 @@ declare function Avatar({ image, name, fallback, size, overflow, }: {
33
33
  overflow?: number;
34
34
  }): React__default.JSX.Element;
35
35
 
36
- type ButtonVariant = "normal" | "primary" | "secondary" | "secondaryBright" | "white" | "thin" | "floating" | "none";
36
+ type ButtonVariant = "normal" | "primary" | "primaryGradient" | "secondary" | "secondaryBright" | "white" | "thin" | "floating" | "none";
37
37
  type ButtonSize = "normal" | "large";
38
38
  declare const ButtonElement: styled_components.StyledComponent<"button", styled_components.DefaultTheme, {
39
39
  active: boolean;
@@ -114,6 +114,11 @@ declare const colors$1: {
114
114
  activeBackground: string;
115
115
  scrollbar: string;
116
116
  placeholderDots: string;
117
+ breadcrumb: {
118
+ readonly text: string;
119
+ readonly textHover: string;
120
+ readonly icon: string;
121
+ };
117
122
  listView: {
118
123
  raisedBackground: string;
119
124
  editingBackground: string;
@@ -753,7 +758,7 @@ declare function Progress({ value, width, height, flex, variant, }: {
753
758
  variant?: ProgressVariant;
754
759
  }): React__default.JSX.Element;
755
760
 
756
- type RadioGroupColorScheme = 'primary' | 'secondary';
761
+ type RadioGroupColorScheme = "primary" | "secondary";
757
762
  declare const StyledRoot: styled_components.StyledComponent<React__default.ForwardRefExoticComponent<(ToggleGroupPrimitive.ToggleGroupSingleProps | ToggleGroupPrimitive.ToggleGroupMultipleProps) & React__default.RefAttributes<HTMLDivElement>>, styled_components.DefaultTheme, {
758
763
  colorScheme?: RadioGroupColorScheme | undefined;
759
764
  }, never>;
@@ -766,7 +771,7 @@ interface ItemProps {
766
771
  interface Props$9 {
767
772
  id?: string;
768
773
  value?: string;
769
- onValueChange?: ComponentProps<typeof StyledRoot>['onValueChange'];
774
+ onValueChange?: ComponentProps<typeof StyledRoot>["onValueChange"];
770
775
  colorScheme?: RadioGroupColorScheme;
771
776
  allowEmpty?: boolean;
772
777
  children: ReactNode;
@@ -878,6 +883,7 @@ interface StyleProps$1 {
878
883
  pointerEvents?: CSSProperties["pointerEvents"];
879
884
  lineHeight?: CSSProperties["lineHeight"];
880
885
  isolation?: CSSProperties["isolation"];
886
+ backdropFilter?: CSSProperties["backdropFilter"];
881
887
  }
882
888
  type StackBreakpointList = BreakpointCollection<StyleProps$1>;
883
889
  interface Props$4 extends StyleProps$1 {
@@ -1142,6 +1148,11 @@ declare const colors: {
1142
1148
  activeBackground: string;
1143
1149
  scrollbar: string;
1144
1150
  placeholderDots: string;
1151
+ breadcrumb: {
1152
+ readonly text: string;
1153
+ readonly textHover: string;
1154
+ readonly icon: string;
1155
+ };
1145
1156
  listView: {
1146
1157
  raisedBackground: string;
1147
1158
  editingBackground: string;
package/dist/index.d.ts CHANGED
@@ -33,7 +33,7 @@ declare function Avatar({ image, name, fallback, size, overflow, }: {
33
33
  overflow?: number;
34
34
  }): React__default.JSX.Element;
35
35
 
36
- type ButtonVariant = "normal" | "primary" | "secondary" | "secondaryBright" | "white" | "thin" | "floating" | "none";
36
+ type ButtonVariant = "normal" | "primary" | "primaryGradient" | "secondary" | "secondaryBright" | "white" | "thin" | "floating" | "none";
37
37
  type ButtonSize = "normal" | "large";
38
38
  declare const ButtonElement: styled_components.StyledComponent<"button", styled_components.DefaultTheme, {
39
39
  active: boolean;
@@ -114,6 +114,11 @@ declare const colors$1: {
114
114
  activeBackground: string;
115
115
  scrollbar: string;
116
116
  placeholderDots: string;
117
+ breadcrumb: {
118
+ readonly text: string;
119
+ readonly textHover: string;
120
+ readonly icon: string;
121
+ };
117
122
  listView: {
118
123
  raisedBackground: string;
119
124
  editingBackground: string;
@@ -753,7 +758,7 @@ declare function Progress({ value, width, height, flex, variant, }: {
753
758
  variant?: ProgressVariant;
754
759
  }): React__default.JSX.Element;
755
760
 
756
- type RadioGroupColorScheme = 'primary' | 'secondary';
761
+ type RadioGroupColorScheme = "primary" | "secondary";
757
762
  declare const StyledRoot: styled_components.StyledComponent<React__default.ForwardRefExoticComponent<(ToggleGroupPrimitive.ToggleGroupSingleProps | ToggleGroupPrimitive.ToggleGroupMultipleProps) & React__default.RefAttributes<HTMLDivElement>>, styled_components.DefaultTheme, {
758
763
  colorScheme?: RadioGroupColorScheme | undefined;
759
764
  }, never>;
@@ -766,7 +771,7 @@ interface ItemProps {
766
771
  interface Props$9 {
767
772
  id?: string;
768
773
  value?: string;
769
- onValueChange?: ComponentProps<typeof StyledRoot>['onValueChange'];
774
+ onValueChange?: ComponentProps<typeof StyledRoot>["onValueChange"];
770
775
  colorScheme?: RadioGroupColorScheme;
771
776
  allowEmpty?: boolean;
772
777
  children: ReactNode;
@@ -878,6 +883,7 @@ interface StyleProps$1 {
878
883
  pointerEvents?: CSSProperties["pointerEvents"];
879
884
  lineHeight?: CSSProperties["lineHeight"];
880
885
  isolation?: CSSProperties["isolation"];
886
+ backdropFilter?: CSSProperties["backdropFilter"];
881
887
  }
882
888
  type StackBreakpointList = BreakpointCollection<StyleProps$1>;
883
889
  interface Props$4 extends StyleProps$1 {
@@ -1142,6 +1148,11 @@ declare const colors: {
1142
1148
  activeBackground: string;
1143
1149
  scrollbar: string;
1144
1150
  placeholderDots: string;
1151
+ breadcrumb: {
1152
+ readonly text: string;
1153
+ readonly textHover: string;
1154
+ readonly icon: string;
1155
+ };
1145
1156
  listView: {
1146
1157
  raisedBackground: string;
1147
1158
  editingBackground: string;
package/dist/index.js CHANGED
@@ -253,17 +253,17 @@ var ButtonElement = import_styled_components4.default.button(({ theme, active, d
253
253
  paddingBottom: "12px",
254
254
  paddingLeft: "16px"
255
255
  },
256
- background: active ? theme.colors.primary : variant === "none" || variant === "thin" ? "transparent" : theme.colors.inputBackground,
256
+ background: active ? theme.colors.primary : variant === "primaryGradient" ? `linear-gradient(90deg, ${theme.colors.primary}, ${theme.colors.primaryLight})` : variant === "none" || variant === "thin" ? "transparent" : theme.colors.inputBackground,
257
257
  color: active ? "white" : theme.colors.text,
258
258
  opacity: disabled ? 0.25 : 1,
259
259
  "&:focus": {
260
260
  boxShadow: `0 0 0 1px ${theme.colors.sidebar.background}, 0 0 0 3px ${theme.colors.primary}`
261
261
  },
262
262
  "&:hover": {
263
- background: theme.colors.inputBackgroundLight
263
+ background: variant === "primaryGradient" ? theme.colors.primaryLight : theme.colors.inputBackgroundLight
264
264
  },
265
265
  "&:active": {
266
- background: theme.colors.activeBackground
266
+ background: variant === "primaryGradient" ? theme.colors.primary : theme.colors.activeBackground
267
267
  },
268
268
  ...variant === "primary" && {
269
269
  background: theme.colors.primary,
@@ -654,18 +654,22 @@ var style = {
654
654
  flex: "1 0 0",
655
655
  flexDirection: "column"
656
656
  };
657
- var AutoSizer = (0, import_react8.memo)(function AutoSizer2({ children }) {
657
+ var AutoSizer = (0, import_react8.memo)(function AutoSizer2({
658
+ children,
659
+ className
660
+ }) {
658
661
  const containerRef = (0, import_react8.useRef)(null);
659
662
  const containerSize = useSize(containerRef);
660
- return /* @__PURE__ */ import_react8.default.createElement("div", { ref: containerRef, style }, containerSize && containerSize.width > 0 && containerSize.height > 0 && children(containerSize));
663
+ return /* @__PURE__ */ import_react8.default.createElement("div", { ref: containerRef, style, className }, containerSize && containerSize.width > 0 && containerSize.height > 0 && children(containerSize));
661
664
  });
662
665
  var SingleDimensionAutoSizer = (0, import_react8.memo)(function SingleDimensionAutoSizer2({
663
666
  children,
664
- dimension
667
+ dimension,
668
+ className
665
669
  }) {
666
670
  const containerRef = (0, import_react8.useRef)(null);
667
671
  const containerSize = useSize(containerRef, dimension);
668
- return /* @__PURE__ */ import_react8.default.createElement("div", { ref: containerRef, style }, containerSize && containerSize[dimension] > 0 && children(containerSize[dimension]));
672
+ return /* @__PURE__ */ import_react8.default.createElement("div", { ref: containerRef, style, className }, containerSize && containerSize[dimension] > 0 && children(containerSize[dimension]));
669
673
  });
670
674
 
671
675
  // ../noya-react-utils/src/components/FileDropTarget.tsx
@@ -4961,6 +4965,7 @@ var StyledRoot = (0, import_styled_components31.default)(ToggleGroupPrimitive.Ro
4961
4965
  var StyledItem = (0, import_styled_components31.default)(ToggleGroupPrimitive.Item).withConfig({
4962
4966
  shouldForwardProp: (prop) => !ignoredProps3.has(prop)
4963
4967
  })(({ theme, colorScheme }) => ({
4968
+ ...theme.textStyles.small,
4964
4969
  position: "relative",
4965
4970
  flex: "1 1 0",
4966
4971
  appearance: "none",
@@ -5365,6 +5370,17 @@ var colors = {
5365
5370
  activeBackground: "rgba(0,0,0,0.1)",
5366
5371
  scrollbar: "rgba(199,199,199,0.8)",
5367
5372
  placeholderDots: "rgba(0,0,0,0.3)",
5373
+ breadcrumb: {
5374
+ get text() {
5375
+ return colors.textMuted;
5376
+ },
5377
+ get textHover() {
5378
+ return colors.textSubtle;
5379
+ },
5380
+ get icon() {
5381
+ return colors.icon;
5382
+ }
5383
+ },
5368
5384
  listView: {
5369
5385
  raisedBackground: "rgba(0,0,0,0.03)",
5370
5386
  editingBackground: "#fff"
@@ -5547,6 +5563,9 @@ var colors2 = (0, import_immer.default)(colors, (colors3) => {
5547
5563
  colors3.activeBackground = "rgba(181,178,255,0.08)";
5548
5564
  colors3.thumbnailBackground = "#1f1d33";
5549
5565
  colors3.thumbnailShadow = "#1f1d3366";
5566
+ colors3.breadcrumb.text = colors3.textMuted;
5567
+ colors3.breadcrumb.textHover = colors3.textSubtle;
5568
+ colors3.breadcrumb.icon = colors3.icon;
5550
5569
  });
5551
5570
 
5552
5571
  // src/utils/createSectionedMenu.ts