pne-ui 4.8.0-rc.7 → 4.8.0-rc.9
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/README.md +7 -2
- package/cjs/component/PneSwitch.js +1 -1
- package/cjs/component/search-ui/filters/component/criterion/ErrorCodeCriterion.js +37 -20
- package/cjs/component/search-ui/filters/component/criterion/ErrorCodeCriterion.js.map +1 -1
- package/cjs/component/search-ui/filters/styled.js +6 -4
- package/cjs/component/search-ui/filters/styled.js.map +1 -1
- package/cjs/component/table/tableControlColors.d.ts +1 -1
- package/cjs/component/table/tableControlColors.js +1 -1
- package/cjs/createTheme.js +1 -1
- package/esm/component/PneSwitch.js +1 -1
- package/esm/component/search-ui/filters/component/criterion/ErrorCodeCriterion.js +37 -20
- package/esm/component/search-ui/filters/component/criterion/ErrorCodeCriterion.js.map +1 -1
- package/esm/component/search-ui/filters/styled.js +7 -5
- package/esm/component/search-ui/filters/styled.js.map +1 -1
- package/esm/component/table/tableControlColors.d.ts +1 -1
- package/esm/component/table/tableControlColors.js +1 -1
- package/esm/createTheme.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1718,7 +1718,10 @@ export const TransactionsPage = () => (
|
|
|
1718
1718
|
самого значения, поэтому ластики всех строк образуют одну вертикаль и там, где крестика нет. При
|
|
1719
1719
|
наведении и фокусе они показывают подсказку с тем же текстом, что и их доступное имя:
|
|
1720
1720
|
`Clear filter: <критерий>`, `Remove filter: <критерий>`. На сенсорных экранах (`pointer: coarse`) зона
|
|
1721
|
-
нажатия значка шире на 8px наружу, но не заходит на соседний значок; вид не меняется.
|
|
1721
|
+
нажатия значка шире на 8px наружу, но не заходит на соседний значок; вид не меняется. Цвет значков — из
|
|
1722
|
+
группы `pne.control`: в покое `foreground` (светлая тема `#8A8A8A`, 3,5:1 на белом), при наведении и
|
|
1723
|
+
фокусе `foregroundHover`, как у стрелок пагинации; значки намеренно не темнее порога 3:1 с запасом,
|
|
1724
|
+
чтобы не шуметь в длинных наборах.
|
|
1722
1725
|
- Кнопки `[Saved filters] [Add filter] [Search]` (или `[Clear all]` при `hideTemplatesSelect`, `Refresh`
|
|
1723
1726
|
в автоматическом режиме) стоят под критериями ровно по колонке значений; шеврон свёртки — в той же
|
|
1724
1727
|
строке слева. Строка действий остаётся на экране и при свёрнутых критериях.
|
|
@@ -1736,7 +1739,9 @@ export const TransactionsPage = () => (
|
|
|
1736
1739
|
- Шеврон у выпадающих элементов один: `ExpandMore` 16px в цвете текста элемента — на `Saved filters`,
|
|
1737
1740
|
`Add filter`, чипах-дропдаунах критериев (`in …`, тип диапазона дат, тип даты заказа, валюта проекта,
|
|
1738
1741
|
тип даты группировки, тип записи, страна) и в поле кода ошибки (`chipChevronSx` в
|
|
1739
|
-
`component/select/style.ts`).
|
|
1742
|
+
`component/select/style.ts`). Поле кода ошибки (автодополнение) — такая же пилюля 24px, как поле
|
|
1743
|
+
`Exact`, с крестиком очистки и шевроном внутри; его список открывается от левого края поля и не уже
|
|
1744
|
+
320px, чтобы вмещать описания.
|
|
1740
1745
|
- Шеврон — пилюля 28px с зоной нажатия 40px по высоте; в свёрнутом виде в ней же стоит число критериев,
|
|
1741
1746
|
так что шеврон и счётчик — одна цель. Она называется `Filters` и сообщает состояние через
|
|
1742
1747
|
`aria-expanded`; подсказка говорит, что сделает нажатие: `Hide filters` или `Show filters`. Пока
|
|
@@ -359,7 +359,7 @@ const createSwitchSx = (config) => theme => {
|
|
|
359
359
|
// Off, the track is a secondary control: the neutral control grey of the palette.
|
|
360
360
|
const trackColor = isDarkMode
|
|
361
361
|
? (theme.palette.pne?.border.control ?? theme.palette.text.secondary)
|
|
362
|
-
: (theme.palette.pne?.control.foreground ?? '#
|
|
362
|
+
: (theme.palette.pne?.control.foreground ?? '#8A8A8A');
|
|
363
363
|
const trackHoverColor = isDarkMode
|
|
364
364
|
? theme.palette.text.secondary
|
|
365
365
|
: (theme.palette.pne?.control.foregroundHover ?? '#5C5C5C');
|
|
@@ -34,6 +34,9 @@ const ErrorCodeCriterion = () => {
|
|
|
34
34
|
...(0, AutoTestAttribute_1.createAutoTestAttributes)(CRITERION_ERROR_CODE_CLEAR_AUTOTEST_ID),
|
|
35
35
|
},
|
|
36
36
|
paper: (0, AutoTestScope_1.createSearchUIOwnedAutoTestAttributes)(CRITERION_ERROR_CODE_PANEL_AUTOTEST_ID, autoTestOwner),
|
|
37
|
+
// The list keeps room for the descriptions and opens from the field's left edge, as the
|
|
38
|
+
// other menus of the panel do; the field itself is narrow.
|
|
39
|
+
popper: { sx: { minWidth: '320px' }, placement: 'bottom-start' },
|
|
37
40
|
listbox: {
|
|
38
41
|
...(0, AutoTestScope_1.createSearchUIOwnedAutoTestAttributes)(CRITERION_ERROR_CODE_OPTIONS_AUTOTEST_ID, autoTestOwner),
|
|
39
42
|
'aria-label': inputAriaLabel,
|
|
@@ -47,28 +50,42 @@ const ErrorCodeCriterion = () => {
|
|
|
47
50
|
react_1.default.createElement(material_1.Typography, { component: "span", variant: "body2" }, option.displayName),
|
|
48
51
|
option.description && (react_1.default.createElement(material_1.Typography, { component: "span", variant: "caption", color: "text.secondary" }, option.description))))), placeholder: t('search'),
|
|
49
52
|
// The panel's one chevron: 16px in the field's text colour, as on the buttons and the chips.
|
|
50
|
-
popupIcon: react_1.default.createElement(ExpandMore_1.default, { sx: { fontSize: '16px' } }), sx:
|
|
51
|
-
width: '300px',
|
|
52
|
-
'& .MuiAutocomplete-popupIndicator': {
|
|
53
|
-
color: 'inherit',
|
|
54
|
-
},
|
|
55
|
-
'& .MuiSvgIcon-root.MuiSelect-icon': {
|
|
56
|
-
display: 'none',
|
|
57
|
-
},
|
|
58
|
-
'& .MuiSelect-select': {
|
|
59
|
-
height: '100%',
|
|
60
|
-
paddingY: 0,
|
|
61
|
-
},
|
|
62
|
-
'& .MuiOutlinedInput-notchedOutline': {
|
|
63
|
-
borderColor: 'transparent !important',
|
|
64
|
-
},
|
|
65
|
-
'& .MuiSelect-select.MuiInputBase-input.MuiOutlinedInput-input': {
|
|
66
|
-
height: '100%',
|
|
67
|
-
fontSize: '0',
|
|
68
|
-
},
|
|
69
|
-
} });
|
|
53
|
+
popupIcon: react_1.default.createElement(ExpandMore_1.default, { sx: { fontSize: '16px' } }), variant: 'filled', sx: fieldSx });
|
|
70
54
|
};
|
|
71
55
|
exports.ErrorCodeCriterion = ErrorCodeCriterion;
|
|
56
|
+
// The field looks like the other dropdowns of the panel: the 24px pill of the Exact search input, the
|
|
57
|
+
// chevron and the clear cross inside it on the right. MUI's filled autocomplete sizes are overridden
|
|
58
|
+
// with a doubled root selector, as its own padding rules carry the popup and clear icon classes.
|
|
59
|
+
const fieldSx = {
|
|
60
|
+
width: '220px',
|
|
61
|
+
'&& .MuiInputBase-root.MuiFilledInput-root.MuiAutocomplete-inputRoot': {
|
|
62
|
+
height: '24px',
|
|
63
|
+
borderRadius: '16px',
|
|
64
|
+
padding: '0 48px 0 12px',
|
|
65
|
+
},
|
|
66
|
+
'& .MuiFilledInput-root::before, & .MuiFilledInput-root::after': {
|
|
67
|
+
display: 'none',
|
|
68
|
+
},
|
|
69
|
+
'&&& .MuiAutocomplete-input.MuiFilledInput-input': {
|
|
70
|
+
padding: '3px 0',
|
|
71
|
+
height: '18px',
|
|
72
|
+
fontSize: '13px',
|
|
73
|
+
lineHeight: '18px',
|
|
74
|
+
},
|
|
75
|
+
'& .MuiAutocomplete-endAdornment': {
|
|
76
|
+
right: '6px',
|
|
77
|
+
top: '50%',
|
|
78
|
+
transform: 'translateY(-50%)',
|
|
79
|
+
},
|
|
80
|
+
'& .MuiAutocomplete-popupIndicator, & .MuiAutocomplete-clearIndicator': {
|
|
81
|
+
padding: '2px',
|
|
82
|
+
margin: 0,
|
|
83
|
+
color: 'inherit',
|
|
84
|
+
},
|
|
85
|
+
'& .MuiAutocomplete-clearIndicator .MuiSvgIcon-root': {
|
|
86
|
+
fontSize: '16px',
|
|
87
|
+
},
|
|
88
|
+
};
|
|
72
89
|
exports.default = exports.ErrorCodeCriterion;
|
|
73
90
|
const optionContentSx = {
|
|
74
91
|
display: 'flex',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorCodeCriterion.js","sourceRoot":"","sources":["../../../../../../src/component/search-ui/filters/component/criterion/ErrorCodeCriterion.tsx"],"names":[],"mappings":";;;;AAAA,wFAA2D;AAC3D,uDAAyC;AACzC,
|
|
1
|
+
{"version":3,"file":"ErrorCodeCriterion.js","sourceRoot":"","sources":["../../../../../../src/component/search-ui/filters/component/criterion/ErrorCodeCriterion.tsx"],"names":[],"mappings":";;;;AAAA,wFAA2D;AAC3D,uDAAyC;AACzC,4CAAwD;AAExD,6CAA2D;AAC3D,gEAAmE;AACnE,sCAAyE;AACzE,iDAA8C;AAC9C,qEAAwE;AACxE,uDAG4B;AAE5B,MAAM,gCAAgC,GAAG,sBAAsB,CAAA;AAC/D,MAAM,sCAAsC,GAAG,4BAA4B,CAAA;AAC3E,MAAM,sCAAsC,GAAG,4BAA4B,CAAA;AAC3E,MAAM,wCAAwC,GAAG,8BAA8B,CAAA;AAC/E,MAAM,uCAAuC,GAAG,6BAA6B,CAAA;AAEtE,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACnC,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,8BAAc,GAAE,CAAA;IAC9B,MAAM,aAAa,GAAG,IAAA,wCAAwB,GAAE,CAAA;IAChD,MAAM,SAAS,GAAG,IAAA,+BAAuB,EAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;IAC3D,MAAM,YAAY,GAAG,IAAA,+BAAuB,EAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAA;IAE1E,MAAM,EAAE,gBAAgB,EAAE,GAAG,IAAA,kBAAU,EAAC,0CAAuB,CAAC,CAAA;IAChE,MAAM,cAAc,GAAG,CAAC,CAAC,oCAAoC,EAAE;QAC3D,YAAY,EAAE,YAAY;KAC7B,CAAC,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ffset: '1px',
|
|
26
26
|
};
|
|
27
|
-
// The control grey at rest,
|
|
28
|
-
//
|
|
29
|
-
//
|
|
27
|
+
// The control grey at rest (3.5:1 on white, a margin over the 3:1 floor for the thin strokes; 3:1 still
|
|
28
|
+
// holds on the active control background of the table)
|
|
29
|
+
// and the darker control grey under the pointer or the keyboard focus, the same pair as on the
|
|
30
|
+
// pagination arrows; the icons take the colour through `stroke: currentColor`, so dark mode follows
|
|
31
|
+
// the palette. Without the PNE theme (plain MUI theme in tests) the light colours stand in.
|
|
30
32
|
exports.SearchUIFiltersCriterionHeaderButton = (0, styles_1.styled)('button')(({ theme }) => ({
|
|
31
33
|
position: 'relative',
|
|
32
34
|
display: 'flex',
|
|
@@ -46,7 +48,7 @@ exports.SearchUIFiltersCriterionHeaderButton = (0, styles_1.styled)('button')(({
|
|
|
46
48
|
stroke: 'currentColor',
|
|
47
49
|
transition: 'color .15s ease',
|
|
48
50
|
'&:hover, &:focus-visible': {
|
|
49
|
-
color: theme.palette.
|
|
51
|
+
color: theme.palette.pne?.control.foregroundHover ?? tableControlColors_1.TABLE_CONTROL_HOVER_TEXT_COLOR,
|
|
50
52
|
},
|
|
51
53
|
'&:focus-visible': (0, exports.createSearchUIFocusRing)(theme),
|
|
52
54
|
// 24px is small for a finger: on touch screens the target grows by 8px outwards, never into the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styled.js","sourceRoot":"","sources":["../../../../src/component/search-ui/filters/styled.ts"],"names":[],"mappings":";;;AAAA,iDAA4D;AAE5D,
|
|
1
|
+
{"version":3,"file":"styled.js","sourceRoot":"","sources":["../../../../src/component/search-ui/filters/styled.ts"],"names":[],"mappings":";;;AAAA,iDAA4D;AAE5D,uEAAwG;AAExG;;;GAGG;AACU,QAAA,+BAA+B,GAAG,GAAG,CAAC;AAEnD;;;;;GAKG;AACI,MAAM,uBAAuB,GAAG,CAAC,KAAY,EAAE,EAAE,CAAC,CAAC;IACtD,OAAO,EAAE,aAAa,KAA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;YACpB,GAAG,EAAE,MAAM;YACX,KAAK,EAAE,CAAC;YACR,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,CAAC;SACV;QACD,yBAAyB,EAAE;YACvB,IAAI,EAAE,MAAM;SACf;QACD,wBAAwB,EAAE;YACtB,KAAK,EAAE,MAAM;SAChB;KACJ;CACJ,CAAC,CAAC,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Light stand-ins for `theme.palette.pne.control` where the PNE palette is absent (a plain MUI
|
|
3
3
|
* theme, as in tests). The palette is the source of truth.
|
|
4
4
|
*/
|
|
5
|
-
export declare const TABLE_CONTROL_TEXT_COLOR = "#
|
|
5
|
+
export declare const TABLE_CONTROL_TEXT_COLOR = "#8A8A8A";
|
|
6
6
|
export declare const TABLE_CONTROL_HOVER_TEXT_COLOR = "#5C5C5C";
|
|
7
7
|
export declare const TABLE_CONTROL_DISABLED_TEXT_COLOR = "#C4C4C4";
|
|
8
8
|
export declare const TABLE_CONTROL_ACTIVE_BACKGROUND_COLOR = "#F0F0F0";
|
|
@@ -5,7 +5,7 @@ exports.TABLE_CONTROL_ACTIVE_BACKGROUND_COLOR = exports.TABLE_CONTROL_DISABLED_T
|
|
|
5
5
|
* Light stand-ins for `theme.palette.pne.control` where the PNE palette is absent (a plain MUI
|
|
6
6
|
* theme, as in tests). The palette is the source of truth.
|
|
7
7
|
*/
|
|
8
|
-
exports.TABLE_CONTROL_TEXT_COLOR = '#
|
|
8
|
+
exports.TABLE_CONTROL_TEXT_COLOR = '#8A8A8A';
|
|
9
9
|
exports.TABLE_CONTROL_HOVER_TEXT_COLOR = '#5C5C5C';
|
|
10
10
|
exports.TABLE_CONTROL_DISABLED_TEXT_COLOR = '#C4C4C4';
|
|
11
11
|
exports.TABLE_CONTROL_ACTIVE_BACKGROUND_COLOR = '#F0F0F0';
|
package/cjs/createTheme.js
CHANGED
|
@@ -31,7 +31,7 @@ const PNE_LIGHT_COLORS = Object.freeze({
|
|
|
31
31
|
borderControl: '#B0B7C3',
|
|
32
32
|
textDefault: '#38434D',
|
|
33
33
|
textMuted: '#808080',
|
|
34
|
-
controlForeground: '#
|
|
34
|
+
controlForeground: '#8A8A8A',
|
|
35
35
|
controlForegroundHover: '#5C5C5C',
|
|
36
36
|
controlForegroundDisabled: '#C4C4C4',
|
|
37
37
|
controlActiveBackground: '#F0F0F0',
|
|
@@ -356,7 +356,7 @@ const createSwitchSx = (config) => theme => {
|
|
|
356
356
|
// Off, the track is a secondary control: the neutral control grey of the palette.
|
|
357
357
|
const trackColor = isDarkMode
|
|
358
358
|
? (theme.palette.pne?.border.control ?? theme.palette.text.secondary)
|
|
359
|
-
: (theme.palette.pne?.control.foreground ?? '#
|
|
359
|
+
: (theme.palette.pne?.control.foreground ?? '#8A8A8A');
|
|
360
360
|
const trackHoverColor = isDarkMode
|
|
361
361
|
? theme.palette.text.secondary
|
|
362
362
|
: (theme.palette.pne?.control.foregroundHover ?? '#5C5C5C');
|
|
@@ -30,6 +30,9 @@ export const ErrorCodeCriterion = () => {
|
|
|
30
30
|
...createAutoTestAttributes(CRITERION_ERROR_CODE_CLEAR_AUTOTEST_ID),
|
|
31
31
|
},
|
|
32
32
|
paper: createSearchUIOwnedAutoTestAttributes(CRITERION_ERROR_CODE_PANEL_AUTOTEST_ID, autoTestOwner),
|
|
33
|
+
// The list keeps room for the descriptions and opens from the field's left edge, as the
|
|
34
|
+
// other menus of the panel do; the field itself is narrow.
|
|
35
|
+
popper: { sx: { minWidth: '320px' }, placement: 'bottom-start' },
|
|
33
36
|
listbox: {
|
|
34
37
|
...createSearchUIOwnedAutoTestAttributes(CRITERION_ERROR_CODE_OPTIONS_AUTOTEST_ID, autoTestOwner),
|
|
35
38
|
'aria-label': inputAriaLabel,
|
|
@@ -43,26 +46,40 @@ export const ErrorCodeCriterion = () => {
|
|
|
43
46
|
React.createElement(Typography, { component: "span", variant: "body2" }, option.displayName),
|
|
44
47
|
option.description && (React.createElement(Typography, { component: "span", variant: "caption", color: "text.secondary" }, option.description))))), placeholder: t('search'),
|
|
45
48
|
// The panel's one chevron: 16px in the field's text colour, as on the buttons and the chips.
|
|
46
|
-
popupIcon: React.createElement(ExpandMoreIcon, { sx: { fontSize: '16px' } }), sx:
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
49
|
+
popupIcon: React.createElement(ExpandMoreIcon, { sx: { fontSize: '16px' } }), variant: 'filled', sx: fieldSx });
|
|
50
|
+
};
|
|
51
|
+
// The field looks like the other dropdowns of the panel: the 24px pill of the Exact search input, the
|
|
52
|
+
// chevron and the clear cross inside it on the right. MUI's filled autocomplete sizes are overridden
|
|
53
|
+
// with a doubled root selector, as its own padding rules carry the popup and clear icon classes.
|
|
54
|
+
const fieldSx = {
|
|
55
|
+
width: '220px',
|
|
56
|
+
'&& .MuiInputBase-root.MuiFilledInput-root.MuiAutocomplete-inputRoot': {
|
|
57
|
+
height: '24px',
|
|
58
|
+
borderRadius: '16px',
|
|
59
|
+
padding: '0 48px 0 12px',
|
|
60
|
+
},
|
|
61
|
+
'& .MuiFilledInput-root::before, & .MuiFilledInput-root::after': {
|
|
62
|
+
display: 'none',
|
|
63
|
+
},
|
|
64
|
+
'&&& .MuiAutocomplete-input.MuiFilledInput-input': {
|
|
65
|
+
padding: '3px 0',
|
|
66
|
+
height: '18px',
|
|
67
|
+
fontSize: '13px',
|
|
68
|
+
lineHeight: '18px',
|
|
69
|
+
},
|
|
70
|
+
'& .MuiAutocomplete-endAdornment': {
|
|
71
|
+
right: '6px',
|
|
72
|
+
top: '50%',
|
|
73
|
+
transform: 'translateY(-50%)',
|
|
74
|
+
},
|
|
75
|
+
'& .MuiAutocomplete-popupIndicator, & .MuiAutocomplete-clearIndicator': {
|
|
76
|
+
padding: '2px',
|
|
77
|
+
margin: 0,
|
|
78
|
+
color: 'inherit',
|
|
79
|
+
},
|
|
80
|
+
'& .MuiAutocomplete-clearIndicator .MuiSvgIcon-root': {
|
|
81
|
+
fontSize: '16px',
|
|
82
|
+
},
|
|
66
83
|
};
|
|
67
84
|
export default ErrorCodeCriterion;
|
|
68
85
|
const optionContentSx = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorCodeCriterion.js","sourceRoot":"","sources":["../../../../../../src/component/search-ui/filters/component/criterion/ErrorCodeCriterion.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,gCAAgC,CAAA;AAC3D,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"ErrorCodeCriterion.js","sourceRoot":"","sources":["../../../../../../src/component/search-ui/filters/component/criterion/ErrorCodeCriterion.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,gCAAgC,CAAA;AAC3D,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,GAAG,EAAW,UAAU,EAAE,MAAM,eAAe,CAAA;AAExD,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAA;AAC3D,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AACnE,OAAO,EAAsB,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAA;AACxE,OAAO,EACH,qCAAqC,EACrC,wBAAwB,GAC3B,MAAM,qBAAqB,CAAA;AAE5B,MAAM,gCAAgC,GAAG,sBAAsB,CAAA;AAC/D,MAAM,sCAAsC,GAAG,4BAA4B,CAAA;AAC3E,MAAM,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U,EAAE,MAAM;KACrB;IACD,iCAAiC,EAAE;QAC/B,KAAK,EAAE,KAAK;QACZ,GAAG,EAAE,KAAK;QACV,SAAS,EAAE,kBAAkB;KAChC;IACD,sEAAsE,EAAE;QACpE,OAAO,EAAE,KAAK;QACd,MAAM,EAAE,CAAC;QACT,KAAK,EAAE,SAAS;KACnB;IACD,oDAAoD,EAAE;QAClD,QAAQ,EAAE,MAAM;KACnB;CACJ,CAAA;AAED,eAAe,kBAAkB,CAAA;AAEjC,MAAM,eAAe,GAAG;IACpB,OAAO,EAAE,MAAM;IACf,aAAa,EAAE,QAAQ;IACvB,UAAU,EAAE,YAAY;IACxB,EAAE,EAAE,KAAK;CACZ,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { styled as themedStyled } from '@mui/material/styles';
|
|
2
|
-
import { TABLE_CONTROL_TEXT_COLOR } from '../../table/tableControlColors';
|
|
2
|
+
import { TABLE_CONTROL_HOVER_TEXT_COLOR, TABLE_CONTROL_TEXT_COLOR } from '../../table/tableControlColors';
|
|
3
3
|
/**
|
|
4
4
|
* Hover delay of the panel's tooltips, as on the table column settings action. The tooltips are
|
|
5
5
|
* not interactive: one may lie over the icons of the next row and must not catch their clicks.
|
|
@@ -20,9 +20,11 @@ export const searchUIFocusRingSx = {
|
|
|
20
20
|
outline: (theme) => `2px solid ${theme.palette.primary.main}`,
|
|
21
21
|
outlineOffset: '1px',
|
|
22
22
|
};
|
|
23
|
-
// The control grey at rest,
|
|
24
|
-
//
|
|
25
|
-
//
|
|
23
|
+
// The control grey at rest (3.5:1 on white, a margin over the 3:1 floor for the thin strokes; 3:1 still
|
|
24
|
+
// holds on the active control background of the table)
|
|
25
|
+
// and the darker control grey under the pointer or the keyboard focus, the same pair as on the
|
|
26
|
+
// pagination arrows; the icons take the colour through `stroke: currentColor`, so dark mode follows
|
|
27
|
+
// the palette. Without the PNE theme (plain MUI theme in tests) the light colours stand in.
|
|
26
28
|
export const SearchUIFiltersCriterionHeaderButton = themedStyled('button')(({ theme }) => ({
|
|
27
29
|
position: 'relative',
|
|
28
30
|
display: 'flex',
|
|
@@ -42,7 +44,7 @@ export const SearchUIFiltersCriterionHeaderButton = themedStyled('button')(({ th
|
|
|
42
44
|
stroke: 'currentColor',
|
|
43
45
|
transition: 'color .15s ease',
|
|
44
46
|
'&:hover, &:focus-visible': {
|
|
45
|
-
color: theme.palette.
|
|
47
|
+
color: theme.palette.pne?.control.foregroundHover ?? TABLE_CONTROL_HOVER_TEXT_COLOR,
|
|
46
48
|
},
|
|
47
49
|
'&:focus-visible': createSearchUIFocusRing(theme),
|
|
48
50
|
// 24px is small for a finger: on touch screens the target grows by 8px outwards, never into the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styled.js","sourceRoot":"","sources":["../../../../src/component/search-ui/filters/styled.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,IAAI,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAE5D,OAAO,EAAC,wBAAwB,EAAC,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"styled.js","sourceRoot":"","sources":["../../../../src/component/search-ui/filters/styled.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,IAAI,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAE5D,OAAO,EAAC,8BAA8B,EAAE,wBAAwB,EAAC,MAAM,gCAAgC,CAAC;AAExG;;;GAGG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,GAAG,CAAC;AAEnD;;;;;GAKG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,KAAY,EAAE,EAAE,CAAC,CAAC;IACtD,OAAO,EAAE,aAAa,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE;IAClD,aAAa,EAAE,KAAK;CACvB,CAAC,CAAC;AAEH,sCAAsC;AACtC,MAAM,CAAC,MAAM,mBAAmB,GAAG;IAC/B,OAAO,EAAE,CAAC,KAAY,EAAE,E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;KACJ;CACJ,CAAC,CAAC,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Light stand-ins for `theme.palette.pne.control` where the PNE palette is absent (a plain MUI
|
|
3
3
|
* theme, as in tests). The palette is the source of truth.
|
|
4
4
|
*/
|
|
5
|
-
export declare const TABLE_CONTROL_TEXT_COLOR = "#
|
|
5
|
+
export declare const TABLE_CONTROL_TEXT_COLOR = "#8A8A8A";
|
|
6
6
|
export declare const TABLE_CONTROL_HOVER_TEXT_COLOR = "#5C5C5C";
|
|
7
7
|
export declare const TABLE_CONTROL_DISABLED_TEXT_COLOR = "#C4C4C4";
|
|
8
8
|
export declare const TABLE_CONTROL_ACTIVE_BACKGROUND_COLOR = "#F0F0F0";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Light stand-ins for `theme.palette.pne.control` where the PNE palette is absent (a plain MUI
|
|
3
3
|
* theme, as in tests). The palette is the source of truth.
|
|
4
4
|
*/
|
|
5
|
-
export const TABLE_CONTROL_TEXT_COLOR = '#
|
|
5
|
+
export const TABLE_CONTROL_TEXT_COLOR = '#8A8A8A';
|
|
6
6
|
export const TABLE_CONTROL_HOVER_TEXT_COLOR = '#5C5C5C';
|
|
7
7
|
export const TABLE_CONTROL_DISABLED_TEXT_COLOR = '#C4C4C4';
|
|
8
8
|
export const TABLE_CONTROL_ACTIVE_BACKGROUND_COLOR = '#F0F0F0';
|
package/esm/createTheme.js
CHANGED
|
@@ -28,7 +28,7 @@ const PNE_LIGHT_COLORS = Object.freeze({
|
|
|
28
28
|
borderControl: '#B0B7C3',
|
|
29
29
|
textDefault: '#38434D',
|
|
30
30
|
textMuted: '#808080',
|
|
31
|
-
controlForeground: '#
|
|
31
|
+
controlForeground: '#8A8A8A',
|
|
32
32
|
controlForegroundHover: '#5C5C5C',
|
|
33
33
|
controlForegroundDisabled: '#C4C4C4',
|
|
34
34
|
controlActiveBackground: '#F0F0F0',
|