@moderneinc/neo-styled-components 4.0.0-next.75bf90 → 4.0.0-next.883076

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.
@@ -5,12 +5,10 @@ declare module '@mui/material/ButtonBase' {
5
5
  primary: true;
6
6
  secondary: true;
7
7
  destructive: true;
8
- link: true;
9
- linkColor: true;
10
8
  tertiary: true;
11
9
  }
12
10
  }
13
- type ButtonVariant = 'primary' | 'secondary' | 'destructive' | 'link' | 'linkColor' | 'tertiary';
11
+ type ButtonVariant = 'primary' | 'secondary' | 'destructive' | 'tertiary';
14
12
  type ButtonSize = 'small' | 'medium';
15
13
  type NeoButtonOwnProps = {
16
14
  /**
@@ -60,7 +58,7 @@ export type NeoButtonProps<C extends ElementType = typeof ButtonBase> = NeoButto
60
58
  * @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC/Neo---Moderne-Design-system---2025?node-id=4086-7590
61
59
  *
62
60
  * Figma Props Mapping:
63
- * - Hierarchy (Primary|Secondary|Destructive|Link|Link Color|Tertiary) → variant prop
61
+ * - Hierarchy (Primary|Secondary|Destructive|Tertiary) → variant prop
64
62
  * - Size (Small|Medium) → size prop
65
63
  * - State=Disabled → disabled prop
66
64
  * - State=Loading → loading prop
package/dist/index.d.ts CHANGED
@@ -491,12 +491,10 @@ declare module '@mui/material/ButtonBase' {
491
491
  primary: true;
492
492
  secondary: true;
493
493
  destructive: true;
494
- link: true;
495
- linkColor: true;
496
494
  tertiary: true;
497
495
  }
498
496
  }
499
- type ButtonVariant = 'primary' | 'secondary' | 'destructive' | 'link' | 'linkColor' | 'tertiary';
497
+ type ButtonVariant = 'primary' | 'secondary' | 'destructive' | 'tertiary';
500
498
  type ButtonSize = 'small' | 'medium';
501
499
  type NeoButtonOwnProps = {
502
500
  /**
@@ -546,7 +544,7 @@ type NeoButtonProps<C extends ElementType = typeof ButtonBase__default> = NeoBut
546
544
  * @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC/Neo---Moderne-Design-system---2025?node-id=4086-7590
547
545
  *
548
546
  * Figma Props Mapping:
549
- * - Hierarchy (Primary|Secondary|Destructive|Link|Link Color|Tertiary) → variant prop
547
+ * - Hierarchy (Primary|Secondary|Destructive|Tertiary) → variant prop
550
548
  * - Size (Small|Medium) → size prop
551
549
  * - State=Disabled → disabled prop
552
550
  * - State=Loading → loading prop
@@ -2867,6 +2865,17 @@ declare const NeoTreeView: {
2867
2865
  displayName: string;
2868
2866
  };
2869
2867
 
2868
+ /**
2869
+ * Outline-based focus ring styles derived from Neo border tokens.
2870
+ * Uses CSS outline (not box-shadow) so focus rings are never clipped by overflow:hidden.
2871
+ *
2872
+ * Produces a double-ring effect: a white inner gap (via outline-offset) and a colored outer ring.
2873
+ */
2874
+ declare const focusRingStyles: {
2875
+ readonly outline: "2px solid #3bcca6";
2876
+ readonly outlineOffset: "2px";
2877
+ };
2878
+
2870
2879
  /**
2871
2880
  * @moderneinc/neo-styled-components
2872
2881
  *
@@ -2886,5 +2895,5 @@ declare module '@mui/x-data-grid-pro' {
2886
2895
 
2887
2896
  declare const version: string
2888
2897
 
2889
- export { ActivityScene, CIRCLE_RADIUS, NeoActivityHeader, NeoActivityIndicatorCell, NeoAlert, NeoAvatar, NeoBadge, NeoBanner, NeoBreadcrumbLink, NeoBreadcrumbs, NeoButton, NeoButtonTab, NeoButtonTabGroup, NeoCard, NeoCheckbox, NeoCodeSnippet, NeoDataGrid, NeoDataGridCellContent, NeoDataGridColumnsButton, NeoDataGridColumnsPanel, NeoDataGridFilterPanel, NeoDataGridFilterPanelAddIcon, NeoDataGridFilterPanelDeleteIcon, NeoDataGridFilterPanelRemoveAllIcon, NeoDataGridFiltersButton, NeoDataGridHeaderLabel, NeoSelect as NeoDataGridSelect, NeoDatePicker, NeoDivider, NeoDot, NeoSelect as NeoDropdown, NeoMenu as NeoDropdownMenu, NeoMenuItem as NeoDropdownMenuItem, NeoMenuItem as NeoDropdownOption, NeoFilterChip, NeoFooter, NeoGeneralAvatar, NeoIconButton, NeoInfiniteScrollGrid, NeoInputField, NeoListItem, NeoListItemButton, NeoLoadingSpinner, NeoMenu, NeoMenuItem, NeoModal, NeoModalContent, NeoModalFooter, NeoModalHeader, NeoMultiBadgesCell, NeoNavigationAvatar, NeoNavigationItem, NeoPageContent, NeoPaginatedGrid, NeoProgressbar, NeoQuickFilter, NeoRadio, NeoSearchChip, NeoSelect, NeoMenuItem as NeoSelectOption, NeoSkeleton, NeoStatusBadgeCell, NeoTab, NeoTabs, NeoTag, NeoToast, NeoToastButton, NeoToggle, NeoToolbar, NeoTooltip, NeoTreeItem, NeoTreeView, StyledToggleButton as NeoTypologyButton, NeoTypologyControl, NeoUserAvatarCell, SortedAscendingIcon, SortedDescendingIcon, UnsortedIcon, getDataGridHeaderStyles, version };
2898
+ export { ActivityScene, CIRCLE_RADIUS, NeoActivityHeader, NeoActivityIndicatorCell, NeoAlert, NeoAvatar, NeoBadge, NeoBanner, NeoBreadcrumbLink, NeoBreadcrumbs, NeoButton, NeoButtonTab, NeoButtonTabGroup, NeoCard, NeoCheckbox, NeoCodeSnippet, NeoDataGrid, NeoDataGridCellContent, NeoDataGridColumnsButton, NeoDataGridColumnsPanel, NeoDataGridFilterPanel, NeoDataGridFilterPanelAddIcon, NeoDataGridFilterPanelDeleteIcon, NeoDataGridFilterPanelRemoveAllIcon, NeoDataGridFiltersButton, NeoDataGridHeaderLabel, NeoSelect as NeoDataGridSelect, NeoDatePicker, NeoDivider, NeoDot, NeoSelect as NeoDropdown, NeoMenu as NeoDropdownMenu, NeoMenuItem as NeoDropdownMenuItem, NeoMenuItem as NeoDropdownOption, NeoFilterChip, NeoFooter, NeoGeneralAvatar, NeoIconButton, NeoInfiniteScrollGrid, NeoInputField, NeoListItem, NeoListItemButton, NeoLoadingSpinner, NeoMenu, NeoMenuItem, NeoModal, NeoModalContent, NeoModalFooter, NeoModalHeader, NeoMultiBadgesCell, NeoNavigationAvatar, NeoNavigationItem, NeoPageContent, NeoPaginatedGrid, NeoProgressbar, NeoQuickFilter, NeoRadio, NeoSearchChip, NeoSelect, NeoMenuItem as NeoSelectOption, NeoSkeleton, NeoStatusBadgeCell, NeoTab, NeoTabs, NeoTag, NeoToast, NeoToastButton, NeoToggle, NeoToolbar, NeoTooltip, NeoTreeItem, NeoTreeView, StyledToggleButton as NeoTypologyButton, NeoTypologyControl, NeoUserAvatarCell, SortedAscendingIcon, SortedDescendingIcon, UnsortedIcon, focusRingStyles, getDataGridHeaderStyles, version };
2890
2899
  export type { ActivityColor, ActivityEvent, ActivityHeaderSize, BreadcrumbItem, DataGridSize, NeoActivityHeaderProps, NeoActivityIndicatorCellProps, NeoAlertProps, NeoAvatarProps, NeoBadgeProps, NeoBannerProps, NeoBreadcrumbLinkProps, NeoBreadcrumbsProps, NeoButtonProps, NeoButtonTabGroupProps, NeoButtonTabProps, NeoCardLargeProps, NeoCardProps, NeoCardSize, NeoCardSmallProps, NeoCheckboxProps, NeoCodeSnippetProps, NeoDataGridCellContentProps, NeoDataGridHeaderLabelProps, NeoDataGridProps, NeoDatePickerProps, NeoDividerProps, NeoDotProps, NeoMenuItemProps as NeoDropdownMenuItemProps, NeoMenuProps as NeoDropdownMenuProps, NeoSelectProps as NeoDropdownProps, NeoFilterChipProps, NeoFooterProps, NeoGeneralAvatarProps, NeoIconButtonProps, NeoInfiniteScrollGridProps, NeoInputFieldProps, NeoListItemButtonProps, NeoListItemProps, NeoLoadingSpinnerProps, NeoMenuItemProps, NeoMenuProps, NeoModalContentProps, NeoModalFooterProps, NeoModalHeaderProps, NeoModalProps, NeoMultiBadgesCellProps, NeoNavigationAvatarProps, NeoNavigationItemProps, NeoPageContentProps, NeoPaginatedGridProps, NeoProgressbarProps, NeoQuickFilterProps, NeoRadioProps, NeoSearchChipProps, NeoSelectProps, NeoSkeletonProps, NeoStatusBadgeCellProps, NeoTabProps, NeoTagProps, NeoToastProps, NeoToggleProps, NeoToolbarProps, NeoTooltipProps, NeoTreeItemData, NeoTreeItemProps, NeoTreeViewProps, NeoTypologyControlProps, NeoUserAvatarCellProps };
package/dist/index.esm.js CHANGED
@@ -1350,48 +1350,6 @@ const StyledButtonBase$1 = styled(ButtonBase, {
1350
1350
  },
1351
1351
  }),
1352
1352
  },
1353
- link: {
1354
- backgroundColor: 'transparent',
1355
- color: semanticColors.buttons.tertiary.default,
1356
- border: 'none',
1357
- padding: `0 ${theme.spacing(1)}`,
1358
- '&:hover': {
1359
- backgroundColor: 'transparent',
1360
- color: semanticColors.buttons.tertiary.hover,
1361
- },
1362
- '&:active': {
1363
- color: semanticColors.buttons.tertiary.pressed,
1364
- },
1365
- ...(loading
1366
- ? {}
1367
- : {
1368
- [`&.${buttonBaseClasses.disabled}`]: {
1369
- backgroundColor: 'transparent',
1370
- color: semanticColors.buttons.tertiary.disabled,
1371
- },
1372
- }),
1373
- },
1374
- linkColor: {
1375
- backgroundColor: 'transparent',
1376
- color: semanticColors.buttons.primary.default,
1377
- border: 'none',
1378
- padding: `0 ${theme.spacing(1)}`,
1379
- '&:hover': {
1380
- backgroundColor: 'transparent',
1381
- color: semanticColors.buttons.primary.hover,
1382
- },
1383
- '&:active': {
1384
- color: semanticColors.buttons.primary.pressed,
1385
- },
1386
- ...(loading
1387
- ? {}
1388
- : {
1389
- [`&.${buttonBaseClasses.disabled}`]: {
1390
- backgroundColor: 'transparent',
1391
- color: semanticColors.buttons.tertiary.disabled,
1392
- },
1393
- }),
1394
- },
1395
1353
  tertiary: {
1396
1354
  backgroundColor: 'transparent',
1397
1355
  color: semanticColors.typography.input.default,
@@ -1426,8 +1384,6 @@ const LoadingSpinner = styled(CircularProgress)(({ theme, $variant }) => {
1426
1384
  primary: theme.palette.common.white,
1427
1385
  secondary: semanticColors.buttons.primary.default,
1428
1386
  destructive: theme.palette.common.white,
1429
- link: semanticColors.buttons.primary.default,
1430
- linkColor: semanticColors.buttons.primary.default,
1431
1387
  tertiary: semanticColors.buttons.tertiary.default,
1432
1388
  };
1433
1389
  return {
@@ -1440,7 +1396,7 @@ const LoadingSpinner = styled(CircularProgress)(({ theme, $variant }) => {
1440
1396
  * @figma https://www.figma.com/design/fQTkGSFbYyE7LiHuQJsENC/Neo---Moderne-Design-system---2025?node-id=4086-7590
1441
1397
  *
1442
1398
  * Figma Props Mapping:
1443
- * - Hierarchy (Primary|Secondary|Destructive|Link|Link Color|Tertiary) → variant prop
1399
+ * - Hierarchy (Primary|Secondary|Destructive|Tertiary) → variant prop
1444
1400
  * - Size (Small|Medium) → size prop
1445
1401
  * - State=Disabled → disabled prop
1446
1402
  * - State=Loading → loading prop
@@ -6799,5 +6755,5 @@ NeoTypologyControl.displayName = 'NeoTypologyControl';
6799
6755
 
6800
6756
  const version = '0.0.0-development';
6801
6757
 
6802
- export { ActivityScene, CIRCLE_RADIUS, NeoActivityHeader, NeoActivityIndicatorCell, NeoAlert, NeoAvatar, NeoBadge, NeoBanner, NeoBreadcrumbLink, NeoBreadcrumbs, NeoButton, NeoButtonTab, NeoButtonTabGroup, NeoCard, NeoCheckbox, NeoCodeSnippet, NeoDataGrid, NeoDataGridCellContent, NeoDataGridColumnsButton, NeoDataGridColumnsPanel, NeoDataGridFilterPanel, NeoDataGridFilterPanelAddIcon, NeoDataGridFilterPanelDeleteIcon, NeoDataGridFilterPanelRemoveAllIcon, NeoDataGridFiltersButton, NeoDataGridHeaderLabel, NeoSelect as NeoDataGridSelect, NeoDatePicker, NeoDivider, NeoDot, NeoDownloadToast, NeoSelect as NeoDropdown, NeoMenu as NeoDropdownMenu, NeoMenuItem as NeoDropdownMenuItem, NeoMenuItem as NeoDropdownOption, NeoFilterChip, NeoFooter, NeoGeneralAvatar, NeoIconButton, NeoIconWrapper, NeoInfiniteScrollGrid, NeoInputField, NeoListItem, NeoListItemButton, NeoLoadingSpinner, NeoMenu, NeoMenuItem, NeoModal, NeoModalContent, NeoModalFooter, NeoModalHeader, NeoMultiBadgesCell, NeoNavigationAvatar, NeoNavigationItem, NeoPageContent, NeoPaginatedGrid, NeoProgressbar, NeoQuickFilter, NeoRadio, NeoSearchChip, NeoSelect, NeoMenuItem as NeoSelectOption, NeoSkeleton, NeoStatusBadgeCell, NeoTab, NeoTabs, NeoTag, NeoToast, NeoToastButton, NeoToggle, NeoToolbar, NeoTooltip, NeoTreeItem, NeoTreeView, StyledToggleButton as NeoTypologyButton, NeoTypologyControl, NeoUserAvatarCell, SortedAscendingIcon, SortedDescendingIcon, UnsortedIcon, getDataGridHeaderStyles, neoRowHeights, version };
6758
+ export { ActivityScene, CIRCLE_RADIUS, NeoActivityHeader, NeoActivityIndicatorCell, NeoAlert, NeoAvatar, NeoBadge, NeoBanner, NeoBreadcrumbLink, NeoBreadcrumbs, NeoButton, NeoButtonTab, NeoButtonTabGroup, NeoCard, NeoCheckbox, NeoCodeSnippet, NeoDataGrid, NeoDataGridCellContent, NeoDataGridColumnsButton, NeoDataGridColumnsPanel, NeoDataGridFilterPanel, NeoDataGridFilterPanelAddIcon, NeoDataGridFilterPanelDeleteIcon, NeoDataGridFilterPanelRemoveAllIcon, NeoDataGridFiltersButton, NeoDataGridHeaderLabel, NeoSelect as NeoDataGridSelect, NeoDatePicker, NeoDivider, NeoDot, NeoDownloadToast, NeoSelect as NeoDropdown, NeoMenu as NeoDropdownMenu, NeoMenuItem as NeoDropdownMenuItem, NeoMenuItem as NeoDropdownOption, NeoFilterChip, NeoFooter, NeoGeneralAvatar, NeoIconButton, NeoIconWrapper, NeoInfiniteScrollGrid, NeoInputField, NeoListItem, NeoListItemButton, NeoLoadingSpinner, NeoMenu, NeoMenuItem, NeoModal, NeoModalContent, NeoModalFooter, NeoModalHeader, NeoMultiBadgesCell, NeoNavigationAvatar, NeoNavigationItem, NeoPageContent, NeoPaginatedGrid, NeoProgressbar, NeoQuickFilter, NeoRadio, NeoSearchChip, NeoSelect, NeoMenuItem as NeoSelectOption, NeoSkeleton, NeoStatusBadgeCell, NeoTab, NeoTabs, NeoTag, NeoToast, NeoToastButton, NeoToggle, NeoToolbar, NeoTooltip, NeoTreeItem, NeoTreeView, StyledToggleButton as NeoTypologyButton, NeoTypologyControl, NeoUserAvatarCell, SortedAscendingIcon, SortedDescendingIcon, UnsortedIcon, focusRingStyles, getDataGridHeaderStyles, neoRowHeights, version };
6803
6759
  //# sourceMappingURL=index.esm.js.map