@moderneinc/neo-styled-components 2.6.0 → 2.7.0

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.
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Shared color palette for avatar components (GeneralAvatar, NavigationAvatar).
3
+ * Maps color index (1-7) to background color token pairs.
4
+ */
5
+ export declare const avatarColorPalette: Record<number, {
6
+ bg: string;
7
+ }>;
@@ -1,10 +1,10 @@
1
1
  /**
2
- * Outline-based focus ring styles derived from Neo shadow tokens.
2
+ * Outline-based focus ring styles derived from Neo border tokens.
3
3
  * Uses CSS outline (not box-shadow) so focus rings are never clipped by overflow:hidden.
4
4
  *
5
- * Produces a double-ring effect: a white inner gap (via outline-offset) and a blue outer ring.
5
+ * Produces a double-ring effect: a white inner gap (via outline-offset) and a colored outer ring.
6
6
  */
7
7
  export declare const focusRingStyles: {
8
- readonly outline: `${number}px solid rgba(47, 66, 255, 1)`;
8
+ readonly outline: "2px solid #3bcca6";
9
9
  readonly outlineOffset: "2px";
10
10
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moderneinc/neo-styled-components",
3
- "version": "2.6.0",
3
+ "version": "2.7.0",
4
4
  "type": "module",
5
5
  "description": "Styled MUI components for Moderne applications",
6
6
  "main": "dist/index.js",
@@ -1,41 +0,0 @@
1
- import { type ButtonGroupProps as MuiButtonGroupProps } from '@mui/material/ButtonGroup';
2
- type ButtonGroupSize = 'small' | 'medium';
3
- export interface NeoButtonGroupProps extends Omit<MuiButtonGroupProps, 'size' | 'variant'> {
4
- /**
5
- * The size of the button group
6
- * @default "medium"
7
- *
8
- * @figma Size=Sm → small, Size=Md → medium
9
- */
10
- size?: ButtonGroupSize;
11
- /**
12
- * The visual variant of the buttons
13
- * ButtonGroup uses a fixed outlined style from the design
14
- */
15
- variant?: 'outlined';
16
- }
17
- /**
18
- * NeoButtonGroup - Button group component based on MUI ButtonGroup
19
- *
20
- * @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC/Neo---Moderne-Design-system---2025?node-id=4106-11129
21
- *
22
- * Figma Props Mapping:
23
- * - Size (Sm|Md) → size prop (small|medium)
24
- * - Active button state → Controlled externally via button props or classes
25
- *
26
- * Usage:
27
- * ```tsx
28
- * <NeoButtonGroup size="medium">
29
- * <NeoButton>Button 1</NeoButton>
30
- * <NeoButton>Button 2</NeoButton>
31
- * <NeoButton>Button 3</NeoButton>
32
- * </NeoButtonGroup>
33
- * ```
34
- *
35
- * Note: To show active state, add 'active' class to the selected button
36
- */
37
- export declare const NeoButtonGroup: {
38
- ({ size, variant, ...props }: NeoButtonGroupProps): import("react/jsx-runtime").JSX.Element;
39
- displayName: string;
40
- };
41
- export {};