@moderneinc/neo-styled-components 2.3.0-next.f76980 → 2.4.0-next.7ddfb2

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.
@@ -92,6 +92,6 @@ export declare const NeoCheckbox: {
92
92
  * Base styled checkbox component without label wrapper
93
93
  * Used internally by NeoCheckbox and directly in DataGrid
94
94
  *
95
- * @internal - Prefer using NeoCheckbox for most cases
95
+ * @public
96
96
  */
97
97
  export { StyledCheckbox as NeoCheckboxBase };
@@ -0,0 +1,26 @@
1
+ import type { ReactNode } from 'react';
2
+ /**
3
+ * Props for the NeoLargeCard component
4
+ */
5
+ export interface NeoLargeCardProps {
6
+ /**
7
+ * The content to display inside the component
8
+ */
9
+ children?: ReactNode;
10
+ }
11
+ /**
12
+ * NeoLargeCard - TODO: Add component description
13
+ *
14
+ * @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC?node-id=5925-11
15
+ *
16
+ * Figma Props Mapping:
17
+ * - TODO: Document Figma property mappings
18
+ * - FigmaProp → reactProp
19
+ *
20
+ * Design Tokens Used:
21
+ * - TODO: List design tokens used (e.g., semanticColors.text.primary, typography.body.medium)
22
+ */
23
+ export declare const NeoLargeCard: {
24
+ ({ children, ...props }: NeoLargeCardProps): import("react/jsx-runtime").JSX.Element;
25
+ displayName: string;
26
+ };
@@ -0,0 +1,26 @@
1
+ import type { ReactNode } from 'react';
2
+ /**
3
+ * Props for the NeoNavItem component
4
+ */
5
+ export interface NeoNavItemProps {
6
+ /**
7
+ * The content to display inside the component
8
+ */
9
+ children?: ReactNode;
10
+ }
11
+ /**
12
+ * NeoNavItem - TODO: Add component description
13
+ *
14
+ * @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC?node-id=4286-13844
15
+ *
16
+ * Figma Props Mapping:
17
+ * - TODO: Document Figma property mappings
18
+ * - FigmaProp → reactProp
19
+ *
20
+ * Design Tokens Used:
21
+ * - TODO: List design tokens used (e.g., semanticColors.text.primary, typography.body.medium)
22
+ */
23
+ export declare const NeoNavItem: {
24
+ ({ children, ...props }: NeoNavItemProps): import("react/jsx-runtime").JSX.Element;
25
+ displayName: string;
26
+ };
@@ -0,0 +1,26 @@
1
+ import type { ReactNode } from 'react';
2
+ /**
3
+ * Props for the NeoSideNav component
4
+ */
5
+ export interface NeoSideNavProps {
6
+ /**
7
+ * The content to display inside the component
8
+ */
9
+ children?: ReactNode;
10
+ }
11
+ /**
12
+ * NeoSideNav - TODO: Add component description
13
+ *
14
+ * @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC?node-id=4065-3425
15
+ *
16
+ * Figma Props Mapping:
17
+ * - TODO: Document Figma property mappings
18
+ * - FigmaProp → reactProp
19
+ *
20
+ * Design Tokens Used:
21
+ * - TODO: List design tokens used (e.g., semanticColors.text.primary, typography.body.medium)
22
+ */
23
+ export declare const NeoSideNav: {
24
+ ({ children, ...props }: NeoSideNavProps): import("react/jsx-runtime").JSX.Element;
25
+ displayName: string;
26
+ };
@@ -0,0 +1,26 @@
1
+ import type { ReactNode } from 'react';
2
+ /**
3
+ * Props for the NeoTopNav component
4
+ */
5
+ export interface NeoTopNavProps {
6
+ /**
7
+ * The content to display inside the component
8
+ */
9
+ children?: ReactNode;
10
+ }
11
+ /**
12
+ * NeoTopNav - TODO: Add component description
13
+ *
14
+ * @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC?node-id=4618-185228
15
+ *
16
+ * Figma Props Mapping:
17
+ * - TODO: Document Figma property mappings
18
+ * - FigmaProp → reactProp
19
+ *
20
+ * Design Tokens Used:
21
+ * - TODO: List design tokens used (e.g., semanticColors.text.primary, typography.body.medium)
22
+ */
23
+ export declare const NeoTopNav: {
24
+ ({ children, ...props }: NeoTopNavProps): import("react/jsx-runtime").JSX.Element;
25
+ displayName: string;
26
+ };
@@ -0,0 +1,26 @@
1
+ import type { ReactNode } from 'react';
2
+ /**
3
+ * Props for the NeoTree component
4
+ */
5
+ export interface NeoTreeProps {
6
+ /**
7
+ * The content to display inside the component
8
+ */
9
+ children?: ReactNode;
10
+ }
11
+ /**
12
+ * NeoTree - TODO: Add component description
13
+ *
14
+ * @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC?node-id=4190-30493
15
+ *
16
+ * Figma Props Mapping:
17
+ * - TODO: Document Figma property mappings
18
+ * - FigmaProp → reactProp
19
+ *
20
+ * Design Tokens Used:
21
+ * - TODO: List design tokens used (e.g., semanticColors.text.primary, typography.body.medium)
22
+ */
23
+ export declare const NeoTree: {
24
+ ({ children, ...props }: NeoTreeProps): import("react/jsx-runtime").JSX.Element;
25
+ displayName: string;
26
+ };
package/dist/index.esm.js CHANGED
@@ -74,18 +74,11 @@ const StyledAvatar = styled(Avatar, {
74
74
  height: spacing.spacing_2_1_2,
75
75
  fontSize: theme.typography.pxToRem(typography.fontSize.xs),
76
76
  }),
77
- ...(size === 'medium' &&
78
- variant === 'initials' && {
77
+ ...(size === 'medium' && {
79
78
  width: spacing.spacing_5_1_2,
80
79
  height: spacing.spacing_5_1_2,
81
80
  fontSize: theme.typography.pxToRem(typography.fontSize.sm),
82
81
  }),
83
- ...(size === 'medium' &&
84
- variant === 'circular' && {
85
- width: 36,
86
- height: 36,
87
- fontSize: theme.typography.pxToRem(typography.fontSize.sm),
88
- }),
89
82
  // Initials variant styling
90
83
  ...(variant === 'initials' && {
91
84
  backgroundColor: colors.violet[100],
@@ -160,6 +153,7 @@ const StyledChip$1 = styled(Chip)(({ theme }) => ({
160
153
  borderRadius: borderRadius.full,
161
154
  fontSize: theme.typography.pxToRem(typography.fontSize.xs),
162
155
  lineHeight: 1,
156
+ fontWeight: typography.fontWeight.medium,
163
157
  gap: spacing.spacing_1_2,
164
158
  overflow: 'visible',
165
159
  [`& .${chipClasses.label}`]: {
@@ -908,7 +902,7 @@ const StyledAlert$2 = styled(Alert, {
908
902
  // Variant-specific styles
909
903
  const variantStyles = {
910
904
  dark: {
911
- backgroundColor: colors.digitalBlue['400'],
905
+ backgroundColor: semanticColors.surfaces.snackbarBrand,
912
906
  color: semanticColors.surfaces.white,
913
907
  },
914
908
  light: {
@@ -1091,7 +1085,15 @@ function NeoBreadcrumbs({ children, className }) {
1091
1085
  }
1092
1086
 
1093
1087
  // Props that should not be forwarded to ButtonBase (Button-specific props that ButtonBase doesn't support)
1094
- const buttonOnlyProps$1 = ['variant', 'size', 'loading', 'startIcon', 'endIcon', 'fullWidth', 'disableElevation'];
1088
+ const buttonOnlyProps$1 = [
1089
+ 'variant',
1090
+ 'size',
1091
+ 'loading',
1092
+ 'startIcon',
1093
+ 'endIcon',
1094
+ 'fullWidth',
1095
+ 'disableElevation',
1096
+ ];
1095
1097
  const StyledButtonBase$1 = styled(ButtonBase, {
1096
1098
  shouldForwardProp: prop => !buttonOnlyProps$1.includes(prop),
1097
1099
  })(({ theme, variant = 'primary', size = 'medium', loading = false }) => {
@@ -1099,13 +1101,13 @@ const StyledButtonBase$1 = styled(ButtonBase, {
1099
1101
  const sizeConfig = {
1100
1102
  small: {
1101
1103
  height: 32,
1102
- padding: `0 ${theme.spacing(2)}`,
1104
+ padding: `0 ${theme.spacing(1.5)}`,
1103
1105
  fontSize: theme.typography.pxToRem(14),
1104
1106
  },
1105
1107
  medium: {
1106
1108
  height: spacing.spacing_5,
1107
- padding: `0 ${theme.spacing(3)}`,
1108
- fontSize: theme.typography.pxToRem(16),
1109
+ padding: `0 ${theme.spacing(2)}`,
1110
+ fontSize: theme.typography.pxToRem(14),
1109
1111
  },
1110
1112
  };
1111
1113
  const sizeStyles = sizeConfig[size];
@@ -1115,7 +1117,7 @@ const StyledButtonBase$1 = styled(ButtonBase, {
1115
1117
  padding: sizeStyles.padding,
1116
1118
  fontSize: sizeStyles.fontSize,
1117
1119
  fontWeight: 500,
1118
- lineHeight: 1.5,
1120
+ lineHeight: '1.25rem',
1119
1121
  borderRadius: borderRadius.button,
1120
1122
  textTransform: 'none',
1121
1123
  transition: theme.transitions.create(['background-color', 'border-color', 'color'], {
@@ -1948,7 +1950,7 @@ const StyledSelect = styled(MuiSelect)({
1948
1950
  },
1949
1951
  '&.Mui-focused': {
1950
1952
  backgroundColor: semanticColors.input.background,
1951
- borderColor: semanticColors.border.input,
1953
+ borderColor: semanticColors.buttons.primary.default,
1952
1954
  },
1953
1955
  '&::before': {
1954
1956
  display: 'none',
@@ -1961,7 +1963,7 @@ const StyledSelect = styled(MuiSelect)({
1961
1963
  paddingBottom: spacing.spacing_1,
1962
1964
  paddingLeft: spacing.spacing_1_1_2,
1963
1965
  paddingRight: spacing.spacing_5,
1964
- fontSize: typography.fontSize.default,
1966
+ fontSize: typography.fontSize.sm,
1965
1967
  fontWeight: typography.fontWeight.regular,
1966
1968
  color: semanticColors.typography.input.default,
1967
1969
  },
@@ -3921,7 +3923,7 @@ const StyledInputBase = styled(InputBase, {
3921
3923
  height: spacing.spacing_5_1_2,
3922
3924
  padding: `${spacing.spacing_2}px ${spacing.spacing_3}px ${spacing.spacing_2}px ${startAdornment ? 0 : spacing.spacing_2}px`,
3923
3925
  fontSize: theme.typography.pxToRem(typography.fontSize.default),
3924
- borderRadius: borderRadius.full,
3926
+ borderRadius: borderRadius.input,
3925
3927
  },
3926
3928
  };
3927
3929
  const sizeStyles = sizeConfig[size];
@@ -5491,9 +5493,9 @@ const StyledTab = styled(MuiTab)(({ theme }) => ({
5491
5493
  minHeight: spacing.spacing_5,
5492
5494
  padding: `${theme.spacing(1)} ${theme.spacing(2)}`,
5493
5495
  textTransform: 'none',
5494
- fontWeight: 500,
5496
+ fontWeight: 400,
5495
5497
  fontSize: theme.typography.pxToRem(14),
5496
- lineHeight: 1.5,
5498
+ lineHeight: '1.5rem',
5497
5499
  color: semanticColors.typography.tab.inactive,
5498
5500
  transition: 'none', // Remove animation
5499
5501
  [`&.${tabClasses.selected}`]: {