@ebscn/ui 0.0.10 → 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,204 @@
|
|
|
1
|
+
var __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) {
|
|
3
|
+
return value instanceof P ? value : new P(function (resolve) {
|
|
4
|
+
resolve(value);
|
|
5
|
+
});
|
|
6
|
+
}
|
|
7
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
8
|
+
function fulfilled(value) {
|
|
9
|
+
try {
|
|
10
|
+
step(generator.next(value));
|
|
11
|
+
} catch (e) {
|
|
12
|
+
reject(e);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
function rejected(value) {
|
|
16
|
+
try {
|
|
17
|
+
step(generator["throw"](value));
|
|
18
|
+
} catch (e) {
|
|
19
|
+
reject(e);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
function step(result) {
|
|
23
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
24
|
+
}
|
|
25
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
var __generator = this && this.__generator || function (thisArg, body) {
|
|
29
|
+
var _ = {
|
|
30
|
+
label: 0,
|
|
31
|
+
sent: function () {
|
|
32
|
+
if (t[0] & 1) throw t[1];
|
|
33
|
+
return t[1];
|
|
34
|
+
},
|
|
35
|
+
trys: [],
|
|
36
|
+
ops: []
|
|
37
|
+
},
|
|
38
|
+
f,
|
|
39
|
+
y,
|
|
40
|
+
t,
|
|
41
|
+
g;
|
|
42
|
+
return g = {
|
|
43
|
+
next: verb(0),
|
|
44
|
+
"throw": verb(1),
|
|
45
|
+
"return": verb(2)
|
|
46
|
+
}, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
|
|
47
|
+
return this;
|
|
48
|
+
}), g;
|
|
49
|
+
function verb(n) {
|
|
50
|
+
return function (v) {
|
|
51
|
+
return step([n, v]);
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function step(op) {
|
|
55
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
56
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
57
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
58
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
59
|
+
switch (op[0]) {
|
|
60
|
+
case 0:
|
|
61
|
+
case 1:
|
|
62
|
+
t = op;
|
|
63
|
+
break;
|
|
64
|
+
case 4:
|
|
65
|
+
_.label++;
|
|
66
|
+
return {
|
|
67
|
+
value: op[1],
|
|
68
|
+
done: false
|
|
69
|
+
};
|
|
70
|
+
case 5:
|
|
71
|
+
_.label++;
|
|
72
|
+
y = op[1];
|
|
73
|
+
op = [0];
|
|
74
|
+
continue;
|
|
75
|
+
case 7:
|
|
76
|
+
op = _.ops.pop();
|
|
77
|
+
_.trys.pop();
|
|
78
|
+
continue;
|
|
79
|
+
default:
|
|
80
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
81
|
+
_ = 0;
|
|
82
|
+
continue;
|
|
83
|
+
}
|
|
84
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
85
|
+
_.label = op[1];
|
|
86
|
+
break;
|
|
87
|
+
}
|
|
88
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
89
|
+
_.label = t[1];
|
|
90
|
+
t = op;
|
|
91
|
+
break;
|
|
92
|
+
}
|
|
93
|
+
if (t && _.label < t[2]) {
|
|
94
|
+
_.label = t[2];
|
|
95
|
+
_.ops.push(op);
|
|
96
|
+
break;
|
|
97
|
+
}
|
|
98
|
+
if (t[2]) _.ops.pop();
|
|
99
|
+
_.trys.pop();
|
|
100
|
+
continue;
|
|
101
|
+
}
|
|
102
|
+
op = body.call(thisArg, _);
|
|
103
|
+
} catch (e) {
|
|
104
|
+
op = [6, e];
|
|
105
|
+
y = 0;
|
|
106
|
+
} finally {
|
|
107
|
+
f = t = 0;
|
|
108
|
+
}
|
|
109
|
+
if (op[0] & 5) throw op[1];
|
|
110
|
+
return {
|
|
111
|
+
value: op[0] ? op[1] : void 0,
|
|
112
|
+
done: true
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
import { SpinIcon } from '@ebscn/ui';
|
|
117
|
+
import classNames from 'classnames';
|
|
118
|
+
import React, { useState } from 'react';
|
|
119
|
+
import { withNativeProps } from '../../utils/native-props';
|
|
120
|
+
import { usePropsValue } from '../../utils/use-props-value';
|
|
121
|
+
import { isPromise } from '../../utils/validate';
|
|
122
|
+
import { mergeProps } from '../../utils/with-default-props';
|
|
123
|
+
var classPrefix = "ebscn-switch";
|
|
124
|
+
var defaultProps = {
|
|
125
|
+
defaultChecked: false,
|
|
126
|
+
size: 'normal'
|
|
127
|
+
};
|
|
128
|
+
var Switch = function (p) {
|
|
129
|
+
var _a;
|
|
130
|
+
var props = mergeProps(defaultProps, p);
|
|
131
|
+
var disabled = props.disabled || props.loading || false;
|
|
132
|
+
var _b = useState(false),
|
|
133
|
+
changing = _b[0],
|
|
134
|
+
setChanging = _b[1];
|
|
135
|
+
var _c = usePropsValue({
|
|
136
|
+
value: props.checked,
|
|
137
|
+
defaultValue: props.defaultChecked,
|
|
138
|
+
onChange: props.onChange
|
|
139
|
+
}),
|
|
140
|
+
checked = _c[0],
|
|
141
|
+
setChecked = _c[1];
|
|
142
|
+
function onClick() {
|
|
143
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
144
|
+
var nextChecked, e_1, result, e_2;
|
|
145
|
+
return __generator(this, function (_a) {
|
|
146
|
+
switch (_a.label) {
|
|
147
|
+
case 0:
|
|
148
|
+
if (disabled || props.loading || changing) {
|
|
149
|
+
return [2 /*return*/];
|
|
150
|
+
}
|
|
151
|
+
nextChecked = !checked;
|
|
152
|
+
if (!props.beforeChange) return [3 /*break*/, 4];
|
|
153
|
+
setChanging(true);
|
|
154
|
+
_a.label = 1;
|
|
155
|
+
case 1:
|
|
156
|
+
_a.trys.push([1, 3,, 4]);
|
|
157
|
+
return [4 /*yield*/, props.beforeChange(nextChecked)];
|
|
158
|
+
case 2:
|
|
159
|
+
_a.sent();
|
|
160
|
+
setChanging(false);
|
|
161
|
+
return [3 /*break*/, 4];
|
|
162
|
+
case 3:
|
|
163
|
+
e_1 = _a.sent();
|
|
164
|
+
setChanging(false);
|
|
165
|
+
throw e_1;
|
|
166
|
+
case 4:
|
|
167
|
+
result = setChecked(nextChecked);
|
|
168
|
+
if (!isPromise(result)) return [3 /*break*/, 8];
|
|
169
|
+
setChanging(true);
|
|
170
|
+
_a.label = 5;
|
|
171
|
+
case 5:
|
|
172
|
+
_a.trys.push([5, 7,, 8]);
|
|
173
|
+
return [4 /*yield*/, result];
|
|
174
|
+
case 6:
|
|
175
|
+
_a.sent();
|
|
176
|
+
setChanging(false);
|
|
177
|
+
return [3 /*break*/, 8];
|
|
178
|
+
case 7:
|
|
179
|
+
e_2 = _a.sent();
|
|
180
|
+
setChanging(false);
|
|
181
|
+
throw e_2;
|
|
182
|
+
case 8:
|
|
183
|
+
return [2 /*return*/];
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
return withNativeProps(props, React.createElement("div", {
|
|
189
|
+
onClick: onClick,
|
|
190
|
+
className: classNames(classPrefix, (_a = {}, _a["".concat(classPrefix, "-checked")] = checked, _a["".concat(classPrefix, "-disabled")] = disabled || changing, _a["".concat(classPrefix, "-small")] = props.size === 'small', _a)),
|
|
191
|
+
role: "switch",
|
|
192
|
+
"aria-checked": checked,
|
|
193
|
+
"aria-disabled": disabled
|
|
194
|
+
}, React.createElement("div", {
|
|
195
|
+
className: "".concat(classPrefix, "-checkbox")
|
|
196
|
+
}, React.createElement("div", {
|
|
197
|
+
className: "".concat(classPrefix, "-handle")
|
|
198
|
+
}, (props.loading || changing) && React.createElement(SpinIcon, {
|
|
199
|
+
className: "".concat(classPrefix, "-spin-icon")
|
|
200
|
+
})), React.createElement("div", {
|
|
201
|
+
className: "".concat(classPrefix, "-inner")
|
|
202
|
+
}, checked ? props.checkedText : props.uncheckedText))));
|
|
203
|
+
};
|
|
204
|
+
export default Switch;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
.ebscn-load {
|
|
2
|
+
width: 32%;
|
|
3
|
+
height: 120px;
|
|
4
|
+
border-radius: 6px;
|
|
5
|
+
background: var(--ebscn-color-text-dark-solid);
|
|
6
|
+
opacity: 0.6;
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
align-items: center;
|
|
10
|
+
position: absolute;
|
|
11
|
+
top: 50%;
|
|
12
|
+
left: 50%;
|
|
13
|
+
transform: translate(-50%, -50%);
|
|
14
|
+
}
|
|
15
|
+
.ebscn-load-gif-img {
|
|
16
|
+
width: 35%;
|
|
17
|
+
height: 42px;
|
|
18
|
+
background: url(./images/loading.webp) center no-repeat;
|
|
19
|
+
background-size: 100%;
|
|
20
|
+
margin-top: 21px;
|
|
21
|
+
}
|
|
22
|
+
.ebscn-load-txt {
|
|
23
|
+
font-size: var(--ebscn-font-size-7);
|
|
24
|
+
line-height: 16px;
|
|
25
|
+
color: var(--ebscn-color-background);
|
|
26
|
+
margin-top: 12px;
|
|
27
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import { withNativeProps } from '../../utils/native-props';
|
|
3
|
+
import { mergeProps } from '@ebscn/ui/utils/with-default-props';
|
|
4
|
+
var classPrefix = 'ebscn-load';
|
|
5
|
+
var defaultProps = {
|
|
6
|
+
title: '加载中',
|
|
7
|
+
visible: false
|
|
8
|
+
};
|
|
9
|
+
export function ToastLoading(p) {
|
|
10
|
+
var props = mergeProps(defaultProps, p);
|
|
11
|
+
console.log(p, 'toast');
|
|
12
|
+
var title = props.title,
|
|
13
|
+
visible = props.visible;
|
|
14
|
+
var _a = useState(visible),
|
|
15
|
+
showLoad = _a[0],
|
|
16
|
+
setShowLoad = _a[1];
|
|
17
|
+
return withNativeProps(props, React.createElement("div", {
|
|
18
|
+
className: "".concat(classPrefix),
|
|
19
|
+
style: {
|
|
20
|
+
visibility: showLoad ? 'visible' : 'hidden'
|
|
21
|
+
}
|
|
22
|
+
}, React.createElement("div", {
|
|
23
|
+
className: "".concat(classPrefix, "-gif-img")
|
|
24
|
+
}), React.createElement("p", {
|
|
25
|
+
className: "".concat(classPrefix, "-txt")
|
|
26
|
+
}, title)));
|
|
27
|
+
}
|
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--ebscn-radius-s: 4px;
|
|
3
|
+
--ebscn-radius-m: 8px;
|
|
4
|
+
--ebscn-radius-l: 12px;
|
|
5
|
+
--ebscn-font-size-1: 9px;
|
|
6
|
+
--ebscn-font-size-2: 10px;
|
|
7
|
+
--ebscn-font-size-3: 11px;
|
|
8
|
+
--ebscn-font-size-4: 12px;
|
|
9
|
+
--ebscn-font-size-5: 13px;
|
|
10
|
+
--ebscn-font-size-6: 14px;
|
|
11
|
+
--ebscn-font-size-7: 15px;
|
|
12
|
+
--ebscn-font-size-8: 16px;
|
|
13
|
+
--ebscn-font-size-9: 17px;
|
|
14
|
+
--ebscn-font-size-10: 18px;
|
|
15
|
+
--ebscn-font-size-11: 19px;
|
|
16
|
+
--ebscn-font-size-12: 20px;
|
|
17
|
+
--ebscn-font-size-13: 21px;
|
|
18
|
+
--ebscn-font-size-14: 22px;
|
|
19
|
+
--ebscn-color-primary: #E84225;
|
|
20
|
+
--ebscn-color-success: #00b578;
|
|
21
|
+
--ebscn-color-warning: #ff8f1f;
|
|
22
|
+
--ebscn-color-danger: #ff3141;
|
|
23
|
+
--ebscn-color-yellow: #ff9f18;
|
|
24
|
+
--ebscn-color-wathet: #e7f1ff;
|
|
25
|
+
--ebscn-color-text: #333333;
|
|
26
|
+
--ebscn-color-text-secondary: #666666;
|
|
27
|
+
--ebscn-color-weak: #999999;
|
|
28
|
+
--ebscn-color-light: #cccccc;
|
|
29
|
+
--ebscn-color-border: #eeeeee;
|
|
30
|
+
--ebscn-color-background: #ffffff;
|
|
31
|
+
--ebscn-color-highlight: var(--ebscn-color-danger);
|
|
32
|
+
--ebscn-color-white: #ffffff;
|
|
33
|
+
--ebscn-color-box: #f5f5f5;
|
|
34
|
+
--ebscn-color-text-light-solid: var(--ebscn-color-white);
|
|
35
|
+
--ebscn-color-text-dark-solid: #000000;
|
|
36
|
+
--ebscn-color-fill-content: var(--ebscn-color-box);
|
|
37
|
+
--ebscn-font-size-main: var(--ebscn-font-size-5);
|
|
38
|
+
--ebscn-font-family: -apple-system, blinkmacsystemfont, 'Helvetica Neue',
|
|
39
|
+
helvetica, segoe ui, arial, roboto, 'PingFang SC', 'miui',
|
|
40
|
+
'Hiragino Sans GB', 'Microsoft Yahei', sans-serif;
|
|
41
|
+
--ebscn-border-color: var(--ebscn-color-border);
|
|
42
|
+
--ebscn-color-green: #3caa44;
|
|
43
|
+
--ebscn-color-blue: #4c7cf1;
|
|
44
|
+
--ebscn-color-orange: #ff6800;
|
|
45
|
+
--ebscn-color-golden: #b47816;
|
|
46
|
+
--ebscn-color-grey: rgba(0, 0, 0, 0.7);
|
|
47
|
+
--ebscn-color-split-line: #EBEBEB;
|
|
48
|
+
}
|
|
49
|
+
html[data-prefers-color-scheme='dark'] {
|
|
50
|
+
--ebscn-color-primary: #3086ff;
|
|
51
|
+
--ebscn-color-success: #34b368;
|
|
52
|
+
--ebscn-color-warning: #ffa930;
|
|
53
|
+
--ebscn-color-danger: #ff4a58;
|
|
54
|
+
--ebscn-color-yellow: #ffa930;
|
|
55
|
+
--ebscn-color-orange: #e65a2b;
|
|
56
|
+
--ebscn-color-wathet: #0d2543;
|
|
57
|
+
--ebscn-color-text: #e6e6e6;
|
|
58
|
+
--ebscn-color-text-secondary: #b3b3b3;
|
|
59
|
+
--ebscn-color-weak: #808080;
|
|
60
|
+
--ebscn-color-light: #4d4d4d;
|
|
61
|
+
--ebscn-color-border: #2b2b2b;
|
|
62
|
+
--ebscn-color-box: #0a0a0a;
|
|
63
|
+
--ebscn-color-background: #1a1a1a;
|
|
64
|
+
--ebscn-color-background-body: var(--ebscn-color-background);
|
|
65
|
+
--ebscn-border-color: var(--ebscn-color-border);
|
|
66
|
+
}
|
|
67
|
+
:root {
|
|
68
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
69
|
+
}
|
|
70
|
+
html {
|
|
71
|
+
background-color: var(--ebscn-color-background-body);
|
|
72
|
+
}
|
|
73
|
+
body {
|
|
74
|
+
color: var(--ebscn-color-text);
|
|
75
|
+
font-size: var(--ebscn-font-size-main);
|
|
76
|
+
font-family: var(--ebscn-font-family);
|
|
77
|
+
}
|
|
78
|
+
a,
|
|
79
|
+
button {
|
|
80
|
+
cursor: pointer;
|
|
81
|
+
}
|
|
82
|
+
a {
|
|
83
|
+
color: var(--ebscn-color-primary);
|
|
84
|
+
transition: opacity ease-in-out 0.2s;
|
|
85
|
+
}
|
|
86
|
+
a:active {
|
|
87
|
+
opacity: 0.8;
|
|
88
|
+
}
|
|
89
|
+
.ebscn-plain-anchor {
|
|
90
|
+
color: unset;
|
|
91
|
+
transition: none;
|
|
92
|
+
}
|
|
93
|
+
.ebscn-plain-anchor:active {
|
|
94
|
+
opacity: unset;
|
|
95
|
+
}
|
|
96
|
+
body.ebscn-overflow-hidden {
|
|
97
|
+
overflow: hidden !important;
|
|
98
|
+
}
|
|
99
|
+
div.ebscn-px-tester {
|
|
100
|
+
--size: 1;
|
|
101
|
+
height: calc(var(--size) / 2 * 2px);
|
|
102
|
+
width: 0;
|
|
103
|
+
position: fixed;
|
|
104
|
+
left: -100vw;
|
|
105
|
+
top: -100vh;
|
|
106
|
+
-webkit-user-select: none;
|
|
107
|
+
user-select: none;
|
|
108
|
+
pointer-events: none;
|
|
109
|
+
}
|
|
110
|
+
.ebscn-lh-16 {
|
|
111
|
+
line-height: 16px;
|
|
112
|
+
}
|
|
113
|
+
.ebscn-h-16 {
|
|
114
|
+
height: 16px;
|
|
115
|
+
}
|
|
116
|
+
.ebscn-lh-32 {
|
|
117
|
+
line-height: 32px;
|
|
118
|
+
}
|
|
119
|
+
.ebscn-h-32 {
|
|
120
|
+
height: 32px;
|
|
121
|
+
}
|
|
122
|
+
.ebscn-lh-40 {
|
|
123
|
+
line-height: 40px;
|
|
124
|
+
}
|
|
125
|
+
.ebscn-h-40 {
|
|
126
|
+
height: 40px;
|
|
127
|
+
}
|
|
128
|
+
.ebscn-lh-50 {
|
|
129
|
+
line-height: 50px;
|
|
130
|
+
}
|
|
131
|
+
.ebscn-h-50 {
|
|
132
|
+
height: 50px;
|
|
133
|
+
}
|
|
134
|
+
.ebscn-lh-70 {
|
|
135
|
+
line-height: 70px;
|
|
136
|
+
}
|
|
137
|
+
.ebscn-h-70 {
|
|
138
|
+
height: 70px;
|
|
139
|
+
}
|
|
140
|
+
.ebscn-ml-4 {
|
|
141
|
+
margin-left: 4px;
|
|
142
|
+
}
|
|
143
|
+
.ebscn-mr-4 {
|
|
144
|
+
margin-right: 4px;
|
|
145
|
+
}
|
|
146
|
+
.ebscn-mt-4 {
|
|
147
|
+
margin-top: 4px;
|
|
148
|
+
}
|
|
149
|
+
.ebscn-mb-4 {
|
|
150
|
+
margin-bottom: 4px;
|
|
151
|
+
}
|
|
152
|
+
.ebscn-m-4 {
|
|
153
|
+
margin: 4px;
|
|
154
|
+
}
|
|
155
|
+
.ebscn-ml-8 {
|
|
156
|
+
margin-left: 8px;
|
|
157
|
+
}
|
|
158
|
+
.ebscn-mr-8 {
|
|
159
|
+
margin-right: 8px;
|
|
160
|
+
}
|
|
161
|
+
.ebscn-mt-8 {
|
|
162
|
+
margin-top: 8px;
|
|
163
|
+
}
|
|
164
|
+
.ebscn-mb-8 {
|
|
165
|
+
margin-bottom: 8px;
|
|
166
|
+
}
|
|
167
|
+
.ebscn-m-8 {
|
|
168
|
+
margin: 8px;
|
|
169
|
+
}
|
|
170
|
+
.ebscn-ml-12 {
|
|
171
|
+
margin-left: 12px;
|
|
172
|
+
}
|
|
173
|
+
.ebscn-mr-12 {
|
|
174
|
+
margin-right: 12px;
|
|
175
|
+
}
|
|
176
|
+
.ebscn-mt-12 {
|
|
177
|
+
margin-top: 12px;
|
|
178
|
+
}
|
|
179
|
+
.ebscn-mb-12 {
|
|
180
|
+
margin-bottom: 12px;
|
|
181
|
+
}
|
|
182
|
+
.ebscn-m-12 {
|
|
183
|
+
margin: 12px;
|
|
184
|
+
}
|
|
185
|
+
.ebscn-ml-16 {
|
|
186
|
+
margin-left: 16px;
|
|
187
|
+
}
|
|
188
|
+
.ebscn-mr-16 {
|
|
189
|
+
margin-right: 16px;
|
|
190
|
+
}
|
|
191
|
+
.ebscn-mt-16 {
|
|
192
|
+
margin-top: 16px;
|
|
193
|
+
}
|
|
194
|
+
.ebscn-mb-16 {
|
|
195
|
+
margin-bottom: 16px;
|
|
196
|
+
}
|
|
197
|
+
.ebscn-m-16 {
|
|
198
|
+
margin: 16px;
|
|
199
|
+
}
|
|
200
|
+
.ebscn-ml-20 {
|
|
201
|
+
margin-left: 20px;
|
|
202
|
+
}
|
|
203
|
+
.ebscn-mr-20 {
|
|
204
|
+
margin-right: 20px;
|
|
205
|
+
}
|
|
206
|
+
.ebscn-mt-20 {
|
|
207
|
+
margin-top: 20px;
|
|
208
|
+
}
|
|
209
|
+
.ebscn-mb-20 {
|
|
210
|
+
margin-bottom: 20px;
|
|
211
|
+
}
|
|
212
|
+
.ebscn-m-20 {
|
|
213
|
+
margin: 20px;
|
|
214
|
+
}
|
|
215
|
+
.ebscn-pl-4 {
|
|
216
|
+
padding-left: 4px;
|
|
217
|
+
}
|
|
218
|
+
.ebscn-pr-4 {
|
|
219
|
+
padding-right: 4px;
|
|
220
|
+
}
|
|
221
|
+
.ebscn-pt-4 {
|
|
222
|
+
padding-top: 4px;
|
|
223
|
+
}
|
|
224
|
+
.ebscn-pb-4 {
|
|
225
|
+
padding-bottom: 4px;
|
|
226
|
+
}
|
|
227
|
+
.ebscn-p-4 {
|
|
228
|
+
padding: 4px;
|
|
229
|
+
}
|
|
230
|
+
.ebscn-pl-8 {
|
|
231
|
+
padding-left: 8px;
|
|
232
|
+
}
|
|
233
|
+
.ebscn-pr-8 {
|
|
234
|
+
padding-right: 8px;
|
|
235
|
+
}
|
|
236
|
+
.ebscn-pt-8 {
|
|
237
|
+
padding-top: 8px;
|
|
238
|
+
}
|
|
239
|
+
.ebscn-pb-8 {
|
|
240
|
+
padding-bottom: 8px;
|
|
241
|
+
}
|
|
242
|
+
.ebscn-p-8 {
|
|
243
|
+
padding: 8px;
|
|
244
|
+
}
|
|
245
|
+
.ebscn-pl-12 {
|
|
246
|
+
padding-left: 12px;
|
|
247
|
+
}
|
|
248
|
+
.ebscn-pr-12 {
|
|
249
|
+
padding-right: 12px;
|
|
250
|
+
}
|
|
251
|
+
.ebscn-pt-12 {
|
|
252
|
+
padding-top: 12px;
|
|
253
|
+
}
|
|
254
|
+
.ebscn-pb-12 {
|
|
255
|
+
padding-bottom: 12px;
|
|
256
|
+
}
|
|
257
|
+
.ebscn-p-12 {
|
|
258
|
+
padding: 12px;
|
|
259
|
+
}
|
|
260
|
+
.ebscn-pl-16 {
|
|
261
|
+
padding-left: 16px;
|
|
262
|
+
}
|
|
263
|
+
.ebscn-pr-16 {
|
|
264
|
+
padding-right: 16px;
|
|
265
|
+
}
|
|
266
|
+
.ebscn-pt-16 {
|
|
267
|
+
padding-top: 16px;
|
|
268
|
+
}
|
|
269
|
+
.ebscn-pb-16 {
|
|
270
|
+
padding-bottom: 16px;
|
|
271
|
+
}
|
|
272
|
+
.ebscn-p-16 {
|
|
273
|
+
padding: 16px;
|
|
274
|
+
}
|
|
275
|
+
.ebscn-pl-20 {
|
|
276
|
+
padding-left: 20px;
|
|
277
|
+
}
|
|
278
|
+
.ebscn-pr-20 {
|
|
279
|
+
padding-right: 20px;
|
|
280
|
+
}
|
|
281
|
+
.ebscn-pt-20 {
|
|
282
|
+
padding-top: 20px;
|
|
283
|
+
}
|
|
284
|
+
.ebscn-pb-20 {
|
|
285
|
+
padding-bottom: 20px;
|
|
286
|
+
}
|
|
287
|
+
.ebscn-p-20 {
|
|
288
|
+
padding: 20px;
|
|
289
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './global.less';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "./global.css";
|
|
2
|
+
import { canUseDom } from '../utils/can-use-dom';
|
|
3
|
+
if (canUseDom) {
|
|
4
|
+
// Make sure the `:active` CSS selector of `button` and `a` take effect
|
|
5
|
+
// See: https://stackoverflow.com/questions/3885018/active-pseudo-class-doesnt-work-in-mobile-safari
|
|
6
|
+
document.addEventListener('touchstart', function () {}, true);
|
|
7
|
+
}
|
|
8
|
+
// Only for debugging. Must COMMENT this line before commit:
|
|
9
|
+
// import './css-vars-patch.less'
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
html[data-prefers-color-scheme='dark'] {
|
|
2
|
+
--ebscn-color-primary: #3086ff;
|
|
3
|
+
--ebscn-color-success: #34b368;
|
|
4
|
+
--ebscn-color-warning: #ffa930;
|
|
5
|
+
--ebscn-color-danger: #ff4a58;
|
|
6
|
+
--ebscn-color-yellow: #ffa930;
|
|
7
|
+
--ebscn-color-orange: #e65a2b;
|
|
8
|
+
--ebscn-color-wathet: #0d2543;
|
|
9
|
+
--ebscn-color-text: #e6e6e6;
|
|
10
|
+
--ebscn-color-text-secondary: #b3b3b3;
|
|
11
|
+
--ebscn-color-weak: #808080;
|
|
12
|
+
--ebscn-color-light: #4d4d4d;
|
|
13
|
+
--ebscn-color-border: #2b2b2b;
|
|
14
|
+
--ebscn-color-box: #0a0a0a;
|
|
15
|
+
--ebscn-color-background: #1a1a1a;
|
|
16
|
+
--ebscn-color-background-body: var(--ebscn-color-background);
|
|
17
|
+
--ebscn-border-color: var(--ebscn-color-border);
|
|
18
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--ebscn-radius-s: 4px;
|
|
3
|
+
--ebscn-radius-m: 8px;
|
|
4
|
+
--ebscn-radius-l: 12px;
|
|
5
|
+
--ebscn-font-size-1: 9px;
|
|
6
|
+
--ebscn-font-size-2: 10px;
|
|
7
|
+
--ebscn-font-size-3: 11px;
|
|
8
|
+
--ebscn-font-size-4: 12px;
|
|
9
|
+
--ebscn-font-size-5: 13px;
|
|
10
|
+
--ebscn-font-size-6: 14px;
|
|
11
|
+
--ebscn-font-size-7: 15px;
|
|
12
|
+
--ebscn-font-size-8: 16px;
|
|
13
|
+
--ebscn-font-size-9: 17px;
|
|
14
|
+
--ebscn-font-size-10: 18px;
|
|
15
|
+
--ebscn-font-size-11: 19px;
|
|
16
|
+
--ebscn-font-size-12: 20px;
|
|
17
|
+
--ebscn-font-size-13: 21px;
|
|
18
|
+
--ebscn-font-size-14: 22px;
|
|
19
|
+
--ebscn-color-primary: #E84225;
|
|
20
|
+
--ebscn-color-success: #00b578;
|
|
21
|
+
--ebscn-color-warning: #ff8f1f;
|
|
22
|
+
--ebscn-color-danger: #ff3141;
|
|
23
|
+
--ebscn-color-yellow: #ff9f18;
|
|
24
|
+
--ebscn-color-wathet: #e7f1ff;
|
|
25
|
+
--ebscn-color-text: #333333;
|
|
26
|
+
--ebscn-color-text-secondary: #666666;
|
|
27
|
+
--ebscn-color-weak: #999999;
|
|
28
|
+
--ebscn-color-light: #cccccc;
|
|
29
|
+
--ebscn-color-border: #eeeeee;
|
|
30
|
+
--ebscn-color-background: #ffffff;
|
|
31
|
+
--ebscn-color-highlight: var(--ebscn-color-danger);
|
|
32
|
+
--ebscn-color-white: #ffffff;
|
|
33
|
+
--ebscn-color-box: #f5f5f5;
|
|
34
|
+
--ebscn-color-text-light-solid: var(--ebscn-color-white);
|
|
35
|
+
--ebscn-color-text-dark-solid: #000000;
|
|
36
|
+
--ebscn-color-fill-content: var(--ebscn-color-box);
|
|
37
|
+
--ebscn-font-size-main: var(--ebscn-font-size-5);
|
|
38
|
+
--ebscn-font-family: -apple-system, blinkmacsystemfont, 'Helvetica Neue',
|
|
39
|
+
helvetica, segoe ui, arial, roboto, 'PingFang SC', 'miui',
|
|
40
|
+
'Hiragino Sans GB', 'Microsoft Yahei', sans-serif;
|
|
41
|
+
--ebscn-border-color: var(--ebscn-color-border);
|
|
42
|
+
--ebscn-color-green: #3caa44;
|
|
43
|
+
--ebscn-color-blue: #4c7cf1;
|
|
44
|
+
--ebscn-color-orange: #ff6800;
|
|
45
|
+
--ebscn-color-golden: #b47816;
|
|
46
|
+
--ebscn-color-grey: rgba(0, 0, 0, 0.7);
|
|
47
|
+
--ebscn-color-split-line: #EBEBEB;
|
|
48
|
+
}
|
package/es/index.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import './global';
|
|
2
|
+
export * from './components/icons';
|
|
3
|
+
export { default as Card } from './components/card';
|
|
4
|
+
export { default as NumberKeyboard } from './components/number-keyboard';
|
|
5
|
+
export { default as AlphabetKeyboard } from './components/alphabet-keyboard';
|
|
6
|
+
export { default as StockKeyboard } from './components/stock-keyboard';
|
|
7
|
+
export { default as StockCountKeyboard } from './components/stock-count-keyboard';
|
|
8
|
+
export { default as ToastLoading } from './components/toastLoading';
|
|
9
|
+
export { default as ImageViewer } from './components/imageViewer';
|
|
10
|
+
export { default as MarketTag } from './components/marketTag';
|
|
11
|
+
export { default as Checkbox } from './components/checkbox';
|
|
12
|
+
export { default as Grid } from './components/grid';
|
|
13
|
+
export { default as Radio } from './components/radio';
|
|
14
|
+
export { default as Protocal } from './components/protocol';
|
|
15
|
+
export { default as PdfLink } from './components/pdfLink';
|
|
16
|
+
export { default as Switch } from './components/switch';
|
|
17
|
+
export { default as Search } from './components/search';
|
|
18
|
+
export { default as Button } from './components/button';
|
package/es/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import './global';
|
|
2
|
+
export * from './components/icons';
|
|
3
|
+
export { default as Card } from './components/card';
|
|
4
|
+
export { default as NumberKeyboard } from './components/number-keyboard';
|
|
5
|
+
export { default as AlphabetKeyboard } from './components/alphabet-keyboard';
|
|
6
|
+
export { default as StockKeyboard } from './components/stock-keyboard';
|
|
7
|
+
export { default as StockCountKeyboard } from './components/stock-count-keyboard';
|
|
8
|
+
export { default as ToastLoading } from './components/toastLoading';
|
|
9
|
+
export { default as ImageViewer } from './components/imageViewer';
|
|
10
|
+
export { default as MarketTag } from './components/marketTag';
|
|
11
|
+
export { default as Checkbox } from './components/checkbox';
|
|
12
|
+
export { default as Grid } from './components/grid';
|
|
13
|
+
export { default as Radio } from './components/radio';
|
|
14
|
+
export { default as Protocal } from './components/protocol';
|
|
15
|
+
export { default as PdfLink } from './components/pdfLink';
|
|
16
|
+
export { default as Switch } from './components/switch';
|
|
17
|
+
export { default as Search } from './components/search';
|
|
18
|
+
export { default as Button } from './components/button';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function attachPropertiesToComponent<C, P extends Record<string, any>>(component: C, properties: P): C & P;
|