@noya-app/noya-designsystem 0.0.12 → 0.0.14

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
@@ -128,9 +128,9 @@ var ButtonElement = styled4.button(({ theme, active, disabled, variant, size: si
128
128
  textAlign: "left",
129
129
  borderRadius: "4px",
130
130
  paddingTop: variant === "none" ? "0px" : "4px",
131
- paddingRight: variant === "none" ? "0px" : variant === "thin" ? "1px" : "6px",
131
+ paddingRight: variant === "none" ? "0px" : variant === "thin" ? "1px" : "8px",
132
132
  paddingBottom: variant === "none" ? "0px" : "4px",
133
- paddingLeft: variant === "none" ? "0px" : variant === "thin" ? "1px" : "6px",
133
+ paddingLeft: variant === "none" ? "0px" : variant === "thin" ? "1px" : "8px",
134
134
  ...size2 === "large" && {
135
135
  paddingTop: "12px",
136
136
  paddingRight: "16px",
@@ -215,6 +215,8 @@ var ButtonContent = styled4.span(({ theme }) => ({
215
215
  }));
216
216
  var Button = forwardRef(function Button2({
217
217
  id,
218
+ className,
219
+ style,
218
220
  flex,
219
221
  tabIndex,
220
222
  tooltip,
@@ -233,6 +235,8 @@ var Button = forwardRef(function Button2({
233
235
  {
234
236
  ref: forwardedRef,
235
237
  id,
238
+ className,
239
+ style,
236
240
  flex,
237
241
  tabIndex,
238
242
  active,
@@ -2008,14 +2012,9 @@ var DividerVertical = memo11(function DividerVertical2(props) {
2008
2012
  import React22, { forwardRef as forwardRef8, memo as memo14 } from "react";
2009
2013
  import styled18 from "styled-components";
2010
2014
 
2011
- // ../noya-file-format/dist/index.mjs
2012
- var __defProp2 = Object.defineProperty;
2013
- var __export2 = (target, all) => {
2014
- for (var name in all)
2015
- __defProp2(target, name, { get: all[name], enumerable: true });
2016
- };
2015
+ // ../noya-file-format/src/types.ts
2017
2016
  var types_exports = {};
2018
- __export2(types_exports, {
2017
+ __export(types_exports, {
2019
2018
  AnimationType: () => AnimationType,
2020
2019
  BlendMode: () => BlendMode,
2021
2020
  BlurType: () => BlurType,
@@ -2715,10 +2714,20 @@ var sizes = {
2715
2714
  itemHeight: 170,
2716
2715
  gap: 20
2717
2716
  },
2717
+ medium: {
2718
+ itemWidth: 220,
2719
+ itemHeight: 220,
2720
+ gap: 16
2721
+ },
2718
2722
  large: {
2719
2723
  itemWidth: 280,
2720
2724
  itemHeight: 280,
2721
- gap: 20
2725
+ gap: 24
2726
+ },
2727
+ xl: {
2728
+ itemWidth: 400,
2729
+ itemHeight: 400,
2730
+ gap: 32
2722
2731
  }
2723
2732
  };
2724
2733
  var Grid2 = styled21.div(({ theme, size: size2, padding }) => {
@@ -2878,7 +2887,8 @@ var GridViewItem = forwardRef9(function GridViewItem2({
2878
2887
  children,
2879
2888
  menuItems,
2880
2889
  onSelectMenuItem,
2881
- onContextMenu
2890
+ onContextMenu,
2891
+ style
2882
2892
  }, forwardedRef) {
2883
2893
  const [hovered, setHovered] = React25.useState(false);
2884
2894
  const { hoverProps } = useHover({
@@ -2927,7 +2937,8 @@ var GridViewItem = forwardRef9(function GridViewItem2({
2927
2937
  hovered: !disabled && hovered,
2928
2938
  onClick: handleClick,
2929
2939
  onDoubleClick,
2930
- onContextMenu
2940
+ onContextMenu,
2941
+ style
2931
2942
  },
2932
2943
  children
2933
2944
  ),
@@ -4076,6 +4087,7 @@ var InputFieldWithCompletions = memo20(
4076
4087
  onBlur,
4077
4088
  onDeleteWhenEmpty,
4078
4089
  style,
4090
+ className,
4079
4091
  children,
4080
4092
  hideChildrenWhenFocused = false,
4081
4093
  hideMenuWhenEmptyValue = false
@@ -4277,6 +4289,7 @@ var InputFieldWithCompletions = memo20(
4277
4289
  onFocusCapture: handleFocus,
4278
4290
  onKeyDown: handleKeyDown,
4279
4291
  style,
4292
+ className,
4280
4293
  autoCapitalize: "off",
4281
4294
  autoComplete: "off",
4282
4295
  autoCorrect: "off",
@@ -4941,6 +4954,7 @@ var colors = {
4941
4954
  textMuted: "rgb(85, 85, 85)",
4942
4955
  textSubtle: "rgb(121, 121, 121)",
4943
4956
  textDisabled: "rgb(160, 160, 160)",
4957
+ textDecorativeLight: "rgb(168, 185, 212)",
4944
4958
  dividerSubtle: "rgba(0, 0, 0, 0.04)",
4945
4959
  divider: "rgba(0, 0, 0, 0.07)",
4946
4960
  dividerStrong: "rgba(0, 0, 0, 0.09)",
@@ -4954,6 +4968,11 @@ var colors = {
4954
4968
  inputBackground: "rgb(240, 240, 242)",
4955
4969
  inputBackgroundLight: "rgb(243, 243, 245)",
4956
4970
  codeBackground: "rgb(250, 250, 250)",
4971
+ codeBackgroundLight: "rgb(250, 250, 250)",
4972
+ get codeBackgroundDark() {
4973
+ return colors.text;
4974
+ },
4975
+ codeBackgroundDecorativeDark: "#435080",
4957
4976
  selectedBackground: "rgb(242, 245, 250)",
4958
4977
  transparentChecker: "rgba(255,255,255,0.8)",
4959
4978
  activeBackground: "rgba(0,0,0,0.1)",
@@ -4995,10 +5014,11 @@ var colors = {
4995
5014
  return colors.primary;
4996
5015
  },
4997
5016
  selection: "rgb(179,215,254)",
4998
- thumbnailBackground: "#E1DAFF"
5017
+ thumbnailBackground: "#E1DAFF",
5018
+ thumbnailShadow: "#D3CEED66"
4999
5019
  };
5000
5020
  var fonts = {
5001
- normal: "-apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",
5021
+ normal: "'__Inter_6b0edc', '__Inter_Fallback_6b0edc', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif",
5002
5022
  monospace: "Menlo, Monaco, Consolas, 'Courier New', monospace"
5003
5023
  };
5004
5024
  var typeScale = [3.052, 2.441, 1.953, 1.563, 1.25, 1, 0.85];
@@ -5008,6 +5028,7 @@ var textStyles = {
5008
5028
  fontSize: `${typeScale[0]}rem`,
5009
5029
  fontWeight: "bold",
5010
5030
  lineHeight: "1.4",
5031
+ letterSpacing: "-0.05em",
5011
5032
  [mediaQuery.small]: {
5012
5033
  fontSize: "36px"
5013
5034
  }
@@ -5017,6 +5038,7 @@ var textStyles = {
5017
5038
  fontSize: `${typeScale[3]}rem`,
5018
5039
  fontWeight: 500,
5019
5040
  lineHeight: "1.75",
5041
+ letterSpacing: "-0.05em",
5020
5042
  [mediaQuery.small]: {
5021
5043
  fontSize: "18px"
5022
5044
  }
@@ -5025,19 +5047,22 @@ var textStyles = {
5025
5047
  fontFamily: fonts.normal,
5026
5048
  fontSize: `${typeScale[2]}rem`,
5027
5049
  fontWeight: 500,
5028
- lineHeight: "1.75"
5050
+ lineHeight: "1.75",
5051
+ letterSpacing: "-0.025em"
5029
5052
  },
5030
5053
  heading2: {
5031
5054
  fontFamily: fonts.normal,
5032
5055
  fontSize: `${typeScale[3]}rem`,
5033
5056
  fontWeight: 500,
5034
- lineHeight: "1.75"
5057
+ lineHeight: "1.75",
5058
+ letterSpacing: "-0.025em"
5035
5059
  },
5036
5060
  heading3: {
5037
5061
  fontFamily: fonts.normal,
5038
5062
  fontSize: `${typeScale[4]}rem`,
5039
5063
  fontWeight: 500,
5040
- lineHeight: "1.75"
5064
+ lineHeight: "1.75",
5065
+ letterSpacing: "-0.025em"
5041
5066
  },
5042
5067
  heading4: {
5043
5068
  fontFamily: fonts.normal,
@@ -5133,6 +5158,8 @@ var colors2 = produce(colors, (colors3) => {
5133
5158
  colors3.placeholderDots = "rgba(255,255,255,0.3)";
5134
5159
  colors3.dragOutline = "white";
5135
5160
  colors3.activeBackground = "rgba(181,178,255,0.08)";
5161
+ colors3.thumbnailBackground = "#1f1d33";
5162
+ colors3.thumbnailShadow = "#1f1d3366";
5136
5163
  });
5137
5164
 
5138
5165
  // src/utils/createSectionedMenu.ts
@@ -5221,7 +5248,7 @@ var Column = styled32.div(({ theme }) => ({
5221
5248
  flex: "1",
5222
5249
  display: "flex",
5223
5250
  flexDirection: "column",
5224
- gap: "2px"
5251
+ gap: "4px"
5225
5252
  }));
5226
5253
  var Checkbox = styled32.input(({ theme }) => ({
5227
5254
  margin: 0