@ssa-ui-kit/core 3.12.0 → 3.13.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.
@@ -3,4 +3,5 @@ export declare const FormHelperTextBase: import("@emotion/styled").StyledCompone
3
3
  as?: React.ElementType;
4
4
  } & {
5
5
  status?: string;
6
+ isDisabled?: boolean;
6
7
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
@@ -80,5 +80,5 @@ import { PaginationProps } from './types';
80
80
  * - Screen reader friendly
81
81
  * - Proper focus management
82
82
  */
83
- declare const Pagination: ({ pagesCount, className, as, ariaLabel, isDisabled, pageNumberPlaceholder, errorTooltip, isPageSettingVisible, isPageFromCountVisible, isRowPerPageVisible, rowPerPageProps, manualPageNumberProps, }: PaginationProps) => import("@emotion/react/jsx-runtime").JSX.Element;
83
+ declare const Pagination: ({ pagesCount, className, as, ariaLabel, isDisabled, pageNumberPlaceholder, errorTooltip, isPageSettingVisible, isPageFromCountVisible, isRowPerPageVisible, rowPerPageProps, manualPageNumberProps, renderPageCount, }: PaginationProps) => import("@emotion/react/jsx-runtime").JSX.Element;
84
84
  export default Pagination;
@@ -34,4 +34,4 @@ import { PaginationButtonsProps } from './types';
34
34
  * - Screen reader friendly
35
35
  * - Proper focus management
36
36
  */
37
- export declare const PaginationButtons: ({ range, selectedPage, onClick, isDisabled, }: PaginationButtonsProps) => false | import("@emotion/react/jsx-runtime").JSX.Element[];
37
+ export declare const PaginationButtons: ({ range, selectedPage, onClick, isDisabled, }: PaginationButtonsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,7 +1,9 @@
1
1
  import { Theme } from '@emotion/react';
2
2
  export declare const pageBtnStyles: (theme: Theme) => import("@emotion/react").SerializedStyles;
3
3
  export declare const selectedPageBtnStyles: (theme: Theme) => import("@emotion/react").SerializedStyles;
4
- export declare const arrowBtnStyles: (theme: Theme) => import("@emotion/react").SerializedStyles;
4
+ export declare const arrowBtnStyles: import("@emotion/react").SerializedStyles;
5
+ /** Ellipsis ("...") cell rendered between page-number breaks; sized to match a Number cell. */
6
+ export declare const breakStyles: (theme: Theme) => import("@emotion/react").SerializedStyles;
5
7
  export declare const PaginationNav: import("@emotion/styled").StyledComponent<{
6
8
  theme?: Theme;
7
9
  as?: React.ElementType;
@@ -104,6 +104,14 @@ export interface PaginationProps extends CommonProps {
104
104
  * @default 'The value is out of range'
105
105
  */
106
106
  errorTooltip?: string;
107
+ /**
108
+ * Custom renderer for the page count indicator shown next to the manual
109
+ * page input (only when `isPageSettingVisible` and `isPageFromCountVisible`).
110
+ * Receives the current page and total page count and returns custom JSX,
111
+ * allowing wording such as `Pages 1 out of 300`.
112
+ * @default `${current} / ${total}`
113
+ */
114
+ renderPageCount?: (current: number, total: number) => React.ReactNode;
107
115
  }
108
116
  /**
109
117
  * Props for PaginationButtons component
@@ -53,7 +53,6 @@ import { RadioProps } from './types';
53
53
  * default: '#ff0000',
54
54
  * hovered: '#cc0000',
55
55
  * disabled: '#cccccc',
56
- * focusShadow: 'rgba(255,0,0,0.25)',
57
56
  * }}
58
57
  * onChange={handleChange}
59
58
  * />
@@ -1,5 +1,3 @@
1
1
  export declare const RadioBase: import("@emotion/styled").StyledComponent<import("..").LabelProps & {
2
2
  theme?: import("@emotion/react").Theme;
3
- } & {
4
- focusShadowColor?: string;
5
3
  }, {}, {}>;
@@ -49,7 +49,6 @@
49
49
  * default: '#ff0000',
50
50
  * hovered: '#cc0000',
51
51
  * disabled: '#cccccc',
52
- * focusShadow: 'rgba(255, 0, 0, 0.25)',
53
52
  * }}
54
53
  * onChange={(value) => handleChange(value)}
55
54
  * />
@@ -120,7 +119,5 @@ export interface RadioProps {
120
119
  hovered?: string;
121
120
  /** Disabled state icon color */
122
121
  disabled?: string;
123
- /** Focus ring drop-shadow color */
124
- focusShadow?: string;
125
122
  };
126
123
  }
@@ -11,8 +11,10 @@ import { SwitchProps } from './types';
11
11
  * Checkbox, and Radio. Pass `color="custom"` together with the `colors`
12
12
  * object to supply arbitrary CSS color values.
13
13
  *
14
- * The off state always shows a neutral grey background. The disabled state
15
- * always uses `greyFocused40`, regardless of color variant.
14
+ * The off state always shows a neutral grey background (`greyFocused`).
15
+ * The disabled state always uses `greySelectedMenuItem`, regardless of color variant.
16
+ * Hovering the on state darkens it: palette variants swap to their `palette.*.dark`
17
+ * token; custom colors get a `rgba(0,0,0,0.15)` overlay so the knob stays unaffected.
16
18
  *
17
19
  * @category Form Controls
18
20
  * @subcategory Input
@@ -1,5 +1,7 @@
1
1
  interface SwitchBaseProps {
2
2
  onColor: string;
3
+ /** Explicit hover background for palette variants. When omitted, a ::after overlay darkens the track instead, leaving the knob unaffected. */
4
+ hoverColor?: string;
3
5
  offOutlineColor: string;
4
6
  }
5
7
  declare const SwitchBase: import("@emotion/styled").StyledComponent<{
@@ -7,13 +7,16 @@
7
7
  * Colors are driven by `theme.palette` for consistency with Button, Checkbox,
8
8
  * and Radio:
9
9
  * - `primary` (default) — blue; uses `palette.primary.main` for the on-state
10
- * background, `palette.primary.light` for the off-state focus outline.
10
+ * background, `palette.primary.dark` on hover, `palette.primary.light` for
11
+ * the off-state focus outline.
11
12
  * - `success` — green; uses `palette.success.main` for the on-state background,
12
- * `palette.success.light` for the off-state focus outline.
13
+ * `palette.success.dark` on hover, `palette.success.light` for the off-state
14
+ * focus outline.
13
15
  * - `custom` — no built-in color; supply exact values via the `colors` prop.
16
+ * On hover, a `rgba(0,0,0,0.15)` overlay darkens the track; the knob is unaffected.
14
17
  *
15
- * The off state always uses a neutral grey background regardless of variant.
16
- * Disabled state always uses `greyFocused40` (semi-transparent grey, same for all variants).
18
+ * The off state always uses a neutral grey background (`greyFocused`) regardless
19
+ * of variant. Disabled state always uses `greySelectedMenuItem` (same for all variants).
17
20
  *
18
21
  * @example
19
22
  * ```tsx
@@ -54,7 +57,7 @@ export interface SwitchProps {
54
57
  label: string;
55
58
  /**
56
59
  * Whether the switch is disabled
57
- * Disabled switches cannot be toggled and appear visually muted
60
+ * Disabled switches cannot be toggled; background becomes `greySelectedMenuItem`
58
61
  * @default false
59
62
  */
60
63
  isDisabled?: boolean;