@digigov/react-core 2.0.0-d57821ba → 2.0.0-daaf7bdf
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/Base/compat/Input/CheckboxInput.native/index.js +33 -0
- package/Base/compat/Input/CheckboxInput.native/package.json +6 -0
- package/Base/compat/Input/CheckboxInput.native.d.ts +4 -0
- package/Base/compat/Input/CheckboxInput.native.js.map +7 -0
- package/Base/compat/Input/RadioInput.native/index.js +32 -0
- package/Base/compat/Input/RadioInput.native/package.json +6 -0
- package/Base/compat/Input/RadioInput.native.d.ts +4 -0
- package/Base/compat/Input/RadioInput.native.js.map +7 -0
- package/Base/compat/Input/StringInput.native/index.js +99 -0
- package/Base/compat/Input/StringInput.native/package.json +6 -0
- package/Base/compat/Input/StringInput.native.d.ts +7 -0
- package/Base/compat/Input/StringInput.native.js.map +7 -0
- package/Base/compat/Input/index.native/index.js +24 -0
- package/Base/compat/Input/index.native/package.json +6 -0
- package/Base/compat/Input/index.native.d.ts +7 -0
- package/Base/compat/Input/index.native.js.map +7 -0
- package/Base/compat/button.native/index.js +48 -0
- package/Base/compat/button.native/package.json +6 -0
- package/Base/compat/button.native.d.ts +5 -0
- package/Base/compat/button.native.js.map +7 -0
- package/Base/compat/details.native/index.js +40 -0
- package/Base/compat/details.native/package.json +6 -0
- package/Base/compat/details.native.d.ts +8 -0
- package/Base/compat/details.native.js.map +7 -0
- package/Base/compat/li.native/index.js +9 -0
- package/Base/compat/li.native/package.json +6 -0
- package/Base/compat/li.native.d.ts +6 -0
- package/Base/compat/li.native.js.map +7 -0
- package/Base/compat/ol.native/index.js +33 -0
- package/Base/compat/ol.native/package.json +6 -0
- package/Base/compat/ol.native.d.ts +6 -0
- package/Base/compat/ol.native.js.map +7 -0
- package/Base/index.d.ts +2 -95
- package/Base/index.js +3 -98
- package/Base/index.js.map +3 -3
- package/Base/index.native/index.js +160 -0
- package/Base/index.native/package.json +6 -0
- package/Base/index.native.d.ts +7 -0
- package/Base/index.native.js.map +7 -0
- package/Base/index.web/index.js +104 -0
- package/Base/index.web/package.json +6 -0
- package/Base/index.web.d.ts +97 -0
- package/Base/index.web.js.map +7 -0
- package/Base/mapping.native/index.js +34 -0
- package/Base/mapping.native/package.json +6 -0
- package/Base/mapping.native.d.ts +6 -0
- package/Base/mapping.native.js.map +7 -0
- package/Base/utils/index.js +86 -0
- package/Base/utils/package.json +6 -0
- package/Base/utils.d.ts +41 -0
- package/Base/utils.js.map +7 -0
- package/Base/wrap.native/index.js +64 -0
- package/Base/wrap.native/package.json +6 -0
- package/Base/wrap.native.d.ts +2 -0
- package/Base/wrap.native.js.map +7 -0
- package/CallToAction/index.js +1 -1
- package/CallToAction/index.js.map +2 -2
- package/Card/index.js +2 -1
- package/Card/index.js.map +2 -2
- package/CheckboxItem/index.js +4 -16
- package/CheckboxItem/index.js.map +2 -2
- package/CheckboxItemInput/index.d.ts +2 -0
- package/CheckboxItemInput/index.js +6 -0
- package/CheckboxItemInput/index.js.map +7 -0
- package/CheckboxItemInput/index.native/index.js +20 -0
- package/CheckboxItemInput/index.native/package.json +6 -0
- package/CheckboxItemInput/index.native.d.ts +4 -0
- package/CheckboxItemInput/index.native.js.map +7 -0
- package/CheckboxItemInput/index.web/index.js +26 -0
- package/CheckboxItemInput/index.web/package.json +6 -0
- package/CheckboxItemInput/index.web.d.ts +10 -0
- package/CheckboxItemInput/index.web.js.map +7 -0
- package/CheckboxItemInput/package.json +6 -0
- package/Chip/index.js +2 -1
- package/Chip/index.js.map +2 -2
- package/CodeBlockContainer/index.d.ts +1 -9
- package/CodeBlockContainer/index.js +2 -3
- package/CodeBlockContainer/index.js.map +2 -2
- package/CodeBlockContent/index.d.ts +1 -1
- package/CodeBlockContent/index.js +3 -2
- package/CodeBlockContent/index.js.map +2 -2
- package/CodeBlockHeader/index.d.ts +1 -1
- package/CodeBlockHeader/index.js +1 -3
- package/CodeBlockHeader/index.js.map +2 -2
- package/CopyToClipboardContainer/index.d.ts +2 -31
- package/CopyToClipboardContainer/index.js +3 -40
- package/CopyToClipboardContainer/index.js.map +3 -3
- package/CopyToClipboardContainer/index.web/index.js +44 -0
- package/CopyToClipboardContainer/index.web/package.json +6 -0
- package/CopyToClipboardContainer/index.web.d.ts +31 -0
- package/CopyToClipboardContainer/index.web.js.map +7 -0
- package/CopyToClipboardMessage/index.d.ts +2 -18
- package/CopyToClipboardMessage/index.js +3 -21
- package/CopyToClipboardMessage/index.js.map +3 -3
- package/CopyToClipboardMessage/index.native/index.js +18 -0
- package/CopyToClipboardMessage/index.native/package.json +6 -0
- package/CopyToClipboardMessage/index.native.d.ts +6 -0
- package/CopyToClipboardMessage/index.native.js.map +7 -0
- package/CopyToClipboardMessage/index.web/index.js +24 -0
- package/CopyToClipboardMessage/index.web/package.json +6 -0
- package/CopyToClipboardMessage/index.web.d.ts +18 -0
- package/CopyToClipboardMessage/index.web.js.map +7 -0
- package/DateInputItem/index.d.ts +2 -26
- package/DateInputItem/index.js +3 -41
- package/DateInputItem/index.js.map +3 -3
- package/DateInputItem/index.native/index.js +17 -0
- package/DateInputItem/index.native/package.json +6 -0
- package/DateInputItem/index.native.d.ts +4 -0
- package/DateInputItem/index.native.js.map +7 -0
- package/DateInputItem/index.web/index.js +32 -0
- package/DateInputItem/index.web/package.json +6 -0
- package/DateInputItem/index.web.d.ts +26 -0
- package/DateInputItem/index.web.js.map +7 -0
- package/Details/index.d.ts +2 -10
- package/Details/index.js +3 -22
- package/Details/index.js.map +3 -3
- package/Details/index.native/index.js +17 -0
- package/Details/index.native/package.json +6 -0
- package/Details/index.native.d.ts +4 -0
- package/Details/index.native.js.map +7 -0
- package/Details/index.web/index.js +25 -0
- package/Details/index.web/package.json +6 -0
- package/Details/index.web.d.ts +10 -0
- package/Details/index.web.js.map +7 -0
- package/FieldsetLegend/index.js +1 -4
- package/FieldsetLegend/index.js.map +2 -2
- package/LabelTitle/index.js +2 -4
- package/LabelTitle/index.js.map +2 -2
- package/NavListItemActionContainer/index.d.ts +2 -10
- package/NavListItemActionContainer/index.js +3 -20
- package/NavListItemActionContainer/index.js.map +3 -3
- package/NavListItemActionContainer/index.native/index.js +17 -0
- package/NavListItemActionContainer/index.native/package.json +6 -0
- package/NavListItemActionContainer/index.native.d.ts +7 -0
- package/NavListItemActionContainer/index.native.js.map +7 -0
- package/NavListItemActionContainer/index.web/index.js +23 -0
- package/NavListItemActionContainer/index.web/package.json +6 -0
- package/NavListItemActionContainer/index.web.d.ts +10 -0
- package/NavListItemActionContainer/index.web.js.map +7 -0
- package/NotificationBannerLink/index.d.ts +2 -11
- package/NotificationBannerLink/index.js +3 -19
- package/NotificationBannerLink/index.js.map +3 -3
- package/NotificationBannerLink/index.native/index.js +16 -0
- package/NotificationBannerLink/index.native/package.json +6 -0
- package/NotificationBannerLink/index.native.d.ts +8 -0
- package/NotificationBannerLink/index.native.js.map +7 -0
- package/NotificationBannerLink/index.web/index.js +22 -0
- package/NotificationBannerLink/index.web/package.json +6 -0
- package/NotificationBannerLink/index.web.d.ts +11 -0
- package/NotificationBannerLink/index.web.js.map +7 -0
- package/PhaseBanner/index.js +2 -1
- package/PhaseBanner/index.js.map +2 -2
- package/PhaseBannerTag/index.d.ts +2 -2
- package/PhaseBannerTag/index.js +1 -1
- package/PhaseBannerTag/index.js.map +1 -1
- package/PhaseBannerText/index.js +1 -1
- package/PhaseBannerText/index.js.map +2 -2
- package/RadioItem/index.js +2 -1
- package/RadioItem/index.js.map +2 -2
- package/SummaryList/index.d.ts +1 -1
- package/SummaryList/index.js.map +2 -2
- package/SummaryListItemKey/index.d.ts +14 -0
- package/SummaryListItemKey/index.js +5 -2
- package/SummaryListItemKey/index.js.map +2 -2
- package/TextArea/index.d.ts +2 -24
- package/TextArea/index.js +3 -27
- package/TextArea/index.js.map +3 -3
- package/TextArea/index.native/index.js +16 -0
- package/TextArea/index.native/package.json +6 -0
- package/TextArea/index.native.d.ts +4 -0
- package/TextArea/index.native.js.map +7 -0
- package/TextArea/index.web/index.js +30 -0
- package/TextArea/index.web/package.json +6 -0
- package/TextArea/index.web.d.ts +24 -0
- package/TextArea/index.web.js.map +7 -0
- package/TextInput/index.d.ts +2 -46
- package/TextInput/index.js +3 -40
- package/TextInput/index.js.map +3 -3
- package/TextInput/index.native/index.js +19 -0
- package/TextInput/index.native/package.json +6 -0
- package/TextInput/index.native.d.ts +4 -0
- package/TextInput/index.native.js.map +7 -0
- package/TextInput/index.web/index.js +43 -0
- package/TextInput/index.web/package.json +6 -0
- package/TextInput/index.web.d.ts +46 -0
- package/TextInput/index.web.js.map +7 -0
- package/Unpurge/index.js +78 -0
- package/Unpurge/index.js.map +2 -2
- package/WarningText/index.js +7 -12
- package/WarningText/index.js.map +2 -2
- package/WarningTextAssistive/index.d.ts +15 -0
- package/WarningTextAssistive/index.js +23 -0
- package/WarningTextAssistive/index.js.map +7 -0
- package/WarningTextAssistive/package.json +6 -0
- package/cjs/Base/compat/Input/CheckboxInput.native/index.js +66 -0
- package/cjs/Base/compat/Input/CheckboxInput.native.js.map +7 -0
- package/cjs/Base/compat/Input/RadioInput.native/index.js +65 -0
- package/cjs/Base/compat/Input/RadioInput.native.js.map +7 -0
- package/cjs/Base/compat/Input/StringInput.native/index.js +129 -0
- package/cjs/Base/compat/Input/StringInput.native.js.map +7 -0
- package/cjs/Base/compat/Input/index.native/index.js +55 -0
- package/cjs/Base/compat/Input/index.native.js.map +7 -0
- package/cjs/Base/compat/button.native/index.js +81 -0
- package/cjs/Base/compat/button.native.js.map +7 -0
- package/cjs/Base/compat/details.native/index.js +65 -0
- package/cjs/Base/compat/details.native.js.map +7 -0
- package/cjs/Base/compat/li.native/index.js +42 -0
- package/cjs/Base/compat/li.native.js.map +7 -0
- package/cjs/Base/compat/ol.native/index.js +66 -0
- package/cjs/Base/compat/ol.native.js.map +7 -0
- package/cjs/Base/index.js +5 -99
- package/cjs/Base/index.js.map +3 -3
- package/cjs/Base/index.native/index.js +193 -0
- package/cjs/Base/index.native.js.map +7 -0
- package/cjs/Base/index.web/index.js +137 -0
- package/cjs/Base/index.web.js.map +7 -0
- package/cjs/Base/mapping.native/index.js +67 -0
- package/cjs/Base/mapping.native.js.map +7 -0
- package/cjs/Base/utils/index.js +119 -0
- package/cjs/Base/utils.js.map +7 -0
- package/cjs/Base/wrap.native/index.js +97 -0
- package/cjs/Base/wrap.native.js.map +7 -0
- package/cjs/CallToAction/index.js +1 -1
- package/cjs/CallToAction/index.js.map +2 -2
- package/cjs/Card/index.js +2 -1
- package/cjs/Card/index.js.map +2 -2
- package/cjs/CheckboxItem/index.js +4 -16
- package/cjs/CheckboxItem/index.js.map +3 -3
- package/cjs/CheckboxItemInput/index.js +40 -0
- package/cjs/CheckboxItemInput/index.js.map +7 -0
- package/cjs/CheckboxItemInput/index.native/index.js +53 -0
- package/cjs/CheckboxItemInput/index.native.js.map +7 -0
- package/cjs/CheckboxItemInput/index.web/index.js +59 -0
- package/cjs/CheckboxItemInput/index.web.js.map +7 -0
- package/cjs/Chip/index.js +2 -1
- package/cjs/Chip/index.js.map +2 -2
- package/cjs/CodeBlockContainer/index.js +2 -3
- package/cjs/CodeBlockContainer/index.js.map +2 -2
- package/cjs/CodeBlockContent/index.js +3 -2
- package/cjs/CodeBlockContent/index.js.map +2 -2
- package/cjs/CodeBlockHeader/index.js +1 -3
- package/cjs/CodeBlockHeader/index.js.map +2 -2
- package/cjs/CopyToClipboardContainer/index.js +5 -41
- package/cjs/CopyToClipboardContainer/index.js.map +3 -3
- package/cjs/CopyToClipboardContainer/index.web/index.js +77 -0
- package/cjs/CopyToClipboardContainer/index.web.js.map +7 -0
- package/cjs/CopyToClipboardMessage/index.js +5 -22
- package/cjs/CopyToClipboardMessage/index.js.map +3 -3
- package/cjs/CopyToClipboardMessage/index.native/index.js +51 -0
- package/cjs/CopyToClipboardMessage/index.native.js.map +7 -0
- package/cjs/CopyToClipboardMessage/index.web/index.js +57 -0
- package/cjs/CopyToClipboardMessage/index.web.js.map +7 -0
- package/cjs/DateInputItem/index.js +5 -42
- package/cjs/DateInputItem/index.js.map +3 -3
- package/cjs/DateInputItem/index.native/index.js +50 -0
- package/cjs/DateInputItem/index.native.js.map +7 -0
- package/cjs/DateInputItem/index.web/index.js +65 -0
- package/cjs/DateInputItem/index.web.js.map +7 -0
- package/cjs/Details/index.js +5 -23
- package/cjs/Details/index.js.map +3 -3
- package/cjs/Details/index.native/index.js +50 -0
- package/cjs/Details/index.native.js.map +7 -0
- package/cjs/Details/index.web/index.js +58 -0
- package/cjs/Details/index.web.js.map +7 -0
- package/cjs/FieldsetLegend/index.js +1 -4
- package/cjs/FieldsetLegend/index.js.map +2 -2
- package/cjs/LabelTitle/index.js +2 -4
- package/cjs/LabelTitle/index.js.map +2 -2
- package/cjs/NavListItemActionContainer/index.js +5 -21
- package/cjs/NavListItemActionContainer/index.js.map +3 -3
- package/cjs/NavListItemActionContainer/index.native/index.js +50 -0
- package/cjs/NavListItemActionContainer/index.native.js.map +7 -0
- package/cjs/NavListItemActionContainer/index.web/index.js +56 -0
- package/cjs/NavListItemActionContainer/index.web.js.map +7 -0
- package/cjs/NotificationBannerLink/index.js +5 -20
- package/cjs/NotificationBannerLink/index.js.map +3 -3
- package/cjs/NotificationBannerLink/index.native/index.js +49 -0
- package/cjs/NotificationBannerLink/index.native.js.map +7 -0
- package/cjs/NotificationBannerLink/index.web/index.js +55 -0
- package/cjs/NotificationBannerLink/index.web.js.map +7 -0
- package/cjs/PhaseBanner/index.js +2 -1
- package/cjs/PhaseBanner/index.js.map +2 -2
- package/cjs/PhaseBannerTag/index.js +1 -1
- package/cjs/PhaseBannerTag/index.js.map +1 -1
- package/cjs/PhaseBannerText/index.js +1 -1
- package/cjs/PhaseBannerText/index.js.map +2 -2
- package/cjs/RadioItem/index.js +2 -1
- package/cjs/RadioItem/index.js.map +3 -3
- package/cjs/SummaryList/index.js.map +2 -2
- package/cjs/SummaryListItemKey/index.js +5 -2
- package/cjs/SummaryListItemKey/index.js.map +2 -2
- package/cjs/TextArea/index.js +5 -28
- package/cjs/TextArea/index.js.map +3 -3
- package/cjs/TextArea/index.native/index.js +49 -0
- package/cjs/TextArea/index.native.js.map +7 -0
- package/cjs/TextArea/index.web/index.js +63 -0
- package/cjs/TextArea/index.web.js.map +7 -0
- package/cjs/TextInput/index.js +5 -41
- package/cjs/TextInput/index.js.map +3 -3
- package/cjs/TextInput/index.native/index.js +52 -0
- package/cjs/TextInput/index.native.js.map +7 -0
- package/cjs/TextInput/index.web/index.js +76 -0
- package/cjs/TextInput/index.web.js.map +7 -0
- package/cjs/Unpurge/index.js +78 -0
- package/cjs/Unpurge/index.js.map +2 -2
- package/cjs/WarningText/index.js +7 -12
- package/cjs/WarningText/index.js.map +2 -2
- package/cjs/WarningTextAssistive/index.js +56 -0
- package/cjs/WarningTextAssistive/index.js.map +7 -0
- package/cjs/index.js +5 -1
- package/cjs/index.js.map +2 -2
- package/cjs/lazy/index.js +12 -10
- package/cjs/lazy.js.map +2 -2
- package/cjs/registry/index.js +27 -1
- package/cjs/registry.js.map +2 -2
- package/cjs/utils/extend.native/index.js +47 -0
- package/cjs/utils/extend.native.js.map +7 -0
- package/index.d.ts +2 -0
- package/index.js +3 -1
- package/index.js.map +2 -2
- package/lazy/index.js +12 -10
- package/lazy.d.ts +219 -217
- package/lazy.js.map +2 -2
- package/package.json +21 -4
- package/registry/index.js +27 -1
- package/registry.d.ts +13 -0
- package/registry.js.map +2 -2
- package/src/Base/compat/Input/CheckboxInput.native.tsx +40 -0
- package/src/Base/compat/Input/RadioInput.native.tsx +39 -0
- package/src/Base/compat/Input/StringInput.native.tsx +115 -0
- package/src/Base/compat/Input/index.native.tsx +28 -0
- package/src/Base/compat/button.native.tsx +53 -0
- package/src/Base/compat/details.native.tsx +68 -0
- package/src/Base/compat/li.native.tsx +11 -0
- package/src/Base/compat/ol.native.tsx +41 -0
- package/src/Base/index.native.tsx +185 -0
- package/src/Base/index.tsx +2 -257
- package/src/Base/index.web.tsx +259 -0
- package/src/Base/mapping.native.tsx +41 -0
- package/src/Base/utils.ts +84 -0
- package/src/Base/wrap.native.tsx +94 -0
- package/src/CallToAction/index.tsx +2 -2
- package/src/Card/index.tsx +3 -2
- package/src/CheckboxItem/index.tsx +4 -14
- package/src/CheckboxItemInput/index.native.tsx +17 -0
- package/src/CheckboxItemInput/index.tsx +2 -0
- package/src/CheckboxItemInput/index.web.tsx +34 -0
- package/src/Chip/index.tsx +2 -2
- package/src/CodeBlockContainer/index.tsx +3 -16
- package/src/CodeBlockContent/index.tsx +5 -4
- package/src/CodeBlockHeader/index.tsx +2 -4
- package/src/CopyToClipboardContainer/index.tsx +2 -74
- package/src/CopyToClipboardContainer/index.web.tsx +75 -0
- package/src/CopyToClipboardMessage/index.native.tsx +21 -0
- package/src/CopyToClipboardMessage/index.tsx +2 -41
- package/src/CopyToClipboardMessage/index.web.tsx +41 -0
- package/src/DateInputItem/index.native.tsx +12 -0
- package/src/DateInputItem/index.tsx +2 -64
- package/src/DateInputItem/index.web.tsx +53 -0
- package/src/Details/index.native.tsx +14 -0
- package/src/Details/index.tsx +2 -27
- package/src/Details/index.web.tsx +27 -0
- package/src/FieldsetLegend/index.tsx +1 -4
- package/src/LabelTitle/index.tsx +2 -4
- package/src/NavListItemActionContainer/index.native.tsx +18 -0
- package/src/NavListItemActionContainer/index.tsx +2 -28
- package/src/NavListItemActionContainer/index.web.tsx +28 -0
- package/src/NotificationBannerLink/index.native.tsx +22 -0
- package/src/NotificationBannerLink/index.tsx +2 -28
- package/src/NotificationBannerLink/index.web.tsx +28 -0
- package/src/PhaseBanner/index.tsx +2 -2
- package/src/PhaseBannerTag/index.tsx +3 -3
- package/src/PhaseBannerText/__snapshots__/index.test.tsx.snap +1 -1
- package/src/PhaseBannerText/index.tsx +1 -1
- package/src/RadioItem/index.tsx +2 -2
- package/src/SummaryList/index.tsx +7 -5
- package/src/SummaryListItemKey/index.tsx +24 -2
- package/src/TextArea/index.native.tsx +11 -0
- package/src/TextArea/index.tsx +2 -50
- package/src/TextArea/index.web.tsx +50 -0
- package/src/TextInput/index.native.tsx +15 -0
- package/src/TextInput/index.tsx +2 -87
- package/src/TextInput/index.web.tsx +87 -0
- package/src/Unpurge/index.tsx +78 -0
- package/src/WarningText/index.tsx +12 -15
- package/src/WarningTextAssistive/index.tsx +37 -0
- package/src/index.ts +2 -0
- package/src/lazy.js +12 -10
- package/src/registry.js +28 -2
- package/src/utils/extend.native.tsx +36 -0
- package/utils/extend.native/index.js +14 -0
- package/utils/extend.native/package.json +6 -0
- package/utils/extend.native.d.ts +23 -0
- package/utils/extend.native.js.map +7 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import React, {
|
|
2
|
+
useEffect,
|
|
3
|
+
useState,
|
|
4
|
+
Children,
|
|
5
|
+
DetailedHTMLProps,
|
|
6
|
+
DetailsHTMLAttributes,
|
|
7
|
+
} from 'react';
|
|
8
|
+
import { View, Text, TouchableOpacity, StyleSheet } from 'react-native';
|
|
9
|
+
|
|
10
|
+
type HTMLElementProps = Omit<
|
|
11
|
+
DetailedHTMLProps<
|
|
12
|
+
DetailsHTMLAttributes<HTMLDetailsElement>,
|
|
13
|
+
HTMLDetailsElement
|
|
14
|
+
>,
|
|
15
|
+
'ref'
|
|
16
|
+
> & {
|
|
17
|
+
closeIcon?: string;
|
|
18
|
+
openIcon?: string;
|
|
19
|
+
placement?: 'before' | 'after';
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
const CompatDetails = ({
|
|
23
|
+
children,
|
|
24
|
+
open = false,
|
|
25
|
+
placement,
|
|
26
|
+
closeIcon,
|
|
27
|
+
openIcon,
|
|
28
|
+
...props
|
|
29
|
+
}: HTMLElementProps) => {
|
|
30
|
+
const [isExpanded, setIsExpanded] = useState(open);
|
|
31
|
+
|
|
32
|
+
useEffect(() => {
|
|
33
|
+
setIsExpanded(open);
|
|
34
|
+
}, [open]);
|
|
35
|
+
|
|
36
|
+
const toggleExpand = () => {
|
|
37
|
+
setIsExpanded(!isExpanded);
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
const [summaryContent, ...detailsContent] = Children.toArray(children);
|
|
41
|
+
|
|
42
|
+
const toggleIcon =
|
|
43
|
+
closeIcon && openIcon ? (
|
|
44
|
+
<Text>{isExpanded ? openIcon : closeIcon}</Text>
|
|
45
|
+
) : null;
|
|
46
|
+
|
|
47
|
+
return (
|
|
48
|
+
// TODO: Fix `props` type
|
|
49
|
+
// @ts-expect-error - `props` type is not compatible with `View` props
|
|
50
|
+
<View {...props}>
|
|
51
|
+
<TouchableOpacity onPress={toggleExpand} style={styles.summaryContainer}>
|
|
52
|
+
{placement === 'before' && toggleIcon}
|
|
53
|
+
{summaryContent}
|
|
54
|
+
{placement === 'after' && toggleIcon}
|
|
55
|
+
</TouchableOpacity>
|
|
56
|
+
{isExpanded && <View>{detailsContent}</View>}
|
|
57
|
+
</View>
|
|
58
|
+
);
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
const styles = StyleSheet.create({
|
|
62
|
+
summaryContainer: {
|
|
63
|
+
flexDirection: 'row',
|
|
64
|
+
alignItems: 'center',
|
|
65
|
+
},
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
export default CompatDetails;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View, Text } from 'react-native';
|
|
3
|
+
|
|
4
|
+
export const Ol = ({ children, className, ...props }) => {
|
|
5
|
+
let listStyle = 'none';
|
|
6
|
+
if (className.includes('ds-list--bullet')) {
|
|
7
|
+
listStyle = 'bullet';
|
|
8
|
+
}
|
|
9
|
+
if (className.includes('ds-list--number')) {
|
|
10
|
+
listStyle = 'number';
|
|
11
|
+
}
|
|
12
|
+
return (
|
|
13
|
+
<View {...props} className={className}>
|
|
14
|
+
{Array.isArray(children)
|
|
15
|
+
? children.map((child, index) => {
|
|
16
|
+
const counter =
|
|
17
|
+
listStyle === 'number'
|
|
18
|
+
? index + 1
|
|
19
|
+
: listStyle === 'bullet'
|
|
20
|
+
? '•'
|
|
21
|
+
: null;
|
|
22
|
+
return (
|
|
23
|
+
<View
|
|
24
|
+
key={index}
|
|
25
|
+
style={{
|
|
26
|
+
display: 'flex',
|
|
27
|
+
flexDirection: 'row',
|
|
28
|
+
flexWrap: 'nowrap',
|
|
29
|
+
gap: 8,
|
|
30
|
+
width: '100%',
|
|
31
|
+
}}
|
|
32
|
+
>
|
|
33
|
+
<Text>{counter}</Text>
|
|
34
|
+
{child}
|
|
35
|
+
</View>
|
|
36
|
+
);
|
|
37
|
+
})
|
|
38
|
+
: children}
|
|
39
|
+
</View>
|
|
40
|
+
);
|
|
41
|
+
};
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import React, { useMemo } from 'react';
|
|
2
|
+
import { Text, View, ViewProps } from 'react-native';
|
|
3
|
+
import { BaseProps as CoreBaseProps } from '@digigov/react-core/Base/index.web';
|
|
4
|
+
import { mapping } from '@digigov/react-core/Base/mapping.native';
|
|
5
|
+
import { basePropGenerator } from '@digigov/react-core/Base/utils';
|
|
6
|
+
import { wrap } from '@digigov/react-core/Base/wrap.native';
|
|
7
|
+
|
|
8
|
+
export type BaseProps<C extends React.ElementType> = CoreBaseProps<C> &
|
|
9
|
+
ViewProps;
|
|
10
|
+
export type BaseComponent = <C extends React.ElementType = 'span'>(
|
|
11
|
+
props: BaseProps<C>
|
|
12
|
+
) => React.ReactNode | null;
|
|
13
|
+
|
|
14
|
+
const BooleanMapper = {
|
|
15
|
+
true: true,
|
|
16
|
+
false: false,
|
|
17
|
+
undefined: false,
|
|
18
|
+
null: false,
|
|
19
|
+
'': false,
|
|
20
|
+
};
|
|
21
|
+
export const Base: BaseComponent = React.forwardRef(function Base<
|
|
22
|
+
C extends React.ElementType = 'span',
|
|
23
|
+
>(
|
|
24
|
+
{
|
|
25
|
+
as,
|
|
26
|
+
display,
|
|
27
|
+
children,
|
|
28
|
+
margin,
|
|
29
|
+
marginTop,
|
|
30
|
+
marginBottom,
|
|
31
|
+
marginLeft,
|
|
32
|
+
marginRight,
|
|
33
|
+
m,
|
|
34
|
+
mt,
|
|
35
|
+
mb,
|
|
36
|
+
ml,
|
|
37
|
+
mr,
|
|
38
|
+
mx,
|
|
39
|
+
my,
|
|
40
|
+
padding,
|
|
41
|
+
paddingTop,
|
|
42
|
+
paddingBottom,
|
|
43
|
+
paddingLeft,
|
|
44
|
+
paddingRight,
|
|
45
|
+
p,
|
|
46
|
+
pt,
|
|
47
|
+
pb,
|
|
48
|
+
pr,
|
|
49
|
+
pl,
|
|
50
|
+
px,
|
|
51
|
+
py,
|
|
52
|
+
printHidden,
|
|
53
|
+
printVisible,
|
|
54
|
+
hidden,
|
|
55
|
+
xsUpHidden,
|
|
56
|
+
smUpHidden,
|
|
57
|
+
mdUpHidden,
|
|
58
|
+
lgUpHidden,
|
|
59
|
+
xlUpHidden,
|
|
60
|
+
xsHidden,
|
|
61
|
+
smHidden,
|
|
62
|
+
mdHidden,
|
|
63
|
+
lgHidden,
|
|
64
|
+
xlHidden,
|
|
65
|
+
className,
|
|
66
|
+
'aria-expanded': ariaExpanded,
|
|
67
|
+
...props
|
|
68
|
+
}: BaseProps<C>,
|
|
69
|
+
ref: React.ComponentPropsWithRef<C>['ref']
|
|
70
|
+
) {
|
|
71
|
+
const classNames = className?.split(' ') || [];
|
|
72
|
+
if (typeof children === 'string') {
|
|
73
|
+
children = [children];
|
|
74
|
+
}
|
|
75
|
+
if (Array.isArray(children)) {
|
|
76
|
+
const textClassNames = classNames
|
|
77
|
+
?.map((className) => `${className}__text`)
|
|
78
|
+
.join(' ');
|
|
79
|
+
children = children.map((child, index) => {
|
|
80
|
+
if (Array.isArray(child)) {
|
|
81
|
+
return child.map((child, index) => {
|
|
82
|
+
if (typeof child === 'string') {
|
|
83
|
+
return (
|
|
84
|
+
<Text key={index} className={textClassNames}>
|
|
85
|
+
{child}
|
|
86
|
+
</Text>
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
return child;
|
|
90
|
+
});
|
|
91
|
+
} else if (typeof child === 'string') {
|
|
92
|
+
return (
|
|
93
|
+
<Text
|
|
94
|
+
key={index}
|
|
95
|
+
className={textClassNames}
|
|
96
|
+
{...(props.onClick && {
|
|
97
|
+
onPress: props.onClick,
|
|
98
|
+
})}
|
|
99
|
+
>
|
|
100
|
+
{child}
|
|
101
|
+
</Text>
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
return child;
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
const Component = useMemo(() => {
|
|
108
|
+
const C = mapping[as as keyof JSX.IntrinsicElements] || View;
|
|
109
|
+
if (
|
|
110
|
+
classNames.find((className) =>
|
|
111
|
+
className.match(/__wrapper|__before|__after$/)
|
|
112
|
+
)
|
|
113
|
+
) {
|
|
114
|
+
return wrap(C);
|
|
115
|
+
}
|
|
116
|
+
return C;
|
|
117
|
+
}, [className]);
|
|
118
|
+
|
|
119
|
+
Object.keys(props).forEach((k) => {
|
|
120
|
+
if (k.startsWith('aria')) {
|
|
121
|
+
if (BooleanMapper[props[k as keyof typeof props]] !== undefined) {
|
|
122
|
+
props[k as keyof typeof props] =
|
|
123
|
+
BooleanMapper[props[k as keyof typeof props]];
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
return (
|
|
128
|
+
<Component
|
|
129
|
+
{...props}
|
|
130
|
+
ref={ref}
|
|
131
|
+
aria-expanded={
|
|
132
|
+
(ariaExpanded as unknown as string) === 'false'
|
|
133
|
+
? false
|
|
134
|
+
: ariaExpanded === true
|
|
135
|
+
? true
|
|
136
|
+
: undefined
|
|
137
|
+
}
|
|
138
|
+
className={basePropGenerator({
|
|
139
|
+
display,
|
|
140
|
+
margin,
|
|
141
|
+
marginTop,
|
|
142
|
+
marginBottom,
|
|
143
|
+
marginLeft,
|
|
144
|
+
marginRight,
|
|
145
|
+
m,
|
|
146
|
+
mt,
|
|
147
|
+
mb,
|
|
148
|
+
ml,
|
|
149
|
+
mr,
|
|
150
|
+
mx,
|
|
151
|
+
my,
|
|
152
|
+
padding,
|
|
153
|
+
paddingTop,
|
|
154
|
+
paddingBottom,
|
|
155
|
+
paddingLeft,
|
|
156
|
+
paddingRight,
|
|
157
|
+
p,
|
|
158
|
+
pt,
|
|
159
|
+
pb,
|
|
160
|
+
pr,
|
|
161
|
+
pl,
|
|
162
|
+
px,
|
|
163
|
+
py,
|
|
164
|
+
printHidden,
|
|
165
|
+
printVisible,
|
|
166
|
+
hidden,
|
|
167
|
+
xsUpHidden,
|
|
168
|
+
smUpHidden,
|
|
169
|
+
mdUpHidden,
|
|
170
|
+
lgUpHidden,
|
|
171
|
+
xlUpHidden,
|
|
172
|
+
xsHidden,
|
|
173
|
+
smHidden,
|
|
174
|
+
mdHidden,
|
|
175
|
+
lgHidden,
|
|
176
|
+
xlHidden,
|
|
177
|
+
className,
|
|
178
|
+
})}
|
|
179
|
+
>
|
|
180
|
+
{children}
|
|
181
|
+
</Component>
|
|
182
|
+
);
|
|
183
|
+
});
|
|
184
|
+
|
|
185
|
+
export default Base;
|
package/src/Base/index.tsx
CHANGED
|
@@ -1,257 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
type AsProp<C extends React.ElementType> = {
|
|
5
|
-
as?: C;
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
type PropsToOmit<C extends React.ElementType, P> = keyof (AsProp<C> & P);
|
|
9
|
-
|
|
10
|
-
// This is the first reusable type utility we built
|
|
11
|
-
type PolymorphicComponentProp<
|
|
12
|
-
C extends React.ElementType,
|
|
13
|
-
Props = Record<string, unknown>,
|
|
14
|
-
> = React.PropsWithChildren<Props & AsProp<C>> &
|
|
15
|
-
Omit<React.ComponentPropsWithoutRef<C>, PropsToOmit<C, Props>>;
|
|
16
|
-
|
|
17
|
-
// This is a new type utitlity with ref!
|
|
18
|
-
type PolymorphicComponentPropWithRef<
|
|
19
|
-
C extends React.ElementType,
|
|
20
|
-
Props = Record<string, unknown>,
|
|
21
|
-
> = PolymorphicComponentProp<C, Props> & { ref?: any };
|
|
22
|
-
|
|
23
|
-
// This is the type for the "ref" only
|
|
24
|
-
type PolymorphicRef<C extends React.ElementType> =
|
|
25
|
-
React.ComponentPropsWithRef<C>['ref'];
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* This is the updated component props using PolymorphicComponentPropWithRef
|
|
29
|
-
*/
|
|
30
|
-
export type BaseProps<C extends React.ElementType> =
|
|
31
|
-
PolymorphicComponentPropWithRef<
|
|
32
|
-
C,
|
|
33
|
-
{
|
|
34
|
-
/** margin is optional. It has not a default value. */
|
|
35
|
-
margin?: spacingValues;
|
|
36
|
-
/** marginTop is optional. It has not a default value. */
|
|
37
|
-
marginTop?: spacingValues;
|
|
38
|
-
/** marginBottom is optional. It has not a default value. */
|
|
39
|
-
marginBottom?: spacingValues;
|
|
40
|
-
/** marginLeft is optional. It has not a default value. */
|
|
41
|
-
marginLeft?: spacingValues;
|
|
42
|
-
/** marginRight is optional. It has not a default value. */
|
|
43
|
-
marginRight?: spacingValues;
|
|
44
|
-
/** Alternative for margin. Margin is optional. It has not a default value. */
|
|
45
|
-
m?: spacingValues;
|
|
46
|
-
/** Alternative for marginTop. MarginTop is optional. It has not a default value. */
|
|
47
|
-
mt?: spacingValues;
|
|
48
|
-
/** Alternative for marginBottom. MarginBottom is optional. It has not a default value. */
|
|
49
|
-
mb?: spacingValues;
|
|
50
|
-
/** Alternative for marginLeft. MarginLeft is optional. It has not a default value. */
|
|
51
|
-
ml?: spacingValues;
|
|
52
|
-
/** Alternative for marginRight. MarginRight is optional. It has not a default value. */
|
|
53
|
-
mr?: spacingValues;
|
|
54
|
-
/** Alternative for marginX. MarginX is optional. It has not a default value. */
|
|
55
|
-
mx?: spacingValues;
|
|
56
|
-
/** Alternative for marginY. MarginY is optional. It has not a default value. */
|
|
57
|
-
my?: spacingValues;
|
|
58
|
-
/** padding is optional. It has not a default value. */
|
|
59
|
-
padding?: spacingValues;
|
|
60
|
-
/** paddingTop is optional. It has not a default value. */
|
|
61
|
-
paddingTop?: spacingValues;
|
|
62
|
-
/** paddingBottom is optional. It has not a default value. */
|
|
63
|
-
paddingBottom?: spacingValues;
|
|
64
|
-
/** paddingLeft is optional. It has not a default value. */
|
|
65
|
-
paddingLeft?: spacingValues;
|
|
66
|
-
/** paddingRight is optional. It has not a default value. */
|
|
67
|
-
paddingRight?: spacingValues;
|
|
68
|
-
/** Alternative for padding. Padding is optional. It has not a default value. */
|
|
69
|
-
p?: spacingValues;
|
|
70
|
-
/** Alternative for paddingTop. PaddingTop is optional. It has not a default value. */
|
|
71
|
-
pt?: spacingValues;
|
|
72
|
-
/** Alternative for paddingBottom. PaddingBottom is optional. It has not a default value. */
|
|
73
|
-
pb?: spacingValues;
|
|
74
|
-
/** Alternative for paddingLeft. PaddingLeft is optional. It has not a default value. */
|
|
75
|
-
pl?: spacingValues;
|
|
76
|
-
/** Alternative for paddingRight. PaddingRight is optional. It has not a default value. */
|
|
77
|
-
pr?: spacingValues;
|
|
78
|
-
/** Alternative for paddingX. PaddingX is optional. It has not a default value. */
|
|
79
|
-
px?: spacingValues;
|
|
80
|
-
/** Alternative for paddingY. PaddingY is optional. It has not a default value. */
|
|
81
|
-
py?: spacingValues;
|
|
82
|
-
/** printHidden is optional. Default value is false. When true, the component is hidden at print. */
|
|
83
|
-
printHidden?: boolean;
|
|
84
|
-
/** printVisible is optional. When block, the component is displayed as block. When inline, the component is displayed as inline.*/
|
|
85
|
-
printVisible?: 'block' | 'inline';
|
|
86
|
-
/** Components will be hidden at all screen sizes. */
|
|
87
|
-
hidden?: boolean;
|
|
88
|
-
/** Components will be hidden from 'xs' screen size and up. */
|
|
89
|
-
xsUpHidden?: boolean;
|
|
90
|
-
/** Components will be hidden from 'sm' screen size and up. */
|
|
91
|
-
smUpHidden?: boolean;
|
|
92
|
-
/** Components will be hidden from 'md' screen size and up. */
|
|
93
|
-
mdUpHidden?: boolean;
|
|
94
|
-
/** Components will be hidden from 'lg' screen size and up. */
|
|
95
|
-
lgUpHidden?: boolean;
|
|
96
|
-
/** Components will be hidden from 'xl' screen size and up. */
|
|
97
|
-
xlUpHidden?: boolean;
|
|
98
|
-
/** Components will be hidden between xs and sm screen size. */
|
|
99
|
-
xsHidden?: boolean;
|
|
100
|
-
/** Components will be hidden between sm and md screen size. */
|
|
101
|
-
smHidden?: boolean;
|
|
102
|
-
/** Components will be hidden between md and lg screen size. */
|
|
103
|
-
mdHidden?: boolean;
|
|
104
|
-
/** Components will be hidden between lg and xl screen size. */
|
|
105
|
-
lgHidden?: boolean;
|
|
106
|
-
/** Components will be hidden between xl and 2xl screen size. */
|
|
107
|
-
xlHidden?: boolean;
|
|
108
|
-
}
|
|
109
|
-
>;
|
|
110
|
-
|
|
111
|
-
type spacingValues =
|
|
112
|
-
| 0
|
|
113
|
-
| 0.5
|
|
114
|
-
| 1
|
|
115
|
-
| 1.5
|
|
116
|
-
| 2
|
|
117
|
-
| 2.5
|
|
118
|
-
| 3
|
|
119
|
-
| 3.5
|
|
120
|
-
| 4
|
|
121
|
-
| 5
|
|
122
|
-
| 6
|
|
123
|
-
| 7
|
|
124
|
-
| 8
|
|
125
|
-
| 9
|
|
126
|
-
| 10
|
|
127
|
-
| 11
|
|
128
|
-
| 12
|
|
129
|
-
| 14
|
|
130
|
-
| 16
|
|
131
|
-
| 20
|
|
132
|
-
| 24
|
|
133
|
-
| 28
|
|
134
|
-
| 32
|
|
135
|
-
| 36
|
|
136
|
-
| 40
|
|
137
|
-
| 44
|
|
138
|
-
| 48
|
|
139
|
-
| 52
|
|
140
|
-
| 56
|
|
141
|
-
| 60
|
|
142
|
-
| 64
|
|
143
|
-
| 72
|
|
144
|
-
| 80
|
|
145
|
-
| 96;
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* This is the type used in the type annotation for the component
|
|
149
|
-
*/
|
|
150
|
-
type BaseComponent = <C extends React.ElementType = 'span'>(
|
|
151
|
-
props: BaseProps<C>
|
|
152
|
-
) => React.ReactNode | null;
|
|
153
|
-
|
|
154
|
-
export const Base: BaseComponent = React.forwardRef(function Base<
|
|
155
|
-
C extends React.ElementType = 'span',
|
|
156
|
-
>(
|
|
157
|
-
{
|
|
158
|
-
as,
|
|
159
|
-
margin,
|
|
160
|
-
marginTop,
|
|
161
|
-
marginBottom,
|
|
162
|
-
marginLeft,
|
|
163
|
-
marginRight,
|
|
164
|
-
m,
|
|
165
|
-
mt,
|
|
166
|
-
mb,
|
|
167
|
-
ml,
|
|
168
|
-
mr,
|
|
169
|
-
mx,
|
|
170
|
-
my,
|
|
171
|
-
padding,
|
|
172
|
-
paddingTop,
|
|
173
|
-
paddingBottom,
|
|
174
|
-
paddingLeft,
|
|
175
|
-
paddingRight,
|
|
176
|
-
p,
|
|
177
|
-
pt,
|
|
178
|
-
pb,
|
|
179
|
-
pr,
|
|
180
|
-
pl,
|
|
181
|
-
px,
|
|
182
|
-
py,
|
|
183
|
-
printHidden,
|
|
184
|
-
printVisible,
|
|
185
|
-
hidden,
|
|
186
|
-
xsUpHidden,
|
|
187
|
-
smUpHidden,
|
|
188
|
-
mdUpHidden,
|
|
189
|
-
lgUpHidden,
|
|
190
|
-
xlUpHidden,
|
|
191
|
-
xsHidden,
|
|
192
|
-
smHidden,
|
|
193
|
-
mdHidden,
|
|
194
|
-
lgHidden,
|
|
195
|
-
xlHidden,
|
|
196
|
-
children,
|
|
197
|
-
className,
|
|
198
|
-
...props
|
|
199
|
-
}: BaseProps<C>,
|
|
200
|
-
ref?: PolymorphicRef<C>
|
|
201
|
-
) {
|
|
202
|
-
const Component = as || 'span';
|
|
203
|
-
|
|
204
|
-
return (
|
|
205
|
-
<Component
|
|
206
|
-
className={clsx(className, {
|
|
207
|
-
[`ds-m-${margin}`]: margin !== undefined ? true : undefined,
|
|
208
|
-
[`ds-mt-${marginTop}`]: marginTop !== undefined ? true : undefined,
|
|
209
|
-
[`ds-mb-${marginBottom}`]:
|
|
210
|
-
marginBottom !== undefined ? true : undefined,
|
|
211
|
-
[`ds-mr-${marginRight}`]: marginRight !== undefined ? true : undefined,
|
|
212
|
-
[`ds-ml-${marginLeft}`]: marginLeft !== undefined ? true : undefined,
|
|
213
|
-
[`ds-m-${m}`]: m !== undefined ? true : undefined,
|
|
214
|
-
[`ds-mt-${mt}`]: mt !== undefined ? true : undefined,
|
|
215
|
-
[`ds-mb-${mb}`]: mb !== undefined ? true : undefined,
|
|
216
|
-
[`ds-mr-${mr}`]: mr !== undefined ? true : undefined,
|
|
217
|
-
[`ds-ml-${ml}`]: ml !== undefined ? true : undefined,
|
|
218
|
-
[`ds-mx-${mx}`]: mx !== undefined ? true : undefined,
|
|
219
|
-
[`ds-my-${my}`]: my !== undefined ? true : undefined,
|
|
220
|
-
[`ds-p-${padding}`]: padding !== undefined ? true : undefined,
|
|
221
|
-
[`ds-pt-${paddingTop}`]: paddingTop !== undefined ? true : undefined,
|
|
222
|
-
[`ds-pb-${paddingBottom}`]:
|
|
223
|
-
paddingBottom !== undefined ? true : undefined,
|
|
224
|
-
[`ds-pr-${paddingRight}`]:
|
|
225
|
-
paddingRight !== undefined ? true : undefined,
|
|
226
|
-
[`ds-pl-${paddingLeft}`]: paddingLeft !== undefined ? true : undefined,
|
|
227
|
-
[`ds-p-${p}`]: p !== undefined ? true : undefined,
|
|
228
|
-
[`ds-pt-${pt}`]: pt !== undefined ? true : undefined,
|
|
229
|
-
[`ds-pb-${pb}`]: pb !== undefined ? true : undefined,
|
|
230
|
-
[`ds-pr-${pr}`]: pr !== undefined ? true : undefined,
|
|
231
|
-
[`ds-pl-${pl}`]: pl !== undefined ? true : undefined,
|
|
232
|
-
[`ds-px-${px}`]: px !== undefined ? true : undefined,
|
|
233
|
-
[`ds-py-${py}`]: py !== undefined ? true : undefined,
|
|
234
|
-
'ds-print-hidden': !!printHidden,
|
|
235
|
-
'ds-print-visible-block': printVisible === 'block',
|
|
236
|
-
'ds-print-visible-inline': printVisible === 'inline',
|
|
237
|
-
'ds-hidden': !!hidden,
|
|
238
|
-
'ds-hidden-xs-up': !!xsUpHidden,
|
|
239
|
-
'ds-hidden-sm-up': !!smUpHidden,
|
|
240
|
-
'ds-hidden-md-up': !!mdUpHidden,
|
|
241
|
-
'ds-hidden-lg-up': !!lgUpHidden,
|
|
242
|
-
'ds-hidden-xl-up': !!xlUpHidden,
|
|
243
|
-
'ds-hidden-xs': !!xsHidden,
|
|
244
|
-
'ds-hidden-sm': !!smHidden,
|
|
245
|
-
'ds-hidden-md': !!mdHidden,
|
|
246
|
-
'ds-hidden-lg': !!lgHidden,
|
|
247
|
-
'ds-hidden-xl': !!xlHidden,
|
|
248
|
-
})}
|
|
249
|
-
ref={ref}
|
|
250
|
-
{...props}
|
|
251
|
-
>
|
|
252
|
-
{children}
|
|
253
|
-
</Component>
|
|
254
|
-
);
|
|
255
|
-
});
|
|
256
|
-
|
|
257
|
-
export default Base;
|
|
1
|
+
export * from '@digigov/react-core/Base/index.web';
|
|
2
|
+
export { default as default } from '@digigov/react-core/Base/index.web';
|