@wavemaker-ai/app-rn-runtime 1.0.0-rc.647469
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.js +12 -0
- package/actions/base-action.js.map +1 -0
- package/actions/index.js +6 -0
- package/actions/index.js.map +1 -0
- package/actions/login-action.js +32 -0
- package/actions/login-action.js.map +1 -0
- package/actions/logout-action.js +22 -0
- package/actions/logout-action.js.map +1 -0
- package/actions/navigation-action.js +44 -0
- package/actions/navigation-action.js.map +1 -0
- package/actions/notification-action.js +76 -0
- package/actions/notification-action.js.map +1 -0
- package/actions/timer-action.js +57 -0
- package/actions/timer-action.js.map +1 -0
- package/components/advanced/carousel/carousel-content/carousel-content.component.js +17 -0
- package/components/advanced/carousel/carousel-content/carousel-content.component.js.map +1 -0
- package/components/advanced/carousel/carousel-content/carousel-content.props.js +11 -0
- package/components/advanced/carousel/carousel-content/carousel-content.props.js.map +1 -0
- package/components/advanced/carousel/carousel-content/carousel-content.styles.js +17 -0
- package/components/advanced/carousel/carousel-content/carousel-content.styles.js.map +1 -0
- package/components/advanced/carousel/carousel-template/carousel-template.component.js +20 -0
- package/components/advanced/carousel/carousel-template/carousel-template.component.js.map +1 -0
- package/components/advanced/carousel/carousel-template/carousel-template.props.js +11 -0
- package/components/advanced/carousel/carousel-template/carousel-template.props.js.map +1 -0
- package/components/advanced/carousel/carousel-template/carousel-template.styles.js +16 -0
- package/components/advanced/carousel/carousel-template/carousel-template.styles.js.map +1 -0
- package/components/advanced/carousel/carousel.component.js +378 -0
- package/components/advanced/carousel/carousel.component.js.map +1 -0
- package/components/advanced/carousel/carousel.props.js +23 -0
- package/components/advanced/carousel/carousel.props.js.map +1 -0
- package/components/advanced/carousel/carousel.styles.js +179 -0
- package/components/advanced/carousel/carousel.styles.js.map +1 -0
- package/components/advanced/customwidgetcontainer/customwidgetcontainer.component.js +14 -0
- package/components/advanced/customwidgetcontainer/customwidgetcontainer.component.js.map +1 -0
- package/components/advanced/customwidgetcontainer/customwidgetcontainer.props.js +11 -0
- package/components/advanced/customwidgetcontainer/customwidgetcontainer.props.js.map +1 -0
- package/components/advanced/customwidgetcontainer/customwidgetcontainer.styles.js +14 -0
- package/components/advanced/customwidgetcontainer/customwidgetcontainer.styles.js.map +1 -0
- package/components/advanced/login/login.component.js +40 -0
- package/components/advanced/login/login.component.js.map +1 -0
- package/components/advanced/login/login.props.js +13 -0
- package/components/advanced/login/login.props.js.map +1 -0
- package/components/advanced/login/login.styles.js +31 -0
- package/components/advanced/login/login.styles.js.map +1 -0
- package/components/advanced/network-info-toaster/network-info-toaster.component.js +118 -0
- package/components/advanced/network-info-toaster/network-info-toaster.component.js.map +1 -0
- package/components/advanced/network-info-toaster/network-info-toaster.props.js +11 -0
- package/components/advanced/network-info-toaster/network-info-toaster.props.js.map +1 -0
- package/components/advanced/network-info-toaster/network-info-toaster.styles.js +33 -0
- package/components/advanced/network-info-toaster/network-info-toaster.styles.js.map +1 -0
- package/components/advanced/webview/webview.component.js +160 -0
- package/components/advanced/webview/webview.component.js.map +1 -0
- package/components/advanced/webview/webview.props.js +16 -0
- package/components/advanced/webview/webview.props.js.map +1 -0
- package/components/advanced/webview/webview.styles.js +18 -0
- package/components/advanced/webview/webview.styles.js.map +1 -0
- package/components/basic/anchor/anchor.component.js +124 -0
- package/components/basic/anchor/anchor.component.js.map +1 -0
- package/components/basic/anchor/anchor.props.js +34 -0
- package/components/basic/anchor/anchor.props.js.map +1 -0
- package/components/basic/anchor/anchor.styles.js +108 -0
- package/components/basic/anchor/anchor.styles.js.map +1 -0
- package/components/basic/animatedview.component.js +226 -0
- package/components/basic/animatedview.component.js.map +1 -0
- package/components/basic/audio/audio.component.js +257 -0
- package/components/basic/audio/audio.component.js.map +1 -0
- package/components/basic/audio/audio.props.js +15 -0
- package/components/basic/audio/audio.props.js.map +1 -0
- package/components/basic/audio/audio.styles.js +68 -0
- package/components/basic/audio/audio.styles.js.map +1 -0
- package/components/basic/bottomsheet/bottomsheet.component.js +772 -0
- package/components/basic/bottomsheet/bottomsheet.component.js.map +1 -0
- package/components/basic/bottomsheet/bottomsheet.props.js +26 -0
- package/components/basic/bottomsheet/bottomsheet.props.js.map +1 -0
- package/components/basic/bottomsheet/bottomsheet.styles.js +88 -0
- package/components/basic/bottomsheet/bottomsheet.styles.js.map +1 -0
- package/components/basic/button/button.component.js +124 -0
- package/components/basic/button/button.component.js.map +1 -0
- package/components/basic/button/button.props.js +28 -0
- package/components/basic/button/button.props.js.map +1 -0
- package/components/basic/button/button.styles.js +132 -0
- package/components/basic/button/button.styles.js.map +1 -0
- package/components/basic/buttongroup/buttongroup.component.js +28 -0
- package/components/basic/buttongroup/buttongroup.component.js.map +1 -0
- package/components/basic/buttongroup/buttongroup.props.js +14 -0
- package/components/basic/buttongroup/buttongroup.props.js.map +1 -0
- package/components/basic/buttongroup/buttongroup.styles.js +59 -0
- package/components/basic/buttongroup/buttongroup.styles.js.map +1 -0
- package/components/basic/custom/custom.component.js +26 -0
- package/components/basic/custom/custom.component.js.map +1 -0
- package/components/basic/custom/custom.props.js +16 -0
- package/components/basic/custom/custom.props.js.map +1 -0
- package/components/basic/custom/custom.styles.js +18 -0
- package/components/basic/custom/custom.styles.js.map +1 -0
- package/components/basic/icon/icon.component.js +270 -0
- package/components/basic/icon/icon.component.js.map +1 -0
- package/components/basic/icon/icon.props.js +28 -0
- package/components/basic/icon/icon.props.js.map +1 -0
- package/components/basic/icon/icon.styles.js +38 -0
- package/components/basic/icon/icon.styles.js.map +1 -0
- package/components/basic/icon/streamline-light-icon/streamline-light-icon.component.js +245 -0
- package/components/basic/icon/streamline-light-icon/streamline-light-icon.component.js.map +1 -0
- package/components/basic/icon/streamline-light-icon/streamline-light-icon.ttf +0 -0
- package/components/basic/icon/streamline-regular-icon/streamline-regular-icon.component.js +217 -0
- package/components/basic/icon/streamline-regular-icon/streamline-regular-icon.component.js.map +1 -0
- package/components/basic/icon/streamline-regular-icon/streamline-regular-icon.ttf +0 -0
- package/components/basic/icon/wavicon/wavicon.component.js +1161 -0
- package/components/basic/icon/wavicon/wavicon.component.js.map +1 -0
- package/components/basic/icon/wavicon/wavicon.ttf +0 -0
- package/components/basic/label/label.component.js +406 -0
- package/components/basic/label/label.component.js.map +1 -0
- package/components/basic/label/label.props.js +28 -0
- package/components/basic/label/label.props.js.map +1 -0
- package/components/basic/label/label.styles.js +146 -0
- package/components/basic/label/label.styles.js.map +1 -0
- package/components/basic/lottie/lottie.component.js +139 -0
- package/components/basic/lottie/lottie.component.js.map +1 -0
- package/components/basic/lottie/lottie.props.js +14 -0
- package/components/basic/lottie/lottie.props.js.map +1 -0
- package/components/basic/lottie/lottie.styles.js +15 -0
- package/components/basic/lottie/lottie.styles.js.map +1 -0
- package/components/basic/message/message.component.js +87 -0
- package/components/basic/message/message.component.js.map +1 -0
- package/components/basic/message/message.props.js +24 -0
- package/components/basic/message/message.props.js.map +1 -0
- package/components/basic/message/message.styles.js +116 -0
- package/components/basic/message/message.styles.js.map +1 -0
- package/components/basic/modal/modal.component.js +24 -0
- package/components/basic/modal/modal.component.js.map +1 -0
- package/components/basic/modal/modal.props.js +12 -0
- package/components/basic/modal/modal.props.js.map +1 -0
- package/components/basic/modal/modal.styles.js +29 -0
- package/components/basic/modal/modal.styles.js.map +1 -0
- package/components/basic/picture/picture.component.js +321 -0
- package/components/basic/picture/picture.component.js.map +1 -0
- package/components/basic/picture/picture.props.js +25 -0
- package/components/basic/picture/picture.props.js.map +1 -0
- package/components/basic/picture/picture.styles.js +43 -0
- package/components/basic/picture/picture.styles.js.map +1 -0
- package/components/basic/progress-bar/progress-bar.component.js +96 -0
- package/components/basic/progress-bar/progress-bar.component.js.map +1 -0
- package/components/basic/progress-bar/progress-bar.props.js +19 -0
- package/components/basic/progress-bar/progress-bar.props.js.map +1 -0
- package/components/basic/progress-bar/progress-bar.styles.js +45 -0
- package/components/basic/progress-bar/progress-bar.styles.js.map +1 -0
- package/components/basic/progress-circle/progress-circle.component.js +79 -0
- package/components/basic/progress-circle/progress-circle.component.js.map +1 -0
- package/components/basic/progress-circle/progress-circle.props.js +19 -0
- package/components/basic/progress-circle/progress-circle.props.js.map +1 -0
- package/components/basic/progress-circle/progress-circle.styles.js +82 -0
- package/components/basic/progress-circle/progress-circle.styles.js.map +1 -0
- package/components/basic/search/local-data-provider.js +113 -0
- package/components/basic/search/local-data-provider.js.map +1 -0
- package/components/basic/search/search.component.js +456 -0
- package/components/basic/search/search.component.js.map +1 -0
- package/components/basic/search/search.props.js +39 -0
- package/components/basic/search/search.props.js.map +1 -0
- package/components/basic/search/search.styles.js +187 -0
- package/components/basic/search/search.styles.js.map +1 -0
- package/components/basic/skeleton/skeleton.component.js +151 -0
- package/components/basic/skeleton/skeleton.component.js.map +1 -0
- package/components/basic/skeleton/skeleton.props.js +11 -0
- package/components/basic/skeleton/skeleton.props.js.map +1 -0
- package/components/basic/skeleton/skeleton.styles.js +41 -0
- package/components/basic/skeleton/skeleton.styles.js.map +1 -0
- package/components/basic/spinner/spinner.component.js +99 -0
- package/components/basic/spinner/spinner.component.js.map +1 -0
- package/components/basic/spinner/spinner.props.js +17 -0
- package/components/basic/spinner/spinner.props.js.map +1 -0
- package/components/basic/spinner/spinner.styles.js +41 -0
- package/components/basic/spinner/spinner.styles.js.map +1 -0
- package/components/basic/tooltip/tooltip.component.js +80 -0
- package/components/basic/tooltip/tooltip.component.js.map +1 -0
- package/components/basic/tooltip/tooltip.props.js +18 -0
- package/components/basic/tooltip/tooltip.props.js.map +1 -0
- package/components/basic/tooltip/tooltip.styles.js +49 -0
- package/components/basic/tooltip/tooltip.styles.js.map +1 -0
- package/components/basic/video/video.component.js +206 -0
- package/components/basic/video/video.component.js.map +1 -0
- package/components/basic/video/video.props.js +33 -0
- package/components/basic/video/video.props.js.map +1 -0
- package/components/basic/video/video.styles.js +33 -0
- package/components/basic/video/video.styles.js.map +1 -0
- package/components/chart/area-chart/area-chart.component.js +159 -0
- package/components/chart/area-chart/area-chart.component.js.map +1 -0
- package/components/chart/area-chart/area-chart.props.js +12 -0
- package/components/chart/area-chart/area-chart.props.js.map +1 -0
- package/components/chart/area-chart/area-chart.styles.js +13 -0
- package/components/chart/area-chart/area-chart.styles.js.map +1 -0
- package/components/chart/bar-chart/bar-chart.component.js +144 -0
- package/components/chart/bar-chart/bar-chart.component.js.map +1 -0
- package/components/chart/bar-chart/bar-chart.props.js +15 -0
- package/components/chart/bar-chart/bar-chart.props.js.map +1 -0
- package/components/chart/bar-chart/bar-chart.styles.js +13 -0
- package/components/chart/bar-chart/bar-chart.styles.js.map +1 -0
- package/components/chart/basechart.component.js +709 -0
- package/components/chart/basechart.component.js.map +1 -0
- package/components/chart/basechart.props.js +65 -0
- package/components/chart/basechart.props.js.map +1 -0
- package/components/chart/basechart.styles.js +97 -0
- package/components/chart/basechart.styles.js.map +1 -0
- package/components/chart/bubble-chart/bubble-chart.component.js +113 -0
- package/components/chart/bubble-chart/bubble-chart.component.js.map +1 -0
- package/components/chart/bubble-chart/bubble-chart.props.js +11 -0
- package/components/chart/bubble-chart/bubble-chart.props.js.map +1 -0
- package/components/chart/bubble-chart/bubble-chart.styles.js +13 -0
- package/components/chart/bubble-chart/bubble-chart.styles.js.map +1 -0
- package/components/chart/column-chart/column-chart.component.js +8 -0
- package/components/chart/column-chart/column-chart.component.js.map +1 -0
- package/components/chart/column-chart/column-chart.props.js +3 -0
- package/components/chart/column-chart/column-chart.props.js.map +1 -0
- package/components/chart/column-chart/column-chart.styles.js +13 -0
- package/components/chart/column-chart/column-chart.styles.js.map +1 -0
- package/components/chart/donut-chart/donut-chart.component.js +7 -0
- package/components/chart/donut-chart/donut-chart.component.js.map +1 -0
- package/components/chart/donut-chart/donut-chart.props.js +11 -0
- package/components/chart/donut-chart/donut-chart.props.js.map +1 -0
- package/components/chart/donut-chart/donut-chart.styles.js +13 -0
- package/components/chart/donut-chart/donut-chart.styles.js.map +1 -0
- package/components/chart/legend/legend.component.js +36 -0
- package/components/chart/legend/legend.component.js.map +1 -0
- package/components/chart/line-chart/line-chart.component.js +119 -0
- package/components/chart/line-chart/line-chart.component.js.map +1 -0
- package/components/chart/line-chart/line-chart.props.js +14 -0
- package/components/chart/line-chart/line-chart.props.js.map +1 -0
- package/components/chart/line-chart/line-chart.styles.js +13 -0
- package/components/chart/line-chart/line-chart.styles.js.map +1 -0
- package/components/chart/pie-chart/pie-chart.component.js +251 -0
- package/components/chart/pie-chart/pie-chart.component.js.map +1 -0
- package/components/chart/pie-chart/pie-chart.props.js +14 -0
- package/components/chart/pie-chart/pie-chart.props.js.map +1 -0
- package/components/chart/pie-chart/pie-chart.styles.js +13 -0
- package/components/chart/pie-chart/pie-chart.styles.js.map +1 -0
- package/components/chart/stack-chart/stack-chart.component.js +368 -0
- package/components/chart/stack-chart/stack-chart.component.js.map +1 -0
- package/components/chart/stack-chart/stack-chart.props.js +17 -0
- package/components/chart/stack-chart/stack-chart.props.js.map +1 -0
- package/components/chart/stack-chart/stack-chart.styles.js +7 -0
- package/components/chart/stack-chart/stack-chart.styles.js.map +1 -0
- package/components/chart/staticdata.js +215 -0
- package/components/chart/staticdata.js.map +1 -0
- package/components/chart/theme/chart.theme.js +360 -0
- package/components/chart/theme/chart.theme.js.map +1 -0
- package/components/container/accordion/accordion.component.js +202 -0
- package/components/container/accordion/accordion.component.js.map +1 -0
- package/components/container/accordion/accordion.props.js +16 -0
- package/components/container/accordion/accordion.props.js.map +1 -0
- package/components/container/accordion/accordion.styles.js +148 -0
- package/components/container/accordion/accordion.styles.js.map +1 -0
- package/components/container/accordion/accordionpane/accordionpane.component.js +87 -0
- package/components/container/accordion/accordionpane/accordionpane.component.js.map +1 -0
- package/components/container/accordion/accordionpane/accordionpane.props.js +17 -0
- package/components/container/accordion/accordionpane/accordionpane.props.js.map +1 -0
- package/components/container/accordion/accordionpane/accordionpane.styles.js +16 -0
- package/components/container/accordion/accordionpane/accordionpane.styles.js.map +1 -0
- package/components/container/container.component.js +194 -0
- package/components/container/container.component.js.map +1 -0
- package/components/container/container.props.js +18 -0
- package/components/container/container.props.js.map +1 -0
- package/components/container/container.styles.js +48 -0
- package/components/container/container.styles.js.map +1 -0
- package/components/container/layoutgrid/gridcolumn/gridcolumn.component.js +29 -0
- package/components/container/layoutgrid/gridcolumn/gridcolumn.component.js.map +1 -0
- package/components/container/layoutgrid/gridcolumn/gridcolumn.props.js +13 -0
- package/components/container/layoutgrid/gridcolumn/gridcolumn.props.js.map +1 -0
- package/components/container/layoutgrid/gridcolumn/gridcolumn.styles.js +12 -0
- package/components/container/layoutgrid/gridcolumn/gridcolumn.styles.js.map +1 -0
- package/components/container/layoutgrid/gridrow/gridrow.component.js +22 -0
- package/components/container/layoutgrid/gridrow/gridrow.component.js.map +1 -0
- package/components/container/layoutgrid/gridrow/gridrow.props.js +11 -0
- package/components/container/layoutgrid/gridrow/gridrow.props.js.map +1 -0
- package/components/container/layoutgrid/gridrow/gridrow.styles.js +42 -0
- package/components/container/layoutgrid/gridrow/gridrow.styles.js.map +1 -0
- package/components/container/layoutgrid/layoutgrid.component.js +44 -0
- package/components/container/layoutgrid/layoutgrid.component.js.map +1 -0
- package/components/container/layoutgrid/layoutgrid.props.js +11 -0
- package/components/container/layoutgrid/layoutgrid.props.js.map +1 -0
- package/components/container/layoutgrid/layoutgrid.styles.js +34 -0
- package/components/container/layoutgrid/layoutgrid.styles.js.map +1 -0
- package/components/container/linearlayout/linearlayout.component.js +70 -0
- package/components/container/linearlayout/linearlayout.component.js.map +1 -0
- package/components/container/linearlayout/linearlayout.props.js +15 -0
- package/components/container/linearlayout/linearlayout.props.js.map +1 -0
- package/components/container/linearlayout/linearlayout.styles.js +14 -0
- package/components/container/linearlayout/linearlayout.styles.js.map +1 -0
- package/components/container/linearlayout/linearlayoutitem/linearlayoutitem.component.js +25 -0
- package/components/container/linearlayout/linearlayoutitem/linearlayoutitem.component.js.map +1 -0
- package/components/container/linearlayout/linearlayoutitem/linearlayoutitem.props.js +13 -0
- package/components/container/linearlayout/linearlayoutitem/linearlayoutitem.props.js.map +1 -0
- package/components/container/linearlayout/linearlayoutitem/linearlayoutitem.styles.js +11 -0
- package/components/container/linearlayout/linearlayoutitem/linearlayoutitem.styles.js.map +1 -0
- package/components/container/panel/collapsible-pane.component.js +26 -0
- package/components/container/panel/collapsible-pane.component.js.map +1 -0
- package/components/container/panel/panel-content/panel-content.component.js +17 -0
- package/components/container/panel/panel-content/panel-content.component.js.map +1 -0
- package/components/container/panel/panel-content/panel-content.props.js +11 -0
- package/components/container/panel/panel-content/panel-content.props.js.map +1 -0
- package/components/container/panel/panel-content/panel-content.styles.js +16 -0
- package/components/container/panel/panel-content/panel-content.styles.js.map +1 -0
- package/components/container/panel/panel-footer/panel-footer.component.js +17 -0
- package/components/container/panel/panel-footer/panel-footer.component.js.map +1 -0
- package/components/container/panel/panel-footer/panel-footer.props.js +11 -0
- package/components/container/panel/panel-footer/panel-footer.props.js.map +1 -0
- package/components/container/panel/panel-footer/panel-footer.styles.js +19 -0
- package/components/container/panel/panel-footer/panel-footer.styles.js.map +1 -0
- package/components/container/panel/panel.component.js +163 -0
- package/components/container/panel/panel.component.js.map +1 -0
- package/components/container/panel/panel.props.js +26 -0
- package/components/container/panel/panel.props.js.map +1 -0
- package/components/container/panel/panel.styles.js +108 -0
- package/components/container/panel/panel.styles.js.map +1 -0
- package/components/container/partial-host.component.js +42 -0
- package/components/container/partial-host.component.js.map +1 -0
- package/components/container/tabs/tabheader/tabheader.component.js +240 -0
- package/components/container/tabs/tabheader/tabheader.component.js.map +1 -0
- package/components/container/tabs/tabheader/tabheader.props.js +18 -0
- package/components/container/tabs/tabheader/tabheader.props.js.map +1 -0
- package/components/container/tabs/tabheader/tabheader.styles.js +111 -0
- package/components/container/tabs/tabheader/tabheader.styles.js.map +1 -0
- package/components/container/tabs/tabpane/tabpane.component.js +82 -0
- package/components/container/tabs/tabpane/tabpane.component.js.map +1 -0
- package/components/container/tabs/tabpane/tabpane.props.js +19 -0
- package/components/container/tabs/tabpane/tabpane.props.js.map +1 -0
- package/components/container/tabs/tabpane/tabpane.styles.js +13 -0
- package/components/container/tabs/tabpane/tabpane.styles.js.map +1 -0
- package/components/container/tabs/tabs.component.js +299 -0
- package/components/container/tabs/tabs.component.js.map +1 -0
- package/components/container/tabs/tabs.props.js +16 -0
- package/components/container/tabs/tabs.props.js.map +1 -0
- package/components/container/tabs/tabs.styles.js +65 -0
- package/components/container/tabs/tabs.styles.js.map +1 -0
- package/components/container/tile/tile.component.js +54 -0
- package/components/container/tile/tile.component.js.map +1 -0
- package/components/container/tile/tile.props.js +13 -0
- package/components/container/tile/tile.props.js.map +1 -0
- package/components/container/tile/tile.styles.js +38 -0
- package/components/container/tile/tile.styles.js.map +1 -0
- package/components/container/wizard/wizard.component.js +550 -0
- package/components/container/wizard/wizard.component.js.map +1 -0
- package/components/container/wizard/wizard.props.js +31 -0
- package/components/container/wizard/wizard.props.js.map +1 -0
- package/components/container/wizard/wizard.styles.js +415 -0
- package/components/container/wizard/wizard.styles.js.map +1 -0
- package/components/container/wizard/wizardaction/wizardaction.component.js +17 -0
- package/components/container/wizard/wizardaction/wizardaction.component.js.map +1 -0
- package/components/container/wizard/wizardaction/wizardaction.props.js +11 -0
- package/components/container/wizard/wizardaction/wizardaction.props.js.map +1 -0
- package/components/container/wizard/wizardaction/wizardaction.styles.js +11 -0
- package/components/container/wizard/wizardaction/wizardaction.styles.js.map +1 -0
- package/components/container/wizard/wizardstep/wizardstep.component.js +92 -0
- package/components/container/wizard/wizardstep/wizardstep.component.js.map +1 -0
- package/components/container/wizard/wizardstep/wizardstep.props.js +22 -0
- package/components/container/wizard/wizardstep/wizardstep.props.js.map +1 -0
- package/components/container/wizard/wizardstep/wizardstep.styles.js +13 -0
- package/components/container/wizard/wizardstep/wizardstep.styles.js.map +1 -0
- package/components/data/card/card-content/card-content.component.js +46 -0
- package/components/data/card/card-content/card-content.component.js.map +1 -0
- package/components/data/card/card-content/card-content.props.js +12 -0
- package/components/data/card/card-content/card-content.props.js.map +1 -0
- package/components/data/card/card-content/card-content.styles.js +17 -0
- package/components/data/card/card-content/card-content.styles.js.map +1 -0
- package/components/data/card/card-footer/card-footer.component.js +18 -0
- package/components/data/card/card-footer/card-footer.component.js.map +1 -0
- package/components/data/card/card-footer/card-footer.props.js +11 -0
- package/components/data/card/card-footer/card-footer.props.js.map +1 -0
- package/components/data/card/card-footer/card-footer.styles.js +18 -0
- package/components/data/card/card-footer/card-footer.styles.js.map +1 -0
- package/components/data/card/card.component.js +92 -0
- package/components/data/card/card.component.js.map +1 -0
- package/components/data/card/card.props.js +27 -0
- package/components/data/card/card.props.js.map +1 -0
- package/components/data/card/card.styles.js +51 -0
- package/components/data/card/card.styles.js.map +1 -0
- package/components/data/form/form-action/form-action.component.js +35 -0
- package/components/data/form/form-action/form-action.component.js.map +1 -0
- package/components/data/form/form-action/form-action.props.js +18 -0
- package/components/data/form/form-action/form-action.props.js.map +1 -0
- package/components/data/form/form-action/form-action.styles.js +34 -0
- package/components/data/form/form-action/form-action.styles.js.map +1 -0
- package/components/data/form/form-body/form-body.component.js +20 -0
- package/components/data/form/form-body/form-body.component.js.map +1 -0
- package/components/data/form/form-body/form-body.props.js +11 -0
- package/components/data/form/form-body/form-body.props.js.map +1 -0
- package/components/data/form/form-body/form-body.styles.js +13 -0
- package/components/data/form/form-body/form-body.styles.js.map +1 -0
- package/components/data/form/form-field/form-field.component.js +257 -0
- package/components/data/form/form-field/form-field.component.js.map +1 -0
- package/components/data/form/form-field/form-field.props.js +35 -0
- package/components/data/form/form-field/form-field.props.js.map +1 -0
- package/components/data/form/form-field/form-field.styles.js +40 -0
- package/components/data/form/form-field/form-field.styles.js.map +1 -0
- package/components/data/form/form-footer/form-footer.component.js +20 -0
- package/components/data/form/form-footer/form-footer.component.js.map +1 -0
- package/components/data/form/form-footer/form-footer.props.js +11 -0
- package/components/data/form/form-footer/form-footer.props.js.map +1 -0
- package/components/data/form/form-footer/form-footer.styles.js +18 -0
- package/components/data/form/form-footer/form-footer.styles.js.map +1 -0
- package/components/data/form/form.component.js +465 -0
- package/components/data/form/form.component.js.map +1 -0
- package/components/data/form/form.props.js +38 -0
- package/components/data/form/form.props.js.map +1 -0
- package/components/data/form/form.styles.js +53 -0
- package/components/data/form/form.styles.js.map +1 -0
- package/components/data/list/list-action-template/list-action-template.component.js +28 -0
- package/components/data/list/list-action-template/list-action-template.component.js.map +1 -0
- package/components/data/list/list-action-template/list-action-template.props.js +12 -0
- package/components/data/list/list-action-template/list-action-template.props.js.map +1 -0
- package/components/data/list/list-action-template/list-action-template.styles.js +36 -0
- package/components/data/list/list-action-template/list-action-template.styles.js.map +1 -0
- package/components/data/list/list-template/list-template.component.js +55 -0
- package/components/data/list/list-template/list-template.component.js.map +1 -0
- package/components/data/list/list-template/list-template.props.js +13 -0
- package/components/data/list/list-template/list-template.props.js.map +1 -0
- package/components/data/list/list-template/list-template.styles.js +35 -0
- package/components/data/list/list-template/list-template.styles.js.map +1 -0
- package/components/data/list/list.component.js +690 -0
- package/components/data/list/list.component.js.map +1 -0
- package/components/data/list/list.props.js +53 -0
- package/components/data/list/list.props.js.map +1 -0
- package/components/data/list/list.styles.js +151 -0
- package/components/data/list/list.styles.js.map +1 -0
- package/components/data/liveform/liveform.component.js +98 -0
- package/components/data/liveform/liveform.component.js.map +1 -0
- package/components/device/barcodescanner/barcodescanner.component.js +69 -0
- package/components/device/barcodescanner/barcodescanner.component.js.map +1 -0
- package/components/device/barcodescanner/barcodescanner.props.js +19 -0
- package/components/device/barcodescanner/barcodescanner.props.js.map +1 -0
- package/components/device/barcodescanner/barcodescanner.styles.js +38 -0
- package/components/device/barcodescanner/barcodescanner.styles.js.map +1 -0
- package/components/device/camera/camera.component.js +84 -0
- package/components/device/camera/camera.component.js.map +1 -0
- package/components/device/camera/camera.props.js +25 -0
- package/components/device/camera/camera.props.js.map +1 -0
- package/components/device/camera/camera.styles.js +39 -0
- package/components/device/camera/camera.styles.js.map +1 -0
- package/components/dialogs/alertdialog/alertdialog.component.js +72 -0
- package/components/dialogs/alertdialog/alertdialog.component.js.map +1 -0
- package/components/dialogs/alertdialog/alertdialog.props.js +24 -0
- package/components/dialogs/alertdialog/alertdialog.props.js.map +1 -0
- package/components/dialogs/alertdialog/alertdialog.styles.js +34 -0
- package/components/dialogs/alertdialog/alertdialog.styles.js.map +1 -0
- package/components/dialogs/confirmdialog/confirmdialog.component.js +78 -0
- package/components/dialogs/confirmdialog/confirmdialog.component.js.map +1 -0
- package/components/dialogs/confirmdialog/confirmdialog.props.js +24 -0
- package/components/dialogs/confirmdialog/confirmdialog.props.js.map +1 -0
- package/components/dialogs/confirmdialog/confirmdialog.styles.js +58 -0
- package/components/dialogs/confirmdialog/confirmdialog.styles.js.map +1 -0
- package/components/dialogs/dialog/dialog.component.js +107 -0
- package/components/dialogs/dialog/dialog.component.js.map +1 -0
- package/components/dialogs/dialog/dialog.props.js +25 -0
- package/components/dialogs/dialog/dialog.props.js.map +1 -0
- package/components/dialogs/dialog/dialog.styles.js +78 -0
- package/components/dialogs/dialog/dialog.styles.js.map +1 -0
- package/components/dialogs/dialogactions/dialogactions.component.js +22 -0
- package/components/dialogs/dialogactions/dialogactions.component.js.map +1 -0
- package/components/dialogs/dialogactions/dialogactions.props.js +11 -0
- package/components/dialogs/dialogactions/dialogactions.props.js.map +1 -0
- package/components/dialogs/dialogactions/dialogactions.styles.js +17 -0
- package/components/dialogs/dialogactions/dialogactions.styles.js.map +1 -0
- package/components/dialogs/dialogcontent/dialogcontent.component.js +31 -0
- package/components/dialogs/dialogcontent/dialogcontent.component.js.map +1 -0
- package/components/dialogs/dialogcontent/dialogcontent.props.js +11 -0
- package/components/dialogs/dialogcontent/dialogcontent.props.js.map +1 -0
- package/components/dialogs/dialogcontent/dialogcontent.styles.js +15 -0
- package/components/dialogs/dialogcontent/dialogcontent.styles.js.map +1 -0
- package/components/input/basedataset/basedataset.component.js +232 -0
- package/components/input/basedataset/basedataset.component.js.map +1 -0
- package/components/input/basedataset/basedataset.props.js +33 -0
- package/components/input/basedataset/basedataset.props.js.map +1 -0
- package/components/input/basedataset/basedataset.styles.js +11 -0
- package/components/input/basedataset/basedataset.styles.js.map +1 -0
- package/components/input/baseinput/baseinput.component.js +203 -0
- package/components/input/baseinput/baseinput.component.js.map +1 -0
- package/components/input/baseinput/baseinput.props.js +32 -0
- package/components/input/baseinput/baseinput.props.js.map +1 -0
- package/components/input/baseinput/baseinput.styles.js +11 -0
- package/components/input/baseinput/baseinput.styles.js.map +1 -0
- package/components/input/basenumber/basenumber.component.js +357 -0
- package/components/input/basenumber/basenumber.component.js.map +1 -0
- package/components/input/basenumber/basenumber.props.js +28 -0
- package/components/input/basenumber/basenumber.props.js.map +1 -0
- package/components/input/basenumber/basenumber.styles.js +11 -0
- package/components/input/basenumber/basenumber.styles.js.map +1 -0
- package/components/input/calendar/calendar.component.js +173 -0
- package/components/input/calendar/calendar.component.js.map +1 -0
- package/components/input/calendar/calendar.props.js +14 -0
- package/components/input/calendar/calendar.props.js.map +1 -0
- package/components/input/calendar/calendar.styles.js +162 -0
- package/components/input/calendar/calendar.styles.js.map +1 -0
- package/components/input/calendar/views/month-view.js +211 -0
- package/components/input/calendar/views/month-view.js.map +1 -0
- package/components/input/calendar/views/month-view.styles.js +39 -0
- package/components/input/calendar/views/month-view.styles.js.map +1 -0
- package/components/input/checkbox/checkbox.component.js +124 -0
- package/components/input/checkbox/checkbox.component.js.map +1 -0
- package/components/input/checkbox/checkbox.props.js +18 -0
- package/components/input/checkbox/checkbox.props.js.map +1 -0
- package/components/input/checkbox/checkbox.styles.js +94 -0
- package/components/input/checkbox/checkbox.styles.js.map +1 -0
- package/components/input/checkboxset/checkboxset.component.js +159 -0
- package/components/input/checkboxset/checkboxset.component.js.map +1 -0
- package/components/input/checkboxset/checkboxset.props.js +21 -0
- package/components/input/checkboxset/checkboxset.props.js.map +1 -0
- package/components/input/checkboxset/checkboxset.styles.js +88 -0
- package/components/input/checkboxset/checkboxset.styles.js.map +1 -0
- package/components/input/chips/chips.component.js +410 -0
- package/components/input/chips/chips.component.js.map +1 -0
- package/components/input/chips/chips.props.js +30 -0
- package/components/input/chips/chips.props.js.map +1 -0
- package/components/input/chips/chips.styles.js +221 -0
- package/components/input/chips/chips.styles.js.map +1 -0
- package/components/input/composite/composite.component.js +25 -0
- package/components/input/composite/composite.component.js.map +1 -0
- package/components/input/composite/composite.props.js +12 -0
- package/components/input/composite/composite.props.js.map +1 -0
- package/components/input/composite/composite.styles.js +29 -0
- package/components/input/composite/composite.styles.js.map +1 -0
- package/components/input/currency/currency.component.js +120 -0
- package/components/input/currency/currency.component.js.map +1 -0
- package/components/input/currency/currency.props.js +13 -0
- package/components/input/currency/currency.props.js.map +1 -0
- package/components/input/currency/currency.styles.js +148 -0
- package/components/input/currency/currency.styles.js.map +1 -0
- package/components/input/epoch/base-datetime.component.js +496 -0
- package/components/input/epoch/base-datetime.component.js.map +1 -0
- package/components/input/epoch/date/date.component.js +20 -0
- package/components/input/epoch/date/date.component.js.map +1 -0
- package/components/input/epoch/date/date.props.js +11 -0
- package/components/input/epoch/date/date.props.js.map +1 -0
- package/components/input/epoch/date/date.styles.js +48 -0
- package/components/input/epoch/date/date.styles.js.map +1 -0
- package/components/input/epoch/date-picker.component.js +136 -0
- package/components/input/epoch/date-picker.component.js.map +1 -0
- package/components/input/epoch/datetime/datetime.component.js +20 -0
- package/components/input/epoch/datetime/datetime.component.js.map +1 -0
- package/components/input/epoch/datetime/datetime.props.js +36 -0
- package/components/input/epoch/datetime/datetime.props.js.map +1 -0
- package/components/input/epoch/datetime/datetime.styles.js +163 -0
- package/components/input/epoch/datetime/datetime.styles.js.map +1 -0
- package/components/input/epoch/time/time.component.js +26 -0
- package/components/input/epoch/time/time.component.js.map +1 -0
- package/components/input/epoch/time/time.props.js +15 -0
- package/components/input/epoch/time/time.props.js.map +1 -0
- package/components/input/epoch/time/time.styles.js +48 -0
- package/components/input/epoch/time/time.styles.js.map +1 -0
- package/components/input/epoch/wheel-date-picker.component.js +206 -0
- package/components/input/epoch/wheel-date-picker.component.js.map +1 -0
- package/components/input/epoch/wheel-time-picker.component.js +107 -0
- package/components/input/epoch/wheel-time-picker.component.js.map +1 -0
- package/components/input/epoch/wheelpicker/wheelpicker.component.js +97 -0
- package/components/input/epoch/wheelpicker/wheelpicker.component.js.map +1 -0
- package/components/input/epoch/wheelpicker/wheelpicker.props.js +17 -0
- package/components/input/epoch/wheelpicker/wheelpicker.props.js.map +1 -0
- package/components/input/epoch/wheelpicker/wheelpicker.styles.js +55 -0
- package/components/input/epoch/wheelpicker/wheelpicker.styles.js.map +1 -0
- package/components/input/epoch/wheelpickermodal/date/date-picker-modal.component.js +85 -0
- package/components/input/epoch/wheelpickermodal/date/date-picker-modal.component.js.map +1 -0
- package/components/input/epoch/wheelpickermodal/date/date-picker-modal.props.js +20 -0
- package/components/input/epoch/wheelpickermodal/date/date-picker-modal.props.js.map +1 -0
- package/components/input/epoch/wheelpickermodal/styles/datetime-picker-modal.styles.js +66 -0
- package/components/input/epoch/wheelpickermodal/styles/datetime-picker-modal.styles.js.map +1 -0
- package/components/input/epoch/wheelpickermodal/time/time-picker-modal.component.js +83 -0
- package/components/input/epoch/wheelpickermodal/time/time-picker-modal.component.js.map +1 -0
- package/components/input/epoch/wheelpickermodal/time/time-picker-modal.props.js +19 -0
- package/components/input/epoch/wheelpickermodal/time/time-picker-modal.props.js.map +1 -0
- package/components/input/fileupload/fileupload.component.js +70 -0
- package/components/input/fileupload/fileupload.component.js.map +1 -0
- package/components/input/fileupload/fileupload.props.js +19 -0
- package/components/input/fileupload/fileupload.props.js.map +1 -0
- package/components/input/fileupload/fileupload.styles.js +27 -0
- package/components/input/fileupload/fileupload.styles.js.map +1 -0
- package/components/input/number/number.component.js +86 -0
- package/components/input/number/number.component.js.map +1 -0
- package/components/input/number/number.props.js +13 -0
- package/components/input/number/number.props.js.map +1 -0
- package/components/input/number/number.styles.js +93 -0
- package/components/input/number/number.styles.js.map +1 -0
- package/components/input/radioset/radioset.component.js +147 -0
- package/components/input/radioset/radioset.component.js.map +1 -0
- package/components/input/radioset/radioset.props.js +20 -0
- package/components/input/radioset/radioset.props.js.map +1 -0
- package/components/input/radioset/radioset.styles.js +102 -0
- package/components/input/radioset/radioset.styles.js.map +1 -0
- package/components/input/rating/rating.component.js +155 -0
- package/components/input/rating/rating.component.js.map +1 -0
- package/components/input/rating/rating.props.js +25 -0
- package/components/input/rating/rating.props.js.map +1 -0
- package/components/input/rating/rating.styles.js +48 -0
- package/components/input/rating/rating.styles.js.map +1 -0
- package/components/input/select/select.component.js +303 -0
- package/components/input/select/select.component.js.map +1 -0
- package/components/input/select/select.props.js +12 -0
- package/components/input/select/select.props.js.map +1 -0
- package/components/input/select/select.styles.js +178 -0
- package/components/input/select/select.styles.js.map +1 -0
- package/components/input/slider/slider.component.js +538 -0
- package/components/input/slider/slider.component.js.map +1 -0
- package/components/input/slider/slider.props.js +20 -0
- package/components/input/slider/slider.props.js.map +1 -0
- package/components/input/slider/slider.styles.js +95 -0
- package/components/input/slider/slider.styles.js.map +1 -0
- package/components/input/switch/switch.component.js +99 -0
- package/components/input/switch/switch.component.js.map +1 -0
- package/components/input/switch/switch.props.js +13 -0
- package/components/input/switch/switch.props.js.map +1 -0
- package/components/input/switch/switch.styles.js +192 -0
- package/components/input/switch/switch.styles.js.map +1 -0
- package/components/input/text/text.component.js +132 -0
- package/components/input/text/text.component.js.map +1 -0
- package/components/input/text/text.props.js +21 -0
- package/components/input/text/text.props.js.map +1 -0
- package/components/input/text/text.styles.js +130 -0
- package/components/input/text/text.styles.js.map +1 -0
- package/components/input/textarea/textarea.component.js +88 -0
- package/components/input/textarea/textarea.component.js.map +1 -0
- package/components/input/textarea/textarea.props.js +15 -0
- package/components/input/textarea/textarea.props.js.map +1 -0
- package/components/input/textarea/textarea.styles.js +84 -0
- package/components/input/textarea/textarea.styles.js.map +1 -0
- package/components/input/toggle/toggle.component.js +202 -0
- package/components/input/toggle/toggle.component.js.map +1 -0
- package/components/input/toggle/toggle.props.js +32 -0
- package/components/input/toggle/toggle.props.js.map +1 -0
- package/components/input/toggle/toggle.styles.js +97 -0
- package/components/input/toggle/toggle.styles.js.map +1 -0
- package/components/navigation/appnavbar/appnavbar.component.js +114 -0
- package/components/navigation/appnavbar/appnavbar.component.js.map +1 -0
- package/components/navigation/appnavbar/appnavbar.props.js +22 -0
- package/components/navigation/appnavbar/appnavbar.props.js.map +1 -0
- package/components/navigation/appnavbar/appnavbar.styles.js +169 -0
- package/components/navigation/appnavbar/appnavbar.styles.js.map +1 -0
- package/components/navigation/basenav/basenav.component.js +72 -0
- package/components/navigation/basenav/basenav.component.js.map +1 -0
- package/components/navigation/basenav/basenav.props.js +18 -0
- package/components/navigation/basenav/basenav.props.js.map +1 -0
- package/components/navigation/basenav/basenav.styles.js +11 -0
- package/components/navigation/basenav/basenav.styles.js.map +1 -0
- package/components/navigation/menu/menu.component.js +66 -0
- package/components/navigation/menu/menu.component.js.map +1 -0
- package/components/navigation/menu/menu.props.js +15 -0
- package/components/navigation/menu/menu.props.js.map +1 -0
- package/components/navigation/menu/menu.styles.js +70 -0
- package/components/navigation/menu/menu.styles.js.map +1 -0
- package/components/navigation/navbar/navbar.component.js +78 -0
- package/components/navigation/navbar/navbar.component.js.map +1 -0
- package/components/navigation/navbar/navbar.props.js +16 -0
- package/components/navigation/navbar/navbar.props.js.map +1 -0
- package/components/navigation/navbar/navbar.styles.js +41 -0
- package/components/navigation/navbar/navbar.styles.js.map +1 -0
- package/components/navigation/navitem/navitem.component.js +70 -0
- package/components/navigation/navitem/navitem.component.js.map +1 -0
- package/components/navigation/navitem/navitem.props.js +19 -0
- package/components/navigation/navitem/navitem.props.js.map +1 -0
- package/components/navigation/navitem/navitem.styles.js +80 -0
- package/components/navigation/navitem/navitem.styles.js.map +1 -0
- package/components/navigation/popover/popover.component.js +220 -0
- package/components/navigation/popover/popover.component.js.map +1 -0
- package/components/navigation/popover/popover.props.js +34 -0
- package/components/navigation/popover/popover.props.js.map +1 -0
- package/components/navigation/popover/popover.styles.js +92 -0
- package/components/navigation/popover/popover.styles.js.map +1 -0
- package/components/page/content/content.component.js +16 -0
- package/components/page/content/content.component.js.map +1 -0
- package/components/page/content/content.props.js +2 -0
- package/components/page/content/content.props.js.map +1 -0
- package/components/page/content/content.styles.js +13 -0
- package/components/page/content/content.styles.js.map +1 -0
- package/components/page/left-panel/left-panel.component.js +64 -0
- package/components/page/left-panel/left-panel.component.js.map +1 -0
- package/components/page/left-panel/left-panel.props.js +12 -0
- package/components/page/left-panel/left-panel.props.js.map +1 -0
- package/components/page/left-panel/left-panel.styles.js +18 -0
- package/components/page/left-panel/left-panel.styles.js.map +1 -0
- package/components/page/page-content/page-content.component.js +207 -0
- package/components/page/page-content/page-content.component.js.map +1 -0
- package/components/page/page-content/page-content.props.js +18 -0
- package/components/page/page-content/page-content.props.js.map +1 -0
- package/components/page/page-content/page-content.styles.js +20 -0
- package/components/page/page-content/page-content.styles.js.map +1 -0
- package/components/page/page.component.js +48 -0
- package/components/page/page.component.js.map +1 -0
- package/components/page/page.props.js +15 -0
- package/components/page/page.props.js.map +1 -0
- package/components/page/page.styles.js +24 -0
- package/components/page/page.styles.js.map +1 -0
- package/components/page/partial/partial.component.js +42 -0
- package/components/page/partial/partial.component.js.map +1 -0
- package/components/page/partial/partial.props.js +2 -0
- package/components/page/partial/partial.props.js.map +1 -0
- package/components/page/partial/partial.styles.js +18 -0
- package/components/page/partial/partial.styles.js.map +1 -0
- package/components/page/partial-container/partial-container.component.js +35 -0
- package/components/page/partial-container/partial-container.component.js.map +1 -0
- package/components/page/partial-container/partial-container.props.js +13 -0
- package/components/page/partial-container/partial-container.props.js.map +1 -0
- package/components/page/partial-container/partial-container.styles.js +14 -0
- package/components/page/partial-container/partial-container.styles.js.map +1 -0
- package/components/page/tabbar/curve.js +84 -0
- package/components/page/tabbar/curve.js.map +1 -0
- package/components/page/tabbar/tabbar.component.js +258 -0
- package/components/page/tabbar/tabbar.component.js.map +1 -0
- package/components/page/tabbar/tabbar.props.js +29 -0
- package/components/page/tabbar/tabbar.props.js.map +1 -0
- package/components/page/tabbar/tabbar.styles.js +160 -0
- package/components/page/tabbar/tabbar.styles.js.map +1 -0
- package/components/prefab/prefab-container.component.js +42 -0
- package/components/prefab/prefab-container.component.js.map +1 -0
- package/components/prefab/prefab-container.props.js +2 -0
- package/components/prefab/prefab-container.props.js.map +1 -0
- package/components/prefab/prefab-container.styles.js +16 -0
- package/components/prefab/prefab-container.styles.js.map +1 -0
- package/components-prism/advanced/carousel/carousel.component.js +322 -0
- package/components-prism/advanced/carousel/carousel.component.js.map +1 -0
- package/components-prism/advanced/carousel/carousel.props.js +24 -0
- package/components-prism/advanced/carousel/carousel.props.js.map +1 -0
- package/components-prism/advanced/carousel/carousel.styles.js +179 -0
- package/components-prism/advanced/carousel/carousel.styles.js.map +1 -0
- package/components-prism/basic/progress-bar/progress-bar.component.js +227 -0
- package/components-prism/basic/progress-bar/progress-bar.component.js.map +1 -0
- package/components-prism/basic/progress-bar/progress-bar.props.js +20 -0
- package/components-prism/basic/progress-bar/progress-bar.props.js.map +1 -0
- package/components-prism/basic/progress-bar/progress-bar.styles.js +43 -0
- package/components-prism/basic/progress-bar/progress-bar.styles.js.map +1 -0
- package/components-prism/basic/progress-circle/progress-circle.component.js +80 -0
- package/components-prism/basic/progress-circle/progress-circle.component.js.map +1 -0
- package/components-prism/basic/progress-circle/progress-circle.props.js +19 -0
- package/components-prism/basic/progress-circle/progress-circle.props.js.map +1 -0
- package/components-prism/basic/progress-circle/progress-circle.styles.js +82 -0
- package/components-prism/basic/progress-circle/progress-circle.styles.js.map +1 -0
- package/components-prism/data/list/list-template/list-template.styles.js +27 -0
- package/components-prism/data/list/list-template/list-template.styles.js.map +1 -0
- package/components-prism/input/slider/Thumb.js +35 -0
- package/components-prism/input/slider/Thumb.js.map +1 -0
- package/components-prism/input/slider/slider.component.js +108 -0
- package/components-prism/input/slider/slider.component.js.map +1 -0
- package/components-prism/input/slider/slider.props.js +20 -0
- package/components-prism/input/slider/slider.props.js.map +1 -0
- package/components-prism/input/slider/slider.styles.js +135 -0
- package/components-prism/input/slider/slider.styles.js.map +1 -0
- package/components-prism/input/slider/withSlider.js +339 -0
- package/components-prism/input/slider/withSlider.js.map +1 -0
- package/core/AppConfig.js +2 -0
- package/core/AppConfig.js.map +1 -0
- package/core/accessibility.js +195 -0
- package/core/accessibility.js.map +1 -0
- package/core/advanced-promise-rejection-tracker.js +208 -0
- package/core/advanced-promise-rejection-tracker.js.map +1 -0
- package/core/asset.provider.js +5 -0
- package/core/asset.provider.js.map +1 -0
- package/core/auto-layout-host.component.js +31 -0
- package/core/auto-layout-host.component.js.map +1 -0
- package/core/auto-layout.utils.js +250 -0
- package/core/auto-layout.utils.js.map +1 -0
- package/core/base.component.js +671 -0
- package/core/base.component.js.map +1 -0
- package/core/components/error-fallback/error-fallback.component.js +172 -0
- package/core/components/error-fallback/error-fallback.component.js.map +1 -0
- package/core/components/error-fallback/error-fallback.styles.js +227 -0
- package/core/components/error-fallback/error-fallback.styles.js.map +1 -0
- package/core/components/floatinglabel.component.js +86 -0
- package/core/components/floatinglabel.component.js.map +1 -0
- package/core/components/sticky-base.component.js +54 -0
- package/core/components/sticky-base.component.js.map +1 -0
- package/core/components/sticky-container.component.js +34 -0
- package/core/components/sticky-container.component.js.map +1 -0
- package/core/components/sticky-container.styles.js +98 -0
- package/core/components/sticky-container.styles.js.map +1 -0
- package/core/components/sticky-nav.component.js +28 -0
- package/core/components/sticky-nav.component.js.map +1 -0
- package/core/components/textinput.component.js +226 -0
- package/core/components/textinput.component.js.map +1 -0
- package/core/components-prism/progress-circle.js +217 -0
- package/core/components-prism/progress-circle.js.map +1 -0
- package/core/constant.service.js +22 -0
- package/core/constant.service.js.map +1 -0
- package/core/constants/currency-constants.js +1066 -0
- package/core/constants/currency-constants.js.map +1 -0
- package/core/currency-constants.js +1065 -0
- package/core/currency-constants.js.map +1 -0
- package/core/device/av-service.js +8 -0
- package/core/device/av-service.js.map +1 -0
- package/core/device/calendar-service.js +8 -0
- package/core/device/calendar-service.js.map +1 -0
- package/core/device/camera-service.js +11 -0
- package/core/device/camera-service.js.map +1 -0
- package/core/device/contacts-service.js +8 -0
- package/core/device/contacts-service.js.map +1 -0
- package/core/device/fileupload-service.js +8 -0
- package/core/device/fileupload-service.js.map +1 -0
- package/core/device/location-service.js +8 -0
- package/core/device/location-service.js.map +1 -0
- package/core/device/openfile-service.js +10 -0
- package/core/device/openfile-service.js.map +1 -0
- package/core/device/scan-service.js +11 -0
- package/core/device/scan-service.js.map +1 -0
- package/core/display.manager.js +5 -0
- package/core/display.manager.js.map +1 -0
- package/core/error-boundary.component.js +64 -0
- package/core/error-boundary.component.js.map +1 -0
- package/core/event-notifier.js +69 -0
- package/core/event-notifier.js.map +1 -0
- package/core/file-extension-types.js +70 -0
- package/core/file-extension-types.js.map +1 -0
- package/core/fixed-view.component.js +94 -0
- package/core/fixed-view.component.js.map +1 -0
- package/core/formatters.js +70 -0
- package/core/formatters.js.map +1 -0
- package/core/global-error-handler.service.js +103 -0
- package/core/global-error-handler.service.js.map +1 -0
- package/core/i18n.service.js +2 -0
- package/core/i18n.service.js.map +1 -0
- package/core/if.component.js +35 -0
- package/core/if.component.js.map +1 -0
- package/core/imageSizeEstimator.js +51 -0
- package/core/imageSizeEstimator.js.map +1 -0
- package/core/injector.js +27 -0
- package/core/injector.js.map +1 -0
- package/core/key.extractor.js +21 -0
- package/core/key.extractor.js.map +1 -0
- package/core/logger.js +123 -0
- package/core/logger.js.map +1 -0
- package/core/modal.service.js +5 -0
- package/core/modal.service.js.map +1 -0
- package/core/navigation.service.js +70 -0
- package/core/navigation.service.js.map +1 -0
- package/core/network.service.js +327 -0
- package/core/network.service.js.map +1 -0
- package/core/partial.service.js +5 -0
- package/core/partial.service.js.map +1 -0
- package/core/props.provider.js +88 -0
- package/core/props.provider.js.map +1 -0
- package/core/responsive.utils.js +51 -0
- package/core/responsive.utils.js.map +1 -0
- package/core/screen-capture-protection.service.js +5 -0
- package/core/screen-capture-protection.service.js.map +1 -0
- package/core/scroll-view.component.js +52 -0
- package/core/scroll-view.component.js.map +1 -0
- package/core/secure-storage.service.js +55 -0
- package/core/secure-storage.service.js.map +1 -0
- package/core/security.service.js +5 -0
- package/core/security.service.js.map +1 -0
- package/core/spinner.service.js +5 -0
- package/core/spinner.service.js.map +1 -0
- package/core/sticky-view.component.js +51 -0
- package/core/sticky-view.component.js.map +1 -0
- package/core/sticky-wrapper.js +133 -0
- package/core/sticky-wrapper.js.map +1 -0
- package/core/storage.service.js +38 -0
- package/core/storage.service.js.map +1 -0
- package/core/tappable.component.js +163 -0
- package/core/tappable.component.js.map +1 -0
- package/core/testid.provider.js +5 -0
- package/core/testid.provider.js.map +1 -0
- package/core/toast.service.js +5 -0
- package/core/toast.service.js.map +1 -0
- package/core/ui-preferences.context.js +10 -0
- package/core/ui-preferences.context.js.map +1 -0
- package/core/utils.js +867 -0
- package/core/utils.js.map +1 -0
- package/core/viewport.js +45 -0
- package/core/viewport.js.map +1 -0
- package/core/wm-component-tree.js +58 -0
- package/core/wm-component-tree.js.map +1 -0
- package/gestures/carousel-swipe.animation.js +225 -0
- package/gestures/carousel-swipe.animation.js.map +1 -0
- package/gestures/swipe.animation.js +220 -0
- package/gestures/swipe.animation.js.map +1 -0
- package/gestures-prism/carousel.flatlist.js +349 -0
- package/gestures-prism/carousel.flatlist.js.map +1 -0
- package/index.js +2 -0
- package/index.js.map +1 -0
- package/npm-shrinkwrap.json +26212 -0
- package/package-lock.json +26212 -0
- package/package.json +291 -0
- package/runtime/App.js +763 -0
- package/runtime/App.js.map +1 -0
- package/runtime/App.navigator.js +113 -0
- package/runtime/App.navigator.js.map +1 -0
- package/runtime/base-customwidget.component.js +52 -0
- package/runtime/base-customwidget.component.js.map +1 -0
- package/runtime/base-fragment.component.js +418 -0
- package/runtime/base-fragment.component.js.map +1 -0
- package/runtime/base-page.component.js +233 -0
- package/runtime/base-page.component.js.map +1 -0
- package/runtime/base-partial.component.js +63 -0
- package/runtime/base-partial.component.js.map +1 -0
- package/runtime/base-prefab.component.js +87 -0
- package/runtime/base-prefab.component.js.map +1 -0
- package/runtime/lib-patch.js +25 -0
- package/runtime/lib-patch.js.map +1 -0
- package/runtime/memo.component.js +44 -0
- package/runtime/memo.component.js.map +1 -0
- package/runtime/navigator/drawer.navigator.js +41 -0
- package/runtime/navigator/drawer.navigator.js.map +1 -0
- package/runtime/navigator/stack.navigator.js +78 -0
- package/runtime/navigator/stack.navigator.js.map +1 -0
- package/runtime/platform.api.js +7 -0
- package/runtime/platform.api.js.map +1 -0
- package/runtime/services/app-display-manager.service.js +52 -0
- package/runtime/services/app-display-manager.service.js.map +1 -0
- package/runtime/services/app-i18n.service.js +89 -0
- package/runtime/services/app-i18n.service.js.map +1 -0
- package/runtime/services/app-modal.service.js +73 -0
- package/runtime/services/app-modal.service.js.map +1 -0
- package/runtime/services/app-security.service.js +256 -0
- package/runtime/services/app-security.service.js.map +1 -0
- package/runtime/services/app-spinner.service.js +74 -0
- package/runtime/services/app-spinner.service.js.map +1 -0
- package/runtime/services/app-toast.service.js +60 -0
- package/runtime/services/app-toast.service.js.map +1 -0
- package/runtime/services/device/calendar-service.js +95 -0
- package/runtime/services/device/calendar-service.js.map +1 -0
- package/runtime/services/device/camera-service.js +377 -0
- package/runtime/services/device/camera-service.js.map +1 -0
- package/runtime/services/device/contacts-service.js +34 -0
- package/runtime/services/device/contacts-service.js.map +1 -0
- package/runtime/services/device/location-service.js +16 -0
- package/runtime/services/device/location-service.js.map +1 -0
- package/runtime/services/device/permission-service.js +5 -0
- package/runtime/services/device/permission-service.js.map +1 -0
- package/runtime/services/device/permissions.js +45 -0
- package/runtime/services/device/permissions.js.map +1 -0
- package/runtime/services/device/scan-service.js +163 -0
- package/runtime/services/device/scan-service.js.map +1 -0
- package/runtime/services/partial.service.js +26 -0
- package/runtime/services/partial.service.js.map +1 -0
- package/runtime/services/webprocess.service.js +107 -0
- package/runtime/services/webprocess.service.js.map +1 -0
- package/runtime/watcher.js +147 -0
- package/runtime/watcher.js.map +1 -0
- package/styles/MediaQueryList.js +19 -0
- package/styles/MediaQueryList.js.map +1 -0
- package/styles/background.component.js +317 -0
- package/styles/background.component.js.map +1 -0
- package/styles/calc.js +165 -0
- package/styles/calc.js.map +1 -0
- package/styles/color-mix.js +82 -0
- package/styles/color-mix.js.map +1 -0
- package/styles/style-prop.validator.js +467 -0
- package/styles/style-prop.validator.js.map +1 -0
- package/styles/style-props.js +105 -0
- package/styles/style-props.js.map +1 -0
- package/styles/theme.js +725 -0
- package/styles/theme.js.map +1 -0
- package/styles/theme.variables.js +444 -0
- package/styles/theme.variables.js.map +1 -0
- package/variables/base-variable.js +125 -0
- package/variables/base-variable.js.map +1 -0
- package/variables/device/calendar/create-event.operation.js +53 -0
- package/variables/device/calendar/create-event.operation.js.map +1 -0
- package/variables/device/calendar/delete-event.operation.js +15 -0
- package/variables/device/calendar/delete-event.operation.js.map +1 -0
- package/variables/device/calendar/get-events.operation.js +15 -0
- package/variables/device/calendar/get-events.operation.js.map +1 -0
- package/variables/device/camera/capture-image.operation.js +13 -0
- package/variables/device/camera/capture-image.operation.js.map +1 -0
- package/variables/device/camera/capture-video.operation.js +12 -0
- package/variables/device/camera/capture-video.operation.js.map +1 -0
- package/variables/device/contacts/get-contacts.operation.js +15 -0
- package/variables/device/contacts/get-contacts.operation.js.map +1 -0
- package/variables/device/device/app-info.operation.js +13 -0
- package/variables/device/device/app-info.operation.js.map +1 -0
- package/variables/device/device/current-geo-position.operation.js +15 -0
- package/variables/device/device/current-geo-position.operation.js.map +1 -0
- package/variables/device/device/device-info.operation.js +12 -0
- package/variables/device/device/device-info.operation.js.map +1 -0
- package/variables/device/device/network-info.operation.js +33 -0
- package/variables/device/device/network-info.operation.js.map +1 -0
- package/variables/device/device/vibrate.operation.js +8 -0
- package/variables/device/device/vibrate.operation.js.map +1 -0
- package/variables/device/file/open-file.operation.js +71 -0
- package/variables/device/file/open-file.operation.js.map +1 -0
- package/variables/device/file/upload-file.operation.js +66 -0
- package/variables/device/file/upload-file.operation.js.map +1 -0
- package/variables/device/operation.provider.js +11 -0
- package/variables/device/operation.provider.js.map +1 -0
- package/variables/device/scan/scan.operation.js +15 -0
- package/variables/device/scan/scan.operation.js.map +1 -0
- package/variables/device-variable.js +28 -0
- package/variables/device-variable.js.map +1 -0
- package/variables/http.service.js +84 -0
- package/variables/http.service.js.map +1 -0
- package/variables/live-variable.js +130 -0
- package/variables/live-variable.js.map +1 -0
- package/variables/model-variable.js +47 -0
- package/variables/model-variable.js.map +1 -0
- package/variables/service-variable.js +143 -0
- package/variables/service-variable.js.map +1 -0
- package/variables/utils/dataset-util.js +139 -0
- package/variables/utils/dataset-util.js.map +1 -0
- package/variables/utils/inflight-queue.js +114 -0
- package/variables/utils/inflight-queue.js.map +1 -0
- package/variables/utils/variable.constants.js +22 -0
- package/variables/utils/variable.constants.js.map +1 -0
- package/variables/utils/variable.utils.js +189 -0
- package/variables/utils/variable.utils.js.map +1 -0
- package/wm-namespace.js +15 -0
- package/wm-namespace.js.map +1 -0
package/styles/theme.js
ADDED
|
@@ -0,0 +1,725 @@
|
|
|
1
|
+
var _Theme;
|
|
2
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
3
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
4
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
5
|
+
import { cloneDeep, isNil, forEach, flatten, isArray, isEmpty, isObject, isString, get, reverse, isNumber } from 'lodash';
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import { camelCase } from 'lodash-es';
|
|
8
|
+
import { Dimensions, Platform } from 'react-native';
|
|
9
|
+
import { deepCopy, isWebPreviewMode } from '@wavemaker-ai/app-rn-runtime/core/utils';
|
|
10
|
+
import EventNotifier from '@wavemaker-ai/app-rn-runtime/core/event-notifier';
|
|
11
|
+
import ViewPort, { EVENTS as ViewPortEvents } from '@wavemaker-ai/app-rn-runtime/core/viewport';
|
|
12
|
+
import MediaQueryList from './MediaQueryList';
|
|
13
|
+
import ThemeVariables from './theme.variables';
|
|
14
|
+
import ColorMix from './color-mix';
|
|
15
|
+
import { getErrorMessage, getStyleReference, isValidStyleProp } from './style-prop.validator';
|
|
16
|
+
import injector from '@wavemaker-ai/app-rn-runtime/core/injector';
|
|
17
|
+
import { isNativeStyle } from '@wavemaker-ai/app-rn-runtime/core/utils';
|
|
18
|
+
export const DEFAULT_CLASS = 'DEFAULT_CLASS';
|
|
19
|
+
if (typeof window !== "undefined") {
|
|
20
|
+
// @ts-ignore: does not properly extend MediaQueryList
|
|
21
|
+
window.matchMedia = query => new MediaQueryList(query);
|
|
22
|
+
}
|
|
23
|
+
export const DEVICE_BREAK_POINTS = {
|
|
24
|
+
'MIN_EXTRA_SMALL_DEVICE': '0px',
|
|
25
|
+
'MAX_EXTRA_SMALL_DEVICE': '767px',
|
|
26
|
+
'MIN_SMALL_DEVICE': '768px',
|
|
27
|
+
'MAX_SMALL_DEVICE': '991px',
|
|
28
|
+
'MIN_MEDIUM_DEVICE': '992px',
|
|
29
|
+
'MAX_MEDIUM_DEVICE': '1199px',
|
|
30
|
+
'MIN_LARGE_DEVICE': '1200px',
|
|
31
|
+
'MAX_LARGE_DEVICE': '1000000px'
|
|
32
|
+
};
|
|
33
|
+
export const DEVICE_BREAK_POINTS_NATIVE_MOBILE = {
|
|
34
|
+
'MIN_EXTRA_SMALL_DEVICE': '0px',
|
|
35
|
+
// 0-479px (phones portrait)
|
|
36
|
+
'MAX_EXTRA_SMALL_DEVICE': '479px',
|
|
37
|
+
'MIN_SMALL_DEVICE': '480px',
|
|
38
|
+
// 480-767px (phones landscape, small tablets portrait)
|
|
39
|
+
'MAX_SMALL_DEVICE': '767px',
|
|
40
|
+
'MIN_MEDIUM_DEVICE': '768px',
|
|
41
|
+
// 768-1023px (tablets portrait, small laptops)
|
|
42
|
+
'MAX_MEDIUM_DEVICE': '1023px',
|
|
43
|
+
'MIN_LARGE_DEVICE': '1024px',
|
|
44
|
+
// 1024px+ (tablets landscape, desktops)
|
|
45
|
+
'MAX_LARGE_DEVICE': '1000000px'
|
|
46
|
+
};
|
|
47
|
+
export const getBreakPointValue = name => {
|
|
48
|
+
if (Platform.OS === 'web') {
|
|
49
|
+
return DEVICE_BREAK_POINTS[name];
|
|
50
|
+
}
|
|
51
|
+
return DEVICE_BREAK_POINTS_NATIVE_MOBILE[name];
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/** Split `var()` inner content into custom property name and optional fallback. Only commas outside `()` count (so rgba(), linear-gradient(), etc. stay intact). */
|
|
55
|
+
function splitVarArguments(content) {
|
|
56
|
+
let depth = 0;
|
|
57
|
+
for (let i = 0; i < content.length; i++) {
|
|
58
|
+
const c = content[i];
|
|
59
|
+
if (c === '(') {
|
|
60
|
+
depth++;
|
|
61
|
+
} else if (c === ')') {
|
|
62
|
+
depth--;
|
|
63
|
+
} else if (c === ',' && depth === 0) {
|
|
64
|
+
return {
|
|
65
|
+
variableName: content.substring(0, i).trim(),
|
|
66
|
+
fallback: content.substring(i + 1).trim()
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
variableName: content.trim()
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
export let ThemeEvent = /*#__PURE__*/function (ThemeEvent) {
|
|
75
|
+
ThemeEvent["CHANGE"] = "change";
|
|
76
|
+
return ThemeEvent;
|
|
77
|
+
}({});
|
|
78
|
+
;
|
|
79
|
+
export class Theme {
|
|
80
|
+
constructor(parent, name) {
|
|
81
|
+
var _this$getAppConfig;
|
|
82
|
+
this.parent = parent;
|
|
83
|
+
this.name = name;
|
|
84
|
+
_defineProperty(this, "eventNotifer", new EventNotifier());
|
|
85
|
+
_defineProperty(this, "children", []);
|
|
86
|
+
_defineProperty(this, "styles", {});
|
|
87
|
+
_defineProperty(this, "cache", {});
|
|
88
|
+
_defineProperty(this, "traceEnabled", false);
|
|
89
|
+
_defineProperty(this, "revertLayoutToExpo50", void 0);
|
|
90
|
+
_defineProperty(this, "styleGenerators", []);
|
|
91
|
+
this.revertLayoutToExpo50 = ((_this$getAppConfig = this.getAppConfig()) === null || _this$getAppConfig === void 0 ? void 0 : _this$getAppConfig.revertLayoutToExpo50) || false;
|
|
92
|
+
if (parent) {
|
|
93
|
+
this.traceEnabled = parent.traceEnabled;
|
|
94
|
+
} else {
|
|
95
|
+
this.traceEnabled = isWebPreviewMode();
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
getAppConfig() {
|
|
99
|
+
return injector.get('APP_CONFIG');
|
|
100
|
+
}
|
|
101
|
+
enableTrace(flag, resetCache = true) {
|
|
102
|
+
this.traceEnabled = flag;
|
|
103
|
+
if (resetCache && resetCache !== 'false') {
|
|
104
|
+
this.reset();
|
|
105
|
+
}
|
|
106
|
+
this.children.forEach(t => t.enableTrace(flag, resetCache));
|
|
107
|
+
}
|
|
108
|
+
subscribe(event, fn) {
|
|
109
|
+
return this.eventNotifer.subscribe(event, fn);
|
|
110
|
+
}
|
|
111
|
+
notify(event) {
|
|
112
|
+
this.eventNotifer.notify(event, []);
|
|
113
|
+
this.children.forEach(t => t.notify(event));
|
|
114
|
+
}
|
|
115
|
+
replaceVariables(val, baseTokens, classNames, inheritedTokens = {}) {
|
|
116
|
+
if (isString(val)) {
|
|
117
|
+
(val.match(/_*var\([^\)]*\)/g) || []).forEach(s => {
|
|
118
|
+
const content = s.substring(4, s.length - 1);
|
|
119
|
+
const {
|
|
120
|
+
variableName,
|
|
121
|
+
fallback
|
|
122
|
+
} = splitVarArguments(content);
|
|
123
|
+
let resolvedValue;
|
|
124
|
+
let variants = ThemeVariables.INSTANCE.variants;
|
|
125
|
+
if (variants && typeof classNames === 'string') {
|
|
126
|
+
const classList = classNames.split(/\s+/);
|
|
127
|
+
for (const cls of classList) {
|
|
128
|
+
if (variants[cls] && variants[cls][variableName]) {
|
|
129
|
+
resolvedValue = variants[cls][variableName];
|
|
130
|
+
break;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
if (!resolvedValue) {
|
|
135
|
+
var _ref, _ref2, _ref3, _ref4, _ref5, _inheritedTokens$vari;
|
|
136
|
+
resolvedValue = (_ref = (_ref2 = (_ref3 = (_ref4 = (_ref5 = (_inheritedTokens$vari = inheritedTokens[variableName]) !== null && _inheritedTokens$vari !== void 0 ? _inheritedTokens$vari : inheritedTokens[`--${variableName}`]) !== null && _ref5 !== void 0 ? _ref5 : baseTokens[variableName]) !== null && _ref4 !== void 0 ? _ref4 : ThemeVariables.INSTANCE[variableName]) !== null && _ref3 !== void 0 ? _ref3 : ThemeVariables.INSTANCE[variableName.substring(2)]) !== null && _ref2 !== void 0 ? _ref2 : ThemeVariables.INSTANCE[camelCase(variableName.substring(2))]) !== null && _ref !== void 0 ? _ref : fallback;
|
|
137
|
+
}
|
|
138
|
+
val = val.replace(s, resolvedValue);
|
|
139
|
+
if (isNumber(resolvedValue) && val.trim() === resolvedValue + '') {
|
|
140
|
+
val = resolvedValue;
|
|
141
|
+
} else {
|
|
142
|
+
val = this.replaceVariables(val, baseTokens, classNames, inheritedTokens);
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
if (isString(val) && val.match(/^-?\d+(\.\d+)?$/)) {
|
|
147
|
+
return parseFloat(val);
|
|
148
|
+
}
|
|
149
|
+
return val;
|
|
150
|
+
}
|
|
151
|
+
clearCache() {
|
|
152
|
+
this.cache = {};
|
|
153
|
+
this.children.forEach(t => t.clearCache());
|
|
154
|
+
}
|
|
155
|
+
registerStyle(fn) {
|
|
156
|
+
this.styleGenerators.push(fn);
|
|
157
|
+
fn(ThemeVariables.INSTANCE, this.addStyle.bind(this));
|
|
158
|
+
}
|
|
159
|
+
checkStyleProperties(name, value) {
|
|
160
|
+
if (isObject(value)) {
|
|
161
|
+
Object.keys(value).map(k => this.checkStyleProperties(k, value[k]));
|
|
162
|
+
} else if (name && !(isString(value) && value.startsWith('calc(')) && !isValidStyleProp(name, value)) {
|
|
163
|
+
console.log(`%cInvalid Style property in ${this.name}: ${getErrorMessage(name, value)}`, 'background-color: #FF0000;font-weight: bold; color: #fff');
|
|
164
|
+
console.log(`Refer: ${getStyleReference(name)}`);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
addStyle(name, extend, style) {
|
|
168
|
+
this.styles[name] = deepCopy(this.getStyle(extend), this.styles[name], style);
|
|
169
|
+
}
|
|
170
|
+
addTrace(styleName, mergedChildstyle, childStyle, parentStyle) {
|
|
171
|
+
if (!this.traceEnabled) {
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
let addTrace = !isEmpty(childStyle);
|
|
175
|
+
forEach(mergedChildstyle, (v, k) => {
|
|
176
|
+
if (v && !isString(v) && !isArray(v) && isObject(v)) {
|
|
177
|
+
addTrace = false;
|
|
178
|
+
if (!isNativeStyle(k, 'property')) {
|
|
179
|
+
this.addTrace(styleName + '.' + k, v, childStyle && childStyle[k], parentStyle && parentStyle[k]);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
if (addTrace) {
|
|
184
|
+
mergedChildstyle['__trace'] = [{
|
|
185
|
+
name: styleName,
|
|
186
|
+
value: childStyle
|
|
187
|
+
}, ...((parentStyle === null || parentStyle === void 0 ? void 0 : parentStyle.__trace) || [])];
|
|
188
|
+
} else {
|
|
189
|
+
mergedChildstyle['__trace'] = [...((parentStyle === null || parentStyle === void 0 ? void 0 : parentStyle.__trace) || [])];
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
flatten(style, prefix = "", result = {}) {
|
|
193
|
+
let collect = !isEmpty(style);
|
|
194
|
+
forEach(style, (v, k) => {
|
|
195
|
+
if (v && !isString(v) && !isArray(v) && isObject(v)) {
|
|
196
|
+
collect = false;
|
|
197
|
+
this.flatten(v, (prefix ? prefix + '.' : '') + k, result);
|
|
198
|
+
}
|
|
199
|
+
});
|
|
200
|
+
if (collect) {
|
|
201
|
+
result[prefix] = style;
|
|
202
|
+
}
|
|
203
|
+
return result;
|
|
204
|
+
}
|
|
205
|
+
extractTopLevelVariables(style) {
|
|
206
|
+
const vars = {};
|
|
207
|
+
for (const key in style) {
|
|
208
|
+
if (key.startsWith('--')) {
|
|
209
|
+
vars[key] = style[key];
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
return vars;
|
|
213
|
+
}
|
|
214
|
+
mergeStyle(...styles) {
|
|
215
|
+
const style = deepCopy(...styles);
|
|
216
|
+
if (this.traceEnabled) {
|
|
217
|
+
const flattenStyles = this.flatten(style);
|
|
218
|
+
Object.keys(flattenStyles).forEach(k => {
|
|
219
|
+
const s = flattenStyles[k];
|
|
220
|
+
if (!isNativeStyle(k, 'path')) {
|
|
221
|
+
s['__trace'] = flatten(reverse(styles.map(v => {
|
|
222
|
+
const cs = get(v, k);
|
|
223
|
+
if (cs && cs.__trace) {
|
|
224
|
+
return [...cs.__trace];
|
|
225
|
+
}
|
|
226
|
+
return [];
|
|
227
|
+
}).filter(t => t.length > 0)));
|
|
228
|
+
}
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
const baseTokens = this.extractTopLevelVariables(style);
|
|
232
|
+
const classnames = Array.isArray(styles) ? styles.filter(isString).join(' ') : Object.values(styles).filter(isString).join(' ');
|
|
233
|
+
return this.cleanseStyleProperties(style, baseTokens, classnames);
|
|
234
|
+
}
|
|
235
|
+
cleanseStyleProperties(style, baseTokens, classnames, inheritedTokens = {}) {
|
|
236
|
+
if (!(style && isObject(style)) || isString(style) || isArray(style)) {
|
|
237
|
+
return style;
|
|
238
|
+
}
|
|
239
|
+
style = style;
|
|
240
|
+
if (isObject(style) && !isArray(style)) {
|
|
241
|
+
const resolveStyle = (v, inheritedTokens = {}) => {
|
|
242
|
+
v = this.replaceVariables(v, baseTokens, classnames, inheritedTokens);
|
|
243
|
+
if (isString(v) && v.startsWith("color-mix(")) {
|
|
244
|
+
v = ColorMix.valueOf(v);
|
|
245
|
+
}
|
|
246
|
+
return v;
|
|
247
|
+
};
|
|
248
|
+
const classNames = Object.keys(style);
|
|
249
|
+
const resolvedTokens = {
|
|
250
|
+
...inheritedTokens
|
|
251
|
+
};
|
|
252
|
+
// For inline token in obj
|
|
253
|
+
classNames.forEach(k => {
|
|
254
|
+
if (k.startsWith('--')) {
|
|
255
|
+
let v = resolveStyle(style[k], resolvedTokens);
|
|
256
|
+
resolvedTokens[k] = v;
|
|
257
|
+
const variableName = k.substring(2);
|
|
258
|
+
ThemeVariables.INSTANCE[variableName] = v;
|
|
259
|
+
ThemeVariables.INSTANCE[camelCase(variableName)] = v;
|
|
260
|
+
}
|
|
261
|
+
});
|
|
262
|
+
|
|
263
|
+
// For edge case when prop is before inline token
|
|
264
|
+
classNames.forEach(k => {
|
|
265
|
+
if (!k.startsWith('--')) {
|
|
266
|
+
if (isObject(style[k]) && !isArray(style[k])) {
|
|
267
|
+
this.cleanseStyleProperties(style[k], baseTokens, classnames, resolvedTokens);
|
|
268
|
+
} else {
|
|
269
|
+
style[k] = resolveStyle(style[k], resolvedTokens);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
if (!isNil(style['shadowRadius'])) {
|
|
275
|
+
if (style['shadowRadius'] <= 0) {
|
|
276
|
+
style['shadowColor'] = 'transparent';
|
|
277
|
+
} else if (isNil(style['elevation'])) {
|
|
278
|
+
style['elevation'] = 2;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
if (!isNil(style['margin'])) {
|
|
282
|
+
var _style$marginLeft, _style$marginRight, _style$marginTop, _style$marginBottom;
|
|
283
|
+
style['marginLeft'] = (_style$marginLeft = style['marginLeft']) !== null && _style$marginLeft !== void 0 ? _style$marginLeft : style['margin'];
|
|
284
|
+
style['marginRight'] = (_style$marginRight = style['marginRight']) !== null && _style$marginRight !== void 0 ? _style$marginRight : style['margin'];
|
|
285
|
+
style['marginTop'] = (_style$marginTop = style['marginTop']) !== null && _style$marginTop !== void 0 ? _style$marginTop : style['margin'];
|
|
286
|
+
style['marginBottom'] = (_style$marginBottom = style['marginBottom']) !== null && _style$marginBottom !== void 0 ? _style$marginBottom : style['margin'];
|
|
287
|
+
delete style['margin'];
|
|
288
|
+
}
|
|
289
|
+
if (!isNil(style['opacity']) && typeof style['opacity'] === 'string' && style['opacity'].endsWith('%')) {
|
|
290
|
+
const percentage = parseFloat(style['opacity']);
|
|
291
|
+
if (!isNaN(percentage)) {
|
|
292
|
+
style['opacity'] = percentage / 100;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
const processStyleValue = value => {
|
|
296
|
+
if (typeof value === 'string') {
|
|
297
|
+
const num = parseFloat(value);
|
|
298
|
+
return isNaN(num) ? value : num;
|
|
299
|
+
}
|
|
300
|
+
return value;
|
|
301
|
+
};
|
|
302
|
+
|
|
303
|
+
/** True when borderWidth is a single value or shorthand that resolves to the same width on all sides. */
|
|
304
|
+
const isUniformBorderWidthValue = value => {
|
|
305
|
+
if (value == null) {
|
|
306
|
+
return false;
|
|
307
|
+
}
|
|
308
|
+
if (typeof value === 'number') {
|
|
309
|
+
return !Number.isNaN(value);
|
|
310
|
+
}
|
|
311
|
+
if (typeof value === 'string') {
|
|
312
|
+
const tokens = value.trim().split(/\s+/).filter(Boolean);
|
|
313
|
+
if (tokens.length <= 1) {
|
|
314
|
+
return true;
|
|
315
|
+
}
|
|
316
|
+
const parsed = tokens.map(t => processStyleValue(t));
|
|
317
|
+
const [t, r = t, b = t, l = r] = parsed;
|
|
318
|
+
return t === r && r === b && b === l;
|
|
319
|
+
}
|
|
320
|
+
if (isObject(value) && !isArray(value)) {
|
|
321
|
+
const vals = Object.values(value).map(v => processStyleValue(v));
|
|
322
|
+
if (!vals.length) {
|
|
323
|
+
return false;
|
|
324
|
+
}
|
|
325
|
+
return vals.every(v => v === vals[0]);
|
|
326
|
+
}
|
|
327
|
+
if (typeof value !== 'object' && !isNaN(Number(value))) {
|
|
328
|
+
return true;
|
|
329
|
+
}
|
|
330
|
+
return false;
|
|
331
|
+
};
|
|
332
|
+
const normalizeUniformBorderWidth = value => {
|
|
333
|
+
if (typeof value === 'number') {
|
|
334
|
+
return value;
|
|
335
|
+
}
|
|
336
|
+
if (typeof value === 'string') {
|
|
337
|
+
const tokens = value.trim().split(/\s+/).filter(Boolean);
|
|
338
|
+
return tokens.length ? processStyleValue(tokens[0]) : value;
|
|
339
|
+
}
|
|
340
|
+
if (isObject(value) && !isArray(value)) {
|
|
341
|
+
const first = Object.values(value)[0];
|
|
342
|
+
return processStyleValue(first);
|
|
343
|
+
}
|
|
344
|
+
if (typeof value !== 'object' && !isNaN(Number(value))) {
|
|
345
|
+
return Number(value);
|
|
346
|
+
}
|
|
347
|
+
return value;
|
|
348
|
+
};
|
|
349
|
+
|
|
350
|
+
/** Border-like shorthands: only fill sides that are still nullish so explicit longhands (e.g. borderLeftWidth) win. */
|
|
351
|
+
const mergeBorderLikeBoxModelResult = (target, result) => {
|
|
352
|
+
Object.keys(result).forEach(key => {
|
|
353
|
+
var _target$key;
|
|
354
|
+
target[key] = (_target$key = target[key]) !== null && _target$key !== void 0 ? _target$key : result[key];
|
|
355
|
+
});
|
|
356
|
+
};
|
|
357
|
+
const applyBoxModelProperty = (property, value) => {
|
|
358
|
+
if (value == null) return;
|
|
359
|
+
const result = {};
|
|
360
|
+
const positions = ['Top', 'Right', 'Bottom', 'Left'];
|
|
361
|
+
const isBorderRadius = property === 'border';
|
|
362
|
+
const isBorderWidth = property === 'borderWidth';
|
|
363
|
+
const borderRadiusKeys = {
|
|
364
|
+
Top: 'borderTopLeftRadius',
|
|
365
|
+
Right: 'borderTopRightRadius',
|
|
366
|
+
Bottom: 'borderBottomRightRadius',
|
|
367
|
+
Left: 'borderBottomLeftRadius'
|
|
368
|
+
};
|
|
369
|
+
const getProp = pos => {
|
|
370
|
+
if (isBorderRadius) {
|
|
371
|
+
return borderRadiusKeys[pos];
|
|
372
|
+
} else if (isBorderWidth) {
|
|
373
|
+
return `border${pos}Width`;
|
|
374
|
+
}
|
|
375
|
+
return property + pos;
|
|
376
|
+
};
|
|
377
|
+
if (typeof value === 'string') {
|
|
378
|
+
const values = value.trim().split(/\s+/).map(processStyleValue);
|
|
379
|
+
const [t, r = t, b = t, l = r] = values; // Destructure with defaults
|
|
380
|
+
|
|
381
|
+
result[getProp('Top')] = t;
|
|
382
|
+
result[getProp('Right')] = r;
|
|
383
|
+
result[getProp('Bottom')] = b;
|
|
384
|
+
result[getProp('Left')] = l;
|
|
385
|
+
} else if (typeof value === 'number' || !isNaN(Number(value))) {
|
|
386
|
+
const numValue = Number(value);
|
|
387
|
+
positions.forEach(pos => {
|
|
388
|
+
result[getProp(pos)] = numValue;
|
|
389
|
+
});
|
|
390
|
+
} else if (isObject(value)) {
|
|
391
|
+
Object.entries(value).forEach(([key, val]) => {
|
|
392
|
+
const pos = key.charAt(0).toUpperCase() + key.slice(1).toLowerCase();
|
|
393
|
+
result[getProp(pos)] = processStyleValue(val);
|
|
394
|
+
});
|
|
395
|
+
}
|
|
396
|
+
if (Object.keys(result).length > 0) {
|
|
397
|
+
if (property === 'padding' || property === 'margin') {
|
|
398
|
+
Object.assign(style, result);
|
|
399
|
+
} else {
|
|
400
|
+
mergeBorderLikeBoxModelResult(style, result);
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
};
|
|
404
|
+
const paddingPositions = ['Top', 'Right', 'Bottom', 'Left'];
|
|
405
|
+
const hasOverridePadding = paddingPositions.some(pos => !isNil(style[`_Padding${pos}`]));
|
|
406
|
+
if (hasOverridePadding || !isNil(style['padding'])) {
|
|
407
|
+
applyBoxModelProperty('padding', style['padding']);
|
|
408
|
+
paddingPositions.forEach(pos => {
|
|
409
|
+
const overrideKey = `_Padding${pos}`;
|
|
410
|
+
const overrideValue = style[overrideKey];
|
|
411
|
+
if (!isNil(overrideValue)) {
|
|
412
|
+
style[`padding${pos}`] = processStyleValue(overrideValue);
|
|
413
|
+
}
|
|
414
|
+
delete style[overrideKey];
|
|
415
|
+
});
|
|
416
|
+
delete style['padding'];
|
|
417
|
+
}
|
|
418
|
+
if (!isNil(style['borderWidth'])) {
|
|
419
|
+
const bw = style['borderWidth'];
|
|
420
|
+
if (isUniformBorderWidthValue(bw)) {
|
|
421
|
+
style['borderWidth'] = normalizeUniformBorderWidth(bw);
|
|
422
|
+
} else {
|
|
423
|
+
applyBoxModelProperty('borderWidth', bw);
|
|
424
|
+
delete style['borderWidth'];
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
if (!isNil(style['borderRadius'])) {
|
|
428
|
+
applyBoxModelProperty('border', style['borderRadius']);
|
|
429
|
+
delete style['borderRadius'];
|
|
430
|
+
}
|
|
431
|
+
if (!isNil(style['margin'])) {
|
|
432
|
+
applyBoxModelProperty('margin', style['margin']);
|
|
433
|
+
delete style['margin'];
|
|
434
|
+
}
|
|
435
|
+
if (this.revertLayoutToExpo50 && !isNil(style['flexDirection']) && style['flexDirection'] === 'row-reverse') {
|
|
436
|
+
if (!isNil(style['paddingLeft']) || !isNil(style['paddingRight'])) {
|
|
437
|
+
if (!isNil(style['paddingLeft']) && !isNil(style['paddingRight'])) {
|
|
438
|
+
[style['paddingLeft'], style['paddingRight']] = [style['paddingRight'], style['paddingLeft']];
|
|
439
|
+
} else {
|
|
440
|
+
const [paddingLeft, paddingRight] = [style['paddingLeft'], style['paddingRight']];
|
|
441
|
+
if (paddingLeft !== undefined) {
|
|
442
|
+
style['paddingRight'] = paddingLeft;
|
|
443
|
+
delete style['paddingLeft'];
|
|
444
|
+
}
|
|
445
|
+
if (paddingRight !== undefined) {
|
|
446
|
+
style['paddingLeft'] = paddingRight;
|
|
447
|
+
delete style['paddingRight'];
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
if (!isNil(style['marginLeft']) || !isNil(style['marginRight'])) {
|
|
452
|
+
if (!isNil(style['marginLeft']) && !isNil(style['marginRight'])) {
|
|
453
|
+
[style['marginLeft'], style['marginRight']] = [style['marginRight'], style['marginLeft']];
|
|
454
|
+
} else {
|
|
455
|
+
const [marginLeft, marginRight] = [style['marginLeft'], style['marginRight']];
|
|
456
|
+
if (marginLeft !== undefined) {
|
|
457
|
+
style['marginRight'] = marginLeft;
|
|
458
|
+
delete style['marginLeft'];
|
|
459
|
+
}
|
|
460
|
+
if (marginRight !== undefined) {
|
|
461
|
+
style['marginLeft'] = marginRight;
|
|
462
|
+
delete style['marginRight'];
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
if (!isNil(style['color']) && style['color'] === 'transparent') {
|
|
468
|
+
style['color'] = 'rgba(255, 255, 255, 0)';
|
|
469
|
+
}
|
|
470
|
+
if (!isNil(style['color']) && style['color'] === 'transparent') {
|
|
471
|
+
style['color'] = 'rgba(255, 255, 255, 0)';
|
|
472
|
+
}
|
|
473
|
+
let screenWidth = Dimensions.get('window').width;
|
|
474
|
+
let screenHeight = Dimensions.get('window').height;
|
|
475
|
+
Object.keys(style).forEach((k, i) => {
|
|
476
|
+
let stylePropertyValue = style[k];
|
|
477
|
+
if (typeof stylePropertyValue === 'string' && stylePropertyValue.endsWith('vw')) {
|
|
478
|
+
stylePropertyValue = stylePropertyValue.replace('vw', '');
|
|
479
|
+
style[k] = Number(stylePropertyValue) / 100 * screenWidth;
|
|
480
|
+
}
|
|
481
|
+
if (typeof stylePropertyValue === 'string' && stylePropertyValue.endsWith('vh')) {
|
|
482
|
+
stylePropertyValue = stylePropertyValue.replace('vh', '');
|
|
483
|
+
style[k] = Number(stylePropertyValue) / 100 * screenHeight;
|
|
484
|
+
}
|
|
485
|
+
});
|
|
486
|
+
return style;
|
|
487
|
+
}
|
|
488
|
+
getStyle(name) {
|
|
489
|
+
let style = this.cache[name];
|
|
490
|
+
if (style) {
|
|
491
|
+
return style;
|
|
492
|
+
}
|
|
493
|
+
if (!name) {
|
|
494
|
+
return {};
|
|
495
|
+
}
|
|
496
|
+
if (name.indexOf(' ') > 0) {
|
|
497
|
+
style = this.mergeStyle(...name.split(' ').map(c => this.getStyle(c)));
|
|
498
|
+
} else {
|
|
499
|
+
const parentStyle = this.parent && this.parent.getStyle(name);
|
|
500
|
+
const mediaQuery = (this.styles[name] || {})['@media'];
|
|
501
|
+
let clonedStyle = {
|
|
502
|
+
root: {}
|
|
503
|
+
};
|
|
504
|
+
if (!mediaQuery || matchMedia(mediaQuery).matches) {
|
|
505
|
+
clonedStyle = cloneDeep(this.styles[name]) || {};
|
|
506
|
+
clonedStyle['root'] = clonedStyle['root'] || {};
|
|
507
|
+
const extraTextStyles = this.getTextStyle(clonedStyle) || {};
|
|
508
|
+
clonedStyle['text'] = Object.assign({}, extraTextStyles, clonedStyle['text'] || {});
|
|
509
|
+
Object.keys(clonedStyle).forEach(k => {
|
|
510
|
+
const isValObject = isObject(clonedStyle[k]);
|
|
511
|
+
if (!extraTextStyles[k] && (!isValObject || k === 'shadowOffset')) {
|
|
512
|
+
clonedStyle['root'][k] = clonedStyle['root'][k] || clonedStyle[k];
|
|
513
|
+
}
|
|
514
|
+
});
|
|
515
|
+
}
|
|
516
|
+
if (this !== Theme.BASE && isWebPreviewMode()) {
|
|
517
|
+
this.checkStyleProperties('', clonedStyle);
|
|
518
|
+
}
|
|
519
|
+
style = deepCopy(parentStyle, clonedStyle);
|
|
520
|
+
this.addTrace(`@${this.name}:${name}`, style, clonedStyle, parentStyle);
|
|
521
|
+
}
|
|
522
|
+
this.cache[name] = style;
|
|
523
|
+
return style;
|
|
524
|
+
}
|
|
525
|
+
$new(name = "", styles = {}) {
|
|
526
|
+
const newTheme = new Theme(this, name);
|
|
527
|
+
newTheme.reset(styles);
|
|
528
|
+
this.children.push(newTheme);
|
|
529
|
+
return newTheme;
|
|
530
|
+
}
|
|
531
|
+
destroy() {
|
|
532
|
+
const i = this.parent.children.indexOf(this);
|
|
533
|
+
if (i >= 0) {
|
|
534
|
+
this.parent.children.splice(i, 1);
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
getTextStyle(s) {
|
|
538
|
+
if (!s) {
|
|
539
|
+
return {};
|
|
540
|
+
}
|
|
541
|
+
const textStyle = {
|
|
542
|
+
color: s.color,
|
|
543
|
+
fontFamily: s.fontFamily,
|
|
544
|
+
fontSize: s.fontSize,
|
|
545
|
+
fontStyle: s.fontStyle,
|
|
546
|
+
fontWeight: s.fontWeight,
|
|
547
|
+
includeFontPadding: s.includeFontPadding,
|
|
548
|
+
fontVariant: s.fontVariant,
|
|
549
|
+
letterSpacing: s.letterSpacing,
|
|
550
|
+
lineHeight: s.lineHeight,
|
|
551
|
+
textAlign: s.textAlign,
|
|
552
|
+
textAlignVertical: s.textAlignVertical,
|
|
553
|
+
textDecorationColor: s.textDecorationColor,
|
|
554
|
+
textDecorationStyle: s.textDecorationStyle,
|
|
555
|
+
textShadowColor: s.textShadowColor,
|
|
556
|
+
textShadowOffset: s.textShadowOffset,
|
|
557
|
+
textShadowRadius: s.textShadowRadius,
|
|
558
|
+
textTransform: s.textTransform,
|
|
559
|
+
verticalAlign: s.verticalAlign,
|
|
560
|
+
writingDirection: s.writingDirection,
|
|
561
|
+
userSelect: s.userSelect
|
|
562
|
+
};
|
|
563
|
+
Object.keys(textStyle).forEach(k => {
|
|
564
|
+
if (!textStyle[k]) {
|
|
565
|
+
delete textStyle[k];
|
|
566
|
+
}
|
|
567
|
+
});
|
|
568
|
+
return textStyle;
|
|
569
|
+
}
|
|
570
|
+
reset(styles) {
|
|
571
|
+
this.styles = {};
|
|
572
|
+
this.clearCache();
|
|
573
|
+
if (styles) {
|
|
574
|
+
this.registerStyle((themeVariables, addStyle) => {
|
|
575
|
+
Object.keys(styles).forEach(k => {
|
|
576
|
+
addStyle(k, '', styles[k]);
|
|
577
|
+
});
|
|
578
|
+
});
|
|
579
|
+
} else {
|
|
580
|
+
this.styleGenerators.forEach(fn => fn(ThemeVariables.INSTANCE, this.addStyle.bind(this)));
|
|
581
|
+
}
|
|
582
|
+
this.notify(ThemeEvent.CHANGE);
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
_Theme = Theme;
|
|
586
|
+
_defineProperty(Theme, "BASE", new _Theme(null, 'default'));
|
|
587
|
+
ViewPort.subscribe(ViewPortEvents.SIZE_CHANGE, () => {
|
|
588
|
+
_Theme.BASE.reset();
|
|
589
|
+
});
|
|
590
|
+
export default Theme.BASE;
|
|
591
|
+
const ThemeContext = /*#__PURE__*/React.createContext(null);
|
|
592
|
+
export const ThemeProvider = ThemeContext.Provider;
|
|
593
|
+
export const ThemeConsumer = ThemeContext.Consumer;
|
|
594
|
+
/**
|
|
595
|
+
* Common styles
|
|
596
|
+
*/
|
|
597
|
+
Theme.BASE.registerStyle((themeVariables, addStyle) => {
|
|
598
|
+
const addColStyles = (device, minWidth) => {
|
|
599
|
+
for (let i = 1; i <= 12; i++) {
|
|
600
|
+
addStyle(`col-${device}-${i}`, '', {
|
|
601
|
+
"@media": `(min-width: ${minWidth})`,
|
|
602
|
+
root: {
|
|
603
|
+
width: 100 * i / 12 + '%'
|
|
604
|
+
}
|
|
605
|
+
});
|
|
606
|
+
}
|
|
607
|
+
};
|
|
608
|
+
addColStyles('xs', getBreakPointValue('MIN_EXTRA_SMALL_DEVICE'));
|
|
609
|
+
addColStyles('sm', getBreakPointValue('MIN_SMALL_DEVICE'));
|
|
610
|
+
addColStyles('md', getBreakPointValue('MIN_MEDIUM_DEVICE'));
|
|
611
|
+
addColStyles('lg', getBreakPointValue('MIN_LARGE_DEVICE'));
|
|
612
|
+
addStyle('d-none', '', {
|
|
613
|
+
root: {
|
|
614
|
+
display: 'none'
|
|
615
|
+
}
|
|
616
|
+
});
|
|
617
|
+
addStyle('d-flex', '', {
|
|
618
|
+
root: {
|
|
619
|
+
display: 'flex'
|
|
620
|
+
}
|
|
621
|
+
});
|
|
622
|
+
const addDisplayStyles = (device, minWidth, maxWidth) => {
|
|
623
|
+
addStyle(`d-${device}-none`, '', {
|
|
624
|
+
"@media": `(min-width: ${minWidth}) and (max-width: ${maxWidth})`,
|
|
625
|
+
root: {
|
|
626
|
+
display: 'none'
|
|
627
|
+
}
|
|
628
|
+
});
|
|
629
|
+
addStyle(`d-${device}-flex`, '', {
|
|
630
|
+
"@media": `(min-width: ${minWidth}) and (max-width: ${maxWidth})`,
|
|
631
|
+
root: {
|
|
632
|
+
display: 'flex'
|
|
633
|
+
}
|
|
634
|
+
});
|
|
635
|
+
};
|
|
636
|
+
addDisplayStyles('all', getBreakPointValue('MIN_EXTRA_SMALL_DEVICE'), getBreakPointValue('MAX_LARGE_DEVICE'));
|
|
637
|
+
addDisplayStyles('xs', getBreakPointValue('MIN_EXTRA_SMALL_DEVICE'), getBreakPointValue('MAX_EXTRA_SMALL_DEVICE'));
|
|
638
|
+
addDisplayStyles('sm', getBreakPointValue('MIN_SMALL_DEVICE'), getBreakPointValue('MAX_SMALL_DEVICE'));
|
|
639
|
+
addDisplayStyles('md', getBreakPointValue('MIN_MEDIUM_DEVICE'), getBreakPointValue('MAX_MEDIUM_DEVICE'));
|
|
640
|
+
addDisplayStyles('lg', getBreakPointValue('MIN_LARGE_DEVICE'), getBreakPointValue('MAX_LARGE_DEVICE'));
|
|
641
|
+
const addElevationClasses = () => {
|
|
642
|
+
for (let i = 1; i <= 10; i++) {
|
|
643
|
+
addStyle(`elevate${i}`, '', {
|
|
644
|
+
root: {
|
|
645
|
+
boxShadow: `${i}px ${i}px ${i}px rgba(0, 0, 0, 0.27)`,
|
|
646
|
+
zIndex: 1
|
|
647
|
+
}
|
|
648
|
+
});
|
|
649
|
+
}
|
|
650
|
+
};
|
|
651
|
+
addElevationClasses();
|
|
652
|
+
addStyle('hidden', '', {
|
|
653
|
+
root: Platform.OS === 'web' ? {
|
|
654
|
+
display: 'none'
|
|
655
|
+
} : {
|
|
656
|
+
width: 0,
|
|
657
|
+
height: 0,
|
|
658
|
+
transform: [{
|
|
659
|
+
scale: 0
|
|
660
|
+
}],
|
|
661
|
+
overflow: 'hidden'
|
|
662
|
+
}
|
|
663
|
+
});
|
|
664
|
+
addStyle('bg-danger', '', {
|
|
665
|
+
root: {
|
|
666
|
+
backgroundColor: themeVariables.dangerColor
|
|
667
|
+
}
|
|
668
|
+
});
|
|
669
|
+
addStyle('bg-info', '', {
|
|
670
|
+
root: {
|
|
671
|
+
backgroundColor: themeVariables.infoColor
|
|
672
|
+
}
|
|
673
|
+
});
|
|
674
|
+
addStyle('bg-primary', '', {
|
|
675
|
+
root: {
|
|
676
|
+
backgroundColor: themeVariables.primaryColor
|
|
677
|
+
}
|
|
678
|
+
});
|
|
679
|
+
addStyle('bg-success', '', {
|
|
680
|
+
root: {
|
|
681
|
+
backgroundColor: themeVariables.successColor
|
|
682
|
+
}
|
|
683
|
+
});
|
|
684
|
+
addStyle('bg-warning', '', {
|
|
685
|
+
root: {
|
|
686
|
+
backgroundColor: themeVariables.warningColor
|
|
687
|
+
}
|
|
688
|
+
});
|
|
689
|
+
addStyle('border-danger', '', {
|
|
690
|
+
root: {
|
|
691
|
+
borderColor: themeVariables.dangerColor
|
|
692
|
+
}
|
|
693
|
+
});
|
|
694
|
+
addStyle('border-info', '', {
|
|
695
|
+
root: {
|
|
696
|
+
borderColor: themeVariables.infoColor
|
|
697
|
+
}
|
|
698
|
+
});
|
|
699
|
+
addStyle('border-primary', '', {
|
|
700
|
+
root: {
|
|
701
|
+
borderColor: themeVariables.primaryColor
|
|
702
|
+
}
|
|
703
|
+
});
|
|
704
|
+
addStyle('border-success', '', {
|
|
705
|
+
root: {
|
|
706
|
+
borderColor: themeVariables.successColor
|
|
707
|
+
}
|
|
708
|
+
});
|
|
709
|
+
addStyle('border-warning', '', {
|
|
710
|
+
root: {
|
|
711
|
+
borderColor: themeVariables.warningColor
|
|
712
|
+
}
|
|
713
|
+
});
|
|
714
|
+
addStyle('hide-context-menu', '', {
|
|
715
|
+
text: {
|
|
716
|
+
userSelect: 'none'
|
|
717
|
+
}
|
|
718
|
+
});
|
|
719
|
+
addStyle('hide-context-menu-input', '', {
|
|
720
|
+
text: {
|
|
721
|
+
userSelect: 'none'
|
|
722
|
+
}
|
|
723
|
+
});
|
|
724
|
+
});
|
|
725
|
+
//# sourceMappingURL=theme.js.map
|