@digigov/react-core 2.0.0-rc.30 → 2.0.0-rc.31
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.native.d.ts +1 -5
- package/AccordionSection/index.native.d.ts +1 -3
- package/Base/compat/Input/CheckboxInput.native.js.map +2 -2
- package/Base/compat/Input/RadioInput.native.js.map +2 -2
- package/Base/index.native.js.map +2 -2
- package/Base/index.web.js.map +1 -1
- package/Base/mapping.native.d.ts +1 -1
- package/Base/mapping.native.js.map +2 -2
- package/Button/index.js +1 -0
- package/Button/index.js.map +2 -2
- package/CopyToClipboardMessage/index.native.d.ts +1 -3
- package/DateInputItem/index.native.d.ts +1 -3
- package/Details/index.native.d.ts +1 -3
- package/LinkBase/index.js +1 -0
- package/LinkBase/index.js.map +2 -2
- package/NavListItemActionContainer/index.native.d.ts +0 -2
- package/NotificationBannerLink/index.native.d.ts +1 -3
- package/Table/index.d.ts +9 -0
- package/Table/index.js +4 -1
- package/Table/index.js.map +2 -2
- package/TableDataCell/index.d.ts +13 -0
- package/TableDataCell/index.js +10 -1
- package/TableDataCell/index.js.map +2 -2
- package/TextArea/index.native.d.ts +1 -3
- package/TextInput/index.native.d.ts +1 -3
- package/Typography/index.d.ts +1 -1
- package/Typography/index.js +15 -17
- package/Typography/index.js.map +2 -2
- package/WarningText/index.d.ts +7 -0
- package/WarningText/index.js +10 -2
- package/WarningText/index.js.map +2 -2
- package/cjs/Base/compat/Input/CheckboxInput.native.js.map +2 -2
- package/cjs/Base/compat/Input/RadioInput.native.js.map +2 -2
- package/cjs/Base/index.native.js.map +2 -2
- package/cjs/Base/index.web.js.map +1 -1
- package/cjs/Base/mapping.native.js.map +2 -2
- package/cjs/Button/index.js +1 -0
- package/cjs/Button/index.js.map +2 -2
- package/cjs/LinkBase/index.js +1 -0
- package/cjs/LinkBase/index.js.map +2 -2
- package/cjs/Table/index.js +4 -1
- package/cjs/Table/index.js.map +2 -2
- package/cjs/TableDataCell/index.js +10 -1
- package/cjs/TableDataCell/index.js.map +2 -2
- package/cjs/Typography/index.js +15 -17
- package/cjs/Typography/index.js.map +2 -2
- package/cjs/WarningText/index.js +10 -2
- package/cjs/WarningText/index.js.map +2 -2
- package/cjs/index.js +0 -2
- package/cjs/index.js.map +2 -2
- package/cjs/lazy/index.js +2 -3
- package/cjs/lazy.js.map +2 -2
- package/cjs/registry/index.js +28 -30
- package/cjs/registry.js.map +2 -2
- package/cjs/utils/index.native/index.js +32 -34
- package/cjs/utils/index.native.js.map +2 -2
- package/index.d.ts +0 -1
- package/index.js +1 -2
- package/index.js.map +2 -2
- package/lazy/index.js +2 -3
- package/package.json +5 -5
- package/registry/index.js +28 -30
- package/src/Base/compat/Input/CheckboxInput.native.tsx +2 -6
- package/src/Base/compat/Input/RadioInput.native.tsx +2 -6
- package/src/Base/index.native.tsx +2 -2
- package/src/Base/index.web.tsx +1 -1
- package/src/Base/mapping.native.tsx +1 -1
- package/src/Button/index.tsx +1 -0
- package/src/Checkbox/__snapshots__/index.test.tsx.snap +0 -5
- package/src/CheckboxItem/__snapshots__/index.test.tsx.snap +0 -4
- package/src/LinkBase/index.tsx +1 -0
- package/src/RadioItem/__snapshots__/index.test.tsx.snap +0 -4
- package/src/Table/index.tsx +12 -0
- package/src/TableDataCell/__snapshots__/index.test.tsx.snap +2 -2
- package/src/TableDataCell/index.tsx +23 -1
- package/src/Typography/index.tsx +21 -20
- package/src/WarningText/__snapshots__/index.test.tsx.snap +26 -0
- package/src/WarningText/index.test.tsx +5 -0
- package/src/WarningText/index.tsx +17 -2
- package/src/index.ts +0 -1
- package/src/lazy.js +2 -3
- package/src/registry.js +28 -30
- package/src/utils/index.native.tsx +56 -54
- package/utils/index.native/index.js +32 -34
- package/utils/index.native.d.ts +3 -6
- package/utils/index.native.js.map +2 -2
- package/AutoCompleteInputTypeahead/index.d.ts +0 -11
- package/AutoCompleteInputTypeahead/index.js +0 -25
- package/AutoCompleteInputTypeahead/index.js.map +0 -7
- package/AutoCompleteInputTypeahead/index.test.d.ts +0 -1
- package/AutoCompleteInputTypeahead/package.json +0 -6
- package/cjs/AutoCompleteInputTypeahead/index.js +0 -58
- package/cjs/AutoCompleteInputTypeahead/index.js.map +0 -7
- package/src/AutoCompleteInputTypeahead/__snapshots__/index.test.tsx.snap +0 -16
- package/src/AutoCompleteInputTypeahead/index.test.tsx +0 -8
- package/src/AutoCompleteInputTypeahead/index.tsx +0 -32
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digigov/react-core",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.31",
|
|
4
4
|
"description": "@digigov react core components",
|
|
5
5
|
"author": "GRNET Developers <devs@lists.grnet.gr>",
|
|
6
6
|
"license": "BSD-2-Clause",
|
|
7
7
|
"main": "./cjs/index.js",
|
|
8
8
|
"module": "./index.js",
|
|
9
9
|
"peerDependencies": {
|
|
10
|
-
"@digigov/css": "2.0.0-rc.
|
|
11
|
-
"@digigov/react-icons": "2.0.0-rc.
|
|
10
|
+
"@digigov/css": "2.0.0-rc.31",
|
|
11
|
+
"@digigov/react-icons": "2.0.0-rc.31",
|
|
12
12
|
"clsx": "1.1.1",
|
|
13
|
-
"react": "
|
|
14
|
-
"react-dom": "
|
|
13
|
+
"react": "^18.3.0 || ^19.1.0",
|
|
14
|
+
"react-dom": "^18.3.0 || ^19.1.0",
|
|
15
15
|
"react-native-svg": "^15.2.0",
|
|
16
16
|
"expo-router": "^3.5.14",
|
|
17
17
|
"nativewind": "^4.1.1"
|
package/registry/index.js
CHANGED
|
@@ -3,12 +3,12 @@ import * as _digigov_react_core from "@digigov/react-core";
|
|
|
3
3
|
import * as _digigov_react_core_Accordion from "@digigov/react-core/Accordion";
|
|
4
4
|
import * as _digigov_react_core_Accordion_index_web from "@digigov/react-core/Accordion/index.web";
|
|
5
5
|
import * as _digigov_react_core_AccordionControls from "@digigov/react-core/AccordionControls";
|
|
6
|
-
import * as _digigov_react_core_AccordionSectionSummary from "@digigov/react-core/AccordionSectionSummary";
|
|
7
|
-
import * as _digigov_react_core_AccordionSectionSummaryHeading from "@digigov/react-core/AccordionSectionSummaryHeading";
|
|
8
6
|
import * as _digigov_react_core_AccordionSectionContent from "@digigov/react-core/AccordionSectionContent";
|
|
7
|
+
import * as _digigov_react_core_AdminAside from "@digigov/react-core/AdminAside";
|
|
8
|
+
import * as _digigov_react_core_AccordionSectionSummaryHeading from "@digigov/react-core/AccordionSectionSummaryHeading";
|
|
9
|
+
import * as _digigov_react_core_AccordionSectionSummary from "@digigov/react-core/AccordionSectionSummary";
|
|
9
10
|
import * as _digigov_react_core_AccordionSection from "@digigov/react-core/AccordionSection";
|
|
10
11
|
import * as _digigov_react_core_AccordionSection_index_web from "@digigov/react-core/AccordionSection/index.web";
|
|
11
|
-
import * as _digigov_react_core_AdminAside from "@digigov/react-core/AdminAside";
|
|
12
12
|
import * as _digigov_react_core_AdminContainer from "@digigov/react-core/AdminContainer";
|
|
13
13
|
import * as _digigov_react_core_AdminHeader from "@digigov/react-core/AdminHeader";
|
|
14
14
|
import * as _digigov_react_core_AdminHeaderContent from "@digigov/react-core/AdminHeaderContent";
|
|
@@ -19,7 +19,6 @@ import * as _digigov_react_core_Aside from "@digigov/react-core/Aside";
|
|
|
19
19
|
import * as _digigov_react_core_AutoCompleteAssistiveHint from "@digigov/react-core/AutoCompleteAssistiveHint";
|
|
20
20
|
import * as _digigov_react_core_AutoCompleteContainer from "@digigov/react-core/AutoCompleteContainer";
|
|
21
21
|
import * as _digigov_react_core_AutoCompleteInputBase from "@digigov/react-core/AutoCompleteInputBase";
|
|
22
|
-
import * as _digigov_react_core_AutoCompleteInputTypeahead from "@digigov/react-core/AutoCompleteInputTypeahead";
|
|
23
22
|
import * as _digigov_react_core_AutoCompleteMultipleInput from "@digigov/react-core/AutoCompleteMultipleInput";
|
|
24
23
|
import * as _digigov_react_core_AutoCompleteMultipleInputContainer from "@digigov/react-core/AutoCompleteMultipleInputContainer";
|
|
25
24
|
import * as _digigov_react_core_AutoCompleteResultList from "@digigov/react-core/AutoCompleteResultList";
|
|
@@ -108,8 +107,8 @@ import * as _digigov_react_core_FooterImage from "@digigov/react-core/FooterImag
|
|
|
108
107
|
import * as _digigov_react_core_FooterInfo from "@digigov/react-core/FooterInfo";
|
|
109
108
|
import * as _digigov_react_core_FooterInfoSection from "@digigov/react-core/FooterInfoSection";
|
|
110
109
|
import * as _digigov_react_core_FooterLinkBase from "@digigov/react-core/FooterLinkBase";
|
|
111
|
-
import * as _digigov_react_core_FooterList from "@digigov/react-core/FooterList";
|
|
112
110
|
import * as _digigov_react_core_FooterListItem from "@digigov/react-core/FooterListItem";
|
|
111
|
+
import * as _digigov_react_core_FooterList from "@digigov/react-core/FooterList";
|
|
113
112
|
import * as _digigov_react_core_FooterNavigation from "@digigov/react-core/FooterNavigation";
|
|
114
113
|
import * as _digigov_react_core_FooterNavigationSection from "@digigov/react-core/FooterNavigationSection";
|
|
115
114
|
import * as _digigov_react_core_Form from "@digigov/react-core/Form";
|
|
@@ -127,34 +126,34 @@ import * as _digigov_react_core_HeaderSection from "@digigov/react-core/HeaderSe
|
|
|
127
126
|
import * as _digigov_react_core_HeaderTitleBase from "@digigov/react-core/HeaderTitleBase";
|
|
128
127
|
import * as _digigov_react_core_Heading from "@digigov/react-core/Heading";
|
|
129
128
|
import * as _digigov_react_core_HeadingCaption from "@digigov/react-core/HeadingCaption";
|
|
130
|
-
import * as _digigov_react_core_Hidden from "@digigov/react-core/Hidden";
|
|
131
|
-
import * as _digigov_react_core_Hint from "@digigov/react-core/Hint";
|
|
132
|
-
import * as _digigov_react_core_ImageLogoSet from "@digigov/react-core/ImageLogoSet";
|
|
133
129
|
import * as _digigov_react_core_HellenicRepublicLogo from "@digigov/react-core/HellenicRepublicLogo";
|
|
134
130
|
import * as _digigov_react_core_HellenicRepublicLogo_logo_el from "@digigov/react-core/HellenicRepublicLogo/logo-el";
|
|
135
131
|
import * as _digigov_react_core_HellenicRepublicLogo_logo_en from "@digigov/react-core/HellenicRepublicLogo/logo-en";
|
|
136
132
|
import * as _digigov_react_core_HellenicRepublicLogo_logo_inverted_el from "@digigov/react-core/HellenicRepublicLogo/logo-inverted-el";
|
|
137
133
|
import * as _digigov_react_core_HellenicRepublicLogo_logo_inverted_en from "@digigov/react-core/HellenicRepublicLogo/logo-inverted-en";
|
|
134
|
+
import * as _digigov_react_core_Hidden from "@digigov/react-core/Hidden";
|
|
135
|
+
import * as _digigov_react_core_Hint from "@digigov/react-core/Hint";
|
|
136
|
+
import * as _digigov_react_core_ImageLogo from "@digigov/react-core/ImageLogo";
|
|
137
|
+
import * as _digigov_react_core_ImageLogoSet from "@digigov/react-core/ImageLogoSet";
|
|
138
138
|
import * as _digigov_react_core_KitchenSinkAllComponents from "@digigov/react-core/KitchenSinkAllComponents";
|
|
139
139
|
import * as _digigov_react_core_KitchenSinkCard from "@digigov/react-core/KitchenSinkCard";
|
|
140
140
|
import * as _digigov_react_core_KitchenSinkCategory from "@digigov/react-core/KitchenSinkCategory";
|
|
141
141
|
import * as _digigov_react_core_KitchenSinkContent from "@digigov/react-core/KitchenSinkContent";
|
|
142
|
-
import * as _digigov_react_core_KitchenSinkHeading from "@digigov/react-core/KitchenSinkHeading";
|
|
143
142
|
import * as _digigov_react_core_KitchenSinkContentInfo from "@digigov/react-core/KitchenSinkContentInfo";
|
|
144
|
-
import * as
|
|
143
|
+
import * as _digigov_react_core_KitchenSinkContentTags from "@digigov/react-core/KitchenSinkContentTags";
|
|
144
|
+
import * as _digigov_react_core_KitchenSinkHeading from "@digigov/react-core/KitchenSinkHeading";
|
|
145
145
|
import * as _digigov_react_core_KitchenSinkLetterContent from "@digigov/react-core/KitchenSinkLetterContent";
|
|
146
|
+
import * as _digigov_react_core_LabelContainer from "@digigov/react-core/LabelContainer";
|
|
146
147
|
import * as _digigov_react_core_LabelTitle from "@digigov/react-core/LabelTitle";
|
|
147
148
|
import * as _digigov_react_core_LabeledText from "@digigov/react-core/LabeledText";
|
|
148
|
-
import * as _digigov_react_core_KitchenSinkContentTags from "@digigov/react-core/KitchenSinkContentTags";
|
|
149
149
|
import * as _digigov_react_core_Layout from "@digigov/react-core/Layout";
|
|
150
150
|
import * as _digigov_react_core_LinkBase from "@digigov/react-core/LinkBase";
|
|
151
151
|
import * as _digigov_react_core_List from "@digigov/react-core/List";
|
|
152
|
-
import * as _digigov_react_core_LoaderContainer from "@digigov/react-core/LoaderContainer";
|
|
153
152
|
import * as _digigov_react_core_ListItem from "@digigov/react-core/ListItem";
|
|
154
|
-
import * as
|
|
153
|
+
import * as _digigov_react_core_LoaderContainer from "@digigov/react-core/LoaderContainer";
|
|
155
154
|
import * as _digigov_react_core_Main from "@digigov/react-core/Main";
|
|
156
|
-
import * as _digigov_react_core_Masthead from "@digigov/react-core/Masthead";
|
|
157
155
|
import * as _digigov_react_core_MastheadBody from "@digigov/react-core/MastheadBody";
|
|
156
|
+
import * as _digigov_react_core_Masthead from "@digigov/react-core/Masthead";
|
|
158
157
|
import * as _digigov_react_core_MastheadLogo from "@digigov/react-core/MastheadLogo";
|
|
159
158
|
import * as _digigov_react_core_ModalAction from "@digigov/react-core/ModalAction";
|
|
160
159
|
import * as _digigov_react_core_ModalContainer from "@digigov/react-core/ModalContainer";
|
|
@@ -181,8 +180,8 @@ import * as _digigov_react_core_NotificationBannerHeading from "@digigov/react-c
|
|
|
181
180
|
import * as _digigov_react_core_NotificationBannerLink from "@digigov/react-core/NotificationBannerLink";
|
|
182
181
|
import * as _digigov_react_core_NotificationBannerLink_index_web from "@digigov/react-core/NotificationBannerLink/index.web";
|
|
183
182
|
import * as _digigov_react_core_PageTitleCaption from "@digigov/react-core/PageTitleCaption";
|
|
184
|
-
import * as _digigov_react_core_PageTitleContainer from "@digigov/react-core/PageTitleContainer";
|
|
185
183
|
import * as _digigov_react_core_PageTitleHeading from "@digigov/react-core/PageTitleHeading";
|
|
184
|
+
import * as _digigov_react_core_PageTitleContainer from "@digigov/react-core/PageTitleContainer";
|
|
186
185
|
import * as _digigov_react_core_Pagination from "@digigov/react-core/Pagination";
|
|
187
186
|
import * as _digigov_react_core_PaginationLabelContainer from "@digigov/react-core/PaginationLabelContainer";
|
|
188
187
|
import * as _digigov_react_core_PaginationList from "@digigov/react-core/PaginationList";
|
|
@@ -287,12 +286,12 @@ export default {
|
|
|
287
286
|
'@digigov/react-core/Accordion': lazyImport(_digigov_react_core_Accordion),
|
|
288
287
|
'@digigov/react-core/Accordion/index.web': lazyImport(_digigov_react_core_Accordion_index_web),
|
|
289
288
|
'@digigov/react-core/AccordionControls': lazyImport(_digigov_react_core_AccordionControls),
|
|
290
|
-
'@digigov/react-core/AccordionSectionSummary': lazyImport(_digigov_react_core_AccordionSectionSummary),
|
|
291
|
-
'@digigov/react-core/AccordionSectionSummaryHeading': lazyImport(_digigov_react_core_AccordionSectionSummaryHeading),
|
|
292
289
|
'@digigov/react-core/AccordionSectionContent': lazyImport(_digigov_react_core_AccordionSectionContent),
|
|
290
|
+
'@digigov/react-core/AdminAside': lazyImport(_digigov_react_core_AdminAside),
|
|
291
|
+
'@digigov/react-core/AccordionSectionSummaryHeading': lazyImport(_digigov_react_core_AccordionSectionSummaryHeading),
|
|
292
|
+
'@digigov/react-core/AccordionSectionSummary': lazyImport(_digigov_react_core_AccordionSectionSummary),
|
|
293
293
|
'@digigov/react-core/AccordionSection': lazyImport(_digigov_react_core_AccordionSection),
|
|
294
294
|
'@digigov/react-core/AccordionSection/index.web': lazyImport(_digigov_react_core_AccordionSection_index_web),
|
|
295
|
-
'@digigov/react-core/AdminAside': lazyImport(_digigov_react_core_AdminAside),
|
|
296
295
|
'@digigov/react-core/AdminContainer': lazyImport(_digigov_react_core_AdminContainer),
|
|
297
296
|
'@digigov/react-core/AdminHeader': lazyImport(_digigov_react_core_AdminHeader),
|
|
298
297
|
'@digigov/react-core/AdminHeaderContent': lazyImport(_digigov_react_core_AdminHeaderContent),
|
|
@@ -303,7 +302,6 @@ export default {
|
|
|
303
302
|
'@digigov/react-core/AutoCompleteAssistiveHint': lazyImport(_digigov_react_core_AutoCompleteAssistiveHint),
|
|
304
303
|
'@digigov/react-core/AutoCompleteContainer': lazyImport(_digigov_react_core_AutoCompleteContainer),
|
|
305
304
|
'@digigov/react-core/AutoCompleteInputBase': lazyImport(_digigov_react_core_AutoCompleteInputBase),
|
|
306
|
-
'@digigov/react-core/AutoCompleteInputTypeahead': lazyImport(_digigov_react_core_AutoCompleteInputTypeahead),
|
|
307
305
|
'@digigov/react-core/AutoCompleteMultipleInput': lazyImport(_digigov_react_core_AutoCompleteMultipleInput),
|
|
308
306
|
'@digigov/react-core/AutoCompleteMultipleInputContainer': lazyImport(_digigov_react_core_AutoCompleteMultipleInputContainer),
|
|
309
307
|
'@digigov/react-core/AutoCompleteResultList': lazyImport(_digigov_react_core_AutoCompleteResultList),
|
|
@@ -392,8 +390,8 @@ export default {
|
|
|
392
390
|
'@digigov/react-core/FooterInfo': lazyImport(_digigov_react_core_FooterInfo),
|
|
393
391
|
'@digigov/react-core/FooterInfoSection': lazyImport(_digigov_react_core_FooterInfoSection),
|
|
394
392
|
'@digigov/react-core/FooterLinkBase': lazyImport(_digigov_react_core_FooterLinkBase),
|
|
395
|
-
'@digigov/react-core/FooterList': lazyImport(_digigov_react_core_FooterList),
|
|
396
393
|
'@digigov/react-core/FooterListItem': lazyImport(_digigov_react_core_FooterListItem),
|
|
394
|
+
'@digigov/react-core/FooterList': lazyImport(_digigov_react_core_FooterList),
|
|
397
395
|
'@digigov/react-core/FooterNavigation': lazyImport(_digigov_react_core_FooterNavigation),
|
|
398
396
|
'@digigov/react-core/FooterNavigationSection': lazyImport(_digigov_react_core_FooterNavigationSection),
|
|
399
397
|
'@digigov/react-core/Form': lazyImport(_digigov_react_core_Form),
|
|
@@ -411,34 +409,34 @@ export default {
|
|
|
411
409
|
'@digigov/react-core/HeaderTitleBase': lazyImport(_digigov_react_core_HeaderTitleBase),
|
|
412
410
|
'@digigov/react-core/Heading': lazyImport(_digigov_react_core_Heading),
|
|
413
411
|
'@digigov/react-core/HeadingCaption': lazyImport(_digigov_react_core_HeadingCaption),
|
|
414
|
-
'@digigov/react-core/Hidden': lazyImport(_digigov_react_core_Hidden),
|
|
415
|
-
'@digigov/react-core/Hint': lazyImport(_digigov_react_core_Hint),
|
|
416
|
-
'@digigov/react-core/ImageLogoSet': lazyImport(_digigov_react_core_ImageLogoSet),
|
|
417
412
|
'@digigov/react-core/HellenicRepublicLogo': lazyImport(_digigov_react_core_HellenicRepublicLogo),
|
|
418
413
|
'@digigov/react-core/HellenicRepublicLogo/logo-el': lazyImport(_digigov_react_core_HellenicRepublicLogo_logo_el),
|
|
419
414
|
'@digigov/react-core/HellenicRepublicLogo/logo-en': lazyImport(_digigov_react_core_HellenicRepublicLogo_logo_en),
|
|
420
415
|
'@digigov/react-core/HellenicRepublicLogo/logo-inverted-el': lazyImport(_digigov_react_core_HellenicRepublicLogo_logo_inverted_el),
|
|
421
416
|
'@digigov/react-core/HellenicRepublicLogo/logo-inverted-en': lazyImport(_digigov_react_core_HellenicRepublicLogo_logo_inverted_en),
|
|
417
|
+
'@digigov/react-core/Hidden': lazyImport(_digigov_react_core_Hidden),
|
|
418
|
+
'@digigov/react-core/Hint': lazyImport(_digigov_react_core_Hint),
|
|
419
|
+
'@digigov/react-core/ImageLogo': lazyImport(_digigov_react_core_ImageLogo),
|
|
420
|
+
'@digigov/react-core/ImageLogoSet': lazyImport(_digigov_react_core_ImageLogoSet),
|
|
422
421
|
'@digigov/react-core/KitchenSinkAllComponents': lazyImport(_digigov_react_core_KitchenSinkAllComponents),
|
|
423
422
|
'@digigov/react-core/KitchenSinkCard': lazyImport(_digigov_react_core_KitchenSinkCard),
|
|
424
423
|
'@digigov/react-core/KitchenSinkCategory': lazyImport(_digigov_react_core_KitchenSinkCategory),
|
|
425
424
|
'@digigov/react-core/KitchenSinkContent': lazyImport(_digigov_react_core_KitchenSinkContent),
|
|
426
|
-
'@digigov/react-core/KitchenSinkHeading': lazyImport(_digigov_react_core_KitchenSinkHeading),
|
|
427
425
|
'@digigov/react-core/KitchenSinkContentInfo': lazyImport(_digigov_react_core_KitchenSinkContentInfo),
|
|
428
|
-
'@digigov/react-core/
|
|
426
|
+
'@digigov/react-core/KitchenSinkContentTags': lazyImport(_digigov_react_core_KitchenSinkContentTags),
|
|
427
|
+
'@digigov/react-core/KitchenSinkHeading': lazyImport(_digigov_react_core_KitchenSinkHeading),
|
|
429
428
|
'@digigov/react-core/KitchenSinkLetterContent': lazyImport(_digigov_react_core_KitchenSinkLetterContent),
|
|
429
|
+
'@digigov/react-core/LabelContainer': lazyImport(_digigov_react_core_LabelContainer),
|
|
430
430
|
'@digigov/react-core/LabelTitle': lazyImport(_digigov_react_core_LabelTitle),
|
|
431
431
|
'@digigov/react-core/LabeledText': lazyImport(_digigov_react_core_LabeledText),
|
|
432
|
-
'@digigov/react-core/KitchenSinkContentTags': lazyImport(_digigov_react_core_KitchenSinkContentTags),
|
|
433
432
|
'@digigov/react-core/Layout': lazyImport(_digigov_react_core_Layout),
|
|
434
433
|
'@digigov/react-core/LinkBase': lazyImport(_digigov_react_core_LinkBase),
|
|
435
434
|
'@digigov/react-core/List': lazyImport(_digigov_react_core_List),
|
|
436
|
-
'@digigov/react-core/LoaderContainer': lazyImport(_digigov_react_core_LoaderContainer),
|
|
437
435
|
'@digigov/react-core/ListItem': lazyImport(_digigov_react_core_ListItem),
|
|
438
|
-
'@digigov/react-core/
|
|
436
|
+
'@digigov/react-core/LoaderContainer': lazyImport(_digigov_react_core_LoaderContainer),
|
|
439
437
|
'@digigov/react-core/Main': lazyImport(_digigov_react_core_Main),
|
|
440
|
-
'@digigov/react-core/Masthead': lazyImport(_digigov_react_core_Masthead),
|
|
441
438
|
'@digigov/react-core/MastheadBody': lazyImport(_digigov_react_core_MastheadBody),
|
|
439
|
+
'@digigov/react-core/Masthead': lazyImport(_digigov_react_core_Masthead),
|
|
442
440
|
'@digigov/react-core/MastheadLogo': lazyImport(_digigov_react_core_MastheadLogo),
|
|
443
441
|
'@digigov/react-core/ModalAction': lazyImport(_digigov_react_core_ModalAction),
|
|
444
442
|
'@digigov/react-core/ModalContainer': lazyImport(_digigov_react_core_ModalContainer),
|
|
@@ -465,8 +463,8 @@ export default {
|
|
|
465
463
|
'@digigov/react-core/NotificationBannerLink': lazyImport(_digigov_react_core_NotificationBannerLink),
|
|
466
464
|
'@digigov/react-core/NotificationBannerLink/index.web': lazyImport(_digigov_react_core_NotificationBannerLink_index_web),
|
|
467
465
|
'@digigov/react-core/PageTitleCaption': lazyImport(_digigov_react_core_PageTitleCaption),
|
|
468
|
-
'@digigov/react-core/PageTitleContainer': lazyImport(_digigov_react_core_PageTitleContainer),
|
|
469
466
|
'@digigov/react-core/PageTitleHeading': lazyImport(_digigov_react_core_PageTitleHeading),
|
|
467
|
+
'@digigov/react-core/PageTitleContainer': lazyImport(_digigov_react_core_PageTitleContainer),
|
|
470
468
|
'@digigov/react-core/Pagination': lazyImport(_digigov_react_core_Pagination),
|
|
471
469
|
'@digigov/react-core/PaginationLabelContainer': lazyImport(_digigov_react_core_PaginationLabelContainer),
|
|
472
470
|
'@digigov/react-core/PaginationList': lazyImport(_digigov_react_core_PaginationList),
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import React, {
|
|
2
|
-
DetailedHTMLProps,
|
|
3
|
-
InputHTMLAttributes,
|
|
4
|
-
LegacyRef,
|
|
5
|
-
} from 'react';
|
|
1
|
+
import React, { DetailedHTMLProps, InputHTMLAttributes, Ref } from 'react';
|
|
6
2
|
import { TouchableOpacity, View } from 'react-native';
|
|
7
3
|
|
|
8
4
|
export type CheckboxInputProps = Omit<
|
|
@@ -28,7 +24,7 @@ export const CheckboxInput = React.forwardRef<
|
|
|
28
24
|
return (
|
|
29
25
|
// @ts-ignore
|
|
30
26
|
<TouchableOpacity
|
|
31
|
-
ref={ref as
|
|
27
|
+
ref={ref as Ref<TouchableOpacity>}
|
|
32
28
|
onPress={handlePress}
|
|
33
29
|
{...props}
|
|
34
30
|
>
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import React, {
|
|
2
|
-
DetailedHTMLProps,
|
|
3
|
-
InputHTMLAttributes,
|
|
4
|
-
LegacyRef,
|
|
5
|
-
} from 'react';
|
|
1
|
+
import React, { DetailedHTMLProps, InputHTMLAttributes, Ref } from 'react';
|
|
6
2
|
import { TouchableOpacity, View } from 'react-native';
|
|
7
3
|
|
|
8
4
|
export type RadioInputProps = Omit<
|
|
@@ -26,7 +22,7 @@ export const RadioInput = React.forwardRef<HTMLInputElement, RadioInputProps>(
|
|
|
26
22
|
|
|
27
23
|
return (
|
|
28
24
|
<TouchableOpacity
|
|
29
|
-
ref={ref as
|
|
25
|
+
ref={ref as Ref<typeof TouchableOpacity>}
|
|
30
26
|
onPress={handlePress}
|
|
31
27
|
{...(props as any)}
|
|
32
28
|
>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useMemo } from 'react';
|
|
1
|
+
import React, { useMemo, type JSX } from 'react';
|
|
2
2
|
import { Text, View, ViewProps } from 'react-native';
|
|
3
3
|
import { BaseProps as CoreBaseProps } from '@digigov/react-core/Base/index.web';
|
|
4
4
|
import { mapping } from '@digigov/react-core/Base/mapping.native';
|
|
@@ -22,7 +22,7 @@ const BooleanMapper = {
|
|
|
22
22
|
const textHtmlTags = ['h1', 'h2', 'h3', 'h4', 'h5', 'p', 'span'];
|
|
23
23
|
|
|
24
24
|
export const Base: BaseComponent = React.forwardRef(function Base<
|
|
25
|
-
C extends React.ElementType
|
|
25
|
+
C extends React.ElementType,
|
|
26
26
|
>(
|
|
27
27
|
{
|
|
28
28
|
as,
|
package/src/Base/index.web.tsx
CHANGED
|
@@ -162,7 +162,7 @@ type BaseComponent = <C extends React.ElementType = 'span'>(
|
|
|
162
162
|
) => React.ReactNode | null;
|
|
163
163
|
|
|
164
164
|
export const Base: BaseComponent = React.forwardRef(function Base<
|
|
165
|
-
C extends React.ElementType
|
|
165
|
+
C extends React.ElementType,
|
|
166
166
|
>(
|
|
167
167
|
{
|
|
168
168
|
as,
|
package/src/Button/index.tsx
CHANGED
|
@@ -56,6 +56,7 @@ export const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
|
56
56
|
className={clsx(className, {
|
|
57
57
|
'ds-link': variant === 'link',
|
|
58
58
|
'ds-link-warning': variant === 'link' && color === 'warning',
|
|
59
|
+
'ds-link--disabled': variant === 'link' && disabled,
|
|
59
60
|
'ds-btn': variant === 'button',
|
|
60
61
|
'ds-btn--dense': dense,
|
|
61
62
|
'ds-btn-primary': variant === 'button' && color === 'primary',
|
|
@@ -16,7 +16,6 @@ exports[`renders the Checkbox with dense prop and CheckboxItems 1`] = `
|
|
|
16
16
|
<input
|
|
17
17
|
class="ds-checkboxes__input"
|
|
18
18
|
type="checkbox"
|
|
19
|
-
value=""
|
|
20
19
|
/>
|
|
21
20
|
</label>
|
|
22
21
|
</div>
|
|
@@ -30,7 +29,6 @@ exports[`renders the Checkbox with dense prop and CheckboxItems 1`] = `
|
|
|
30
29
|
<input
|
|
31
30
|
class="ds-checkboxes__input"
|
|
32
31
|
type="checkbox"
|
|
33
|
-
value=""
|
|
34
32
|
/>
|
|
35
33
|
</label>
|
|
36
34
|
</div>
|
|
@@ -55,7 +53,6 @@ exports[`renders the Checkbox with layout=horizontal and CheckboxItems 1`] = `
|
|
|
55
53
|
<input
|
|
56
54
|
class="ds-checkboxes__input"
|
|
57
55
|
type="checkbox"
|
|
58
|
-
value=""
|
|
59
56
|
/>
|
|
60
57
|
</label>
|
|
61
58
|
</div>
|
|
@@ -69,7 +66,6 @@ exports[`renders the Checkbox with layout=horizontal and CheckboxItems 1`] = `
|
|
|
69
66
|
<input
|
|
70
67
|
class="ds-checkboxes__input"
|
|
71
68
|
type="checkbox"
|
|
72
|
-
value=""
|
|
73
69
|
/>
|
|
74
70
|
</label>
|
|
75
71
|
</div>
|
|
@@ -106,7 +102,6 @@ exports[`renders the Checkbox with no props and CheckboxItem 1`] = `
|
|
|
106
102
|
<input
|
|
107
103
|
class="ds-checkboxes__input"
|
|
108
104
|
type="checkbox"
|
|
109
|
-
value=""
|
|
110
105
|
/>
|
|
111
106
|
</label>
|
|
112
107
|
</div>
|
|
@@ -14,7 +14,6 @@ exports[`renders the CheckboxItem with \`disabled\` prop 1`] = `
|
|
|
14
14
|
class="ds-checkboxes__input"
|
|
15
15
|
disabled=""
|
|
16
16
|
type="checkbox"
|
|
17
|
-
value=""
|
|
18
17
|
/>
|
|
19
18
|
</label>
|
|
20
19
|
</div>
|
|
@@ -40,7 +39,6 @@ exports[`renders the CheckboxItem with \`divider\` prop 1`] = `
|
|
|
40
39
|
<input
|
|
41
40
|
class="ds-checkboxes__input"
|
|
42
41
|
type="checkbox"
|
|
43
|
-
value=""
|
|
44
42
|
/>
|
|
45
43
|
</label>
|
|
46
44
|
</div>
|
|
@@ -62,7 +60,6 @@ exports[`renders the CheckboxItem with \`name\` prop 1`] = `
|
|
|
62
60
|
class="ds-checkboxes__input"
|
|
63
61
|
name="example"
|
|
64
62
|
type="checkbox"
|
|
65
|
-
value=""
|
|
66
63
|
/>
|
|
67
64
|
</label>
|
|
68
65
|
</div>
|
|
@@ -155,7 +152,6 @@ exports[`renders the CheckboxItem with no props 1`] = `
|
|
|
155
152
|
<input
|
|
156
153
|
class="ds-checkboxes__input"
|
|
157
154
|
type="checkbox"
|
|
158
|
-
value=""
|
|
159
155
|
/>
|
|
160
156
|
</label>
|
|
161
157
|
</div>
|
package/src/LinkBase/index.tsx
CHANGED
|
@@ -18,7 +18,6 @@ exports[`renders the RadioItem \`dividerText\` props 1`] = `
|
|
|
18
18
|
<input
|
|
19
19
|
class="ds-radios__input"
|
|
20
20
|
type="radio"
|
|
21
|
-
value=""
|
|
22
21
|
/>
|
|
23
22
|
</label>
|
|
24
23
|
</div>
|
|
@@ -89,7 +88,6 @@ exports[`renders the RadioItem with disabled prop 1`] = `
|
|
|
89
88
|
class="ds-radios__input"
|
|
90
89
|
disabled=""
|
|
91
90
|
type="radio"
|
|
92
|
-
value=""
|
|
93
91
|
/>
|
|
94
92
|
</label>
|
|
95
93
|
</div>
|
|
@@ -111,7 +109,6 @@ exports[`renders the RadioItem with name props 1`] = `
|
|
|
111
109
|
class="ds-radios__input"
|
|
112
110
|
name="name"
|
|
113
111
|
type="radio"
|
|
114
|
-
value=""
|
|
115
112
|
/>
|
|
116
113
|
</label>
|
|
117
114
|
</div>
|
|
@@ -177,7 +174,6 @@ exports[`renders the RadioItem with no props 1`] = `
|
|
|
177
174
|
<input
|
|
178
175
|
class="ds-radios__input"
|
|
179
176
|
type="radio"
|
|
180
|
-
value=""
|
|
181
177
|
/>
|
|
182
178
|
</label>
|
|
183
179
|
</div>
|
package/src/Table/index.tsx
CHANGED
|
@@ -47,6 +47,15 @@ export interface TableProps extends BaseProps<'table'> {
|
|
|
47
47
|
* @default 'default'
|
|
48
48
|
*/
|
|
49
49
|
variant?: 'zebra' | 'default';
|
|
50
|
+
/**
|
|
51
|
+
* verticalAlign is optional.
|
|
52
|
+
* The verticalAlign property sets vertical alignment of the table-cells.
|
|
53
|
+
* @value 'top'
|
|
54
|
+
* @value 'middle'
|
|
55
|
+
* @value 'bottom'
|
|
56
|
+
* @default 'middle'
|
|
57
|
+
*/
|
|
58
|
+
verticalAlign?: 'top' | 'middle' | 'bottom';
|
|
50
59
|
}
|
|
51
60
|
/**
|
|
52
61
|
* Table component is used to wrap the sub components of a table
|
|
@@ -59,6 +68,7 @@ export const Table = React.forwardRef<HTMLTableElement, TableProps>(
|
|
|
59
68
|
dense = false,
|
|
60
69
|
verticalBorders = false,
|
|
61
70
|
stacked = 'never',
|
|
71
|
+
verticalAlign = 'middle',
|
|
62
72
|
className,
|
|
63
73
|
children,
|
|
64
74
|
...props
|
|
@@ -79,6 +89,8 @@ export const Table = React.forwardRef<HTMLTableElement, TableProps>(
|
|
|
79
89
|
'ds-table--dense': dense,
|
|
80
90
|
'ds-table--zebra': variant === 'zebra',
|
|
81
91
|
'ds-table--vertical-lines': verticalBorders,
|
|
92
|
+
'ds-table--align-top': verticalAlign === 'top',
|
|
93
|
+
'ds-table--align-bottom': verticalAlign === 'bottom',
|
|
82
94
|
})}
|
|
83
95
|
{...props}
|
|
84
96
|
>
|
|
@@ -13,7 +13,7 @@ exports[`renders the Table with dataType numeric prop 1`] = `
|
|
|
13
13
|
class="ds-table__row"
|
|
14
14
|
>
|
|
15
15
|
<td
|
|
16
|
-
class="ds-table__cell ds-table__cell--numeric"
|
|
16
|
+
class="ds-table__cell ds-table__cell--border ds-table__cell--numeric"
|
|
17
17
|
>
|
|
18
18
|
hello
|
|
19
19
|
</td>
|
|
@@ -37,7 +37,7 @@ exports[`renders the Table with no props 1`] = `
|
|
|
37
37
|
class="ds-table__row"
|
|
38
38
|
>
|
|
39
39
|
<td
|
|
40
|
-
class="ds-table__cell"
|
|
40
|
+
class="ds-table__cell ds-table__cell--border"
|
|
41
41
|
>
|
|
42
42
|
hello
|
|
43
43
|
</td>
|
|
@@ -13,6 +13,19 @@ export interface TableDataCellProps extends BaseProps<'td'> {
|
|
|
13
13
|
* @default 'text'
|
|
14
14
|
*/
|
|
15
15
|
dataType?: 'text' | 'numeric';
|
|
16
|
+
/**
|
|
17
|
+
* variant is optional.
|
|
18
|
+
* Use this prop to control the bottom border of the table-cell.
|
|
19
|
+
* @value 'border'
|
|
20
|
+
* @value 'none'
|
|
21
|
+
* @default 'border'
|
|
22
|
+
*/
|
|
23
|
+
variant?: 'border' | 'none';
|
|
24
|
+
/**
|
|
25
|
+
* wordBreak is optional.
|
|
26
|
+
* Use this prop to control the word break of the table-cell contents.
|
|
27
|
+
*/
|
|
28
|
+
wordBreak?: 'break-all' | 'none';
|
|
16
29
|
}
|
|
17
30
|
/**
|
|
18
31
|
* Use TableDataCell inside the Table component to fill the data of a cell in a table.
|
|
@@ -21,7 +34,14 @@ export const TableDataCell = React.forwardRef<
|
|
|
21
34
|
HTMLTableCellElement,
|
|
22
35
|
TableDataCellProps
|
|
23
36
|
>(function TableDataCell(
|
|
24
|
-
{
|
|
37
|
+
{
|
|
38
|
+
dataType = 'text',
|
|
39
|
+
variant = 'border',
|
|
40
|
+
wordBreak = 'none',
|
|
41
|
+
className,
|
|
42
|
+
children,
|
|
43
|
+
...props
|
|
44
|
+
},
|
|
25
45
|
ref
|
|
26
46
|
) {
|
|
27
47
|
return (
|
|
@@ -30,6 +50,8 @@ export const TableDataCell = React.forwardRef<
|
|
|
30
50
|
ref={ref}
|
|
31
51
|
className={clsx(className, {
|
|
32
52
|
'ds-table__cell': true,
|
|
53
|
+
'ds-table__cell--border': variant === 'border',
|
|
54
|
+
'ds-table__cell--break-all': wordBreak === 'break-all',
|
|
33
55
|
'ds-table__cell--numeric': dataType === 'numeric',
|
|
34
56
|
})}
|
|
35
57
|
{...props}
|
package/src/Typography/index.tsx
CHANGED
|
@@ -29,25 +29,26 @@ export interface TypographyProps
|
|
|
29
29
|
* Typography component is used as generic component for typography.
|
|
30
30
|
* Use Typography component to extend components such as Heading, NormalText Paragraph etc.
|
|
31
31
|
*/
|
|
32
|
-
export const Typography = React.forwardRef<
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
{
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
);
|
|
32
|
+
export const Typography = React.forwardRef<
|
|
33
|
+
HTMLSpanElement | HTMLParagraphElement | HTMLHeadingElement,
|
|
34
|
+
TypographyProps
|
|
35
|
+
>(function Typography(
|
|
36
|
+
{ as, fontSize, fontWeight, className, children, ...props },
|
|
37
|
+
ref
|
|
38
|
+
) {
|
|
39
|
+
return (
|
|
40
|
+
<Base
|
|
41
|
+
as={as}
|
|
42
|
+
ref={ref}
|
|
43
|
+
className={clsx(className, {
|
|
44
|
+
[`ds-!-font-size-${fontSize}`]: fontSize !== undefined,
|
|
45
|
+
[`ds-!-font-weight-${fontWeight}`]: fontWeight !== undefined,
|
|
46
|
+
})}
|
|
47
|
+
{...props}
|
|
48
|
+
>
|
|
49
|
+
{children}
|
|
50
|
+
</Base>
|
|
51
|
+
);
|
|
52
|
+
});
|
|
52
53
|
|
|
53
54
|
export default Typography;
|
|
@@ -77,3 +77,29 @@ exports[`renders the WarningText with no props 1`] = `
|
|
|
77
77
|
</div>
|
|
78
78
|
</body>
|
|
79
79
|
`;
|
|
80
|
+
|
|
81
|
+
exports[`renders the WarningText with strong=false 1`] = `
|
|
82
|
+
<body>
|
|
83
|
+
<div>
|
|
84
|
+
<div
|
|
85
|
+
class="ds-warning-text"
|
|
86
|
+
>
|
|
87
|
+
<div
|
|
88
|
+
class="ds-warning-text__icon"
|
|
89
|
+
>
|
|
90
|
+
!
|
|
91
|
+
</div>
|
|
92
|
+
<div
|
|
93
|
+
class="ds-warning-text__content"
|
|
94
|
+
>
|
|
95
|
+
<span
|
|
96
|
+
class="ds-warning-text__assistive"
|
|
97
|
+
>
|
|
98
|
+
Προσοχή
|
|
99
|
+
</span>
|
|
100
|
+
hello
|
|
101
|
+
</div>
|
|
102
|
+
</div>
|
|
103
|
+
</div>
|
|
104
|
+
</body>
|
|
105
|
+
`;
|
|
@@ -18,3 +18,8 @@ it('renders the WarningText with dense=true', () => {
|
|
|
18
18
|
render(<WarningText dense>hello</WarningText>).baseElement
|
|
19
19
|
).toMatchSnapshot();
|
|
20
20
|
});
|
|
21
|
+
it('renders the WarningText with strong=false', () => {
|
|
22
|
+
expect(
|
|
23
|
+
render(<WarningText strong={false}>hello</WarningText>).baseElement
|
|
24
|
+
).toMatchSnapshot();
|
|
25
|
+
});
|
|
@@ -16,6 +16,13 @@ export interface WarningTextProps extends BaseProps<'div'> {
|
|
|
16
16
|
* @default false
|
|
17
17
|
* */
|
|
18
18
|
dense?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* strong is optional.
|
|
21
|
+
* @value true if you want to emphasize importance, conveying meaning to both sighted and screen readers.
|
|
22
|
+
* @value false WarningText will be a simple div element.
|
|
23
|
+
* @default true
|
|
24
|
+
* */
|
|
25
|
+
strong?: boolean;
|
|
19
26
|
}
|
|
20
27
|
/**
|
|
21
28
|
* WarningText.
|
|
@@ -24,9 +31,17 @@ export interface WarningTextProps extends BaseProps<'div'> {
|
|
|
24
31
|
*/
|
|
25
32
|
export const WarningText = React.forwardRef<HTMLDivElement, WarningTextProps>(
|
|
26
33
|
function WarningText(
|
|
27
|
-
{
|
|
34
|
+
{
|
|
35
|
+
className,
|
|
36
|
+
strong = true,
|
|
37
|
+
assistiveText = 'Προσοχή',
|
|
38
|
+
dense,
|
|
39
|
+
children,
|
|
40
|
+
...props
|
|
41
|
+
},
|
|
28
42
|
ref
|
|
29
43
|
) {
|
|
44
|
+
const Component = strong ? 'strong' : 'div';
|
|
30
45
|
return (
|
|
31
46
|
<Base
|
|
32
47
|
as="div"
|
|
@@ -47,7 +62,7 @@ export const WarningText = React.forwardRef<HTMLDivElement, WarningTextProps>(
|
|
|
47
62
|
</Base>
|
|
48
63
|
|
|
49
64
|
<Base
|
|
50
|
-
as=
|
|
65
|
+
as={Component}
|
|
51
66
|
className={clsx({
|
|
52
67
|
'ds-warning-text__content': true,
|
|
53
68
|
})}
|
package/src/index.ts
CHANGED
|
@@ -151,7 +151,6 @@ export * from '@digigov/react-core/AdminLayout';
|
|
|
151
151
|
export * from '@digigov/react-core/AdminMain';
|
|
152
152
|
export * from '@digigov/react-core/AdminTopSection';
|
|
153
153
|
export * from '@digigov/react-core/AutoCompleteInputBase';
|
|
154
|
-
export * from '@digigov/react-core/AutoCompleteInputTypeahead';
|
|
155
154
|
export * from '@digigov/react-core/AutoCompleteResultList';
|
|
156
155
|
export * from '@digigov/react-core/AutoCompleteResultListItem';
|
|
157
156
|
export * from '@digigov/react-core/AutoCompleteContainer';
|