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,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { StyleSheet } from "react-native";
|
|
4
|
+
const stylesheet = StyleSheet.create({
|
|
5
|
+
contentContainer: {
|
|
6
|
+
flexDirection: "column"
|
|
7
|
+
},
|
|
8
|
+
headerContainer: {
|
|
9
|
+
flexDirection: "column",
|
|
10
|
+
width: "100%"
|
|
11
|
+
},
|
|
12
|
+
bottomContainer: {
|
|
13
|
+
flexDirection: "row",
|
|
14
|
+
alignItems: "center"
|
|
15
|
+
},
|
|
16
|
+
loadingContainer: {
|
|
17
|
+
justifyContent: "center",
|
|
18
|
+
alignItems: "center",
|
|
19
|
+
flex: 1
|
|
20
|
+
},
|
|
21
|
+
itemContentContainer: {
|
|
22
|
+
flex: 1
|
|
23
|
+
},
|
|
24
|
+
toolsContainer: {
|
|
25
|
+
justifyContent: "space-between",
|
|
26
|
+
flexDirection: "row",
|
|
27
|
+
alignItems: "center"
|
|
28
|
+
},
|
|
29
|
+
moreLoadingContainer: {
|
|
30
|
+
justifyContent: "center",
|
|
31
|
+
alignItems: "center",
|
|
32
|
+
width: "100%"
|
|
33
|
+
},
|
|
34
|
+
calendarChangerToolContainer: {
|
|
35
|
+
alignSelf: "baseline",
|
|
36
|
+
flexDirection: "row"
|
|
37
|
+
},
|
|
38
|
+
calendarChangerToolButton: {}
|
|
39
|
+
});
|
|
40
|
+
export const useStyles = ({
|
|
41
|
+
radiuses,
|
|
42
|
+
borders,
|
|
43
|
+
spaces,
|
|
44
|
+
colors
|
|
45
|
+
}) => {
|
|
46
|
+
const styles = {
|
|
47
|
+
contentContainer: {
|
|
48
|
+
paddingVertical: spaces.spacingSm
|
|
49
|
+
},
|
|
50
|
+
headerContainer: {
|
|
51
|
+
marginBottom: spaces.spacingSm
|
|
52
|
+
},
|
|
53
|
+
headerTitle: {},
|
|
54
|
+
bottomContainer: {
|
|
55
|
+
marginTop: spaces.spacingSm,
|
|
56
|
+
padding: spaces.spacingSm
|
|
57
|
+
},
|
|
58
|
+
cancelButton: {
|
|
59
|
+
marginRight: spaces.spacingSm
|
|
60
|
+
},
|
|
61
|
+
okButton: {
|
|
62
|
+
marginLeft: spaces.spacingSm
|
|
63
|
+
},
|
|
64
|
+
loadingContainer: {
|
|
65
|
+
padding: spaces.spacingMd
|
|
66
|
+
},
|
|
67
|
+
toolsContainer: {
|
|
68
|
+
marginTop: spaces.spacingSm
|
|
69
|
+
},
|
|
70
|
+
moreLoadingContainer: {
|
|
71
|
+
padding: spaces.spacingSm
|
|
72
|
+
},
|
|
73
|
+
calendarChangerToolContainer: {
|
|
74
|
+
borderColor: colors.content.border.subtle,
|
|
75
|
+
marginBottom: spaces.spacingSm,
|
|
76
|
+
borderRadius: radiuses.actions,
|
|
77
|
+
borderWidth: borders.line
|
|
78
|
+
},
|
|
79
|
+
calendarChangerToolButton: {
|
|
80
|
+
paddingHorizontal: spaces.spacingSm,
|
|
81
|
+
paddingVertical: spaces.spacingSm,
|
|
82
|
+
borderRadius: radiuses.actions
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
return styles;
|
|
86
|
+
};
|
|
87
|
+
export default stylesheet;
|
|
88
|
+
//# sourceMappingURL=stylesheet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","stylesheet","create","contentContainer","flexDirection","headerContainer","width","bottomContainer","alignItems","loadingContainer","justifyContent","flex","itemContentContainer","toolsContainer","moreLoadingContainer","calendarChangerToolContainer","alignSelf","calendarChangerToolButton","useStyles","radiuses","borders","spaces","colors","styles","paddingVertical","spacingSm","marginBottom","headerTitle","marginTop","padding","cancelButton","marginRight","okButton","marginLeft","spacingMd","borderColor","content","border","subtle","borderRadius","actions","borderWidth","line","paddingHorizontal"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/dateTimeSheet/stylesheet.ts"],"mappings":";;AAAA,SAEIA,UAAU,QACP,cAAc;AAQrB,MAAMC,UAAU,GAAGD,UAAU,CAACE,MAAM,CAAC;EACjCC,gBAAgB,EAAE;IACdC,aAAa,EAAE;EACnB,CAAC;EACDC,eAAe,EAAE;IACbD,aAAa,EAAE,QAAQ;IACvBE,KAAK,EAAE;EACX,CAAC;EACDC,eAAe,EAAE;IACbH,aAAa,EAAE,KAAK;IACpBI,UAAU,EAAE;EAChB,CAAC;EACDC,gBAAgB,EAAE;IACdC,cAAc,EAAE,QAAQ;IACxBF,UAAU,EAAE,QAAQ;IACpBG,IAAI,EAAE;EACV,CAAC;EACDC,oBAAoB,EAAE;IAClBD,IAAI,EAAE;EACV,CAAC;EACDE,cAAc,EAAE;IACZH,cAAc,EAAE,eAAe;IAC/BN,aAAa,EAAE,KAAK;IACpBI,UAAU,EAAE;EAChB,CAAC;EACDM,oBAAoB,EAAE;IAClBJ,cAAc,EAAE,QAAQ;IACxBF,UAAU,EAAE,QAAQ;IACpBF,KAAK,EAAE;EACX,CAAC;EACDS,4BAA4B,EAAE;IAC1BC,SAAS,EAAE,UAAU;IACrBZ,aAAa,EAAE;EACnB,CAAC;EACDa,yBAAyB,EAAE,CAC3B;AACJ,CAAC,CAAC;AAEF,OAAO,MAAMC,SAAS,GAAGA,CAAC;EACtBC,QAAQ;EACRC,OAAO;EACPC,MAAM;EACNC;AAC2B,CAAC,KAAK;EACjC,MAAMC,MAAM,GAAG;IACXpB,gBAAgB,EAAE;MACdqB,eAAe,EAAEH,MAAM,CAACI;IAC5B,CAAuB;IACvBpB,eAAe,EAAE;MACbqB,YAAY,EAAEL,MAAM,CAACI;IACzB,CAAuB;IACvBE,WAAW,EAAE,CACb,CAAuB;IACvBpB,eAAe,EAAE;MACbqB,SAAS,EAAEP,MAAM,CAACI,SAAS;MAC3BI,OAAO,EAAER,MAAM,CAACI;IACpB,CAAuB;IACvBK,YAAY,EAAE;MACVC,WAAW,EAAEV,MAAM,CAACI;IACxB,CAAuB;IACvBO,QAAQ,EAAE;MACNC,UAAU,EAAEZ,MAAM,CAACI;IACvB,CAAuB;IACvBhB,gBAAgB,EAAE;MACdoB,OAAO,EAAER,MAAM,CAACa;IACpB,CAAuB;IACvBrB,cAAc,EAAE;MACZe,SAAS,EAAEP,MAAM,CAACI;IACtB,CAAuB;IACvBX,oBAAoB,EAAE;MAClBe,OAAO,EAAER,MAAM,CAACI;IACpB,CAAuB;IACvBV,4BAA4B,EAAE;MAC1BoB,WAAW,EAAEb,MAAM,CAACc,OAAO,CAACC,MAAM,CAACC,MAAM;MACzCZ,YAAY,EAAEL,MAAM,CAACI,SAAS;MAC9Bc,YAAY,EAAEpB,QAAQ,CAACqB,OAAO;MAC9BC,WAAW,EAAErB,OAAO,CAACsB;IACzB,CAAuB;IACvBzB,yBAAyB,EAAE;MACvB0B,iBAAiB,EAAEtB,MAAM,CAACI,SAAS;MACnCD,eAAe,EAAEH,MAAM,CAACI,SAAS;MACjCc,YAAY,EAAEpB,QAAQ,CAACqB;IAC3B;EACJ,CAAC;EAED,OAAOjB,MAAM;AACjB,CAAC;AACD,eAAetB,UAAU","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/dateTimeSheet/type.ts"],"mappings":";;AA8FC;AAAC","ignoreList":[]}
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useImperativeHandle, forwardRef, useEffect, useRef } from "react";
|
|
4
|
+
import { Animated, Easing, View } from "react-native";
|
|
5
|
+
import stylesheet, { useStyles } from "./stylesheet.js";
|
|
6
|
+
import { NCoreUIKitLocalize, NCoreUIKitTheme } from "../../core/hooks.js";
|
|
7
|
+
import { X as XIcon } from "lucide-react-native";
|
|
8
|
+
import Button from "../button/index.js";
|
|
9
|
+
import Modal from "../modal/index.js";
|
|
10
|
+
import Text from "../text/index.js";
|
|
11
|
+
import { uuid } from "../../utils/index.js";
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
const Dialog = ({
|
|
14
|
+
bottomContentContainerStyle,
|
|
15
|
+
contentJustify = "centered",
|
|
16
|
+
closeAnimationDelay = 100,
|
|
17
|
+
openAnimationDelay = 100,
|
|
18
|
+
contentContainerStyle,
|
|
19
|
+
bottomContainerStyle,
|
|
20
|
+
headerContainerStyle,
|
|
21
|
+
secondaryButtonStyle,
|
|
22
|
+
secondaryButtonProps,
|
|
23
|
+
primaryButtonStyle,
|
|
24
|
+
primaryButtonProps,
|
|
25
|
+
closeIconProps = {
|
|
26
|
+
color: "low",
|
|
27
|
+
size: 22
|
|
28
|
+
},
|
|
29
|
+
isVisible = false,
|
|
30
|
+
withModal = true,
|
|
31
|
+
headerComponent,
|
|
32
|
+
bottomComponent,
|
|
33
|
+
onOverlayPress,
|
|
34
|
+
variant = "ok",
|
|
35
|
+
modalProps,
|
|
36
|
+
id: outID,
|
|
37
|
+
onClosed,
|
|
38
|
+
children,
|
|
39
|
+
content,
|
|
40
|
+
style,
|
|
41
|
+
title
|
|
42
|
+
}, ref) => {
|
|
43
|
+
const {
|
|
44
|
+
radiuses,
|
|
45
|
+
colors,
|
|
46
|
+
spaces
|
|
47
|
+
} = NCoreUIKitTheme.useContext();
|
|
48
|
+
const {
|
|
49
|
+
localize
|
|
50
|
+
} = NCoreUIKitLocalize.useContext();
|
|
51
|
+
const id = useRef(outID ? outID : uuid());
|
|
52
|
+
const {
|
|
53
|
+
bottomContentContainer: bottomContentContainerDynamicStyle,
|
|
54
|
+
headerContainer: headerContainerDynamicStyle,
|
|
55
|
+
bottomContainer: bottomContainerDynamicStyle,
|
|
56
|
+
primaryButton: primaryButtonDynamicStyle,
|
|
57
|
+
contentText: contentTextDynamicStyle,
|
|
58
|
+
headerTitle: headerTitleDynamicStyle,
|
|
59
|
+
container: containerDynamicStyle,
|
|
60
|
+
closeIcon: closeIconDynamicStyle,
|
|
61
|
+
content: contentDynamicStyle
|
|
62
|
+
} = useStyles({
|
|
63
|
+
contentJustify,
|
|
64
|
+
isVisible,
|
|
65
|
+
radiuses,
|
|
66
|
+
variant,
|
|
67
|
+
colors,
|
|
68
|
+
spaces
|
|
69
|
+
});
|
|
70
|
+
const scaleAnim = useRef(new Animated.Value(0)).current;
|
|
71
|
+
const modalRef = useRef(null);
|
|
72
|
+
useEffect(() => {
|
|
73
|
+
if (isVisible) {
|
|
74
|
+
Animated.timing(scaleAnim, {
|
|
75
|
+
duration: openAnimationDelay,
|
|
76
|
+
useNativeDriver: true,
|
|
77
|
+
easing: Easing.linear,
|
|
78
|
+
toValue: 1
|
|
79
|
+
}).start();
|
|
80
|
+
}
|
|
81
|
+
}, [isVisible]);
|
|
82
|
+
useImperativeHandle(ref, () => ({
|
|
83
|
+
closeAnimation
|
|
84
|
+
}), []);
|
|
85
|
+
const closeAnimation = _onClosed => {
|
|
86
|
+
Animated.timing(scaleAnim, {
|
|
87
|
+
duration: closeAnimationDelay,
|
|
88
|
+
useNativeDriver: true,
|
|
89
|
+
easing: Easing.linear,
|
|
90
|
+
toValue: 0
|
|
91
|
+
}).start(({
|
|
92
|
+
finished
|
|
93
|
+
}) => {
|
|
94
|
+
if (finished) {
|
|
95
|
+
if (_onClosed) _onClosed({
|
|
96
|
+
id: id.current
|
|
97
|
+
});
|
|
98
|
+
if (onClosed) onClosed({
|
|
99
|
+
id: id.current
|
|
100
|
+
});
|
|
101
|
+
if (modalRef && modalRef.current) modalRef.current.closeAnimation();
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
};
|
|
105
|
+
const renderHeader = () => {
|
|
106
|
+
return /*#__PURE__*/_jsx(View, {
|
|
107
|
+
style: [headerContainerStyle, stylesheet.headerContainer, headerContainerDynamicStyle],
|
|
108
|
+
children: headerComponent || /*#__PURE__*/_jsx(Text, {
|
|
109
|
+
style: [stylesheet.headerTitle, headerTitleDynamicStyle],
|
|
110
|
+
variant: "titleLargeSize",
|
|
111
|
+
color: "mid",
|
|
112
|
+
children: title
|
|
113
|
+
})
|
|
114
|
+
});
|
|
115
|
+
};
|
|
116
|
+
const renderBottom = () => {
|
|
117
|
+
if (variant === "info") {
|
|
118
|
+
return null;
|
|
119
|
+
}
|
|
120
|
+
return /*#__PURE__*/_jsx(View, {
|
|
121
|
+
style: [bottomContainerStyle, stylesheet.bottomContainer, bottomContainerDynamicStyle],
|
|
122
|
+
children: bottomComponent || /*#__PURE__*/_jsxs(View, {
|
|
123
|
+
style: [bottomContentContainerStyle, stylesheet.bottomContentContainer, bottomContentContainerDynamicStyle],
|
|
124
|
+
children: [secondaryButton(), primaryButton()]
|
|
125
|
+
})
|
|
126
|
+
});
|
|
127
|
+
};
|
|
128
|
+
const secondaryButton = () => {
|
|
129
|
+
if (variant !== "yes-no") {
|
|
130
|
+
return null;
|
|
131
|
+
}
|
|
132
|
+
return /*#__PURE__*/_jsx(Button, {
|
|
133
|
+
type: "neutral",
|
|
134
|
+
...secondaryButtonProps,
|
|
135
|
+
onPress: () => {
|
|
136
|
+
if (secondaryButtonProps?.onPress) secondaryButtonProps.onPress({
|
|
137
|
+
closeAnimation: onClosed => {
|
|
138
|
+
closeAnimation(onClosed);
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
},
|
|
142
|
+
spreadBehaviour: contentJustify === "centered" ? "stretch" : "free",
|
|
143
|
+
title: secondaryButtonProps?.title || localize("cancel"),
|
|
144
|
+
style: secondaryButtonStyle,
|
|
145
|
+
variant: "outline"
|
|
146
|
+
});
|
|
147
|
+
};
|
|
148
|
+
const primaryButton = () => {
|
|
149
|
+
return /*#__PURE__*/_jsx(Button, {
|
|
150
|
+
type: "primary",
|
|
151
|
+
size: "medium",
|
|
152
|
+
...primaryButtonProps,
|
|
153
|
+
spreadBehaviour: contentJustify === "centered" ? "stretch" : "free",
|
|
154
|
+
onPress: () => {
|
|
155
|
+
if (primaryButtonProps?.onPress) primaryButtonProps?.onPress({
|
|
156
|
+
closeAnimation: onClosed => {
|
|
157
|
+
closeAnimation(onClosed);
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
},
|
|
161
|
+
title: primaryButtonProps?.title || localize("ok"),
|
|
162
|
+
style: [primaryButtonStyle, stylesheet.primaryButton, primaryButtonDynamicStyle],
|
|
163
|
+
variant: "filled"
|
|
164
|
+
});
|
|
165
|
+
};
|
|
166
|
+
const renderCloseIcon = () => {
|
|
167
|
+
if (variant !== "info") {
|
|
168
|
+
return null;
|
|
169
|
+
}
|
|
170
|
+
if (contentJustify === "centered") {
|
|
171
|
+
return null;
|
|
172
|
+
}
|
|
173
|
+
return /*#__PURE__*/_jsx(Button, {
|
|
174
|
+
onPress: () => {
|
|
175
|
+
if (onOverlayPress) onOverlayPress({
|
|
176
|
+
closeAnimation: onClosed => {
|
|
177
|
+
closeAnimation(onClosed);
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
},
|
|
181
|
+
icon: () => /*#__PURE__*/_jsx(XIcon, {
|
|
182
|
+
color: closeIconProps.color,
|
|
183
|
+
size: closeIconProps.size
|
|
184
|
+
}),
|
|
185
|
+
style: [stylesheet.closeIcon, closeIconDynamicStyle],
|
|
186
|
+
isCustomPadding: true,
|
|
187
|
+
variant: "ghost"
|
|
188
|
+
});
|
|
189
|
+
};
|
|
190
|
+
const renderDialog = () => {
|
|
191
|
+
if (!isVisible) {
|
|
192
|
+
return null;
|
|
193
|
+
}
|
|
194
|
+
return /*#__PURE__*/_jsxs(Animated.View, {
|
|
195
|
+
style: [style, stylesheet.container, containerDynamicStyle, {
|
|
196
|
+
transform: [{
|
|
197
|
+
scale: scaleAnim
|
|
198
|
+
}]
|
|
199
|
+
}],
|
|
200
|
+
children: [renderCloseIcon(), renderHeader(), /*#__PURE__*/_jsx(View, {
|
|
201
|
+
style: [contentContainerStyle, stylesheet.content, contentDynamicStyle],
|
|
202
|
+
children: children || /*#__PURE__*/_jsx(Text, {
|
|
203
|
+
style: [stylesheet.contentText, contentTextDynamicStyle],
|
|
204
|
+
variant: "bodyLargeSize",
|
|
205
|
+
children: content
|
|
206
|
+
})
|
|
207
|
+
}), renderBottom()]
|
|
208
|
+
});
|
|
209
|
+
};
|
|
210
|
+
if (!isVisible) {
|
|
211
|
+
return null;
|
|
212
|
+
}
|
|
213
|
+
return withModal ? /*#__PURE__*/_jsx(Modal, {
|
|
214
|
+
...modalProps,
|
|
215
|
+
id: `${id.current}-modal`,
|
|
216
|
+
ref: modalRef,
|
|
217
|
+
onOverlayPress: () => {
|
|
218
|
+
if (onOverlayPress) onOverlayPress({
|
|
219
|
+
closeAnimation: onClosed => {
|
|
220
|
+
closeAnimation(onClosed);
|
|
221
|
+
}
|
|
222
|
+
});
|
|
223
|
+
},
|
|
224
|
+
children: renderDialog()
|
|
225
|
+
}) : renderDialog();
|
|
226
|
+
};
|
|
227
|
+
export default /*#__PURE__*/forwardRef(Dialog);
|
|
228
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useImperativeHandle","forwardRef","useEffect","useRef","Animated","Easing","View","stylesheet","useStyles","NCoreUIKitLocalize","NCoreUIKitTheme","X","XIcon","Button","Modal","Text","uuid","jsx","_jsx","jsxs","_jsxs","Dialog","bottomContentContainerStyle","contentJustify","closeAnimationDelay","openAnimationDelay","contentContainerStyle","bottomContainerStyle","headerContainerStyle","secondaryButtonStyle","secondaryButtonProps","primaryButtonStyle","primaryButtonProps","closeIconProps","color","size","isVisible","withModal","headerComponent","bottomComponent","onOverlayPress","variant","modalProps","id","outID","onClosed","children","content","style","title","ref","radiuses","colors","spaces","useContext","localize","bottomContentContainer","bottomContentContainerDynamicStyle","headerContainer","headerContainerDynamicStyle","bottomContainer","bottomContainerDynamicStyle","primaryButton","primaryButtonDynamicStyle","contentText","contentTextDynamicStyle","headerTitle","headerTitleDynamicStyle","container","containerDynamicStyle","closeIcon","closeIconDynamicStyle","contentDynamicStyle","scaleAnim","Value","current","modalRef","timing","duration","useNativeDriver","easing","linear","toValue","start","closeAnimation","_onClosed","finished","renderHeader","renderBottom","secondaryButton","type","onPress","spreadBehaviour","renderCloseIcon","icon","isCustomPadding","renderDialog","transform","scale"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/dialog/index.tsx"],"mappings":";;AAAA,SACIA,mBAAmB,EACnBC,UAAU,EACVC,SAAS,EACTC,MAAM,QACH,OAAO;AACd,SACIC,QAAQ,EACRC,MAAM,EACNC,IAAI,QACD,cAAc;AAKrB,OAAOC,UAAU,IACbC,SAAS,QACN,iBAAc;AACrB,SACIC,kBAAkB,EAClBC,eAAe,QACZ,qBAAkB;AAOzB,SACIC,CAAC,IAAIC,KAAK,QACP,qBAAqB;AAC5B,OAAOC,MAAM,MAAM,oBAAW;AAC9B,OAAOC,KAAK,MAAM,mBAAU;AAC5B,OAAOC,IAAI,MAAM,kBAAS;AAC1B,SACIC,IAAI,QACD,sBAAa;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAErB,MAAMC,MAAwD,GAAGA,CAAC;EAC9DC,2BAA2B;EAC3BC,cAAc,GAAG,UAAU;EAC3BC,mBAAmB,GAAG,GAAG;EACzBC,kBAAkB,GAAG,GAAG;EACxBC,qBAAqB;EACrBC,oBAAoB;EACpBC,oBAAoB;EACpBC,oBAAoB;EACpBC,oBAAoB;EACpBC,kBAAkB;EAClBC,kBAAkB;EAClBC,cAAc,GAAG;IACbC,KAAK,EAAE,KAAK;IACZC,IAAI,EAAE;EACV,CAAC;EACDC,SAAS,GAAG,KAAK;EACjBC,SAAS,GAAG,IAAI;EAChBC,eAAe;EACfC,eAAe;EACfC,cAAc;EACdC,OAAO,GAAG,IAAI;EACdC,UAAU;EACVC,EAAE,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ACRC,KAAK,EAAEzB;QACX,CAAC;MACL,CAAC,CACH;MAAA3B,QAAA,GAED+C,eAAe,CAAC,CAAC,EACjBN,YAAY,CAAC,CAAC,eACfrE,IAAA,CAACZ,IAAI;QACD0C,KAAK,EAAE,CACHtB,qBAAqB,EACrBnB,UAAU,CAACwC,OAAO,EAClByB,mBAAmB,CACrB;QAAA1B,QAAA,EAEDA,QAAQ,iBAAI5B,IAAA,CAACH,IAAI;UACdiC,KAAK,EAAE,CACHzC,UAAU,CAACyD,WAAW,EACtBC,uBAAuB,CACzB;UACFxB,OAAO,EAAC,eAAe;UAAAK,QAAA,EAEtBC;QAAO,CACN;MAAC,CACL,CAAC,EACNyC,YAAY,CAAC,CAAC;IAAA,CACJ,CAAC;EACpB,CAAC;EAED,IAAG,CAACpD,SAAS,EAAE;IACX,OAAO,IAAI;EACf;EAEA,OAAOC,SAAS,gBAAGnB,IAAA,CAACJ,KAAK;IAAA,GACjB4B,UAAU;IACdC,EAAE,EAAE,GAAGA,EAAE,CAACgC,OAAO,QAAS;IAC1BzB,GAAG,EAAE0B,QAAS;IACdpC,cAAc,EAAEA,CAAA,KAAM;MAClB,IAAGA,cAAc,EAAEA,cAAc,CAAC;QAC9B4C,cAAc,EAAGvC,QAEP,IAAK;UACXuC,cAAc,CAACvC,QAAQ,CAAC;QAC5B;MACJ,CAAC,CAAC;IACN,CAAE;IAAAC,QAAA,EAEDkD,YAAY,CAAC;EAAC,CACZ,CAAC,GAAGA,YAAY,CAAC,CAAC;AAC7B,CAAC;AACD,4BAAe/F,UAAU,CAACoB,MAAM,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { StyleSheet } from "react-native";
|
|
4
|
+
const stylesheet = StyleSheet.create({
|
|
5
|
+
container: {
|
|
6
|
+
flexDirection: "column",
|
|
7
|
+
position: "relative",
|
|
8
|
+
overflow: "hidden",
|
|
9
|
+
maxHeight: "80%",
|
|
10
|
+
maxWidth: "85%",
|
|
11
|
+
minWidth: "23%",
|
|
12
|
+
zIndex: 99998
|
|
13
|
+
},
|
|
14
|
+
content: {
|
|
15
|
+
flexWrap: "wrap"
|
|
16
|
+
},
|
|
17
|
+
headerContainer: {
|
|
18
|
+
paddingBottom: 0
|
|
19
|
+
},
|
|
20
|
+
bottomContainer: {
|
|
21
|
+
width: "100%"
|
|
22
|
+
},
|
|
23
|
+
bottomContentContainer: {
|
|
24
|
+
justifyContent: "flex-end",
|
|
25
|
+
flexDirection: "row"
|
|
26
|
+
},
|
|
27
|
+
headerTitle: {},
|
|
28
|
+
contentText: {},
|
|
29
|
+
primaryButton: {},
|
|
30
|
+
closeIcon: {
|
|
31
|
+
position: "absolute",
|
|
32
|
+
right: 0,
|
|
33
|
+
top: 0
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
export const useStyles = ({
|
|
37
|
+
contentJustify,
|
|
38
|
+
isVisible,
|
|
39
|
+
radiuses,
|
|
40
|
+
variant,
|
|
41
|
+
colors,
|
|
42
|
+
spaces
|
|
43
|
+
}) => {
|
|
44
|
+
const styles = {
|
|
45
|
+
container: {
|
|
46
|
+
backgroundColor: colors.content.container.default,
|
|
47
|
+
borderRadius: radiuses.md
|
|
48
|
+
},
|
|
49
|
+
content: {
|
|
50
|
+
paddingBottom: spaces.spacingMd,
|
|
51
|
+
paddingRight: spaces.spacingMd,
|
|
52
|
+
paddingLeft: spaces.spacingMd,
|
|
53
|
+
paddingTop: spaces.spacingMd
|
|
54
|
+
},
|
|
55
|
+
headerContainer: {
|
|
56
|
+
paddingRight: spaces.spacingMd,
|
|
57
|
+
paddingLeft: spaces.spacingMd,
|
|
58
|
+
paddingTop: spaces.spacingLg
|
|
59
|
+
},
|
|
60
|
+
bottomContainer: {
|
|
61
|
+
paddingTop: spaces.spacingSm
|
|
62
|
+
},
|
|
63
|
+
bottomContentContainer: {
|
|
64
|
+
paddingBottom: spaces.spacingMd,
|
|
65
|
+
paddingRight: spaces.spacingMd,
|
|
66
|
+
paddingLeft: spaces.spacingMd
|
|
67
|
+
},
|
|
68
|
+
headerTitle: {},
|
|
69
|
+
contentText: {},
|
|
70
|
+
closeIcon: {
|
|
71
|
+
padding: spaces.spacingMd
|
|
72
|
+
},
|
|
73
|
+
primaryButton: {}
|
|
74
|
+
};
|
|
75
|
+
if (variant === "yes-no") {
|
|
76
|
+
styles.primaryButton.marginLeft = spaces.spacingMd;
|
|
77
|
+
}
|
|
78
|
+
if (isVisible === false) {
|
|
79
|
+
styles.container.display = "none";
|
|
80
|
+
}
|
|
81
|
+
if (contentJustify === "centered") {
|
|
82
|
+
styles.container.justifyContent = "center";
|
|
83
|
+
styles.container.alignItems = "center";
|
|
84
|
+
styles.content.justifyContent = "center";
|
|
85
|
+
styles.content.alignItems = "center";
|
|
86
|
+
styles.content.display = "flex";
|
|
87
|
+
styles.contentText.textAlign = "center";
|
|
88
|
+
styles.headerContainer.justifyContent = "center";
|
|
89
|
+
styles.headerContainer.alignItems = "center";
|
|
90
|
+
styles.headerContainer.display = "flex";
|
|
91
|
+
styles.headerTitle.textAlign = "center";
|
|
92
|
+
}
|
|
93
|
+
if (variant === "info") {
|
|
94
|
+
styles.content.paddingBottom = spaces.spacingLg;
|
|
95
|
+
}
|
|
96
|
+
return styles;
|
|
97
|
+
};
|
|
98
|
+
export default stylesheet;
|
|
99
|
+
//# sourceMappingURL=stylesheet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","stylesheet","create","container","flexDirection","position","overflow","maxHeight","maxWidth","minWidth","zIndex","content","flexWrap","headerContainer","paddingBottom","bottomContainer","width","bottomContentContainer","justifyContent","headerTitle","contentText","primaryButton","closeIcon","right","top","useStyles","contentJustify","isVisible","radiuses","variant","colors","spaces","styles","backgroundColor","default","borderRadius","md","spacingMd","paddingRight","paddingLeft","paddingTop","spacingLg","spacingSm","padding","marginLeft","display","alignItems","textAlign"],"sourceRoot":"..\\..\\..\\..\\src","s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MAAM;IAEvCb,MAAM,CAACb,WAAW,CAAC4B,SAAS,GAAG,QAAQ;EAC3C;EAEA,IAAGlB,OAAO,KAAK,MAAM,EAAE;IACnBG,MAAM,CAACrB,OAAO,CAACG,aAAa,GAAGiB,MAAM,CAACU,SAAS;EACnD;EAEA,OAAOT,MAAM;AACjB,CAAC;AACD,eAAe/B,UAAU","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/dialog/type.ts"],"mappings":";;AA0EC;AAAC","ignoreList":[]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export { default as Text } from "./text/index.js";
|
|
4
|
+
export { default as Button } from "./button/index.js";
|
|
5
|
+
export { default as PageContainer } from "./pageContainer/index.js";
|
|
6
|
+
export { default as Dialog } from "./dialog/index.js";
|
|
7
|
+
export { default as Modal } from "./modal/index.js";
|
|
8
|
+
export { default as Loading } from "./loading/index.js";
|
|
9
|
+
export { default as TextInput } from "./textInput/index.js";
|
|
10
|
+
export { default as SelectBox } from "./selectBox/index.js";
|
|
11
|
+
export { default as BottomSheet } from "./bottomSheet/index.js";
|
|
12
|
+
export { default as SelectSheet } from "./selectSheet/index.js";
|
|
13
|
+
export { default as CheckBox } from "./checkBox/index.js";
|
|
14
|
+
export { default as Toast } from "./toast/index.js";
|
|
15
|
+
export { default as SnackBar } from "./snackBar/index.js";
|
|
16
|
+
export { default as TextAreaInput } from "./textAreaInput/index.js";
|
|
17
|
+
export { default as RadioButton } from "./radioButton/index.js";
|
|
18
|
+
export { default as RowCard } from "./rowCard/index.js";
|
|
19
|
+
export { default as Switch } from "./switch/index.js";
|
|
20
|
+
export { default as NotificationIndicator } from "./notificationIndicator/index.js";
|
|
21
|
+
export { default as DateTimePicker } from "./dateTimePicker/index.js";
|
|
22
|
+
export { default as DateTimeSheet } from "./dateTimeSheet/index.js";
|
|
23
|
+
export { default as DateSelector } from "./dateSelector/index.js";
|
|
24
|
+
export { default as NumericInput } from "./numericInput/index.js";
|
|
25
|
+
export { default as MarkdownViewer } from "./markdownViewer/index.js";
|
|
26
|
+
export { default as StateCard } from "./stateCard/index.js";
|
|
27
|
+
export { default as MonthSelector } from "./monthSelector/index.js";
|
|
28
|
+
export { default as TimeSelector } from "./timeSelector/index.js";
|
|
29
|
+
export { default as Sticker } from "./sticker/index.js";
|
|
30
|
+
export { default as Chip } from "./chip/index.js";
|
|
31
|
+
export { blockquoteMarkdown, centerMarkdown, enterMarkdown, imageMarkdown, parseMarkdown, rightMarkdown, textMarkdown, codeMarkdown, leftMarkdown, linkMarkdown, listMarkdown } from "./markdownViewer/util.js";
|
|
32
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["default","Text","Button","PageContainer","Dialog","Modal","Loading","TextInput","SelectBox","BottomSheet","SelectSheet","CheckBox","Toast","SnackBar","TextAreaInput","RadioButton","RowCard","Switch","NotificationIndicator","DateTimePicker","DateTimeSheet","DateSelector","NumericInput","MarkdownViewer","StateCard","MonthSelector","TimeSelector","Sticker","Chip","blockquoteMarkdown","centerMarkdown","enterMarkdown","imageMarkdown","parseMarkdown","rightMarkdown","textMarkdown","codeMarkdown","leftMarkdown","linkMarkdown","listMarkdown"],"sourceRoot":"..\\..\\..\\src","sources":["components/index.ts"],"mappings":";;AAAA,SACIA,OAAO,IAAIC,IAAI,QACZ,iBAAQ;AAEf,SACID,OAAO,IAAIE,MAAM,QACd,mBAAU;AAEjB,SACIF,OAAO,IAAIG,aAAa,QACrB,0BAAiB;AAExB,SACIH,OAAO,IAAII,MAAM,QACd,mBAAU;AAMjB,SACIJ,OAAO,IAAIK,KAAK,QACb,kBAAS;AAMhB,SACIL,OAAO,IAAIM,OAAO,QACf,oBAAW;AAElB,SACIN,OAAO,IAAIO,SAAS,QACjB,sBAAa;AAMpB,SACIP,OAAO,IAAIQ,SAAS,QACjB,s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ingIcon from "../../assets/svg/loadingIcon/index.js";
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
const Loading = ({
|
|
7
|
+
color = "emphasized",
|
|
8
|
+
customColor,
|
|
9
|
+
size = 22,
|
|
10
|
+
style,
|
|
11
|
+
...props
|
|
12
|
+
}) => {
|
|
13
|
+
return /*#__PURE__*/_jsx(LoadingIcon, {
|
|
14
|
+
...props,
|
|
15
|
+
customColor: customColor,
|
|
16
|
+
color: color,
|
|
17
|
+
size: size,
|
|
18
|
+
style: [stylesheet.container, style]
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
export default Loading;
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["stylesheet","LoadingIcon","jsx","_jsx","Loading","color","customColor","size","style","props","container"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/loading/index.tsx"],"mappings":";;AAIA,OAAOA,UAAU,MAAM,iBAAc;AACrC,OAAOC,WAAW,MAAM,uCAA8B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEvD,MAAMC,OAA0B,GAAGA,CAAC;EAChCC,KAAK,GAAG,YAAkD;EAC1DC,WAAW;EACXC,IAAI,GAAG,EAAE;EACTC,KAAK;EACL,GAAGC;AACP,CAAC,KAAK;EACF,oBAAON,IAAA,CAACF,WAAW;IAAA,GACXQ,KAAK;IACTH,WAAW,EAAEA,WAAY;IACzBD,KAAK,EAAEA,KAAM;IACbE,IAAI,EAAEA,IAAK;IACXC,KAAK,EAAE,CACHR,UAAU,CAACU,SAAS,EACpBF,KAAK;EACP,CACL,CAAC;AACN,CAAC;AACD,eAAeJ,OAAO","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","stylesheet","create","container","transformOrigin"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/loading/stylesheet.ts"],"mappings":";;AAAA,SACIA,UAAU,QACP,cAAc;AAErB,MAAMC,UAAU,GAAGD,UAAU,CAACE,MAAM,CAAC;EACjCC,SAAS,EAAE;IACPC,eAAe,EAAE;EACrB;AACJ,CAAC,CAAC;AACF,eAAeH,UAAU","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/loading/type.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export const DEFAULT_VARIANTS = {
|
|
4
|
+
"# ": "displayLargeSize",
|
|
5
|
+
"## ": "displayMediumSize",
|
|
6
|
+
"### ": "displaySmallSize",
|
|
7
|
+
"#### ": "headlineLargeSize",
|
|
8
|
+
"##### ": "headlineMediumSize",
|
|
9
|
+
"###### ": "headlineSmallSize",
|
|
10
|
+
"<br/>": "bodyMediumSize",
|
|
11
|
+
"```": "labelMediumSize",
|
|
12
|
+
"<p>": "bodyMediumSize",
|
|
13
|
+
"<<": "titleMediumSize",
|
|
14
|
+
"* ": "bodyLargeSize",
|
|
15
|
+
"- ": "bodyLargeSize",
|
|
16
|
+
"": "bodyLargeSize"
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=constant.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["DEFAULT_VARIANTS"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/markdownViewer/constant.ts"],"mappings":";;AAIA,OAAO,MAAMA,gBAAmE,GAAG;EAC/E,IAAI,EAAE,kBAAkB;EACxB,KAAK,EAAE,mBAAmB;EAC1B,MAAM,EAAE,kBAAkB;EAC1B,OAAO,EAAE,mBAAmB;EAC5B,QAAQ,EAAE,oBAAoB;EAC9B,SAAS,EAAE,mBAAmB;EAC9B,OAAO,EAAE,gBAAgB;EACzB,KAAK,EAAE,iBAAiB;EACxB,KAAK,EAAE,gBAAgB;EACvB,IAAI,EAAE,iBAAiB;EACvB,IAAI,EAAE,eAAe;EACrB,IAAI,EAAE,eAAe;EACrB,EAAE,EAAE;AACR,CAAC","ignoreList":[]}
|