@noya-app/noya-designsystem 0.0.13 → 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/.turbo/turbo-build.log +9 -9
- package/CHANGELOG.md +12 -0
- package/dist/index.d.mts +50 -33
- package/dist/index.d.ts +50 -33
- package/dist/index.js +43 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +43 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
- package/src/components/Button.tsx +84 -78
- package/src/components/GridView.tsx +113 -100
- package/src/components/IconButton.tsx +10 -8
- package/src/components/InputFieldWithCompletions.tsx +3 -0
- package/src/components/InspectorPrimitives.tsx +1 -1
- package/src/components/Text.tsx +57 -56
- package/src/theme/dark.ts +33 -31
- package/src/theme/light.ts +76 -64
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" : "
|
|
131
|
+
paddingRight: variant === "none" ? "0px" : variant === "thin" ? "1px" : "8px",
|
|
132
132
|
paddingBottom: variant === "none" ? "0px" : "4px",
|
|
133
|
-
paddingLeft: variant === "none" ? "0px" : variant === "thin" ? "1px" : "
|
|
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,
|
|
@@ -2710,10 +2714,20 @@ var sizes = {
|
|
|
2710
2714
|
itemHeight: 170,
|
|
2711
2715
|
gap: 20
|
|
2712
2716
|
},
|
|
2717
|
+
medium: {
|
|
2718
|
+
itemWidth: 220,
|
|
2719
|
+
itemHeight: 220,
|
|
2720
|
+
gap: 16
|
|
2721
|
+
},
|
|
2713
2722
|
large: {
|
|
2714
2723
|
itemWidth: 280,
|
|
2715
2724
|
itemHeight: 280,
|
|
2716
|
-
gap:
|
|
2725
|
+
gap: 24
|
|
2726
|
+
},
|
|
2727
|
+
xl: {
|
|
2728
|
+
itemWidth: 400,
|
|
2729
|
+
itemHeight: 400,
|
|
2730
|
+
gap: 32
|
|
2717
2731
|
}
|
|
2718
2732
|
};
|
|
2719
2733
|
var Grid2 = styled21.div(({ theme, size: size2, padding }) => {
|
|
@@ -2873,7 +2887,8 @@ var GridViewItem = forwardRef9(function GridViewItem2({
|
|
|
2873
2887
|
children,
|
|
2874
2888
|
menuItems,
|
|
2875
2889
|
onSelectMenuItem,
|
|
2876
|
-
onContextMenu
|
|
2890
|
+
onContextMenu,
|
|
2891
|
+
style
|
|
2877
2892
|
}, forwardedRef) {
|
|
2878
2893
|
const [hovered, setHovered] = React25.useState(false);
|
|
2879
2894
|
const { hoverProps } = useHover({
|
|
@@ -2922,7 +2937,8 @@ var GridViewItem = forwardRef9(function GridViewItem2({
|
|
|
2922
2937
|
hovered: !disabled && hovered,
|
|
2923
2938
|
onClick: handleClick,
|
|
2924
2939
|
onDoubleClick,
|
|
2925
|
-
onContextMenu
|
|
2940
|
+
onContextMenu,
|
|
2941
|
+
style
|
|
2926
2942
|
},
|
|
2927
2943
|
children
|
|
2928
2944
|
),
|
|
@@ -4071,6 +4087,7 @@ var InputFieldWithCompletions = memo20(
|
|
|
4071
4087
|
onBlur,
|
|
4072
4088
|
onDeleteWhenEmpty,
|
|
4073
4089
|
style,
|
|
4090
|
+
className,
|
|
4074
4091
|
children,
|
|
4075
4092
|
hideChildrenWhenFocused = false,
|
|
4076
4093
|
hideMenuWhenEmptyValue = false
|
|
@@ -4272,6 +4289,7 @@ var InputFieldWithCompletions = memo20(
|
|
|
4272
4289
|
onFocusCapture: handleFocus,
|
|
4273
4290
|
onKeyDown: handleKeyDown,
|
|
4274
4291
|
style,
|
|
4292
|
+
className,
|
|
4275
4293
|
autoCapitalize: "off",
|
|
4276
4294
|
autoComplete: "off",
|
|
4277
4295
|
autoCorrect: "off",
|
|
@@ -4936,6 +4954,7 @@ var colors = {
|
|
|
4936
4954
|
textMuted: "rgb(85, 85, 85)",
|
|
4937
4955
|
textSubtle: "rgb(121, 121, 121)",
|
|
4938
4956
|
textDisabled: "rgb(160, 160, 160)",
|
|
4957
|
+
textDecorativeLight: "rgb(168, 185, 212)",
|
|
4939
4958
|
dividerSubtle: "rgba(0, 0, 0, 0.04)",
|
|
4940
4959
|
divider: "rgba(0, 0, 0, 0.07)",
|
|
4941
4960
|
dividerStrong: "rgba(0, 0, 0, 0.09)",
|
|
@@ -4949,6 +4968,11 @@ var colors = {
|
|
|
4949
4968
|
inputBackground: "rgb(240, 240, 242)",
|
|
4950
4969
|
inputBackgroundLight: "rgb(243, 243, 245)",
|
|
4951
4970
|
codeBackground: "rgb(250, 250, 250)",
|
|
4971
|
+
codeBackgroundLight: "rgb(250, 250, 250)",
|
|
4972
|
+
get codeBackgroundDark() {
|
|
4973
|
+
return colors.text;
|
|
4974
|
+
},
|
|
4975
|
+
codeBackgroundDecorativeDark: "#435080",
|
|
4952
4976
|
selectedBackground: "rgb(242, 245, 250)",
|
|
4953
4977
|
transparentChecker: "rgba(255,255,255,0.8)",
|
|
4954
4978
|
activeBackground: "rgba(0,0,0,0.1)",
|
|
@@ -4990,10 +5014,11 @@ var colors = {
|
|
|
4990
5014
|
return colors.primary;
|
|
4991
5015
|
},
|
|
4992
5016
|
selection: "rgb(179,215,254)",
|
|
4993
|
-
thumbnailBackground: "#E1DAFF"
|
|
5017
|
+
thumbnailBackground: "#E1DAFF",
|
|
5018
|
+
thumbnailShadow: "#D3CEED66"
|
|
4994
5019
|
};
|
|
4995
5020
|
var fonts = {
|
|
4996
|
-
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",
|
|
4997
5022
|
monospace: "Menlo, Monaco, Consolas, 'Courier New', monospace"
|
|
4998
5023
|
};
|
|
4999
5024
|
var typeScale = [3.052, 2.441, 1.953, 1.563, 1.25, 1, 0.85];
|
|
@@ -5003,6 +5028,7 @@ var textStyles = {
|
|
|
5003
5028
|
fontSize: `${typeScale[0]}rem`,
|
|
5004
5029
|
fontWeight: "bold",
|
|
5005
5030
|
lineHeight: "1.4",
|
|
5031
|
+
letterSpacing: "-0.05em",
|
|
5006
5032
|
[mediaQuery.small]: {
|
|
5007
5033
|
fontSize: "36px"
|
|
5008
5034
|
}
|
|
@@ -5012,6 +5038,7 @@ var textStyles = {
|
|
|
5012
5038
|
fontSize: `${typeScale[3]}rem`,
|
|
5013
5039
|
fontWeight: 500,
|
|
5014
5040
|
lineHeight: "1.75",
|
|
5041
|
+
letterSpacing: "-0.05em",
|
|
5015
5042
|
[mediaQuery.small]: {
|
|
5016
5043
|
fontSize: "18px"
|
|
5017
5044
|
}
|
|
@@ -5020,19 +5047,22 @@ var textStyles = {
|
|
|
5020
5047
|
fontFamily: fonts.normal,
|
|
5021
5048
|
fontSize: `${typeScale[2]}rem`,
|
|
5022
5049
|
fontWeight: 500,
|
|
5023
|
-
lineHeight: "1.75"
|
|
5050
|
+
lineHeight: "1.75",
|
|
5051
|
+
letterSpacing: "-0.025em"
|
|
5024
5052
|
},
|
|
5025
5053
|
heading2: {
|
|
5026
5054
|
fontFamily: fonts.normal,
|
|
5027
5055
|
fontSize: `${typeScale[3]}rem`,
|
|
5028
5056
|
fontWeight: 500,
|
|
5029
|
-
lineHeight: "1.75"
|
|
5057
|
+
lineHeight: "1.75",
|
|
5058
|
+
letterSpacing: "-0.025em"
|
|
5030
5059
|
},
|
|
5031
5060
|
heading3: {
|
|
5032
5061
|
fontFamily: fonts.normal,
|
|
5033
5062
|
fontSize: `${typeScale[4]}rem`,
|
|
5034
5063
|
fontWeight: 500,
|
|
5035
|
-
lineHeight: "1.75"
|
|
5064
|
+
lineHeight: "1.75",
|
|
5065
|
+
letterSpacing: "-0.025em"
|
|
5036
5066
|
},
|
|
5037
5067
|
heading4: {
|
|
5038
5068
|
fontFamily: fonts.normal,
|
|
@@ -5128,6 +5158,8 @@ var colors2 = produce(colors, (colors3) => {
|
|
|
5128
5158
|
colors3.placeholderDots = "rgba(255,255,255,0.3)";
|
|
5129
5159
|
colors3.dragOutline = "white";
|
|
5130
5160
|
colors3.activeBackground = "rgba(181,178,255,0.08)";
|
|
5161
|
+
colors3.thumbnailBackground = "#1f1d33";
|
|
5162
|
+
colors3.thumbnailShadow = "#1f1d3366";
|
|
5131
5163
|
});
|
|
5132
5164
|
|
|
5133
5165
|
// src/utils/createSectionedMenu.ts
|
|
@@ -5216,7 +5248,7 @@ var Column = styled32.div(({ theme }) => ({
|
|
|
5216
5248
|
flex: "1",
|
|
5217
5249
|
display: "flex",
|
|
5218
5250
|
flexDirection: "column",
|
|
5219
|
-
gap: "
|
|
5251
|
+
gap: "4px"
|
|
5220
5252
|
}));
|
|
5221
5253
|
var Checkbox = styled32.input(({ theme }) => ({
|
|
5222
5254
|
margin: 0
|