@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.
- package/dist/Banner/Banner.d.ts +22 -17
- package/dist/ButtonTab/ButtonTab.d.ts +19 -0
- package/dist/ButtonTabGroup/ButtonTabGroup.d.ts +39 -0
- package/dist/CodeSnippet/CodeSnippet.d.ts +4 -4
- package/dist/GeneralAvatar/GeneralAvatar.d.ts +26 -0
- package/dist/ListItemButton/ListItemButton.d.ts +1 -1
- package/dist/MarketplaceCard/MarketplaceCard.d.ts +2 -2
- package/dist/MarketplaceLargeCard/MarketplaceLargeCard.d.ts +2 -2
- package/dist/NavigationAvatar/NavigationAvatar.d.ts +15 -0
- package/dist/StatusBanner/StatusBanner.d.ts +14 -11
- package/dist/Tabs/Tabs.d.ts +5 -7
- package/dist/Tag/Tag.d.ts +7 -7
- package/dist/Toast/Toast.d.ts +19 -11
- package/dist/Tooltip/Tooltip.d.ts +6 -6
- package/dist/index.d.ts +160 -89
- package/dist/index.esm.js +557 -260
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +560 -260
- package/dist/index.js.map +1 -1
- package/dist/utils/avatarColors.d.ts +7 -0
- package/dist/utils/focusRing.d.ts +3 -3
- package/package.json +1 -1
- package/dist/ButtonGroup/ButtonGroup.d.ts +0 -41
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Outline-based focus ring styles derived from Neo
|
|
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
|
|
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:
|
|
8
|
+
readonly outline: "2px solid #3bcca6";
|
|
9
9
|
readonly outlineOffset: "2px";
|
|
10
10
|
};
|
package/package.json
CHANGED
|
@@ -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 {};
|