@centreon/ui 26.5.12 → 26.5.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@centreon/ui",
3
- "version": "26.5.12",
3
+ "version": "26.5.14",
4
4
  "description": "Centreon UI Components",
5
5
  "scripts": {
6
6
  "update:deps": "pnpx npm-check-updates -i --format group",
@@ -166,7 +166,7 @@ const MainLegend = ({
166
166
  onMouseLeave={(): void => clearHighlight()}
167
167
  >
168
168
  <div
169
- className="h-full rounded-sm w-1 min-h-5"
169
+ className="h-full rounded-sm w-1 min-h-4"
170
170
  data-icon
171
171
  style={{ backgroundColor: markerColor }}
172
172
  />
@@ -7,7 +7,6 @@ import { type ReactElement, type ReactNode, useMemo } from 'react';
7
7
 
8
8
  import type { AriaLabelingAttributes } from '../../@types/aria-attributes';
9
9
  import type { DataTestAttributes } from '../../@types/data-attributes';
10
- import styles from './Button.module.css';
11
10
 
12
11
  const muiVariantMap: Record<
13
12
  Required<ButtonProps>['variant'],
@@ -58,7 +57,17 @@ const Button = ({
58
57
 
59
58
  return (
60
59
  <MuiButton
61
- className={`${styles.button} ${className}`}
60
+ className={`
61
+ text-nowrap
62
+ data-[size=medium]:text-base data-[size=medium]:leading-6 data-[size=medium]:h-auto
63
+ data-[size=small]:text-sm data-[size=small]:leading-[22px] data-[size=small]:h-auto
64
+ data-[size=small]:data-[variant=primary]:px-[var(--spacing-4)]
65
+ [&:not(:disabled)]:data-[variant=primary]:bg-[var(--color-primary-main)]
66
+ [&:not(:disabled)]:data-[variant=primary]:data-[is-danger=true]:bg-[var(--color-error-main)]
67
+ [&:not(:disabled)]:data-[variant=secondary]:border-[var(--color-primary-main)]
68
+ [&:not(:disabled)]:data-[variant=secondary]:text-[var(--color-primary-main)]
69
+ [&:not(:disabled)]:data-[variant=secondary]:data-[is-danger=true]:border-[var(--color-error-main)]
70
+ [&:not(:disabled)]:data-[variant=secondary]:data-[is-danger=true]:text-[var(--color-error-main)] ${className}`}
62
71
  data-icon-variant={iconVariant}
63
72
  data-is-danger={isDanger}
64
73
  data-size={size}
@@ -7,8 +7,6 @@ import type { ReactElement, ReactNode } from 'react';
7
7
 
8
8
  import '../../../src/ThemeProvider/tailwindcss.css';
9
9
 
10
- import styles from './modal.module.css';
11
-
12
10
  export type ModalHeaderProps = {
13
11
  children?: ReactNode;
14
12
  };
@@ -18,7 +16,10 @@ const ModalHeader = ({
18
16
  ...rest
19
17
  }: ModalHeaderProps & DialogTitleProps): ReactElement => {
20
18
  return (
21
- <div className={styles.modalHeader}>
19
+ <div
20
+ className="flex gap-4 justify-between [&_.MuiDialogTitle-root]:p-0"
21
+ data-testid="modal-header"
22
+ >
22
23
  <MuiDialogTitle
23
24
  className="p-0 font-bold text-2xl"
24
25
  color="primary"