io-sanita-theme 2.11.1 → 2.11.2
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.11.2](https://github.com/RedTurtle/io-sanita-theme/compare/2.11.1...2.11.2) (2025-04-08)
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* fixed title tag for a11y in Attachments component not displayed as section ([#79](https://github.com/RedTurtle/io-sanita-theme/issues/79)) ([96bed38](https://github.com/RedTurtle/io-sanita-theme/commit/96bed38f4441dde74e3e059d7c3a05ad138a7f24))
|
|
8
|
+
* table block sorting ([#78](https://github.com/RedTurtle/io-sanita-theme/issues/78)) ([2e1dfca](https://github.com/RedTurtle/io-sanita-theme/commit/2e1dfcad4faaafddc4991b96deb58078b56fd9be))
|
|
9
|
+
|
|
3
10
|
## [2.11.1](https://github.com/RedTurtle/io-sanita-theme/compare/2.11.0...2.11.1) (2025-03-31)
|
|
4
11
|
|
|
5
12
|
### Bug Fixes
|
package/package.json
CHANGED
|
@@ -98,7 +98,7 @@ const Attachments = ({
|
|
|
98
98
|
</RichTextSection>
|
|
99
99
|
) : (
|
|
100
100
|
<div className="mb-5 mt-3">
|
|
101
|
-
{title && <
|
|
101
|
+
{title && <h3 className="h5">{title}</h3>}
|
|
102
102
|
{attachments.length > 0 && attachments_view}
|
|
103
103
|
{searchResults?.[key]?.loading && !searchResults?.[key]?.loaded && <></>}
|
|
104
104
|
</div>
|
|
@@ -88,16 +88,21 @@ const View = ({ data }) => {
|
|
|
88
88
|
|
|
89
89
|
const handleSort = (index) => {
|
|
90
90
|
if (!sortable) return;
|
|
91
|
-
setState(
|
|
91
|
+
setState({
|
|
92
92
|
column: index,
|
|
93
93
|
direction:
|
|
94
|
-
|
|
94
|
+
state.column !== index
|
|
95
|
+
? 'ascending'
|
|
96
|
+
: state.direction === 'ascending'
|
|
97
|
+
? 'descending'
|
|
98
|
+
: 'ascending',
|
|
99
|
+
sortLabel:
|
|
100
|
+
state.column !== index
|
|
95
101
|
? intl.formatMessage(messages.ascendingTableSort)
|
|
96
|
-
:
|
|
97
|
-
intl.formatMessage(messages.ascendingTableSort)
|
|
102
|
+
: state.direction === 'ascending'
|
|
98
103
|
? intl.formatMessage(messages.descendingTableSort)
|
|
99
104
|
: intl.formatMessage(messages.ascendingTableSort),
|
|
100
|
-
})
|
|
105
|
+
});
|
|
101
106
|
};
|
|
102
107
|
|
|
103
108
|
return (
|
|
@@ -123,7 +128,7 @@ const View = ({ data }) => {
|
|
|
123
128
|
verticalAlign="middle"
|
|
124
129
|
sorted={state.column === index ? state.direction : null}
|
|
125
130
|
aria-sort={
|
|
126
|
-
state.column === index ? state.
|
|
131
|
+
state.column === index ? state.sortLabel : 'none'
|
|
127
132
|
}
|
|
128
133
|
role="columnheader"
|
|
129
134
|
onClick={() => handleSort(index)}
|