@ebscn/ui 0.0.11 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -0
- package/cjs/components/alphabet-keyboard/alphabet-keyboard.css +143 -0
- package/cjs/components/alphabet-keyboard/alphabet-keyboard.d.ts +11 -0
- package/cjs/components/alphabet-keyboard/alphabet-keyboard.js +139 -0
- package/cjs/components/alphabet-keyboard/index.d.ts +4 -0
- package/cjs/components/alphabet-keyboard/index.js +9 -0
- package/cjs/components/button/button.css +152 -0
- package/cjs/components/button/button.d.ts +40 -0
- package/cjs/components/button/button.js +215 -0
- package/cjs/components/button/index.d.ts +4 -0
- package/cjs/components/button/index.js +9 -0
- package/cjs/components/card/card.css +37 -0
- package/cjs/components/card/card.d.ts +17 -0
- package/cjs/components/card/card.js +40 -0
- package/cjs/components/card/index.d.ts +4 -0
- package/cjs/components/card/index.js +10 -0
- package/cjs/components/checkbox/checkbox.css +92 -0
- package/cjs/components/checkbox/checkbox.d.ts +44 -0
- package/cjs/components/checkbox/checkbox.js +106 -0
- package/cjs/components/checkbox/group-context.d.ts +8 -0
- package/cjs/components/checkbox/group-context.js +8 -0
- package/cjs/components/checkbox/group.d.ts +10 -0
- package/cjs/components/checkbox/group.js +48 -0
- package/cjs/components/checkbox/index.d.ts +26 -0
- package/cjs/components/checkbox/index.js +14 -0
- package/cjs/components/checkbox/native-input.d.ts +10 -0
- package/cjs/components/checkbox/native-input.js +38 -0
- package/cjs/components/grid/grid.css +15 -0
- package/cjs/components/grid/grid.d.ts +15 -0
- package/cjs/components/grid/grid.js +45 -0
- package/cjs/components/grid/index.d.ts +7 -0
- package/cjs/components/grid/index.js +12 -0
- package/cjs/components/icons/check-icon.d.ts +4 -0
- package/cjs/components/icons/check-icon.js +30 -0
- package/cjs/components/icons/check-only-icon.d.ts +4 -0
- package/cjs/components/icons/check-only-icon.js +21 -0
- package/cjs/components/icons/clear-icon.d.ts +4 -0
- package/cjs/components/icons/clear-icon.js +41 -0
- package/cjs/components/icons/indeterminate-icon.d.ts +4 -0
- package/cjs/components/icons/indeterminate-icon.js +29 -0
- package/cjs/components/icons/index.d.ts +8 -0
- package/cjs/components/icons/index.js +62 -0
- package/cjs/components/icons/loading-icon.d.ts +4 -0
- package/cjs/components/icons/loading-icon.js +89 -0
- package/cjs/components/icons/search-icon.d.ts +4 -0
- package/cjs/components/icons/search-icon.js +43 -0
- package/cjs/components/icons/spin-icon.d.ts +4 -0
- package/cjs/components/icons/spin-icon.js +32 -0
- package/cjs/components/icons/uncheck-icon.d.ts +4 -0
- package/cjs/components/icons/uncheck-icon.js +26 -0
- package/cjs/components/imageViewer/imageViewer.d.ts +4 -0
- package/cjs/components/imageViewer/imageViewer.js +35 -0
- package/cjs/components/imageViewer/index.js +9 -0
- package/cjs/components/marketTag/index.d.ts +4 -0
- package/cjs/components/marketTag/index.js +9 -0
- package/cjs/components/marketTag/marketTag.css +14 -0
- package/cjs/components/marketTag/marketTag.d.ts +11 -0
- package/cjs/components/marketTag/marketTag.js +27 -0
- package/cjs/components/number-keyboard/index.d.ts +4 -0
- package/cjs/components/number-keyboard/index.js +9 -0
- package/cjs/components/number-keyboard/number-keyboard.css +77 -0
- package/cjs/components/number-keyboard/number-keyboard.d.ts +13 -0
- package/cjs/components/number-keyboard/number-keyboard.js +93 -0
- package/cjs/components/pdfLink/index.d.ts +3 -0
- package/cjs/components/pdfLink/index.js +10 -0
- package/cjs/components/pdfLink/pdfLink.css +11 -0
- package/cjs/components/pdfLink/pdfLink.d.ts +8 -0
- package/cjs/components/pdfLink/pdfLink.js +102 -0
- package/cjs/components/protocol/index.d.ts +3 -0
- package/cjs/components/protocol/index.js +10 -0
- package/cjs/components/protocol/protocol.css +46 -0
- package/cjs/components/protocol/protocol.d.ts +15 -0
- package/cjs/components/protocol/protocol.js +120 -0
- package/cjs/components/radio/group-context.d.ts +8 -0
- package/cjs/components/radio/group-context.js +8 -0
- package/cjs/components/radio/group.d.ts +10 -0
- package/cjs/components/radio/group.js +43 -0
- package/cjs/components/radio/index.d.ts +8 -0
- package/cjs/components/radio/index.js +13 -0
- package/cjs/components/radio/radio.css +92 -0
- package/cjs/components/radio/radio.d.ts +19 -0
- package/cjs/components/radio/radio.js +92 -0
- package/cjs/components/search/index.d.ts +3 -0
- package/cjs/components/search/index.js +10 -0
- package/cjs/components/search/search.css +53 -0
- package/cjs/components/search/search.d.ts +15 -0
- package/cjs/components/search/search.js +110 -0
- package/cjs/components/stock-count-keyboard/index.d.ts +4 -0
- package/cjs/components/stock-count-keyboard/index.js +9 -0
- package/cjs/components/stock-count-keyboard/stock-count-keyboard.css +74 -0
- package/cjs/components/stock-count-keyboard/stock-count-keyboard.d.ts +9 -0
- package/cjs/components/stock-count-keyboard/stock-count-keyboard.js +82 -0
- package/cjs/components/stock-keyboard/index.d.ts +4 -0
- package/cjs/components/stock-keyboard/index.js +9 -0
- package/cjs/components/stock-keyboard/stock-keyboard.css +111 -0
- package/cjs/components/stock-keyboard/stock-keyboard.d.ts +12 -0
- package/cjs/components/stock-keyboard/stock-keyboard.js +107 -0
- package/cjs/components/switch/index.d.ts +4 -0
- package/cjs/components/switch/index.js +10 -0
- package/cjs/components/switch/switch.css +104 -0
- package/cjs/components/switch/switch.d.ts +16 -0
- package/cjs/components/switch/switch.js +213 -0
- package/cjs/components/toastLoading/index.d.ts +4 -0
- package/cjs/components/toastLoading/index.js +9 -0
- package/cjs/components/toastLoading/toastLoading.css +27 -0
- package/cjs/components/toastLoading/toastLoading.d.ts +7 -0
- package/cjs/components/toastLoading/toastLoading.js +35 -0
- package/cjs/global/global.css +289 -0
- package/cjs/global/index.d.ts +1 -0
- package/cjs/global/index.js +11 -0
- package/cjs/global/theme-dark.css +18 -0
- package/cjs/global/theme-default.css +48 -0
- package/cjs/index.d.ts +18 -0
- package/cjs/index.js +149 -0
- package/cjs/utils/attach-properties-to-component.d.ts +1 -0
- package/cjs/utils/attach-properties-to-component.js +15 -0
- package/cjs/utils/bound.d.ts +1 -0
- package/cjs/utils/bound.js +16 -0
- package/cjs/utils/can-use-dom.d.ts +1 -0
- package/cjs/utils/can-use-dom.js +7 -0
- package/cjs/utils/convert-px.d.ts +1 -0
- package/cjs/utils/convert-px.js +33 -0
- package/cjs/utils/create-icon-component.d.ts +2 -0
- package/cjs/utils/create-icon-component.js +12 -0
- package/cjs/utils/dev-log.d.ts +3 -0
- package/cjs/utils/dev-log.js +45 -0
- package/cjs/utils/generate-int-array.d.ts +1 -0
- package/cjs/utils/generate-int-array.js +13 -0
- package/cjs/utils/get-container.d.ts +2 -0
- package/cjs/utils/get-container.js +10 -0
- package/cjs/utils/get-scroll-parent.d.ts +3 -0
- package/cjs/utils/get-scroll-parent.js +30 -0
- package/cjs/utils/is-dev.d.ts +1 -0
- package/cjs/utils/is-dev.js +7 -0
- package/cjs/utils/is-node-with-content.d.ts +4 -0
- package/cjs/utils/is-node-with-content.js +9 -0
- package/cjs/utils/matrix.d.ts +10 -0
- package/cjs/utils/matrix.js +47 -0
- package/cjs/utils/measure-css-length.d.ts +1 -0
- package/cjs/utils/measure-css-length.js +29 -0
- package/cjs/utils/merge-locale.d.ts +1 -0
- package/cjs/utils/merge-locale.js +21 -0
- package/cjs/utils/native-props.d.ts +8 -0
- package/cjs/utils/native-props.js +38 -0
- package/cjs/utils/nearest.d.ts +1 -0
- package/cjs/utils/nearest.js +11 -0
- package/cjs/utils/noop.d.ts +1 -0
- package/cjs/utils/noop.js +8 -0
- package/cjs/utils/reduce-and-restore-motion.d.ts +4 -0
- package/cjs/utils/reduce-and-restore-motion.js +44 -0
- package/cjs/utils/render-imperatively.d.ts +13 -0
- package/cjs/utils/render-imperatively.js +207 -0
- package/cjs/utils/render-to-body.d.ts +2 -0
- package/cjs/utils/render-to-body.js +19 -0
- package/cjs/utils/render-to-container.d.ts +3 -0
- package/cjs/utils/render-to-container.js +16 -0
- package/cjs/utils/render.d.ts +9 -0
- package/cjs/utils/render.js +196 -0
- package/cjs/utils/replace-message.d.ts +1 -0
- package/cjs/utils/replace-message.js +13 -0
- package/cjs/utils/rubberband.d.ts +2 -0
- package/cjs/utils/rubberband.js +20 -0
- package/cjs/utils/should-render.d.ts +10 -0
- package/cjs/utils/should-render.js +20 -0
- package/cjs/utils/shuffle.d.ts +6 -0
- package/cjs/utils/shuffle.js +29 -0
- package/cjs/utils/sleep.d.ts +1 -0
- package/cjs/utils/sleep.js +12 -0
- package/cjs/utils/supports-passive.d.ts +1 -0
- package/cjs/utils/supports-passive.js +19 -0
- package/cjs/utils/to-css-length.d.ts +1 -0
- package/cjs/utils/to-css-length.js +9 -0
- package/cjs/utils/traverse-react-node.d.ts +2 -0
- package/cjs/utils/traverse-react-node.js +23 -0
- package/cjs/utils/tree.d.ts +1 -0
- package/cjs/utils/tree.js +24 -0
- package/cjs/utils/undefined-fallback.d.ts +3 -0
- package/cjs/utils/undefined-fallback.js +17 -0
- package/cjs/utils/use-drag-and-pinch.d.ts +1 -0
- package/cjs/utils/use-drag-and-pinch.js +8 -0
- package/cjs/utils/use-initialized.d.ts +1 -0
- package/cjs/utils/use-initialized.js +14 -0
- package/cjs/utils/use-inner-visible.d.ts +1 -0
- package/cjs/utils/use-inner-visible.js +17 -0
- package/cjs/utils/use-isomorphic-update-layout-effect.d.ts +2 -0
- package/cjs/utils/use-isomorphic-update-layout-effect.js +8 -0
- package/cjs/utils/use-lock-scroll.d.ts +2 -0
- package/cjs/utils/use-lock-scroll.js +84 -0
- package/cjs/utils/use-mutation-effect.d.ts +2 -0
- package/cjs/utils/use-mutation-effect.js +21 -0
- package/cjs/utils/use-props-value.d.ts +8 -0
- package/cjs/utils/use-props-value.js +30 -0
- package/cjs/utils/use-ref-state.d.ts +2 -0
- package/cjs/utils/use-ref-state.js +17 -0
- package/cjs/utils/use-resize-effect.d.ts +2 -0
- package/cjs/utils/use-resize-effect.js +29 -0
- package/cjs/utils/use-tab-list-scroll.d.ts +5 -0
- package/cjs/utils/use-tab-list-scroll.js +67 -0
- package/cjs/utils/use-touch.d.ts +17 -0
- package/cjs/utils/use-touch.js +69 -0
- package/cjs/utils/validate.d.ts +8 -0
- package/cjs/utils/validate.js +39 -0
- package/cjs/utils/with-cache.d.ts +1 -0
- package/cjs/utils/with-cache.js +15 -0
- package/cjs/utils/with-default-props.d.ts +2 -0
- package/cjs/utils/with-default-props.js +32 -0
- package/cjs/utils/with-func-props.d.ts +5 -0
- package/cjs/utils/with-func-props.js +38 -0
- package/cjs/utils/with-stop-propagation.d.ts +4 -0
- package/cjs/utils/with-stop-propagation.js +37 -0
- package/es/components/alphabet-keyboard/alphabet-keyboard.css +143 -0
- package/es/components/alphabet-keyboard/alphabet-keyboard.d.ts +11 -0
- package/es/components/alphabet-keyboard/alphabet-keyboard.js +132 -0
- package/es/components/alphabet-keyboard/index.d.ts +4 -0
- package/es/components/alphabet-keyboard/index.js +3 -0
- package/es/components/button/button.css +152 -0
- package/es/components/button/button.d.ts +40 -0
- package/es/components/button/button.js +206 -0
- package/es/components/button/index.d.ts +4 -0
- package/es/components/button/index.js +3 -0
- package/es/components/card/card.css +37 -0
- package/es/components/card/card.d.ts +17 -0
- package/es/components/card/card.js +33 -0
- package/es/components/card/index.d.ts +4 -0
- package/es/components/card/index.js +3 -0
- package/es/components/checkbox/checkbox.css +92 -0
- package/es/components/checkbox/checkbox.d.ts +44 -0
- package/es/components/checkbox/checkbox.js +97 -0
- package/es/components/checkbox/group-context.d.ts +8 -0
- package/es/components/checkbox/group-context.js +2 -0
- package/es/components/checkbox/group.d.ts +10 -0
- package/es/components/checkbox/group.js +40 -0
- package/es/components/checkbox/index.d.ts +26 -0
- package/es/components/checkbox/index.js +7 -0
- package/es/components/checkbox/native-input.d.ts +10 -0
- package/es/components/checkbox/native-input.js +29 -0
- package/es/components/grid/grid.css +15 -0
- package/es/components/grid/grid.d.ts +15 -0
- package/es/components/grid/grid.js +36 -0
- package/es/components/grid/index.d.ts +7 -0
- package/es/components/grid/index.js +6 -0
- package/es/components/icons/check-icon.d.ts +4 -0
- package/es/components/icons/check-icon.js +22 -0
- package/es/components/icons/check-only-icon.d.ts +4 -0
- package/es/components/icons/check-only-icon.js +13 -0
- package/es/components/icons/clear-icon.d.ts +4 -0
- package/es/components/icons/clear-icon.js +33 -0
- package/es/components/icons/indeterminate-icon.d.ts +4 -0
- package/es/components/icons/indeterminate-icon.js +21 -0
- package/es/components/icons/index.d.ts +8 -0
- package/es/components/icons/index.js +8 -0
- package/es/components/icons/loading-icon.d.ts +4 -0
- package/es/components/icons/loading-icon.js +81 -0
- package/es/components/icons/search-icon.d.ts +4 -0
- package/es/components/icons/search-icon.js +35 -0
- package/es/components/icons/spin-icon.d.ts +4 -0
- package/es/components/icons/spin-icon.js +24 -0
- package/es/components/icons/uncheck-icon.d.ts +4 -0
- package/es/components/icons/uncheck-icon.js +18 -0
- package/es/components/imageViewer/imageViewer.d.ts +4 -0
- package/es/components/imageViewer/imageViewer.js +28 -0
- package/es/components/imageViewer/index.d.ts +7 -0
- package/es/components/imageViewer/index.js +2 -0
- package/es/components/marketTag/index.d.ts +4 -0
- package/es/components/marketTag/index.js +3 -0
- package/es/components/marketTag/marketTag.css +14 -0
- package/es/components/marketTag/marketTag.d.ts +11 -0
- package/es/components/marketTag/marketTag.js +19 -0
- package/es/components/number-keyboard/index.d.ts +4 -0
- package/es/components/number-keyboard/index.js +3 -0
- package/es/components/number-keyboard/number-keyboard.css +77 -0
- package/es/components/number-keyboard/number-keyboard.d.ts +13 -0
- package/es/components/number-keyboard/number-keyboard.js +85 -0
- package/es/components/pdfLink/index.d.ts +3 -0
- package/es/components/pdfLink/index.js +3 -0
- package/es/components/pdfLink/pdfLink.css +11 -0
- package/es/components/pdfLink/pdfLink.d.ts +8 -0
- package/es/components/pdfLink/pdfLink.js +94 -0
- package/es/components/protocol/index.d.ts +3 -0
- package/es/components/protocol/index.js +3 -0
- package/es/components/protocol/protocol.css +46 -0
- package/es/components/protocol/protocol.d.ts +15 -0
- package/es/components/protocol/protocol.js +112 -0
- package/es/components/radio/group-context.d.ts +8 -0
- package/es/components/radio/group-context.js +2 -0
- package/es/components/radio/group.d.ts +10 -0
- package/es/components/radio/group.js +35 -0
- package/es/components/radio/index.d.ts +8 -0
- package/es/components/radio/index.js +7 -0
- package/es/components/radio/radio.css +92 -0
- package/es/components/radio/radio.d.ts +19 -0
- package/es/components/radio/radio.js +82 -0
- package/es/components/search/index.d.ts +3 -0
- package/es/components/search/index.js +3 -0
- package/es/components/search/search.css +53 -0
- package/es/components/search/search.d.ts +15 -0
- package/es/components/search/search.js +102 -0
- package/es/components/stock-count-keyboard/index.d.ts +4 -0
- package/es/components/stock-count-keyboard/index.js +3 -0
- package/es/components/stock-count-keyboard/stock-count-keyboard.css +74 -0
- package/es/components/stock-count-keyboard/stock-count-keyboard.d.ts +9 -0
- package/es/components/stock-count-keyboard/stock-count-keyboard.js +74 -0
- package/es/components/stock-keyboard/index.d.ts +4 -0
- package/es/components/stock-keyboard/index.js +3 -0
- package/es/components/stock-keyboard/stock-keyboard.css +111 -0
- package/es/components/stock-keyboard/stock-keyboard.d.ts +12 -0
- package/es/components/stock-keyboard/stock-keyboard.js +99 -0
- package/es/components/switch/index.d.ts +4 -0
- package/es/components/switch/index.js +3 -0
- package/es/components/switch/switch.css +104 -0
- package/es/components/switch/switch.d.ts +16 -0
- package/es/components/switch/switch.js +204 -0
- package/es/components/toastLoading/index.d.ts +4 -0
- package/es/components/toastLoading/index.js +3 -0
- package/es/components/toastLoading/toastLoading.css +27 -0
- package/es/components/toastLoading/toastLoading.d.ts +7 -0
- package/es/components/toastLoading/toastLoading.js +27 -0
- package/es/global/global.css +289 -0
- package/es/global/index.d.ts +1 -0
- package/es/global/index.js +9 -0
- package/es/global/theme-dark.css +18 -0
- package/es/global/theme-default.css +48 -0
- package/es/index.d.ts +18 -0
- package/es/index.js +18 -0
- package/es/utils/attach-properties-to-component.d.ts +1 -0
- package/es/utils/attach-properties-to-component.js +9 -0
- package/es/utils/bound.d.ts +1 -0
- package/es/utils/bound.js +10 -0
- package/es/utils/can-use-dom.d.ts +1 -0
- package/es/utils/can-use-dom.js +1 -0
- package/es/utils/convert-px.d.ts +1 -0
- package/es/utils/convert-px.js +27 -0
- package/es/utils/create-icon-component.d.ts +2 -0
- package/es/utils/create-icon-component.js +6 -0
- package/es/utils/dev-log.d.ts +3 -0
- package/es/utils/dev-log.js +37 -0
- package/es/utils/generate-int-array.d.ts +1 -0
- package/es/utils/generate-int-array.js +7 -0
- package/es/utils/get-container.d.ts +2 -0
- package/es/utils/get-container.js +4 -0
- package/es/utils/get-scroll-parent.d.ts +3 -0
- package/es/utils/get-scroll-parent.js +24 -0
- package/es/utils/is-dev.d.ts +1 -0
- package/es/utils/is-dev.js +1 -0
- package/es/utils/is-node-with-content.d.ts +4 -0
- package/es/utils/is-node-with-content.js +3 -0
- package/es/utils/matrix.d.ts +10 -0
- package/es/utils/matrix.js +32 -0
- package/es/utils/measure-css-length.d.ts +1 -0
- package/es/utils/measure-css-length.js +23 -0
- package/es/utils/merge-locale.d.ts +1 -0
- package/es/utils/merge-locale.js +15 -0
- package/es/utils/native-props.d.ts +8 -0
- package/es/utils/native-props.js +31 -0
- package/es/utils/nearest.d.ts +1 -0
- package/es/utils/nearest.js +5 -0
- package/es/utils/noop.d.ts +1 -0
- package/es/utils/noop.js +1 -0
- package/es/utils/reduce-and-restore-motion.d.ts +4 -0
- package/es/utils/reduce-and-restore-motion.js +35 -0
- package/es/utils/render-imperatively.d.ts +13 -0
- package/es/utils/render-imperatively.js +199 -0
- package/es/utils/render-to-body.d.ts +2 -0
- package/es/utils/render-to-body.js +13 -0
- package/es/utils/render-to-container.d.ts +3 -0
- package/es/utils/render-to-container.js +10 -0
- package/es/utils/render.d.ts +9 -0
- package/es/utils/render.js +187 -0
- package/es/utils/replace-message.d.ts +1 -0
- package/es/utils/replace-message.js +7 -0
- package/es/utils/rubberband.d.ts +2 -0
- package/es/utils/rubberband.js +13 -0
- package/es/utils/should-render.d.ts +10 -0
- package/es/utils/should-render.js +12 -0
- package/es/utils/shuffle.d.ts +6 -0
- package/es/utils/shuffle.js +23 -0
- package/es/utils/sleep.d.ts +1 -0
- package/es/utils/sleep.js +5 -0
- package/es/utils/supports-passive.d.ts +1 -0
- package/es/utils/supports-passive.js +13 -0
- package/es/utils/to-css-length.d.ts +1 -0
- package/es/utils/to-css-length.js +3 -0
- package/es/utils/traverse-react-node.d.ts +2 -0
- package/es/utils/traverse-react-node.js +16 -0
- package/es/utils/tree.d.ts +1 -0
- package/es/utils/tree.js +18 -0
- package/es/utils/undefined-fallback.d.ts +3 -0
- package/es/utils/undefined-fallback.js +11 -0
- package/es/utils/use-drag-and-pinch.d.ts +1 -0
- package/es/utils/use-drag-and-pinch.js +2 -0
- package/es/utils/use-initialized.d.ts +1 -0
- package/es/utils/use-initialized.js +8 -0
- package/es/utils/use-inner-visible.d.ts +1 -0
- package/es/utils/use-inner-visible.js +11 -0
- package/es/utils/use-isomorphic-update-layout-effect.d.ts +2 -0
- package/es/utils/use-isomorphic-update-layout-effect.js +2 -0
- package/es/utils/use-lock-scroll.d.ts +2 -0
- package/es/utils/use-lock-scroll.js +78 -0
- package/es/utils/use-mutation-effect.d.ts +2 -0
- package/es/utils/use-mutation-effect.js +15 -0
- package/es/utils/use-props-value.d.ts +8 -0
- package/es/utils/use-props-value.js +24 -0
- package/es/utils/use-ref-state.d.ts +2 -0
- package/es/utils/use-ref-state.js +11 -0
- package/es/utils/use-resize-effect.d.ts +2 -0
- package/es/utils/use-resize-effect.js +23 -0
- package/es/utils/use-tab-list-scroll.d.ts +5 -0
- package/es/utils/use-tab-list-scroll.js +60 -0
- package/es/utils/use-touch.d.ts +17 -0
- package/es/utils/use-touch.js +63 -0
- package/es/utils/validate.d.ts +8 -0
- package/es/utils/validate.js +26 -0
- package/es/utils/with-cache.d.ts +1 -0
- package/es/utils/with-cache.js +9 -0
- package/es/utils/with-default-props.d.ts +2 -0
- package/es/utils/with-default-props.js +25 -0
- package/es/utils/with-func-props.d.ts +5 -0
- package/es/utils/with-func-props.js +32 -0
- package/es/utils/with-stop-propagation.d.ts +4 -0
- package/es/utils/with-stop-propagation.js +30 -0
- package/package.json +48 -20
- package/__vendor/__vendor.js +0 -1
- package/handRead/handRead.d.ts +0 -6
- package/handRead/handRead.js +0 -302
- package/handRead/index.d.ts +0 -25
- package/handRead/index.js +0 -11
- package/imageViewer/imageViewer.d.ts +0 -3
- package/imageViewer/imageViewer.js +0 -28
- package/imageViewer/index.js +0 -8
- package/index.d.ts +0 -6
- package/index.js +0 -14
- package/keyboard/index.d.ts +0 -13
- package/keyboard/index.js +0 -7
- package/keyboard/keyboard.d.ts +0 -2
- package/keyboard/keyboard.js +0 -87
- package/style.css +0 -1
- package/utils/isEqual.d.ts +0 -5
- /package/{imageViewer → cjs/components/imageViewer}/index.d.ts +0 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React, { memo } from 'react';
|
|
2
|
+
import { withNativeProps } from '../../utils/native-props';
|
|
3
|
+
var ClearIcon = memo(function (props) {
|
|
4
|
+
return withNativeProps(props, React.createElement("svg", {
|
|
5
|
+
width: "1em",
|
|
6
|
+
height: "1em",
|
|
7
|
+
viewBox: "0 0 44 44",
|
|
8
|
+
version: "1.1"
|
|
9
|
+
}, React.createElement("g", {
|
|
10
|
+
stroke: "none",
|
|
11
|
+
strokeWidth: "1",
|
|
12
|
+
fill: "none",
|
|
13
|
+
fillRule: "evenodd"
|
|
14
|
+
}, React.createElement("g", null, React.createElement("rect", {
|
|
15
|
+
x: "0",
|
|
16
|
+
y: "0",
|
|
17
|
+
width: "36",
|
|
18
|
+
height: "36"
|
|
19
|
+
}), React.createElement("g", {
|
|
20
|
+
transform: "translate(4, 4)"
|
|
21
|
+
}, React.createElement("circle", {
|
|
22
|
+
fill: "currentColor",
|
|
23
|
+
cx: "18",
|
|
24
|
+
cy: "18",
|
|
25
|
+
r: "18"
|
|
26
|
+
}), React.createElement("path", {
|
|
27
|
+
d: "M19.5548764,18 L27.7015838,9.85329258 C28.1128091,9.44206724 28.1128091,8.76410114 27.7015838,8.3528758 L27.657127,8.30841901 C27.2459016,7.89719366 26.5679355,7.89719366 26.1567102,8.30841901 L18.0100028,16.4662406 L9.86329536,8.30841901 C9.45207002,7.89719366 8.77410392,7.89719366 8.36287858,8.30841901 L8.31842178,8.3528758 C7.89608225,8.76410114 7.89608225,9.44206724 8.31842178,9.85329258 L16.4651292,18 L8.31842178,26.1467074 C7.90719644,26.5579328 7.90719644,27.2358989 8.31842178,27.6471242 L8.36287858,27.691581 C8.77410392,28.1028063 9.45207002,28.1028063 9.86329536,27.691581 L18.0100028,19.5448736 L26.1567102,27.691581 C26.5679355,28.1028063 27.2459016,28.1028063 27.657127,27.691581 L27.7015838,27.6471242 C28.1128091,27.2358989 28.1128091,26.5579328 27.7015838,26.1467074 L19.5548764,18 Z",
|
|
28
|
+
id: "\u8DEF\u5F84",
|
|
29
|
+
fill: "#FFFFFF",
|
|
30
|
+
fillRule: "nonzero"
|
|
31
|
+
}))))));
|
|
32
|
+
});
|
|
33
|
+
export default ClearIcon;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { memo } from 'react';
|
|
2
|
+
import { withNativeProps } from '../../utils/native-props';
|
|
3
|
+
var IndeterminateIcon = memo(function (props) {
|
|
4
|
+
return withNativeProps(props, React.createElement("svg", {
|
|
5
|
+
width: "1em",
|
|
6
|
+
height: "1em",
|
|
7
|
+
viewBox: "0 0 48 48"
|
|
8
|
+
}, React.createElement("g", {
|
|
9
|
+
fill: "none"
|
|
10
|
+
}, React.createElement("g", {
|
|
11
|
+
transform: "translate(4.000000, 4.000000)"
|
|
12
|
+
}, React.createElement("path", {
|
|
13
|
+
d: "M20,1.5 C25.100196,1.5 29.724834,3.57544581 33.0746665,6.92512482 C36.4244591,10.2747639 38.5,14.8991338 38.5,19.9990835 C38.5,25.0995017 36.4246362,29.7246098 33.0746617,33.0747379 C29.7251005,36.4244526 25.1007203,38.5 20,38.5 C14.8997226,38.5 10.2750185,36.4244845 6.9251796,33.0744921 C3.57545757,29.7246166 1.5,25.0998375 1.5,19.9990835 C1.5,14.8985814 3.57535642,10.274347 6.9249385,6.92491838 C10.2748077,3.5752027 14.8996147,1.5 20,1.5 Z",
|
|
14
|
+
stroke: "currentColor",
|
|
15
|
+
strokeWidth: "3"
|
|
16
|
+
}), React.createElement("path", {
|
|
17
|
+
d: "M20,9 C26.0752953,9 31,13.9247047 31,20 C31,26.0752953 26.0752953,31 20,31 C13.9247047,31 9,26.0752953 9,20 C9,13.9247047 13.9247047,9 20,9 Z",
|
|
18
|
+
fill: "currentColor"
|
|
19
|
+
})))));
|
|
20
|
+
});
|
|
21
|
+
export default IndeterminateIcon;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { default as CheckIcon } from './check-icon';
|
|
2
|
+
export { default as CheckOnlyIcon } from './check-only-icon';
|
|
3
|
+
export { default as ClearIcon } from './clear-icon';
|
|
4
|
+
export { default as IndeterminateIcon } from './indeterminate-icon';
|
|
5
|
+
export { default as LoadingIcon } from './loading-icon';
|
|
6
|
+
export { default as SearchIcon } from './search-icon';
|
|
7
|
+
export { default as SpinIcon } from './spin-icon';
|
|
8
|
+
export { default as UncheckIcon } from './uncheck-icon';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { default as CheckIcon } from './check-icon';
|
|
2
|
+
export { default as CheckOnlyIcon } from './check-only-icon';
|
|
3
|
+
export { default as ClearIcon } from './clear-icon';
|
|
4
|
+
export { default as IndeterminateIcon } from './indeterminate-icon';
|
|
5
|
+
export { default as LoadingIcon } from './loading-icon';
|
|
6
|
+
export { default as SearchIcon } from './search-icon';
|
|
7
|
+
export { default as SpinIcon } from './spin-icon';
|
|
8
|
+
export { default as UncheckIcon } from './uncheck-icon';
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import React, { memo } from 'react';
|
|
2
|
+
import { withNativeProps } from '../../utils/native-props';
|
|
3
|
+
var LoadingIcon = memo(function (props) {
|
|
4
|
+
return withNativeProps(props, React.createElement("svg", {
|
|
5
|
+
viewBox: "0 0 48 48",
|
|
6
|
+
width: "1em",
|
|
7
|
+
height: "1em"
|
|
8
|
+
}, React.createElement("g", {
|
|
9
|
+
stroke: "none",
|
|
10
|
+
strokeWidth: "1",
|
|
11
|
+
fill: "none",
|
|
12
|
+
fillRule: "evenodd"
|
|
13
|
+
}, React.createElement("g", {
|
|
14
|
+
transform: "translate(-307.000000, -1519.000000)"
|
|
15
|
+
}, React.createElement("g", {
|
|
16
|
+
transform: "translate(32.000000, 1497.000000)"
|
|
17
|
+
}, React.createElement("g", {
|
|
18
|
+
transform: "translate(275.000000, 22.000000)"
|
|
19
|
+
}, React.createElement("g", {
|
|
20
|
+
transform: "translate(4.000000, 4.000000)",
|
|
21
|
+
fill: "currentColor"
|
|
22
|
+
}, React.createElement("g", {
|
|
23
|
+
fillRule: "nonzero"
|
|
24
|
+
}, React.createElement("path", {
|
|
25
|
+
d: "M19.9393657,9.75528609 C19.080714,9.75528609 18.3846393,9.05921138 18.3846393,8.2005597 L18.3846393,1.59359451 C18.3846393,0.734942834 19.080714,0.0388681203 19.9393657,0.0388681203 C20.7980173,0.0388681203 21.4940921,0.734942834 21.4940921,1.59359451 L21.4940921,8.2005597 C21.4940921,9.06125624 20.7975746,9.75528609 19.9393657,9.75528609 L19.9393657,9.75528609 Z"
|
|
26
|
+
}), React.createElement("path", {
|
|
27
|
+
d: "M14.8473259,11.1209577 C14.1046351,11.5493078 13.1553597,11.2955741 12.7254353,10.5537936 L9.42195272,4.83240048 C9.03967154,4.09476348 9.30488139,3.18691549 10.0241301,2.77106867 C10.7433787,2.35522185 11.6624775,2.57834011 12.1110075,3.27767415 L15.41449,8.99906716 C15.6208863,9.35560565 15.677083,9.77956813 15.5707015,10.1775657 C15.46432,10.5755633 15.204087,10.9149467 14.8473259,11.1209577 L14.8473259,11.1209577 Z",
|
|
28
|
+
opacity: "0.9"
|
|
29
|
+
}), React.createElement("path", {
|
|
30
|
+
d: "M11.1209577,14.8473259 C10.9149467,15.204087 10.5755633,15.46432 10.1775657,15.5707015 C9.77956813,15.677083 9.35560565,15.6208863 8.99906716,15.41449 L3.27767415,12.1110075 C2.53511219,11.6816816 2.28118412,10.7316789 2.71050994,9.98911693 C3.13983576,9.24655496 4.08983851,8.9926269 4.83240048,9.42195272 L10.5537936,12.7254353 C11.2950871,13.1532961 11.5488184,14.1060324 11.1209577,14.8473259 L11.1209577,14.8473259 Z",
|
|
31
|
+
opacity: "0.85"
|
|
32
|
+
}), React.createElement("path", {
|
|
33
|
+
d: "M9.75528609,19.9393657 C9.75528609,20.7975746 9.05876866,21.4940921 8.2005597,21.4940921 L1.59359451,21.4940921 C0.734942834,21.4940921 0.0388681203,20.7980173 0.0388681203,19.9393657 C0.0388681203,19.080714 0.734942834,18.3846393 1.59359451,18.3846393 L8.2005597,18.3846393 C9.06125624,18.3846393 9.75528609,19.0811567 9.75528609,19.9393657 L9.75528609,19.9393657 Z",
|
|
34
|
+
opacity: "0.8"
|
|
35
|
+
}), React.createElement("path", {
|
|
36
|
+
d: "M11.1209577,25.0314055 C11.5493078,25.7740963 11.2955741,26.7233717 10.5537936,27.153296 L4.83240048,30.4567786 C4.09476348,30.8390598 3.18691549,30.57385 2.77106867,29.8546013 C2.35522185,29.1353526 2.57834011,28.2162539 3.27767415,27.7677239 L8.99906716,24.4642413 C9.35560565,24.2578451 9.77956813,24.2016483 10.1775657,24.3080299 C10.5755633,24.4144114 10.9149467,24.6746443 11.1209577,25.0314055 L11.1209577,25.0314055 Z",
|
|
37
|
+
opacity: "0.75"
|
|
38
|
+
}), React.createElement("path", {
|
|
39
|
+
d: "M14.8473259,28.7577736 C15.204087,28.9637847 15.46432,29.3031681 15.5707015,29.7011656 C15.677083,30.0991632 15.6208863,30.5231257 15.41449,30.8796642 L12.1110075,36.6010572 C11.8332824,37.0814106 11.3203883,37.3771108 10.7655275,37.3767708 C10.2106668,37.3764302 9.69813582,37.080101 9.42100015,36.5994073 C9.14386449,36.1187136 9.14422761,35.5266842 9.42195272,35.0463309 L12.7254353,29.3249378 C13.1553597,28.5831572 14.1046351,28.3294236 14.8473259,28.7577736 L14.8473259,28.7577736 Z",
|
|
40
|
+
id: "\u8DEF\u5F84",
|
|
41
|
+
opacity: "0.7"
|
|
42
|
+
}), React.createElement("path", {
|
|
43
|
+
d: "M19.9393657,30.1234453 C20.7975746,30.1234453 21.4940921,30.8199627 21.4940921,31.6781716 L21.4940921,38.2851368 C21.4940921,39.1437885 20.7980173,39.8398632 19.9393657,39.8398632 C19.080714,39.8398632 18.3846393,39.1437885 18.3846393,38.2851368 L18.3846393,31.6781716 C18.3846393,30.8174751 19.0811567,30.1234453 19.9393657,30.1234453 Z",
|
|
44
|
+
id: "\u8DEF\u5F84",
|
|
45
|
+
opacity: "0.65"
|
|
46
|
+
}), React.createElement("path", {
|
|
47
|
+
d: "M25.0314055,28.7577736 C25.7740963,28.3294236 26.7233717,28.5831572 27.153296,29.3249378 L30.4567786,35.0463309 C30.8390598,35.7839679 30.57385,36.6918159 29.8546013,37.1076627 C29.1353526,37.5235095 28.2162539,37.3003912 27.7677239,36.6010572 L24.4642413,30.8796642 C24.2578451,30.5231257 24.2016483,30.0991632 24.3080299,29.7011656 C24.4144114,29.3031681 24.6746443,28.9637847 25.0314055,28.7577736 L25.0314055,28.7577736 Z",
|
|
48
|
+
id: "\u8DEF\u5F84",
|
|
49
|
+
opacity: "0.6"
|
|
50
|
+
}), React.createElement("path", {
|
|
51
|
+
d: "M28.7577736,25.0314055 C28.9637847,24.6746443 29.3031681,24.4144114 29.7011656,24.3080299 C30.0991632,24.2016483 30.5231257,24.2578451 30.8796642,24.4642413 L36.6010572,27.7677239 C37.0814106,28.045449 37.3771108,28.558343 37.3767708,29.1132038 C37.3764302,29.6680646 37.080101,30.1805955 36.5994073,30.4577312 C36.1187136,30.7348669 35.5266842,30.7345037 35.0463309,30.4567786 L29.3249378,27.153296 C28.5831572,26.7233717 28.3294236,25.7740963 28.7577736,25.0314055 L28.7577736,25.0314055 Z",
|
|
52
|
+
id: "\u8DEF\u5F84",
|
|
53
|
+
opacity: "0.55"
|
|
54
|
+
}), React.createElement("path", {
|
|
55
|
+
d: "M30.1234453,19.9393657 C30.1234453,19.0811567 30.8199627,18.3846393 31.6781716,18.3846393 L38.2851368,18.3846393 C39.1437885,18.3846393 39.8398632,19.080714 39.8398632,19.9393657 C39.8398632,20.7980173 39.1437885,21.4940921 38.2851368,21.4940921 L31.6781716,21.4940921 C30.81952,21.4940921 30.1234453,20.7980173 30.1234453,19.9393657 L30.1234453,19.9393657 Z",
|
|
56
|
+
id: "\u8DEF\u5F84",
|
|
57
|
+
opacity: "0.5"
|
|
58
|
+
}), React.createElement("path", {
|
|
59
|
+
d: "M28.7577736,14.8473259 C28.3294236,14.1046351 28.5831572,13.1553597 29.3249378,12.7254353 L35.0463309,9.42195272 C35.7839679,9.03967154 36.6918159,9.30488139 37.1076627,10.0241301 C37.5235095,10.7433787 37.3003912,11.6624775 36.6010572,12.1110075 L30.8796642,15.41449 C30.5231257,15.6208863 30.0991632,15.677083 29.7011656,15.5707015 C29.3031681,15.46432 28.9637847,15.204087 28.7577736,14.8473259 L28.7577736,14.8473259 Z",
|
|
60
|
+
id: "\u8DEF\u5F84",
|
|
61
|
+
opacity: "0.4"
|
|
62
|
+
}), React.createElement("path", {
|
|
63
|
+
d: "M25.0314055,11.1209577 C24.6746443,10.9149467 24.4144114,10.5755633 24.3080299,10.1775657 C24.2016483,9.77956813 24.2578451,9.35560565 24.4642413,8.99906716 L27.7677239,3.27767415 C28.045449,2.79732076 28.558343,2.50162051 29.1132038,2.50196052 C29.6680646,2.50230113 30.1805956,2.7986303 30.4577312,3.279324 C30.7348669,3.7600177 30.7345038,4.35204711 30.4567786,4.83240048 L27.153296,10.5537936 C26.7233717,11.2955741 25.7740963,11.5493078 25.0314055,11.1209577 L25.0314055,11.1209577 Z",
|
|
64
|
+
id: "\u8DEF\u5F84",
|
|
65
|
+
opacity: "0.3"
|
|
66
|
+
})), React.createElement("rect", {
|
|
67
|
+
opacity: "0",
|
|
68
|
+
x: "0",
|
|
69
|
+
y: "0",
|
|
70
|
+
width: "40",
|
|
71
|
+
height: "40"
|
|
72
|
+
})), React.createElement("rect", {
|
|
73
|
+
fill: "#D8D8D8",
|
|
74
|
+
opacity: "0",
|
|
75
|
+
x: "0",
|
|
76
|
+
y: "0",
|
|
77
|
+
width: "48",
|
|
78
|
+
height: "48"
|
|
79
|
+
})))))));
|
|
80
|
+
});
|
|
81
|
+
export default LoadingIcon;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React, { memo } from 'react';
|
|
2
|
+
import { withNativeProps } from '../../utils/native-props';
|
|
3
|
+
var SearchIcon = memo(function (props) {
|
|
4
|
+
return withNativeProps(props, React.createElement("svg", {
|
|
5
|
+
width: "1em",
|
|
6
|
+
height: "1em",
|
|
7
|
+
viewBox: "0 0 56 56",
|
|
8
|
+
version: "1.1"
|
|
9
|
+
}, React.createElement("g", {
|
|
10
|
+
stroke: "none",
|
|
11
|
+
strokeWidth: "1",
|
|
12
|
+
fill: "none",
|
|
13
|
+
fillRule: "evenodd"
|
|
14
|
+
}, React.createElement("g", null, React.createElement("rect", {
|
|
15
|
+
x: "0",
|
|
16
|
+
y: "0",
|
|
17
|
+
width: "56",
|
|
18
|
+
height: "56"
|
|
19
|
+
}), React.createElement("circle", {
|
|
20
|
+
stroke: "currentColor",
|
|
21
|
+
strokeWidth: "3",
|
|
22
|
+
cx: "27",
|
|
23
|
+
cy: "27",
|
|
24
|
+
r: "16.5"
|
|
25
|
+
}), React.createElement("rect", {
|
|
26
|
+
fill: "currentColor",
|
|
27
|
+
transform: "translate(42.2426, 42.6464) rotate(-45) translate(-42.2426, -42.6464)",
|
|
28
|
+
x: "40.7426407",
|
|
29
|
+
y: "37.1464466",
|
|
30
|
+
width: "3",
|
|
31
|
+
height: "11",
|
|
32
|
+
rx: "1.5"
|
|
33
|
+
})))));
|
|
34
|
+
});
|
|
35
|
+
export default SearchIcon;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React, { memo } from 'react';
|
|
2
|
+
import { withNativeProps } from '../../utils/native-props';
|
|
3
|
+
var SpinIcon = memo(function (props) {
|
|
4
|
+
return withNativeProps(props, React.createElement("svg", {
|
|
5
|
+
width: '1em',
|
|
6
|
+
height: '1em',
|
|
7
|
+
viewBox: '0 0 28 28'
|
|
8
|
+
}, React.createElement("g", {
|
|
9
|
+
stroke: 'none',
|
|
10
|
+
strokeWidth: '1',
|
|
11
|
+
fill: 'none',
|
|
12
|
+
fillRule: 'evenodd'
|
|
13
|
+
}, React.createElement("g", {
|
|
14
|
+
transform: 'translate(-137.000000, -840.000000)',
|
|
15
|
+
fill: 'currentColor'
|
|
16
|
+
}, React.createElement("g", {
|
|
17
|
+
transform: 'translate(80.000000, 823.000000)'
|
|
18
|
+
}, React.createElement("g", {
|
|
19
|
+
transform: 'translate(53.000000, 13.000000)'
|
|
20
|
+
}, React.createElement("path", {
|
|
21
|
+
d: 'M17.9996753,31.5 C10.5556724,31.5 4.5,25.4443275 4.5,18.0003247 C4.5,10.5563219 10.5556724,4.5 17.9996753,4.5 C18.5355492,4.5 18.9702974,4.93474816 18.9702974,5.47062208 C18.9702974,6.006496 18.5355492,6.44124416 17.9996753,6.44124416 C11.6261524,6.44124416 6.44124416,11.6267709 6.44124416,18.0002938 C6.44124416,24.3738167 11.6261524,29.5587249 17.9996753,29.5587249 C24.3731982,29.5587249 29.5587249,24.3738167 29.5587249,18.0002938 C29.5587249,14.7964616 28.2778291,11.8169616 25.9523687,9.61220279 C25.5637302,9.24317094 25.5473089,8.62893223 25.9157222,8.23967523 C26.2841356,7.84976878 26.8989928,7.83461537 27.2882498,8.20302872 C30.0042351,10.7787368 31.5,14.2580826 31.5,18.0002938 C31.5,25.4443275 25.4436781,31.5 17.9996753,31.5 Z'
|
|
22
|
+
})))))));
|
|
23
|
+
});
|
|
24
|
+
export default SpinIcon;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React, { memo } from 'react';
|
|
2
|
+
import { withNativeProps } from '../../utils/native-props';
|
|
3
|
+
var UncheckIcon = memo(function (props) {
|
|
4
|
+
return withNativeProps(props, React.createElement("svg", {
|
|
5
|
+
width: "1em",
|
|
6
|
+
height: "1em",
|
|
7
|
+
viewBox: "0 0 48 48"
|
|
8
|
+
}, React.createElement("g", {
|
|
9
|
+
fill: "none"
|
|
10
|
+
}, React.createElement("g", {
|
|
11
|
+
transform: "translate(4.000000, 4.000000)"
|
|
12
|
+
}, React.createElement("path", {
|
|
13
|
+
d: "M20,1.5 C25.100196,1.5 29.724834,3.57544581 33.0746665,6.92512482 C36.4244591,10.2747639 38.5,14.8991338 38.5,19.9990835 C38.5,25.0995017 36.4246362,29.7246098 33.0746617,33.0747379 C29.7251005,36.4244526 25.1007203,38.5 20,38.5 C14.8997226,38.5 10.2750185,36.4244845 6.9251796,33.0744921 C3.57545757,29.7246166 1.5,25.0998375 1.5,19.9990835 C1.5,14.8985814 3.57535642,10.274347 6.9249385,6.92491838 C10.2748077,3.5752027 14.8996147,1.5 20,1.5 Z",
|
|
14
|
+
stroke: "currentColor",
|
|
15
|
+
strokeWidth: "3"
|
|
16
|
+
})))));
|
|
17
|
+
});
|
|
18
|
+
export default UncheckIcon;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { useState } from "react";
|
|
2
|
+
import { PhotoSlider } from "react-photo-view";
|
|
3
|
+
import "react-photo-view/dist/react-photo-view.css";
|
|
4
|
+
import React from "react";
|
|
5
|
+
export default function ImageViewer(props) {
|
|
6
|
+
var images = props.images,
|
|
7
|
+
currentIndex = props.currentIndex;
|
|
8
|
+
var _a = useState(currentIndex ? currentIndex - 1 : 0),
|
|
9
|
+
photoIndex = _a[0],
|
|
10
|
+
setPhotoIndex = _a[1];
|
|
11
|
+
function onClose(e) {
|
|
12
|
+
props.onClose && props.onClose(e);
|
|
13
|
+
}
|
|
14
|
+
return React.createElement(PhotoSlider, {
|
|
15
|
+
images: images.map(function (item, index) {
|
|
16
|
+
return {
|
|
17
|
+
src: item,
|
|
18
|
+
key: item + index
|
|
19
|
+
};
|
|
20
|
+
}),
|
|
21
|
+
visible: true,
|
|
22
|
+
index: photoIndex,
|
|
23
|
+
onIndexChange: setPhotoIndex,
|
|
24
|
+
onClose: function (e) {
|
|
25
|
+
return onClose(e);
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
.ebscn-marketTag {
|
|
2
|
+
padding: 0 1px;
|
|
3
|
+
font-size: var(--ebscn-font-size-2);
|
|
4
|
+
line-height: 13px;
|
|
5
|
+
height: 13px;
|
|
6
|
+
font-weight: normal;
|
|
7
|
+
display: inline-block;
|
|
8
|
+
white-space: nowrap;
|
|
9
|
+
border-radius: 2px;
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
}
|
|
12
|
+
.ebscn-marketTag:not(:last-child) {
|
|
13
|
+
margin-right: 4px;
|
|
14
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { FC, ReactNode } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { NativeProps } from '../../utils/native-props';
|
|
4
|
+
export type MarketTagProps = {
|
|
5
|
+
color?: string;
|
|
6
|
+
fillColor?: string;
|
|
7
|
+
onClick?: (e: React.MouseEvent<HTMLSpanElement, MouseEvent>) => void;
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
round?: boolean;
|
|
10
|
+
} & NativeProps;
|
|
11
|
+
export declare const MarketTag: FC<MarketTagProps>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { withNativeProps } from '../../utils/native-props';
|
|
3
|
+
import { mergeProps } from '../../utils/with-default-props';
|
|
4
|
+
var classPrefix = "ebscn-marketTag";
|
|
5
|
+
var defaultProps = {
|
|
6
|
+
color: 'var(--ebscn-color-primary, #e84225)',
|
|
7
|
+
fillColor: '#fcece9'
|
|
8
|
+
};
|
|
9
|
+
export var MarketTag = function (p) {
|
|
10
|
+
var props = mergeProps(defaultProps, p);
|
|
11
|
+
return withNativeProps(props, React.createElement("span", {
|
|
12
|
+
style: {
|
|
13
|
+
color: props.color,
|
|
14
|
+
backgroundColor: props.fillColor
|
|
15
|
+
},
|
|
16
|
+
onClick: props.onClick,
|
|
17
|
+
className: classPrefix
|
|
18
|
+
}, props.children));
|
|
19
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
.ebscn-number-keyboard {
|
|
2
|
+
display: none;
|
|
3
|
+
position: fixed;
|
|
4
|
+
bottom: 0;
|
|
5
|
+
transform: translateY(101%);
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-wrap: wrap;
|
|
8
|
+
width: 100%;
|
|
9
|
+
height: 216px;
|
|
10
|
+
padding: 0 0 0 0;
|
|
11
|
+
transition: all 0.5s;
|
|
12
|
+
align-content: flex-start;
|
|
13
|
+
}
|
|
14
|
+
.ebscn-number-keyboard :last-child {
|
|
15
|
+
background: var(--ebscn-color-primary);
|
|
16
|
+
color: var(--ebscn-color-background);
|
|
17
|
+
}
|
|
18
|
+
.ebscn-number-keyboard-key {
|
|
19
|
+
width: 25%;
|
|
20
|
+
height: 54px;
|
|
21
|
+
line-height: 54px;
|
|
22
|
+
text-align: center;
|
|
23
|
+
font-size: 24px;
|
|
24
|
+
font-weight: Regular;
|
|
25
|
+
color: var(--ebscn-color-text-dark-solid);
|
|
26
|
+
font-weight: 300;
|
|
27
|
+
box-shadow: 0 0 0 1px #cccccc;
|
|
28
|
+
background: var(--ebscn-color-background);
|
|
29
|
+
}
|
|
30
|
+
.ebscn-number-keyboard-key:active {
|
|
31
|
+
width: 25%;
|
|
32
|
+
height: 54px;
|
|
33
|
+
line-height: 54px;
|
|
34
|
+
text-align: center;
|
|
35
|
+
font-size: 24px;
|
|
36
|
+
color: var(--ebscn-color-text-dark-solid);
|
|
37
|
+
font-weight: 300;
|
|
38
|
+
box-shadow: 0 0 0 1px #cccccc;
|
|
39
|
+
background: var(--ebscn-color-border);
|
|
40
|
+
}
|
|
41
|
+
.ebscn-number-keyboard-option {
|
|
42
|
+
font-size: var(--ebscn-font-size-11);
|
|
43
|
+
background: #e1e3e8;
|
|
44
|
+
}
|
|
45
|
+
.ebscn-number-keyboard-option:active {
|
|
46
|
+
font-size: var(--ebscn-font-size-11);
|
|
47
|
+
background: #CACBD0;
|
|
48
|
+
}
|
|
49
|
+
.ebscn-number-keyboard-delete {
|
|
50
|
+
background: url(./images/delete.png) #e1e3e8 no-repeat center;
|
|
51
|
+
background-size: 24px 24px;
|
|
52
|
+
}
|
|
53
|
+
.ebscn-number-keyboard-delete:active {
|
|
54
|
+
background: url(./images/delete.png) #CACBD0 no-repeat center;
|
|
55
|
+
background-size: 24px 24px;
|
|
56
|
+
}
|
|
57
|
+
.ebscn-number-keyboard-confirmKey {
|
|
58
|
+
background-color: var(--ebscn-color-primary);
|
|
59
|
+
width: 25%;
|
|
60
|
+
height: 54px;
|
|
61
|
+
line-height: 54px;
|
|
62
|
+
text-align: center;
|
|
63
|
+
font-size: var(--ebscn-font-size-11);
|
|
64
|
+
color: var(--ebscn-color-text-dark-solid);
|
|
65
|
+
font-weight: 300;
|
|
66
|
+
box-shadow: 0 0 0 1px #cccccc;
|
|
67
|
+
}
|
|
68
|
+
.ebscn-number-keyboard-confirmKey:active {
|
|
69
|
+
background-color: #D03B21;
|
|
70
|
+
color: var(--ebscn-color-background);
|
|
71
|
+
}
|
|
72
|
+
@supports (bottom: env(safe-area-inset-bottom)) or (constant(safe-area-inset-bottom)) {
|
|
73
|
+
.keyboard {
|
|
74
|
+
height: calc(216px + env(safe-area-inset-bottom));
|
|
75
|
+
height: calc(216px + constant(safe-area-inset-bottom));
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { NativeProps } from '../../utils/native-props';
|
|
3
|
+
export type NumberKeyboardProps = {
|
|
4
|
+
types?: 'fullKeyboard' | 'numberKeyboard' | 'numberKeyboardWithDot';
|
|
5
|
+
visible?: boolean;
|
|
6
|
+
onInput: Function;
|
|
7
|
+
onChangeKeyBoard: Function;
|
|
8
|
+
onDelete: Function;
|
|
9
|
+
onClose: Function;
|
|
10
|
+
onClean: Function;
|
|
11
|
+
onConfirm: Function;
|
|
12
|
+
} & NativeProps;
|
|
13
|
+
export declare function NumberKeyboard(p: NumberKeyboardProps): JSX.Element;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import cns from "classnames";
|
|
2
|
+
import { useEffect, useRef } from "react";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { withNativeProps } from '../../utils/native-props';
|
|
5
|
+
import { mergeProps } from '../../utils/with-default-props';
|
|
6
|
+
var classPrefix = 'ebscn-number-keyboard';
|
|
7
|
+
var defaultProps = {
|
|
8
|
+
types: 'numberKeyboard',
|
|
9
|
+
visible: false
|
|
10
|
+
};
|
|
11
|
+
export function NumberKeyboard(p) {
|
|
12
|
+
var keyboardRef = useRef(null);
|
|
13
|
+
var props = mergeProps(defaultProps, p);
|
|
14
|
+
var visible = props.visible,
|
|
15
|
+
onInput = props.onInput,
|
|
16
|
+
onDelete = props.onDelete,
|
|
17
|
+
onChangeKeyBoard = props.onChangeKeyBoard,
|
|
18
|
+
onClose = props.onClose,
|
|
19
|
+
onClean = props.onClean,
|
|
20
|
+
onConfirm = props.onConfirm,
|
|
21
|
+
types = props.types;
|
|
22
|
+
var keys = types == 'numberKeyboard' ? [1, 2, 3, 'X', 4, 5, 6, '清除', 7, 8, 9, '隐藏', '', 0, '', '确定'] : types == 'fullKeyboard' ? [1, 2, 3, 'X', 4, 5, 6, '清除', 7, 8, 9, '隐藏', 'ABC', 0, '.', '确定'] : [1, 2, 3, 'X', 4, 5, 6, '清除', 7, 8, 9, '隐藏', '', 0, '.', '确定'];
|
|
23
|
+
var hideTimer = useRef(null);
|
|
24
|
+
var appearTimer = useRef(null);
|
|
25
|
+
var lastVisible = useRef(null);
|
|
26
|
+
var keyFlag = useRef(0);
|
|
27
|
+
useEffect(function () {
|
|
28
|
+
if (!visible) {
|
|
29
|
+
if (lastVisible.current) {
|
|
30
|
+
// 键盘已实例化,调用隐藏即可
|
|
31
|
+
hideKeyBoard();
|
|
32
|
+
}
|
|
33
|
+
// 未实例化,为初始化,不需处理
|
|
34
|
+
} else {
|
|
35
|
+
showKeyBoard();
|
|
36
|
+
lastVisible.current = visible; // 记录当前键盘状态
|
|
37
|
+
}
|
|
38
|
+
}, [visible]);
|
|
39
|
+
function hideKeyBoard() {
|
|
40
|
+
keyboardRef.current.style.transform = 'translateY(100%)';
|
|
41
|
+
if (appearTimer.current) clearTimeout(appearTimer.current);
|
|
42
|
+
if (!hideTimer.current) {
|
|
43
|
+
hideTimer.current = setTimeout(function () {
|
|
44
|
+
keyboardRef.current.style.display = 'none';
|
|
45
|
+
}, 500);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
function showKeyBoard() {
|
|
49
|
+
keyboardRef.current.style.display = '';
|
|
50
|
+
if (hideTimer.current) clearTimeout(hideTimer.current);
|
|
51
|
+
appearTimer.current = setTimeout(function () {
|
|
52
|
+
keyboardRef.current.style.transform = 'translateY(0)';
|
|
53
|
+
}, 20);
|
|
54
|
+
}
|
|
55
|
+
function onKeyPress(key) {
|
|
56
|
+
switch (key) {
|
|
57
|
+
case 'X':
|
|
58
|
+
return onDelete === null || onDelete === void 0 ? void 0 : onDelete();
|
|
59
|
+
case '清除':
|
|
60
|
+
return onClean === null || onClean === void 0 ? void 0 : onClean();
|
|
61
|
+
case '隐藏':
|
|
62
|
+
return onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
63
|
+
case '确定':
|
|
64
|
+
return onConfirm === null || onConfirm === void 0 ? void 0 : onConfirm();
|
|
65
|
+
case 'ABC':
|
|
66
|
+
return onChangeKeyBoard === null || onChangeKeyBoard === void 0 ? void 0 : onChangeKeyBoard();
|
|
67
|
+
default:
|
|
68
|
+
return onInput === null || onInput === void 0 ? void 0 : onInput(key);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return withNativeProps(props, React.createElement("div", {
|
|
72
|
+
ref: keyboardRef,
|
|
73
|
+
className: "".concat(classPrefix)
|
|
74
|
+
}, keys.map(function (item, index) {
|
|
75
|
+
return React.createElement("div", {
|
|
76
|
+
key: item || index,
|
|
77
|
+
className: cns(item !== '确定' ? "".concat(classPrefix, "-key") : "".concat(classPrefix, "-confirmKey"), typeof item !== 'number' && item.length && item !== '.' && item !== '确定' ? "".concat(classPrefix, "-option") : item == '确定' ? "".concat(classPrefix, "-confirmKey") : "".concat(classPrefix, "-number-key"), item === 'X' && "".concat(classPrefix, "-delete")),
|
|
78
|
+
onClick: function () {
|
|
79
|
+
if (visible) {
|
|
80
|
+
onKeyPress(item);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}, item !== 'X' ? item : '');
|
|
84
|
+
})));
|
|
85
|
+
}
|