@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.
- package/dist/components/FormHelperText/FormHelperTextBase.d.ts +1 -0
- package/dist/components/Pagination/Pagination.d.ts +1 -1
- package/dist/components/Pagination/PaginationButtons.d.ts +1 -1
- package/dist/components/Pagination/styles.d.ts +3 -1
- package/dist/components/Pagination/types.d.ts +8 -0
- package/dist/components/Radio/Radio.d.ts +0 -1
- package/dist/components/Radio/RadioBase.d.ts +0 -2
- package/dist/components/Radio/types.d.ts +0 -3
- package/dist/components/Switch/Switch.d.ts +4 -2
- package/dist/components/Switch/SwitchBase.d.ts +2 -0
- package/dist/components/Switch/types.d.ts +8 -5
- package/dist/index.js +274 -153
- package/dist/index.js.map +1 -1
- package/dist/types/emotion.d.ts +1 -0
- package/package.json +3 -3
|
@@ -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) =>
|
|
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:
|
|
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
|
|
@@ -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.
|
|
15
|
-
* always uses `
|
|
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.
|
|
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
|
|
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
|
|
16
|
-
* Disabled state always uses `
|
|
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
|
|
60
|
+
* Disabled switches cannot be toggled; background becomes `greySelectedMenuItem`
|
|
58
61
|
* @default false
|
|
59
62
|
*/
|
|
60
63
|
isDisabled?: boolean;
|