ncore-ui-kit 1.0.0-pre-alpha.0
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/LICENSE +20 -0
- package/README.md +2 -0
- package/lib/module/assets/fonts/Geist-Black.ttf +0 -0
- package/lib/module/assets/fonts/Geist-Bold.ttf +0 -0
- package/lib/module/assets/fonts/Geist-ExtraBold.ttf +0 -0
- package/lib/module/assets/fonts/Geist-ExtraLight.ttf +0 -0
- package/lib/module/assets/fonts/Geist-Light.ttf +0 -0
- package/lib/module/assets/fonts/Geist-Medium.ttf +0 -0
- package/lib/module/assets/fonts/Geist-Regular.ttf +0 -0
- package/lib/module/assets/fonts/Geist-SemiBold.ttf +0 -0
- package/lib/module/assets/fonts/Geist-Thin.ttf +0 -0
- package/lib/module/assets/svg/badgeAlertIcon/index.js +33 -0
- package/lib/module/assets/svg/badgeAlertIcon/index.js.map +1 -0
- package/lib/module/assets/svg/badgeDangerIcon/index.js +32 -0
- package/lib/module/assets/svg/badgeDangerIcon/index.js.map +1 -0
- package/lib/module/assets/svg/badgeInfoIcon/index.js +32 -0
- package/lib/module/assets/svg/badgeInfoIcon/index.js.map +1 -0
- package/lib/module/assets/svg/badgeQuestionMarkIcon/index.js +40 -0
- package/lib/module/assets/svg/badgeQuestionMarkIcon/index.js.map +1 -0
- package/lib/module/assets/svg/badgeRightIcon/index.js +32 -0
- package/lib/module/assets/svg/badgeRightIcon/index.js.map +1 -0
- package/lib/module/assets/svg/badgeSuccessIcon/index.js +40 -0
- package/lib/module/assets/svg/badgeSuccessIcon/index.js.map +1 -0
- package/lib/module/assets/svg/chevronRightIcon/index.js +32 -0
- package/lib/module/assets/svg/chevronRightIcon/index.js.map +1 -0
- package/lib/module/assets/svg/cleanIcon/index.js +32 -0
- package/lib/module/assets/svg/cleanIcon/index.js.map +1 -0
- package/lib/module/assets/svg/eyeClosedIcon/index.js +40 -0
- package/lib/module/assets/svg/eyeClosedIcon/index.js.map +1 -0
- package/lib/module/assets/svg/eyeOpenedIcon/index.js +40 -0
- package/lib/module/assets/svg/eyeOpenedIcon/index.js.map +1 -0
- package/lib/module/assets/svg/index.js +13 -0
- package/lib/module/assets/svg/index.js.map +1 -0
- package/lib/module/assets/svg/loadingIcon/index.js +65 -0
- package/lib/module/assets/svg/loadingIcon/index.js.map +1 -0
- package/lib/module/components/bottomSheet/index.js +915 -0
- package/lib/module/components/bottomSheet/index.js.map +1 -0
- package/lib/module/components/bottomSheet/stylesheet.js +26 -0
- package/lib/module/components/bottomSheet/stylesheet.js.map +1 -0
- package/lib/module/components/bottomSheet/type.js +4 -0
- package/lib/module/components/bottomSheet/type.js.map +1 -0
- package/lib/module/components/button/index.js +143 -0
- package/lib/module/components/button/index.js.map +1 -0
- package/lib/module/components/button/stylesheet.js +231 -0
- package/lib/module/components/button/stylesheet.js.map +1 -0
- package/lib/module/components/button/type.js +4 -0
- package/lib/module/components/button/type.js.map +1 -0
- package/lib/module/components/checkBox/index.js +186 -0
- package/lib/module/components/checkBox/index.js.map +1 -0
- package/lib/module/components/checkBox/stylesheet.js +182 -0
- package/lib/module/components/checkBox/stylesheet.js.map +1 -0
- package/lib/module/components/checkBox/type.js +4 -0
- package/lib/module/components/checkBox/type.js.map +1 -0
- package/lib/module/components/chip/index.js +131 -0
- package/lib/module/components/chip/index.js.map +1 -0
- package/lib/module/components/chip/stylesheet.js +134 -0
- package/lib/module/components/chip/stylesheet.js.map +1 -0
- package/lib/module/components/chip/type.js +4 -0
- package/lib/module/components/chip/type.js.map +1 -0
- package/lib/module/components/dateSelector/index.js +293 -0
- package/lib/module/components/dateSelector/index.js.map +1 -0
- package/lib/module/components/dateSelector/stylesheet.js +82 -0
- package/lib/module/components/dateSelector/stylesheet.js.map +1 -0
- package/lib/module/components/dateSelector/type.js +7 -0
- package/lib/module/components/dateSelector/type.js.map +1 -0
- package/lib/module/components/dateSelector/util.js +17 -0
- package/lib/module/components/dateSelector/util.js.map +1 -0
- package/lib/module/components/dateTimePicker/index.js +704 -0
- package/lib/module/components/dateTimePicker/index.js.map +1 -0
- package/lib/module/components/dateTimePicker/stylesheet.js +213 -0
- package/lib/module/components/dateTimePicker/stylesheet.js.map +1 -0
- package/lib/module/components/dateTimePicker/type.js +5 -0
- package/lib/module/components/dateTimePicker/type.js.map +1 -0
- package/lib/module/components/dateTimeSheet/index.js +313 -0
- package/lib/module/components/dateTimeSheet/index.js.map +1 -0
- package/lib/module/components/dateTimeSheet/stylesheet.js +88 -0
- package/lib/module/components/dateTimeSheet/stylesheet.js.map +1 -0
- package/lib/module/components/dateTimeSheet/type.js +5 -0
- package/lib/module/components/dateTimeSheet/type.js.map +1 -0
- package/lib/module/components/dialog/index.js +228 -0
- package/lib/module/components/dialog/index.js.map +1 -0
- package/lib/module/components/dialog/stylesheet.js +99 -0
- package/lib/module/components/dialog/stylesheet.js.map +1 -0
- package/lib/module/components/dialog/type.js +5 -0
- package/lib/module/components/dialog/type.js.map +1 -0
- package/lib/module/components/index.js +32 -0
- package/lib/module/components/index.js.map +1 -0
- package/lib/module/components/loading/index.js +22 -0
- package/lib/module/components/loading/index.js.map +1 -0
- package/lib/module/components/loading/stylesheet.js +10 -0
- package/lib/module/components/loading/stylesheet.js.map +1 -0
- package/lib/module/components/loading/type.js +4 -0
- package/lib/module/components/loading/type.js.map +1 -0
- package/lib/module/components/markdownViewer/constant.js +18 -0
- package/lib/module/components/markdownViewer/constant.js.map +1 -0
- package/lib/module/components/markdownViewer/index.js +368 -0
- package/lib/module/components/markdownViewer/index.js.map +1 -0
- package/lib/module/components/markdownViewer/stylesheet.js +66 -0
- package/lib/module/components/markdownViewer/stylesheet.js.map +1 -0
- package/lib/module/components/markdownViewer/type.js +5 -0
- package/lib/module/components/markdownViewer/type.js.map +1 -0
- package/lib/module/components/markdownViewer/util.js +344 -0
- package/lib/module/components/markdownViewer/util.js.map +1 -0
- package/lib/module/components/modal/index.js +170 -0
- package/lib/module/components/modal/index.js.map +1 -0
- package/lib/module/components/modal/stylesheet.js +36 -0
- package/lib/module/components/modal/stylesheet.js.map +1 -0
- package/lib/module/components/modal/type.js +5 -0
- package/lib/module/components/modal/type.js.map +1 -0
- package/lib/module/components/monthSelector/index.js +284 -0
- package/lib/module/components/monthSelector/index.js.map +1 -0
- package/lib/module/components/monthSelector/stylesheet.js +80 -0
- package/lib/module/components/monthSelector/stylesheet.js.map +1 -0
- package/lib/module/components/monthSelector/type.js +7 -0
- package/lib/module/components/monthSelector/type.js.map +1 -0
- package/lib/module/components/monthSelector/util.js +17 -0
- package/lib/module/components/monthSelector/util.js.map +1 -0
- package/lib/module/components/notificationIndicator/index.js +121 -0
- package/lib/module/components/notificationIndicator/index.js.map +1 -0
- package/lib/module/components/notificationIndicator/stylesheet.js +119 -0
- package/lib/module/components/notificationIndicator/stylesheet.js.map +1 -0
- package/lib/module/components/notificationIndicator/type.js +4 -0
- package/lib/module/components/notificationIndicator/type.js.map +1 -0
- package/lib/module/components/numericInput/index.js +409 -0
- package/lib/module/components/numericInput/index.js.map +1 -0
- package/lib/module/components/numericInput/stylesheet.js +245 -0
- package/lib/module/components/numericInput/stylesheet.js.map +1 -0
- package/lib/module/components/numericInput/type.js +5 -0
- package/lib/module/components/numericInput/type.js.map +1 -0
- package/lib/module/components/pageContainer/index.js +81 -0
- package/lib/module/components/pageContainer/index.js.map +1 -0
- package/lib/module/components/pageContainer/stylesheet.js +13 -0
- package/lib/module/components/pageContainer/stylesheet.js.map +1 -0
- package/lib/module/components/pageContainer/type.js +4 -0
- package/lib/module/components/pageContainer/type.js.map +1 -0
- package/lib/module/components/radioButton/index.js +179 -0
- package/lib/module/components/radioButton/index.js.map +1 -0
- package/lib/module/components/radioButton/stylesheet.js +192 -0
- package/lib/module/components/radioButton/stylesheet.js.map +1 -0
- package/lib/module/components/radioButton/type.js +4 -0
- package/lib/module/components/radioButton/type.js.map +1 -0
- package/lib/module/components/rowCard/index.js +153 -0
- package/lib/module/components/rowCard/index.js.map +1 -0
- package/lib/module/components/rowCard/stylesheet.js +78 -0
- package/lib/module/components/rowCard/stylesheet.js.map +1 -0
- package/lib/module/components/rowCard/type.js +4 -0
- package/lib/module/components/rowCard/type.js.map +1 -0
- package/lib/module/components/selectBox/index.js +612 -0
- package/lib/module/components/selectBox/index.js.map +1 -0
- package/lib/module/components/selectBox/stylesheet.js +216 -0
- package/lib/module/components/selectBox/stylesheet.js.map +1 -0
- package/lib/module/components/selectBox/type.js +5 -0
- package/lib/module/components/selectBox/type.js.map +1 -0
- package/lib/module/components/selectSheet/index.js +285 -0
- package/lib/module/components/selectSheet/index.js.map +1 -0
- package/lib/module/components/selectSheet/stylesheet.js +90 -0
- package/lib/module/components/selectSheet/stylesheet.js.map +1 -0
- package/lib/module/components/selectSheet/type.js +5 -0
- package/lib/module/components/selectSheet/type.js.map +1 -0
- package/lib/module/components/snackBar/index.js +314 -0
- package/lib/module/components/snackBar/index.js.map +1 -0
- package/lib/module/components/snackBar/stylesheet.js +131 -0
- package/lib/module/components/snackBar/stylesheet.js.map +1 -0
- package/lib/module/components/snackBar/type.js +5 -0
- package/lib/module/components/snackBar/type.js.map +1 -0
- package/lib/module/components/stateCard/index.js +101 -0
- package/lib/module/components/stateCard/index.js.map +1 -0
- package/lib/module/components/stateCard/stylesheet.js +96 -0
- package/lib/module/components/stateCard/stylesheet.js.map +1 -0
- package/lib/module/components/stateCard/type.js +4 -0
- package/lib/module/components/stateCard/type.js.map +1 -0
- package/lib/module/components/sticker/index.js +85 -0
- package/lib/module/components/sticker/index.js.map +1 -0
- package/lib/module/components/sticker/stylesheet.js +95 -0
- package/lib/module/components/sticker/stylesheet.js.map +1 -0
- package/lib/module/components/sticker/type.js +4 -0
- package/lib/module/components/sticker/type.js.map +1 -0
- package/lib/module/components/switch/index.js +192 -0
- package/lib/module/components/switch/index.js.map +1 -0
- package/lib/module/components/switch/stylesheet.js +174 -0
- package/lib/module/components/switch/stylesheet.js.map +1 -0
- package/lib/module/components/switch/type.js +4 -0
- package/lib/module/components/switch/type.js.map +1 -0
- package/lib/module/components/text/index.js +29 -0
- package/lib/module/components/text/index.js.map +1 -0
- package/lib/module/components/text/type.js +4 -0
- package/lib/module/components/text/type.js.map +1 -0
- package/lib/module/components/textAreaInput/index.js +367 -0
- package/lib/module/components/textAreaInput/index.js.map +1 -0
- package/lib/module/components/textAreaInput/stylesheet.js +256 -0
- package/lib/module/components/textAreaInput/stylesheet.js.map +1 -0
- package/lib/module/components/textAreaInput/type.js +5 -0
- package/lib/module/components/textAreaInput/type.js.map +1 -0
- package/lib/module/components/textInput/index.js +362 -0
- package/lib/module/components/textInput/index.js.map +1 -0
- package/lib/module/components/textInput/stylesheet.js +245 -0
- package/lib/module/components/textInput/stylesheet.js.map +1 -0
- package/lib/module/components/textInput/type.js +5 -0
- package/lib/module/components/textInput/type.js.map +1 -0
- package/lib/module/components/timeSelector/components/timeInput/index.js +135 -0
- package/lib/module/components/timeSelector/components/timeInput/index.js.map +1 -0
- package/lib/module/components/timeSelector/components/timeInput/stylesheet.js +27 -0
- package/lib/module/components/timeSelector/components/timeInput/stylesheet.js.map +1 -0
- package/lib/module/components/timeSelector/components/timeInput/type.js +5 -0
- package/lib/module/components/timeSelector/components/timeInput/type.js.map +1 -0
- package/lib/module/components/timeSelector/index.js +329 -0
- package/lib/module/components/timeSelector/index.js.map +1 -0
- package/lib/module/components/timeSelector/stylesheet.js +44 -0
- package/lib/module/components/timeSelector/stylesheet.js.map +1 -0
- package/lib/module/components/timeSelector/type.js +5 -0
- package/lib/module/components/timeSelector/type.js.map +1 -0
- package/lib/module/components/toast/index.js +199 -0
- package/lib/module/components/toast/index.js.map +1 -0
- package/lib/module/components/toast/stylesheet.js +124 -0
- package/lib/module/components/toast/stylesheet.js.map +1 -0
- package/lib/module/components/toast/type.js +5 -0
- package/lib/module/components/toast/type.js.map +1 -0
- package/lib/module/components/yearSelector/index.js +278 -0
- package/lib/module/components/yearSelector/index.js.map +1 -0
- package/lib/module/components/yearSelector/stylesheet.js +80 -0
- package/lib/module/components/yearSelector/stylesheet.js.map +1 -0
- package/lib/module/components/yearSelector/type.js +7 -0
- package/lib/module/components/yearSelector/type.js.map +1 -0
- package/lib/module/components/yearSelector/util.js +17 -0
- package/lib/module/components/yearSelector/util.js.map +1 -0
- package/lib/module/context/bottomSheet.js +86 -0
- package/lib/module/context/bottomSheet.js.map +1 -0
- package/lib/module/context/dialog.js +85 -0
- package/lib/module/context/dialog.js.map +1 -0
- package/lib/module/context/index.js +92 -0
- package/lib/module/context/index.js.map +1 -0
- package/lib/module/context/localize.js +143 -0
- package/lib/module/context/localize.js.map +1 -0
- package/lib/module/context/modal.js +82 -0
- package/lib/module/context/modal.js.map +1 -0
- package/lib/module/context/snackBar.js +79 -0
- package/lib/module/context/snackBar.js.map +1 -0
- package/lib/module/context/theme.js +142 -0
- package/lib/module/context/theme.js.map +1 -0
- package/lib/module/context/toast.js +79 -0
- package/lib/module/context/toast.js.map +1 -0
- package/lib/module/core/hooks.js +19 -0
- package/lib/module/core/hooks.js.map +1 -0
- package/lib/module/core/index.js +91 -0
- package/lib/module/core/index.js.map +1 -0
- package/lib/module/helpers/index.js +7 -0
- package/lib/module/helpers/index.js.map +1 -0
- package/lib/module/helpers/locale/index.js +23 -0
- package/lib/module/helpers/locale/index.js.map +1 -0
- package/lib/module/helpers/portalize/Consumer.js +33 -0
- package/lib/module/helpers/portalize/Consumer.js.map +1 -0
- package/lib/module/helpers/portalize/Host.js +73 -0
- package/lib/module/helpers/portalize/Host.js.map +1 -0
- package/lib/module/helpers/portalize/Manager.js +36 -0
- package/lib/module/helpers/portalize/Manager.js.map +1 -0
- package/lib/module/helpers/portalize/Portal.js +18 -0
- package/lib/module/helpers/portalize/Portal.js.map +1 -0
- package/lib/module/helpers/portalize/context/index.js +33 -0
- package/lib/module/helpers/portalize/context/index.js.map +1 -0
- package/lib/module/helpers/portalize/hooks/useKey.js +34 -0
- package/lib/module/helpers/portalize/hooks/useKey.js.map +1 -0
- package/lib/module/helpers/portalize/index.js +7 -0
- package/lib/module/helpers/portalize/index.js.map +1 -0
- package/lib/module/helpers/theme/palette.js +61 -0
- package/lib/module/helpers/theme/palette.js.map +1 -0
- package/lib/module/helpers/theme/shapes.js +79 -0
- package/lib/module/helpers/theme/shapes.js.map +1 -0
- package/lib/module/helpers/theme/typography.js +33 -0
- package/lib/module/helpers/theme/typography.js.map +1 -0
- package/lib/module/index.js +10 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/package.json +4 -0
- package/lib/module/types/bottomSheet.js +4 -0
- package/lib/module/types/bottomSheet.js.map +1 -0
- package/lib/module/types/dialog.js +4 -0
- package/lib/module/types/dialog.js.map +1 -0
- package/lib/module/types/icon.js +4 -0
- package/lib/module/types/icon.js.map +1 -0
- package/lib/module/types/index.js +7 -0
- package/lib/module/types/index.js.map +1 -0
- package/lib/module/types/locale.js +4 -0
- package/lib/module/types/locale.js.map +1 -0
- package/lib/module/types/modal.js +4 -0
- package/lib/module/types/modal.js.map +1 -0
- package/lib/module/types/portalize.js +2 -0
- package/lib/module/types/portalize.js.map +1 -0
- package/lib/module/types/snackBar.js +4 -0
- package/lib/module/types/snackBar.js.map +1 -0
- package/lib/module/types/theme.js +2 -0
- package/lib/module/types/theme.js.map +1 -0
- package/lib/module/types/toast.js +4 -0
- package/lib/module/types/toast.js.map +1 -0
- package/lib/module/utils/index.js +54 -0
- package/lib/module/utils/index.js.map +1 -0
- package/lib/module/variants/locales/default.json +208 -0
- package/lib/module/variants/themes/default.json +669 -0
- package/lib/package.json +4 -0
- package/lib/src/assets/svg/badgeAlertIcon/index.js +11 -0
- package/lib/src/assets/svg/badgeDangerIcon/index.js +10 -0
- package/lib/src/assets/svg/badgeInfoIcon/index.js +10 -0
- package/lib/src/assets/svg/badgeQuestionMarkIcon/index.js +11 -0
- package/lib/src/assets/svg/badgeRightIcon/index.js +10 -0
- package/lib/src/assets/svg/badgeSuccessIcon/index.js +11 -0
- package/lib/src/assets/svg/chevronRightIcon/index.js +10 -0
- package/lib/src/assets/svg/cleanIcon/index.js +10 -0
- package/lib/src/assets/svg/eyeClosedIcon/index.js +11 -0
- package/lib/src/assets/svg/eyeOpenedIcon/index.js +11 -0
- package/lib/src/assets/svg/index.js +10 -0
- package/lib/src/assets/svg/loadingIcon/index.js +41 -0
- package/lib/src/components/bottomSheet/index.js +897 -0
- package/lib/src/components/bottomSheet/stylesheet.js +23 -0
- package/lib/src/components/bottomSheet/type.js +1 -0
- package/lib/src/components/button/index.js +107 -0
- package/lib/src/components/button/stylesheet.js +209 -0
- package/lib/src/components/button/type.js +2 -0
- package/lib/src/components/checkBox/index.js +133 -0
- package/lib/src/components/checkBox/stylesheet.js +166 -0
- package/lib/src/components/checkBox/type.js +1 -0
- package/lib/src/components/chip/index.js +84 -0
- package/lib/src/components/chip/stylesheet.js +117 -0
- package/lib/src/components/chip/type.js +1 -0
- package/lib/src/components/dateSelector/index.js +251 -0
- package/lib/src/components/dateSelector/stylesheet.js +74 -0
- package/lib/src/components/dateSelector/type.js +4 -0
- package/lib/src/components/dateSelector/util.js +12 -0
- package/lib/src/components/dateTimePicker/index.js +591 -0
- package/lib/src/components/dateTimePicker/stylesheet.js +198 -0
- package/lib/src/components/dateTimePicker/type.js +3 -0
- package/lib/src/components/dateTimeSheet/index.js +154 -0
- package/lib/src/components/dateTimeSheet/stylesheet.js +81 -0
- package/lib/src/components/dateTimeSheet/type.js +2 -0
- package/lib/src/components/dialog/index.js +166 -0
- package/lib/src/components/dialog/stylesheet.js +90 -0
- package/lib/src/components/dialog/type.js +3 -0
- package/lib/src/components/index.js +29 -0
- package/lib/src/components/loading/index.js +11 -0
- package/lib/src/components/loading/stylesheet.js +7 -0
- package/lib/src/components/loading/type.js +2 -0
- package/lib/src/components/markdownViewer/constant.js +15 -0
- package/lib/src/components/markdownViewer/index.js +237 -0
- package/lib/src/components/markdownViewer/stylesheet.js +59 -0
- package/lib/src/components/markdownViewer/type.js +2 -0
- package/lib/src/components/markdownViewer/util.js +316 -0
- package/lib/src/components/modal/index.js +140 -0
- package/lib/src/components/modal/stylesheet.js +33 -0
- package/lib/src/components/modal/type.js +3 -0
- package/lib/src/components/monthSelector/index.js +271 -0
- package/lib/src/components/monthSelector/stylesheet.js +72 -0
- package/lib/src/components/monthSelector/type.js +4 -0
- package/lib/src/components/monthSelector/util.js +12 -0
- package/lib/src/components/notificationIndicator/index.js +91 -0
- package/lib/src/components/notificationIndicator/stylesheet.js +105 -0
- package/lib/src/components/notificationIndicator/type.js +1 -0
- package/lib/src/components/numericInput/index.js +319 -0
- package/lib/src/components/numericInput/stylesheet.js +230 -0
- package/lib/src/components/numericInput/type.js +3 -0
- package/lib/src/components/pageContainer/index.js +62 -0
- package/lib/src/components/pageContainer/stylesheet.js +10 -0
- package/lib/src/components/pageContainer/type.js +1 -0
- package/lib/src/components/radioButton/index.js +135 -0
- package/lib/src/components/radioButton/stylesheet.js +175 -0
- package/lib/src/components/radioButton/type.js +1 -0
- package/lib/src/components/rowCard/index.js +99 -0
- package/lib/src/components/rowCard/stylesheet.js +71 -0
- package/lib/src/components/rowCard/type.js +1 -0
- package/lib/src/components/selectBox/index.js +501 -0
- package/lib/src/components/selectBox/stylesheet.js +201 -0
- package/lib/src/components/selectBox/type.js +3 -0
- package/lib/src/components/selectSheet/index.js +179 -0
- package/lib/src/components/selectSheet/stylesheet.js +83 -0
- package/lib/src/components/selectSheet/type.js +2 -0
- package/lib/src/components/snackBar/index.js +249 -0
- package/lib/src/components/snackBar/stylesheet.js +118 -0
- package/lib/src/components/snackBar/type.js +3 -0
- package/lib/src/components/stateCard/index.js +69 -0
- package/lib/src/components/stateCard/stylesheet.js +90 -0
- package/lib/src/components/stateCard/type.js +1 -0
- package/lib/src/components/sticker/index.js +54 -0
- package/lib/src/components/sticker/stylesheet.js +83 -0
- package/lib/src/components/sticker/type.js +1 -0
- package/lib/src/components/switch/index.js +149 -0
- package/lib/src/components/switch/stylesheet.js +158 -0
- package/lib/src/components/switch/type.js +1 -0
- package/lib/src/components/text/index.js +15 -0
- package/lib/src/components/text/type.js +2 -0
- package/lib/src/components/textAreaInput/index.js +279 -0
- package/lib/src/components/textAreaInput/stylesheet.js +240 -0
- package/lib/src/components/textAreaInput/type.js +3 -0
- package/lib/src/components/textInput/index.js +273 -0
- package/lib/src/components/textInput/stylesheet.js +230 -0
- package/lib/src/components/textInput/type.js +3 -0
- package/lib/src/components/timeSelector/components/timeInput/index.js +112 -0
- package/lib/src/components/timeSelector/components/timeInput/stylesheet.js +21 -0
- package/lib/src/components/timeSelector/components/timeInput/type.js +2 -0
- package/lib/src/components/timeSelector/index.js +141 -0
- package/lib/src/components/timeSelector/stylesheet.js +37 -0
- package/lib/src/components/timeSelector/type.js +2 -0
- package/lib/src/components/toast/index.js +143 -0
- package/lib/src/components/toast/stylesheet.js +112 -0
- package/lib/src/components/toast/type.js +3 -0
- package/lib/src/components/yearSelector/index.js +269 -0
- package/lib/src/components/yearSelector/stylesheet.js +72 -0
- package/lib/src/components/yearSelector/type.js +4 -0
- package/lib/src/components/yearSelector/util.js +12 -0
- package/lib/src/context/bottomSheet.js +72 -0
- package/lib/src/context/dialog.js +72 -0
- package/lib/src/context/index.js +60 -0
- package/lib/src/context/localize.js +135 -0
- package/lib/src/context/modal.js +70 -0
- package/lib/src/context/snackBar.js +67 -0
- package/lib/src/context/theme.js +127 -0
- package/lib/src/context/toast.js +67 -0
- package/lib/src/core/hooks.js +16 -0
- package/lib/src/core/index.js +85 -0
- package/lib/src/helpers/index.js +4 -0
- package/lib/src/helpers/locale/index.js +20 -0
- package/lib/src/helpers/portalize/Consumer.js +31 -0
- package/lib/src/helpers/portalize/Host.js +55 -0
- package/lib/src/helpers/portalize/Manager.js +25 -0
- package/lib/src/helpers/portalize/Portal.js +7 -0
- package/lib/src/helpers/portalize/context/index.js +33 -0
- package/lib/src/helpers/portalize/hooks/useKey.js +33 -0
- package/lib/src/helpers/portalize/index.js +4 -0
- package/lib/src/helpers/theme/palette.js +63 -0
- package/lib/src/helpers/theme/shapes.js +75 -0
- package/lib/src/helpers/theme/typography.js +28 -0
- package/lib/src/index.js +7 -0
- package/lib/src/types/bottomSheet.js +1 -0
- package/lib/src/types/dialog.js +1 -0
- package/lib/src/types/icon.js +2 -0
- package/lib/src/types/index.js +11 -0
- package/lib/src/types/locale.js +1 -0
- package/lib/src/types/modal.js +1 -0
- package/lib/src/types/portalize.js +1 -0
- package/lib/src/types/snackBar.js +1 -0
- package/lib/src/types/theme.js +1 -0
- package/lib/src/types/toast.js +1 -0
- package/lib/src/utils/index.js +55 -0
- package/lib/src/variants/locales/default.json +208 -0
- package/lib/src/variants/themes/default.json +669 -0
- package/lib/tsconfig.build.tsbuildinfo +1 -0
- package/lib/typescript/package.json +4 -0
- package/lib/typescript/src/assets/svg/badgeAlertIcon/index.d.ts +4 -0
- package/lib/typescript/src/assets/svg/badgeAlertIcon/index.d.ts.map +1 -0
- package/lib/typescript/src/assets/svg/badgeDangerIcon/index.d.ts +4 -0
- package/lib/typescript/src/assets/svg/badgeDangerIcon/index.d.ts.map +1 -0
- package/lib/typescript/src/assets/svg/badgeInfoIcon/index.d.ts +4 -0
- package/lib/typescript/src/assets/svg/badgeInfoIcon/index.d.ts.map +1 -0
- package/lib/typescript/src/assets/svg/badgeQuestionMarkIcon/index.d.ts +4 -0
- package/lib/typescript/src/assets/svg/badgeQuestionMarkIcon/index.d.ts.map +1 -0
- package/lib/typescript/src/assets/svg/badgeRightIcon/index.d.ts +4 -0
- package/lib/typescript/src/assets/svg/badgeRightIcon/index.d.ts.map +1 -0
- package/lib/typescript/src/assets/svg/badgeSuccessIcon/index.d.ts +4 -0
- package/lib/typescript/src/assets/svg/badgeSuccessIcon/index.d.ts.map +1 -0
- package/lib/typescript/src/assets/svg/chevronRightIcon/index.d.ts +4 -0
- package/lib/typescript/src/assets/svg/chevronRightIcon/index.d.ts.map +1 -0
- package/lib/typescript/src/assets/svg/cleanIcon/index.d.ts +4 -0
- package/lib/typescript/src/assets/svg/cleanIcon/index.d.ts.map +1 -0
- package/lib/typescript/src/assets/svg/eyeClosedIcon/index.d.ts +4 -0
- package/lib/typescript/src/assets/svg/eyeClosedIcon/index.d.ts.map +1 -0
- package/lib/typescript/src/assets/svg/eyeOpenedIcon/index.d.ts +4 -0
- package/lib/typescript/src/assets/svg/eyeOpenedIcon/index.d.ts.map +1 -0
- package/lib/typescript/src/assets/svg/index.d.ts +11 -0
- package/lib/typescript/src/assets/svg/index.d.ts.map +1 -0
- package/lib/typescript/src/assets/svg/loadingIcon/index.d.ts +4 -0
- package/lib/typescript/src/assets/svg/loadingIcon/index.d.ts.map +1 -0
- package/lib/typescript/src/components/bottomSheet/index.d.ts +5 -0
- package/lib/typescript/src/components/bottomSheet/index.d.ts.map +1 -0
- package/lib/typescript/src/components/bottomSheet/stylesheet.d.ts +22 -0
- package/lib/typescript/src/components/bottomSheet/stylesheet.d.ts.map +1 -0
- package/lib/typescript/src/components/bottomSheet/type.d.ts +59 -0
- package/lib/typescript/src/components/bottomSheet/type.d.ts.map +1 -0
- package/lib/typescript/src/components/button/index.d.ts +10 -0
- package/lib/typescript/src/components/button/index.d.ts.map +1 -0
- package/lib/typescript/src/components/button/stylesheet.d.ts +51 -0
- package/lib/typescript/src/components/button/stylesheet.d.ts.map +1 -0
- package/lib/typescript/src/components/button/type.d.ts +84 -0
- package/lib/typescript/src/components/button/type.d.ts.map +1 -0
- package/lib/typescript/src/components/checkBox/index.d.ts +5 -0
- package/lib/typescript/src/components/checkBox/index.d.ts.map +1 -0
- package/lib/typescript/src/components/checkBox/stylesheet.d.ts +63 -0
- package/lib/typescript/src/components/checkBox/stylesheet.d.ts.map +1 -0
- package/lib/typescript/src/components/checkBox/type.d.ts +57 -0
- package/lib/typescript/src/components/checkBox/type.d.ts.map +1 -0
- package/lib/typescript/src/components/chip/index.d.ts +5 -0
- package/lib/typescript/src/components/chip/index.d.ts.map +1 -0
- package/lib/typescript/src/components/chip/stylesheet.d.ts +48 -0
- package/lib/typescript/src/components/chip/stylesheet.d.ts.map +1 -0
- package/lib/typescript/src/components/chip/type.d.ts +53 -0
- package/lib/typescript/src/components/chip/type.d.ts.map +1 -0
- package/lib/typescript/src/components/dateSelector/index.d.ts +5 -0
- package/lib/typescript/src/components/dateSelector/index.d.ts.map +1 -0
- package/lib/typescript/src/components/dateSelector/stylesheet.d.ts +49 -0
- package/lib/typescript/src/components/dateSelector/stylesheet.d.ts.map +1 -0
- package/lib/typescript/src/components/dateSelector/type.d.ts +46 -0
- package/lib/typescript/src/components/dateSelector/type.d.ts.map +1 -0
- package/lib/typescript/src/components/dateSelector/util.d.ts +3 -0
- package/lib/typescript/src/components/dateSelector/util.d.ts.map +1 -0
- package/lib/typescript/src/components/dateTimePicker/index.d.ts +5 -0
- package/lib/typescript/src/components/dateTimePicker/index.d.ts.map +1 -0
- package/lib/typescript/src/components/dateTimePicker/stylesheet.d.ts +85 -0
- package/lib/typescript/src/components/dateTimePicker/stylesheet.d.ts.map +1 -0
- package/lib/typescript/src/components/dateTimePicker/type.d.ts +173 -0
- package/lib/typescript/src/components/dateTimePicker/type.d.ts.map +1 -0
- package/lib/typescript/src/components/dateTimeSheet/index.d.ts +4 -0
- package/lib/typescript/src/components/dateTimeSheet/index.d.ts.map +1 -0
- package/lib/typescript/src/components/dateTimeSheet/stylesheet.d.ts +54 -0
- package/lib/typescript/src/components/dateTimeSheet/stylesheet.d.ts.map +1 -0
- package/lib/typescript/src/components/dateTimeSheet/type.d.ts +67 -0
- package/lib/typescript/src/components/dateTimeSheet/type.d.ts.map +1 -0
- package/lib/typescript/src/components/dialog/index.d.ts +5 -0
- package/lib/typescript/src/components/dialog/index.d.ts.map +1 -0
- package/lib/typescript/src/components/dialog/stylesheet.d.ts +48 -0
- package/lib/typescript/src/components/dialog/stylesheet.d.ts.map +1 -0
- package/lib/typescript/src/components/dialog/type.d.ts +62 -0
- package/lib/typescript/src/components/dialog/type.d.ts.map +1 -0
- package/lib/typescript/src/components/index.d.ts +38 -0
- package/lib/typescript/src/components/index.d.ts.map +1 -0
- package/lib/typescript/src/components/loading/index.d.ts +5 -0
- package/lib/typescript/src/components/loading/index.d.ts.map +1 -0
- package/lib/typescript/src/components/loading/stylesheet.d.ts +7 -0
- package/lib/typescript/src/components/loading/stylesheet.d.ts.map +1 -0
- package/lib/typescript/src/components/loading/type.d.ts +12 -0
- package/lib/typescript/src/components/loading/type.d.ts.map +1 -0
- package/lib/typescript/src/components/markdownViewer/constant.d.ts +3 -0
- package/lib/typescript/src/components/markdownViewer/constant.d.ts.map +1 -0
- package/lib/typescript/src/components/markdownViewer/index.d.ts +5 -0
- package/lib/typescript/src/components/markdownViewer/index.d.ts.map +1 -0
- package/lib/typescript/src/components/markdownViewer/stylesheet.d.ts +57 -0
- package/lib/typescript/src/components/markdownViewer/stylesheet.d.ts.map +1 -0
- package/lib/typescript/src/components/markdownViewer/type.d.ts +57 -0
- package/lib/typescript/src/components/markdownViewer/type.d.ts.map +1 -0
- package/lib/typescript/src/components/markdownViewer/util.d.ts +53 -0
- package/lib/typescript/src/components/markdownViewer/util.d.ts.map +1 -0
- package/lib/typescript/src/components/modal/index.d.ts +5 -0
- package/lib/typescript/src/components/modal/index.d.ts.map +1 -0
- package/lib/typescript/src/components/modal/stylesheet.d.ts +33 -0
- package/lib/typescript/src/components/modal/stylesheet.d.ts.map +1 -0
- package/lib/typescript/src/components/modal/type.d.ts +45 -0
- package/lib/typescript/src/components/modal/type.d.ts.map +1 -0
- package/lib/typescript/src/components/monthSelector/index.d.ts +5 -0
- package/lib/typescript/src/components/monthSelector/index.d.ts.map +1 -0
- package/lib/typescript/src/components/monthSelector/stylesheet.d.ts +49 -0
- package/lib/typescript/src/components/monthSelector/stylesheet.d.ts.map +1 -0
- package/lib/typescript/src/components/monthSelector/type.d.ts +46 -0
- package/lib/typescript/src/components/monthSelector/type.d.ts.map +1 -0
- package/lib/typescript/src/components/monthSelector/util.d.ts +3 -0
- package/lib/typescript/src/components/monthSelector/util.d.ts.map +1 -0
- package/lib/typescript/src/components/notificationIndicator/index.d.ts +5 -0
- package/lib/typescript/src/components/notificationIndicator/index.d.ts.map +1 -0
- package/lib/typescript/src/components/notificationIndicator/stylesheet.d.ts +46 -0
- package/lib/typescript/src/components/notificationIndicator/stylesheet.d.ts.map +1 -0
- package/lib/typescript/src/components/notificationIndicator/type.d.ts +52 -0
- package/lib/typescript/src/components/notificationIndicator/type.d.ts.map +1 -0
- package/lib/typescript/src/components/numericInput/index.d.ts +5 -0
- package/lib/typescript/src/components/numericInput/index.d.ts.map +1 -0
- package/lib/typescript/src/components/numericInput/stylesheet.d.ts +103 -0
- package/lib/typescript/src/components/numericInput/stylesheet.d.ts.map +1 -0
- package/lib/typescript/src/components/numericInput/type.d.ts +87 -0
- package/lib/typescript/src/components/numericInput/type.d.ts.map +1 -0
- package/lib/typescript/src/components/pageContainer/index.d.ts +5 -0
- package/lib/typescript/src/components/pageContainer/index.d.ts.map +1 -0
- package/lib/typescript/src/components/pageContainer/stylesheet.d.ts +10 -0
- package/lib/typescript/src/components/pageContainer/stylesheet.d.ts.map +1 -0
- package/lib/typescript/src/components/pageContainer/type.d.ts +22 -0
- package/lib/typescript/src/components/pageContainer/type.d.ts.map +1 -0
- package/lib/typescript/src/components/radioButton/index.d.ts +5 -0
- package/lib/typescript/src/components/radioButton/index.d.ts.map +1 -0
- package/lib/typescript/src/components/radioButton/stylesheet.d.ts +67 -0
- package/lib/typescript/src/components/radioButton/stylesheet.d.ts.map +1 -0
- package/lib/typescript/src/components/radioButton/type.d.ts +58 -0
- package/lib/typescript/src/components/radioButton/type.d.ts.map +1 -0
- package/lib/typescript/src/components/rowCard/index.d.ts +5 -0
- package/lib/typescript/src/components/rowCard/index.d.ts.map +1 -0
- package/lib/typescript/src/components/rowCard/stylesheet.d.ts +45 -0
- package/lib/typescript/src/components/rowCard/stylesheet.d.ts.map +1 -0
- package/lib/typescript/src/components/rowCard/type.d.ts +49 -0
- package/lib/typescript/src/components/rowCard/type.d.ts.map +1 -0
- package/lib/typescript/src/components/selectBox/index.d.ts +4 -0
- package/lib/typescript/src/components/selectBox/index.d.ts.map +1 -0
- package/lib/typescript/src/components/selectBox/stylesheet.d.ts +86 -0
- package/lib/typescript/src/components/selectBox/stylesheet.d.ts.map +1 -0
- package/lib/typescript/src/components/selectBox/type.d.ts +151 -0
- package/lib/typescript/src/components/selectBox/type.d.ts.map +1 -0
- package/lib/typescript/src/components/selectSheet/index.d.ts +4 -0
- package/lib/typescript/src/components/selectSheet/index.d.ts.map +1 -0
- package/lib/typescript/src/components/selectSheet/stylesheet.d.ts +54 -0
- package/lib/typescript/src/components/selectSheet/stylesheet.d.ts.map +1 -0
- package/lib/typescript/src/components/selectSheet/type.d.ts +80 -0
- package/lib/typescript/src/components/selectSheet/type.d.ts.map +1 -0
- package/lib/typescript/src/components/snackBar/index.d.ts +5 -0
- package/lib/typescript/src/components/snackBar/index.d.ts.map +1 -0
- package/lib/typescript/src/components/snackBar/stylesheet.d.ts +50 -0
- package/lib/typescript/src/components/snackBar/stylesheet.d.ts.map +1 -0
- package/lib/typescript/src/components/snackBar/type.d.ts +70 -0
- package/lib/typescript/src/components/snackBar/type.d.ts.map +1 -0
- package/lib/typescript/src/components/stateCard/index.d.ts +5 -0
- package/lib/typescript/src/components/stateCard/index.d.ts.map +1 -0
- package/lib/typescript/src/components/stateCard/stylesheet.d.ts +43 -0
- package/lib/typescript/src/components/stateCard/stylesheet.d.ts.map +1 -0
- package/lib/typescript/src/components/stateCard/type.d.ts +35 -0
- package/lib/typescript/src/components/stateCard/type.d.ts.map +1 -0
- package/lib/typescript/src/components/sticker/index.d.ts +5 -0
- package/lib/typescript/src/components/sticker/index.d.ts.map +1 -0
- package/lib/typescript/src/components/sticker/stylesheet.d.ts +34 -0
- package/lib/typescript/src/components/sticker/stylesheet.d.ts.map +1 -0
- package/lib/typescript/src/components/sticker/type.d.ts +45 -0
- package/lib/typescript/src/components/sticker/type.d.ts.map +1 -0
- package/lib/typescript/src/components/switch/index.d.ts +5 -0
- package/lib/typescript/src/components/switch/index.d.ts.map +1 -0
- package/lib/typescript/src/components/switch/stylesheet.d.ts +64 -0
- package/lib/typescript/src/components/switch/stylesheet.d.ts.map +1 -0
- package/lib/typescript/src/components/switch/type.d.ts +56 -0
- package/lib/typescript/src/components/switch/type.d.ts.map +1 -0
- package/lib/typescript/src/components/text/index.d.ts +5 -0
- package/lib/typescript/src/components/text/index.d.ts.map +1 -0
- package/lib/typescript/src/components/text/type.d.ts +17 -0
- package/lib/typescript/src/components/text/type.d.ts.map +1 -0
- package/lib/typescript/src/components/textAreaInput/index.d.ts +5 -0
- package/lib/typescript/src/components/textAreaInput/index.d.ts.map +1 -0
- package/lib/typescript/src/components/textAreaInput/stylesheet.d.ts +113 -0
- package/lib/typescript/src/components/textAreaInput/stylesheet.d.ts.map +1 -0
- package/lib/typescript/src/components/textAreaInput/type.d.ts +86 -0
- package/lib/typescript/src/components/textAreaInput/type.d.ts.map +1 -0
- package/lib/typescript/src/components/textInput/index.d.ts +5 -0
- package/lib/typescript/src/components/textInput/index.d.ts.map +1 -0
- package/lib/typescript/src/components/textInput/stylesheet.d.ts +104 -0
- package/lib/typescript/src/components/textInput/stylesheet.d.ts.map +1 -0
- package/lib/typescript/src/components/textInput/type.d.ts +86 -0
- package/lib/typescript/src/components/textInput/type.d.ts.map +1 -0
- package/lib/typescript/src/components/timeSelector/components/timeInput/index.d.ts +5 -0
- package/lib/typescript/src/components/timeSelector/components/timeInput/index.d.ts.map +1 -0
- package/lib/typescript/src/components/timeSelector/components/timeInput/stylesheet.d.ts +17 -0
- package/lib/typescript/src/components/timeSelector/components/timeInput/stylesheet.d.ts.map +1 -0
- package/lib/typescript/src/components/timeSelector/components/timeInput/type.d.ts +32 -0
- package/lib/typescript/src/components/timeSelector/components/timeInput/type.d.ts.map +1 -0
- package/lib/typescript/src/components/timeSelector/index.d.ts +4 -0
- package/lib/typescript/src/components/timeSelector/index.d.ts.map +1 -0
- package/lib/typescript/src/components/timeSelector/stylesheet.d.ts +27 -0
- package/lib/typescript/src/components/timeSelector/stylesheet.d.ts.map +1 -0
- package/lib/typescript/src/components/timeSelector/type.d.ts +36 -0
- package/lib/typescript/src/components/timeSelector/type.d.ts.map +1 -0
- package/lib/typescript/src/components/toast/index.d.ts +5 -0
- package/lib/typescript/src/components/toast/index.d.ts.map +1 -0
- package/lib/typescript/src/components/toast/stylesheet.d.ts +49 -0
- package/lib/typescript/src/components/toast/stylesheet.d.ts.map +1 -0
- package/lib/typescript/src/components/toast/type.d.ts +64 -0
- package/lib/typescript/src/components/toast/type.d.ts.map +1 -0
- package/lib/typescript/src/components/yearSelector/index.d.ts +5 -0
- package/lib/typescript/src/components/yearSelector/index.d.ts.map +1 -0
- package/lib/typescript/src/components/yearSelector/stylesheet.d.ts +49 -0
- package/lib/typescript/src/components/yearSelector/stylesheet.d.ts.map +1 -0
- package/lib/typescript/src/components/yearSelector/type.d.ts +43 -0
- package/lib/typescript/src/components/yearSelector/type.d.ts.map +1 -0
- package/lib/typescript/src/components/yearSelector/util.d.ts +3 -0
- package/lib/typescript/src/components/yearSelector/util.d.ts.map +1 -0
- package/lib/typescript/src/context/bottomSheet.d.ts +18 -0
- package/lib/typescript/src/context/bottomSheet.d.ts.map +1 -0
- package/lib/typescript/src/context/dialog.d.ts +18 -0
- package/lib/typescript/src/context/dialog.d.ts.map +1 -0
- package/lib/typescript/src/context/index.d.ts +24 -0
- package/lib/typescript/src/context/index.d.ts.map +1 -0
- package/lib/typescript/src/context/localize.d.ts +24 -0
- package/lib/typescript/src/context/localize.d.ts.map +1 -0
- package/lib/typescript/src/context/modal.d.ts +18 -0
- package/lib/typescript/src/context/modal.d.ts.map +1 -0
- package/lib/typescript/src/context/snackBar.d.ts +18 -0
- package/lib/typescript/src/context/snackBar.d.ts.map +1 -0
- package/lib/typescript/src/context/theme.d.ts +32 -0
- package/lib/typescript/src/context/theme.d.ts.map +1 -0
- package/lib/typescript/src/context/toast.d.ts +18 -0
- package/lib/typescript/src/context/toast.d.ts.map +1 -0
- package/lib/typescript/src/core/hooks.d.ts +18 -0
- package/lib/typescript/src/core/hooks.d.ts.map +1 -0
- package/lib/typescript/src/core/index.d.ts +13 -0
- package/lib/typescript/src/core/index.d.ts.map +1 -0
- package/lib/typescript/src/helpers/index.d.ts +5 -0
- package/lib/typescript/src/helpers/index.d.ts.map +1 -0
- package/lib/typescript/src/helpers/locale/index.d.ts +8 -0
- package/lib/typescript/src/helpers/locale/index.d.ts.map +1 -0
- package/lib/typescript/src/helpers/portalize/Consumer.d.ts +10 -0
- package/lib/typescript/src/helpers/portalize/Consumer.d.ts.map +1 -0
- package/lib/typescript/src/helpers/portalize/Host.d.ts +17 -0
- package/lib/typescript/src/helpers/portalize/Host.d.ts.map +1 -0
- package/lib/typescript/src/helpers/portalize/Manager.d.ts +10 -0
- package/lib/typescript/src/helpers/portalize/Manager.d.ts.map +1 -0
- package/lib/typescript/src/helpers/portalize/Portal.d.ts +8 -0
- package/lib/typescript/src/helpers/portalize/Portal.d.ts.map +1 -0
- package/lib/typescript/src/helpers/portalize/context/index.d.ts +14 -0
- package/lib/typescript/src/helpers/portalize/context/index.d.ts.map +1 -0
- package/lib/typescript/src/helpers/portalize/hooks/useKey.d.ts +7 -0
- package/lib/typescript/src/helpers/portalize/hooks/useKey.d.ts.map +1 -0
- package/lib/typescript/src/helpers/portalize/index.d.ts +5 -0
- package/lib/typescript/src/helpers/portalize/index.d.ts.map +1 -0
- package/lib/typescript/src/helpers/theme/palette.d.ts +3 -0
- package/lib/typescript/src/helpers/theme/palette.d.ts.map +1 -0
- package/lib/typescript/src/helpers/theme/shapes.d.ts +33 -0
- package/lib/typescript/src/helpers/theme/shapes.d.ts.map +1 -0
- package/lib/typescript/src/helpers/theme/typography.d.ts +22 -0
- package/lib/typescript/src/helpers/theme/typography.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +10 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/types/bottomSheet.d.ts +20 -0
- package/lib/typescript/src/types/bottomSheet.d.ts.map +1 -0
- package/lib/typescript/src/types/dialog.d.ts +20 -0
- package/lib/typescript/src/types/dialog.d.ts.map +1 -0
- package/lib/typescript/src/types/icon.d.ts +14 -0
- package/lib/typescript/src/types/icon.d.ts.map +1 -0
- package/lib/typescript/src/types/index.d.ts +134 -0
- package/lib/typescript/src/types/index.d.ts.map +1 -0
- package/lib/typescript/src/types/locale.d.ts +17 -0
- package/lib/typescript/src/types/locale.d.ts.map +1 -0
- package/lib/typescript/src/types/modal.d.ts +20 -0
- package/lib/typescript/src/types/modal.d.ts.map +1 -0
- package/lib/typescript/src/types/portalize.d.ts +4 -0
- package/lib/typescript/src/types/portalize.d.ts.map +1 -0
- package/lib/typescript/src/types/snackBar.d.ts +19 -0
- package/lib/typescript/src/types/snackBar.d.ts.map +1 -0
- package/lib/typescript/src/types/theme.d.ts +25 -0
- package/lib/typescript/src/types/theme.d.ts.map +1 -0
- package/lib/typescript/src/types/toast.d.ts +19 -0
- package/lib/typescript/src/types/toast.d.ts.map +1 -0
- package/lib/typescript/src/utils/index.d.ts +5 -0
- package/lib/typescript/src/utils/index.d.ts.map +1 -0
- package/lib/typescript/src/variants/locales/default.json +208 -0
- package/lib/typescript/src/variants/themes/default.json +669 -0
- package/package.json +213 -0
- package/react-native.config.js +5 -0
- package/src/assets/fonts/Geist-Black.ttf +0 -0
- package/src/assets/fonts/Geist-Bold.ttf +0 -0
- package/src/assets/fonts/Geist-ExtraBold.ttf +0 -0
- package/src/assets/fonts/Geist-ExtraLight.ttf +0 -0
- package/src/assets/fonts/Geist-Light.ttf +0 -0
- package/src/assets/fonts/Geist-Medium.ttf +0 -0
- package/src/assets/fonts/Geist-Regular.ttf +0 -0
- package/src/assets/fonts/Geist-SemiBold.ttf +0 -0
- package/src/assets/fonts/Geist-Thin.ttf +0 -0
- package/src/assets/svg/badgeAlertIcon/index.tsx +42 -0
- package/src/assets/svg/badgeDangerIcon/index.tsx +40 -0
- package/src/assets/svg/badgeInfoIcon/index.tsx +40 -0
- package/src/assets/svg/badgeQuestionMarkIcon/index.tsx +50 -0
- package/src/assets/svg/badgeRightIcon/index.tsx +40 -0
- package/src/assets/svg/badgeSuccessIcon/index.tsx +50 -0
- package/src/assets/svg/chevronRightIcon/index.tsx +40 -0
- package/src/assets/svg/cleanIcon/index.tsx +40 -0
- package/src/assets/svg/eyeClosedIcon/index.tsx +50 -0
- package/src/assets/svg/eyeOpenedIcon/index.tsx +50 -0
- package/src/assets/svg/index.ts +39 -0
- package/src/assets/svg/loadingIcon/index.tsx +95 -0
- package/src/components/bottomSheet/index.tsx +1218 -0
- package/src/components/bottomSheet/stylesheet.ts +28 -0
- package/src/components/bottomSheet/type.ts +68 -0
- package/src/components/button/index.tsx +191 -0
- package/src/components/button/stylesheet.ts +294 -0
- package/src/components/button/type.ts +108 -0
- package/src/components/checkBox/index.tsx +274 -0
- package/src/components/checkBox/stylesheet.ts +223 -0
- package/src/components/checkBox/type.ts +69 -0
- package/src/components/chip/index.tsx +183 -0
- package/src/components/chip/stylesheet.ts +172 -0
- package/src/components/chip/type.ts +68 -0
- package/src/components/dateSelector/index.tsx +434 -0
- package/src/components/dateSelector/stylesheet.ts +92 -0
- package/src/components/dateSelector/type.ts +59 -0
- package/src/components/dateSelector/util.ts +20 -0
- package/src/components/dateTimePicker/index.tsx +977 -0
- package/src/components/dateTimePicker/stylesheet.ts +252 -0
- package/src/components/dateTimePicker/type.ts +214 -0
- package/src/components/dateTimeSheet/index.tsx +418 -0
- package/src/components/dateTimeSheet/stylesheet.ts +99 -0
- package/src/components/dateTimeSheet/type.ts +98 -0
- package/src/components/dialog/index.tsx +336 -0
- package/src/components/dialog/stylesheet.ts +129 -0
- package/src/components/dialog/type.ts +79 -0
- package/src/components/index.ts +163 -0
- package/src/components/loading/index.tsx +26 -0
- package/src/components/loading/stylesheet.ts +10 -0
- package/src/components/loading/type.ts +18 -0
- package/src/components/markdownViewer/constant.ts +19 -0
- package/src/components/markdownViewer/index.tsx +503 -0
- package/src/components/markdownViewer/stylesheet.ts +72 -0
- package/src/components/markdownViewer/type.ts +87 -0
- package/src/components/markdownViewer/util.ts +453 -0
- package/src/components/modal/index.tsx +234 -0
- package/src/components/modal/stylesheet.ts +36 -0
- package/src/components/modal/type.ts +58 -0
- package/src/components/monthSelector/index.tsx +447 -0
- package/src/components/monthSelector/stylesheet.ts +89 -0
- package/src/components/monthSelector/type.ts +59 -0
- package/src/components/monthSelector/util.ts +20 -0
- package/src/components/notificationIndicator/index.tsx +172 -0
- package/src/components/notificationIndicator/stylesheet.ts +154 -0
- package/src/components/notificationIndicator/type.ts +65 -0
- package/src/components/numericInput/index.tsx +617 -0
- package/src/components/numericInput/stylesheet.ts +278 -0
- package/src/components/numericInput/type.ts +109 -0
- package/src/components/pageContainer/index.tsx +119 -0
- package/src/components/pageContainer/stylesheet.ts +13 -0
- package/src/components/pageContainer/type.ts +30 -0
- package/src/components/radioButton/index.tsx +269 -0
- package/src/components/radioButton/stylesheet.ts +233 -0
- package/src/components/radioButton/type.ts +70 -0
- package/src/components/rowCard/index.tsx +231 -0
- package/src/components/rowCard/stylesheet.ts +95 -0
- package/src/components/rowCard/type.ts +59 -0
- package/src/components/selectBox/index.tsx +867 -0
- package/src/components/selectBox/stylesheet.ts +250 -0
- package/src/components/selectBox/type.ts +193 -0
- package/src/components/selectSheet/index.tsx +372 -0
- package/src/components/selectSheet/stylesheet.ts +102 -0
- package/src/components/selectSheet/type.ts +103 -0
- package/src/components/snackBar/index.tsx +430 -0
- package/src/components/snackBar/stylesheet.ts +164 -0
- package/src/components/snackBar/type.ts +85 -0
- package/src/components/stateCard/index.tsx +152 -0
- package/src/components/stateCard/stylesheet.ts +121 -0
- package/src/components/stateCard/type.ts +47 -0
- package/src/components/sticker/index.tsx +123 -0
- package/src/components/sticker/stylesheet.ts +124 -0
- package/src/components/sticker/type.ts +60 -0
- package/src/components/switch/index.tsx +284 -0
- package/src/components/switch/stylesheet.ts +214 -0
- package/src/components/switch/type.ts +68 -0
- package/src/components/text/index.tsx +42 -0
- package/src/components/text/type.ts +25 -0
- package/src/components/textAreaInput/index.tsx +551 -0
- package/src/components/textAreaInput/stylesheet.ts +294 -0
- package/src/components/textAreaInput/type.ts +104 -0
- package/src/components/textInput/index.tsx +555 -0
- package/src/components/textInput/stylesheet.ts +279 -0
- package/src/components/textInput/type.ts +105 -0
- package/src/components/timeSelector/components/timeInput/index.tsx +172 -0
- package/src/components/timeSelector/components/timeInput/stylesheet.ts +38 -0
- package/src/components/timeSelector/components/timeInput/type.ts +47 -0
- package/src/components/timeSelector/index.tsx +433 -0
- package/src/components/timeSelector/stylesheet.ts +59 -0
- package/src/components/timeSelector/type.ts +48 -0
- package/src/components/toast/index.tsx +272 -0
- package/src/components/toast/stylesheet.ts +156 -0
- package/src/components/toast/type.ts +79 -0
- package/src/components/yearSelector/index.tsx +444 -0
- package/src/components/yearSelector/stylesheet.ts +89 -0
- package/src/components/yearSelector/type.ts +55 -0
- package/src/components/yearSelector/util.ts +20 -0
- package/src/context/bottomSheet.tsx +121 -0
- package/src/context/dialog.tsx +120 -0
- package/src/context/index.tsx +110 -0
- package/src/context/localize.tsx +202 -0
- package/src/context/modal.tsx +116 -0
- package/src/context/snackBar.tsx +114 -0
- package/src/context/theme.tsx +217 -0
- package/src/context/toast.tsx +114 -0
- package/src/core/hooks.ts +33 -0
- package/src/core/index.tsx +126 -0
- package/src/helpers/index.ts +20 -0
- package/src/helpers/locale/index.ts +28 -0
- package/src/helpers/portalize/Consumer.tsx +53 -0
- package/src/helpers/portalize/Host.tsx +122 -0
- package/src/helpers/portalize/Manager.tsx +75 -0
- package/src/helpers/portalize/Portal.tsx +30 -0
- package/src/helpers/portalize/context/index.ts +49 -0
- package/src/helpers/portalize/hooks/useKey.ts +49 -0
- package/src/helpers/portalize/index.tsx +15 -0
- package/src/helpers/theme/palette.ts +90 -0
- package/src/helpers/theme/shapes.ts +106 -0
- package/src/helpers/theme/typography.ts +46 -0
- package/src/index.tsx +117 -0
- package/src/types/bottomSheet.ts +23 -0
- package/src/types/dialog.ts +23 -0
- package/src/types/icon.ts +20 -0
- package/src/types/index.ts +217 -0
- package/src/types/locale.ts +30 -0
- package/src/types/modal.ts +25 -0
- package/src/types/portalize.ts +3 -0
- package/src/types/snackBar.ts +24 -0
- package/src/types/theme.ts +30 -0
- package/src/types/toast.ts +24 -0
- package/src/utils/index.ts +65 -0
- package/src/variants/locales/default.json +208 -0
- package/src/variants/themes/default.json +669 -0
|
@@ -0,0 +1,368 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useEffect, useState, createElement as _createElement } from "react";
|
|
4
|
+
import { Text as NativeText, TouchableOpacity, Linking, Image, View } from "react-native";
|
|
5
|
+
import stylesheet, { useStyles } from "./stylesheet.js";
|
|
6
|
+
import { parseMarkdown } from "./util.js";
|
|
7
|
+
import { NCoreUIKitTheme } from "../../core/hooks.js";
|
|
8
|
+
import { Quote as QuoteIcon } from "lucide-react-native";
|
|
9
|
+
import Text from "../text/index.js";
|
|
10
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
+
const MarkdownViewer = ({
|
|
12
|
+
blockquoteIconSize = "titleLargeSize",
|
|
13
|
+
codeTextColor = "emphasized",
|
|
14
|
+
blockquoteIconColor = "mid",
|
|
15
|
+
blockquoteTextColor = "mid",
|
|
16
|
+
blockquoteContainerProps,
|
|
17
|
+
centerContainerProps,
|
|
18
|
+
blockquoteTextStyle,
|
|
19
|
+
rightContainerProps,
|
|
20
|
+
blockquoteIconStyle,
|
|
21
|
+
centerMarkdownProps,
|
|
22
|
+
leftContainerProps,
|
|
23
|
+
rightMarkdownProps,
|
|
24
|
+
listContainerProps,
|
|
25
|
+
linkContainerProps,
|
|
26
|
+
codeContainerProps,
|
|
27
|
+
leftMarkdownProps,
|
|
28
|
+
linkMarkdownProps,
|
|
29
|
+
customTextStyles,
|
|
30
|
+
customTextProps,
|
|
31
|
+
italicTextProps,
|
|
32
|
+
enterTextProps,
|
|
33
|
+
boldTextProps,
|
|
34
|
+
listIconProps,
|
|
35
|
+
codeTextProps,
|
|
36
|
+
listTextProps,
|
|
37
|
+
italicStyle,
|
|
38
|
+
imageProps,
|
|
39
|
+
boldStyle,
|
|
40
|
+
content,
|
|
41
|
+
style,
|
|
42
|
+
...props
|
|
43
|
+
}) => {
|
|
44
|
+
const {
|
|
45
|
+
typography,
|
|
46
|
+
radiuses,
|
|
47
|
+
colors,
|
|
48
|
+
spaces
|
|
49
|
+
} = NCoreUIKitTheme.useContext();
|
|
50
|
+
const [containerWidth, setContainerWidth] = useState(null);
|
|
51
|
+
const {
|
|
52
|
+
blockquoteContainer: blockquoteContainerDynamicStyle,
|
|
53
|
+
blockquoteIcon: blockquoteIconDynamicStyle,
|
|
54
|
+
codeContainer: codeContainerDynamicStyle
|
|
55
|
+
} = useStyles({
|
|
56
|
+
radiuses,
|
|
57
|
+
colors,
|
|
58
|
+
spaces
|
|
59
|
+
});
|
|
60
|
+
const nodes = parseMarkdown(content);
|
|
61
|
+
const renderBold = ({
|
|
62
|
+
part,
|
|
63
|
+
i
|
|
64
|
+
}) => {
|
|
65
|
+
return /*#__PURE__*/_createElement(NativeText, {
|
|
66
|
+
...boldTextProps,
|
|
67
|
+
key: `bold-${i}`,
|
|
68
|
+
style: {
|
|
69
|
+
...stylesheet.bold,
|
|
70
|
+
...boldStyle
|
|
71
|
+
}
|
|
72
|
+
}, part.replace(/\*\*/g, ""));
|
|
73
|
+
};
|
|
74
|
+
const renderItalic = ({
|
|
75
|
+
part,
|
|
76
|
+
i
|
|
77
|
+
}) => {
|
|
78
|
+
return /*#__PURE__*/_createElement(NativeText, {
|
|
79
|
+
...italicTextProps,
|
|
80
|
+
key: `italic-${i}`,
|
|
81
|
+
style: {
|
|
82
|
+
...stylesheet.italic,
|
|
83
|
+
...italicStyle
|
|
84
|
+
}
|
|
85
|
+
}, part.replace(/__/g, ""));
|
|
86
|
+
};
|
|
87
|
+
const renderInlineStyles = _content => {
|
|
88
|
+
const parts = _content.split(/(\*\*.*?\*\*|__.*?__)/g);
|
|
89
|
+
return parts.map((part, i) => {
|
|
90
|
+
if (part.startsWith("**") && part.endsWith("**")) return renderBold({
|
|
91
|
+
part,
|
|
92
|
+
i
|
|
93
|
+
});
|
|
94
|
+
if (part.startsWith("__") && part.endsWith("__")) return renderItalic({
|
|
95
|
+
part,
|
|
96
|
+
i
|
|
97
|
+
});
|
|
98
|
+
return part;
|
|
99
|
+
});
|
|
100
|
+
};
|
|
101
|
+
const renderText = ({
|
|
102
|
+
node
|
|
103
|
+
}) => {
|
|
104
|
+
let textProps = {
|
|
105
|
+
variant: node.variant
|
|
106
|
+
};
|
|
107
|
+
if (customTextStyles && customTextStyles[node.nativeType]) {
|
|
108
|
+
const currentTextStyle = customTextStyles[node.nativeType];
|
|
109
|
+
textProps.style = currentTextStyle;
|
|
110
|
+
}
|
|
111
|
+
if (customTextProps && customTextProps[node.nativeType]) {
|
|
112
|
+
const currentTextProps = customTextProps[node.nativeType];
|
|
113
|
+
textProps = {
|
|
114
|
+
...textProps,
|
|
115
|
+
...currentTextProps
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
return /*#__PURE__*/_createElement(Text, {
|
|
119
|
+
...textProps,
|
|
120
|
+
key: node.key
|
|
121
|
+
}, renderInlineStyles(node.content));
|
|
122
|
+
};
|
|
123
|
+
const renderEnter = ({
|
|
124
|
+
node
|
|
125
|
+
}) => {
|
|
126
|
+
return /*#__PURE__*/_createElement(View, {
|
|
127
|
+
...enterTextProps,
|
|
128
|
+
key: node.key,
|
|
129
|
+
style: [stylesheet.enter, {
|
|
130
|
+
height: typography[node.variant].fontSize
|
|
131
|
+
}, enterTextProps?.style]
|
|
132
|
+
});
|
|
133
|
+
};
|
|
134
|
+
const renderBlockquote = ({
|
|
135
|
+
node
|
|
136
|
+
}) => {
|
|
137
|
+
return /*#__PURE__*/_createElement(View, {
|
|
138
|
+
...blockquoteContainerProps,
|
|
139
|
+
key: node.key,
|
|
140
|
+
style: [blockquoteContainerDynamicStyle, blockquoteContainerProps?.style]
|
|
141
|
+
}, /*#__PURE__*/_jsx(QuoteIcon, {
|
|
142
|
+
color: colors.content.icon[blockquoteIconColor],
|
|
143
|
+
size: typography[blockquoteIconSize].fontSize,
|
|
144
|
+
style: {
|
|
145
|
+
...blockquoteIconDynamicStyle,
|
|
146
|
+
...blockquoteIconStyle
|
|
147
|
+
}
|
|
148
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
149
|
+
color: blockquoteTextColor,
|
|
150
|
+
variant: node.variant,
|
|
151
|
+
style: {
|
|
152
|
+
...stylesheet.blockquoteText,
|
|
153
|
+
...blockquoteTextStyle
|
|
154
|
+
},
|
|
155
|
+
children: renderInlineStyles(node.content)
|
|
156
|
+
}));
|
|
157
|
+
};
|
|
158
|
+
const renderImage = ({
|
|
159
|
+
node
|
|
160
|
+
}) => {
|
|
161
|
+
const [imgSize, setImgSize] = useState({
|
|
162
|
+
isSetted: false,
|
|
163
|
+
width: "100%",
|
|
164
|
+
height: 0
|
|
165
|
+
});
|
|
166
|
+
useEffect(() => {
|
|
167
|
+
if (!imgSize.isSetted && node.size) {
|
|
168
|
+
setImgSize({
|
|
169
|
+
height: node.size[1],
|
|
170
|
+
width: node.size[0],
|
|
171
|
+
isSetted: true
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
}, [imgSize]);
|
|
175
|
+
const currentWidth = typeof imgSize.width === "number" || imgSize.width.indexOf("%") === -1 || !containerWidth ? imgSize.width : containerWidth * Number(imgSize.width.split("%")[0]) / 100;
|
|
176
|
+
const currentHeight = typeof imgSize.height === "number" || imgSize.height.indexOf("%") === -1 || !containerWidth ? imgSize.height : containerWidth * Number(imgSize.height.split("%")[0]) / 100;
|
|
177
|
+
return /*#__PURE__*/_createElement(Image, {
|
|
178
|
+
...imageProps,
|
|
179
|
+
alt: node.content,
|
|
180
|
+
key: node.key,
|
|
181
|
+
source: {
|
|
182
|
+
uri: node.url
|
|
183
|
+
},
|
|
184
|
+
resizeMode: node.resizeMode ? node.resizeMode : "contain",
|
|
185
|
+
onLoad: event => {
|
|
186
|
+
if (!node.size) {
|
|
187
|
+
const {
|
|
188
|
+
height,
|
|
189
|
+
width
|
|
190
|
+
} = event.nativeEvent.source;
|
|
191
|
+
setImgSize({
|
|
192
|
+
isSetted: true,
|
|
193
|
+
height,
|
|
194
|
+
width
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
style: {
|
|
199
|
+
...stylesheet.image,
|
|
200
|
+
height: currentHeight,
|
|
201
|
+
width: currentWidth,
|
|
202
|
+
...imageProps?.style
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
};
|
|
206
|
+
const renderList = ({
|
|
207
|
+
node
|
|
208
|
+
}) => {
|
|
209
|
+
return /*#__PURE__*/_createElement(View, {
|
|
210
|
+
...listContainerProps,
|
|
211
|
+
key: node.key,
|
|
212
|
+
style: [stylesheet.listContainer, listContainerProps?.style]
|
|
213
|
+
}, /*#__PURE__*/_jsxs(Text, {
|
|
214
|
+
...listIconProps,
|
|
215
|
+
variant: node.variant,
|
|
216
|
+
children: ["\u2022", " "]
|
|
217
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
218
|
+
...listTextProps,
|
|
219
|
+
variant: node.variant,
|
|
220
|
+
children: renderInlineStyles(node.content)
|
|
221
|
+
}));
|
|
222
|
+
};
|
|
223
|
+
const renderCode = ({
|
|
224
|
+
node
|
|
225
|
+
}) => {
|
|
226
|
+
return /*#__PURE__*/_createElement(View, {
|
|
227
|
+
...codeContainerProps,
|
|
228
|
+
key: node.key,
|
|
229
|
+
style: [codeContainerDynamicStyle, codeContainerProps?.style]
|
|
230
|
+
}, /*#__PURE__*/_jsx(Text, {
|
|
231
|
+
...codeTextProps,
|
|
232
|
+
variant: node.variant,
|
|
233
|
+
color: codeTextColor,
|
|
234
|
+
children: node.content
|
|
235
|
+
}));
|
|
236
|
+
};
|
|
237
|
+
const renderLink = ({
|
|
238
|
+
node
|
|
239
|
+
}) => {
|
|
240
|
+
return /*#__PURE__*/_createElement(TouchableOpacity, {
|
|
241
|
+
...linkContainerProps,
|
|
242
|
+
key: node.key,
|
|
243
|
+
onPress: async () => {
|
|
244
|
+
const isCanOpen = await Linking.canOpenURL(node.url);
|
|
245
|
+
if (isCanOpen) {
|
|
246
|
+
Linking.openURL(node.url);
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}, /*#__PURE__*/_jsx(MarkdownViewer, {
|
|
250
|
+
...linkMarkdownProps,
|
|
251
|
+
content: node.content
|
|
252
|
+
}));
|
|
253
|
+
};
|
|
254
|
+
const renderCenter = ({
|
|
255
|
+
node
|
|
256
|
+
}) => {
|
|
257
|
+
return /*#__PURE__*/_createElement(View, {
|
|
258
|
+
...centerContainerProps,
|
|
259
|
+
key: node.key,
|
|
260
|
+
style: [stylesheet.centerContainer, centerContainerProps?.style]
|
|
261
|
+
}, /*#__PURE__*/_jsx(MarkdownViewer, {
|
|
262
|
+
...centerMarkdownProps,
|
|
263
|
+
content: node.content
|
|
264
|
+
}));
|
|
265
|
+
};
|
|
266
|
+
const renderLeft = ({
|
|
267
|
+
node
|
|
268
|
+
}) => {
|
|
269
|
+
return /*#__PURE__*/_createElement(View, {
|
|
270
|
+
...leftContainerProps,
|
|
271
|
+
key: node.key,
|
|
272
|
+
style: [stylesheet.leftContainer, leftContainerProps?.style]
|
|
273
|
+
}, /*#__PURE__*/_jsx(MarkdownViewer, {
|
|
274
|
+
...leftMarkdownProps,
|
|
275
|
+
content: node.content
|
|
276
|
+
}));
|
|
277
|
+
};
|
|
278
|
+
const renderRight = ({
|
|
279
|
+
node
|
|
280
|
+
}) => {
|
|
281
|
+
return /*#__PURE__*/_createElement(View, {
|
|
282
|
+
...rightContainerProps,
|
|
283
|
+
key: node.key,
|
|
284
|
+
style: [stylesheet.rightContainer, rightContainerProps?.style]
|
|
285
|
+
}, /*#__PURE__*/_jsx(MarkdownViewer, {
|
|
286
|
+
...rightMarkdownProps,
|
|
287
|
+
content: node.content
|
|
288
|
+
}));
|
|
289
|
+
};
|
|
290
|
+
return /*#__PURE__*/_jsx(View, {
|
|
291
|
+
...props,
|
|
292
|
+
onLayout: ({
|
|
293
|
+
nativeEvent
|
|
294
|
+
}) => {
|
|
295
|
+
setContainerWidth(nativeEvent.layout.width);
|
|
296
|
+
},
|
|
297
|
+
style: [stylesheet.container, style],
|
|
298
|
+
children: nodes.map(node => {
|
|
299
|
+
if (!node.content.trim() && node.nativeType === "<p>") return null;
|
|
300
|
+
switch (node.type) {
|
|
301
|
+
case undefined:
|
|
302
|
+
return null;
|
|
303
|
+
case "text":
|
|
304
|
+
{
|
|
305
|
+
return renderText({
|
|
306
|
+
node
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
case "space":
|
|
310
|
+
return renderEnter({
|
|
311
|
+
node
|
|
312
|
+
});
|
|
313
|
+
case "blockquote":
|
|
314
|
+
{
|
|
315
|
+
return renderBlockquote({
|
|
316
|
+
node
|
|
317
|
+
});
|
|
318
|
+
}
|
|
319
|
+
case "right":
|
|
320
|
+
{
|
|
321
|
+
return renderRight({
|
|
322
|
+
node
|
|
323
|
+
});
|
|
324
|
+
}
|
|
325
|
+
case "left":
|
|
326
|
+
{
|
|
327
|
+
return renderLeft({
|
|
328
|
+
node
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
case "center":
|
|
332
|
+
{
|
|
333
|
+
return renderCenter({
|
|
334
|
+
node
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
case "link":
|
|
338
|
+
{
|
|
339
|
+
return renderLink({
|
|
340
|
+
node
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
case "code":
|
|
344
|
+
{
|
|
345
|
+
return renderCode({
|
|
346
|
+
node
|
|
347
|
+
});
|
|
348
|
+
}
|
|
349
|
+
case "image":
|
|
350
|
+
{
|
|
351
|
+
return renderImage({
|
|
352
|
+
node
|
|
353
|
+
});
|
|
354
|
+
}
|
|
355
|
+
case "list":
|
|
356
|
+
return renderList({
|
|
357
|
+
node
|
|
358
|
+
});
|
|
359
|
+
default:
|
|
360
|
+
return renderText({
|
|
361
|
+
node
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
})
|
|
365
|
+
});
|
|
366
|
+
};
|
|
367
|
+
export default MarkdownViewer;
|
|
368
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useEffect","useState","createElement","_createElement","Text","NativeText","TouchableOpacity","Linking","Image","View","stylesheet","useStyles","parseMarkdown","NCoreUIKitTheme","Quote","QuoteIcon","jsx","_jsx","jsxs","_jsxs","MarkdownViewer","blockquoteIconSize","codeTextColor","blockquoteIconColor","blockquoteTextColor","blockquoteContainerProps","centerContainerProps","blockquoteTextStyle","rightContainerProps","blockquoteIconStyle","centerMarkdownProps","leftContainerProps","rightMarkdownProps","listContainerProps","linkContainerProps","codeContainerProps","leftMarkdownProps","linkMarkdownProps","customTextStyles","customTextProps","italicTextProps","enterTextProps","boldTextProps","listIconProps","codeTextProps","listTextProps","italicStyle","imageProps","boldStyle","content","style","props","typography","radiuses","colors","spaces","useContext","containerWidth","setContainerWidth","blockquoteContainer","blockquoteContainerDynamicStyle","blockquoteIcon","blockquoteIconDynamicStyle","codeContainer","codeContainerDynamicStyle","nodes","renderBold","part","i","key","bold","replace","renderItalic","italic","renderInlineStyles","_content","parts","split","map","startsWith","endsWith","renderText","node","textProps","variant","nativeType","currentTextStyle","currentTextProps","renderEnter","enter","height","fontSize","renderBlockquote","color","icon","size","blockquoteText","children","renderImage","imgSize","setImgSize","isSetted","width","currentWidth","indexOf","Number","currentHeight","alt","source","uri","url","resizeMode","onLoad","event","nativeEvent","image","renderList","listContainer","renderCode","renderLink","onPress","isCanOpen","canOpenURL","openURL","renderCenter","centerContainer","renderLeft","leftContainer","renderRight","rightContainer","onLayout","layout","container","trim","type","undefined"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/markdownViewer/index.tsx"],"mappings":";;AAAA,SACIA,SA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B;YACJ,CAAC,CAAC;UACN;QACA,KAAK,MAAM;UACP,OAAOkC,UAAU,CAAC;YACdlC;UACJ,CAAC,CAAC;QACN;UACI,OAAOD,UAAU,CAAC;YACdC;UACJ,CAAC,CAAC;MACV;IACJ,CAAC;EAAC,CACA,CAAC;AACX,CAAC;AACD,eAAe9D,cAAc","ignoreList":[]}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { StyleSheet } from "react-native";
|
|
4
|
+
const stylesheet = StyleSheet.create({
|
|
5
|
+
container: {},
|
|
6
|
+
bold: {
|
|
7
|
+
fontWeight: "bold"
|
|
8
|
+
},
|
|
9
|
+
italic: {
|
|
10
|
+
fontStyle: "italic"
|
|
11
|
+
},
|
|
12
|
+
enter: {
|
|
13
|
+
flexShrink: 1,
|
|
14
|
+
width: "100%"
|
|
15
|
+
},
|
|
16
|
+
blockquoteText: {
|
|
17
|
+
textAlignVertical: "bottom",
|
|
18
|
+
verticalAlign: "bottom"
|
|
19
|
+
},
|
|
20
|
+
image: {
|
|
21
|
+
maxWidth: "100%"
|
|
22
|
+
},
|
|
23
|
+
listContainer: {
|
|
24
|
+
flexDirection: "row",
|
|
25
|
+
alignItems: "center"
|
|
26
|
+
},
|
|
27
|
+
centerContainer: {
|
|
28
|
+
justifyContent: "center",
|
|
29
|
+
alignItems: "center",
|
|
30
|
+
alignSelf: "center"
|
|
31
|
+
},
|
|
32
|
+
leftContainer: {
|
|
33
|
+
justifyContent: "flex-start",
|
|
34
|
+
alignItems: "flex-start",
|
|
35
|
+
alignSelf: "flex-start"
|
|
36
|
+
},
|
|
37
|
+
rightContainer: {
|
|
38
|
+
justifyContent: "flex-end",
|
|
39
|
+
alignItems: "flex-end",
|
|
40
|
+
alignSelf: "flex-end"
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
export const useStyles = ({
|
|
44
|
+
radiuses,
|
|
45
|
+
colors,
|
|
46
|
+
spaces
|
|
47
|
+
}) => {
|
|
48
|
+
const styles = {
|
|
49
|
+
blockquoteContainer: {
|
|
50
|
+
backgroundColor: colors.content.container.mid,
|
|
51
|
+
borderRadius: radiuses.form,
|
|
52
|
+
padding: spaces.spacingMd
|
|
53
|
+
},
|
|
54
|
+
blockquoteIcon: {
|
|
55
|
+
marginBottom: spaces.spacingXs
|
|
56
|
+
},
|
|
57
|
+
codeContainer: {
|
|
58
|
+
backgroundColor: colors.content.container.mid,
|
|
59
|
+
borderRadius: radiuses.form,
|
|
60
|
+
padding: spaces.spacingMd
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
return styles;
|
|
64
|
+
};
|
|
65
|
+
export default stylesheet;
|
|
66
|
+
//# sourceMappingURL=stylesheet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","stylesheet","create","container","bold","fontWeight","italic","fontStyle","enter","flexShrink","width","blockquoteText","textAlignVertical","verticalAlign","image","maxWidth","listContainer","flexDirection","alignItems","centerContainer","justifyContent","alignSelf","leftContainer","rightContainer","useStyles","radiuses","colors","spaces","styles","blockquoteContainer","backgroundColor","content","mid","borderRadius","form","padding","spacingMd","blockquoteIcon","marginBottom","spacingXs","codeContainer"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/markdownViewer/stylesheet.ts"],"mappings":";;AAAA,SACIA,UAAU,QACP,cAAc;AAKrB,MAAMC,UAAU,GAAGD,UAAU,CAACE,MAAM,CAAC;EACjCC,SAAS,EAAE,CACX,CAAC;EACDC,IAAI,EAAE;IACFC,UAAU,EAAE;EAChB,CAAC;EACDC,MAAM,EAAE;IACJC,SAAS,EAAE;EACf,CAAC;EACDC,KAAK,EAAE;IACHC,UAAU,EAAE,CAAC;IACbC,KAAK,EAAE;EACX,CAAC;EACDC,cAAc,EAAE;IACZC,iBAAiB,EAAE,QAAQ;IAC3BC,aAAa,EAAE;EACnB,CAAC;EACDC,KAAK,EAAE;IACHC,QAAQ,EAAE;EACd,CAAC;EACDC,aAAa,EAAE;IACXC,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE;EAChB,CAAC;EACDC,eAAe,EAAE;IACbC,cAAc,EAAE,QAAQ;IACxBF,UAAU,EAAE,QAAQ;IACpBG,SAAS,EAAE;EACf,CAAC;EACDC,aAAa,EAAE;IACXF,cAAc,EAAE,YAAY;IAC5BF,UAAU,EAAE,YAAY;IACxBG,SAAS,EAAE;EACf,CAAC;EACDE,cAAc,EAAE;IACZH,cAAc,EAAE,UAAU;IAC1BF,UAAU,EAAE,UAAU;IACtBG,SAAS,EAAE;EACf;AACJ,CAAC,CAAC;AAEF,OAAO,MAAMG,SAAS,GAAGA,CAAC;EACtBC,QAAQ;EACRC,MAAM;EACNC;AACmB,CAAC,KAAK;EACzB,MAAMC,MAAM,GAAG;IACXC,mBAAmB,EAAE;MACjBC,eAAe,EAAEJ,MAAM,CAACK,OAAO,CAAC5B,SAAS,CAAC6B,GAAG;MAC7CC,YAAY,EAAER,QAAQ,CAACS,IAAI;MAC3BC,OAAO,EAAER,MAAM,CAACS;IACpB,CAAC;IACDC,cAAc,EAAE;MACZC,YAAY,EAAEX,MAAM,CAACY;IACzB,CAAC;IACDC,aAAa,EAAE;MACXV,eAAe,EAAEJ,MAAM,CAACK,OAAO,CAAC5B,SAAS,CAAC6B,GAAG;MAC7CC,YAAY,EAAER,QAAQ,CAACS,IAAI;MAC3BC,OAAO,EAAER,MAAM,CAACS;IACpB;EACJ,CAAC;EAED,OAAOR,MAAM;AACjB,CAAC;AACD,eAAe3B,UAAU","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/markdownViewer/type.ts"],"mappings":";;AAmFC;AAAC","ignoreList":[]}
|