@digigov/react-core 2.2.1 → 2.2.3
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/Accordion/index.web.d.ts +10 -0
- package/AccordionSectionSummaryHeading/index.d.ts +4 -0
- package/CHANGELOG.md +9 -1
- package/TableDataCell/index.d.ts +12 -0
- package/index.js +1 -1
- package/package.json +3 -3
- package/src/Accordion/index.web.tsx +1 -1
- package/src/AccordionSectionSummaryHeading/index.tsx +1 -1
- package/src/TableDataCell/index.tsx +2 -2
package/Accordion/index.web.d.ts
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BaseProps } from '../Base/index.js';
|
|
3
3
|
export interface AccordionProps extends BaseProps<'div'> {
|
|
4
|
+
/**
|
|
5
|
+
* horizontalBorders is optional.
|
|
6
|
+
* If 'none', Accordion will have no borders.
|
|
7
|
+
* If 'top', Accordion will have a border on top.
|
|
8
|
+
* If 'bottom', Accordion will have a border on bottom.
|
|
9
|
+
* @value none
|
|
10
|
+
* @value top
|
|
11
|
+
* @value bottom
|
|
12
|
+
* @default top
|
|
13
|
+
*/
|
|
4
14
|
horizontalBorders?: 'none' | 'top' | 'bottom';
|
|
5
15
|
/**
|
|
6
16
|
* summaryColor is optional.
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BaseProps } from '../Base/index.js';
|
|
3
3
|
export interface AccordionSectionSummaryHeadingProps extends BaseProps<'h2'> {
|
|
4
|
+
/**
|
|
5
|
+
* The type of the icon to be displayed on the right side of the heading.
|
|
6
|
+
* @default 'default'
|
|
7
|
+
*/
|
|
4
8
|
variant?: 'default' | 'arrows';
|
|
5
9
|
}
|
|
6
10
|
/**
|
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
# Change Log - @digigov/react-core
|
|
2
2
|
|
|
3
|
-
<!-- This log was last generated on
|
|
3
|
+
<!-- This log was last generated on Thu, 28 May 2026 09:16:18 GMT and should not be manually modified. -->
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 2.2.3
|
|
8
|
+
|
|
9
|
+
Thu, 28 May 2026 09:16:18 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- fix(react-core): fix comments in components props (kbrani@admin.grnet.gr)
|
|
14
|
+
|
|
7
15
|
## 2.2.1
|
|
8
16
|
|
|
9
17
|
Fri, 15 May 2026 10:38:56 GMT
|
package/TableDataCell/index.d.ts
CHANGED
|
@@ -31,7 +31,19 @@ export interface TableDataCellProps extends BaseProps<'td'> {
|
|
|
31
31
|
* @default undefined
|
|
32
32
|
*/
|
|
33
33
|
highlight?: 'warning' | 'error';
|
|
34
|
+
/**
|
|
35
|
+
* highlightAssistiveText is optional.
|
|
36
|
+
* Use this prop to add assistive text for screen readers when the highlight prop is used.
|
|
37
|
+
* This text will be visually hidden.
|
|
38
|
+
* @default undefined
|
|
39
|
+
*/
|
|
34
40
|
highlightAssistiveText?: string;
|
|
41
|
+
/**
|
|
42
|
+
* maxWidthWithOverflow is optional.
|
|
43
|
+
* Use this prop to set max-width of the cell and allow overflow when the content is too long.
|
|
44
|
+
* This is used in combination with the TableFloatingScroll component to allow horizontal scrolling of the table when there are cells with long content.
|
|
45
|
+
* @default false
|
|
46
|
+
*/
|
|
35
47
|
maxWidthWithOverflow?: boolean;
|
|
36
48
|
}
|
|
37
49
|
/**
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digigov/react-core",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.3",
|
|
4
4
|
"description": "@digigov react core components",
|
|
5
5
|
"author": "GRNET Developers <devs@lists.grnet.gr>",
|
|
6
6
|
"license": "BSD-2-Clause",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"react-native-svg": "^15.2.0",
|
|
18
18
|
"expo-router": "^3.5.14",
|
|
19
19
|
"nativewind": "^4.1.1",
|
|
20
|
-
"@digigov/css": "2.2.
|
|
21
|
-
"@digigov/react-icons": "2.2.
|
|
20
|
+
"@digigov/css": "2.2.3",
|
|
21
|
+
"@digigov/react-icons": "2.2.3"
|
|
22
22
|
},
|
|
23
23
|
"peerDependenciesMeta": {
|
|
24
24
|
"react-native": {
|
|
@@ -3,7 +3,7 @@ import clsx from 'clsx';
|
|
|
3
3
|
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
4
4
|
|
|
5
5
|
export interface AccordionProps extends BaseProps<'div'> {
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
7
|
* horizontalBorders is optional.
|
|
8
8
|
* If 'none', Accordion will have no borders.
|
|
9
9
|
* If 'top', Accordion will have a border on top.
|
|
@@ -3,7 +3,7 @@ import clsx from 'clsx';
|
|
|
3
3
|
import Base, { BaseProps } from '@digigov/react-core/Base';
|
|
4
4
|
|
|
5
5
|
export interface AccordionSectionSummaryHeadingProps extends BaseProps<'h2'> {
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
7
|
* The type of the icon to be displayed on the right side of the heading.
|
|
8
8
|
* @default 'default'
|
|
9
9
|
*/
|
|
@@ -37,7 +37,7 @@ export interface TableDataCellProps extends BaseProps<'td'> {
|
|
|
37
37
|
*/
|
|
38
38
|
highlight?: 'warning' | 'error';
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
/**
|
|
41
41
|
* highlightAssistiveText is optional.
|
|
42
42
|
* Use this prop to add assistive text for screen readers when the highlight prop is used.
|
|
43
43
|
* This text will be visually hidden.
|
|
@@ -45,7 +45,7 @@ export interface TableDataCellProps extends BaseProps<'td'> {
|
|
|
45
45
|
*/
|
|
46
46
|
highlightAssistiveText?: string;
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
/**
|
|
49
49
|
* maxWidthWithOverflow is optional.
|
|
50
50
|
* Use this prop to set max-width of the cell and allow overflow when the content is too long.
|
|
51
51
|
* This is used in combination with the TableFloatingScroll component to allow horizontal scrolling of the table when there are cells with long content.
|