@wavemaker/app-rn-runtime 11.15.1-rc.248 → 11.15.2-dev.1
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/actions/base-action.d.ts +8 -0
- package/actions/base-action.d.ts.map +1 -0
- package/actions/index.d.ts +6 -0
- package/actions/index.d.ts.map +1 -0
- package/actions/login-action.d.ts +12 -0
- package/actions/login-action.d.ts.map +1 -0
- package/actions/logout-action.d.ts +11 -0
- package/actions/logout-action.d.ts.map +1 -0
- package/actions/navigation-action.d.ts +13 -0
- package/actions/navigation-action.d.ts.map +1 -0
- package/actions/notification-action.d.ts +20 -0
- package/actions/notification-action.d.ts.map +1 -0
- package/actions/notification-action.js +0 -1
- package/actions/notification-action.js.map +1 -1
- package/actions/timer-action.d.ts +20 -0
- package/actions/timer-action.d.ts.map +1 -0
- package/components/advanced/carousel/carousel-content/carousel-content.component.d.ts +11 -0
- package/components/advanced/carousel/carousel-content/carousel-content.component.d.ts.map +1 -0
- package/components/advanced/carousel/carousel-content/carousel-content.props.d.ts +5 -0
- package/components/advanced/carousel/carousel-content/carousel-content.props.d.ts.map +1 -0
- package/components/advanced/carousel/carousel-content/carousel-content.styles.d.ts +4 -0
- package/components/advanced/carousel/carousel-content/carousel-content.styles.d.ts.map +1 -0
- package/components/advanced/carousel/carousel-template/carousel-template.component.d.ts +11 -0
- package/components/advanced/carousel/carousel-template/carousel-template.component.d.ts.map +1 -0
- package/components/advanced/carousel/carousel-template/carousel-template.props.d.ts +5 -0
- package/components/advanced/carousel/carousel-template/carousel-template.props.d.ts.map +1 -0
- package/components/advanced/carousel/carousel-template/carousel-template.styles.d.ts +4 -0
- package/components/advanced/carousel/carousel-template/carousel-template.styles.d.ts.map +1 -0
- package/components/advanced/carousel/carousel.component.d.ts +36 -0
- package/components/advanced/carousel/carousel.component.d.ts.map +1 -0
- package/components/advanced/carousel/carousel.props.d.ts +18 -0
- package/components/advanced/carousel/carousel.props.d.ts.map +1 -0
- package/components/advanced/carousel/carousel.styles.d.ts +21 -0
- package/components/advanced/carousel/carousel.styles.d.ts.map +1 -0
- package/components/advanced/customwidgetcontainer/customwidgetcontainer.component.d.ts +11 -0
- package/components/advanced/customwidgetcontainer/customwidgetcontainer.component.d.ts.map +1 -0
- package/components/advanced/customwidgetcontainer/customwidgetcontainer.props.d.ts +5 -0
- package/components/advanced/customwidgetcontainer/customwidgetcontainer.props.d.ts.map +1 -0
- package/components/advanced/customwidgetcontainer/customwidgetcontainer.styles.d.ts +7 -0
- package/components/advanced/customwidgetcontainer/customwidgetcontainer.styles.d.ts.map +1 -0
- package/components/advanced/login/login.component.d.ts +16 -0
- package/components/advanced/login/login.component.d.ts.map +1 -0
- package/components/advanced/login/login.props.d.ts +7 -0
- package/components/advanced/login/login.props.d.ts.map +1 -0
- package/components/advanced/login/login.styles.d.ts +8 -0
- package/components/advanced/login/login.styles.d.ts.map +1 -0
- package/components/advanced/network-info-toaster/network-info-toaster.component.d.ts +18 -0
- package/components/advanced/network-info-toaster/network-info-toaster.component.d.ts.map +1 -0
- package/components/advanced/network-info-toaster/network-info-toaster.props.d.ts +5 -0
- package/components/advanced/network-info-toaster/network-info-toaster.props.d.ts.map +1 -0
- package/components/advanced/network-info-toaster/network-info-toaster.styles.d.ts +9 -0
- package/components/advanced/network-info-toaster/network-info-toaster.styles.d.ts.map +1 -0
- package/components/advanced/webview/webview.component.d.ts +31 -0
- package/components/advanced/webview/webview.component.d.ts.map +1 -0
- package/components/advanced/webview/webview.props.d.ts +12 -0
- package/components/advanced/webview/webview.props.d.ts.map +1 -0
- package/components/advanced/webview/webview.styles.d.ts +8 -0
- package/components/advanced/webview/webview.styles.d.ts.map +1 -0
- package/components/basic/anchor/anchor.component.d.ts +16 -0
- package/components/basic/anchor/anchor.component.d.ts.map +1 -0
- package/components/basic/anchor/anchor.props.d.ts +28 -0
- package/components/basic/anchor/anchor.props.d.ts.map +1 -0
- package/components/basic/anchor/anchor.styles.d.ts +12 -0
- package/components/basic/anchor/anchor.styles.d.ts.map +1 -0
- package/components/basic/animatedview.component.d.ts +22 -0
- package/components/basic/animatedview.component.d.ts.map +1 -0
- package/components/basic/audio/audio.component.d.ts +37 -0
- package/components/basic/audio/audio.component.d.ts.map +1 -0
- package/components/basic/audio/audio.props.d.ts +9 -0
- package/components/basic/audio/audio.props.d.ts.map +1 -0
- package/components/basic/audio/audio.styles.d.ts +14 -0
- package/components/basic/audio/audio.styles.d.ts.map +1 -0
- package/components/basic/bottomsheet/bottomsheet.component.d.ts +72 -0
- package/components/basic/bottomsheet/bottomsheet.component.d.ts.map +1 -0
- package/components/basic/bottomsheet/bottomsheet.component.js +23 -58
- package/components/basic/bottomsheet/bottomsheet.component.js.map +1 -1
- package/components/basic/bottomsheet/bottomsheet.props.d.ts +20 -0
- package/components/basic/bottomsheet/bottomsheet.props.d.ts.map +1 -0
- package/components/basic/bottomsheet/bottomsheet.styles.d.ts +17 -0
- package/components/basic/bottomsheet/bottomsheet.styles.d.ts.map +1 -0
- package/components/basic/button/button.component.d.ts +14 -0
- package/components/basic/button/button.component.d.ts.map +1 -0
- package/components/basic/button/button.component.js +7 -56
- package/components/basic/button/button.component.js.map +1 -1
- package/components/basic/button/button.props.d.ts +23 -0
- package/components/basic/button/button.props.d.ts.map +1 -0
- package/components/basic/button/button.styles.d.ts +12 -0
- package/components/basic/button/button.styles.d.ts.map +1 -0
- package/components/basic/buttongroup/buttongroup.component.d.ts +12 -0
- package/components/basic/buttongroup/buttongroup.component.d.ts.map +1 -0
- package/components/basic/buttongroup/buttongroup.props.d.ts +8 -0
- package/components/basic/buttongroup/buttongroup.props.d.ts.map +1 -0
- package/components/basic/buttongroup/buttongroup.styles.d.ts +7 -0
- package/components/basic/buttongroup/buttongroup.styles.d.ts.map +1 -0
- package/components/basic/custom/custom.component.d.ts +12 -0
- package/components/basic/custom/custom.component.d.ts.map +1 -0
- package/components/basic/custom/custom.props.d.ts +8 -0
- package/components/basic/custom/custom.props.d.ts.map +1 -0
- package/components/basic/custom/custom.styles.d.ts +7 -0
- package/components/basic/custom/custom.styles.d.ts.map +1 -0
- package/components/basic/icon/icon.component.d.ts +38 -0
- package/components/basic/icon/icon.component.d.ts.map +1 -0
- package/components/basic/icon/icon.props.d.ts +23 -0
- package/components/basic/icon/icon.props.d.ts.map +1 -0
- package/components/basic/icon/icon.styles.d.ts +10 -0
- package/components/basic/icon/icon.styles.d.ts.map +1 -0
- package/components/basic/icon/streamline-light-icon/streamline-light-icon.component.d.ts +9 -0
- package/components/basic/icon/streamline-light-icon/streamline-light-icon.component.d.ts.map +1 -0
- package/components/basic/icon/streamline-regular-icon/streamline-regular-icon.component.d.ts +9 -0
- package/components/basic/icon/streamline-regular-icon/streamline-regular-icon.component.d.ts.map +1 -0
- package/components/basic/icon/wavicon/wavicon.component.d.ts +9 -0
- package/components/basic/icon/wavicon/wavicon.component.d.ts.map +1 -0
- package/components/basic/label/label.component.d.ts +30 -0
- package/components/basic/label/label.component.d.ts.map +1 -0
- package/components/basic/label/label.props.d.ts +23 -0
- package/components/basic/label/label.props.d.ts.map +1 -0
- package/components/basic/label/label.styles.d.ts +11 -0
- package/components/basic/label/label.styles.d.ts.map +1 -0
- package/components/basic/lottie/lottie.component.d.ts +23 -0
- package/components/basic/lottie/lottie.component.d.ts.map +1 -0
- package/components/basic/lottie/lottie.props.d.ts +8 -0
- package/components/basic/lottie/lottie.props.d.ts.map +1 -0
- package/components/basic/lottie/lottie.styles.d.ts +7 -0
- package/components/basic/lottie/lottie.styles.d.ts.map +1 -0
- package/components/basic/message/message.component.d.ts +14 -0
- package/components/basic/message/message.component.d.ts.map +1 -0
- package/components/basic/message/message.component.js +1 -1
- package/components/basic/message/message.component.js.map +1 -1
- package/components/basic/message/message.props.d.ts +18 -0
- package/components/basic/message/message.props.d.ts.map +1 -0
- package/components/basic/message/message.props.js +0 -1
- package/components/basic/message/message.props.js.map +1 -1
- package/components/basic/message/message.styles.d.ts +11 -0
- package/components/basic/message/message.styles.d.ts.map +1 -0
- package/components/basic/modal/modal.component.d.ts +12 -0
- package/components/basic/modal/modal.component.d.ts.map +1 -0
- package/components/basic/modal/modal.props.d.ts +6 -0
- package/components/basic/modal/modal.props.d.ts.map +1 -0
- package/components/basic/modal/modal.styles.d.ts +7 -0
- package/components/basic/modal/modal.styles.d.ts.map +1 -0
- package/components/basic/picture/picture.component.d.ts +37 -0
- package/components/basic/picture/picture.component.d.ts.map +1 -0
- package/components/basic/picture/picture.component.js +19 -46
- package/components/basic/picture/picture.component.js.map +1 -1
- package/components/basic/picture/picture.props.d.ts +20 -0
- package/components/basic/picture/picture.props.d.ts.map +1 -0
- package/components/basic/picture/picture.props.js.map +1 -1
- package/components/basic/picture/picture.styles.d.ts +9 -0
- package/components/basic/picture/picture.styles.d.ts.map +1 -0
- package/components/basic/progress-bar/progress-bar.component.d.ts +12 -0
- package/components/basic/progress-bar/progress-bar.component.d.ts.map +1 -0
- package/components/basic/progress-bar/progress-bar.props.d.ts +14 -0
- package/components/basic/progress-bar/progress-bar.props.d.ts.map +1 -0
- package/components/basic/progress-bar/progress-bar.styles.d.ts +11 -0
- package/components/basic/progress-bar/progress-bar.styles.d.ts.map +1 -0
- package/components/basic/progress-circle/progress-circle.component.d.ts +14 -0
- package/components/basic/progress-circle/progress-circle.component.d.ts.map +1 -0
- package/components/basic/progress-circle/progress-circle.props.d.ts +14 -0
- package/components/basic/progress-circle/progress-circle.props.d.ts.map +1 -0
- package/components/basic/progress-circle/progress-circle.styles.d.ts +9 -0
- package/components/basic/progress-circle/progress-circle.styles.d.ts.map +1 -0
- package/components/basic/search/local-data-provider.d.ts +12 -0
- package/components/basic/search/local-data-provider.d.ts.map +1 -0
- package/components/basic/search/search.component.d.ts +58 -0
- package/components/basic/search/search.component.d.ts.map +1 -0
- package/components/basic/search/search.props.d.ts +35 -0
- package/components/basic/search/search.props.d.ts.map +1 -0
- package/components/basic/search/search.styles.d.ts +21 -0
- package/components/basic/search/search.styles.d.ts.map +1 -0
- package/components/basic/skeleton/skeleton.component.d.ts +28 -0
- package/components/basic/skeleton/skeleton.component.d.ts.map +1 -0
- package/components/basic/skeleton/skeleton.props.d.ts +6 -0
- package/components/basic/skeleton/skeleton.props.d.ts.map +1 -0
- package/components/basic/skeleton/skeleton.styles.d.ts +11 -0
- package/components/basic/skeleton/skeleton.styles.d.ts.map +1 -0
- package/components/basic/spinner/spinner.component.d.ts +17 -0
- package/components/basic/spinner/spinner.component.d.ts.map +1 -0
- package/components/basic/spinner/spinner.props.d.ts +11 -0
- package/components/basic/spinner/spinner.props.d.ts.map +1 -0
- package/components/basic/spinner/spinner.styles.d.ts +11 -0
- package/components/basic/spinner/spinner.styles.d.ts.map +1 -0
- package/components/basic/tooltip/tooltip.component.d.ts +11 -0
- package/components/basic/tooltip/tooltip.component.d.ts.map +1 -0
- package/components/basic/tooltip/tooltip.props.d.ts +14 -0
- package/components/basic/tooltip/tooltip.props.d.ts.map +1 -0
- package/components/basic/tooltip/tooltip.styles.d.ts +8 -0
- package/components/basic/tooltip/tooltip.styles.d.ts.map +1 -0
- package/components/basic/video/video.component.d.ts +29 -0
- package/components/basic/video/video.component.d.ts.map +1 -0
- package/components/basic/video/video.props.d.ts +28 -0
- package/components/basic/video/video.props.d.ts.map +1 -0
- package/components/basic/video/video.styles.d.ts +9 -0
- package/components/basic/video/video.styles.d.ts.map +1 -0
- package/components/chart/area-chart/area-chart.component.d.ts +15 -0
- package/components/chart/area-chart/area-chart.component.d.ts.map +1 -0
- package/components/chart/area-chart/area-chart.props.d.ts +6 -0
- package/components/chart/area-chart/area-chart.props.d.ts.map +1 -0
- package/components/chart/area-chart/area-chart.styles.d.ts +5 -0
- package/components/chart/area-chart/area-chart.styles.d.ts.map +1 -0
- package/components/chart/bar-chart/bar-chart.component.d.ts +14 -0
- package/components/chart/bar-chart/bar-chart.component.d.ts.map +1 -0
- package/components/chart/bar-chart/bar-chart.component.js +2 -13
- package/components/chart/bar-chart/bar-chart.component.js.map +1 -1
- package/components/chart/bar-chart/bar-chart.props.d.ts +8 -0
- package/components/chart/bar-chart/bar-chart.props.d.ts.map +1 -0
- package/components/chart/bar-chart/bar-chart.props.js +0 -1
- package/components/chart/bar-chart/bar-chart.props.js.map +1 -1
- package/components/chart/bar-chart/bar-chart.styles.d.ts +5 -0
- package/components/chart/bar-chart/bar-chart.styles.d.ts.map +1 -0
- package/components/chart/basechart.component.d.ts +82 -0
- package/components/chart/basechart.component.d.ts.map +1 -0
- package/components/chart/basechart.props.d.ts +60 -0
- package/components/chart/basechart.props.d.ts.map +1 -0
- package/components/chart/basechart.styles.d.ts +36 -0
- package/components/chart/basechart.styles.d.ts.map +1 -0
- package/components/chart/bubble-chart/bubble-chart.component.d.ts +12 -0
- package/components/chart/bubble-chart/bubble-chart.component.d.ts.map +1 -0
- package/components/chart/bubble-chart/bubble-chart.props.d.ts +5 -0
- package/components/chart/bubble-chart/bubble-chart.props.d.ts.map +1 -0
- package/components/chart/bubble-chart/bubble-chart.styles.d.ts +5 -0
- package/components/chart/bubble-chart/bubble-chart.styles.d.ts.map +1 -0
- package/components/chart/column-chart/column-chart.component.d.ts +8 -0
- package/components/chart/column-chart/column-chart.component.d.ts.map +1 -0
- package/components/chart/column-chart/column-chart.props.d.ts +4 -0
- package/components/chart/column-chart/column-chart.props.d.ts.map +1 -0
- package/components/chart/column-chart/column-chart.styles.d.ts +4 -0
- package/components/chart/column-chart/column-chart.styles.d.ts.map +1 -0
- package/components/chart/donut-chart/donut-chart.component.d.ts +6 -0
- package/components/chart/donut-chart/donut-chart.component.d.ts.map +1 -0
- package/components/chart/donut-chart/donut-chart.props.d.ts +5 -0
- package/components/chart/donut-chart/donut-chart.props.d.ts.map +1 -0
- package/components/chart/donut-chart/donut-chart.styles.d.ts +5 -0
- package/components/chart/donut-chart/donut-chart.styles.d.ts.map +1 -0
- package/components/chart/legend/legend.component.d.ts +15 -0
- package/components/chart/legend/legend.component.d.ts.map +1 -0
- package/components/chart/line-chart/line-chart.component.d.ts +12 -0
- package/components/chart/line-chart/line-chart.component.d.ts.map +1 -0
- package/components/chart/line-chart/line-chart.props.d.ts +8 -0
- package/components/chart/line-chart/line-chart.props.d.ts.map +1 -0
- package/components/chart/line-chart/line-chart.styles.d.ts +5 -0
- package/components/chart/line-chart/line-chart.styles.d.ts.map +1 -0
- package/components/chart/pie-chart/pie-chart.component.d.ts +27 -0
- package/components/chart/pie-chart/pie-chart.component.d.ts.map +1 -0
- package/components/chart/pie-chart/pie-chart.props.d.ts +9 -0
- package/components/chart/pie-chart/pie-chart.props.d.ts.map +1 -0
- package/components/chart/pie-chart/pie-chart.styles.d.ts +5 -0
- package/components/chart/pie-chart/pie-chart.styles.d.ts.map +1 -0
- package/components/chart/stack-chart/stack-chart.component.d.ts +26 -0
- package/components/chart/stack-chart/stack-chart.component.d.ts.map +1 -0
- package/components/chart/stack-chart/stack-chart.props.d.ts +11 -0
- package/components/chart/stack-chart/stack-chart.props.d.ts.map +1 -0
- package/components/chart/stack-chart/stack-chart.styles.d.ts +5 -0
- package/components/chart/stack-chart/stack-chart.styles.d.ts.map +1 -0
- package/components/chart/staticdata.d.ts +41 -0
- package/components/chart/staticdata.d.ts.map +1 -0
- package/components/chart/theme/chart.theme.d.ts +8 -0
- package/components/chart/theme/chart.theme.d.ts.map +1 -0
- package/components/container/accordion/accordion.component.d.ts +27 -0
- package/components/container/accordion/accordion.component.d.ts.map +1 -0
- package/components/container/accordion/accordion.component.js +7 -14
- package/components/container/accordion/accordion.component.js.map +1 -1
- package/components/container/accordion/accordion.props.d.ts +10 -0
- package/components/container/accordion/accordion.props.d.ts.map +1 -0
- package/components/container/accordion/accordion.styles.d.ts +21 -0
- package/components/container/accordion/accordion.styles.d.ts.map +1 -0
- package/components/container/accordion/accordion.styles.js +21 -24
- package/components/container/accordion/accordion.styles.js.map +1 -1
- package/components/container/accordion/accordionpane/accordionpane.component.d.ts +23 -0
- package/components/container/accordion/accordionpane/accordionpane.component.d.ts.map +1 -0
- package/components/container/accordion/accordionpane/accordionpane.props.d.ts +11 -0
- package/components/container/accordion/accordionpane/accordionpane.props.d.ts.map +1 -0
- package/components/container/accordion/accordionpane/accordionpane.styles.d.ts +4 -0
- package/components/container/accordion/accordionpane/accordionpane.styles.d.ts.map +1 -0
- package/components/container/container.component.d.ts +38 -0
- package/components/container/container.component.d.ts.map +1 -0
- package/components/container/container.component.js +69 -149
- package/components/container/container.component.js.map +1 -1
- package/components/container/container.props.d.ts +17 -0
- package/components/container/container.props.d.ts.map +1 -0
- package/components/container/container.props.js +0 -1
- package/components/container/container.props.js.map +1 -1
- package/components/container/container.styles.d.ts +10 -0
- package/components/container/container.styles.d.ts.map +1 -0
- package/components/container/container.styles.js +1 -3
- package/components/container/container.styles.js.map +1 -1
- package/components/container/layoutgrid/gridcolumn/gridcolumn.component.d.ts +11 -0
- package/components/container/layoutgrid/gridcolumn/gridcolumn.component.d.ts.map +1 -0
- package/components/container/layoutgrid/gridcolumn/gridcolumn.props.d.ts +7 -0
- package/components/container/layoutgrid/gridcolumn/gridcolumn.props.d.ts.map +1 -0
- package/components/container/layoutgrid/gridcolumn/gridcolumn.styles.d.ts +4 -0
- package/components/container/layoutgrid/gridcolumn/gridcolumn.styles.d.ts.map +1 -0
- package/components/container/layoutgrid/gridrow/gridrow.component.d.ts +11 -0
- package/components/container/layoutgrid/gridrow/gridrow.component.d.ts.map +1 -0
- package/components/container/layoutgrid/gridrow/gridrow.props.d.ts +5 -0
- package/components/container/layoutgrid/gridrow/gridrow.props.d.ts.map +1 -0
- package/components/container/layoutgrid/gridrow/gridrow.styles.d.ts +7 -0
- package/components/container/layoutgrid/gridrow/gridrow.styles.d.ts.map +1 -0
- package/components/container/layoutgrid/layoutgrid.component.d.ts +13 -0
- package/components/container/layoutgrid/layoutgrid.component.d.ts.map +1 -0
- package/components/container/layoutgrid/layoutgrid.props.d.ts +5 -0
- package/components/container/layoutgrid/layoutgrid.props.d.ts.map +1 -0
- package/components/container/layoutgrid/layoutgrid.styles.d.ts +7 -0
- package/components/container/layoutgrid/layoutgrid.styles.d.ts.map +1 -0
- package/components/container/linearlayout/linearlayout.component.d.ts +15 -0
- package/components/container/linearlayout/linearlayout.component.d.ts.map +1 -0
- package/components/container/linearlayout/linearlayout.component.js +0 -1
- package/components/container/linearlayout/linearlayout.component.js.map +1 -1
- package/components/container/linearlayout/linearlayout.props.d.ts +9 -0
- package/components/container/linearlayout/linearlayout.props.d.ts.map +1 -0
- package/components/container/linearlayout/linearlayout.styles.d.ts +7 -0
- package/components/container/linearlayout/linearlayout.styles.d.ts.map +1 -0
- package/components/container/linearlayout/linearlayoutitem/linearlayoutitem.component.d.ts +11 -0
- package/components/container/linearlayout/linearlayoutitem/linearlayoutitem.component.d.ts.map +1 -0
- package/components/container/linearlayout/linearlayoutitem/linearlayoutitem.props.d.ts +7 -0
- package/components/container/linearlayout/linearlayoutitem/linearlayoutitem.props.d.ts.map +1 -0
- package/components/container/linearlayout/linearlayoutitem/linearlayoutitem.styles.d.ts +4 -0
- package/components/container/linearlayout/linearlayoutitem/linearlayoutitem.styles.d.ts.map +1 -0
- package/components/container/panel/collapsible-pane.component.d.ts +6 -0
- package/components/container/panel/collapsible-pane.component.d.ts.map +1 -0
- package/components/container/panel/panel-content/panel-content.component.d.ts +11 -0
- package/components/container/panel/panel-content/panel-content.component.d.ts.map +1 -0
- package/components/container/panel/panel-content/panel-content.props.d.ts +5 -0
- package/components/container/panel/panel-content/panel-content.props.d.ts.map +1 -0
- package/components/container/panel/panel-content/panel-content.styles.d.ts +4 -0
- package/components/container/panel/panel-content/panel-content.styles.d.ts.map +1 -0
- package/components/container/panel/panel-footer/panel-footer.component.d.ts +11 -0
- package/components/container/panel/panel-footer/panel-footer.component.d.ts.map +1 -0
- package/components/container/panel/panel-footer/panel-footer.props.d.ts +5 -0
- package/components/container/panel/panel-footer/panel-footer.props.d.ts.map +1 -0
- package/components/container/panel/panel-footer/panel-footer.styles.d.ts +4 -0
- package/components/container/panel/panel-footer/panel-footer.styles.d.ts.map +1 -0
- package/components/container/panel/panel.component.d.ts +20 -0
- package/components/container/panel/panel.component.d.ts.map +1 -0
- package/components/container/panel/panel.component.js +1 -8
- package/components/container/panel/panel.component.js.map +1 -1
- package/components/container/panel/panel.props.d.ts +18 -0
- package/components/container/panel/panel.props.d.ts.map +1 -0
- package/components/container/panel/panel.props.js +0 -2
- package/components/container/panel/panel.props.js.map +1 -1
- package/components/container/panel/panel.styles.d.ts +13 -0
- package/components/container/panel/panel.styles.d.ts.map +1 -0
- package/components/container/partial-host.component.d.ts +18 -0
- package/components/container/partial-host.component.d.ts.map +1 -0
- package/components/container/tabs/tabheader/tabheader.component.d.ts +27 -0
- package/components/container/tabs/tabheader/tabheader.component.d.ts.map +1 -0
- package/components/container/tabs/tabheader/tabheader.props.d.ts +14 -0
- package/components/container/tabs/tabheader/tabheader.props.d.ts.map +1 -0
- package/components/container/tabs/tabheader/tabheader.styles.d.ts +18 -0
- package/components/container/tabs/tabheader/tabheader.styles.d.ts.map +1 -0
- package/components/container/tabs/tabpane/tabpane.component.d.ts +22 -0
- package/components/container/tabs/tabpane/tabpane.component.d.ts.map +1 -0
- package/components/container/tabs/tabpane/tabpane.props.d.ts +14 -0
- package/components/container/tabs/tabpane/tabpane.props.d.ts.map +1 -0
- package/components/container/tabs/tabpane/tabpane.styles.d.ts +4 -0
- package/components/container/tabs/tabpane/tabpane.styles.d.ts.map +1 -0
- package/components/container/tabs/tabs.component.d.ts +37 -0
- package/components/container/tabs/tabs.component.d.ts.map +1 -0
- package/components/container/tabs/tabs.props.d.ts +8 -0
- package/components/container/tabs/tabs.props.d.ts.map +1 -0
- package/components/container/tabs/tabs.styles.d.ts +11 -0
- package/components/container/tabs/tabs.styles.d.ts.map +1 -0
- package/components/container/tile/tile.component.d.ts +13 -0
- package/components/container/tile/tile.component.d.ts.map +1 -0
- package/components/container/tile/tile.component.js +0 -3
- package/components/container/tile/tile.component.js.map +1 -1
- package/components/container/tile/tile.props.d.ts +7 -0
- package/components/container/tile/tile.props.d.ts.map +1 -0
- package/components/container/tile/tile.styles.d.ts +7 -0
- package/components/container/tile/tile.styles.d.ts.map +1 -0
- package/components/container/wizard/wizard.component.d.ts +47 -0
- package/components/container/wizard/wizard.component.d.ts.map +1 -0
- package/components/container/wizard/wizard.component.js +2 -2
- package/components/container/wizard/wizard.component.js.map +1 -1
- package/components/container/wizard/wizard.props.d.ts +23 -0
- package/components/container/wizard/wizard.props.d.ts.map +1 -0
- package/components/container/wizard/wizard.props.js +0 -1
- package/components/container/wizard/wizard.props.js.map +1 -1
- package/components/container/wizard/wizard.styles.d.ts +48 -0
- package/components/container/wizard/wizard.styles.d.ts.map +1 -0
- package/components/container/wizard/wizard.styles.js +16 -1
- package/components/container/wizard/wizard.styles.js.map +1 -1
- package/components/container/wizard/wizardstep/wizardstep.component.d.ts +21 -0
- package/components/container/wizard/wizardstep/wizardstep.component.d.ts.map +1 -0
- package/components/container/wizard/wizardstep/wizardstep.props.d.ts +16 -0
- package/components/container/wizard/wizardstep/wizardstep.props.d.ts.map +1 -0
- package/components/container/wizard/wizardstep/wizardstep.styles.d.ts +4 -0
- package/components/container/wizard/wizardstep/wizardstep.styles.d.ts.map +1 -0
- package/components/data/card/card-content/card-content.component.d.ts +14 -0
- package/components/data/card/card-content/card-content.component.d.ts.map +1 -0
- package/components/data/card/card-content/card-content.props.d.ts +6 -0
- package/components/data/card/card-content/card-content.props.d.ts.map +1 -0
- package/components/data/card/card-content/card-content.styles.d.ts +7 -0
- package/components/data/card/card-content/card-content.styles.d.ts.map +1 -0
- package/components/data/card/card-footer/card-footer.component.d.ts +11 -0
- package/components/data/card/card-footer/card-footer.component.d.ts.map +1 -0
- package/components/data/card/card-footer/card-footer.props.d.ts +5 -0
- package/components/data/card/card-footer/card-footer.props.d.ts.map +1 -0
- package/components/data/card/card-footer/card-footer.styles.d.ts +4 -0
- package/components/data/card/card-footer/card-footer.styles.d.ts.map +1 -0
- package/components/data/card/card.component.d.ts +13 -0
- package/components/data/card/card.component.d.ts.map +1 -0
- package/components/data/card/card.props.d.ts +21 -0
- package/components/data/card/card.props.d.ts.map +1 -0
- package/components/data/card/card.styles.d.ts +16 -0
- package/components/data/card/card.styles.d.ts.map +1 -0
- package/components/data/form/form-action/form-action.component.d.ts +14 -0
- package/components/data/form/form-action/form-action.component.d.ts.map +1 -0
- package/components/data/form/form-action/form-action.props.d.ts +12 -0
- package/components/data/form/form-action/form-action.props.d.ts.map +1 -0
- package/components/data/form/form-action/form-action.styles.d.ts +7 -0
- package/components/data/form/form-action/form-action.styles.d.ts.map +1 -0
- package/components/data/form/form-body/form-body.component.d.ts +11 -0
- package/components/data/form/form-body/form-body.component.d.ts.map +1 -0
- package/components/data/form/form-body/form-body.component.js +1 -2
- package/components/data/form/form-body/form-body.component.js.map +1 -1
- package/components/data/form/form-body/form-body.props.d.ts +5 -0
- package/components/data/form/form-body/form-body.props.d.ts.map +1 -0
- package/components/data/form/form-body/form-body.styles.d.ts +4 -0
- package/components/data/form/form-body/form-body.styles.d.ts.map +1 -0
- package/components/data/form/form-field/form-field.component.d.ts +31 -0
- package/components/data/form/form-field/form-field.component.d.ts.map +1 -0
- package/components/data/form/form-field/form-field.props.d.ts +29 -0
- package/components/data/form/form-field/form-field.props.d.ts.map +1 -0
- package/components/data/form/form-field/form-field.styles.d.ts +7 -0
- package/components/data/form/form-field/form-field.styles.d.ts.map +1 -0
- package/components/data/form/form-footer/form-footer.component.d.ts +11 -0
- package/components/data/form/form-footer/form-footer.component.d.ts.map +1 -0
- package/components/data/form/form-footer/form-footer.component.js +1 -2
- package/components/data/form/form-footer/form-footer.component.js.map +1 -1
- package/components/data/form/form-footer/form-footer.props.d.ts +5 -0
- package/components/data/form/form-footer/form-footer.props.d.ts.map +1 -0
- package/components/data/form/form-footer/form-footer.styles.d.ts +4 -0
- package/components/data/form/form-footer/form-footer.styles.d.ts.map +1 -0
- package/components/data/form/form.component.d.ts +62 -0
- package/components/data/form/form.component.d.ts.map +1 -0
- package/components/data/form/form.props.d.ts +26 -0
- package/components/data/form/form.props.d.ts.map +1 -0
- package/components/data/form/form.styles.d.ts +13 -0
- package/components/data/form/form.styles.d.ts.map +1 -0
- package/components/data/list/list-action-template/list-action-template.component.d.ts +13 -0
- package/components/data/list/list-action-template/list-action-template.component.d.ts.map +1 -0
- package/components/data/list/list-action-template/list-action-template.props.d.ts +6 -0
- package/components/data/list/list-action-template/list-action-template.props.d.ts.map +1 -0
- package/components/data/list/list-action-template/list-action-template.styles.d.ts +4 -0
- package/components/data/list/list-action-template/list-action-template.styles.d.ts.map +1 -0
- package/components/data/list/list-template/list-template.component.d.ts +11 -0
- package/components/data/list/list-template/list-template.component.d.ts.map +1 -0
- package/components/data/list/list-template/list-template.props.d.ts +6 -0
- package/components/data/list/list-template/list-template.props.d.ts.map +1 -0
- package/components/data/list/list-template/list-template.styles.d.ts +7 -0
- package/components/data/list/list-template/list-template.styles.d.ts.map +1 -0
- package/components/data/list/list.component.d.ts +60 -0
- package/components/data/list/list.component.d.ts.map +1 -0
- package/components/data/list/list.props.d.ts +45 -0
- package/components/data/list/list.props.d.ts.map +1 -0
- package/components/data/list/list.styles.d.ts +24 -0
- package/components/data/list/list.styles.d.ts.map +1 -0
- package/components/data/liveform/liveform.component.d.ts +15 -0
- package/components/data/liveform/liveform.component.d.ts.map +1 -0
- package/components/device/barcodescanner/barcodescanner.component.d.ts +15 -0
- package/components/device/barcodescanner/barcodescanner.component.d.ts.map +1 -0
- package/components/device/barcodescanner/barcodescanner.props.d.ts +14 -0
- package/components/device/barcodescanner/barcodescanner.props.d.ts.map +1 -0
- package/components/device/barcodescanner/barcodescanner.styles.d.ts +7 -0
- package/components/device/barcodescanner/barcodescanner.styles.d.ts.map +1 -0
- package/components/device/camera/camera.component.d.ts +16 -0
- package/components/device/camera/camera.component.d.ts.map +1 -0
- package/components/device/camera/camera.props.d.ts +20 -0
- package/components/device/camera/camera.props.d.ts.map +1 -0
- package/components/device/camera/camera.styles.d.ts +7 -0
- package/components/device/camera/camera.styles.d.ts.map +1 -0
- package/components/dialogs/alertdialog/alertdialog.component.d.ts +16 -0
- package/components/dialogs/alertdialog/alertdialog.component.d.ts.map +1 -0
- package/components/dialogs/alertdialog/alertdialog.props.d.ts +18 -0
- package/components/dialogs/alertdialog/alertdialog.props.d.ts.map +1 -0
- package/components/dialogs/alertdialog/alertdialog.styles.d.ts +15 -0
- package/components/dialogs/alertdialog/alertdialog.styles.d.ts.map +1 -0
- package/components/dialogs/confirmdialog/confirmdialog.component.d.ts +16 -0
- package/components/dialogs/confirmdialog/confirmdialog.component.d.ts.map +1 -0
- package/components/dialogs/confirmdialog/confirmdialog.props.d.ts +18 -0
- package/components/dialogs/confirmdialog/confirmdialog.props.d.ts.map +1 -0
- package/components/dialogs/confirmdialog/confirmdialog.styles.d.ts +16 -0
- package/components/dialogs/confirmdialog/confirmdialog.styles.d.ts.map +1 -0
- package/components/dialogs/dialog/dialog.component.d.ts +17 -0
- package/components/dialogs/dialog/dialog.component.d.ts.map +1 -0
- package/components/dialogs/dialog/dialog.props.d.ts +19 -0
- package/components/dialogs/dialog/dialog.props.d.ts.map +1 -0
- package/components/dialogs/dialog/dialog.styles.d.ts +12 -0
- package/components/dialogs/dialog/dialog.styles.d.ts.map +1 -0
- package/components/dialogs/dialogactions/dialogactions.component.d.ts +12 -0
- package/components/dialogs/dialogactions/dialogactions.component.d.ts.map +1 -0
- package/components/dialogs/dialogactions/dialogactions.props.d.ts +5 -0
- package/components/dialogs/dialogactions/dialogactions.props.d.ts.map +1 -0
- package/components/dialogs/dialogactions/dialogactions.styles.d.ts +4 -0
- package/components/dialogs/dialogactions/dialogactions.styles.d.ts.map +1 -0
- package/components/dialogs/dialogcontent/dialogcontent.component.d.ts +11 -0
- package/components/dialogs/dialogcontent/dialogcontent.component.d.ts.map +1 -0
- package/components/dialogs/dialogcontent/dialogcontent.props.d.ts +5 -0
- package/components/dialogs/dialogcontent/dialogcontent.props.d.ts.map +1 -0
- package/components/dialogs/dialogcontent/dialogcontent.styles.d.ts +4 -0
- package/components/dialogs/dialogcontent/dialogcontent.styles.d.ts.map +1 -0
- package/components/input/basedataset/basedataset.component.d.ts +28 -0
- package/components/input/basedataset/basedataset.component.d.ts.map +1 -0
- package/components/input/basedataset/basedataset.props.d.ts +28 -0
- package/components/input/basedataset/basedataset.props.d.ts.map +1 -0
- package/components/input/basedataset/basedataset.styles.d.ts +4 -0
- package/components/input/basedataset/basedataset.styles.d.ts.map +1 -0
- package/components/input/baseinput/baseinput.component.d.ts +33 -0
- package/components/input/baseinput/baseinput.component.d.ts.map +1 -0
- package/components/input/baseinput/baseinput.props.d.ts +26 -0
- package/components/input/baseinput/baseinput.props.d.ts.map +1 -0
- package/components/input/baseinput/baseinput.styles.d.ts +4 -0
- package/components/input/baseinput/baseinput.styles.d.ts.map +1 -0
- package/components/input/basenumber/basenumber.component.d.ts +58 -0
- package/components/input/basenumber/basenumber.component.d.ts.map +1 -0
- package/components/input/basenumber/basenumber.props.d.ts +23 -0
- package/components/input/basenumber/basenumber.props.d.ts.map +1 -0
- package/components/input/basenumber/basenumber.styles.d.ts +4 -0
- package/components/input/basenumber/basenumber.styles.d.ts.map +1 -0
- package/components/input/calendar/calendar.component.d.ts +23 -0
- package/components/input/calendar/calendar.component.d.ts.map +1 -0
- package/components/input/calendar/calendar.props.d.ts +8 -0
- package/components/input/calendar/calendar.props.d.ts.map +1 -0
- package/components/input/calendar/calendar.styles.d.ts +30 -0
- package/components/input/calendar/calendar.styles.d.ts.map +1 -0
- package/components/input/calendar/views/month-view.d.ts +55 -0
- package/components/input/calendar/views/month-view.d.ts.map +1 -0
- package/components/input/calendar/views/month-view.styles.d.ts +34 -0
- package/components/input/calendar/views/month-view.styles.d.ts.map +1 -0
- package/components/input/checkbox/checkbox.component.d.ts +20 -0
- package/components/input/checkbox/checkbox.component.d.ts.map +1 -0
- package/components/input/checkbox/checkbox.props.d.ts +12 -0
- package/components/input/checkbox/checkbox.props.d.ts.map +1 -0
- package/components/input/checkbox/checkbox.styles.d.ts +12 -0
- package/components/input/checkbox/checkbox.styles.d.ts.map +1 -0
- package/components/input/checkboxset/checkboxset.component.d.ts +22 -0
- package/components/input/checkboxset/checkboxset.component.d.ts.map +1 -0
- package/components/input/checkboxset/checkboxset.props.d.ts +16 -0
- package/components/input/checkboxset/checkboxset.props.d.ts.map +1 -0
- package/components/input/checkboxset/checkboxset.styles.d.ts +14 -0
- package/components/input/checkboxset/checkboxset.styles.d.ts.map +1 -0
- package/components/input/chips/chips.component.d.ts +44 -0
- package/components/input/chips/chips.component.d.ts.map +1 -0
- package/components/input/chips/chips.component.js +2 -2
- package/components/input/chips/chips.component.js.map +1 -1
- package/components/input/chips/chips.props.d.ts +23 -0
- package/components/input/chips/chips.props.d.ts.map +1 -0
- package/components/input/chips/chips.styles.d.ts +35 -0
- package/components/input/chips/chips.styles.d.ts.map +1 -0
- package/components/input/chips/chips.styles.js +0 -1
- package/components/input/chips/chips.styles.js.map +1 -1
- package/components/input/composite/composite.component.d.ts +11 -0
- package/components/input/composite/composite.component.d.ts.map +1 -0
- package/components/input/composite/composite.props.d.ts +6 -0
- package/components/input/composite/composite.props.d.ts.map +1 -0
- package/components/input/composite/composite.styles.d.ts +4 -0
- package/components/input/composite/composite.styles.d.ts.map +1 -0
- package/components/input/currency/currency.component.d.ts +15 -0
- package/components/input/currency/currency.component.d.ts.map +1 -0
- package/components/input/currency/currency.component.js +1 -3
- package/components/input/currency/currency.component.js.map +1 -1
- package/components/input/currency/currency.props.d.ts +7 -0
- package/components/input/currency/currency.props.d.ts.map +1 -0
- package/components/input/currency/currency.styles.d.ts +18 -0
- package/components/input/currency/currency.styles.d.ts.map +1 -0
- package/components/input/epoch/base-datetime.component.d.ts +50 -0
- package/components/input/epoch/base-datetime.component.d.ts.map +1 -0
- package/components/input/epoch/base-datetime.component.js +89 -91
- package/components/input/epoch/base-datetime.component.js.map +1 -1
- package/components/input/epoch/date/date.component.d.ts +9 -0
- package/components/input/epoch/date/date.component.d.ts.map +1 -0
- package/components/input/epoch/date/date.props.d.ts +5 -0
- package/components/input/epoch/date/date.props.d.ts.map +1 -0
- package/components/input/epoch/date/date.styles.d.ts +4 -0
- package/components/input/epoch/date/date.styles.d.ts.map +1 -0
- package/components/input/epoch/date-picker.component.d.ts +28 -0
- package/components/input/epoch/date-picker.component.d.ts.map +1 -0
- package/components/input/epoch/datetime/datetime.component.d.ts +9 -0
- package/components/input/epoch/datetime/datetime.component.d.ts.map +1 -0
- package/components/input/epoch/datetime/datetime.props.d.ts +31 -0
- package/components/input/epoch/datetime/datetime.props.d.ts.map +1 -0
- package/components/input/epoch/datetime/datetime.styles.d.ts +24 -0
- package/components/input/epoch/datetime/datetime.styles.d.ts.map +1 -0
- package/components/input/epoch/datetime/datetime.styles.js +3 -2
- package/components/input/epoch/datetime/datetime.styles.js.map +1 -1
- package/components/input/epoch/time/time.component.d.ts +11 -0
- package/components/input/epoch/time/time.component.d.ts.map +1 -0
- package/components/input/epoch/time/time.props.d.ts +6 -0
- package/components/input/epoch/time/time.props.d.ts.map +1 -0
- package/components/input/epoch/time/time.styles.d.ts +4 -0
- package/components/input/epoch/time/time.styles.d.ts.map +1 -0
- package/components/input/epoch/wheel-date-picker.component.d.ts +42 -0
- package/components/input/epoch/wheel-date-picker.component.d.ts.map +1 -0
- package/components/input/epoch/wheel-time-picker.component.d.ts +22 -0
- package/components/input/epoch/wheel-time-picker.component.d.ts.map +1 -0
- package/components/input/epoch/wheelpicker/wheelpicker.component.d.ts +18 -0
- package/components/input/epoch/wheelpicker/wheelpicker.component.d.ts.map +1 -0
- package/components/input/epoch/wheelpicker/wheelpicker.props.d.ts +10 -0
- package/components/input/epoch/wheelpicker/wheelpicker.props.d.ts.map +1 -0
- package/components/input/epoch/wheelpicker/wheelpicker.styles.d.ts +12 -0
- package/components/input/epoch/wheelpicker/wheelpicker.styles.d.ts.map +1 -0
- package/components/input/epoch/wheelpickermodal/date/date-picker-modal.component.d.ts +13 -0
- package/components/input/epoch/wheelpickermodal/date/date-picker-modal.component.d.ts.map +1 -0
- package/components/input/epoch/wheelpickermodal/date/date-picker-modal.props.d.ts +14 -0
- package/components/input/epoch/wheelpickermodal/date/date-picker-modal.props.d.ts.map +1 -0
- package/components/input/epoch/wheelpickermodal/styles/datetime-picker-modal.styles.d.ts +12 -0
- package/components/input/epoch/wheelpickermodal/styles/datetime-picker-modal.styles.d.ts.map +1 -0
- package/components/input/epoch/wheelpickermodal/time/time-picker-modal.component.d.ts +13 -0
- package/components/input/epoch/wheelpickermodal/time/time-picker-modal.component.d.ts.map +1 -0
- package/components/input/epoch/wheelpickermodal/time/time-picker-modal.props.d.ts +13 -0
- package/components/input/epoch/wheelpickermodal/time/time-picker-modal.props.d.ts.map +1 -0
- package/components/input/fileupload/fileupload.component.d.ts +21 -0
- package/components/input/fileupload/fileupload.component.d.ts.map +1 -0
- package/components/input/fileupload/fileupload.props.d.ts +14 -0
- package/components/input/fileupload/fileupload.props.d.ts.map +1 -0
- package/components/input/fileupload/fileupload.styles.d.ts +7 -0
- package/components/input/fileupload/fileupload.styles.d.ts.map +1 -0
- package/components/input/number/number.component.d.ts +14 -0
- package/components/input/number/number.component.d.ts.map +1 -0
- package/components/input/number/number.component.js +1 -2
- package/components/input/number/number.component.js.map +1 -1
- package/components/input/number/number.props.d.ts +7 -0
- package/components/input/number/number.props.d.ts.map +1 -0
- package/components/input/number/number.styles.d.ts +14 -0
- package/components/input/number/number.styles.d.ts.map +1 -0
- package/components/input/radioset/radioset.component.d.ts +19 -0
- package/components/input/radioset/radioset.component.d.ts.map +1 -0
- package/components/input/radioset/radioset.props.d.ts +15 -0
- package/components/input/radioset/radioset.props.d.ts.map +1 -0
- package/components/input/radioset/radioset.styles.d.ts +16 -0
- package/components/input/radioset/radioset.styles.d.ts.map +1 -0
- package/components/input/rating/rating.component.d.ts +19 -0
- package/components/input/rating/rating.component.d.ts.map +1 -0
- package/components/input/rating/rating.props.d.ts +20 -0
- package/components/input/rating/rating.props.d.ts.map +1 -0
- package/components/input/rating/rating.styles.d.ts +8 -0
- package/components/input/rating/rating.styles.d.ts.map +1 -0
- package/components/input/select/select.component.d.ts +37 -0
- package/components/input/select/select.component.d.ts.map +1 -0
- package/components/input/select/select.component.js +35 -76
- package/components/input/select/select.component.js.map +1 -1
- package/components/input/select/select.props.d.ts +6 -0
- package/components/input/select/select.props.d.ts.map +1 -0
- package/components/input/select/select.styles.d.ts +25 -0
- package/components/input/select/select.styles.d.ts.map +1 -0
- package/components/input/slider/slider.component.d.ts +55 -0
- package/components/input/slider/slider.component.d.ts.map +1 -0
- package/components/input/slider/slider.props.d.ts +18 -0
- package/components/input/slider/slider.props.d.ts.map +1 -0
- package/components/input/slider/slider.styles.d.ts +24 -0
- package/components/input/slider/slider.styles.d.ts.map +1 -0
- package/components/input/switch/switch.component.d.ts +15 -0
- package/components/input/switch/switch.component.d.ts.map +1 -0
- package/components/input/switch/switch.props.d.ts +7 -0
- package/components/input/switch/switch.props.d.ts.map +1 -0
- package/components/input/switch/switch.styles.d.ts +17 -0
- package/components/input/switch/switch.styles.d.ts.map +1 -0
- package/components/input/text/text.component.d.ts +13 -0
- package/components/input/text/text.component.d.ts.map +1 -0
- package/components/input/text/text.component.js +1 -2
- package/components/input/text/text.component.js.map +1 -1
- package/components/input/text/text.props.d.ts +11 -0
- package/components/input/text/text.props.d.ts.map +1 -0
- package/components/input/text/text.styles.d.ts +13 -0
- package/components/input/text/text.styles.d.ts.map +1 -0
- package/components/input/textarea/textarea.component.d.ts +13 -0
- package/components/input/textarea/textarea.component.d.ts.map +1 -0
- package/components/input/textarea/textarea.component.js +1 -2
- package/components/input/textarea/textarea.component.js.map +1 -1
- package/components/input/textarea/textarea.props.d.ts +9 -0
- package/components/input/textarea/textarea.props.d.ts.map +1 -0
- package/components/input/textarea/textarea.styles.d.ts +14 -0
- package/components/input/textarea/textarea.styles.d.ts.map +1 -0
- package/components/input/toggle/toggle.component.d.ts +25 -0
- package/components/input/toggle/toggle.component.d.ts.map +1 -0
- package/components/input/toggle/toggle.component.js +4 -12
- package/components/input/toggle/toggle.component.js.map +1 -1
- package/components/input/toggle/toggle.props.d.ts +20 -0
- package/components/input/toggle/toggle.props.d.ts.map +1 -0
- package/components/input/toggle/toggle.props.js +0 -5
- package/components/input/toggle/toggle.props.js.map +1 -1
- package/components/input/toggle/toggle.styles.d.ts +12 -0
- package/components/input/toggle/toggle.styles.d.ts.map +1 -0
- package/components/navigation/appnavbar/appnavbar.component.d.ts +18 -0
- package/components/navigation/appnavbar/appnavbar.component.d.ts.map +1 -0
- package/components/navigation/appnavbar/appnavbar.props.d.ts +16 -0
- package/components/navigation/appnavbar/appnavbar.props.d.ts.map +1 -0
- package/components/navigation/appnavbar/appnavbar.styles.d.ts +17 -0
- package/components/navigation/appnavbar/appnavbar.styles.d.ts.map +1 -0
- package/components/navigation/basenav/basenav.component.d.ts +24 -0
- package/components/navigation/basenav/basenav.component.d.ts.map +1 -0
- package/components/navigation/basenav/basenav.props.d.ts +12 -0
- package/components/navigation/basenav/basenav.props.d.ts.map +1 -0
- package/components/navigation/basenav/basenav.styles.d.ts +4 -0
- package/components/navigation/basenav/basenav.styles.d.ts.map +1 -0
- package/components/navigation/menu/menu.component.d.ts +14 -0
- package/components/navigation/menu/menu.component.d.ts.map +1 -0
- package/components/navigation/menu/menu.props.d.ts +8 -0
- package/components/navigation/menu/menu.props.d.ts.map +1 -0
- package/components/navigation/menu/menu.styles.d.ts +9 -0
- package/components/navigation/menu/menu.styles.d.ts.map +1 -0
- package/components/navigation/navbar/navbar.component.d.ts +18 -0
- package/components/navigation/navbar/navbar.component.d.ts.map +1 -0
- package/components/navigation/navbar/navbar.props.d.ts +12 -0
- package/components/navigation/navbar/navbar.props.d.ts.map +1 -0
- package/components/navigation/navbar/navbar.styles.d.ts +10 -0
- package/components/navigation/navbar/navbar.styles.d.ts.map +1 -0
- package/components/navigation/navitem/navitem.component.d.ts +15 -0
- package/components/navigation/navitem/navitem.component.d.ts.map +1 -0
- package/components/navigation/navitem/navitem.props.d.ts +16 -0
- package/components/navigation/navitem/navitem.props.d.ts.map +1 -0
- package/components/navigation/navitem/navitem.styles.d.ts +11 -0
- package/components/navigation/navitem/navitem.styles.d.ts.map +1 -0
- package/components/navigation/popover/popover.component.d.ts +36 -0
- package/components/navigation/popover/popover.component.d.ts.map +1 -0
- package/components/navigation/popover/popover.component.js +1 -5
- package/components/navigation/popover/popover.component.js.map +1 -1
- package/components/navigation/popover/popover.props.d.ts +28 -0
- package/components/navigation/popover/popover.props.d.ts.map +1 -0
- package/components/navigation/popover/popover.styles.d.ts +16 -0
- package/components/navigation/popover/popover.styles.d.ts.map +1 -0
- package/components/page/content/content.component.d.ts +11 -0
- package/components/page/content/content.component.d.ts.map +1 -0
- package/components/page/content/content.props.d.ts +5 -0
- package/components/page/content/content.props.d.ts.map +1 -0
- package/components/page/content/content.styles.d.ts +4 -0
- package/components/page/content/content.styles.d.ts.map +1 -0
- package/components/page/left-panel/left-panel.component.d.ts +15 -0
- package/components/page/left-panel/left-panel.component.d.ts.map +1 -0
- package/components/page/left-panel/left-panel.props.d.ts +6 -0
- package/components/page/left-panel/left-panel.props.d.ts.map +1 -0
- package/components/page/left-panel/left-panel.styles.d.ts +4 -0
- package/components/page/left-panel/left-panel.styles.d.ts.map +1 -0
- package/components/page/page-content/page-content.component.d.ts +26 -0
- package/components/page/page-content/page-content.component.d.ts.map +1 -0
- package/components/page/page-content/page-content.props.d.ts +12 -0
- package/components/page/page-content/page-content.props.d.ts.map +1 -0
- package/components/page/page-content/page-content.styles.d.ts +7 -0
- package/components/page/page-content/page-content.styles.d.ts.map +1 -0
- package/components/page/page.component.d.ts +16 -0
- package/components/page/page.component.d.ts.map +1 -0
- package/components/page/page.props.d.ts +9 -0
- package/components/page/page.props.d.ts.map +1 -0
- package/components/page/page.styles.d.ts +7 -0
- package/components/page/page.styles.d.ts.map +1 -0
- package/components/page/partial/partial.component.d.ts +12 -0
- package/components/page/partial/partial.component.d.ts.map +1 -0
- package/components/page/partial/partial.props.d.ts +5 -0
- package/components/page/partial/partial.props.d.ts.map +1 -0
- package/components/page/partial/partial.styles.d.ts +7 -0
- package/components/page/partial/partial.styles.d.ts.map +1 -0
- package/components/page/partial-container/partial-container.component.d.ts +11 -0
- package/components/page/partial-container/partial-container.component.d.ts.map +1 -0
- package/components/page/partial-container/partial-container.props.d.ts +7 -0
- package/components/page/partial-container/partial-container.props.d.ts.map +1 -0
- package/components/page/partial-container/partial-container.styles.d.ts +4 -0
- package/components/page/partial-container/partial-container.styles.d.ts.map +1 -0
- package/components/page/tabbar/curve.d.ts +2 -0
- package/components/page/tabbar/curve.d.ts.map +1 -0
- package/components/page/tabbar/tabbar.component.d.ts +42 -0
- package/components/page/tabbar/tabbar.component.d.ts.map +1 -0
- package/components/page/tabbar/tabbar.props.d.ts +12 -0
- package/components/page/tabbar/tabbar.props.d.ts.map +1 -0
- package/components/page/tabbar/tabbar.styles.d.ts +20 -0
- package/components/page/tabbar/tabbar.styles.d.ts.map +1 -0
- package/components/prefab/prefab-container.component.d.ts +12 -0
- package/components/prefab/prefab-container.component.d.ts.map +1 -0
- package/components/prefab/prefab-container.props.d.ts +5 -0
- package/components/prefab/prefab-container.props.d.ts.map +1 -0
- package/components/prefab/prefab-container.styles.d.ts +7 -0
- package/components/prefab/prefab-container.styles.d.ts.map +1 -0
- package/core/AppConfig.d.ts +46 -0
- package/core/AppConfig.d.ts.map +1 -0
- package/core/accessibility.d.ts +61 -0
- package/core/accessibility.d.ts.map +1 -0
- package/core/asset.provider.d.ts +4 -0
- package/core/asset.provider.d.ts.map +1 -0
- package/core/base.component.d.ts +191 -0
- package/core/base.component.d.ts.map +1 -0
- package/core/base.component.js +7 -10
- package/core/base.component.js.map +1 -1
- package/core/components/error-fallback/error-fallback.component.d.ts +4 -0
- package/core/components/error-fallback/error-fallback.component.d.ts.map +1 -0
- package/core/components/error-fallback/error-fallback.component.js +18 -50
- package/core/components/error-fallback/error-fallback.component.js.map +1 -1
- package/core/components/error-fallback/error-fallback.styles.d.ts +29 -0
- package/core/components/error-fallback/error-fallback.styles.d.ts.map +1 -0
- package/core/components/error-fallback/error-fallback.styles.js +1 -4
- package/core/components/error-fallback/error-fallback.styles.js.map +1 -1
- package/core/components/floatinglabel.component.d.ts +8 -0
- package/core/components/floatinglabel.component.d.ts.map +1 -0
- package/core/components/sticky-base.component.d.ts +31 -0
- package/core/components/sticky-base.component.d.ts.map +1 -0
- package/core/components/sticky-container.component.d.ts +14 -0
- package/core/components/sticky-container.component.d.ts.map +1 -0
- package/core/components/sticky-container.styles.d.ts +11 -0
- package/core/components/sticky-container.styles.d.ts.map +1 -0
- package/core/components/sticky-nav.component.d.ts +14 -0
- package/core/components/sticky-nav.component.d.ts.map +1 -0
- package/core/components/textinput.component.d.ts +17 -0
- package/core/components/textinput.component.d.ts.map +1 -0
- package/core/constant.service.d.ts +18 -0
- package/core/constant.service.d.ts.map +1 -0
- package/core/constants/currency-constants.d.ts +1073 -0
- package/core/constants/currency-constants.d.ts.map +1 -0
- package/core/currency-constants.d.ts +2 -0
- package/core/currency-constants.d.ts.map +1 -0
- package/core/device/av-service.d.ts +13 -0
- package/core/device/av-service.d.ts.map +1 -0
- package/core/device/calendar-service.d.ts +25 -0
- package/core/device/calendar-service.d.ts.map +1 -0
- package/core/device/camera-service.d.ts +27 -0
- package/core/device/camera-service.d.ts.map +1 -0
- package/core/device/contacts-service.d.ts +17 -0
- package/core/device/contacts-service.d.ts.map +1 -0
- package/core/device/fileupload-service.d.ts +7 -0
- package/core/device/fileupload-service.d.ts.map +1 -0
- package/core/device/location-service.d.ts +17 -0
- package/core/device/location-service.d.ts.map +1 -0
- package/core/device/openfile-service.d.ts +52 -0
- package/core/device/openfile-service.d.ts.map +1 -0
- package/core/device/scan-service.d.ts +13 -0
- package/core/device/scan-service.d.ts.map +1 -0
- package/core/display.manager.d.ts +12 -0
- package/core/display.manager.d.ts.map +1 -0
- package/core/error-boundary.component.d.ts +21 -0
- package/core/error-boundary.component.d.ts.map +1 -0
- package/core/error-boundary.component.js +1 -17
- package/core/error-boundary.component.js.map +1 -1
- package/core/event-notifier.d.ts +14 -0
- package/core/event-notifier.d.ts.map +1 -0
- package/core/file-extension-types.d.ts +2 -0
- package/core/file-extension-types.d.ts.map +1 -0
- package/core/fixed-view.component.d.ts +33 -0
- package/core/fixed-view.component.d.ts.map +1 -0
- package/core/fixed-view.component.js +2 -19
- package/core/fixed-view.component.js.map +1 -1
- package/core/formatters.d.ts +28 -0
- package/core/formatters.d.ts.map +1 -0
- package/core/i18n.service.d.ts +6 -0
- package/core/i18n.service.d.ts.map +1 -0
- package/core/if.component.d.ts +12 -0
- package/core/if.component.d.ts.map +1 -0
- package/core/imageSizeEstimator.d.ts +14 -0
- package/core/imageSizeEstimator.d.ts.map +1 -0
- package/core/injector.d.ts +18 -0
- package/core/injector.d.ts.map +1 -0
- package/core/key.extractor.d.ts +7 -0
- package/core/key.extractor.d.ts.map +1 -0
- package/core/logger.d.ts +26 -0
- package/core/logger.d.ts.map +1 -0
- package/core/modal.service.d.ts +22 -0
- package/core/modal.service.d.ts.map +1 -0
- package/core/navigation.service.d.ts +32 -0
- package/core/navigation.service.d.ts.map +1 -0
- package/core/network.service.d.ts +114 -0
- package/core/network.service.d.ts.map +1 -0
- package/core/partial.service.d.ts +10 -0
- package/core/partial.service.d.ts.map +1 -0
- package/core/props.provider.d.ts +19 -0
- package/core/props.provider.d.ts.map +1 -0
- package/core/responsive.utils.d.ts +24 -0
- package/core/responsive.utils.d.ts.map +1 -0
- package/core/screen-capture-protection.service.d.ts +8 -0
- package/core/screen-capture-protection.service.d.ts.map +1 -0
- package/core/scroll-view.component.d.ts +19 -0
- package/core/scroll-view.component.d.ts.map +1 -0
- package/core/secure-storage.service.d.ts +10 -0
- package/core/secure-storage.service.d.ts.map +1 -0
- package/core/security.service.d.ts +13 -0
- package/core/security.service.d.ts.map +1 -0
- package/core/spinner.service.d.ts +13 -0
- package/core/spinner.service.d.ts.map +1 -0
- package/core/sticky-view.component.d.ts +21 -0
- package/core/sticky-view.component.d.ts.map +1 -0
- package/core/sticky-wrapper.d.ts +31 -0
- package/core/sticky-wrapper.d.ts.map +1 -0
- package/core/storage.service.d.ts +11 -0
- package/core/storage.service.d.ts.map +1 -0
- package/core/tappable.component.d.ts +40 -0
- package/core/tappable.component.d.ts.map +1 -0
- package/core/tappable.component.js +4 -7
- package/core/tappable.component.js.map +1 -1
- package/core/testid.provider.d.ts +4 -0
- package/core/testid.provider.d.ts.map +1 -0
- package/core/toast.service.d.ts +24 -0
- package/core/toast.service.d.ts.map +1 -0
- package/core/toast.service.js.map +1 -1
- package/core/ui-preferences.context.d.ts +11 -0
- package/core/ui-preferences.context.d.ts.map +1 -0
- package/core/utils.d.ts +167 -0
- package/core/utils.d.ts.map +1 -0
- package/core/viewport.d.ts +19 -0
- package/core/viewport.d.ts.map +1 -0
- package/core/wm-component-tree.d.ts +22 -0
- package/core/wm-component-tree.d.ts.map +1 -0
- package/gestures/carousel-swipe.animation.d.ts +56 -0
- package/gestures/carousel-swipe.animation.d.ts.map +1 -0
- package/gestures/swipe.animation.d.ts +51 -0
- package/gestures/swipe.animation.d.ts.map +1 -0
- package/index.d.ts +2 -0
- package/index.d.ts.map +1 -0
- package/package.json +2 -2
- package/runtime/App.d.ts +129 -0
- package/runtime/App.d.ts.map +1 -0
- package/runtime/App.js +13 -124
- package/runtime/App.js.map +1 -1
- package/runtime/App.navigator.d.ts +11 -0
- package/runtime/App.navigator.d.ts.map +1 -0
- package/runtime/base-customwidget.component.d.ts +24 -0
- package/runtime/base-customwidget.component.d.ts.map +1 -0
- package/runtime/base-fragment.component.d.ts +91 -0
- package/runtime/base-fragment.component.d.ts.map +1 -0
- package/runtime/base-page.component.d.ts +42 -0
- package/runtime/base-page.component.d.ts.map +1 -0
- package/runtime/base-page.component.js +2 -11
- package/runtime/base-page.component.js.map +1 -1
- package/runtime/base-partial.component.d.ts +29 -0
- package/runtime/base-partial.component.d.ts.map +1 -0
- package/runtime/base-prefab.component.d.ts +29 -0
- package/runtime/base-prefab.component.d.ts.map +1 -0
- package/runtime/lib-patch.d.ts +8 -0
- package/runtime/lib-patch.d.ts.map +1 -0
- package/runtime/memo.component.d.ts +20 -0
- package/runtime/memo.component.d.ts.map +1 -0
- package/runtime/navigator/drawer.navigator.d.ts +14 -0
- package/runtime/navigator/drawer.navigator.d.ts.map +1 -0
- package/runtime/navigator/drawer.navigator.js +0 -1
- package/runtime/navigator/drawer.navigator.js.map +1 -1
- package/runtime/navigator/stack.navigator.d.ts +8 -0
- package/runtime/navigator/stack.navigator.d.ts.map +1 -0
- package/runtime/platform.api.d.ts +13 -0
- package/runtime/platform.api.d.ts.map +1 -0
- package/runtime/services/app-display-manager.service.d.ts +16 -0
- package/runtime/services/app-display-manager.service.d.ts.map +1 -0
- package/runtime/services/app-i18n.service.d.ts +33 -0
- package/runtime/services/app-i18n.service.d.ts.map +1 -0
- package/runtime/services/app-modal.service.d.ts +19 -0
- package/runtime/services/app-modal.service.d.ts.map +1 -0
- package/runtime/services/app-security.service.d.ts +30 -0
- package/runtime/services/app-security.service.d.ts.map +1 -0
- package/runtime/services/app-spinner.service.d.ts +20 -0
- package/runtime/services/app-spinner.service.d.ts.map +1 -0
- package/runtime/services/app-toast.service.d.ts +13 -0
- package/runtime/services/app-toast.service.d.ts.map +1 -0
- package/runtime/services/device/calendar-service.d.ts +11 -0
- package/runtime/services/device/calendar-service.d.ts.map +1 -0
- package/runtime/services/device/camera-service.d.ts +63 -0
- package/runtime/services/device/camera-service.d.ts.map +1 -0
- package/runtime/services/device/camera-service.js +20 -31
- package/runtime/services/device/camera-service.js.map +1 -1
- package/runtime/services/device/contacts-service.d.ts +7 -0
- package/runtime/services/device/contacts-service.d.ts.map +1 -0
- package/runtime/services/device/location-service.d.ts +6 -0
- package/runtime/services/device/location-service.d.ts.map +1 -0
- package/runtime/services/device/permission-service.d.ts +7 -0
- package/runtime/services/device/permission-service.d.ts.map +1 -0
- package/runtime/services/device/permissions.d.ts +5 -0
- package/runtime/services/device/permissions.d.ts.map +1 -0
- package/runtime/services/device/scan-service.d.ts +19 -0
- package/runtime/services/device/scan-service.d.ts.map +1 -0
- package/runtime/services/partial.service.d.ts +12 -0
- package/runtime/services/partial.service.d.ts.map +1 -0
- package/runtime/services/webprocess.service.d.ts +10 -0
- package/runtime/services/webprocess.service.d.ts.map +1 -0
- package/runtime/watcher.d.ts +33 -0
- package/runtime/watcher.d.ts.map +1 -0
- package/styles/MediaQueryList.d.ts +6 -0
- package/styles/MediaQueryList.d.ts.map +1 -0
- package/styles/background.component.d.ts +57 -0
- package/styles/background.component.d.ts.map +1 -0
- package/styles/background.component.js +2 -2
- package/styles/background.component.js.map +1 -1
- package/styles/calc.d.ts +24 -0
- package/styles/calc.d.ts.map +1 -0
- package/styles/color-mix.d.ts +5 -0
- package/styles/color-mix.d.ts.map +1 -0
- package/styles/style-prop.validator.d.ts +4 -0
- package/styles/style-prop.validator.d.ts.map +1 -0
- package/styles/style-props.d.ts +49 -0
- package/styles/style-props.d.ts.map +1 -0
- package/styles/theme.d.ts +66 -0
- package/styles/theme.d.ts.map +1 -0
- package/styles/theme.js +11 -27
- package/styles/theme.js.map +1 -1
- package/styles/theme.variables.d.ts +379 -0
- package/styles/theme.variables.d.ts.map +1 -0
- package/styles/theme.variables.js +0 -2
- package/styles/theme.variables.js.map +1 -1
- package/variables/base-variable.d.ts +50 -0
- package/variables/base-variable.d.ts.map +1 -0
- package/variables/device/calendar/create-event.operation.d.ts +18 -0
- package/variables/device/calendar/create-event.operation.d.ts.map +1 -0
- package/variables/device/calendar/delete-event.operation.d.ts +14 -0
- package/variables/device/calendar/delete-event.operation.d.ts.map +1 -0
- package/variables/device/calendar/get-events.operation.d.ts +18 -0
- package/variables/device/calendar/get-events.operation.d.ts.map +1 -0
- package/variables/device/camera/capture-image.operation.d.ts +14 -0
- package/variables/device/camera/capture-image.operation.d.ts.map +1 -0
- package/variables/device/camera/capture-video.operation.d.ts +14 -0
- package/variables/device/camera/capture-video.operation.d.ts.map +1 -0
- package/variables/device/contacts/get-contacts.operation.d.ts +19 -0
- package/variables/device/contacts/get-contacts.operation.d.ts.map +1 -0
- package/variables/device/device/app-info.operation.d.ts +13 -0
- package/variables/device/device/app-info.operation.d.ts.map +1 -0
- package/variables/device/device/current-geo-position.operation.d.ts +31 -0
- package/variables/device/device/current-geo-position.operation.d.ts.map +1 -0
- package/variables/device/device/device-info.operation.d.ts +11 -0
- package/variables/device/device/device-info.operation.d.ts.map +1 -0
- package/variables/device/device/network-info.operation.d.ts +14 -0
- package/variables/device/device/network-info.operation.d.ts.map +1 -0
- package/variables/device/device/vibrate.operation.d.ts +8 -0
- package/variables/device/device/vibrate.operation.d.ts.map +1 -0
- package/variables/device/file/open-file.operation.d.ts +31 -0
- package/variables/device/file/open-file.operation.d.ts.map +1 -0
- package/variables/device/file/upload-file.operation.d.ts +23 -0
- package/variables/device/file/upload-file.operation.d.ts.map +1 -0
- package/variables/device/operation.provider.d.ts +15 -0
- package/variables/device/operation.provider.d.ts.map +1 -0
- package/variables/device/scan/scan.operation.d.ts +21 -0
- package/variables/device/scan/scan.operation.d.ts.map +1 -0
- package/variables/device-variable.d.ts +10 -0
- package/variables/device-variable.d.ts.map +1 -0
- package/variables/http.service.d.ts +11 -0
- package/variables/http.service.d.ts.map +1 -0
- package/variables/live-variable.d.ts +44 -0
- package/variables/live-variable.d.ts.map +1 -0
- package/variables/model-variable.d.ts +10 -0
- package/variables/model-variable.d.ts.map +1 -0
- package/variables/service-variable.d.ts +33 -0
- package/variables/service-variable.d.ts.map +1 -0
- package/variables/utils/dataset-util.d.ts +32 -0
- package/variables/utils/dataset-util.d.ts.map +1 -0
- package/variables/utils/inflight-queue.d.ts +36 -0
- package/variables/utils/inflight-queue.d.ts.map +1 -0
- package/variables/utils/variable.constants.d.ts +22 -0
- package/variables/utils/variable.constants.d.ts.map +1 -0
- package/variables/utils/variable.utils.d.ts +21 -0
- package/variables/utils/variable.utils.d.ts.map +1 -0
- package/core/advanced-promise-rejection-tracker.js +0 -208
- package/core/advanced-promise-rejection-tracker.js.map +0 -1
- package/core/global-error-handler.service.js +0 -103
- package/core/global-error-handler.service.js.map +0 -1
- package/npm-shrinkwrap.json +0 -26091
- package/package-lock.json +0 -26091
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","LinearGradient","ExpoLinearGradient","Image","StyleSheet","View","isEmpty","isNil","isNumber","imageSizeEstimator","AssetConsumer","isFullPathUrl","IMAGE_URL_REGEX","LINEAT_GRADIENT_REGEX","DIMENSION_REGEX","BACKGROUND_POSITION_REGEX","BACKGROUND_SIZE_REGEX","ASSET_CACHE","Component","constructor","props","state","parse","val","value","splits","split","map","v","trim","angle","locations","endsWith","parseInt","shift","delta","Math","round","tan","PI","abs","end","x","y","start","colors","s","_s$matchAll$next","p","matchAll","next","push","parseFloat","replace","componentDidUpdate","prevProps","prevState","snapshot","setState","render","_this$props$size","_this$props$style","createElement","style","borderWidth","overflow","absoluteFill","middle","flexDirection","justifyContent","alignItems","testID","size","width","position","borderRadius","children","BackgroundComponent","_defineProperty","imageSrc","image","undefined","caluculateSize","height","resolveAssetSource","naturalImageWidth","naturalImageHeight","uri","getSize","getDimension","dim","getPosition","result","top","bottom","left","right","getPositionAndSize","_this$props$size2","_this$getGradient","resizeMode","getGradient","length","repeat","renderLinearGradient","data","psresult","Fragment","setImage","componentDidMount","setTimeout","_this$props$image","_source","source","startsWith","_this$props$image2","loadAsset","_this$props$image3","renderImage","_psresult$position","_psresult$position2","loadImage","minWidth","minHeight","_gradientData$value","gradientData"],"sources":["background.component.tsx"],"sourcesContent":["import * as React from 'react';\nimport { LinearGradient as ExpoLinearGradient, LinearGradientPoint } from 'expo-linear-gradient';\nimport { DimensionValue, Image, StyleSheet, View, ViewStyle } from 'react-native';\nimport { isEmpty, isNil, isNumber, isString } from 'lodash-es';\nimport imageSizeEstimator from '@wavemaker/app-rn-runtime/core/imageSizeEstimator';\nimport { AssetConsumer } from '@wavemaker/app-rn-runtime/core/asset.provider';\nimport { isFullPathUrl } from '@wavemaker/app-rn-runtime/core/utils';\n\nexport interface LinearGradientProps {\n value: string;\n children: any;\n style?: ViewStyle;\n size?: ViewStyle;\n position?: ViewStyle;\n middle?: boolean;\n}\n\nexport interface LinearGradientState {\n colors: string[];\n locations: number[];\n start: LinearGradientPoint;\n end: LinearGradientPoint;\n}\n\nconst IMAGE_URL_REGEX = /url\\(['|\"]?(.+)['|\"]?\\)$/gi;\nconst LINEAT_GRADIENT_REGEX = /linear-gradient\\((.+)\\)$/gi;\nconst DIMENSION_REGEX = /([0-9%]+)[a-z]*/g;\nconst BACKGROUND_POSITION_REGEX = /([0-9%]+)[a-z]*\\s*([0-9%]+)[a-z]*/g;\nconst BACKGROUND_SIZE_REGEX = /([0-9%]+)[a-z]*\\s*([0-9%]+)[a-z]*/g;\n\nconst ASSET_CACHE = {} as any;\n\nexport class LinearGradient extends React.Component<LinearGradientProps, LinearGradientState> {\n\n constructor(props: LinearGradientProps) {\n super(props);\n this.state = this.parse();\n }\n\n parse(val = this.props.value) {\n let state = {} as LinearGradientState;\n const splits = val.split(',').map(v => v.trim());\n let angle = 0;\n const locations: LinearGradientPoint[] = [];\n if (splits[0].endsWith('deg')) {\n angle = (parseInt(splits[0].split('deg')[0]))%360;\n angle = angle < 0 ? (360 + angle) : angle;\n splits.shift();\n }\n angle += 90;\n const delta = Math.round(Math.tan((angle * Math.PI) / 180) * 100)/100;\n if (Math.abs(delta) > 1) {\n state = {\n end: {\n x: -0.5 / delta + 0.5,\n y: 0\n },\n start: {\n x: 0.5 / delta + 0.5,\n y: 1\n }\n } as LinearGradientState;\n } else {\n state = {\n start: {\n x: 0,\n y: -0.5 * delta + 0.5\n },\n end: {\n x: 1,\n y: 0.5 * delta + 0.5\n }\n } as LinearGradientState;\n }\n if (angle >= 270 && angle <= 450) {\n state = {\n start : state.end,\n end: state.start\n } as LinearGradientState;\n }\n state.colors = [];\n state.locations = [];\n splits.map(s => {\n const p = s.matchAll(/\\s*([0-9.]+)%/g).next()?.value;\n if (p) {\n state.locations.push(parseFloat(p[1]) / 100);\n state.colors.push(s.replace(p[0], ''));\n } else {\n // state.locations.push(null as any);\n state.colors.push(s);\n }\n });\n return state;\n }\n\n componentDidUpdate(prevProps: Readonly<LinearGradientProps>, prevState: Readonly<{}>, snapshot?: any): void {\n if (prevProps.value !== this.props.value) {\n this.setState(this.parse());\n }\n }\n \n\n public render() {\n return (\n <View style={[{borderWidth: 0, overflow: 'hidden'}, StyleSheet.absoluteFill, this.props.style]}>\n <View style={[\n StyleSheet.absoluteFill, this.props.middle ? {\n flexDirection: 'row',\n justifyContent: 'center',\n alignItems: 'center'\n } : null]}>\n <ExpoLinearGradient testID=\"wm-expo-linear-gradient\"\n colors={this.state.colors as any}\n locations={this.state.locations as any}\n start={this.state.start}\n end={this.state.end}\n style={[\n this.props.size?.width ? this.props.size : StyleSheet.absoluteFill,\n this.props.position,\n {position: 'absolute', borderRadius: this.props.style?.borderRadius}\n ]}\n />\n </View>\n {this.props.children}\n </View>\n );\n }\n}\n\nexport interface BackgroundProps {\n image?: string;\n position?: string;\n children?: any;\n resizeMode?: string;\n repeat?: string;\n style?: ViewStyle;\n size: string;\n}\n\nexport interface BackgroundState {\n imageSrc: any;\n naturalImageWidth: number,\n naturalImageHeight: number\n}\n\nexport class BackgroundComponent extends React.Component<BackgroundProps, BackgroundState> {\n\n private loadAsset: (path: string) => number | string = null as any;\n\n constructor(props: BackgroundProps) {\n super(props);\n this.state = {\n imageSrc : this.props.image ? ASSET_CACHE[this.props.image] : undefined\n } as BackgroundState;\n }\n\n public caluculateSize(imageSrc: any) {\n if (isNumber(imageSrc)) {\n const {width, height} = Image.resolveAssetSource(imageSrc);\n this.setState({\n naturalImageWidth: width,\n naturalImageHeight: height\n } as BackgroundState);\n } else if (!isNil(imageSrc?.uri)) {\n imageSizeEstimator.getSize(imageSrc.uri, (width: number, height: number) => {\n this.setState({\n naturalImageWidth: width,\n naturalImageHeight: height\n } as BackgroundState);\n });\n }\n }\n\n getDimension(dim: string) {\n if (dim) {\n const value = dim.matchAll(DIMENSION_REGEX).next().value!;\n if (value[1]) {\n return value[1].endsWith('%') ? value[1] : parseInt(value[1]);\n }\n }\n return null;\n }\n\n public getPosition() {\n const result = {} as ViewStyle;\n if (!this.props.position) {\n return result;\n }\n const position = this.props.position.split(' ').map(s => s.trim());\n if (position[0] === 'center') {\n result.alignItems = 'center';\n } else if (position[0] === 'top') {\n result.top = 0;\n } else if (position[0] === 'bottom') {\n result.bottom = 0;\n } else {\n result.top = this.getDimension(position[0]) as DimensionValue;\n }\n if (position[1] === 'center') {\n result.justifyContent = 'center';\n } else if (position[1] === 'left') {\n result.left = 0;\n } else if (position[1] === 'bottom') {\n result.right = 0;\n } else {\n result.left = this.getDimension(position[1]) as DimensionValue;\n }\n return result;\n }\n\n public getPositionAndSize() {\n const result: {\n resizeMode? : string,\n position?: ViewStyle,\n size?: ViewStyle\n } = {} as any;\n if (this.props.resizeMode) {\n result.resizeMode = this.props.resizeMode;\n return result;\n } else if (this.props.position === 'center') {\n result.resizeMode = 'center';\n result.position = {\n justifyContent: 'center',\n alignItems: 'center'\n };\n } else if (this.props.size === 'contain' || this.props.size === 'cover') {\n result.resizeMode = this.props.size;\n return result;\n }\n const size = this.props.size?.matchAll(BACKGROUND_SIZE_REGEX).next().value;\n result.size = {};\n if (size) {\n result.size.width = (size[1].endsWith('%') ? size[1] : parseInt(size[1])) as DimensionValue;\n result.size.height = (size[2].endsWith('%') ? size[2] : parseInt(size[2])) as DimensionValue\n }\n if (!result.resizeMode && this.props.position) {\n result.position = this.getPosition();\n }\n if (!this.getGradient()?.value?.length) {\n if (this.props.repeat === 'no-repeat') {\n result.size.width = result.size.width || this.state.naturalImageWidth; \n result.size.height = result.size.height || this.state.naturalImageHeight; \n } else if (this.props.repeat === 'repeat-x') {\n result.resizeMode = 'repeat';\n result.size.width = result.size.width || '100%'; \n result.size.height = result.size.height || this.state.naturalImageHeight; \n } else if (this.props.repeat === 'repeat-y') {\n result.resizeMode = 'repeat';\n result.size.width = result.size.width || this.state.naturalImageWidth; \n result.size.height = result.size.height || '100%'; \n } else {\n result.resizeMode = 'repeat';\n }\n }\n return result;\n }\n\n public renderLinearGradient(data: string) {\n const psresult = this.getPositionAndSize();\n return (\n <LinearGradient\n value={data || ''}\n style={this.props.style}\n size={psresult.size}\n position={psresult.position}\n middle={psresult.resizeMode === 'center'}> \n <></> \n </LinearGradient>\n );\n }\n\n componentDidUpdate(prevProps: Readonly<BackgroundProps>, prevState: Readonly<{}>, snapshot?: any): void {\n if (this.props.image && prevProps.image !== this.props.image) {\n this.setImage();\n }\n }\n\n componentDidMount(): void {\n setTimeout(() => this.setImage(), 100);\n }\n\n setImage() {\n let source = this.props.image?.trim() as any;\n if (!source) {\n return;\n }\n if (source?.startsWith('url')) {\n source = this.props.image?.matchAll(IMAGE_URL_REGEX)?.next()?.value?.[1];\n }\n if (this.loadAsset) {\n source = this.loadAsset(source);\n }\n if (isFullPathUrl(source)) {\n source = {\n uri: source\n };\n }\n this.caluculateSize(source);\n this.setState({\n imageSrc: source\n } as BackgroundState);\n if (this.props.image) {\n ASSET_CACHE[this.props.image] = source;\n }\n }\n\n public getGradient() {\n return this.props.image?.trim().matchAll(LINEAT_GRADIENT_REGEX).next();\n }\n\n public renderImage() {\n const psresult = this.getPositionAndSize();\n return (\n <AssetConsumer>\n {(loadAsset) => {\n const loadImage = this.loadAsset !== loadAsset;\n this.loadAsset = loadAsset;\n if (loadImage) {\n setTimeout(() => this.setImage(), 10);\n }\n return (<View style={[{borderWidth: 0, overflow: 'hidden'}, StyleSheet.absoluteFill, this.props.style]}>\n <View style={[\n StyleSheet.absoluteFill, {\n flexDirection: 'row',\n justifyContent: psresult.position?.justifyContent,\n alignItems: psresult.position?.alignItems\n }]}>\n <View style={[\n { position: 'absolute', overflow: 'hidden' },\n psresult.position,\n isEmpty(psresult.size) ? StyleSheet.absoluteFill : psresult.size\n ]}>\n <Image\n source={this.state.imageSrc}\n resizeMode={psresult.resizeMode as any || 'cover'}\n style={[\n { \n width: '100%',\n height: '100%'\n }, \n !isEmpty(psresult.size)\n || (psresult.resizeMode === 'cover'\n || psresult.resizeMode === 'contain') ? null : {\n minWidth: this.state.naturalImageWidth,\n minHeight: this.state.naturalImageHeight\n }\n ]}/> \n </View>\n </View>\n </View>);\n }}\n </AssetConsumer>\n );\n }\n\n public render() {\n const gradientData = this.getGradient();\n if (gradientData?.value?.length) {\n return this.renderLinearGradient(gradientData.value[1]);\n } else if (this.props.image && this.state.imageSrc) {\n return this.renderImage();\n }\n return null;\n }\n}\n"],"mappings":";;;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,cAAc,IAAIC,kBAAkB,QAA6B,sBAAsB;AAChG,SAAyBC,KAAK,EAAEC,UAAU,EAAEC,IAAI,QAAmB,cAAc;AACjF,SAASC,OAAO,EAAEC,KAAK,EAAEC,QAAQ,QAAkB,WAAW;AAC9D,OAAOC,kBAAkB,MAAM,mDAAmD;AAClF,SAASC,aAAa,QAAQ,+CAA+C;AAC7E,SAASC,aAAa,QAAQ,sCAAsC;AAkBpE,MAAMC,eAAe,GAAG,4BAA4B;AACpD,MAAMC,qBAAqB,GAAG,4BAA4B;AAC1D,MAAMC,eAAe,GAAG,kBAAkB;AAC1C,MAAMC,yBAAyB,GAAG,oCAAoC;AACtE,MAAMC,qBAAqB,GAAG,oCAAoC;AAElE,MAAMC,WAAW,GAAG,CAAC,CAAQ;AAE7B,OAAO,MAAMhB,cAAc,SAASD,KAAK,CAACkB,SAAS,CAA2C;EAE1FC,WAAWA,CAACC,KAA0B,EAAE;IACpC,KAAK,CAACA,KAAK,CAAC;IACZ,IAAI,CAACC,KAAK,GAAG,IAAI,CAACC,KAAK,CAAC,CAAC;EAC7B;EAEAA,KAAKA,CAACC,GAAG,GAAG,IAAI,CAACH,KAAK,CAACI,KAAK,EAAE;IAC1B,IAAIH,KAAK,GAAG,CAAC,CAAwB;IACrC,MAAMI,MAAM,GAAGF,GAAG,CAACG,KAAK,CAAC,GAAG,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E,CACH;UACIU,KAAK,EAAE,MAAM;UACbU,MAAM,EAAE;QACZ,CAAC,EACD,CAAC7E,OAAO,CAACoG,QAAQ,CAAClC,IAAI,CAAC,IACfkC,QAAQ,CAACN,UAAU,KAAK,OAAO,IAC5BM,QAAQ,CAACN,UAAU,KAAM,SAAU,GAAG,IAAI,GAAG;UACpDsB,QAAQ,EAAE,IAAI,CAACrG,KAAK,CAACgE,iBAAiB;UACtCsC,SAAS,EAAE,IAAI,CAACtG,KAAK,CAACiE;QAC1B,CAAC;MACH,CAAC,CACL,CACJ,CACJ,CAAC;IACP,CACW,CAAC;EAEpB;EAEO3B,MAAMA,CAAA,EAAG;IAAA,IAAAiE,mBAAA;IACZ,MAAMC,YAAY,GAAG,IAAI,CAACxB,WAAW,CAAC,CAAC;IACvC,IAAIwB,YAAY,aAAZA,YAAY,gBAAAD,mBAAA,GAAZC,YAAY,CAAErG,KAAK,cAAAoG,mBAAA,eAAnBA,mBAAA,CAAqBtB,MAAM,EAAE;MAC7B,OAAO,IAAI,CAACE,oBAAoB,CAACqB,YAAY,CAACrG,KAAK,CAAC,CAAC,CAAC,CAAC;IAC3D,CAAC,MAAM,IAAI,IAAI,CAACJ,KAAK,CAAC4D,KAAK,IAAI,IAAI,CAAC3D,KAAK,CAAC0D,QAAQ,EAAE;MAChD,OAAO,IAAI,CAACuC,WAAW,CAAC,CAAC;IAC7B;IACA,OAAO,IAAI;EACf;AACJ","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["React","LinearGradient","ExpoLinearGradient","Image","StyleSheet","View","isEmpty","isNil","isNumber","imageSizeEstimator","AssetConsumer","isFullPathUrl","IMAGE_URL_REGEX","LINEAT_GRADIENT_REGEX","DIMENSION_REGEX","BACKGROUND_POSITION_REGEX","BACKGROUND_SIZE_REGEX","ASSET_CACHE","Component","constructor","props","state","parse","val","value","splits","split","map","v","trim","angle","locations","endsWith","parseInt","shift","delta","Math","round","tan","PI","abs","end","x","y","start","colors","s","_s$matchAll$next","p","matchAll","next","push","parseFloat","replace","componentDidUpdate","prevProps","prevState","snapshot","setState","render","_this$props$size","_this$props$style","createElement","style","borderWidth","overflow","absoluteFill","middle","flexDirection","justifyContent","alignItems","testID","size","width","position","borderRadius","children","BackgroundComponent","_defineProperty","imageSrc","image","undefined","caluculateSize","height","resolveAssetSource","naturalImageWidth","naturalImageHeight","getSize","uri","getDimension","dim","getPosition","result","top","bottom","left","right","getPositionAndSize","_this$props$size2","_this$getGradient","resizeMode","getGradient","length","repeat","renderLinearGradient","data","psresult","Fragment","setImage","componentDidMount","setTimeout","_this$props$image","_source","source","startsWith","_this$props$image2","loadAsset","_this$props$image3","renderImage","_psresult$position","_psresult$position2","loadImage","minWidth","minHeight","_gradientData$value","gradientData"],"sources":["background.component.tsx"],"sourcesContent":["import * as React from 'react';\nimport { LinearGradient as ExpoLinearGradient, LinearGradientPoint } from 'expo-linear-gradient';\nimport { DimensionValue, Image, StyleSheet, View, ViewStyle } from 'react-native';\nimport { isEmpty, isNil, isNumber, isString } from 'lodash-es';\nimport imageSizeEstimator from '@wavemaker/app-rn-runtime/core/imageSizeEstimator';\nimport { AssetConsumer } from '@wavemaker/app-rn-runtime/core/asset.provider';\nimport { isFullPathUrl } from '@wavemaker/app-rn-runtime/core/utils';\n\nexport interface LinearGradientProps {\n value: string;\n children: any;\n style?: ViewStyle;\n size?: ViewStyle;\n position?: ViewStyle;\n middle?: boolean;\n}\n\nexport interface LinearGradientState {\n colors: string[];\n locations: number[];\n start: LinearGradientPoint;\n end: LinearGradientPoint;\n}\n\nconst IMAGE_URL_REGEX = /url\\(['|\"]?(.+)['|\"]?\\)$/gi;\nconst LINEAT_GRADIENT_REGEX = /linear-gradient\\((.+)\\)$/gi;\nconst DIMENSION_REGEX = /([0-9%]+)[a-z]*/g;\nconst BACKGROUND_POSITION_REGEX = /([0-9%]+)[a-z]*\\s*([0-9%]+)[a-z]*/g;\nconst BACKGROUND_SIZE_REGEX = /([0-9%]+)[a-z]*\\s*([0-9%]+)[a-z]*/g;\n\nconst ASSET_CACHE = {} as any;\n\nexport class LinearGradient extends React.Component<LinearGradientProps, LinearGradientState> {\n\n constructor(props: LinearGradientProps) {\n super(props);\n this.state = this.parse();\n }\n\n parse(val = this.props.value) {\n let state = {} as LinearGradientState;\n const splits = val.split(',').map(v => v.trim());\n let angle = 0;\n const locations: LinearGradientPoint[] = [];\n if (splits[0].endsWith('deg')) {\n angle = (parseInt(splits[0].split('deg')[0]))%360;\n angle = angle < 0 ? (360 + angle) : angle;\n splits.shift();\n }\n angle += 90;\n const delta = Math.round(Math.tan((angle * Math.PI) / 180) * 100)/100;\n if (Math.abs(delta) > 1) {\n state = {\n end: {\n x: -0.5 / delta + 0.5,\n y: 0\n },\n start: {\n x: 0.5 / delta + 0.5,\n y: 1\n }\n } as LinearGradientState;\n } else {\n state = {\n start: {\n x: 0,\n y: -0.5 * delta + 0.5\n },\n end: {\n x: 1,\n y: 0.5 * delta + 0.5\n }\n } as LinearGradientState;\n }\n if (angle >= 270 && angle <= 450) {\n state = {\n start : state.end,\n end: state.start\n } as LinearGradientState;\n }\n state.colors = [];\n state.locations = [];\n splits.map(s => {\n const p = s.matchAll(/\\s*([0-9.]+)%/g).next()?.value;\n if (p) {\n state.locations.push(parseFloat(p[1]) / 100);\n state.colors.push(s.replace(p[0], ''));\n } else {\n state.locations.push(null as any);\n state.colors.push(s);\n }\n });\n return state;\n }\n\n componentDidUpdate(prevProps: Readonly<LinearGradientProps>, prevState: Readonly<{}>, snapshot?: any): void {\n if (prevProps.value !== this.props.value) {\n this.setState(this.parse());\n }\n }\n \n\n public render() {\n return (\n <View style={[{borderWidth: 0, overflow: 'hidden'}, StyleSheet.absoluteFill, this.props.style]}>\n <View style={[\n StyleSheet.absoluteFill, this.props.middle ? {\n flexDirection: 'row',\n justifyContent: 'center',\n alignItems: 'center'\n } : null]}>\n <ExpoLinearGradient testID=\"wm-expo-linear-gradient\"\n colors={this.state.colors as any}\n locations={this.state.locations as any}\n start={this.state.start}\n end={this.state.end}\n style={[\n this.props.size?.width ? this.props.size : StyleSheet.absoluteFill,\n this.props.position,\n {position: 'absolute', borderRadius: this.props.style?.borderRadius}\n ]}\n />\n </View>\n {this.props.children}\n </View>\n );\n }\n}\n\nexport interface BackgroundProps {\n image?: string;\n position?: string;\n children?: any;\n resizeMode?: string;\n repeat?: string;\n style?: ViewStyle;\n size: string;\n}\n\nexport interface BackgroundState {\n imageSrc: any;\n naturalImageWidth: number,\n naturalImageHeight: number\n}\n\nexport class BackgroundComponent extends React.Component<BackgroundProps, BackgroundState> {\n\n private loadAsset: (path: string) => number | string = null as any;\n\n constructor(props: BackgroundProps) {\n super(props);\n this.state = {\n imageSrc : this.props.image ? ASSET_CACHE[this.props.image] : undefined\n } as BackgroundState;\n }\n\n public caluculateSize(imageSrc: any) {\n if (isNumber(imageSrc)) {\n const {width, height} = Image.resolveAssetSource(imageSrc);\n this.setState({\n naturalImageWidth: width,\n naturalImageHeight: height\n } as BackgroundState);\n } else if (!isNil(imageSrc)) {\n imageSizeEstimator.getSize(imageSrc.uri, (width: number, height: number) => {\n this.setState({\n naturalImageWidth: width,\n naturalImageHeight: height\n } as BackgroundState);\n });\n }\n }\n\n getDimension(dim: string) {\n if (dim) {\n const value = dim.matchAll(DIMENSION_REGEX).next().value!;\n if (value[1]) {\n return value[1].endsWith('%') ? value[1] : parseInt(value[1]);\n }\n }\n return null;\n }\n\n public getPosition() {\n const result = {} as ViewStyle;\n if (!this.props.position) {\n return result;\n }\n const position = this.props.position.split(' ').map(s => s.trim());\n if (position[0] === 'center') {\n result.alignItems = 'center';\n } else if (position[0] === 'top') {\n result.top = 0;\n } else if (position[0] === 'bottom') {\n result.bottom = 0;\n } else {\n result.top = this.getDimension(position[0]) as DimensionValue;\n }\n if (position[1] === 'center') {\n result.justifyContent = 'center';\n } else if (position[1] === 'left') {\n result.left = 0;\n } else if (position[1] === 'bottom') {\n result.right = 0;\n } else {\n result.left = this.getDimension(position[1]) as DimensionValue;\n }\n return result;\n }\n\n public getPositionAndSize() {\n const result: {\n resizeMode? : string,\n position?: ViewStyle,\n size?: ViewStyle\n } = {} as any;\n if (this.props.resizeMode) {\n result.resizeMode = this.props.resizeMode;\n return result;\n } else if (this.props.position === 'center') {\n result.resizeMode = 'center';\n result.position = {\n justifyContent: 'center',\n alignItems: 'center'\n };\n } else if (this.props.size === 'contain' || this.props.size === 'cover') {\n result.resizeMode = this.props.size;\n return result;\n }\n const size = this.props.size?.matchAll(BACKGROUND_SIZE_REGEX).next().value;\n result.size = {};\n if (size) {\n result.size.width = (size[1].endsWith('%') ? size[1] : parseInt(size[1])) as DimensionValue;\n result.size.height = (size[2].endsWith('%') ? size[2] : parseInt(size[2])) as DimensionValue\n }\n if (!result.resizeMode && this.props.position) {\n result.position = this.getPosition();\n }\n if (!this.getGradient()?.value?.length) {\n if (this.props.repeat === 'no-repeat') {\n result.size.width = result.size.width || this.state.naturalImageWidth; \n result.size.height = result.size.height || this.state.naturalImageHeight; \n } else if (this.props.repeat === 'repeat-x') {\n result.resizeMode = 'repeat';\n result.size.width = result.size.width || '100%'; \n result.size.height = result.size.height || this.state.naturalImageHeight; \n } else if (this.props.repeat === 'repeat-y') {\n result.resizeMode = 'repeat';\n result.size.width = result.size.width || this.state.naturalImageWidth; \n result.size.height = result.size.height || '100%'; \n } else {\n result.resizeMode = 'repeat';\n }\n }\n return result;\n }\n\n public renderLinearGradient(data: string) {\n const psresult = this.getPositionAndSize();\n return (\n <LinearGradient\n value={data || ''}\n style={this.props.style}\n size={psresult.size}\n position={psresult.position}\n middle={psresult.resizeMode === 'center'}> \n <></> \n </LinearGradient>\n );\n }\n\n componentDidUpdate(prevProps: Readonly<BackgroundProps>, prevState: Readonly<{}>, snapshot?: any): void {\n if (this.props.image && prevProps.image !== this.props.image) {\n this.setImage();\n }\n }\n\n componentDidMount(): void {\n setTimeout(() => this.setImage(), 100);\n }\n\n setImage() {\n let source = this.props.image?.trim() as any;\n if (!source) {\n return;\n }\n if (source?.startsWith('url')) {\n source = this.props.image?.matchAll(IMAGE_URL_REGEX)?.next()?.value?.[1];\n }\n if (this.loadAsset) {\n source = this.loadAsset(source);\n }\n if (isFullPathUrl(source)) {\n source = {\n uri: source\n };\n }\n this.caluculateSize(source);\n this.setState({\n imageSrc: source\n } as BackgroundState);\n if (this.props.image) {\n ASSET_CACHE[this.props.image] = source;\n }\n }\n\n public getGradient() {\n return this.props.image?.trim().matchAll(LINEAT_GRADIENT_REGEX).next();\n }\n\n public renderImage() {\n const psresult = this.getPositionAndSize();\n return (\n <AssetConsumer>\n {(loadAsset) => {\n const loadImage = this.loadAsset !== loadAsset;\n this.loadAsset = loadAsset;\n if (loadImage) {\n setTimeout(() => this.setImage(), 10);\n }\n return (<View style={[{borderWidth: 0, overflow: 'hidden'}, StyleSheet.absoluteFill, this.props.style]}>\n <View style={[\n StyleSheet.absoluteFill, {\n flexDirection: 'row',\n justifyContent: psresult.position?.justifyContent,\n alignItems: psresult.position?.alignItems\n }]}>\n <View style={[\n { position: 'absolute', overflow: 'hidden' },\n psresult.position,\n isEmpty(psresult.size) ? StyleSheet.absoluteFill : psresult.size\n ]}>\n <Image\n source={this.state.imageSrc}\n resizeMode={psresult.resizeMode as any || 'cover'}\n style={[\n { \n width: '100%',\n height: '100%'\n }, \n !isEmpty(psresult.size)\n || (psresult.resizeMode === 'cover'\n || psresult.resizeMode === 'contain') ? null : {\n minWidth: this.state.naturalImageWidth,\n minHeight: this.state.naturalImageHeight\n }\n ]}/> \n </View>\n </View>\n </View>);\n }}\n </AssetConsumer>\n );\n }\n\n public render() {\n const gradientData = this.getGradient();\n if (gradientData?.value?.length) {\n return this.renderLinearGradient(gradientData.value[1]);\n } else if (this.props.image && this.state.imageSrc) {\n return this.renderImage();\n }\n return null;\n }\n}\n"],"mappings":";;;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,cAAc,IAAIC,kBAAkB,QAA6B,sBAAsB;AAChG,SAAyBC,KAAK,EAAEC,UAAU,EAAEC,I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I,CAACxB,WAAW,CAAC,CAAC;IACvC,IAAIwB,YAAY,aAAZA,YAAY,gBAAAD,mBAAA,GAAZC,YAAY,CAAErG,KAAK,cAAAoG,mBAAA,eAAnBA,mBAAA,CAAqBtB,MAAM,EAAE;MAC7B,OAAO,IAAI,CAACE,oBAAoB,CAACqB,YAAY,CAACrG,KAAK,CAAC,CAAC,CAAC,CAAC;IAC3D,CAAC,MAAM,IAAI,IAAI,CAACJ,KAAK,CAAC4D,KAAK,IAAI,IAAI,CAAC3D,KAAK,CAAC0D,QAAQ,EAAE;MAChD,OAAO,IAAI,CAACuC,WAAW,CAAC,CAAC;IAC7B;IACA,OAAO,IAAI;EACf;AACJ","ignoreList":[]}
|
package/styles/calc.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
interface VariableMap {
|
|
2
|
+
[key: string]: number;
|
|
3
|
+
}
|
|
4
|
+
export declare class CalcExpression {
|
|
5
|
+
private expression;
|
|
6
|
+
private currentIndex;
|
|
7
|
+
private variables;
|
|
8
|
+
constructor(expression: string, initialVariables?: VariableMap);
|
|
9
|
+
private resolveInnerCalc;
|
|
10
|
+
private peek;
|
|
11
|
+
private consume;
|
|
12
|
+
private skipWhitespace;
|
|
13
|
+
private parseNumber;
|
|
14
|
+
private parseVariable;
|
|
15
|
+
private parseFactor;
|
|
16
|
+
private parseTerm;
|
|
17
|
+
private parseExponent;
|
|
18
|
+
private parseExpression;
|
|
19
|
+
evaluate(variables?: any): number;
|
|
20
|
+
setVariable(variableName: string, value: number): void;
|
|
21
|
+
getVariables(): VariableMap;
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=calc.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calc.d.ts","sourceRoot":"","sources":["../../../src/styles/calc.ts"],"names":[],"mappings":"AAAA,UAAU,WAAW;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB;AAED,qBAAa,cAAc;IAEzB,OAAO,CAAC,UAAU,CAAM;IACxB,OAAO,CAAC,YAAY,CAAa;IACjC,OAAO,CAAC,SAAS,CAAmB;gBAExB,UAAU,EAAE,MAAM,EAAE,gBAAgB,GAAE,WAAgB;IAYlE,OAAO,CAAC,gBAAgB;IAQxB,OAAO,CAAC,IAAI;IAOZ,OAAO,CAAC,OAAO;IAQf,OAAO,CAAC,cAAc;IAMtB,OAAO,CAAC,WAAW;IAmBnB,OAAO,CAAC,aAAa;IAcrB,OAAO,CAAC,WAAW;IAwBnB,OAAO,CAAC,SAAS;IAmBjB,OAAO,CAAC,aAAa;IAYrB,OAAO,CAAC,eAAe;IAgBvB,QAAQ,CAAC,SAAS,CAAC,EAAE,GAAG,GAAG,MAAM;IAcjC,WAAW,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAItD,YAAY,IAAI,WAAW;CAG5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"color-mix.d.ts","sourceRoot":"","sources":["../../../src/styles/color-mix.ts"],"names":[],"mappings":";0BA+F6B,MAAM;;AADnC,wBAOE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"style-prop.validator.d.ts","sourceRoot":"","sources":["../../../src/styles/style-prop.validator.ts"],"names":[],"mappings":"AAicA,eAAO,MAAM,iBAAiB,SAAU,MAAM,QAG7C,CAAC;AAEF,eAAO,MAAM,gBAAgB,SAAU,MAAM,SAAS,GAAG,QAGxD,CAAC;AAEF,eAAO,MAAM,eAAe,SAAU,MAAM,SAAS,GAAG,QAWvD,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export declare class StyleProps {
|
|
2
|
+
backgroundimage?: any;
|
|
3
|
+
backgroundsize?: any;
|
|
4
|
+
backgroundrepeat?: any;
|
|
5
|
+
backgroundresizemode?: any;
|
|
6
|
+
backgroundposition?: any;
|
|
7
|
+
backgroundcolor?: any;
|
|
8
|
+
bordercolor?: any;
|
|
9
|
+
borderradius?: any;
|
|
10
|
+
borderstyle?: any;
|
|
11
|
+
borderwidth?: any;
|
|
12
|
+
borderbottomwidth?: any;
|
|
13
|
+
borderleftwidth?: any;
|
|
14
|
+
borderrightwidth?: any;
|
|
15
|
+
bordertopwidth?: any;
|
|
16
|
+
color?: any;
|
|
17
|
+
display?: any;
|
|
18
|
+
fontsize?: any;
|
|
19
|
+
fontfamily?: any;
|
|
20
|
+
fontstyle?: any;
|
|
21
|
+
fontvariant?: any;
|
|
22
|
+
fontweight?: any;
|
|
23
|
+
height?: any;
|
|
24
|
+
horizontalalign?: any;
|
|
25
|
+
lineheight?: any;
|
|
26
|
+
margin?: any;
|
|
27
|
+
marginbottom?: any;
|
|
28
|
+
marginleft?: any;
|
|
29
|
+
marginright?: any;
|
|
30
|
+
margintop?: any;
|
|
31
|
+
opacity?: any;
|
|
32
|
+
overflow?: any;
|
|
33
|
+
padding?: any;
|
|
34
|
+
paddingbottom?: any;
|
|
35
|
+
paddingleft?: any;
|
|
36
|
+
paddingright?: any;
|
|
37
|
+
paddingtop?: any;
|
|
38
|
+
textalign?: any;
|
|
39
|
+
textdecoration?: any;
|
|
40
|
+
verticalalign?: any;
|
|
41
|
+
width?: any;
|
|
42
|
+
zindex?: any;
|
|
43
|
+
top?: number | string;
|
|
44
|
+
bottom?: number | string;
|
|
45
|
+
left?: number | string;
|
|
46
|
+
right?: number | string;
|
|
47
|
+
}
|
|
48
|
+
export declare const getStyleName: (name: string) => any;
|
|
49
|
+
//# sourceMappingURL=style-props.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"style-props.d.ts","sourceRoot":"","sources":["../../../src/styles/style-props.ts"],"names":[],"mappings":"AAAA,qBAAa,UAAU;IACnB,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,gBAAgB,CAAC,EAAE,GAAG,CAAC;IACvB,oBAAoB,CAAC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AAE,GAAG,CAAC;IACrB,aAAa,CAAC,EAAE,GAAG,CAAC;IACpB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC3B;AAkDD,eAAO,MAAM,YAAY,SAAU,MAAM,QAAgC,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TextStyle, ViewStyle, ImageStyle } from 'react-native';
|
|
3
|
+
import ThemeVariables from './theme.variables';
|
|
4
|
+
export declare const DEFAULT_CLASS = "DEFAULT_CLASS";
|
|
5
|
+
export declare const DEVICE_BREAK_POINTS: {
|
|
6
|
+
[key: string]: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const DEVICE_BREAK_POINTS_NATIVE_MOBILE: {
|
|
9
|
+
[key: string]: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const getBreakPointValue: (name: string) => string;
|
|
12
|
+
export type styleGeneratorFn<T extends NamedStyles<any>> = (themeVariables: ThemeVariables, addStyle: (name: string, extend: string, style: T) => void) => void;
|
|
13
|
+
export declare enum ThemeEvent {
|
|
14
|
+
CHANGE = "change"
|
|
15
|
+
}
|
|
16
|
+
export declare class Theme {
|
|
17
|
+
private parent;
|
|
18
|
+
readonly name: string;
|
|
19
|
+
static BASE: Theme;
|
|
20
|
+
private eventNotifer;
|
|
21
|
+
private children;
|
|
22
|
+
private styles;
|
|
23
|
+
private cache;
|
|
24
|
+
private traceEnabled;
|
|
25
|
+
private revertLayoutToExpo50;
|
|
26
|
+
private styleGenerators;
|
|
27
|
+
private constructor();
|
|
28
|
+
private getAppConfig;
|
|
29
|
+
enableTrace(flag: boolean): void;
|
|
30
|
+
subscribe(event: ThemeEvent, fn: Function): () => void;
|
|
31
|
+
notify(event: ThemeEvent): void;
|
|
32
|
+
private replaceVariables;
|
|
33
|
+
clearCache(): void;
|
|
34
|
+
registerStyle<T extends NamedStyles<any>>(fn: styleGeneratorFn<T>): void;
|
|
35
|
+
checkStyleProperties(name: string, value: any): void;
|
|
36
|
+
private addStyle;
|
|
37
|
+
private addTrace;
|
|
38
|
+
private flatten;
|
|
39
|
+
extractTopLevelVariables(style: Record<string, any>): Record<string, any>;
|
|
40
|
+
mergeStyle(...styles: any): any;
|
|
41
|
+
cleanseStyleProperties(style: any, baseTokens: any, classnames: any, inheritedTokens?: Record<string, any>): any;
|
|
42
|
+
getStyle(name: string): any;
|
|
43
|
+
$new(name?: string, styles?: NamedStyles<any>): Theme;
|
|
44
|
+
destroy(): void;
|
|
45
|
+
getTextStyle(s: any): TextStyle;
|
|
46
|
+
reset(styles?: NamedStyles<any>): void;
|
|
47
|
+
}
|
|
48
|
+
declare const _default: Theme;
|
|
49
|
+
export default _default;
|
|
50
|
+
export type NamedStyles<T> = {
|
|
51
|
+
[P in keyof T]: AllStyle | NamedStyles<T>;
|
|
52
|
+
};
|
|
53
|
+
export type BackgroundImageStyle = {
|
|
54
|
+
backgroundImage: string;
|
|
55
|
+
backgroundPosition: string;
|
|
56
|
+
backgroundRepeat: string;
|
|
57
|
+
backgroundSize: string | number;
|
|
58
|
+
};
|
|
59
|
+
export type AllStyle = (ViewStyle & TextStyle & ImageStyle & {
|
|
60
|
+
userSelect?: 'none' | 'text';
|
|
61
|
+
} & {
|
|
62
|
+
rippleColor?: string;
|
|
63
|
+
});
|
|
64
|
+
export declare const ThemeProvider: React.Provider<Theme>;
|
|
65
|
+
export declare const ThemeConsumer: React.Consumer<Theme>;
|
|
66
|
+
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/styles/theme.tsx"],"names":[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WAAW,CAAC,EAAE,MAAM,CAAA;CAAC,CAAC,CAAC;AAIrH,eAAO,MAAM,aAAa,uBAAwB,CAAC;AACnD,eAAO,MAAM,aAAa,uBAAwB,CAAC"}
|
package/styles/theme.js
CHANGED
|
@@ -77,12 +77,10 @@ export class Theme {
|
|
|
77
77
|
getAppConfig() {
|
|
78
78
|
return injector.get('APP_CONFIG');
|
|
79
79
|
}
|
|
80
|
-
enableTrace(flag
|
|
80
|
+
enableTrace(flag) {
|
|
81
81
|
this.traceEnabled = flag;
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
this.children.forEach(t => t.enableTrace(flag, resetCache));
|
|
82
|
+
this.reset();
|
|
83
|
+
this.children.forEach(t => t.enableTrace(flag));
|
|
86
84
|
}
|
|
87
85
|
subscribe(event, fn) {
|
|
88
86
|
return this.eventNotifer.subscribe(event, fn);
|
|
@@ -119,9 +117,6 @@ export class Theme {
|
|
|
119
117
|
}
|
|
120
118
|
});
|
|
121
119
|
}
|
|
122
|
-
if (isString(val) && val.match(/^-?\d+(\.\d+)?$/)) {
|
|
123
|
-
return parseFloat(val);
|
|
124
|
-
}
|
|
125
120
|
return val;
|
|
126
121
|
}
|
|
127
122
|
clearCache() {
|
|
@@ -255,25 +250,17 @@ export class Theme {
|
|
|
255
250
|
}
|
|
256
251
|
}
|
|
257
252
|
if (!isNil(style['margin'])) {
|
|
258
|
-
|
|
259
|
-
style['
|
|
260
|
-
style['
|
|
261
|
-
style['
|
|
262
|
-
style['marginBottom'] = (_style$marginBottom = style['marginBottom']) !== null && _style$marginBottom !== void 0 ? _style$marginBottom : style['margin'];
|
|
253
|
+
style['marginLeft'] = style['marginLeft'] || style['margin'];
|
|
254
|
+
style['marginRight'] = style['marginRight'] || style['margin'];
|
|
255
|
+
style['marginTop'] = style['marginTop'] || style['margin'];
|
|
256
|
+
style['marginBottom'] = style['marginBottom'] || style['margin'];
|
|
263
257
|
delete style['margin'];
|
|
264
258
|
}
|
|
265
|
-
if (!isNil(style['opacity']) && typeof style['opacity'] === 'string' && style['opacity'].endsWith('%')) {
|
|
266
|
-
const percentage = parseFloat(style['opacity']);
|
|
267
|
-
if (!isNaN(percentage)) {
|
|
268
|
-
style['opacity'] = percentage / 100;
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
259
|
if (!isNil(style['padding'])) {
|
|
272
|
-
|
|
273
|
-
style['
|
|
274
|
-
style['
|
|
275
|
-
style['
|
|
276
|
-
style['paddingBottom'] = (_style$paddingBottom = style['paddingBottom']) !== null && _style$paddingBottom !== void 0 ? _style$paddingBottom : style['padding'];
|
|
260
|
+
style['paddingLeft'] = style['paddingLeft'] || style['padding'];
|
|
261
|
+
style['paddingRight'] = style['paddingRight'] || style['padding'];
|
|
262
|
+
style['paddingTop'] = style['paddingTop'] || style['padding'];
|
|
263
|
+
style['paddingBottom'] = style['paddingBottom'] || style['padding'];
|
|
277
264
|
delete style['padding'];
|
|
278
265
|
}
|
|
279
266
|
if (this.revertLayoutToExpo50 && !isNil(style['flexDirection']) && style['flexDirection'] === 'row-reverse') {
|
|
@@ -311,9 +298,6 @@ export class Theme {
|
|
|
311
298
|
if (!isNil(style['color']) && style['color'] === 'transparent') {
|
|
312
299
|
style['color'] = 'rgba(255, 255, 255, 0)';
|
|
313
300
|
}
|
|
314
|
-
if (!isNil(style['color']) && style['color'] === 'transparent') {
|
|
315
|
-
style['color'] = 'rgba(255, 255, 255, 0)';
|
|
316
|
-
}
|
|
317
301
|
let screenWidth = Dimensions.get('window').width;
|
|
318
302
|
let screenHeight = Dimensions.get('window').height;
|
|
319
303
|
Object.keys(style).forEach((k, i) => {
|