@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.
Files changed (96) hide show
  1. package/Accordion/index.native.d.ts +1 -5
  2. package/AccordionSection/index.native.d.ts +1 -3
  3. package/Base/compat/Input/CheckboxInput.native.js.map +2 -2
  4. package/Base/compat/Input/RadioInput.native.js.map +2 -2
  5. package/Base/index.native.js.map +2 -2
  6. package/Base/index.web.js.map +1 -1
  7. package/Base/mapping.native.d.ts +1 -1
  8. package/Base/mapping.native.js.map +2 -2
  9. package/Button/index.js +1 -0
  10. package/Button/index.js.map +2 -2
  11. package/CopyToClipboardMessage/index.native.d.ts +1 -3
  12. package/DateInputItem/index.native.d.ts +1 -3
  13. package/Details/index.native.d.ts +1 -3
  14. package/LinkBase/index.js +1 -0
  15. package/LinkBase/index.js.map +2 -2
  16. package/NavListItemActionContainer/index.native.d.ts +0 -2
  17. package/NotificationBannerLink/index.native.d.ts +1 -3
  18. package/Table/index.d.ts +9 -0
  19. package/Table/index.js +4 -1
  20. package/Table/index.js.map +2 -2
  21. package/TableDataCell/index.d.ts +13 -0
  22. package/TableDataCell/index.js +10 -1
  23. package/TableDataCell/index.js.map +2 -2
  24. package/TextArea/index.native.d.ts +1 -3
  25. package/TextInput/index.native.d.ts +1 -3
  26. package/Typography/index.d.ts +1 -1
  27. package/Typography/index.js +15 -17
  28. package/Typography/index.js.map +2 -2
  29. package/WarningText/index.d.ts +7 -0
  30. package/WarningText/index.js +10 -2
  31. package/WarningText/index.js.map +2 -2
  32. package/cjs/Base/compat/Input/CheckboxInput.native.js.map +2 -2
  33. package/cjs/Base/compat/Input/RadioInput.native.js.map +2 -2
  34. package/cjs/Base/index.native.js.map +2 -2
  35. package/cjs/Base/index.web.js.map +1 -1
  36. package/cjs/Base/mapping.native.js.map +2 -2
  37. package/cjs/Button/index.js +1 -0
  38. package/cjs/Button/index.js.map +2 -2
  39. package/cjs/LinkBase/index.js +1 -0
  40. package/cjs/LinkBase/index.js.map +2 -2
  41. package/cjs/Table/index.js +4 -1
  42. package/cjs/Table/index.js.map +2 -2
  43. package/cjs/TableDataCell/index.js +10 -1
  44. package/cjs/TableDataCell/index.js.map +2 -2
  45. package/cjs/Typography/index.js +15 -17
  46. package/cjs/Typography/index.js.map +2 -2
  47. package/cjs/WarningText/index.js +10 -2
  48. package/cjs/WarningText/index.js.map +2 -2
  49. package/cjs/index.js +0 -2
  50. package/cjs/index.js.map +2 -2
  51. package/cjs/lazy/index.js +2 -3
  52. package/cjs/lazy.js.map +2 -2
  53. package/cjs/registry/index.js +28 -30
  54. package/cjs/registry.js.map +2 -2
  55. package/cjs/utils/index.native/index.js +32 -34
  56. package/cjs/utils/index.native.js.map +2 -2
  57. package/index.d.ts +0 -1
  58. package/index.js +1 -2
  59. package/index.js.map +2 -2
  60. package/lazy/index.js +2 -3
  61. package/package.json +5 -5
  62. package/registry/index.js +28 -30
  63. package/src/Base/compat/Input/CheckboxInput.native.tsx +2 -6
  64. package/src/Base/compat/Input/RadioInput.native.tsx +2 -6
  65. package/src/Base/index.native.tsx +2 -2
  66. package/src/Base/index.web.tsx +1 -1
  67. package/src/Base/mapping.native.tsx +1 -1
  68. package/src/Button/index.tsx +1 -0
  69. package/src/Checkbox/__snapshots__/index.test.tsx.snap +0 -5
  70. package/src/CheckboxItem/__snapshots__/index.test.tsx.snap +0 -4
  71. package/src/LinkBase/index.tsx +1 -0
  72. package/src/RadioItem/__snapshots__/index.test.tsx.snap +0 -4
  73. package/src/Table/index.tsx +12 -0
  74. package/src/TableDataCell/__snapshots__/index.test.tsx.snap +2 -2
  75. package/src/TableDataCell/index.tsx +23 -1
  76. package/src/Typography/index.tsx +21 -20
  77. package/src/WarningText/__snapshots__/index.test.tsx.snap +26 -0
  78. package/src/WarningText/index.test.tsx +5 -0
  79. package/src/WarningText/index.tsx +17 -2
  80. package/src/index.ts +0 -1
  81. package/src/lazy.js +2 -3
  82. package/src/registry.js +28 -30
  83. package/src/utils/index.native.tsx +56 -54
  84. package/utils/index.native/index.js +32 -34
  85. package/utils/index.native.d.ts +3 -6
  86. package/utils/index.native.js.map +2 -2
  87. package/AutoCompleteInputTypeahead/index.d.ts +0 -11
  88. package/AutoCompleteInputTypeahead/index.js +0 -25
  89. package/AutoCompleteInputTypeahead/index.js.map +0 -7
  90. package/AutoCompleteInputTypeahead/index.test.d.ts +0 -1
  91. package/AutoCompleteInputTypeahead/package.json +0 -6
  92. package/cjs/AutoCompleteInputTypeahead/index.js +0 -58
  93. package/cjs/AutoCompleteInputTypeahead/index.js.map +0 -7
  94. package/src/AutoCompleteInputTypeahead/__snapshots__/index.test.tsx.snap +0 -16
  95. package/src/AutoCompleteInputTypeahead/index.test.tsx +0 -8
  96. package/src/AutoCompleteInputTypeahead/index.tsx +0 -32
package/src/lazy.js CHANGED
@@ -152,7 +152,6 @@ export default {
152
152
  'AdminMain': lazy(() => import('@digigov/react-core/AdminMain').then((module) => ({ default: module['AdminMain'] }))),
153
153
  'AdminTopSection': lazy(() => import('@digigov/react-core/AdminTopSection').then((module) => ({ default: module['AdminTopSection'] }))),
154
154
  'AutoCompleteInputBase': lazy(() => import('@digigov/react-core/AutoCompleteInputBase').then((module) => ({ default: module['AutoCompleteInputBase'] }))),
155
- 'AutoCompleteInputTypeahead': lazy(() => import('@digigov/react-core/AutoCompleteInputTypeahead').then((module) => ({ default: module['AutoCompleteInputTypeahead'] }))),
156
155
  'AutoCompleteResultList': lazy(() => import('@digigov/react-core/AutoCompleteResultList').then((module) => ({ default: module['AutoCompleteResultList'] }))),
157
156
  'AutoCompleteResultListItem': lazy(() => import('@digigov/react-core/AutoCompleteResultListItem').then((module) => ({ default: module['AutoCompleteResultListItem'] }))),
158
157
  'AutoCompleteContainer': lazy(() => import('@digigov/react-core/AutoCompleteContainer').then((module) => ({ default: module['AutoCompleteContainer'] }))),
@@ -237,10 +236,10 @@ export default {
237
236
  'KitchenSinkCard': lazy(() => import('@digigov/react-core/KitchenSinkCard').then((module) => ({ default: module['KitchenSinkCard'] }))),
238
237
  'KitchenSinkCategory': lazy(() => import('@digigov/react-core/KitchenSinkCategory').then((module) => ({ default: module['KitchenSinkCategory'] }))),
239
238
  'KitchenSinkContent': lazy(() => import('@digigov/react-core/KitchenSinkContent').then((module) => ({ default: module['KitchenSinkContent'] }))),
240
- 'KitchenSinkHeading': lazy(() => import('@digigov/react-core/KitchenSinkHeading').then((module) => ({ default: module['KitchenSinkHeading'] }))),
241
239
  'KitchenSinkContentInfo': lazy(() => import('@digigov/react-core/KitchenSinkContentInfo').then((module) => ({ default: module['KitchenSinkContentInfo'] }))),
242
- 'KitchenSinkLetterContent': lazy(() => import('@digigov/react-core/KitchenSinkLetterContent').then((module) => ({ default: module['KitchenSinkLetterContent'] }))),
243
240
  'KitchenSinkContentTags': lazy(() => import('@digigov/react-core/KitchenSinkContentTags').then((module) => ({ default: module['KitchenSinkContentTags'] }))),
241
+ 'KitchenSinkHeading': lazy(() => import('@digigov/react-core/KitchenSinkHeading').then((module) => ({ default: module['KitchenSinkHeading'] }))),
242
+ 'KitchenSinkLetterContent': lazy(() => import('@digigov/react-core/KitchenSinkLetterContent').then((module) => ({ default: module['KitchenSinkLetterContent'] }))),
244
243
  'MastheadLogo': lazy(() => import('@digigov/react-core/MastheadLogo').then((module) => ({ default: module['MastheadLogo'] }))),
245
244
  'PanelTitle': lazy(() => import('@digigov/react-core/PanelTitle').then((module) => ({ default: module['PanelTitle'] }))),
246
245
  'Skeleton': lazy(() => import('@digigov/react-core/Skeleton').then((module) => ({ default: module['Skeleton'] })))
package/src/registry.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 _digigov_react_core_ImageLogo from "@digigov/react-core/ImageLogo";
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 _digigov_react_core_LabelContainer from "@digigov/react-core/LabelContainer";
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/ImageLogo': lazyImport(_digigov_react_core_ImageLogo),
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/LabelContainer': lazyImport(_digigov_react_core_LabelContainer),
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,7 @@
1
1
  import React from 'react';
2
2
  import clsx from 'clsx';
3
3
 
4
- type WithClassName<TProps> = TProps & { className?: string };
5
- type PropFactory<TProps> = (props: WithClassName<TProps>) => any;
4
+ type PropFactory<TProps> = (props: TProps) => any;
6
5
 
7
6
  /**
8
7
  * A HOC that transforms the props of the wrapped component before passing them through
@@ -22,12 +21,14 @@ type PropFactory<TProps> = (props: WithClassName<TProps>) => any;
22
21
  */
23
22
  export function extend<TProps, TAdditionalProps>(
24
23
  Component: React.ComponentType<TProps>,
25
- propFactory: PropFactory<TProps & TAdditionalProps> = (props) => props
24
+ propFactory: PropFactory<React.PropsWithoutRef<TProps & TAdditionalProps>> = (
25
+ props
26
+ ) => props
26
27
  ) {
27
- const ExtendedComponent = React.forwardRef(function ExtendedComponent(
28
- props: WithClassName<TProps & TAdditionalProps>,
29
- ref
30
- ) {
28
+ const ExtendedComponent = React.forwardRef<
29
+ unknown,
30
+ TProps & TAdditionalProps
31
+ >(function ExtendedComponent(props, ref) {
31
32
  const transformedProps = propFactory(props);
32
33
 
33
34
  return <Component ref={ref} {...transformedProps} />;
@@ -62,59 +63,60 @@ export function enablePseudoclass<T extends React.ElementType>(
62
63
  Component: T,
63
64
  { self = {}, children = {} }: PseudoclassOptions
64
65
  ) {
65
- return React.forwardRef<React.ElementRef<T>, React.ComponentPropsWithRef<T>>(
66
- function enablePseudoclassComponent(
67
- { className, children: componentChildren, ...props },
68
- ref
69
- ) {
70
- // Handle if children is an array, add the corresponding classnames to the first and last child
71
- if (Array.isArray(componentChildren)) {
72
- return (
73
- <Component ref={ref} {...(props as any)} className={className}>
74
- {componentChildren.map((child, index) => {
75
- return React.cloneElement(child, {
76
- key: index,
77
- className: clsx(
78
- child.props.className,
79
- ...Object.entries(children).map(([key, classNames]) => {
80
- if (index === 0 && key === 'first-child') return classNames;
81
- if (
82
- index === componentChildren.length - 1 &&
83
- key === 'last-child'
84
- )
85
- return classNames;
86
- return '';
87
- })
88
- ),
89
- });
90
- })}
91
- </Component>
92
- );
93
- }
94
- // Handle if children is a single element, add the corresponding classname for empty pseudoclass
95
- if (componentChildren === undefined) {
96
- const componentClassNames = Object.entries(self).map(([key, value]) => {
97
- if (key === 'empty') return value.join(' ');
98
- return '';
99
- });
100
- return (
101
- <Component
102
- ref={ref}
103
- {...(props as any)}
104
- className={clsx(className, ...componentClassNames)}
105
- >
106
- {componentChildren}
107
- </Component>
108
- );
109
- }
110
- // Else return the component as it is
66
+ return React.forwardRef<
67
+ React.ComponentRef<T>,
68
+ React.ComponentPropsWithRef<T>
69
+ >(function enablePseudoclassComponent(
70
+ { className, children: componentChildren, ...props },
71
+ ref
72
+ ) {
73
+ // Handle if children is an array, add the corresponding classnames to the first and last child
74
+ if (Array.isArray(componentChildren)) {
111
75
  return (
112
76
  <Component ref={ref} {...(props as any)} className={className}>
77
+ {componentChildren.map((child, index) => {
78
+ return React.cloneElement(child, {
79
+ key: index,
80
+ className: clsx(
81
+ child.props.className,
82
+ ...Object.entries(children).map(([key, classNames]) => {
83
+ if (index === 0 && key === 'first-child') return classNames;
84
+ if (
85
+ index === componentChildren.length - 1 &&
86
+ key === 'last-child'
87
+ )
88
+ return classNames;
89
+ return '';
90
+ })
91
+ ),
92
+ });
93
+ })}
94
+ </Component>
95
+ );
96
+ }
97
+ // Handle if children is a single element, add the corresponding classname for empty pseudoclass
98
+ if (componentChildren === undefined) {
99
+ const componentClassNames = Object.entries(self).map(([key, value]) => {
100
+ if (key === 'empty') return value.join(' ');
101
+ return '';
102
+ });
103
+ return (
104
+ <Component
105
+ ref={ref}
106
+ {...(props as any)}
107
+ className={clsx(className, ...componentClassNames)}
108
+ >
113
109
  {componentChildren}
114
110
  </Component>
115
111
  );
116
112
  }
117
- );
113
+ // Else return the component as it is
114
+ return (
115
+ <Component ref={ref} {...(props as any)} className={className}>
116
+ {componentChildren}
117
+ </Component>
118
+ );
119
+ });
118
120
  }
119
121
 
120
122
  export default extend;
@@ -8,42 +8,40 @@ function extend(Component, propFactory = (props) => props) {
8
8
  return ExtendedComponent;
9
9
  }
10
10
  function enablePseudoclass(Component, { self = {}, children = {} }) {
11
- return React.forwardRef(
12
- function enablePseudoclassComponent({ className, children: componentChildren, ...props }, ref) {
13
- if (Array.isArray(componentChildren)) {
14
- return /* @__PURE__ */ React.createElement(Component, { ref, ...props, className }, componentChildren.map((child, index) => {
15
- return React.cloneElement(child, {
16
- key: index,
17
- className: clsx(
18
- child.props.className,
19
- ...Object.entries(children).map(([key, classNames]) => {
20
- if (index === 0 && key === "first-child") return classNames;
21
- if (index === componentChildren.length - 1 && key === "last-child")
22
- return classNames;
23
- return "";
24
- })
25
- )
26
- });
27
- }));
28
- }
29
- if (componentChildren === void 0) {
30
- const componentClassNames = Object.entries(self).map(([key, value]) => {
31
- if (key === "empty") return value.join(" ");
32
- return "";
11
+ return React.forwardRef(function enablePseudoclassComponent({ className, children: componentChildren, ...props }, ref) {
12
+ if (Array.isArray(componentChildren)) {
13
+ return /* @__PURE__ */ React.createElement(Component, { ref, ...props, className }, componentChildren.map((child, index) => {
14
+ return React.cloneElement(child, {
15
+ key: index,
16
+ className: clsx(
17
+ child.props.className,
18
+ ...Object.entries(children).map(([key, classNames]) => {
19
+ if (index === 0 && key === "first-child") return classNames;
20
+ if (index === componentChildren.length - 1 && key === "last-child")
21
+ return classNames;
22
+ return "";
23
+ })
24
+ )
33
25
  });
34
- return /* @__PURE__ */ React.createElement(
35
- Component,
36
- {
37
- ref,
38
- ...props,
39
- className: clsx(className, ...componentClassNames)
40
- },
41
- componentChildren
42
- );
43
- }
44
- return /* @__PURE__ */ React.createElement(Component, { ref, ...props, className }, componentChildren);
26
+ }));
45
27
  }
46
- );
28
+ if (componentChildren === void 0) {
29
+ const componentClassNames = Object.entries(self).map(([key, value]) => {
30
+ if (key === "empty") return value.join(" ");
31
+ return "";
32
+ });
33
+ return /* @__PURE__ */ React.createElement(
34
+ Component,
35
+ {
36
+ ref,
37
+ ...props,
38
+ className: clsx(className, ...componentClassNames)
39
+ },
40
+ componentChildren
41
+ );
42
+ }
43
+ return /* @__PURE__ */ React.createElement(Component, { ref, ...props, className }, componentChildren);
44
+ });
47
45
  }
48
46
  var index_native_default = extend;
49
47
  export {
@@ -1,8 +1,5 @@
1
1
  import React from 'react';
2
- type WithClassName<TProps> = TProps & {
3
- className?: string;
4
- };
5
- type PropFactory<TProps> = (props: WithClassName<TProps>) => any;
2
+ type PropFactory<TProps> = (props: TProps) => any;
6
3
  /**
7
4
  * A HOC that transforms the props of the wrapped component before passing them through
8
5
  *
@@ -19,7 +16,7 @@ type PropFactory<TProps> = (props: WithClassName<TProps>) => any;
19
16
  * type AdditionalProps = { lastName: string; };
20
17
  * const MyExpandedNativeComponent = extend<MyComponentProps, AdditionalProps>(MyNativeComponent, (props) => ({ name: `${props.name} ${props.lastName}`, ...props }));
21
18
  */
22
- export declare function extend<TProps, TAdditionalProps>(Component: React.ComponentType<TProps>, propFactory?: PropFactory<TProps & TAdditionalProps>): React.ForwardRefExoticComponent<React.PropsWithoutRef<WithClassName<TProps & TAdditionalProps>> & React.RefAttributes<unknown>>;
19
+ export declare function extend<TProps, TAdditionalProps>(Component: React.ComponentType<TProps>, propFactory?: PropFactory<React.PropsWithoutRef<TProps & TAdditionalProps>>): React.ForwardRefExoticComponent<React.PropsWithoutRef<TProps & TAdditionalProps> & React.RefAttributes<unknown>>;
23
20
  interface PseudoclassOptions {
24
21
  self?: Record<string, string[]>;
25
22
  children?: Record<string, string[]>;
@@ -42,5 +39,5 @@ interface PseudoclassOptions {
42
39
  * </MyComponentWithPseudoclass>
43
40
  *
44
41
  * */
45
- export declare function enablePseudoclass<T extends React.ElementType>(Component: T, { self, children }: PseudoclassOptions): React.ForwardRefExoticComponent<React.PropsWithoutRef<React.ComponentPropsWithRef<T>> & React.RefAttributes<React.ElementRef<T>>>;
42
+ export declare function enablePseudoclass<T extends React.ElementType>(Component: T, { self, children }: PseudoclassOptions): React.ForwardRefExoticComponent<React.PropsWithoutRef<React.ComponentPropsWithRef<T>> & React.RefAttributes<React.ComponentRef<T>>>;
46
43
  export default extend;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/utils/index.native.tsx"],
4
- "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\n\ntype WithClassName<TProps> = TProps & { className?: string };\ntype PropFactory<TProps> = (props: WithClassName<TProps>) => any;\n\n/**\n * A HOC that transforms the props of the wrapped component before passing them through\n *\n * @param Component The component to wrap\n * @param [propFactory=(props) => props] The function that transforms the props\n * @returns The wrapped component that accepts the transformed props\n *\n * @example\n * type MyComponentProps = { name: string; };\n * const MyComponent = (props: MyComponentProps) => <p>Hi {props.name}</p>;\n *\n * const MyNativeComponent = extend(MyComponent, (props) => ({ name: props.name.toUpperCase(), ...props }));\n *\n * type AdditionalProps = { lastName: string; };\n * const MyExpandedNativeComponent = extend<MyComponentProps, AdditionalProps>(MyNativeComponent, (props) => ({ name: `${props.name} ${props.lastName}`, ...props }));\n */\nexport function extend<TProps, TAdditionalProps>(\n Component: React.ComponentType<TProps>,\n propFactory: PropFactory<TProps & TAdditionalProps> = (props) => props\n) {\n const ExtendedComponent = React.forwardRef(function ExtendedComponent(\n props: WithClassName<TProps & TAdditionalProps>,\n ref\n ) {\n const transformedProps = propFactory(props);\n\n return <Component ref={ref} {...transformedProps} />;\n });\n return ExtendedComponent;\n}\n\ninterface PseudoclassOptions {\n self?: Record<string, string[]>;\n children?: Record<string, string[]>;\n}\n\n/**\n * A HOC that adds pseudoclass support to the wrapped component\n *\n * @param Component The component to wrap\n * @param options The pseudoclass options\n * @returns The wrapped component that supports pseudoclasses\n *\n * @example\n * const MyComponent = (props) => <p {...props}>Hi</p>;\n * const MyComponentWithPseudoclass = enablePseudoclass(MyComponent\n * { self: { 'empty': ['ds-component__empty'] }, childrenClassNames: { 'first-child': ['ds-component__first-child'] } });\n *\n * <MyComponentWithPseudoclass className=\"my-class\" empty focus>\n * <p>First child</p>\n * <p>Second child</p>\n * </MyComponentWithPseudoclass>\n *\n * */\nexport function enablePseudoclass<T extends React.ElementType>(\n Component: T,\n { self = {}, children = {} }: PseudoclassOptions\n) {\n return React.forwardRef<React.ElementRef<T>, React.ComponentPropsWithRef<T>>(\n function enablePseudoclassComponent(\n { className, children: componentChildren, ...props },\n ref\n ) {\n // Handle if children is an array, add the corresponding classnames to the first and last child\n if (Array.isArray(componentChildren)) {\n return (\n <Component ref={ref} {...(props as any)} className={className}>\n {componentChildren.map((child, index) => {\n return React.cloneElement(child, {\n key: index,\n className: clsx(\n child.props.className,\n ...Object.entries(children).map(([key, classNames]) => {\n if (index === 0 && key === 'first-child') return classNames;\n if (\n index === componentChildren.length - 1 &&\n key === 'last-child'\n )\n return classNames;\n return '';\n })\n ),\n });\n })}\n </Component>\n );\n }\n // Handle if children is a single element, add the corresponding classname for empty pseudoclass\n if (componentChildren === undefined) {\n const componentClassNames = Object.entries(self).map(([key, value]) => {\n if (key === 'empty') return value.join(' ');\n return '';\n });\n return (\n <Component\n ref={ref}\n {...(props as any)}\n className={clsx(className, ...componentClassNames)}\n >\n {componentChildren}\n </Component>\n );\n }\n // Else return the component as it is\n return (\n <Component ref={ref} {...(props as any)} className={className}>\n {componentChildren}\n </Component>\n );\n }\n );\n}\n\nexport default extend;\n"],
5
- "mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AAqBV,SAAS,OACd,WACA,cAAsD,CAAC,UAAU,OACjE;AACA,QAAM,oBAAoB,MAAM,WAAW,SAASA,mBAClD,OACA,KACA;AACA,UAAM,mBAAmB,YAAY,KAAK;AAE1C,WAAO,oCAAC,aAAU,KAAW,GAAG,kBAAkB;AAAA,EACpD,CAAC;AACD,SAAO;AACT;AAyBO,SAAS,kBACd,WACA,EAAE,OAAO,CAAC,GAAG,WAAW,CAAC,EAAE,GAC3B;AACA,SAAO,MAAM;AAAA,IACX,SAAS,2BACP,EAAE,WAAW,UAAU,mBAAmB,GAAG,MAAM,GACnD,KACA;AAEA,UAAI,MAAM,QAAQ,iBAAiB,GAAG;AACpC,eACE,oCAAC,aAAU,KAAW,GAAI,OAAe,aACtC,kBAAkB,IAAI,CAAC,OAAO,UAAU;AACvC,iBAAO,MAAM,aAAa,OAAO;AAAA,YAC/B,KAAK;AAAA,YACL,WAAW;AAAA,cACT,MAAM,MAAM;AAAA,cACZ,GAAG,OAAO,QAAQ,QAAQ,EAAE,IAAI,CAAC,CAAC,KAAK,UAAU,MAAM;AACrD,oBAAI,UAAU,KAAK,QAAQ,cAAe,QAAO;AACjD,oBACE,UAAU,kBAAkB,SAAS,KACrC,QAAQ;AAER,yBAAO;AACT,uBAAO;AAAA,cACT,CAAC;AAAA,YACH;AAAA,UACF,CAAC;AAAA,QACH,CAAC,CACH;AAAA,MAEJ;AAEA,UAAI,sBAAsB,QAAW;AACnC,cAAM,sBAAsB,OAAO,QAAQ,IAAI,EAAE,IAAI,CAAC,CAAC,KAAK,KAAK,MAAM;AACrE,cAAI,QAAQ,QAAS,QAAO,MAAM,KAAK,GAAG;AAC1C,iBAAO;AAAA,QACT,CAAC;AACD,eACE;AAAA,UAAC;AAAA;AAAA,YACC;AAAA,YACC,GAAI;AAAA,YACL,WAAW,KAAK,WAAW,GAAG,mBAAmB;AAAA;AAAA,UAEhD;AAAA,QACH;AAAA,MAEJ;AAEA,aACE,oCAAC,aAAU,KAAW,GAAI,OAAe,aACtC,iBACH;AAAA,IAEJ;AAAA,EACF;AACF;AAEA,IAAO,uBAAQ;",
4
+ "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\n\ntype PropFactory<TProps> = (props: TProps) => any;\n\n/**\n * A HOC that transforms the props of the wrapped component before passing them through\n *\n * @param Component The component to wrap\n * @param [propFactory=(props) => props] The function that transforms the props\n * @returns The wrapped component that accepts the transformed props\n *\n * @example\n * type MyComponentProps = { name: string; };\n * const MyComponent = (props: MyComponentProps) => <p>Hi {props.name}</p>;\n *\n * const MyNativeComponent = extend(MyComponent, (props) => ({ name: props.name.toUpperCase(), ...props }));\n *\n * type AdditionalProps = { lastName: string; };\n * const MyExpandedNativeComponent = extend<MyComponentProps, AdditionalProps>(MyNativeComponent, (props) => ({ name: `${props.name} ${props.lastName}`, ...props }));\n */\nexport function extend<TProps, TAdditionalProps>(\n Component: React.ComponentType<TProps>,\n propFactory: PropFactory<React.PropsWithoutRef<TProps & TAdditionalProps>> = (\n props\n ) => props\n) {\n const ExtendedComponent = React.forwardRef<\n unknown,\n TProps & TAdditionalProps\n >(function ExtendedComponent(props, ref) {\n const transformedProps = propFactory(props);\n\n return <Component ref={ref} {...transformedProps} />;\n });\n return ExtendedComponent;\n}\n\ninterface PseudoclassOptions {\n self?: Record<string, string[]>;\n children?: Record<string, string[]>;\n}\n\n/**\n * A HOC that adds pseudoclass support to the wrapped component\n *\n * @param Component The component to wrap\n * @param options The pseudoclass options\n * @returns The wrapped component that supports pseudoclasses\n *\n * @example\n * const MyComponent = (props) => <p {...props}>Hi</p>;\n * const MyComponentWithPseudoclass = enablePseudoclass(MyComponent\n * { self: { 'empty': ['ds-component__empty'] }, childrenClassNames: { 'first-child': ['ds-component__first-child'] } });\n *\n * <MyComponentWithPseudoclass className=\"my-class\" empty focus>\n * <p>First child</p>\n * <p>Second child</p>\n * </MyComponentWithPseudoclass>\n *\n * */\nexport function enablePseudoclass<T extends React.ElementType>(\n Component: T,\n { self = {}, children = {} }: PseudoclassOptions\n) {\n return React.forwardRef<\n React.ComponentRef<T>,\n React.ComponentPropsWithRef<T>\n >(function enablePseudoclassComponent(\n { className, children: componentChildren, ...props },\n ref\n ) {\n // Handle if children is an array, add the corresponding classnames to the first and last child\n if (Array.isArray(componentChildren)) {\n return (\n <Component ref={ref} {...(props as any)} className={className}>\n {componentChildren.map((child, index) => {\n return React.cloneElement(child, {\n key: index,\n className: clsx(\n child.props.className,\n ...Object.entries(children).map(([key, classNames]) => {\n if (index === 0 && key === 'first-child') return classNames;\n if (\n index === componentChildren.length - 1 &&\n key === 'last-child'\n )\n return classNames;\n return '';\n })\n ),\n });\n })}\n </Component>\n );\n }\n // Handle if children is a single element, add the corresponding classname for empty pseudoclass\n if (componentChildren === undefined) {\n const componentClassNames = Object.entries(self).map(([key, value]) => {\n if (key === 'empty') return value.join(' ');\n return '';\n });\n return (\n <Component\n ref={ref}\n {...(props as any)}\n className={clsx(className, ...componentClassNames)}\n >\n {componentChildren}\n </Component>\n );\n }\n // Else return the component as it is\n return (\n <Component ref={ref} {...(props as any)} className={className}>\n {componentChildren}\n </Component>\n );\n });\n}\n\nexport default extend;\n"],
5
+ "mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AAoBV,SAAS,OACd,WACA,cAA6E,CAC3E,UACG,OACL;AACA,QAAM,oBAAoB,MAAM,WAG9B,SAASA,mBAAkB,OAAO,KAAK;AACvC,UAAM,mBAAmB,YAAY,KAAK;AAE1C,WAAO,oCAAC,aAAU,KAAW,GAAG,kBAAkB;AAAA,EACpD,CAAC;AACD,SAAO;AACT;AAyBO,SAAS,kBACd,WACA,EAAE,OAAO,CAAC,GAAG,WAAW,CAAC,EAAE,GAC3B;AACA,SAAO,MAAM,WAGX,SAAS,2BACT,EAAE,WAAW,UAAU,mBAAmB,GAAG,MAAM,GACnD,KACA;AAEA,QAAI,MAAM,QAAQ,iBAAiB,GAAG;AACpC,aACE,oCAAC,aAAU,KAAW,GAAI,OAAe,aACtC,kBAAkB,IAAI,CAAC,OAAO,UAAU;AACvC,eAAO,MAAM,aAAa,OAAO;AAAA,UAC/B,KAAK;AAAA,UACL,WAAW;AAAA,YACT,MAAM,MAAM;AAAA,YACZ,GAAG,OAAO,QAAQ,QAAQ,EAAE,IAAI,CAAC,CAAC,KAAK,UAAU,MAAM;AACrD,kBAAI,UAAU,KAAK,QAAQ,cAAe,QAAO;AACjD,kBACE,UAAU,kBAAkB,SAAS,KACrC,QAAQ;AAER,uBAAO;AACT,qBAAO;AAAA,YACT,CAAC;AAAA,UACH;AAAA,QACF,CAAC;AAAA,MACH,CAAC,CACH;AAAA,IAEJ;AAEA,QAAI,sBAAsB,QAAW;AACnC,YAAM,sBAAsB,OAAO,QAAQ,IAAI,EAAE,IAAI,CAAC,CAAC,KAAK,KAAK,MAAM;AACrE,YAAI,QAAQ,QAAS,QAAO,MAAM,KAAK,GAAG;AAC1C,eAAO;AAAA,MACT,CAAC;AACD,aACE;AAAA,QAAC;AAAA;AAAA,UACC;AAAA,UACC,GAAI;AAAA,UACL,WAAW,KAAK,WAAW,GAAG,mBAAmB;AAAA;AAAA,QAEhD;AAAA,MACH;AAAA,IAEJ;AAEA,WACE,oCAAC,aAAU,KAAW,GAAI,OAAe,aACtC,iBACH;AAAA,EAEJ,CAAC;AACH;AAEA,IAAO,uBAAQ;",
6
6
  "names": ["ExtendedComponent"]
7
7
  }
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { BaseProps } from '@digigov/react-core/Base';
3
- export interface AutoCompleteInputTypeaheadProps extends BaseProps<'input'> {
4
- }
5
- /**
6
- * AutoCompleteInputTypeahead component is used to display the hole search value
7
- * in the background.
8
- *
9
- */
10
- export declare const AutoCompleteInputTypeahead: React.ForwardRefExoticComponent<Omit<AutoCompleteInputTypeaheadProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
11
- export default AutoCompleteInputTypeahead;
@@ -1,25 +0,0 @@
1
- import React from "react";
2
- import clsx from "clsx";
3
- import Base from "@digigov/react-core/Base";
4
- const AutoCompleteInputTypeahead = React.forwardRef(function AutoCompleteInputTypeahead2({ className, ...props }, ref) {
5
- return /* @__PURE__ */ React.createElement("span", null, /* @__PURE__ */ React.createElement(
6
- Base,
7
- {
8
- as: "input",
9
- type: "text",
10
- readOnly: true,
11
- ref,
12
- tabIndex: -1,
13
- className: clsx(className, {
14
- "ds-autocomplete__hint": true
15
- }),
16
- ...props
17
- }
18
- ));
19
- });
20
- var AutoCompleteInputTypeahead_default = AutoCompleteInputTypeahead;
21
- export {
22
- AutoCompleteInputTypeahead,
23
- AutoCompleteInputTypeahead_default as default
24
- };
25
- //# sourceMappingURL=index.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/AutoCompleteInputTypeahead/index.tsx"],
4
- "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface AutoCompleteInputTypeaheadProps extends BaseProps<'input'> {}\n/**\n * AutoCompleteInputTypeahead component is used to display the hole search value\n * in the background.\n *\n */\nexport const AutoCompleteInputTypeahead = React.forwardRef<\n HTMLInputElement,\n AutoCompleteInputTypeaheadProps\n>(function AutoCompleteInputTypeahead({ className, ...props }, ref) {\n return (\n <span>\n <Base\n as=\"input\"\n type=\"text\"\n readOnly\n ref={ref}\n tabIndex={-1}\n className={clsx(className, {\n 'ds-autocomplete__hint': true,\n })}\n {...props}\n />\n </span>\n );\n});\n\nexport default AutoCompleteInputTypeahead;\n"],
5
- "mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;AAQzB,MAAM,6BAA6B,MAAM,WAG9C,SAASA,4BAA2B,EAAE,WAAW,GAAG,MAAM,GAAG,KAAK;AAClE,SACE,oCAAC,cACC;AAAA,IAAC;AAAA;AAAA,MACC,IAAG;AAAA,MACH,MAAK;AAAA,MACL,UAAQ;AAAA,MACR;AAAA,MACA,UAAU;AAAA,MACV,WAAW,KAAK,WAAW;AAAA,QACzB,yBAAyB;AAAA,MAC3B,CAAC;AAAA,MACA,GAAG;AAAA;AAAA,EACN,CACF;AAEJ,CAAC;AAED,IAAO,qCAAQ;",
6
- "names": ["AutoCompleteInputTypeahead"]
7
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,6 +0,0 @@
1
- {
2
- "sideEffects": false,
3
- "module": "./index.js",
4
- "types": "./index.d.ts",
5
- "main": "../cjs/AutoCompleteInputTypeahead/index.js"
6
- }
@@ -1,58 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
- // If the importer is in node compatibility mode or this is not an ESM
21
- // file that has been converted to a CommonJS file using a Babel-
22
- // compatible transform (i.e. "__esModule" has not been set), then set
23
- // "default" to the CommonJS "module.exports" for node compatibility.
24
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
- mod
26
- ));
27
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
- var AutoCompleteInputTypeahead_exports = {};
29
- __export(AutoCompleteInputTypeahead_exports, {
30
- AutoCompleteInputTypeahead: () => AutoCompleteInputTypeahead,
31
- default: () => AutoCompleteInputTypeahead_default
32
- });
33
- module.exports = __toCommonJS(AutoCompleteInputTypeahead_exports);
34
- var import_react = __toESM(require("react"));
35
- var import_clsx = __toESM(require("clsx"));
36
- var import_Base = __toESM(require("@digigov/react-core/Base"));
37
- const AutoCompleteInputTypeahead = import_react.default.forwardRef(function AutoCompleteInputTypeahead2({ className, ...props }, ref) {
38
- return /* @__PURE__ */ import_react.default.createElement("span", null, /* @__PURE__ */ import_react.default.createElement(
39
- import_Base.default,
40
- {
41
- as: "input",
42
- type: "text",
43
- readOnly: true,
44
- ref,
45
- tabIndex: -1,
46
- className: (0, import_clsx.default)(className, {
47
- "ds-autocomplete__hint": true
48
- }),
49
- ...props
50
- }
51
- ));
52
- });
53
- var AutoCompleteInputTypeahead_default = AutoCompleteInputTypeahead;
54
- // Annotate the CommonJS export names for ESM import in node:
55
- 0 && (module.exports = {
56
- AutoCompleteInputTypeahead
57
- });
58
- //# sourceMappingURL=index.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/AutoCompleteInputTypeahead/index.tsx"],
4
- "sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface AutoCompleteInputTypeaheadProps extends BaseProps<'input'> {}\n/**\n * AutoCompleteInputTypeahead component is used to display the hole search value\n * in the background.\n *\n */\nexport const AutoCompleteInputTypeahead = React.forwardRef<\n HTMLInputElement,\n AutoCompleteInputTypeaheadProps\n>(function AutoCompleteInputTypeahead({ className, ...props }, ref) {\n return (\n <span>\n <Base\n as=\"input\"\n type=\"text\"\n readOnly\n ref={ref}\n tabIndex={-1}\n className={clsx(className, {\n 'ds-autocomplete__hint': true,\n })}\n {...props}\n />\n </span>\n );\n});\n\nexport default AutoCompleteInputTypeahead;\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAClB,kBAAiB;AACjB,kBAAgC;AAQzB,MAAM,6BAA6B,aAAAA,QAAM,WAG9C,SAASC,4BAA2B,EAAE,WAAW,GAAG,MAAM,GAAG,KAAK;AAClE,SACE,6BAAAD,QAAA,cAAC,cACC,6BAAAA,QAAA;AAAA,IAAC,YAAAE;AAAA,IAAA;AAAA,MACC,IAAG;AAAA,MACH,MAAK;AAAA,MACL,UAAQ;AAAA,MACR;AAAA,MACA,UAAU;AAAA,MACV,eAAW,YAAAC,SAAK,WAAW;AAAA,QACzB,yBAAyB;AAAA,MAC3B,CAAC;AAAA,MACA,GAAG;AAAA;AAAA,EACN,CACF;AAEJ,CAAC;AAED,IAAO,qCAAQ;",
6
- "names": ["React", "AutoCompleteInputTypeahead", "Base", "clsx"]
7
- }
@@ -1,16 +0,0 @@
1
- // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
-
3
- exports[`renders the AutoCompleteInputTypeahead with no props 1`] = `
4
- <body>
5
- <div>
6
- <span>
7
- <input
8
- class="ds-autocomplete__hint"
9
- readonly=""
10
- tabindex="-1"
11
- type="text"
12
- />
13
- </span>
14
- </div>
15
- </body>
16
- `;