@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,55 @@
|
|
|
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 index_native_exports = {};
|
|
29
|
+
__export(index_native_exports, {
|
|
30
|
+
BaseInput: () => BaseInput,
|
|
31
|
+
default: () => index_native_default
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(index_native_exports);
|
|
34
|
+
var import_react = __toESM(require("react"));
|
|
35
|
+
var import_CheckboxInput = __toESM(require("@digigov/react-core/Base/compat/Input/CheckboxInput.native"));
|
|
36
|
+
var import_RadioInput = __toESM(require("@digigov/react-core/Base/compat/Input/RadioInput.native"));
|
|
37
|
+
var import_StringInput = require("@digigov/react-core/Base/compat/Input/StringInput.native");
|
|
38
|
+
const BaseInput = import_react.default.forwardRef(
|
|
39
|
+
function BaseInput2(props, ref) {
|
|
40
|
+
switch (props.type) {
|
|
41
|
+
case "radio":
|
|
42
|
+
return /* @__PURE__ */ import_react.default.createElement(import_RadioInput.default, { ref, ...props });
|
|
43
|
+
case "checkbox":
|
|
44
|
+
return /* @__PURE__ */ import_react.default.createElement(import_CheckboxInput.default, { ref, ...props });
|
|
45
|
+
default:
|
|
46
|
+
return /* @__PURE__ */ import_react.default.createElement(import_StringInput.StringInput, { ref, ...props });
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
var index_native_default = BaseInput;
|
|
51
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
52
|
+
0 && (module.exports = {
|
|
53
|
+
BaseInput
|
|
54
|
+
});
|
|
55
|
+
//# sourceMappingURL=index.native.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../src/Base/compat/Input/index.native.tsx"],
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport CheckboxInput, {\n CheckboxInputProps,\n} from '@digigov/react-core/Base/compat/Input/CheckboxInput.native';\nimport RadioInput, {\n RadioInputProps,\n} from '@digigov/react-core/Base/compat/Input/RadioInput.native';\nimport {\n StringInput,\n StringInputProps,\n} from '@digigov/react-core/Base/compat/Input/StringInput.native';\n\ntype InputProps = RadioInputProps | CheckboxInputProps | StringInputProps;\n\nexport const BaseInput = React.forwardRef<HTMLInputElement, InputProps>(\n function BaseInput(props, ref) {\n switch (props.type) {\n case 'radio':\n return <RadioInput ref={ref} {...props} />;\n case 'checkbox':\n return <CheckboxInput ref={ref} {...props} />;\n default:\n return <StringInput ref={ref} {...props} />;\n }\n }\n);\n\nexport default BaseInput;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAClB,2BAEO;AACP,wBAEO;AACP,yBAGO;AAIA,MAAM,YAAY,aAAAA,QAAM;AAAA,EAC7B,SAASC,WAAU,OAAO,KAAK;AAC7B,YAAQ,MAAM,MAAM;AAAA,MAClB,KAAK;AACH,eAAO,6BAAAD,QAAA,cAAC,kBAAAE,SAAA,EAAW,KAAW,GAAG,OAAO;AAAA,MAC1C,KAAK;AACH,eAAO,6BAAAF,QAAA,cAAC,qBAAAG,SAAA,EAAc,KAAW,GAAG,OAAO;AAAA,MAC7C;AACE,eAAO,6BAAAH,QAAA,cAAC,kCAAY,KAAW,GAAG,OAAO;AAAA,IAC7C;AAAA,EACF;AACF;AAEA,IAAO,uBAAQ;",
|
|
6
|
+
"names": ["React", "BaseInput", "RadioInput", "CheckboxInput"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
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 button_native_exports = {};
|
|
29
|
+
__export(button_native_exports, {
|
|
30
|
+
Button: () => Button,
|
|
31
|
+
CompatButton: () => CompatButton,
|
|
32
|
+
FormButton: () => FormButton
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(button_native_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_react_native = require("react-native");
|
|
37
|
+
var import_FormContext = require("@digigov/form/FormContext");
|
|
38
|
+
const FormButton = import_react.default.forwardRef(
|
|
39
|
+
function FormButton2({ onClick, ...props }, ref) {
|
|
40
|
+
const formContext = (0, import_react.useContext)(import_FormContext.FormContext);
|
|
41
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
42
|
+
CompatButton,
|
|
43
|
+
{
|
|
44
|
+
ref,
|
|
45
|
+
...props,
|
|
46
|
+
onClick: () => {
|
|
47
|
+
onClick && onClick({});
|
|
48
|
+
if (props.type) formContext?.[props.type]();
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
const CompatButton = import_react.default.forwardRef(
|
|
55
|
+
function CompatButton2({ onClick, ...props }, ref) {
|
|
56
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
57
|
+
import_react_native.Pressable,
|
|
58
|
+
{
|
|
59
|
+
onPress: onClick,
|
|
60
|
+
ref,
|
|
61
|
+
hitSlop: 10,
|
|
62
|
+
...props
|
|
63
|
+
}
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
);
|
|
67
|
+
const Button = import_react.default.forwardRef(
|
|
68
|
+
function Button2(props, ref) {
|
|
69
|
+
if (props.type && ["submit", "reset"].includes(props.type)) {
|
|
70
|
+
return /* @__PURE__ */ import_react.default.createElement(FormButton, { ref, ...props });
|
|
71
|
+
}
|
|
72
|
+
return /* @__PURE__ */ import_react.default.createElement(CompatButton, { ref, ...props });
|
|
73
|
+
}
|
|
74
|
+
);
|
|
75
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
76
|
+
0 && (module.exports = {
|
|
77
|
+
Button,
|
|
78
|
+
CompatButton,
|
|
79
|
+
FormButton
|
|
80
|
+
});
|
|
81
|
+
//# sourceMappingURL=button.native.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/Base/compat/button.native.tsx"],
|
|
4
|
+
"sourcesContent": ["import React, {\n ButtonHTMLAttributes,\n DetailedHTMLProps,\n useContext,\n} from 'react';\nimport { Pressable } from 'react-native';\n// @ts-expect-error - `@digigov/form` is to be removed as a dependency\nimport { FormContext } from '@digigov/form/FormContext';\n\n// TODO: Fix `ButtonProps` type\nexport type ButtonProps = Omit<\n DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>,\n 'ref'\n>;\n\nexport const FormButton = React.forwardRef<unknown, ButtonProps>(\n function FormButton({ onClick, ...props }, ref) {\n const formContext = useContext(FormContext);\n return (\n <CompatButton\n ref={ref}\n {...props}\n onClick={() => {\n onClick && onClick({} as React.MouseEvent<HTMLButtonElement>);\n if (props.type) formContext?.[props.type]();\n }}\n />\n );\n }\n);\n\n// TODO: Fix `ref` type\nexport const CompatButton = React.forwardRef<unknown, ButtonProps>(\n function CompatButton({ onClick, ...props }, ref) {\n return (\n <Pressable\n onPress={onClick as any}\n ref={ref as any}\n hitSlop={10}\n {...(props as any)}\n />\n );\n }\n);\n\nexport const Button = React.forwardRef<unknown, ButtonProps>(\n function Button(props, ref) {\n if (props.type && ['submit', 'reset'].includes(props.type)) {\n return <FormButton ref={ref} {...props} />;\n }\n return <CompatButton ref={ref} {...props} />;\n }\n);\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAIO;AACP,0BAA0B;AAE1B,yBAA4B;AAQrB,MAAM,aAAa,aAAAA,QAAM;AAAA,EAC9B,SAASC,YAAW,EAAE,SAAS,GAAG,MAAM,GAAG,KAAK;AAC9C,UAAM,kBAAc,yBAAW,8BAAW;AAC1C,WACE,6BAAAD,QAAA;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACC,GAAG;AAAA,QACJ,SAAS,MAAM;AACb,qBAAW,QAAQ,CAAC,CAAwC;AAC5D,cAAI,MAAM,KAAM,eAAc,MAAM,IAAI,EAAE;AAAA,QAC5C;AAAA;AAAA,IACF;AAAA,EAEJ;AACF;AAGO,MAAM,eAAe,aAAAA,QAAM;AAAA,EAChC,SAASE,cAAa,EAAE,SAAS,GAAG,MAAM,GAAG,KAAK;AAChD,WACE,6BAAAF,QAAA;AAAA,MAAC;AAAA;AAAA,QACC,SAAS;AAAA,QACT;AAAA,QACA,SAAS;AAAA,QACR,GAAI;AAAA;AAAA,IACP;AAAA,EAEJ;AACF;AAEO,MAAM,SAAS,aAAAA,QAAM;AAAA,EAC1B,SAASG,QAAO,OAAO,KAAK;AAC1B,QAAI,MAAM,QAAQ,CAAC,UAAU,OAAO,EAAE,SAAS,MAAM,IAAI,GAAG;AAC1D,aAAO,6BAAAH,QAAA,cAAC,cAAW,KAAW,GAAG,OAAO;AAAA,IAC1C;AACA,WAAO,6BAAAA,QAAA,cAAC,gBAAa,KAAW,GAAG,OAAO;AAAA,EAC5C;AACF;",
|
|
6
|
+
"names": ["React", "FormButton", "CompatButton", "Button"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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 details_native_exports = {};
|
|
29
|
+
__export(details_native_exports, {
|
|
30
|
+
default: () => details_native_default
|
|
31
|
+
});
|
|
32
|
+
module.exports = __toCommonJS(details_native_exports);
|
|
33
|
+
var import_react = __toESM(require("react"));
|
|
34
|
+
var import_react_native = require("react-native");
|
|
35
|
+
const CompatDetails = ({
|
|
36
|
+
children,
|
|
37
|
+
open = false,
|
|
38
|
+
placement,
|
|
39
|
+
closeIcon,
|
|
40
|
+
openIcon,
|
|
41
|
+
...props
|
|
42
|
+
}) => {
|
|
43
|
+
const [isExpanded, setIsExpanded] = (0, import_react.useState)(open);
|
|
44
|
+
(0, import_react.useEffect)(() => {
|
|
45
|
+
setIsExpanded(open);
|
|
46
|
+
}, [open]);
|
|
47
|
+
const toggleExpand = () => {
|
|
48
|
+
setIsExpanded(!isExpanded);
|
|
49
|
+
};
|
|
50
|
+
const [summaryContent, ...detailsContent] = import_react.Children.toArray(children);
|
|
51
|
+
const toggleIcon = closeIcon && openIcon ? /* @__PURE__ */ import_react.default.createElement(import_react_native.Text, null, isExpanded ? openIcon : closeIcon) : null;
|
|
52
|
+
return (
|
|
53
|
+
// TODO: Fix `props` type
|
|
54
|
+
// @ts-expect-error - `props` type is not compatible with `View` props
|
|
55
|
+
/* @__PURE__ */ import_react.default.createElement(import_react_native.View, { ...props }, /* @__PURE__ */ import_react.default.createElement(import_react_native.TouchableOpacity, { onPress: toggleExpand, style: styles.summaryContainer }, placement === "before" && toggleIcon, summaryContent, placement === "after" && toggleIcon), isExpanded && /* @__PURE__ */ import_react.default.createElement(import_react_native.View, null, detailsContent))
|
|
56
|
+
);
|
|
57
|
+
};
|
|
58
|
+
const styles = import_react_native.StyleSheet.create({
|
|
59
|
+
summaryContainer: {
|
|
60
|
+
flexDirection: "row",
|
|
61
|
+
alignItems: "center"
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
var details_native_default = CompatDetails;
|
|
65
|
+
//# sourceMappingURL=details.native.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/Base/compat/details.native.tsx"],
|
|
4
|
+
"sourcesContent": ["import React, {\n useEffect,\n useState,\n Children,\n DetailedHTMLProps,\n DetailsHTMLAttributes,\n} from 'react';\nimport { View, Text, TouchableOpacity, StyleSheet } from 'react-native';\n\ntype HTMLElementProps = Omit<\n DetailedHTMLProps<\n DetailsHTMLAttributes<HTMLDetailsElement>,\n HTMLDetailsElement\n >,\n 'ref'\n> & {\n closeIcon?: string;\n openIcon?: string;\n placement?: 'before' | 'after';\n};\n\nconst CompatDetails = ({\n children,\n open = false,\n placement,\n closeIcon,\n openIcon,\n ...props\n}: HTMLElementProps) => {\n const [isExpanded, setIsExpanded] = useState(open);\n\n useEffect(() => {\n setIsExpanded(open);\n }, [open]);\n\n const toggleExpand = () => {\n setIsExpanded(!isExpanded);\n };\n\n const [summaryContent, ...detailsContent] = Children.toArray(children);\n\n const toggleIcon =\n closeIcon && openIcon ? (\n <Text>{isExpanded ? openIcon : closeIcon}</Text>\n ) : null;\n\n return (\n // TODO: Fix `props` type\n // @ts-expect-error - `props` type is not compatible with `View` props\n <View {...props}>\n <TouchableOpacity onPress={toggleExpand} style={styles.summaryContainer}>\n {placement === 'before' && toggleIcon}\n {summaryContent}\n {placement === 'after' && toggleIcon}\n </TouchableOpacity>\n {isExpanded && <View>{detailsContent}</View>}\n </View>\n );\n};\n\nconst styles = StyleSheet.create({\n summaryContainer: {\n flexDirection: 'row',\n alignItems: 'center',\n },\n});\n\nexport default CompatDetails;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAMO;AACP,0BAAyD;AAczD,MAAM,gBAAgB,CAAC;AAAA,EACrB;AAAA,EACA,OAAO;AAAA,EACP;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAwB;AACtB,QAAM,CAAC,YAAY,aAAa,QAAI,uBAAS,IAAI;AAEjD,8BAAU,MAAM;AACd,kBAAc,IAAI;AAAA,EACpB,GAAG,CAAC,IAAI,CAAC;AAET,QAAM,eAAe,MAAM;AACzB,kBAAc,CAAC,UAAU;AAAA,EAC3B;AAEA,QAAM,CAAC,gBAAgB,GAAG,cAAc,IAAI,sBAAS,QAAQ,QAAQ;AAErE,QAAM,aACJ,aAAa,WACX,6BAAAA,QAAA,cAAC,gCAAM,aAAa,WAAW,SAAU,IACvC;AAEN;AAAA;AAAA;AAAA,IAGE,6BAAAA,QAAA,cAAC,4BAAM,GAAG,SACR,6BAAAA,QAAA,cAAC,wCAAiB,SAAS,cAAc,OAAO,OAAO,oBACpD,cAAc,YAAY,YAC1B,gBACA,cAAc,WAAW,UAC5B,GACC,cAAc,6BAAAA,QAAA,cAAC,gCAAM,cAAe,CACvC;AAAA;AAEJ;AAEA,MAAM,SAAS,+BAAW,OAAO;AAAA,EAC/B,kBAAkB;AAAA,IAChB,eAAe;AAAA,IACf,YAAY;AAAA,EACd;AACF,CAAC;AAED,IAAO,yBAAQ;",
|
|
6
|
+
"names": ["React"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
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 li_native_exports = {};
|
|
29
|
+
__export(li_native_exports, {
|
|
30
|
+
Li: () => Li
|
|
31
|
+
});
|
|
32
|
+
module.exports = __toCommonJS(li_native_exports);
|
|
33
|
+
var import_react = __toESM(require("react"));
|
|
34
|
+
var import_react_native = require("react-native");
|
|
35
|
+
const Li = (props) => {
|
|
36
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react_native.View, { ...props });
|
|
37
|
+
};
|
|
38
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
39
|
+
0 && (module.exports = {
|
|
40
|
+
Li
|
|
41
|
+
});
|
|
42
|
+
//# sourceMappingURL=li.native.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/Base/compat/li.native.tsx"],
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport { View } from 'react-native';\n\n// TODO: Fix `props` type\ninterface LiProps {\n [key: string]: any;\n}\n\nexport const Li = (props: LiProps) => {\n return <View {...props} />;\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAClB,0BAAqB;AAOd,MAAM,KAAK,CAAC,UAAmB;AACpC,SAAO,6BAAAA,QAAA,cAAC,4BAAM,GAAG,OAAO;AAC1B;",
|
|
6
|
+
"names": ["React"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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 ol_native_exports = {};
|
|
29
|
+
__export(ol_native_exports, {
|
|
30
|
+
Ol: () => Ol
|
|
31
|
+
});
|
|
32
|
+
module.exports = __toCommonJS(ol_native_exports);
|
|
33
|
+
var import_react = __toESM(require("react"));
|
|
34
|
+
var import_react_native = require("react-native");
|
|
35
|
+
const Ol = ({ children, className, ...props }) => {
|
|
36
|
+
let listStyle = "none";
|
|
37
|
+
if (className.includes("ds-list--bullet")) {
|
|
38
|
+
listStyle = "bullet";
|
|
39
|
+
}
|
|
40
|
+
if (className.includes("ds-list--number")) {
|
|
41
|
+
listStyle = "number";
|
|
42
|
+
}
|
|
43
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react_native.View, { ...props, className }, Array.isArray(children) ? children.map((child, index) => {
|
|
44
|
+
const counter = listStyle === "number" ? index + 1 : listStyle === "bullet" ? "\u2022" : null;
|
|
45
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
46
|
+
import_react_native.View,
|
|
47
|
+
{
|
|
48
|
+
key: index,
|
|
49
|
+
style: {
|
|
50
|
+
display: "flex",
|
|
51
|
+
flexDirection: "row",
|
|
52
|
+
flexWrap: "nowrap",
|
|
53
|
+
gap: 8,
|
|
54
|
+
width: "100%"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
/* @__PURE__ */ import_react.default.createElement(import_react_native.Text, null, counter),
|
|
58
|
+
child
|
|
59
|
+
);
|
|
60
|
+
}) : children);
|
|
61
|
+
};
|
|
62
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
63
|
+
0 && (module.exports = {
|
|
64
|
+
Ol
|
|
65
|
+
});
|
|
66
|
+
//# sourceMappingURL=ol.native.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/Base/compat/ol.native.tsx"],
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport { View, Text } from 'react-native';\n\nexport const Ol = ({ children, className, ...props }) => {\n let listStyle = 'none';\n if (className.includes('ds-list--bullet')) {\n listStyle = 'bullet';\n }\n if (className.includes('ds-list--number')) {\n listStyle = 'number';\n }\n return (\n <View {...props} className={className}>\n {Array.isArray(children)\n ? children.map((child, index) => {\n const counter =\n listStyle === 'number'\n ? index + 1\n : listStyle === 'bullet'\n ? '\u2022'\n : null;\n return (\n <View\n key={index}\n style={{\n display: 'flex',\n flexDirection: 'row',\n flexWrap: 'nowrap',\n gap: 8,\n width: '100%',\n }}\n >\n <Text>{counter}</Text>\n {child}\n </View>\n );\n })\n : children}\n </View>\n );\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAClB,0BAA2B;AAEpB,MAAM,KAAK,CAAC,EAAE,UAAU,WAAW,GAAG,MAAM,MAAM;AACvD,MAAI,YAAY;AAChB,MAAI,UAAU,SAAS,iBAAiB,GAAG;AACzC,gBAAY;AAAA,EACd;AACA,MAAI,UAAU,SAAS,iBAAiB,GAAG;AACzC,gBAAY;AAAA,EACd;AACA,SACE,6BAAAA,QAAA,cAAC,4BAAM,GAAG,OAAO,aACd,MAAM,QAAQ,QAAQ,IACnB,SAAS,IAAI,CAAC,OAAO,UAAU;AAC7B,UAAM,UACJ,cAAc,WACV,QAAQ,IACR,cAAc,WACZ,WACA;AACR,WACE,6BAAAA,QAAA;AAAA,MAAC;AAAA;AAAA,QACC,KAAK;AAAA,QACL,OAAO;AAAA,UACL,SAAS;AAAA,UACT,eAAe;AAAA,UACf,UAAU;AAAA,UACV,KAAK;AAAA,UACL,OAAO;AAAA,QACT;AAAA;AAAA,MAEA,6BAAAA,QAAA,cAAC,gCAAM,OAAQ;AAAA,MACd;AAAA,IACH;AAAA,EAEJ,CAAC,IACD,QACN;AAEJ;",
|
|
6
|
+
"names": ["React"]
|
|
7
|
+
}
|
package/cjs/Base/index.js
CHANGED
|
@@ -16,6 +16,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
}
|
|
17
17
|
return to;
|
|
18
18
|
};
|
|
19
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
19
20
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
21
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
22
|
// file that has been converted to a CommonJS file using a Babel-
|
|
@@ -27,108 +28,13 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
29
|
var Base_exports = {};
|
|
29
30
|
__export(Base_exports, {
|
|
30
|
-
|
|
31
|
-
default: () => Base_default
|
|
31
|
+
default: () => import_Base.default
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(Base_exports);
|
|
34
|
-
|
|
35
|
-
var
|
|
36
|
-
const Base = import_react.default.forwardRef(function Base2({
|
|
37
|
-
as,
|
|
38
|
-
margin,
|
|
39
|
-
marginTop,
|
|
40
|
-
marginBottom,
|
|
41
|
-
marginLeft,
|
|
42
|
-
marginRight,
|
|
43
|
-
m,
|
|
44
|
-
mt,
|
|
45
|
-
mb,
|
|
46
|
-
ml,
|
|
47
|
-
mr,
|
|
48
|
-
mx,
|
|
49
|
-
my,
|
|
50
|
-
padding,
|
|
51
|
-
paddingTop,
|
|
52
|
-
paddingBottom,
|
|
53
|
-
paddingLeft,
|
|
54
|
-
paddingRight,
|
|
55
|
-
p,
|
|
56
|
-
pt,
|
|
57
|
-
pb,
|
|
58
|
-
pr,
|
|
59
|
-
pl,
|
|
60
|
-
px,
|
|
61
|
-
py,
|
|
62
|
-
printHidden,
|
|
63
|
-
printVisible,
|
|
64
|
-
hidden,
|
|
65
|
-
xsUpHidden,
|
|
66
|
-
smUpHidden,
|
|
67
|
-
mdUpHidden,
|
|
68
|
-
lgUpHidden,
|
|
69
|
-
xlUpHidden,
|
|
70
|
-
xsHidden,
|
|
71
|
-
smHidden,
|
|
72
|
-
mdHidden,
|
|
73
|
-
lgHidden,
|
|
74
|
-
xlHidden,
|
|
75
|
-
children,
|
|
76
|
-
className,
|
|
77
|
-
...props
|
|
78
|
-
}, ref) {
|
|
79
|
-
const Component = as || "span";
|
|
80
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
81
|
-
Component,
|
|
82
|
-
{
|
|
83
|
-
className: (0, import_clsx.default)(className, {
|
|
84
|
-
[`ds-m-${margin}`]: margin !== void 0 ? true : void 0,
|
|
85
|
-
[`ds-mt-${marginTop}`]: marginTop !== void 0 ? true : void 0,
|
|
86
|
-
[`ds-mb-${marginBottom}`]: marginBottom !== void 0 ? true : void 0,
|
|
87
|
-
[`ds-mr-${marginRight}`]: marginRight !== void 0 ? true : void 0,
|
|
88
|
-
[`ds-ml-${marginLeft}`]: marginLeft !== void 0 ? true : void 0,
|
|
89
|
-
[`ds-m-${m}`]: m !== void 0 ? true : void 0,
|
|
90
|
-
[`ds-mt-${mt}`]: mt !== void 0 ? true : void 0,
|
|
91
|
-
[`ds-mb-${mb}`]: mb !== void 0 ? true : void 0,
|
|
92
|
-
[`ds-mr-${mr}`]: mr !== void 0 ? true : void 0,
|
|
93
|
-
[`ds-ml-${ml}`]: ml !== void 0 ? true : void 0,
|
|
94
|
-
[`ds-mx-${mx}`]: mx !== void 0 ? true : void 0,
|
|
95
|
-
[`ds-my-${my}`]: my !== void 0 ? true : void 0,
|
|
96
|
-
[`ds-p-${padding}`]: padding !== void 0 ? true : void 0,
|
|
97
|
-
[`ds-pt-${paddingTop}`]: paddingTop !== void 0 ? true : void 0,
|
|
98
|
-
[`ds-pb-${paddingBottom}`]: paddingBottom !== void 0 ? true : void 0,
|
|
99
|
-
[`ds-pr-${paddingRight}`]: paddingRight !== void 0 ? true : void 0,
|
|
100
|
-
[`ds-pl-${paddingLeft}`]: paddingLeft !== void 0 ? true : void 0,
|
|
101
|
-
[`ds-p-${p}`]: p !== void 0 ? true : void 0,
|
|
102
|
-
[`ds-pt-${pt}`]: pt !== void 0 ? true : void 0,
|
|
103
|
-
[`ds-pb-${pb}`]: pb !== void 0 ? true : void 0,
|
|
104
|
-
[`ds-pr-${pr}`]: pr !== void 0 ? true : void 0,
|
|
105
|
-
[`ds-pl-${pl}`]: pl !== void 0 ? true : void 0,
|
|
106
|
-
[`ds-px-${px}`]: px !== void 0 ? true : void 0,
|
|
107
|
-
[`ds-py-${py}`]: py !== void 0 ? true : void 0,
|
|
108
|
-
"ds-print-hidden": !!printHidden,
|
|
109
|
-
"ds-print-visible-block": printVisible === "block",
|
|
110
|
-
"ds-print-visible-inline": printVisible === "inline",
|
|
111
|
-
"ds-hidden": !!hidden,
|
|
112
|
-
"ds-hidden-xs-up": !!xsUpHidden,
|
|
113
|
-
"ds-hidden-sm-up": !!smUpHidden,
|
|
114
|
-
"ds-hidden-md-up": !!mdUpHidden,
|
|
115
|
-
"ds-hidden-lg-up": !!lgUpHidden,
|
|
116
|
-
"ds-hidden-xl-up": !!xlUpHidden,
|
|
117
|
-
"ds-hidden-xs": !!xsHidden,
|
|
118
|
-
"ds-hidden-sm": !!smHidden,
|
|
119
|
-
"ds-hidden-md": !!mdHidden,
|
|
120
|
-
"ds-hidden-lg": !!lgHidden,
|
|
121
|
-
"ds-hidden-xl": !!xlHidden
|
|
122
|
-
}),
|
|
123
|
-
ref,
|
|
124
|
-
...props
|
|
125
|
-
},
|
|
126
|
-
children
|
|
127
|
-
);
|
|
128
|
-
});
|
|
129
|
-
var Base_default = Base;
|
|
34
|
+
__reExport(Base_exports, require("@digigov/react-core/Base/index.web"), module.exports);
|
|
35
|
+
var import_Base = __toESM(require("@digigov/react-core/Base/index.web"));
|
|
130
36
|
// Annotate the CommonJS export names for ESM import in node:
|
|
131
37
|
0 && (module.exports = {
|
|
132
|
-
Base
|
|
38
|
+
...require("@digigov/react-core/Base/index.web")
|
|
133
39
|
});
|
|
134
40
|
//# sourceMappingURL=index.js.map
|
package/cjs/Base/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/Base/index.tsx"],
|
|
4
|
-
"sourcesContent": ["
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": [
|
|
4
|
+
"sourcesContent": ["export * from '@digigov/react-core/Base/index.web';\nexport { default as default } from '@digigov/react-core/Base/index.web';\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yBAAc,+CAAd;AACA,kBAAmC;",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|