ncore-ui-kit 1.1.0-alpha.7 → 1.1.0-alpha.8
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 -20
- package/lib/module/assets/svg/cayCoreIcon/index.js +36 -36
- package/lib/module/assets/svg/cayCoreIcon/index.js.map +1 -1
- package/lib/module/assets/svg/enUSIcon/index.js +13 -13
- package/lib/module/assets/svg/enUSIcon/index.js.map +1 -1
- package/lib/module/assets/svg/loadingIcon/index.js +6 -6
- package/lib/module/assets/svg/loadingIcon/index.js.map +1 -1
- package/lib/module/assets/svg/nibgatCommunityIcon/index.js +4 -4
- package/lib/module/assets/svg/nibgatCommunityIcon/index.js.map +1 -1
- package/lib/module/assets/svg/nibgatIcon/index.js +2 -2
- package/lib/module/assets/svg/nibgatIcon/index.js.map +1 -1
- package/lib/module/assets/svg/trTRIcon/index.js +6 -6
- package/lib/module/assets/svg/trTRIcon/index.js.map +1 -1
- package/lib/module/components/avatar/index.js +10 -10
- package/lib/module/components/avatar/index.js.map +1 -1
- package/lib/module/components/avatar/stylesheet.js +36 -36
- package/lib/module/components/avatar/stylesheet.js.map +1 -1
- package/lib/module/components/avatarGroup/index.js +10 -10
- package/lib/module/components/avatarGroup/index.js.map +1 -1
- package/lib/module/components/avatarGroup/stylesheet.js +33 -33
- package/lib/module/components/avatarGroup/stylesheet.js.map +1 -1
- package/lib/module/components/bottomSheet/index.js +90 -90
- package/lib/module/components/bottomSheet/index.js.map +1 -1
- package/lib/module/components/button/index.js +5 -5
- package/lib/module/components/button/index.js.map +1 -1
- package/lib/module/components/button/stylesheet.js +37 -37
- package/lib/module/components/button/stylesheet.js.map +1 -1
- package/lib/module/components/checkBox/index.js +8 -8
- package/lib/module/components/checkBox/index.js.map +1 -1
- package/lib/module/components/checkBox/stylesheet.js +41 -41
- package/lib/module/components/checkBox/stylesheet.js.map +1 -1
- package/lib/module/components/chip/index.js +9 -9
- package/lib/module/components/chip/index.js.map +1 -1
- package/lib/module/components/chip/stylesheet.js +19 -19
- package/lib/module/components/chip/stylesheet.js.map +1 -1
- package/lib/module/components/codeEditor/index.js +247 -0
- package/lib/module/components/codeEditor/index.js.map +1 -0
- package/lib/module/components/codeEditor/stylesheet.js +195 -0
- package/lib/module/components/codeEditor/stylesheet.js.map +1 -0
- package/lib/module/components/codeEditor/type.js +4 -0
- package/lib/module/components/codeEditor/type.js.map +1 -0
- package/lib/module/components/codeViewer/index.js +9 -9
- package/lib/module/components/codeViewer/index.js.map +1 -1
- package/lib/module/components/codeViewer/parser.js +13 -15
- package/lib/module/components/codeViewer/parser.js.map +1 -1
- package/lib/module/components/codeViewer/stylesheet.js +41 -38
- package/lib/module/components/codeViewer/stylesheet.js.map +1 -1
- package/lib/module/components/dateSelector/index.js +4 -4
- package/lib/module/components/dateSelector/index.js.map +1 -1
- package/lib/module/components/dateSelector/stylesheet.js +24 -24
- package/lib/module/components/dateSelector/stylesheet.js.map +1 -1
- package/lib/module/components/dateTimePicker/index.js +36 -36
- package/lib/module/components/dateTimePicker/index.js.map +1 -1
- package/lib/module/components/dateTimePicker/stylesheet.js +71 -71
- package/lib/module/components/dateTimePicker/stylesheet.js.map +1 -1
- package/lib/module/components/dateTimePicker/type.js.map +1 -1
- package/lib/module/components/dateTimeSheet/index.js +23 -23
- package/lib/module/components/dateTimeSheet/index.js.map +1 -1
- package/lib/module/components/dateTimeSheet/stylesheet.js +38 -38
- package/lib/module/components/dateTimeSheet/stylesheet.js.map +1 -1
- package/lib/module/components/dialog/index.js +11 -11
- package/lib/module/components/dialog/index.js.map +1 -1
- package/lib/module/components/dialog/stylesheet.js +18 -18
- package/lib/module/components/dialog/stylesheet.js.map +1 -1
- package/lib/module/components/embeddedMenu/components/menuButton/index.js +10 -10
- package/lib/module/components/embeddedMenu/components/menuButton/index.js.map +1 -1
- package/lib/module/components/embeddedMenu/index.js +20 -20
- package/lib/module/components/embeddedMenu/index.js.map +1 -1
- package/lib/module/components/embeddedMenu/stylesheet.js +18 -18
- package/lib/module/components/embeddedMenu/stylesheet.js.map +1 -1
- package/lib/module/components/header/index.js +15 -15
- package/lib/module/components/header/index.js.map +1 -1
- package/lib/module/components/header/stylesheet.js +19 -19
- package/lib/module/components/header/stylesheet.js.map +1 -1
- package/lib/module/components/highlightButton/index.js +4 -4
- package/lib/module/components/highlightButton/index.js.map +1 -1
- package/lib/module/components/highlightButton/stylesheet.js +32 -32
- package/lib/module/components/highlightButton/stylesheet.js.map +1 -1
- package/lib/module/components/index.js +4 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/loading/index.js +4 -4
- package/lib/module/components/loading/index.js.map +1 -1
- package/lib/module/components/localeSwitcher/index.js +10 -10
- package/lib/module/components/localeSwitcher/index.js.map +1 -1
- package/lib/module/components/mainHeader/index.js +4 -4
- package/lib/module/components/mainHeader/index.js.map +1 -1
- package/lib/module/components/markdownEditor/index.js +302 -0
- package/lib/module/components/markdownEditor/index.js.map +1 -0
- package/lib/module/components/markdownEditor/stylesheet.js +130 -0
- package/lib/module/components/markdownEditor/stylesheet.js.map +1 -0
- package/lib/module/components/markdownEditor/type.js +5 -0
- package/lib/module/components/markdownEditor/type.js.map +1 -0
- package/lib/module/components/markdownViewer/constant.js +6 -6
- package/lib/module/components/markdownViewer/constant.js.map +1 -1
- package/lib/module/components/markdownViewer/index.js +88 -87
- package/lib/module/components/markdownViewer/index.js.map +1 -1
- package/lib/module/components/markdownViewer/stylesheet.js +25 -30
- package/lib/module/components/markdownViewer/stylesheet.js.map +1 -1
- package/lib/module/components/markdownViewer/type.js.map +1 -1
- package/lib/module/components/markdownViewer/util.js +30 -12
- package/lib/module/components/markdownViewer/util.js.map +1 -1
- package/lib/module/components/menu/components/menuButton/index.js +6 -6
- package/lib/module/components/menu/components/menuButton/index.js.map +1 -1
- package/lib/module/components/menu/index.js +12 -12
- package/lib/module/components/menu/index.js.map +1 -1
- package/lib/module/components/menu/stylesheet.js +10 -10
- package/lib/module/components/menu/stylesheet.js.map +1 -1
- package/lib/module/components/modal/index.js +15 -15
- package/lib/module/components/modal/index.js.map +1 -1
- package/lib/module/components/modal/stylesheet.js +6 -6
- package/lib/module/components/modal/stylesheet.js.map +1 -1
- package/lib/module/components/monthSelector/index.js +3 -3
- package/lib/module/components/monthSelector/index.js.map +1 -1
- package/lib/module/components/monthSelector/stylesheet.js +22 -22
- package/lib/module/components/monthSelector/stylesheet.js.map +1 -1
- package/lib/module/components/notificationIndicator/index.js +2 -2
- package/lib/module/components/notificationIndicator/index.js.map +1 -1
- package/lib/module/components/notificationIndicator/stylesheet.js +15 -15
- package/lib/module/components/notificationIndicator/stylesheet.js.map +1 -1
- package/lib/module/components/numericInput/index.js +24 -24
- package/lib/module/components/numericInput/index.js.map +1 -1
- package/lib/module/components/numericInput/stylesheet.js +69 -69
- package/lib/module/components/numericInput/stylesheet.js.map +1 -1
- package/lib/module/components/pageContainer/index.js +1 -1
- package/lib/module/components/pageContainer/index.js.map +1 -1
- package/lib/module/components/pageContainer/stylesheet.js +4 -4
- package/lib/module/components/pageContainer/stylesheet.js.map +1 -1
- package/lib/module/components/paletteSwitcher/index.js +14 -14
- package/lib/module/components/paletteSwitcher/index.js.map +1 -1
- package/lib/module/components/radioButton/index.js +5 -5
- package/lib/module/components/radioButton/index.js.map +1 -1
- package/lib/module/components/radioButton/stylesheet.js +45 -45
- package/lib/module/components/radioButton/stylesheet.js.map +1 -1
- package/lib/module/components/rowCard/index.js +7 -7
- package/lib/module/components/rowCard/index.js.map +1 -1
- package/lib/module/components/rowCard/stylesheet.js +23 -23
- package/lib/module/components/rowCard/stylesheet.js.map +1 -1
- package/lib/module/components/selectBox/index.js +32 -32
- package/lib/module/components/selectBox/index.js.map +1 -1
- package/lib/module/components/selectBox/stylesheet.js +71 -71
- package/lib/module/components/selectBox/stylesheet.js.map +1 -1
- package/lib/module/components/selectSheet/index.js +34 -34
- package/lib/module/components/selectSheet/index.js.map +1 -1
- package/lib/module/components/selectSheet/stylesheet.js +39 -39
- package/lib/module/components/selectSheet/stylesheet.js.map +1 -1
- package/lib/module/components/seperator/index.js +3 -3
- package/lib/module/components/seperator/index.js.map +1 -1
- package/lib/module/components/seperator/stylesheet.js +3 -3
- package/lib/module/components/seperator/stylesheet.js.map +1 -1
- package/lib/module/components/siteLogo/index.js +17 -17
- package/lib/module/components/siteLogo/index.js.map +1 -1
- package/lib/module/components/siteLogo/stylesheet.js +41 -41
- package/lib/module/components/siteLogo/stylesheet.js.map +1 -1
- package/lib/module/components/snackBar/index.js +37 -37
- package/lib/module/components/snackBar/index.js.map +1 -1
- package/lib/module/components/snackBar/stylesheet.js +36 -36
- package/lib/module/components/snackBar/stylesheet.js.map +1 -1
- package/lib/module/components/stateCard/index.js +5 -5
- package/lib/module/components/stateCard/index.js.map +1 -1
- package/lib/module/components/stateCard/stylesheet.js +17 -17
- package/lib/module/components/stateCard/stylesheet.js.map +1 -1
- package/lib/module/components/sticker/index.js +4 -4
- package/lib/module/components/sticker/index.js.map +1 -1
- package/lib/module/components/sticker/stylesheet.js +12 -12
- package/lib/module/components/sticker/stylesheet.js.map +1 -1
- package/lib/module/components/switch/index.js +6 -6
- package/lib/module/components/switch/index.js.map +1 -1
- package/lib/module/components/switch/stylesheet.js +46 -46
- package/lib/module/components/switch/stylesheet.js.map +1 -1
- package/lib/module/components/systemToolbar/index.js +133 -0
- package/lib/module/components/systemToolbar/index.js.map +1 -0
- package/lib/module/components/systemToolbar/stylesheet.js +50 -0
- package/lib/module/components/systemToolbar/stylesheet.js.map +1 -0
- package/lib/module/components/systemToolbar/type.js +4 -0
- package/lib/module/components/systemToolbar/type.js.map +1 -0
- package/lib/module/components/textAreaInput/index.js +54 -36
- package/lib/module/components/textAreaInput/index.js.map +1 -1
- package/lib/module/components/textAreaInput/stylesheet.js +84 -77
- package/lib/module/components/textAreaInput/stylesheet.js.map +1 -1
- package/lib/module/components/textAreaInput/type.js.map +1 -1
- package/lib/module/components/textInput/index.js +46 -34
- package/lib/module/components/textInput/index.js.map +1 -1
- package/lib/module/components/textInput/stylesheet.js +87 -80
- package/lib/module/components/textInput/stylesheet.js.map +1 -1
- package/lib/module/components/textInput/type.js.map +1 -1
- package/lib/module/components/themeSwitcher/index.js +15 -15
- package/lib/module/components/themeSwitcher/index.js.map +1 -1
- package/lib/module/components/timeSelector/components/timeInput/index.js +1 -1
- package/lib/module/components/timeSelector/components/timeInput/index.js.map +1 -1
- package/lib/module/components/timeSelector/components/timeInput/stylesheet.js +2 -2
- package/lib/module/components/timeSelector/components/timeInput/stylesheet.js.map +1 -1
- package/lib/module/components/timeSelector/index.js +14 -14
- package/lib/module/components/timeSelector/index.js.map +1 -1
- package/lib/module/components/timeSelector/stylesheet.js +10 -10
- package/lib/module/components/timeSelector/stylesheet.js.map +1 -1
- package/lib/module/components/toast/index.js +22 -22
- package/lib/module/components/toast/index.js.map +1 -1
- package/lib/module/components/toast/stylesheet.js +33 -33
- package/lib/module/components/toast/stylesheet.js.map +1 -1
- package/lib/module/components/tooltip/index.js +350 -0
- package/lib/module/components/tooltip/index.js.map +1 -0
- package/lib/module/components/tooltip/stylesheet.js +144 -0
- package/lib/module/components/tooltip/stylesheet.js.map +1 -0
- package/lib/module/components/tooltip/type.js +4 -0
- package/lib/module/components/tooltip/type.js.map +1 -0
- package/lib/module/components/yearSelector/index.js +3 -3
- package/lib/module/components/yearSelector/index.js.map +1 -1
- package/lib/module/components/yearSelector/stylesheet.js +25 -25
- package/lib/module/components/yearSelector/stylesheet.js.map +1 -1
- package/lib/module/context/bottomSheet.js +3 -3
- package/lib/module/context/bottomSheet.js.map +1 -1
- package/lib/module/context/dialog.js +2 -2
- package/lib/module/context/dialog.js.map +1 -1
- package/lib/module/context/embeddedMenu.js +12 -12
- package/lib/module/context/embeddedMenu.js.map +1 -1
- package/lib/module/context/index.js +4 -4
- package/lib/module/context/index.js.map +1 -1
- package/lib/module/context/localize.js +6 -6
- package/lib/module/context/localize.js.map +1 -1
- package/lib/module/context/menu.js +10 -10
- package/lib/module/context/menu.js.map +1 -1
- package/lib/module/context/modal.js +2 -2
- package/lib/module/context/modal.js.map +1 -1
- package/lib/module/context/snackBar.js +3 -3
- package/lib/module/context/snackBar.js.map +1 -1
- package/lib/module/context/theme.js +5 -5
- package/lib/module/context/theme.js.map +1 -1
- package/lib/module/context/toast.js +3 -3
- package/lib/module/context/toast.js.map +1 -1
- package/lib/module/core/index.js +1 -1
- package/lib/module/core/index.js.map +1 -1
- package/lib/module/helpers/portalize/Host.js +2 -2
- package/lib/module/helpers/portalize/Host.js.map +1 -1
- package/lib/module/helpers/portalize/Manager.js +1 -1
- package/lib/module/helpers/portalize/Manager.js.map +1 -1
- package/lib/module/helpers/portalize/context/index.js +12 -12
- package/lib/module/helpers/portalize/context/index.js.map +1 -1
- package/lib/module/helpers/theme/palette.js +1 -1
- package/lib/module/helpers/theme/palette.js.map +1 -1
- package/lib/module/helpers/theme/shapes.js +1 -1
- package/lib/module/helpers/theme/shapes.js.map +1 -1
- package/lib/module/index.js +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/package.json +1 -1
- package/lib/module/utils/index.js +8 -8
- package/lib/module/utils/index.js.map +1 -1
- package/lib/module/variants/locales/default.json +49 -11
- package/lib/module/variants/themes/default.json +1 -0
- package/lib/package.json +1 -1
- package/lib/src/assets/svg/cayCoreIcon/index.js +12 -12
- package/lib/src/assets/svg/enUSIcon/index.js +6 -6
- package/lib/src/assets/svg/loadingIcon/index.js +8 -8
- package/lib/src/assets/svg/nibgatCommunityIcon/index.js +2 -2
- package/lib/src/assets/svg/nibgatIcon/index.js +1 -1
- package/lib/src/assets/svg/trTRIcon/index.js +4 -4
- package/lib/src/components/avatar/index.js +10 -10
- package/lib/src/components/avatar/stylesheet.js +36 -36
- package/lib/src/components/avatarGroup/index.js +5 -5
- package/lib/src/components/avatarGroup/stylesheet.js +33 -33
- package/lib/src/components/bottomSheet/index.js +77 -77
- package/lib/src/components/button/index.js +3 -3
- package/lib/src/components/button/stylesheet.js +35 -35
- package/lib/src/components/checkBox/index.js +7 -7
- package/lib/src/components/checkBox/stylesheet.js +41 -41
- package/lib/src/components/chip/index.js +10 -10
- package/lib/src/components/chip/stylesheet.js +18 -18
- package/lib/src/components/codeEditor/index.js +252 -0
- package/lib/src/components/codeEditor/stylesheet.js +182 -0
- package/lib/src/components/codeEditor/type.js +1 -0
- package/lib/src/components/codeViewer/index.js +12 -12
- package/lib/src/components/codeViewer/parser.js +156 -158
- package/lib/src/components/codeViewer/stylesheet.js +41 -38
- package/lib/src/components/dateSelector/index.js +5 -5
- package/lib/src/components/dateSelector/stylesheet.js +24 -24
- package/lib/src/components/dateTimePicker/index.js +32 -32
- package/lib/src/components/dateTimePicker/stylesheet.js +71 -71
- package/lib/src/components/dateTimeSheet/index.js +14 -14
- package/lib/src/components/dateTimeSheet/stylesheet.js +38 -38
- package/lib/src/components/dialog/index.js +8 -8
- package/lib/src/components/dialog/stylesheet.js +18 -18
- package/lib/src/components/embeddedMenu/components/menuButton/index.js +9 -9
- package/lib/src/components/embeddedMenu/index.js +15 -15
- package/lib/src/components/embeddedMenu/stylesheet.js +18 -18
- package/lib/src/components/header/index.js +7 -7
- package/lib/src/components/header/stylesheet.js +19 -19
- package/lib/src/components/highlightButton/index.js +3 -3
- package/lib/src/components/highlightButton/stylesheet.js +30 -30
- package/lib/src/components/index.js +4 -0
- package/lib/src/components/loading/index.js +2 -2
- package/lib/src/components/localeSwitcher/index.js +12 -12
- package/lib/src/components/mainHeader/index.js +11 -11
- package/lib/src/components/markdownEditor/index.js +223 -0
- package/lib/src/components/markdownEditor/stylesheet.js +122 -0
- package/lib/src/components/markdownEditor/type.js +2 -0
- package/lib/src/components/markdownViewer/constant.js +6 -6
- package/lib/src/components/markdownViewer/index.js +72 -75
- package/lib/src/components/markdownViewer/stylesheet.js +25 -30
- package/lib/src/components/markdownViewer/util.js +28 -11
- package/lib/src/components/menu/components/menuButton/index.js +3 -3
- package/lib/src/components/menu/index.js +10 -10
- package/lib/src/components/menu/stylesheet.js +10 -10
- package/lib/src/components/modal/index.js +17 -17
- package/lib/src/components/modal/stylesheet.js +6 -6
- package/lib/src/components/monthSelector/index.js +4 -4
- package/lib/src/components/monthSelector/stylesheet.js +22 -22
- package/lib/src/components/notificationIndicator/index.js +1 -1
- package/lib/src/components/notificationIndicator/stylesheet.js +15 -15
- package/lib/src/components/numericInput/index.js +25 -25
- package/lib/src/components/numericInput/stylesheet.js +69 -69
- package/lib/src/components/pageContainer/index.js +1 -1
- package/lib/src/components/pageContainer/stylesheet.js +4 -4
- package/lib/src/components/paletteSwitcher/index.js +15 -15
- package/lib/src/components/radioButton/index.js +4 -4
- package/lib/src/components/radioButton/stylesheet.js +45 -45
- package/lib/src/components/rowCard/index.js +6 -6
- package/lib/src/components/rowCard/stylesheet.js +23 -23
- package/lib/src/components/selectBox/index.js +24 -24
- package/lib/src/components/selectBox/stylesheet.js +71 -71
- package/lib/src/components/selectSheet/index.js +22 -22
- package/lib/src/components/selectSheet/stylesheet.js +39 -39
- package/lib/src/components/seperator/index.js +1 -1
- package/lib/src/components/seperator/stylesheet.js +3 -3
- package/lib/src/components/siteLogo/index.js +14 -14
- package/lib/src/components/siteLogo/stylesheet.js +40 -40
- package/lib/src/components/snackBar/index.js +31 -31
- package/lib/src/components/snackBar/stylesheet.js +36 -36
- package/lib/src/components/stateCard/index.js +4 -4
- package/lib/src/components/stateCard/stylesheet.js +17 -17
- package/lib/src/components/sticker/index.js +3 -3
- package/lib/src/components/sticker/stylesheet.js +11 -11
- package/lib/src/components/switch/index.js +5 -5
- package/lib/src/components/switch/stylesheet.js +46 -46
- package/lib/src/components/systemToolbar/index.js +69 -0
- package/lib/src/components/systemToolbar/stylesheet.js +43 -0
- package/lib/src/components/systemToolbar/type.js +3 -0
- package/lib/src/components/textAreaInput/index.js +40 -28
- package/lib/src/components/textAreaInput/stylesheet.js +82 -77
- package/lib/src/components/textInput/index.js +38 -31
- package/lib/src/components/textInput/stylesheet.js +85 -80
- package/lib/src/components/themeSwitcher/index.js +16 -16
- package/lib/src/components/timeSelector/components/timeInput/index.js +2 -2
- package/lib/src/components/timeSelector/components/timeInput/stylesheet.js +2 -2
- package/lib/src/components/timeSelector/index.js +23 -23
- package/lib/src/components/timeSelector/stylesheet.js +10 -10
- package/lib/src/components/toast/index.js +18 -18
- package/lib/src/components/toast/stylesheet.js +33 -33
- package/lib/src/components/tooltip/index.js +303 -0
- package/lib/src/components/tooltip/stylesheet.js +133 -0
- package/lib/src/components/tooltip/type.js +2 -0
- package/lib/src/components/yearSelector/index.js +4 -4
- package/lib/src/components/yearSelector/stylesheet.js +25 -25
- package/lib/src/context/bottomSheet.js +3 -3
- package/lib/src/context/dialog.js +3 -3
- package/lib/src/context/embeddedMenu.js +10 -10
- package/lib/src/context/index.js +4 -4
- package/lib/src/context/localize.js +6 -6
- package/lib/src/context/menu.js +10 -10
- package/lib/src/context/modal.js +3 -3
- package/lib/src/context/snackBar.js +3 -3
- package/lib/src/context/theme.js +4 -4
- package/lib/src/context/toast.js +3 -3
- package/lib/src/core/index.js +1 -1
- package/lib/src/helpers/portalize/Host.js +3 -3
- package/lib/src/helpers/portalize/Manager.js +2 -2
- package/lib/src/helpers/portalize/context/index.js +12 -12
- package/lib/src/helpers/theme/palette.js +1 -1
- package/lib/src/helpers/theme/shapes.js +1 -1
- package/lib/src/index.js +1 -1
- package/lib/src/utils/index.js +8 -8
- package/lib/src/variants/locales/default.json +49 -11
- package/lib/src/variants/themes/default.json +1 -0
- package/lib/tsconfig.build.tsbuildinfo +1 -1
- package/lib/typescript/package.json +1 -1
- package/lib/typescript/src/components/avatar/index.d.ts +1 -1
- package/lib/typescript/src/components/avatar/stylesheet.d.ts +6 -6
- package/lib/typescript/src/components/avatar/stylesheet.d.ts.map +1 -1
- package/lib/typescript/src/components/avatar/type.d.ts +1 -1
- package/lib/typescript/src/components/avatar/type.d.ts.map +1 -1
- package/lib/typescript/src/components/avatarGroup/index.d.ts +1 -1
- package/lib/typescript/src/components/avatarGroup/stylesheet.d.ts +8 -8
- package/lib/typescript/src/components/avatarGroup/stylesheet.d.ts.map +1 -1
- package/lib/typescript/src/components/bottomSheet/type.d.ts +6 -6
- package/lib/typescript/src/components/bottomSheet/type.d.ts.map +1 -1
- package/lib/typescript/src/components/button/index.d.ts.map +1 -1
- package/lib/typescript/src/components/button/stylesheet.d.ts +7 -7
- package/lib/typescript/src/components/button/stylesheet.d.ts.map +1 -1
- package/lib/typescript/src/components/checkBox/index.d.ts.map +1 -1
- package/lib/typescript/src/components/checkBox/stylesheet.d.ts +18 -18
- package/lib/typescript/src/components/checkBox/stylesheet.d.ts.map +1 -1
- package/lib/typescript/src/components/checkBox/type.d.ts +1 -1
- package/lib/typescript/src/components/checkBox/type.d.ts.map +1 -1
- package/lib/typescript/src/components/chip/stylesheet.d.ts +8 -8
- package/lib/typescript/src/components/chip/stylesheet.d.ts.map +1 -1
- package/lib/typescript/src/components/codeEditor/index.d.ts +4 -0
- package/lib/typescript/src/components/codeEditor/index.d.ts.map +1 -0
- package/lib/typescript/src/components/codeEditor/stylesheet.d.ts +749 -0
- package/lib/typescript/src/components/codeEditor/stylesheet.d.ts.map +1 -0
- package/lib/typescript/src/components/codeEditor/type.d.ts +29 -0
- package/lib/typescript/src/components/codeEditor/type.d.ts.map +1 -0
- package/lib/typescript/src/components/codeViewer/index.d.ts.map +1 -1
- package/lib/typescript/src/components/codeViewer/stylesheet.d.ts +33 -30
- package/lib/typescript/src/components/codeViewer/stylesheet.d.ts.map +1 -1
- package/lib/typescript/src/components/dateSelector/stylesheet.d.ts +11 -11
- package/lib/typescript/src/components/dateSelector/stylesheet.d.ts.map +1 -1
- package/lib/typescript/src/components/dateTimePicker/index.d.ts.map +1 -1
- package/lib/typescript/src/components/dateTimePicker/stylesheet.d.ts +39 -39
- package/lib/typescript/src/components/dateTimePicker/stylesheet.d.ts.map +1 -1
- package/lib/typescript/src/components/dateTimePicker/type.d.ts +1 -1
- package/lib/typescript/src/components/dateTimePicker/type.d.ts.map +1 -1
- package/lib/typescript/src/components/dateTimeSheet/index.d.ts +1 -1
- package/lib/typescript/src/components/dateTimeSheet/stylesheet.d.ts +24 -24
- package/lib/typescript/src/components/dateTimeSheet/stylesheet.d.ts.map +1 -1
- package/lib/typescript/src/components/dateTimeSheet/type.d.ts +4 -4
- package/lib/typescript/src/components/dateTimeSheet/type.d.ts.map +1 -1
- package/lib/typescript/src/components/dialog/stylesheet.d.ts +12 -12
- package/lib/typescript/src/components/dialog/stylesheet.d.ts.map +1 -1
- package/lib/typescript/src/components/dialog/type.d.ts +5 -5
- package/lib/typescript/src/components/dialog/type.d.ts.map +1 -1
- package/lib/typescript/src/components/embeddedMenu/stylesheet.d.ts +17 -17
- package/lib/typescript/src/components/embeddedMenu/type.d.ts +1 -1
- package/lib/typescript/src/components/embeddedMenu/type.d.ts.map +1 -1
- package/lib/typescript/src/components/header/index.d.ts +1 -1
- package/lib/typescript/src/components/header/stylesheet.d.ts +22 -22
- package/lib/typescript/src/components/header/type.d.ts +4 -1
- package/lib/typescript/src/components/header/type.d.ts.map +1 -1
- package/lib/typescript/src/components/highlightButton/index.d.ts.map +1 -1
- package/lib/typescript/src/components/highlightButton/stylesheet.d.ts +7 -7
- package/lib/typescript/src/components/highlightButton/stylesheet.d.ts.map +1 -1
- package/lib/typescript/src/components/index.d.ts +14 -6
- package/lib/typescript/src/components/index.d.ts.map +1 -1
- package/lib/typescript/src/components/mainHeader/index.d.ts +1 -1
- package/lib/typescript/src/components/markdownEditor/index.d.ts +5 -0
- package/lib/typescript/src/components/markdownEditor/index.d.ts.map +1 -0
- package/lib/typescript/src/components/markdownEditor/stylesheet.d.ts +112 -0
- package/lib/typescript/src/components/markdownEditor/stylesheet.d.ts.map +1 -0
- package/lib/typescript/src/components/markdownEditor/type.d.ts +22 -0
- package/lib/typescript/src/components/markdownEditor/type.d.ts.map +1 -0
- package/lib/typescript/src/components/markdownViewer/index.d.ts.map +1 -1
- package/lib/typescript/src/components/markdownViewer/stylesheet.d.ts +24 -29
- package/lib/typescript/src/components/markdownViewer/stylesheet.d.ts.map +1 -1
- package/lib/typescript/src/components/markdownViewer/type.d.ts +5 -4
- package/lib/typescript/src/components/markdownViewer/type.d.ts.map +1 -1
- package/lib/typescript/src/components/markdownViewer/util.d.ts +3 -2
- package/lib/typescript/src/components/markdownViewer/util.d.ts.map +1 -1
- package/lib/typescript/src/components/menu/stylesheet.d.ts +10 -10
- package/lib/typescript/src/components/menu/type.d.ts +2 -2
- package/lib/typescript/src/components/menu/type.d.ts.map +1 -1
- package/lib/typescript/src/components/modal/stylesheet.d.ts +4 -4
- package/lib/typescript/src/components/modal/type.d.ts +2 -2
- package/lib/typescript/src/components/modal/type.d.ts.map +1 -1
- package/lib/typescript/src/components/monthSelector/stylesheet.d.ts +12 -12
- package/lib/typescript/src/components/monthSelector/stylesheet.d.ts.map +1 -1
- package/lib/typescript/src/components/notificationIndicator/stylesheet.d.ts +6 -6
- package/lib/typescript/src/components/notificationIndicator/stylesheet.d.ts.map +1 -1
- package/lib/typescript/src/components/notificationIndicator/type.d.ts +2 -2
- package/lib/typescript/src/components/notificationIndicator/type.d.ts.map +1 -1
- package/lib/typescript/src/components/numericInput/index.d.ts.map +1 -1
- package/lib/typescript/src/components/numericInput/stylesheet.d.ts +37 -37
- package/lib/typescript/src/components/numericInput/stylesheet.d.ts.map +1 -1
- package/lib/typescript/src/components/numericInput/type.d.ts +1 -1
- package/lib/typescript/src/components/numericInput/type.d.ts.map +1 -1
- package/lib/typescript/src/components/pageContainer/stylesheet.d.ts +3 -3
- package/lib/typescript/src/components/pageContainer/type.d.ts +6 -6
- package/lib/typescript/src/components/pageContainer/type.d.ts.map +1 -1
- package/lib/typescript/src/components/radioButton/index.d.ts.map +1 -1
- package/lib/typescript/src/components/radioButton/stylesheet.d.ts +22 -22
- package/lib/typescript/src/components/radioButton/stylesheet.d.ts.map +1 -1
- package/lib/typescript/src/components/radioButton/type.d.ts +2 -2
- package/lib/typescript/src/components/radioButton/type.d.ts.map +1 -1
- package/lib/typescript/src/components/rowCard/stylesheet.d.ts +16 -16
- package/lib/typescript/src/components/rowCard/stylesheet.d.ts.map +1 -1
- package/lib/typescript/src/components/selectBox/index.d.ts.map +1 -1
- package/lib/typescript/src/components/selectBox/stylesheet.d.ts +39 -39
- package/lib/typescript/src/components/selectBox/stylesheet.d.ts.map +1 -1
- package/lib/typescript/src/components/selectBox/type.d.ts +41 -41
- package/lib/typescript/src/components/selectBox/type.d.ts.map +1 -1
- package/lib/typescript/src/components/selectSheet/index.d.ts +1 -1
- package/lib/typescript/src/components/selectSheet/index.d.ts.map +1 -1
- package/lib/typescript/src/components/selectSheet/stylesheet.d.ts +27 -27
- package/lib/typescript/src/components/selectSheet/stylesheet.d.ts.map +1 -1
- package/lib/typescript/src/components/selectSheet/type.d.ts +11 -11
- package/lib/typescript/src/components/selectSheet/type.d.ts.map +1 -1
- package/lib/typescript/src/components/seperator/stylesheet.d.ts +2 -2
- package/lib/typescript/src/components/seperator/stylesheet.d.ts.map +1 -1
- package/lib/typescript/src/components/siteLogo/index.d.ts +1 -1
- package/lib/typescript/src/components/siteLogo/stylesheet.d.ts +7 -7
- package/lib/typescript/src/components/siteLogo/stylesheet.d.ts.map +1 -1
- package/lib/typescript/src/components/snackBar/stylesheet.d.ts +14 -14
- package/lib/typescript/src/components/snackBar/stylesheet.d.ts.map +1 -1
- package/lib/typescript/src/components/snackBar/type.d.ts +10 -10
- package/lib/typescript/src/components/snackBar/type.d.ts.map +1 -1
- package/lib/typescript/src/components/stateCard/stylesheet.d.ts +2 -2
- package/lib/typescript/src/components/stateCard/stylesheet.d.ts.map +1 -1
- package/lib/typescript/src/components/sticker/stylesheet.d.ts +1 -1
- package/lib/typescript/src/components/switch/index.d.ts.map +1 -1
- package/lib/typescript/src/components/switch/stylesheet.d.ts +18 -18
- package/lib/typescript/src/components/switch/stylesheet.d.ts.map +1 -1
- package/lib/typescript/src/components/switch/type.d.ts +2 -2
- package/lib/typescript/src/components/switch/type.d.ts.map +1 -1
- package/lib/typescript/src/components/systemToolbar/index.d.ts +5 -0
- package/lib/typescript/src/components/systemToolbar/index.d.ts.map +1 -0
- package/lib/typescript/src/components/systemToolbar/stylesheet.d.ts +23 -0
- package/lib/typescript/src/components/systemToolbar/stylesheet.d.ts.map +1 -0
- package/lib/typescript/src/components/systemToolbar/type.d.ts +28 -0
- package/lib/typescript/src/components/systemToolbar/type.d.ts.map +1 -0
- package/lib/typescript/src/components/text/type.d.ts +4 -4
- package/lib/typescript/src/components/text/type.d.ts.map +1 -1
- package/lib/typescript/src/components/textAreaInput/index.d.ts.map +1 -1
- package/lib/typescript/src/components/textAreaInput/stylesheet.d.ts +47 -46
- package/lib/typescript/src/components/textAreaInput/stylesheet.d.ts.map +1 -1
- package/lib/typescript/src/components/textAreaInput/type.d.ts +13 -7
- package/lib/typescript/src/components/textAreaInput/type.d.ts.map +1 -1
- package/lib/typescript/src/components/textInput/index.d.ts.map +1 -1
- package/lib/typescript/src/components/textInput/stylesheet.d.ts +41 -44
- package/lib/typescript/src/components/textInput/stylesheet.d.ts.map +1 -1
- package/lib/typescript/src/components/textInput/type.d.ts +6 -0
- package/lib/typescript/src/components/textInput/type.d.ts.map +1 -1
- package/lib/typescript/src/components/timeSelector/components/timeInput/stylesheet.d.ts +1 -1
- package/lib/typescript/src/components/timeSelector/components/timeInput/type.d.ts +1 -1
- package/lib/typescript/src/components/timeSelector/components/timeInput/type.d.ts.map +1 -1
- package/lib/typescript/src/components/timeSelector/index.d.ts +1 -1
- package/lib/typescript/src/components/timeSelector/stylesheet.d.ts +8 -8
- package/lib/typescript/src/components/timeSelector/stylesheet.d.ts.map +1 -1
- package/lib/typescript/src/components/toast/stylesheet.d.ts +12 -12
- package/lib/typescript/src/components/toast/stylesheet.d.ts.map +1 -1
- package/lib/typescript/src/components/toast/type.d.ts +10 -10
- package/lib/typescript/src/components/toast/type.d.ts.map +1 -1
- package/lib/typescript/src/components/tooltip/index.d.ts +5 -0
- package/lib/typescript/src/components/tooltip/index.d.ts.map +1 -0
- package/lib/typescript/src/components/tooltip/stylesheet.d.ts +66 -0
- package/lib/typescript/src/components/tooltip/stylesheet.d.ts.map +1 -0
- package/lib/typescript/src/components/tooltip/type.d.ts +74 -0
- package/lib/typescript/src/components/tooltip/type.d.ts.map +1 -0
- package/lib/typescript/src/components/yearSelector/stylesheet.d.ts +16 -15
- package/lib/typescript/src/components/yearSelector/stylesheet.d.ts.map +1 -1
- package/lib/typescript/src/context/index.d.ts +4 -4
- package/lib/typescript/src/context/index.d.ts.map +1 -1
- package/lib/typescript/src/context/theme.d.ts +1 -1
- package/lib/typescript/src/context/theme.d.ts.map +1 -1
- package/lib/typescript/src/core/hooks.d.ts +5 -5
- package/lib/typescript/src/core/hooks.d.ts.map +1 -1
- package/lib/typescript/src/core/index.d.ts.map +1 -1
- package/lib/typescript/src/helpers/portalize/Host.d.ts.map +1 -1
- package/lib/typescript/src/helpers/portalize/context/index.d.ts +2 -2
- package/lib/typescript/src/helpers/portalize/context/index.d.ts.map +1 -1
- package/lib/typescript/src/helpers/theme/shapes.d.ts +1 -0
- package/lib/typescript/src/helpers/theme/shapes.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +2 -2
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/types/bottomSheet.d.ts +1 -1
- package/lib/typescript/src/types/bottomSheet.d.ts.map +1 -1
- package/lib/typescript/src/types/dialog.d.ts +1 -1
- package/lib/typescript/src/types/dialog.d.ts.map +1 -1
- package/lib/typescript/src/types/index.d.ts +1 -1
- package/lib/typescript/src/types/index.d.ts.map +1 -1
- package/lib/typescript/src/types/locale.d.ts +3 -3
- package/lib/typescript/src/types/locale.d.ts.map +1 -1
- package/lib/typescript/src/types/modal.d.ts +1 -1
- package/lib/typescript/src/types/modal.d.ts.map +1 -1
- package/lib/typescript/src/types/snackBar.d.ts +1 -1
- package/lib/typescript/src/types/snackBar.d.ts.map +1 -1
- package/lib/typescript/src/types/toast.d.ts +1 -1
- package/lib/typescript/src/types/toast.d.ts.map +1 -1
- package/lib/typescript/src/variants/locales/default.json +49 -11
- package/lib/typescript/src/variants/themes/default.json +1 -0
- package/package.json +1 -1
- package/src/assets/svg/cayCoreIcon/index.tsx +94 -94
- package/src/assets/svg/enUSIcon/index.tsx +21 -21
- package/src/assets/svg/loadingIcon/index.tsx +10 -10
- package/src/assets/svg/nibgatCommunityIcon/index.tsx +7 -7
- package/src/assets/svg/nibgatIcon/index.tsx +5 -5
- package/src/assets/svg/trTRIcon/index.tsx +9 -9
- package/src/components/avatar/index.tsx +19 -19
- package/src/components/avatar/stylesheet.ts +42 -42
- package/src/components/avatar/type.ts +1 -1
- package/src/components/avatarGroup/index.tsx +18 -18
- package/src/components/avatarGroup/stylesheet.ts +35 -35
- package/src/components/avatarGroup/type.ts +10 -10
- package/src/components/bottomSheet/index.tsx +115 -115
- package/src/components/bottomSheet/type.ts +6 -6
- package/src/components/button/index.tsx +5 -6
- package/src/components/button/stylesheet.ts +37 -37
- package/src/components/checkBox/index.tsx +11 -14
- package/src/components/checkBox/stylesheet.ts +41 -41
- package/src/components/checkBox/type.ts +1 -1
- package/src/components/chip/index.tsx +19 -19
- package/src/components/chip/stylesheet.ts +21 -21
- package/src/components/codeEditor/index.tsx +438 -0
- package/src/components/codeEditor/stylesheet.ts +208 -0
- package/src/components/codeEditor/type.ts +39 -0
- package/src/components/codeViewer/index.tsx +30 -32
- package/src/components/codeViewer/parser.ts +160 -160
- package/src/components/codeViewer/stylesheet.ts +43 -40
- package/src/components/dateSelector/index.tsx +13 -13
- package/src/components/dateSelector/stylesheet.ts +24 -24
- package/src/components/dateTimePicker/index.tsx +77 -81
- package/src/components/dateTimePicker/stylesheet.ts +81 -81
- package/src/components/dateTimePicker/type.ts +20 -19
- package/src/components/dateTimeSheet/index.tsx +66 -66
- package/src/components/dateTimeSheet/stylesheet.ts +36 -36
- package/src/components/dateTimeSheet/type.ts +21 -21
- package/src/components/dialog/index.tsx +24 -24
- package/src/components/dialog/stylesheet.ts +18 -18
- package/src/components/dialog/type.ts +9 -9
- package/src/components/embeddedMenu/components/menuButton/index.tsx +15 -15
- package/src/components/embeddedMenu/index.tsx +50 -50
- package/src/components/embeddedMenu/stylesheet.ts +17 -17
- package/src/components/embeddedMenu/type.ts +4 -4
- package/src/components/header/index.tsx +18 -18
- package/src/components/header/stylesheet.ts +18 -18
- package/src/components/header/type.ts +4 -1
- package/src/components/highlightButton/index.tsx +4 -5
- package/src/components/highlightButton/stylesheet.ts +32 -32
- package/src/components/index.ts +41 -6
- package/src/components/loading/index.tsx +4 -4
- package/src/components/loading/stylesheet.ts +10 -10
- package/src/components/loading/type.ts +18 -18
- package/src/components/localeSwitcher/index.tsx +23 -23
- package/src/components/mainHeader/index.tsx +18 -18
- package/src/components/markdownEditor/index.tsx +530 -0
- package/src/components/markdownEditor/stylesheet.ts +140 -0
- package/src/components/markdownEditor/type.ts +34 -0
- package/src/components/markdownViewer/constant.ts +6 -6
- package/src/components/markdownViewer/index.tsx +117 -112
- package/src/components/markdownViewer/stylesheet.ts +25 -30
- package/src/components/markdownViewer/type.ts +15 -13
- package/src/components/markdownViewer/util.ts +34 -12
- package/src/components/menu/components/menuButton/index.tsx +9 -9
- package/src/components/menu/index.tsx +29 -29
- package/src/components/menu/stylesheet.ts +10 -10
- package/src/components/menu/type.ts +6 -6
- package/src/components/modal/index.tsx +20 -20
- package/src/components/modal/stylesheet.ts +6 -6
- package/src/components/modal/type.ts +2 -2
- package/src/components/monthSelector/index.tsx +24 -24
- package/src/components/monthSelector/stylesheet.ts +22 -22
- package/src/components/notificationIndicator/index.tsx +2 -2
- package/src/components/notificationIndicator/stylesheet.ts +16 -16
- package/src/components/notificationIndicator/type.ts +2 -2
- package/src/components/numericInput/index.tsx +52 -57
- package/src/components/numericInput/stylesheet.ts +71 -71
- package/src/components/numericInput/type.ts +1 -1
- package/src/components/pageContainer/index.tsx +1 -1
- package/src/components/pageContainer/stylesheet.ts +3 -3
- package/src/components/pageContainer/type.ts +6 -6
- package/src/components/paletteSwitcher/index.tsx +27 -27
- package/src/components/radioButton/index.tsx +7 -10
- package/src/components/radioButton/stylesheet.ts +45 -45
- package/src/components/radioButton/type.ts +2 -2
- package/src/components/rowCard/index.tsx +11 -11
- package/src/components/rowCard/stylesheet.ts +23 -23
- package/src/components/selectBox/index.tsx +53 -59
- package/src/components/selectBox/stylesheet.ts +76 -76
- package/src/components/selectBox/type.ts +51 -51
- package/src/components/selectSheet/index.tsx +84 -84
- package/src/components/selectSheet/stylesheet.ts +39 -39
- package/src/components/selectSheet/type.ts +21 -21
- package/src/components/seperator/index.tsx +3 -3
- package/src/components/seperator/stylesheet.ts +4 -4
- package/src/components/siteLogo/index.tsx +35 -35
- package/src/components/siteLogo/stylesheet.ts +42 -42
- package/src/components/snackBar/index.tsx +50 -50
- package/src/components/snackBar/stylesheet.ts +40 -40
- package/src/components/snackBar/type.ts +10 -10
- package/src/components/stateCard/index.tsx +13 -13
- package/src/components/stateCard/stylesheet.ts +17 -17
- package/src/components/sticker/index.tsx +4 -4
- package/src/components/sticker/stylesheet.ts +12 -12
- package/src/components/switch/index.tsx +10 -13
- package/src/components/switch/stylesheet.ts +48 -48
- package/src/components/switch/type.ts +2 -2
- package/src/components/systemToolbar/index.tsx +188 -0
- package/src/components/systemToolbar/stylesheet.ts +59 -0
- package/src/components/systemToolbar/type.ts +43 -0
- package/src/components/text/type.ts +4 -4
- package/src/components/textAreaInput/index.tsx +55 -42
- package/src/components/textAreaInput/stylesheet.ts +88 -81
- package/src/components/textAreaInput/type.ts +13 -7
- package/src/components/textInput/index.tsx +55 -48
- package/src/components/textInput/stylesheet.ts +90 -81
- package/src/components/textInput/type.ts +6 -0
- package/src/components/themeSwitcher/index.tsx +27 -27
- package/src/components/timeSelector/components/timeInput/index.tsx +6 -6
- package/src/components/timeSelector/components/timeInput/stylesheet.ts +2 -2
- package/src/components/timeSelector/components/timeInput/type.ts +2 -2
- package/src/components/timeSelector/index.tsx +42 -42
- package/src/components/timeSelector/stylesheet.ts +11 -11
- package/src/components/toast/index.tsx +32 -32
- package/src/components/toast/stylesheet.ts +37 -37
- package/src/components/toast/type.ts +10 -10
- package/src/components/tooltip/index.tsx +477 -0
- package/src/components/tooltip/stylesheet.ts +177 -0
- package/src/components/tooltip/type.ts +93 -0
- package/src/components/yearSelector/index.tsx +24 -24
- package/src/components/yearSelector/stylesheet.ts +25 -25
- package/src/context/bottomSheet.tsx +9 -9
- package/src/context/dialog.tsx +8 -8
- package/src/context/embeddedMenu.tsx +18 -18
- package/src/context/index.tsx +11 -11
- package/src/context/localize.tsx +12 -12
- package/src/context/menu.tsx +16 -16
- package/src/context/modal.tsx +8 -8
- package/src/context/snackBar.tsx +7 -7
- package/src/context/theme.tsx +16 -16
- package/src/context/toast.tsx +7 -7
- package/src/core/hooks.ts +10 -10
- package/src/core/index.tsx +11 -12
- package/src/helpers/portalize/Host.tsx +9 -10
- package/src/helpers/portalize/Manager.tsx +3 -3
- package/src/helpers/portalize/context/index.ts +12 -12
- package/src/helpers/theme/palette.ts +1 -1
- package/src/helpers/theme/shapes.ts +1 -1
- package/src/index.tsx +11 -2
- package/src/types/bottomSheet.ts +1 -1
- package/src/types/dialog.ts +1 -1
- package/src/types/index.ts +1 -1
- package/src/types/locale.ts +4 -4
- package/src/types/modal.ts +1 -1
- package/src/types/portalize.ts +3 -3
- package/src/types/snackBar.ts +1 -1
- package/src/types/toast.ts +1 -1
- package/src/utils/index.ts +8 -8
- package/src/variants/locales/default.json +49 -11
- package/src/variants/themes/default.json +1 -0
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useEffect
|
|
3
|
-
} from "react";
|
|
3
|
+
} from "react";
|
|
4
4
|
import {
|
|
5
5
|
View
|
|
6
|
-
} from "react-native";
|
|
6
|
+
} from "react-native";
|
|
7
7
|
import type {
|
|
8
8
|
TimeInputRangeType
|
|
9
|
-
} from "./components/timeInput/type";
|
|
10
|
-
import type ITimeSelectorProps from "./type";
|
|
9
|
+
} from "./components/timeInput/type";
|
|
10
|
+
import type ITimeSelectorProps from "./type";
|
|
11
11
|
import type {
|
|
12
12
|
UpdateDateRangeType,
|
|
13
13
|
UpdateDateType
|
|
14
|
-
} from "./type";
|
|
14
|
+
} from "./type";
|
|
15
15
|
import stylesheet, {
|
|
16
16
|
useStyles
|
|
17
|
-
} from "./stylesheet";
|
|
18
|
-
import TimeInput from "./components/timeInput";
|
|
17
|
+
} from "./stylesheet";
|
|
18
|
+
import TimeInput from "./components/timeInput";
|
|
19
19
|
import {
|
|
20
20
|
NCoreUIKitLocalize,
|
|
21
21
|
NCoreUIKitTheme,
|
|
22
22
|
NCoreUIKitToast
|
|
23
|
-
} from "../../core/hooks";
|
|
23
|
+
} from "../../core/hooks";
|
|
24
24
|
import type {
|
|
25
25
|
DateTimePickerDateRange
|
|
26
|
-
} from "../dateTimePicker/type";
|
|
27
|
-
import moment from "moment";
|
|
26
|
+
} from "../dateTimePicker/type";
|
|
28
27
|
import {
|
|
29
28
|
Fragment
|
|
30
|
-
} from "react/jsx-runtime";
|
|
29
|
+
} from "react/jsx-runtime";
|
|
30
|
+
import moment from "moment";
|
|
31
31
|
import Text from "../text";
|
|
32
32
|
|
|
33
33
|
const TimeSelector = ({
|
|
34
34
|
isTimeSelectWorksWithCenterWhenTimePicker,
|
|
35
|
-
multipleSelectMinimumRequireMS,
|
|
36
35
|
isWorkWith24HoursFormat = true,
|
|
36
|
+
multipleSelectMinimumRequireMS,
|
|
37
37
|
isWorkWithSeconds = false,
|
|
38
38
|
multipleSelectMaximumMS,
|
|
39
39
|
setIsSheetContentReady,
|
|
@@ -57,8 +57,8 @@ const TimeSelector = ({
|
|
|
57
57
|
const {
|
|
58
58
|
inputsContainer: inputsContainerDynamicStyle,
|
|
59
59
|
rangeContainer: rangeContainerDynamicStyle,
|
|
60
|
-
container: containerDynamicStyle,
|
|
61
60
|
colonText: colonTextDynamicStyle,
|
|
61
|
+
container: containerDynamicStyle,
|
|
62
62
|
timeTitle: timeTitleDynamicStyle
|
|
63
63
|
} = useStyles({
|
|
64
64
|
isTimeSelectWorksWithCenterWhenTimePicker,
|
|
@@ -72,8 +72,8 @@ const TimeSelector = ({
|
|
|
72
72
|
|
|
73
73
|
const setDateRangeValue = ({
|
|
74
74
|
rangeType,
|
|
75
|
-
seconds,
|
|
76
75
|
minutes,
|
|
76
|
+
seconds,
|
|
77
77
|
hours
|
|
78
78
|
}: UpdateDateRangeType) => {
|
|
79
79
|
if(!dateRange) {
|
|
@@ -101,8 +101,8 @@ const TimeSelector = ({
|
|
|
101
101
|
};
|
|
102
102
|
|
|
103
103
|
const setDateValue = ({
|
|
104
|
-
seconds,
|
|
105
104
|
minutes,
|
|
105
|
+
seconds,
|
|
106
106
|
hours
|
|
107
107
|
}: UpdateDateType) => {
|
|
108
108
|
const newDate = date ? date : new Date();
|
|
@@ -178,11 +178,11 @@ const TimeSelector = ({
|
|
|
178
178
|
]}
|
|
179
179
|
>
|
|
180
180
|
<Text
|
|
181
|
-
variant="labelMediumSize"
|
|
182
181
|
style={{
|
|
183
182
|
...stylesheet.timeTitle,
|
|
184
183
|
...timeTitleDynamicStyle
|
|
185
|
-
}}
|
|
184
|
+
}}
|
|
185
|
+
variant="labelMediumSize"
|
|
186
186
|
>
|
|
187
187
|
{localize("start-time")}:
|
|
188
188
|
</Text>
|
|
@@ -210,11 +210,11 @@ const TimeSelector = ({
|
|
|
210
210
|
timeType="hours"
|
|
211
211
|
/>
|
|
212
212
|
<Text
|
|
213
|
-
variant="titleMediumSize"
|
|
214
213
|
style={{
|
|
215
214
|
...stylesheet.colonText,
|
|
216
215
|
...colonTextDynamicStyle
|
|
217
|
-
}}
|
|
216
|
+
}}
|
|
217
|
+
variant="titleMediumSize"
|
|
218
218
|
>
|
|
219
219
|
:
|
|
220
220
|
</Text>
|
|
@@ -233,14 +233,14 @@ const TimeSelector = ({
|
|
|
233
233
|
rangeType="start"
|
|
234
234
|
/>
|
|
235
235
|
{
|
|
236
|
-
isWorkWithSeconds ?
|
|
236
|
+
isWorkWithSeconds ?
|
|
237
237
|
<Fragment>
|
|
238
238
|
<Text
|
|
239
|
-
variant="titleMediumSize"
|
|
240
239
|
style={{
|
|
241
240
|
...stylesheet.colonText,
|
|
242
241
|
...colonTextDynamicStyle
|
|
243
|
-
}}
|
|
242
|
+
}}
|
|
243
|
+
variant="titleMediumSize"
|
|
244
244
|
>
|
|
245
245
|
:
|
|
246
246
|
</Text>
|
|
@@ -258,17 +258,17 @@ const TimeSelector = ({
|
|
|
258
258
|
minDate={minDate}
|
|
259
259
|
rangeType="start"
|
|
260
260
|
/>
|
|
261
|
-
</Fragment>
|
|
262
|
-
:
|
|
261
|
+
</Fragment>
|
|
262
|
+
:
|
|
263
263
|
null
|
|
264
264
|
}
|
|
265
265
|
</View>
|
|
266
266
|
<Text
|
|
267
|
-
variant="labelMediumSize"
|
|
268
267
|
style={{
|
|
269
268
|
...stylesheet.timeTitle,
|
|
270
269
|
...timeTitleDynamicStyle
|
|
271
|
-
}}
|
|
270
|
+
}}
|
|
271
|
+
variant="labelMediumSize"
|
|
272
272
|
>
|
|
273
273
|
{localize("end-time")}:
|
|
274
274
|
</Text>
|
|
@@ -293,11 +293,11 @@ const TimeSelector = ({
|
|
|
293
293
|
rangeType="end"
|
|
294
294
|
/>
|
|
295
295
|
<Text
|
|
296
|
-
variant="titleMediumSize"
|
|
297
296
|
style={{
|
|
298
297
|
...stylesheet.colonText,
|
|
299
298
|
...colonTextDynamicStyle
|
|
300
|
-
}}
|
|
299
|
+
}}
|
|
300
|
+
variant="titleMediumSize"
|
|
301
301
|
>
|
|
302
302
|
:
|
|
303
303
|
</Text>
|
|
@@ -316,14 +316,14 @@ const TimeSelector = ({
|
|
|
316
316
|
rangeType="end"
|
|
317
317
|
/>
|
|
318
318
|
{
|
|
319
|
-
isWorkWithSeconds ?
|
|
319
|
+
isWorkWithSeconds ?
|
|
320
320
|
<Fragment>
|
|
321
321
|
<Text
|
|
322
|
-
variant="titleMediumSize"
|
|
323
322
|
style={{
|
|
324
323
|
...stylesheet.colonText,
|
|
325
324
|
...colonTextDynamicStyle
|
|
326
|
-
}}
|
|
325
|
+
}}
|
|
326
|
+
variant="titleMediumSize"
|
|
327
327
|
>
|
|
328
328
|
:
|
|
329
329
|
</Text>
|
|
@@ -341,8 +341,8 @@ const TimeSelector = ({
|
|
|
341
341
|
minDate={minDate}
|
|
342
342
|
rangeType="end"
|
|
343
343
|
/>
|
|
344
|
-
</Fragment>
|
|
345
|
-
:
|
|
344
|
+
</Fragment>
|
|
345
|
+
:
|
|
346
346
|
null
|
|
347
347
|
}
|
|
348
348
|
</View>
|
|
@@ -351,11 +351,11 @@ const TimeSelector = ({
|
|
|
351
351
|
|
|
352
352
|
return <View>
|
|
353
353
|
<Text
|
|
354
|
-
variant="labelMediumSize"
|
|
355
354
|
style={{
|
|
356
355
|
...stylesheet.timeTitle,
|
|
357
356
|
...timeTitleDynamicStyle
|
|
358
|
-
}}
|
|
357
|
+
}}
|
|
358
|
+
variant="labelMediumSize"
|
|
359
359
|
>
|
|
360
360
|
{localize("end-time")}:
|
|
361
361
|
</Text>
|
|
@@ -378,11 +378,11 @@ const TimeSelector = ({
|
|
|
378
378
|
timeType="hours"
|
|
379
379
|
/>
|
|
380
380
|
<Text
|
|
381
|
-
variant="titleMediumSize"
|
|
382
381
|
style={{
|
|
383
382
|
...stylesheet.colonText,
|
|
384
383
|
...colonTextDynamicStyle
|
|
385
|
-
}}
|
|
384
|
+
}}
|
|
385
|
+
variant="titleMediumSize"
|
|
386
386
|
>
|
|
387
387
|
:
|
|
388
388
|
</Text>
|
|
@@ -399,14 +399,14 @@ const TimeSelector = ({
|
|
|
399
399
|
minDate={minDate}
|
|
400
400
|
/>
|
|
401
401
|
{
|
|
402
|
-
isWorkWithSeconds ?
|
|
402
|
+
isWorkWithSeconds ?
|
|
403
403
|
<Fragment>
|
|
404
404
|
<Text
|
|
405
|
-
variant="titleMediumSize"
|
|
406
405
|
style={{
|
|
407
406
|
...stylesheet.colonText,
|
|
408
407
|
...colonTextDynamicStyle
|
|
409
|
-
}}
|
|
408
|
+
}}
|
|
409
|
+
variant="titleMediumSize"
|
|
410
410
|
>
|
|
411
411
|
:
|
|
412
412
|
</Text>
|
|
@@ -422,8 +422,8 @@ const TimeSelector = ({
|
|
|
422
422
|
maxDate={maxDate}
|
|
423
423
|
minDate={minDate}
|
|
424
424
|
/>
|
|
425
|
-
</Fragment>
|
|
426
|
-
:
|
|
425
|
+
</Fragment>
|
|
426
|
+
:
|
|
427
427
|
null
|
|
428
428
|
}
|
|
429
429
|
</View>
|
|
@@ -11,17 +11,17 @@ import type {
|
|
|
11
11
|
} from "../../types";
|
|
12
12
|
|
|
13
13
|
const stylesheet = StyleSheet.create({
|
|
14
|
-
container: {
|
|
15
|
-
width: "100%"
|
|
16
|
-
},
|
|
17
|
-
rangeContainer: {
|
|
18
|
-
flexDirection: "column"
|
|
19
|
-
},
|
|
20
14
|
inputsContainer: {
|
|
21
15
|
justifyContent: "flex-start",
|
|
22
16
|
flexDirection: "row",
|
|
23
17
|
alignItems: "center"
|
|
24
18
|
},
|
|
19
|
+
rangeContainer: {
|
|
20
|
+
flexDirection: "column"
|
|
21
|
+
},
|
|
22
|
+
container: {
|
|
23
|
+
width: "100%"
|
|
24
|
+
},
|
|
25
25
|
colonText: {
|
|
26
26
|
},
|
|
27
27
|
timeTitle: {
|
|
@@ -34,17 +34,17 @@ export const useStyles = ({
|
|
|
34
34
|
spaces
|
|
35
35
|
}: TimeSelectorDynamicStyle) => {
|
|
36
36
|
const styles = {
|
|
37
|
+
colonText: {
|
|
38
|
+
marginHorizontal: spaces.spacingXs
|
|
39
|
+
} as Mutable<TextStyle>,
|
|
37
40
|
container: {
|
|
38
41
|
marginTop: spaces.spacingMd
|
|
39
42
|
} as Mutable<ViewStyle>,
|
|
40
|
-
rangeContainer: {
|
|
41
|
-
} as Mutable<ViewStyle>,
|
|
42
43
|
inputsContainer: {
|
|
43
44
|
marginTop: spaces.spacingXs
|
|
44
45
|
} as Mutable<ViewStyle>,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
} as Mutable<TextStyle>,
|
|
46
|
+
rangeContainer: {
|
|
47
|
+
} as Mutable<ViewStyle>,
|
|
48
48
|
timeTitle: {
|
|
49
49
|
} as Mutable<TextStyle>
|
|
50
50
|
};
|
|
@@ -33,16 +33,16 @@ const Toast: FC<IToastProps> = ({
|
|
|
33
33
|
isCloseOnPressActionButton = true,
|
|
34
34
|
closeAnimationDelay = 350,
|
|
35
35
|
openAnimationDelay = 200,
|
|
36
|
-
contentContainerStyle,
|
|
37
36
|
autoCloseDelay = 3000,
|
|
37
|
+
contentContainerStyle,
|
|
38
38
|
isCloseOnPress = true,
|
|
39
39
|
icon: CustomIcon,
|
|
40
40
|
type = "neutral",
|
|
41
41
|
isShowAction,
|
|
42
42
|
customTheme,
|
|
43
|
+
children,
|
|
43
44
|
onClosed,
|
|
44
45
|
subTitle,
|
|
45
|
-
children,
|
|
46
46
|
action,
|
|
47
47
|
style,
|
|
48
48
|
title,
|
|
@@ -80,8 +80,8 @@ const Toast: FC<IToastProps> = ({
|
|
|
80
80
|
currentType,
|
|
81
81
|
radiuses,
|
|
82
82
|
subTitle,
|
|
83
|
-
spaces,
|
|
84
83
|
colors,
|
|
84
|
+
spaces,
|
|
85
85
|
type
|
|
86
86
|
});
|
|
87
87
|
|
|
@@ -89,14 +89,14 @@ const Toast: FC<IToastProps> = ({
|
|
|
89
89
|
Animated.parallel([
|
|
90
90
|
Animated.timing(opacityAnim, {
|
|
91
91
|
duration: openAnimationDelay,
|
|
92
|
-
useNativeDriver: true,
|
|
93
92
|
easing: Easing.linear,
|
|
93
|
+
useNativeDriver: true,
|
|
94
94
|
toValue: 1
|
|
95
95
|
}),
|
|
96
96
|
Animated.timing(transformAnim, {
|
|
97
97
|
duration: openAnimationDelay,
|
|
98
|
-
useNativeDriver: true,
|
|
99
98
|
easing: Easing.linear,
|
|
99
|
+
useNativeDriver: true,
|
|
100
100
|
toValue: 0
|
|
101
101
|
})
|
|
102
102
|
]).start();
|
|
@@ -118,8 +118,8 @@ const Toast: FC<IToastProps> = ({
|
|
|
118
118
|
}),
|
|
119
119
|
Animated.timing(opacityAnim, {
|
|
120
120
|
duration: closeAnimationDelay,
|
|
121
|
-
useNativeDriver: true,
|
|
122
121
|
easing: Easing.linear,
|
|
122
|
+
useNativeDriver: true,
|
|
123
123
|
toValue: 0
|
|
124
124
|
})
|
|
125
125
|
]).start(({
|
|
@@ -164,28 +164,28 @@ const Toast: FC<IToastProps> = ({
|
|
|
164
164
|
]}
|
|
165
165
|
>
|
|
166
166
|
<Text
|
|
167
|
-
color={currentType.titleColor}
|
|
168
|
-
numberOfLines={3}
|
|
167
|
+
color={currentType.titleColor}
|
|
169
168
|
style={{
|
|
170
169
|
...stylesheet.title,
|
|
171
170
|
...titleDynamicStyle
|
|
172
|
-
}}
|
|
171
|
+
}}
|
|
172
|
+
numberOfLines={3}
|
|
173
173
|
>
|
|
174
174
|
{title}
|
|
175
175
|
</Text>
|
|
176
176
|
{
|
|
177
177
|
subTitle ?
|
|
178
178
|
<Text
|
|
179
|
-
color={currentType.subTitleColor}
|
|
180
|
-
variant="labelSmallSize"
|
|
181
|
-
numberOfLines={2}
|
|
179
|
+
color={currentType.subTitleColor}
|
|
182
180
|
style={{
|
|
183
181
|
...stylesheet.subTitle,
|
|
184
182
|
...subTitleDynamicStyle
|
|
185
|
-
}}
|
|
183
|
+
}}
|
|
184
|
+
variant="labelSmallSize"
|
|
185
|
+
numberOfLines={2}
|
|
186
186
|
>
|
|
187
187
|
{subTitle}
|
|
188
|
-
</Text>
|
|
188
|
+
</Text>
|
|
189
189
|
:
|
|
190
190
|
null
|
|
191
191
|
}
|
|
@@ -198,18 +198,6 @@ const Toast: FC<IToastProps> = ({
|
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
return <Button
|
|
201
|
-
title={action && action.title ? action.title : undefined}
|
|
202
|
-
isCustomPadding={true}
|
|
203
|
-
spreadBehaviour="free"
|
|
204
|
-
onPress={() => {
|
|
205
|
-
if(isCloseOnPressActionButton) closeAnimation();
|
|
206
|
-
|
|
207
|
-
if(action && action.onPress) action.onPress({
|
|
208
|
-
closeAnimation: ({
|
|
209
|
-
onClosed: _onClosed
|
|
210
|
-
}) => closeAnimation(_onClosed)
|
|
211
|
-
});
|
|
212
|
-
}}
|
|
213
201
|
icon={() => {
|
|
214
202
|
if(action?.title) {
|
|
215
203
|
return null;
|
|
@@ -219,13 +207,25 @@ const Toast: FC<IToastProps> = ({
|
|
|
219
207
|
color={colors.content.text[currentType.actionColor]}
|
|
220
208
|
size={18}
|
|
221
209
|
/>;
|
|
222
|
-
}}
|
|
210
|
+
}}
|
|
211
|
+
title={action && action.title ? action.title : undefined}
|
|
212
|
+
onPress={() => {
|
|
213
|
+
if(isCloseOnPressActionButton) closeAnimation();
|
|
214
|
+
|
|
215
|
+
if(action && action.onPress) action.onPress({
|
|
216
|
+
closeAnimation: ({
|
|
217
|
+
onClosed: _onClosed
|
|
218
|
+
}) => closeAnimation(_onClosed)
|
|
219
|
+
});
|
|
220
|
+
}}
|
|
223
221
|
style={{
|
|
224
222
|
...action?.style,
|
|
225
223
|
...actionDynamicStyle
|
|
226
|
-
}}
|
|
227
|
-
|
|
228
|
-
|
|
224
|
+
}}
|
|
225
|
+
isCustomPadding={true}
|
|
226
|
+
spreadBehaviour="free"
|
|
227
|
+
variant="ghost"
|
|
228
|
+
size="small"
|
|
229
229
|
type={type}
|
|
230
230
|
/>;
|
|
231
231
|
};
|
|
@@ -252,12 +252,12 @@ const Toast: FC<IToastProps> = ({
|
|
|
252
252
|
stylesheet.container,
|
|
253
253
|
containerDynamicStyle,
|
|
254
254
|
{
|
|
255
|
-
opacity: opacityAnim,
|
|
256
255
|
transform: [
|
|
257
256
|
{
|
|
258
257
|
translateY: transformAnim
|
|
259
258
|
}
|
|
260
|
-
]
|
|
259
|
+
],
|
|
260
|
+
opacity: opacityAnim
|
|
261
261
|
}
|
|
262
262
|
]}
|
|
263
263
|
>
|
|
@@ -26,20 +26,6 @@ export const TOAST_TYPE_STYLES: Record<
|
|
|
26
26
|
iconColor: keyof NCoreUIKit.IconContentColors;
|
|
27
27
|
}
|
|
28
28
|
> = {
|
|
29
|
-
primary: {
|
|
30
|
-
actionColor: "onPrimary",
|
|
31
|
-
iconColor: "emphasized",
|
|
32
|
-
containerColor: "mid",
|
|
33
|
-
subTitleColor: "low",
|
|
34
|
-
titleColor: "mid"
|
|
35
|
-
},
|
|
36
|
-
danger: {
|
|
37
|
-
subTitleColor: "dangerLow",
|
|
38
|
-
containerColor: "danger",
|
|
39
|
-
actionColor: "danger",
|
|
40
|
-
titleColor: "danger",
|
|
41
|
-
iconColor: "danger"
|
|
42
|
-
},
|
|
43
29
|
success: {
|
|
44
30
|
subTitleColor: "successLow",
|
|
45
31
|
containerColor: "success",
|
|
@@ -54,6 +40,13 @@ export const TOAST_TYPE_STYLES: Record<
|
|
|
54
40
|
titleColor: "warning",
|
|
55
41
|
iconColor: "warning"
|
|
56
42
|
},
|
|
43
|
+
danger: {
|
|
44
|
+
subTitleColor: "dangerLow",
|
|
45
|
+
containerColor: "danger",
|
|
46
|
+
actionColor: "danger",
|
|
47
|
+
titleColor: "danger",
|
|
48
|
+
iconColor: "danger"
|
|
49
|
+
},
|
|
57
50
|
info: {
|
|
58
51
|
subTitleColor: "infoLow",
|
|
59
52
|
containerColor: "info",
|
|
@@ -61,6 +54,13 @@ export const TOAST_TYPE_STYLES: Record<
|
|
|
61
54
|
titleColor: "info",
|
|
62
55
|
iconColor: "info"
|
|
63
56
|
},
|
|
57
|
+
primary: {
|
|
58
|
+
actionColor: "onPrimary",
|
|
59
|
+
iconColor: "emphasized",
|
|
60
|
+
containerColor: "mid",
|
|
61
|
+
subTitleColor: "low",
|
|
62
|
+
titleColor: "mid"
|
|
63
|
+
},
|
|
64
64
|
neutral: {
|
|
65
65
|
containerColor: "mid",
|
|
66
66
|
subTitleColor: "low",
|
|
@@ -79,15 +79,6 @@ export const getToastType = ({
|
|
|
79
79
|
};
|
|
80
80
|
|
|
81
81
|
const stylesheet = StyleSheet.create({
|
|
82
|
-
container: {
|
|
83
|
-
position: "absolute",
|
|
84
|
-
alignSelf: "center",
|
|
85
|
-
zIndex: 99998
|
|
86
|
-
},
|
|
87
|
-
containerObject: {
|
|
88
|
-
flexDirection: "row",
|
|
89
|
-
alignItems: "center"
|
|
90
|
-
},
|
|
91
82
|
contentContainer: {
|
|
92
83
|
justifyContent: "center",
|
|
93
84
|
alignItems: "flex-start",
|
|
@@ -98,6 +89,15 @@ const stylesheet = StyleSheet.create({
|
|
|
98
89
|
justifyContent: "center",
|
|
99
90
|
alignItems: "center"
|
|
100
91
|
},
|
|
92
|
+
container: {
|
|
93
|
+
position: "absolute",
|
|
94
|
+
alignSelf: "center",
|
|
95
|
+
zIndex: 99998
|
|
96
|
+
},
|
|
97
|
+
containerObject: {
|
|
98
|
+
flexDirection: "row",
|
|
99
|
+
alignItems: "center"
|
|
100
|
+
},
|
|
101
101
|
title: {
|
|
102
102
|
textAlign: "left"
|
|
103
103
|
},
|
|
@@ -125,26 +125,26 @@ export const useStyles = ({
|
|
|
125
125
|
paddingHorizontal: spaces.spacingLg,
|
|
126
126
|
paddingVertical: spaces.spacingMd
|
|
127
127
|
} as Mutable<ViewStyle>,
|
|
128
|
-
contentContainer: {
|
|
129
|
-
|
|
130
|
-
} as Mutable<ViewStyle>,
|
|
131
|
-
title: {
|
|
132
|
-
|
|
133
|
-
} as Mutable<TextStyle>,
|
|
134
|
-
subTitle: {
|
|
135
|
-
marginTop: spaces.spacingXs
|
|
136
|
-
} as Mutable<TextStyle>,
|
|
137
|
-
iconContainer: {
|
|
138
|
-
paddingRight: spaces.spacingSm,
|
|
139
|
-
marginRight: spaces.spacingSm
|
|
140
|
-
} as Mutable<ViewStyle>,
|
|
141
128
|
action: {
|
|
142
129
|
paddingBottom: spaces.spacingSm,
|
|
143
130
|
paddingRight: spaces.spacingSm,
|
|
144
131
|
paddingLeft: spaces.spacingMd,
|
|
145
132
|
paddingTop: spaces.spacingSm,
|
|
146
133
|
marginLeft: spaces.spacingMd
|
|
147
|
-
} as Mutable<ViewStyle
|
|
134
|
+
} as Mutable<ViewStyle>,
|
|
135
|
+
iconContainer: {
|
|
136
|
+
paddingRight: spaces.spacingSm,
|
|
137
|
+
marginRight: spaces.spacingSm
|
|
138
|
+
} as Mutable<ViewStyle>,
|
|
139
|
+
subTitle: {
|
|
140
|
+
marginTop: spaces.spacingXs
|
|
141
|
+
} as Mutable<TextStyle>,
|
|
142
|
+
contentContainer: {
|
|
143
|
+
|
|
144
|
+
} as Mutable<ViewStyle>,
|
|
145
|
+
title: {
|
|
146
|
+
|
|
147
|
+
} as Mutable<TextStyle>
|
|
148
148
|
};
|
|
149
149
|
|
|
150
150
|
if(subTitle) {
|
|
@@ -35,7 +35,14 @@ export type ToastType = "primary" | "danger" | "warning" | "neutral" | "success"
|
|
|
35
35
|
|
|
36
36
|
export type ToastInternalProps = {
|
|
37
37
|
contentContainerStyle?: StyleProp<ViewStyle>[] | StyleProp<ViewStyle>;
|
|
38
|
+
customTheme?: {
|
|
39
|
+
gapPropagation?: keyof NCoreUIKit.GapPropagationKey;
|
|
40
|
+
sharpness?: keyof NCoreUIKit.SharpnessKey;
|
|
41
|
+
paletteKey?: keyof NCoreUIKit.PaletteKey;
|
|
42
|
+
themeKey?: keyof NCoreUIKit.ThemeKey;
|
|
43
|
+
};
|
|
38
44
|
style?: StyleProp<ViewStyle>[] | StyleProp<ViewStyle>;
|
|
45
|
+
isCloseOnPressActionButton?: boolean;
|
|
39
46
|
action?: {
|
|
40
47
|
onPress: (props: {
|
|
41
48
|
closeAnimation: (props: {
|
|
@@ -48,7 +55,6 @@ export type ToastInternalProps = {
|
|
|
48
55
|
style?: ViewStyle;
|
|
49
56
|
title?: string;
|
|
50
57
|
};
|
|
51
|
-
isCloseOnPressActionButton?: boolean;
|
|
52
58
|
closeAnimationDelay?: number;
|
|
53
59
|
openAnimationDelay?: number;
|
|
54
60
|
isCloseOnPress?: boolean;
|
|
@@ -56,19 +62,13 @@ export type ToastInternalProps = {
|
|
|
56
62
|
isShowAction?: boolean;
|
|
57
63
|
icon?: NCoreUIKitIcon;
|
|
58
64
|
children?: ReactNode;
|
|
65
|
+
onClosed?: (props: {
|
|
66
|
+
id: string;
|
|
67
|
+
}) => void;
|
|
59
68
|
subTitle?: string;
|
|
60
69
|
type?: ToastType;
|
|
61
70
|
title: string;
|
|
62
71
|
id: string;
|
|
63
|
-
onClosed?: (props: {
|
|
64
|
-
id: string;
|
|
65
|
-
}) => void;
|
|
66
|
-
customTheme?: {
|
|
67
|
-
gapPropagation?: keyof NCoreUIKit.GapPropagationKey;
|
|
68
|
-
sharpness?: keyof NCoreUIKit.SharpnessKey;
|
|
69
|
-
paletteKey?: keyof NCoreUIKit.PaletteKey;
|
|
70
|
-
themeKey?: keyof NCoreUIKit.ThemeKey;
|
|
71
|
-
};
|
|
72
72
|
};
|
|
73
73
|
|
|
74
74
|
interface IToastProps extends ToastInternalProps {
|