@moderneinc/design-system-components 6.0.0 → 6.0.1-next.24493d

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/index.js CHANGED
@@ -1862,14 +1862,7 @@ const StyledCheckbox = styles.styled(Checkbox, {
1862
1862
  */
1863
1863
  const ModCheckbox = ({ size = 'medium', label, helperText, disabled, icon, checkedIcon, indeterminateIcon, className, ...props }) => {
1864
1864
  // Identifies ModCheckbox instances to consumer stylesheets.
1865
- //
1866
- // `neo-checkbox` ships alongside for one major. Consumers select on these
1867
- // names from their own CSS, where nothing type-checks the string — moderne-ui
1868
- // has `'&:not(.neo-checkbox)'`, which on a bare rename would stop excluding
1869
- // anything and silently start overriding every checkbox. Remove the legacy
1870
- // name once consumers have migrated.
1871
- const ownClassNames = 'mod-checkbox neo-checkbox';
1872
- const combinedClassName = className ? `${ownClassNames} ${className}` : ownClassNames;
1865
+ const combinedClassName = className ? `mod-checkbox ${className}` : 'mod-checkbox';
1873
1866
  // Default icons (sized via CSS on the SVG); overridable per instance
1874
1867
  const defaultIcon = icon || jsxRuntime.jsx(Square, {});
1875
1868
  const defaultCheckedIcon = checkedIcon || jsxRuntime.jsx(SquareCheck, {});
@@ -5713,7 +5706,7 @@ function ModNavigationItem({ icon, label, selected = false, tag, tooltip, slotPr
5713
5706
  // When collapsed the label is hidden, so fall back to it for the tooltip and
5714
5707
  // accessible name — otherwise an icon-only button has no name (WCAG 4.1.2).
5715
5708
  const collapsedTooltip = tooltip ?? label;
5716
- const item = (jsxRuntime.jsxs(StyledRoot, { selected: selected, "aria-label": collapsed && typeof label === 'string' ? label : undefined, disableRipple: true, ...props, children: [jsxRuntime.jsx(IconPadding, { className: "mod-nav-icon-padding neo-nav-icon-padding", children: icon }), !collapsed && label && jsxRuntime.jsx(Label$2, { className: "mod-nav-label neo-nav-label", children: label }), !collapsed && tag && (jsxRuntime.jsx(ModTag, { size: "medium", variant: "filled", intent: "beta", shape: "rounded", label: tag, ...slotProps?.badge })), children] }));
5709
+ const item = (jsxRuntime.jsxs(StyledRoot, { selected: selected, "aria-label": collapsed && typeof label === 'string' ? label : undefined, disableRipple: true, ...props, children: [jsxRuntime.jsx(IconPadding, { className: "mod-nav-icon-padding", children: icon }), !collapsed && label && jsxRuntime.jsx(Label$2, { className: "mod-nav-label", children: label }), !collapsed && tag && (jsxRuntime.jsx(ModTag, { size: "medium", variant: "filled", intent: "beta", shape: "rounded", label: tag, ...slotProps?.badge })), children] }));
5717
5710
  if (collapsed && collapsedTooltip) {
5718
5711
  return (jsxRuntime.jsx(ModTooltip, { title: collapsedTooltip, placement: "right", arrow: true, children: item }));
5719
5712
  }