@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
package/Details/index.d.ts
CHANGED
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export interface DetailsProps extends BaseProps<'details'> {
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* Details is used to make a page easier to scan when it contains information that only some users will need.
|
|
7
|
-
* Details component wraps DetailsSummary and DetailsContent as children components
|
|
8
|
-
*/
|
|
9
|
-
export declare const Details: React.ForwardRefExoticComponent<Omit<DetailsProps, "ref"> & React.RefAttributes<HTMLDetailsElement>>;
|
|
10
|
-
export default Details;
|
|
1
|
+
export * from "@digigov/react-core/Details/index.web";
|
|
2
|
+
export { default as default } from "@digigov/react-core/Details/index.web";
|
package/Details/index.js
CHANGED
|
@@ -1,25 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import Base from "@digigov/react-core/Base";
|
|
4
|
-
const Details = React.forwardRef(
|
|
5
|
-
function Details2({ className, children, ...props }, ref) {
|
|
6
|
-
return /* @__PURE__ */ React.createElement(
|
|
7
|
-
Base,
|
|
8
|
-
{
|
|
9
|
-
as: "details",
|
|
10
|
-
ref,
|
|
11
|
-
className: clsx(className, {
|
|
12
|
-
"ds-details": true
|
|
13
|
-
}),
|
|
14
|
-
...props
|
|
15
|
-
},
|
|
16
|
-
children
|
|
17
|
-
);
|
|
18
|
-
}
|
|
19
|
-
);
|
|
20
|
-
var Details_default = Details;
|
|
1
|
+
export * from "@digigov/react-core/Details/index.web";
|
|
2
|
+
import { default as default2 } from "@digigov/react-core/Details/index.web";
|
|
21
3
|
export {
|
|
22
|
-
|
|
23
|
-
Details_default as default
|
|
4
|
+
default2 as default
|
|
24
5
|
};
|
|
25
6
|
//# sourceMappingURL=index.js.map
|
package/Details/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Details/index.tsx"],
|
|
4
|
-
"sourcesContent": ["
|
|
5
|
-
"mappings": "AAAA,
|
|
6
|
-
"names": ["
|
|
4
|
+
"sourcesContent": ["export * from \"@digigov/react-core/Details/index.web\";\nexport {default as default} from \"@digigov/react-core/Details/index.web\";"],
|
|
5
|
+
"mappings": "AAAA,cAAc;AACd,SAAmB,WAAXA,gBAAyB;",
|
|
6
|
+
"names": ["default"]
|
|
7
7
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import CoreDetails from "@digigov/react-core/Details/index.web";
|
|
2
|
+
import { extend } from "@digigov/react-core/utils/extend.native";
|
|
3
|
+
const Details = extend(CoreDetails, ({ className, ...props }) => {
|
|
4
|
+
return {
|
|
5
|
+
className,
|
|
6
|
+
closeIcon: "\u25B6",
|
|
7
|
+
openIcon: "\u25BC",
|
|
8
|
+
placement: "before",
|
|
9
|
+
...props
|
|
10
|
+
};
|
|
11
|
+
});
|
|
12
|
+
var index_native_default = Details;
|
|
13
|
+
export {
|
|
14
|
+
Details,
|
|
15
|
+
index_native_default as default
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=index.native.js.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const Details: import("react").ForwardRefExoticComponent<Omit<Omit<import("@digigov/react-core/Details/index.web").DetailsProps, "ref"> & import("react").RefAttributes<HTMLDetailsElement> & {
|
|
2
|
+
className?: string;
|
|
3
|
+
}, "ref"> & import("react").RefAttributes<unknown>>;
|
|
4
|
+
export default Details;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/Details/index.native.tsx"],
|
|
4
|
+
"sourcesContent": ["import CoreDetails from '@digigov/react-core/Details/index.web';\nimport { extend } from '@digigov/react-core/utils/extend.native';\n\nexport const Details = extend(CoreDetails, ({ className, ...props }) => {\n return {\n className,\n closeIcon: '\u25B6',\n openIcon: '\u25BC',\n placement: 'before',\n ...props,\n };\n});\n\nexport default Details;\n"],
|
|
5
|
+
"mappings": "AAAA,OAAO,iBAAiB;AACxB,SAAS,cAAc;AAEhB,MAAM,UAAU,OAAO,aAAa,CAAC,EAAE,WAAW,GAAG,MAAM,MAAM;AACtE,SAAO;AAAA,IACL;AAAA,IACA,WAAW;AAAA,IACX,UAAU;AAAA,IACV,WAAW;AAAA,IACX,GAAG;AAAA,EACL;AACF,CAAC;AAED,IAAO,uBAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
import Base from "@digigov/react-core/Base";
|
|
4
|
+
const Details = React.forwardRef(
|
|
5
|
+
function Details2({ className, children, ...props }, ref) {
|
|
6
|
+
return /* @__PURE__ */ React.createElement(
|
|
7
|
+
Base,
|
|
8
|
+
{
|
|
9
|
+
as: "details",
|
|
10
|
+
ref,
|
|
11
|
+
className: clsx(className, {
|
|
12
|
+
"ds-details": true
|
|
13
|
+
}),
|
|
14
|
+
...props
|
|
15
|
+
},
|
|
16
|
+
children
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
var index_web_default = Details;
|
|
21
|
+
export {
|
|
22
|
+
Details,
|
|
23
|
+
index_web_default as default
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=index.web.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseProps } from '@digigov/react-core/Base';
|
|
3
|
+
export interface DetailsProps extends BaseProps<'details'> {
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Details is used to make a page easier to scan when it contains information that only some users will need.
|
|
7
|
+
* Details component wraps DetailsSummary and DetailsContent as children components
|
|
8
|
+
*/
|
|
9
|
+
export declare const Details: React.ForwardRefExoticComponent<Omit<DetailsProps, "ref"> & React.RefAttributes<HTMLDetailsElement>>;
|
|
10
|
+
export default Details;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/Details/index.web.tsx"],
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface DetailsProps extends BaseProps<'details'> { }\n/**\n * Details is used to make a page easier to scan when it contains information that only some users will need.\n * Details component wraps DetailsSummary and DetailsContent as children components\n */\nexport const Details = React.forwardRef<HTMLDetailsElement, DetailsProps>(\n function Details({ className, children, ...props }, ref) {\n return (\n <Base\n as=\"details\"\n ref={ref}\n className={clsx(className, {\n 'ds-details': true,\n })}\n {...props}\n >\n {children}\n </Base>\n );\n }\n);\n\nexport default Details;\n"],
|
|
5
|
+
"mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;AAOzB,MAAM,UAAU,MAAM;AAAA,EAC3B,SAASA,SAAQ,EAAE,WAAW,UAAU,GAAG,MAAM,GAAG,KAAK;AACvD,WACE;AAAA,MAAC;AAAA;AAAA,QACC,IAAG;AAAA,QACH;AAAA,QACA,WAAW,KAAK,WAAW;AAAA,UACzB,cAAc;AAAA,QAChB,CAAC;AAAA,QACA,GAAG;AAAA;AAAA,MAEH;AAAA,IACH;AAAA,EAEJ;AACF;AAEA,IAAO,oBAAQ;",
|
|
6
|
+
"names": ["Details"]
|
|
7
|
+
}
|
package/FieldsetLegend/index.js
CHANGED
|
@@ -9,10 +9,7 @@ const FieldsetLegend = React.forwardRef(function FieldsetLegend2({ size = "lg",
|
|
|
9
9
|
ref,
|
|
10
10
|
className: clsx(className, {
|
|
11
11
|
"ds-fieldset__legend": true,
|
|
12
|
-
|
|
13
|
-
"ds-heading-lg": size === "lg",
|
|
14
|
-
"ds-heading-md": size === "md",
|
|
15
|
-
"ds-heading-sm": size === "sm"
|
|
12
|
+
[`ds-fieldset__legend--${size}`]: size !== void 0
|
|
16
13
|
}),
|
|
17
14
|
...heading && { role: "heading", "aria-level": 1 },
|
|
18
15
|
...props
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/FieldsetLegend/index.tsx"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface FieldsetLegendProps extends BaseProps<'legend'> {\n /**\n * size is optional. The default value is 'lg'\n * @value 'xl'\n * @value 'lg'\n * @value 'md'\n * @value 'sm'\n * @default 'lg'\n */\n size?: 'xl' | 'lg' | 'md' | 'sm';\n\n /**\n * heading is optional.\n * Add this prop if this Fieldset component is the only one in this page.\n * The default value is false.\n * @value true\n * @value false\n * @default false\n */\n heading?: boolean;\n}\n/**\n * FieldsetLegend component is the title within a Fieldset component.\n */\nexport const FieldsetLegend = React.forwardRef<\n HTMLLegendElement,\n FieldsetLegendProps\n>(function FieldsetLegend(\n { size = 'lg', heading = false, className, children, ...props },\n ref\n) {\n return (\n <Base\n as=\"legend\"\n ref={ref}\n className={clsx(className, {\n 'ds-fieldset__legend': true,\n
|
|
5
|
-
"mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;AA0BzB,MAAM,iBAAiB,MAAM,WAGlC,SAASA,gBACT,EAAE,OAAO,MAAM,UAAU,OAAO,WAAW,UAAU,GAAG,MAAM,GAC9D,KACA;AACA,SACE;AAAA,IAAC;AAAA;AAAA,MACC,IAAG;AAAA,MACH;AAAA,MACA,WAAW,KAAK,WAAW;AAAA,QACzB,uBAAuB;AAAA,QACvB,
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface FieldsetLegendProps extends BaseProps<'legend'> {\n /**\n * size is optional. The default value is 'lg'\n * @value 'xl'\n * @value 'lg'\n * @value 'md'\n * @value 'sm'\n * @default 'lg'\n */\n size?: 'xl' | 'lg' | 'md' | 'sm';\n\n /**\n * heading is optional.\n * Add this prop if this Fieldset component is the only one in this page.\n * The default value is false.\n * @value true\n * @value false\n * @default false\n */\n heading?: boolean;\n}\n/**\n * FieldsetLegend component is the title within a Fieldset component.\n */\nexport const FieldsetLegend = React.forwardRef<\n HTMLLegendElement,\n FieldsetLegendProps\n>(function FieldsetLegend(\n { size = 'lg', heading = false, className, children, ...props },\n ref\n) {\n return (\n <Base\n as=\"legend\"\n ref={ref}\n className={clsx(className, {\n 'ds-fieldset__legend': true,\n [`ds-fieldset__legend--${size}`]: size !== undefined,\n })}\n {...(heading && { role: 'heading', 'aria-level': 1 })}\n {...props}\n >\n {children}\n </Base>\n );\n});\n\nexport default FieldsetLegend;\n"],
|
|
5
|
+
"mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;AA0BzB,MAAM,iBAAiB,MAAM,WAGlC,SAASA,gBACT,EAAE,OAAO,MAAM,UAAU,OAAO,WAAW,UAAU,GAAG,MAAM,GAC9D,KACA;AACA,SACE;AAAA,IAAC;AAAA;AAAA,MACC,IAAG;AAAA,MACH;AAAA,MACA,WAAW,KAAK,WAAW;AAAA,QACzB,uBAAuB;AAAA,QACvB,CAAC,wBAAwB,IAAI,EAAE,GAAG,SAAS;AAAA,MAC7C,CAAC;AAAA,MACA,GAAI,WAAW,EAAE,MAAM,WAAW,cAAc,EAAE;AAAA,MAClD,GAAG;AAAA;AAAA,IAEH;AAAA,EACH;AAEJ,CAAC;AAED,IAAO,yBAAQ;",
|
|
6
6
|
"names": ["FieldsetLegend"]
|
|
7
7
|
}
|
package/LabelTitle/index.js
CHANGED
|
@@ -9,10 +9,8 @@ const LabelTitle = React.forwardRef(
|
|
|
9
9
|
as: "span",
|
|
10
10
|
ref,
|
|
11
11
|
className: clsx(className, {
|
|
12
|
-
"ds-
|
|
13
|
-
|
|
14
|
-
"ds-heading-md": size === "md",
|
|
15
|
-
"ds-heading-sm": size === "sm"
|
|
12
|
+
"ds-label__title": true,
|
|
13
|
+
[`ds-label__title--${size}`]: size !== void 0
|
|
16
14
|
}),
|
|
17
15
|
...heading && { role: "heading", "aria-level": 1 },
|
|
18
16
|
...props
|
package/LabelTitle/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/LabelTitle/index.tsx"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface LabelFieldProps extends BaseProps<'span'> {\n /**\n * size is optional. The default value is 'lg'\n * @value 'xl'\n * @value 'lg'\n * @value 'md'\n * @value 'sm'\n */\n size?: 'xl' | 'lg' | 'md' | 'sm';\n /**\n * heading is optional.\n * Add this prop if this Field component is the only one in this page.\n * The default value is false.\n * @value true\n * @value false\n * @default false\n */\n heading?: boolean;\n}\n/**\n * Label component defines a label for several elements at forms.\n */\nexport const LabelTitle = React.forwardRef<HTMLSpanElement, LabelFieldProps>(\n function LabelTitle(\n { size, className, heading = false, children, ...props },\n ref\n ) {\n return (\n <Base\n as=\"span\"\n ref={ref}\n className={clsx(className, {\n 'ds-
|
|
5
|
-
"mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;AAwBzB,MAAM,aAAa,MAAM;AAAA,EAC9B,SAASA,YACP,EAAE,MAAM,WAAW,UAAU,OAAO,UAAU,GAAG,MAAM,GACvD,KACA;AACA,WACE;AAAA,MAAC;AAAA;AAAA,QACC,IAAG;AAAA,QACH;AAAA,QACA,WAAW,KAAK,WAAW;AAAA,UACzB,
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface LabelFieldProps extends BaseProps<'span'> {\n /**\n * size is optional. The default value is 'lg'\n * @value 'xl'\n * @value 'lg'\n * @value 'md'\n * @value 'sm'\n */\n size?: 'xl' | 'lg' | 'md' | 'sm';\n /**\n * heading is optional.\n * Add this prop if this Field component is the only one in this page.\n * The default value is false.\n * @value true\n * @value false\n * @default false\n */\n heading?: boolean;\n}\n/**\n * Label component defines a label for several elements at forms.\n */\nexport const LabelTitle = React.forwardRef<HTMLSpanElement, LabelFieldProps>(\n function LabelTitle(\n { size, className, heading = false, children, ...props },\n ref\n ) {\n return (\n <Base\n as=\"span\"\n ref={ref}\n className={clsx(className, {\n 'ds-label__title': true,\n [`ds-label__title--${size}`]: size !== undefined,\n })}\n {...(heading && { role: 'heading', 'aria-level': 1 })}\n {...props}\n >\n {children}\n </Base>\n );\n }\n);\n\nexport default LabelTitle;\n"],
|
|
5
|
+
"mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;AAwBzB,MAAM,aAAa,MAAM;AAAA,EAC9B,SAASA,YACP,EAAE,MAAM,WAAW,UAAU,OAAO,UAAU,GAAG,MAAM,GACvD,KACA;AACA,WACE;AAAA,MAAC;AAAA;AAAA,QACC,IAAG;AAAA,QACH;AAAA,QACA,WAAW,KAAK,WAAW;AAAA,UACzB,mBAAmB;AAAA,UACnB,CAAC,oBAAoB,IAAI,EAAE,GAAG,SAAS;AAAA,QACzC,CAAC;AAAA,QACA,GAAI,WAAW,EAAE,MAAM,WAAW,cAAc,EAAE;AAAA,QAClD,GAAG;AAAA;AAAA,MAEH;AAAA,IACH;AAAA,EAEJ;AACF;AAEA,IAAO,qBAAQ;",
|
|
6
6
|
"names": ["LabelTitle"]
|
|
7
7
|
}
|
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export interface NavListItemActionContainerProps extends BaseProps<'li'> {
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* NavListItemActionContainer must be inside the NavList.
|
|
7
|
-
* This component has a items of NavListItemLink component inside.
|
|
8
|
-
*/
|
|
9
|
-
export declare const NavListItemActionContainer: React.ForwardRefExoticComponent<Omit<NavListItemActionContainerProps, "ref"> & React.RefAttributes<HTMLLIElement>>;
|
|
10
|
-
export default NavListItemActionContainer;
|
|
1
|
+
export * from '@digigov/react-core/NavListItemActionContainer/index.web';
|
|
2
|
+
export { default as default } from '@digigov/react-core/NavListItemActionContainer/index.web';
|
|
@@ -1,23 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import Base from "@digigov/react-core/Base";
|
|
4
|
-
const NavListItemActionContainer = React.forwardRef(function NavListItemActionContainer2({ className, children, ...props }, ref) {
|
|
5
|
-
return /* @__PURE__ */ React.createElement(
|
|
6
|
-
Base,
|
|
7
|
-
{
|
|
8
|
-
as: "li",
|
|
9
|
-
ref,
|
|
10
|
-
className: clsx(className, {
|
|
11
|
-
"ds-nav__list-item": true
|
|
12
|
-
}),
|
|
13
|
-
...props
|
|
14
|
-
},
|
|
15
|
-
children
|
|
16
|
-
);
|
|
17
|
-
});
|
|
18
|
-
var NavListItemActionContainer_default = NavListItemActionContainer;
|
|
1
|
+
export * from "@digigov/react-core/NavListItemActionContainer/index.web";
|
|
2
|
+
import { default as default2 } from "@digigov/react-core/NavListItemActionContainer/index.web";
|
|
19
3
|
export {
|
|
20
|
-
|
|
21
|
-
NavListItemActionContainer_default as default
|
|
4
|
+
default2 as default
|
|
22
5
|
};
|
|
23
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/NavListItemActionContainer/index.tsx"],
|
|
4
|
-
"sourcesContent": ["
|
|
5
|
-
"mappings": "AAAA,
|
|
6
|
-
"names": ["
|
|
4
|
+
"sourcesContent": ["export * from '@digigov/react-core/NavListItemActionContainer/index.web';\nexport { default as default } from '@digigov/react-core/NavListItemActionContainer/index.web';\n"],
|
|
5
|
+
"mappings": "AAAA,cAAc;AACd,SAAoB,WAAXA,gBAA0B;",
|
|
6
|
+
"names": ["default"]
|
|
7
7
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import clsx from "clsx";
|
|
2
|
+
import CoreNavListItemActionContainer from "@digigov/react-core/NavListItemActionContainer/index.web";
|
|
3
|
+
import extend from "@digigov/react-core/utils/extend.native";
|
|
4
|
+
const NavListItemActionContainer = extend(CoreNavListItemActionContainer, ({ className, borderBottom, ...props }) => {
|
|
5
|
+
return {
|
|
6
|
+
...props,
|
|
7
|
+
className: clsx(className, {
|
|
8
|
+
"ds-nav__list-item--border-bottom": borderBottom
|
|
9
|
+
})
|
|
10
|
+
};
|
|
11
|
+
});
|
|
12
|
+
var index_native_default = NavListItemActionContainer;
|
|
13
|
+
export {
|
|
14
|
+
NavListItemActionContainer,
|
|
15
|
+
index_native_default as default
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=index.native.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { NavListItemActionContainerProps } from '@digigov/react-core/NavListItemActionContainer/index.web';
|
|
2
|
+
export declare const NavListItemActionContainer: import("react").ForwardRefExoticComponent<Omit<NavListItemActionContainerProps & {
|
|
3
|
+
borderBottom?: boolean;
|
|
4
|
+
} & {
|
|
5
|
+
className?: string;
|
|
6
|
+
}, "ref"> & import("react").RefAttributes<unknown>>;
|
|
7
|
+
export default NavListItemActionContainer;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/NavListItemActionContainer/index.native.tsx"],
|
|
4
|
+
"sourcesContent": ["import clsx from 'clsx';\nimport CoreNavListItemActionContainer, {\n NavListItemActionContainerProps,\n} from '@digigov/react-core/NavListItemActionContainer/index.web';\nimport extend from '@digigov/react-core/utils/extend.native';\n\nexport const NavListItemActionContainer = extend<\n NavListItemActionContainerProps,\n { borderBottom?: boolean }\n>(CoreNavListItemActionContainer, ({ className, borderBottom, ...props }) => {\n return {\n ...props,\n className: clsx(className, {\n 'ds-nav__list-item--border-bottom': borderBottom,\n }),\n };\n});\nexport default NavListItemActionContainer;\n"],
|
|
5
|
+
"mappings": "AAAA,OAAO,UAAU;AACjB,OAAO,oCAEA;AACP,OAAO,YAAY;AAEZ,MAAM,6BAA6B,OAGxC,gCAAgC,CAAC,EAAE,WAAW,cAAc,GAAG,MAAM,MAAM;AAC3E,SAAO;AAAA,IACL,GAAG;AAAA,IACH,WAAW,KAAK,WAAW;AAAA,MACzB,oCAAoC;AAAA,IACtC,CAAC;AAAA,EACH;AACF,CAAC;AACD,IAAO,uBAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
import Base from "@digigov/react-core/Base";
|
|
4
|
+
const NavListItemActionContainer = React.forwardRef(function NavListItemActionContainer2({ className, children, ...props }, ref) {
|
|
5
|
+
return /* @__PURE__ */ React.createElement(
|
|
6
|
+
Base,
|
|
7
|
+
{
|
|
8
|
+
as: "li",
|
|
9
|
+
ref,
|
|
10
|
+
className: clsx(className, {
|
|
11
|
+
"ds-nav__list-item": true
|
|
12
|
+
}),
|
|
13
|
+
...props
|
|
14
|
+
},
|
|
15
|
+
children
|
|
16
|
+
);
|
|
17
|
+
});
|
|
18
|
+
var index_web_default = NavListItemActionContainer;
|
|
19
|
+
export {
|
|
20
|
+
NavListItemActionContainer,
|
|
21
|
+
index_web_default as default
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=index.web.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseProps } from '@digigov/react-core/Base';
|
|
3
|
+
export interface NavListItemActionContainerProps extends BaseProps<'li'> {
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* NavListItemActionContainer must be inside the NavList.
|
|
7
|
+
* This component has a items of NavListItemLink component inside.
|
|
8
|
+
*/
|
|
9
|
+
export declare const NavListItemActionContainer: React.ForwardRefExoticComponent<Omit<NavListItemActionContainerProps, "ref"> & React.RefAttributes<HTMLLIElement>>;
|
|
10
|
+
export default NavListItemActionContainer;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/NavListItemActionContainer/index.web.tsx"],
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface NavListItemActionContainerProps extends BaseProps<'li'> { }\n/**\n * NavListItemActionContainer must be inside the NavList.\n * This component has a items of NavListItemLink component inside.\n */\nexport const NavListItemActionContainer = React.forwardRef<\n HTMLLIElement,\n NavListItemActionContainerProps\n>(function NavListItemActionContainer({ className, children, ...props }, ref) {\n return (\n <Base\n as=\"li\"\n ref={ref}\n className={clsx(className, {\n 'ds-nav__list-item': true,\n })}\n {...props}\n >\n {children}\n </Base>\n );\n});\n\nexport default NavListItemActionContainer;\n"],
|
|
5
|
+
"mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;AAOzB,MAAM,6BAA6B,MAAM,WAG9C,SAASA,4BAA2B,EAAE,WAAW,UAAU,GAAG,MAAM,GAAG,KAAK;AAC5E,SACE;AAAA,IAAC;AAAA;AAAA,MACC,IAAG;AAAA,MACH;AAAA,MACA,WAAW,KAAK,WAAW;AAAA,QACzB,qBAAqB;AAAA,MACvB,CAAC;AAAA,MACA,GAAG;AAAA;AAAA,IAEH;AAAA,EACH;AAEJ,CAAC;AAED,IAAO,oBAAQ;",
|
|
6
|
+
"names": ["NavListItemActionContainer"]
|
|
7
|
+
}
|
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export interface NotificationBannerLinkProps extends LinkBaseProps {
|
|
4
|
-
}
|
|
5
|
-
/**
|
|
6
|
-
* Details for the NotificationBannerLink.
|
|
7
|
-
* NotificationBannerLink allow users to click their way from page to page.
|
|
8
|
-
* NotificationBannerLink must be wrapped inside NotificationContent component as children
|
|
9
|
-
*/
|
|
10
|
-
export declare const NotificationBannerLink: React.ForwardRefExoticComponent<Omit<NotificationBannerLinkProps, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
11
|
-
export default NotificationBannerLink;
|
|
1
|
+
export * from '@digigov/react-core/NotificationBannerLink/index.web';
|
|
2
|
+
export { default as default } from '@digigov/react-core/NotificationBannerLink/index.web';
|
|
@@ -1,22 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import LinkBase from "@digigov/react-core/LinkBase";
|
|
4
|
-
const NotificationBannerLink = React.forwardRef(function NotificationBannerLink2({ className, children, ...props }, ref) {
|
|
5
|
-
return /* @__PURE__ */ React.createElement(
|
|
6
|
-
LinkBase,
|
|
7
|
-
{
|
|
8
|
-
ref,
|
|
9
|
-
className: clsx(className, {
|
|
10
|
-
"ds-notification-banner__link": true
|
|
11
|
-
}),
|
|
12
|
-
...props
|
|
13
|
-
},
|
|
14
|
-
children
|
|
15
|
-
);
|
|
16
|
-
});
|
|
17
|
-
var NotificationBannerLink_default = NotificationBannerLink;
|
|
1
|
+
export * from "@digigov/react-core/NotificationBannerLink/index.web";
|
|
2
|
+
import { default as default2 } from "@digigov/react-core/NotificationBannerLink/index.web";
|
|
18
3
|
export {
|
|
19
|
-
|
|
20
|
-
NotificationBannerLink_default as default
|
|
4
|
+
default2 as default
|
|
21
5
|
};
|
|
22
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/NotificationBannerLink/index.tsx"],
|
|
4
|
-
"sourcesContent": ["
|
|
5
|
-
"mappings": "AAAA,
|
|
6
|
-
"names": ["
|
|
4
|
+
"sourcesContent": ["export * from '@digigov/react-core/NotificationBannerLink/index.web';\nexport {default as default} from '@digigov/react-core/NotificationBannerLink/index.web';\n"],
|
|
5
|
+
"mappings": "AAAA,cAAc;AACd,SAAmB,WAAXA,gBAAyB;",
|
|
6
|
+
"names": ["default"]
|
|
7
7
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import CoreNotificationBannerLink from "@digigov/react-core/NotificationBannerLink/index.web";
|
|
2
|
+
import { extend } from "@digigov/react-core/utils/extend.native";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
const NotificationBannerLink = extend(CoreNotificationBannerLink, ({ variant, className, ...props }) => ({
|
|
5
|
+
className: clsx(className, {
|
|
6
|
+
"ds-notification-banner__link--error": variant === "error",
|
|
7
|
+
"ds-notification-banner__link--success": variant === "success"
|
|
8
|
+
}),
|
|
9
|
+
...props
|
|
10
|
+
}));
|
|
11
|
+
var index_native_default = NotificationBannerLink;
|
|
12
|
+
export {
|
|
13
|
+
NotificationBannerLink,
|
|
14
|
+
index_native_default as default
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=index.native.js.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { NotificationBannerLinkProps } from '@digigov/react-core/NotificationBannerLink/index.web';
|
|
2
|
+
interface AdditionalProps {
|
|
3
|
+
variant?: 'error' | 'success';
|
|
4
|
+
}
|
|
5
|
+
export declare const NotificationBannerLink: import("react").ForwardRefExoticComponent<Omit<NotificationBannerLinkProps & AdditionalProps & {
|
|
6
|
+
className?: string;
|
|
7
|
+
}, "ref"> & import("react").RefAttributes<unknown>>;
|
|
8
|
+
export default NotificationBannerLink;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/NotificationBannerLink/index.native.tsx"],
|
|
4
|
+
"sourcesContent": ["import CoreNotificationBannerLink, {\n NotificationBannerLinkProps,\n} from '@digigov/react-core/NotificationBannerLink/index.web';\nimport { extend } from '@digigov/react-core/utils/extend.native';\nimport clsx from 'clsx';\n\ninterface AdditionalProps {\n variant?: 'error' | 'success';\n}\n\nexport const NotificationBannerLink = extend<\n NotificationBannerLinkProps,\n AdditionalProps\n>(CoreNotificationBannerLink, ({ variant, className, ...props }) => ({\n className: clsx(className, {\n 'ds-notification-banner__link--error': variant === 'error',\n 'ds-notification-banner__link--success': variant === 'success',\n }),\n ...props,\n}));\n\nexport default NotificationBannerLink;\n"],
|
|
5
|
+
"mappings": "AAAA,OAAO,gCAEA;AACP,SAAS,cAAc;AACvB,OAAO,UAAU;AAMV,MAAM,yBAAyB,OAGpC,4BAA4B,CAAC,EAAE,SAAS,WAAW,GAAG,MAAM,OAAO;AAAA,EACnE,WAAW,KAAK,WAAW;AAAA,IACzB,uCAAuC,YAAY;AAAA,IACnD,yCAAyC,YAAY;AAAA,EACvD,CAAC;AAAA,EACD,GAAG;AACL,EAAE;AAEF,IAAO,uBAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
import LinkBase from "@digigov/react-core/LinkBase";
|
|
4
|
+
const NotificationBannerLink = React.forwardRef(function NotificationBannerLink2({ className, children, ...props }, ref) {
|
|
5
|
+
return /* @__PURE__ */ React.createElement(
|
|
6
|
+
LinkBase,
|
|
7
|
+
{
|
|
8
|
+
ref,
|
|
9
|
+
className: clsx(className, {
|
|
10
|
+
"ds-notification-banner__link": true
|
|
11
|
+
}),
|
|
12
|
+
...props
|
|
13
|
+
},
|
|
14
|
+
children
|
|
15
|
+
);
|
|
16
|
+
});
|
|
17
|
+
var index_web_default = NotificationBannerLink;
|
|
18
|
+
export {
|
|
19
|
+
NotificationBannerLink,
|
|
20
|
+
index_web_default as default
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=index.web.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { LinkBaseProps } from '@digigov/react-core/LinkBase';
|
|
3
|
+
export interface NotificationBannerLinkProps extends LinkBaseProps {
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Details for the NotificationBannerLink.
|
|
7
|
+
* NotificationBannerLink allow users to click their way from page to page.
|
|
8
|
+
* NotificationBannerLink must be wrapped inside NotificationContent component as children
|
|
9
|
+
*/
|
|
10
|
+
export declare const NotificationBannerLink: React.ForwardRefExoticComponent<Omit<NotificationBannerLinkProps, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
11
|
+
export default NotificationBannerLink;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/NotificationBannerLink/index.web.tsx"],
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport LinkBase, { LinkBaseProps } from '@digigov/react-core/LinkBase';\n\nexport interface NotificationBannerLinkProps extends LinkBaseProps { }\n/**\n * Details for the NotificationBannerLink.\n * NotificationBannerLink allow users to click their way from page to page.\n * NotificationBannerLink must be wrapped inside NotificationContent component as children\n */\nexport const NotificationBannerLink = React.forwardRef<\n HTMLAnchorElement,\n NotificationBannerLinkProps\n>(function NotificationBannerLink({ className, children, ...props }, ref) {\n return (\n <LinkBase\n ref={ref}\n className={clsx(className, {\n 'ds-notification-banner__link': true,\n })}\n {...props}\n >\n {children}\n </LinkBase>\n );\n});\n\nexport default NotificationBannerLink;\n"],
|
|
5
|
+
"mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,cAAiC;AAQjC,MAAM,yBAAyB,MAAM,WAG1C,SAASA,wBAAuB,EAAE,WAAW,UAAU,GAAG,MAAM,GAAG,KAAK;AACxE,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,WAAW,KAAK,WAAW;AAAA,QACzB,gCAAgC;AAAA,MAClC,CAAC;AAAA,MACA,GAAG;AAAA;AAAA,IAEH;AAAA,EACH;AAEJ,CAAC;AAED,IAAO,oBAAQ;",
|
|
6
|
+
"names": ["NotificationBannerLink"]
|
|
7
|
+
}
|
package/PhaseBanner/index.js
CHANGED
package/PhaseBanner/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/PhaseBanner/index.tsx"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface PhaseBannerProps extends BaseProps<'div'> {\n /**\n * underline is optional.\n * Use this prop when you want to underline the phase banner.\n * @value true\n * @value false\n * @default false\n */\n underline?: boolean;\n}\n/**\n * PhaseBanner is a component used to show the phase of a service.\n * This component will replace ServiceBadge.\n */\nexport const PhaseBanner = React.forwardRef<HTMLDivElement, PhaseBannerProps>(\n function PhaseBanner(\n { className, underline = false, children, ...props },\n ref\n ) {\n return (\n <Base\n as=\"div\"\n ref={ref}\n className={clsx(className, {\n 'ds-phase-banner': true,\n 'ds-phase-banner--underline': underline,\n })}\n {...props}\n >\n <p\n className={clsx({\n 'ds-phase-banner__content': true,\n })}\n >\n {children}\n </
|
|
5
|
-
"mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;AAgBzB,MAAM,cAAc,MAAM;AAAA,EAC/B,SAASA,aACP,EAAE,WAAW,YAAY,OAAO,UAAU,GAAG,MAAM,GACnD,KACA;AACA,WACE;AAAA,MAAC;AAAA;AAAA,QACC,IAAG;AAAA,QACH;AAAA,QACA,WAAW,KAAK,WAAW;AAAA,UACzB,mBAAmB;AAAA,UACnB,8BAA8B;AAAA,QAChC,CAAC;AAAA,QACA,GAAG;AAAA;AAAA,MAEJ;AAAA,QAAC;AAAA;AAAA,
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface PhaseBannerProps extends BaseProps<'div'> {\n /**\n * underline is optional.\n * Use this prop when you want to underline the phase banner.\n * @value true\n * @value false\n * @default false\n */\n underline?: boolean;\n}\n/**\n * PhaseBanner is a component used to show the phase of a service.\n * This component will replace ServiceBadge.\n */\nexport const PhaseBanner = React.forwardRef<HTMLDivElement, PhaseBannerProps>(\n function PhaseBanner(\n { className, underline = false, children, ...props },\n ref\n ) {\n return (\n <Base\n as=\"div\"\n ref={ref}\n className={clsx(className, {\n 'ds-phase-banner': true,\n 'ds-phase-banner--underline': underline,\n })}\n {...props}\n >\n <Base as=\"p\"\n className={clsx({\n 'ds-phase-banner__content': true,\n })}\n >\n {children}\n </Base>\n </Base>\n );\n }\n);\n\nexport default PhaseBanner;\n"],
|
|
5
|
+
"mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;AAgBzB,MAAM,cAAc,MAAM;AAAA,EAC/B,SAASA,aACP,EAAE,WAAW,YAAY,OAAO,UAAU,GAAG,MAAM,GACnD,KACA;AACA,WACE;AAAA,MAAC;AAAA;AAAA,QACC,IAAG;AAAA,QACH;AAAA,QACA,WAAW,KAAK,WAAW;AAAA,UACzB,mBAAmB;AAAA,UACnB,8BAA8B;AAAA,QAChC,CAAC;AAAA,QACA,GAAG;AAAA;AAAA,MAEJ;AAAA,QAAC;AAAA;AAAA,UAAK,IAAG;AAAA,UACP,WAAW,KAAK;AAAA,YACd,4BAA4B;AAAA,UAC9B,CAAC;AAAA;AAAA,QAEA;AAAA,MACH;AAAA,IACF;AAAA,EAEJ;AACF;AAEA,IAAO,sBAAQ;",
|
|
6
6
|
"names": ["PhaseBanner"]
|
|
7
7
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BaseProps } from '@digigov/react-core/Base';
|
|
3
|
-
export interface PhaseBannerTagProps extends BaseProps<'
|
|
3
|
+
export interface PhaseBannerTagProps extends BaseProps<'span'> {
|
|
4
4
|
}
|
|
5
5
|
/**
|
|
6
6
|
* PhaseBannerTag is used inside the PhaseBanner component and it requires a text of the phase of the service (ex. Alpha, Beta).
|
|
7
7
|
*/
|
|
8
|
-
export declare const PhaseBannerTag: React.ForwardRefExoticComponent<Omit<PhaseBannerTagProps, "ref"> & React.RefAttributes<
|
|
8
|
+
export declare const PhaseBannerTag: React.ForwardRefExoticComponent<Omit<PhaseBannerTagProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
9
9
|
export default PhaseBannerTag;
|
package/PhaseBannerTag/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/PhaseBannerTag/index.tsx"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface PhaseBannerTagProps extends BaseProps<'
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport clsx from 'clsx';\nimport Base, { BaseProps } from '@digigov/react-core/Base';\n\nexport interface PhaseBannerTagProps extends BaseProps<'span'> { }\n/**\n * PhaseBannerTag is used inside the PhaseBanner component and it requires a text of the phase of the service (ex. Alpha, Beta).\n */\nexport const PhaseBannerTag = React.forwardRef<\n HTMLSpanElement,\n PhaseBannerTagProps\n>(function PhaseBannerTag({ className, children, ...props }, ref) {\n return (\n <Base\n as=\"span\"\n ref={ref}\n className={clsx(className, {\n 'ds-phase-banner__tag': true,\n })}\n {...props}\n >\n {children}\n </Base>\n );\n});\n\nexport default PhaseBannerTag;\n"],
|
|
5
5
|
"mappings": "AAAA,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB,OAAO,UAAyB;AAMzB,MAAM,iBAAiB,MAAM,WAGlC,SAASA,gBAAe,EAAE,WAAW,UAAU,GAAG,MAAM,GAAG,KAAK;AAChE,SACE;AAAA,IAAC;AAAA;AAAA,MACC,IAAG;AAAA,MACH;AAAA,MACA,WAAW,KAAK,WAAW;AAAA,QACzB,wBAAwB;AAAA,MAC1B,CAAC;AAAA,MACA,GAAG;AAAA;AAAA,IAEH;AAAA,EACH;AAEJ,CAAC;AAED,IAAO,yBAAQ;",
|
|
6
6
|
"names": ["PhaseBannerTag"]
|
|
7
7
|
}
|
package/PhaseBannerText/index.js
CHANGED