@tarojs/components-react 4.1.4-beta.12 → 4.1.4-beta.13
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/dist/index.css +1 -1
- package/dist/index.js +78 -11
- package/dist/index.js.map +1 -1
- package/dist/solid/index.css +1 -1
- package/dist/solid/index.js +78 -8
- package/dist/solid/index.js.map +1 -1
- package/package.json +6 -6
- package/dist/components/button/index.js +0 -87
- package/dist/components/button/index.js.map +0 -1
- package/dist/components/button/style/index.scss.js +0 -4
- package/dist/components/button/style/index.scss.js.map +0 -1
- package/dist/components/icon/index.js +0 -36
- package/dist/components/icon/index.js.map +0 -1
- package/dist/components/icon/style/index.scss.js +0 -4
- package/dist/components/icon/style/index.scss.js.map +0 -1
- package/dist/components/image/index.js +0 -86
- package/dist/components/image/index.js.map +0 -1
- package/dist/components/image/style/index.css.js +0 -4
- package/dist/components/image/style/index.css.js.map +0 -1
- package/dist/components/input/index.js +0 -233
- package/dist/components/input/index.js.map +0 -1
- package/dist/components/input/style/index.scss.js +0 -4
- package/dist/components/input/style/index.scss.js.map +0 -1
- package/dist/components/pull-down-refresh/index.js +0 -320
- package/dist/components/pull-down-refresh/index.js.map +0 -1
- package/dist/components/pull-down-refresh/style/index.css.js +0 -4
- package/dist/components/pull-down-refresh/style/index.css.js.map +0 -1
- package/dist/components/scroll-view/index.js +0 -184
- package/dist/components/scroll-view/index.js.map +0 -1
- package/dist/components/scroll-view/style/index.css.js +0 -4
- package/dist/components/scroll-view/style/index.css.js.map +0 -1
- package/dist/components/swiper/index.js +0 -461
- package/dist/components/swiper/index.js.map +0 -1
- package/dist/components/swiper/style/index.css.js +0 -4
- package/dist/components/swiper/style/index.css.js.map +0 -1
- package/dist/components/text/index.js +0 -28
- package/dist/components/text/index.js.map +0 -1
- package/dist/components/text/style/index.css.js +0 -4
- package/dist/components/text/style/index.css.js.map +0 -1
- package/dist/components/view/index.js +0 -80
- package/dist/components/view/index.js.map +0 -1
- package/dist/solid/components/button/index.js +0 -95
- package/dist/solid/components/button/index.js.map +0 -1
- package/dist/solid/components/button/style/index.scss.js +0 -4
- package/dist/solid/components/button/style/index.scss.js.map +0 -1
- package/dist/solid/components/icon/index.js +0 -39
- package/dist/solid/components/icon/index.js.map +0 -1
- package/dist/solid/components/icon/style/index.scss.js +0 -4
- package/dist/solid/components/icon/style/index.scss.js.map +0 -1
- package/dist/solid/components/image/index.js +0 -94
- package/dist/solid/components/image/index.js.map +0 -1
- package/dist/solid/components/image/style/index.css.js +0 -4
- package/dist/solid/components/image/style/index.css.js.map +0 -1
- package/dist/solid/components/scroll-view/index.js +0 -188
- package/dist/solid/components/scroll-view/index.js.map +0 -1
- package/dist/solid/components/scroll-view/style/index.css.js +0 -4
- package/dist/solid/components/scroll-view/style/index.css.js.map +0 -1
- package/dist/solid/components/text/index.js +0 -32
- package/dist/solid/components/text/index.js.map +0 -1
- package/dist/solid/components/text/style/index.css.js +0 -4
- package/dist/solid/components/text/style/index.css.js.map +0 -1
- package/dist/solid/components/view/index.js +0 -88
- package/dist/solid/components/view/index.js.map +0 -1
package/dist/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@-webkit-keyframes weuiLoading{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes weuiLoading{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.taro-button-core[loading]>.weui-loading{animation:weuiLoading 1s steps(12) infinite;background:transparent url("data:image/svg+xml;charset=utf8, %3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 100 100'%3E%3Cpath fill='none' d='M0 0h100v100H0z'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23E9E9E9' rx='5' ry='5' transform='translate(0 -30)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23989697' rx='5' ry='5' transform='rotate(30 105.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%239B999A' rx='5' ry='5' transform='rotate(60 75.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23A3A1A2' rx='5' ry='5' transform='rotate(90 65 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23ABA9AA' rx='5' ry='5' transform='rotate(120 58.66 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23B2B2B2' rx='5' ry='5' transform='rotate(150 54.02 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23BAB8B9' rx='5' ry='5' transform='rotate(180 50 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23C2C0C1' rx='5' ry='5' transform='rotate(-150 45.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23CBCBCB' rx='5' ry='5' transform='rotate(-120 41.34 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23D2D2D2' rx='5' ry='5' transform='rotate(-90 35 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23DADADA' rx='5' ry='5' transform='rotate(-60 24.02 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23E2E2E2' rx='5' ry='5' transform='rotate(-30 -5.98 65)'/%3E%3C/svg%3E") no-repeat;background-size:100%;display:inline-block;height:20px;vertical-align:middle;width:20px}.taro-button-core[loading]>.weui-loading.weui-btn_primary,.taro-button-core[loading]>.weui-loading.weui-btn_warn{color:hsla(0,0%,100%,.6)}.taro-button-core[loading]>.weui-loading.weui-btn_primary{background-color:#179b16}.taro-button-core[loading]>.weui-loading.weui-btn_warn{background-color:#ce3c39}.taro-button-core{-webkit-tap-highlight-color:rgba(0,0,0,0);appearance:none;background-color:#f8f8f8;border-radius:5px;border-width:0;box-sizing:border-box;color:#000;display:block;font-size:18px;line-height:2.55555556;margin-left:auto;margin-right:auto;outline:0;overflow:hidden;padding-left:14px;padding-right:14px;position:relative;text-align:center;text-decoration:none;width:100%}.taro-button-core:focus{outline:0}.taro-button-core:not([disabled]):active{background-color:#dedede;color:rgba(0,0,0,.6)}.taro-button-core:after{border:1px solid rgba(0,0,0,.2);border-radius:10px;box-sizing:border-box;content:" ";height:200%;left:0;position:absolute;top:0;transform:scale(.5);transform-origin:0 0;width:200%}.taro-button-core+.taro-button-core{margin-top:15px}.taro-button-core[type=default]{background-color:#f8f8f8;color:#000}.taro-button-core[type=default]:not([disabled]):visited{color:#000}.taro-button-core[type=default]:not([disabled]):active{background-color:#dedede;color:rgba(0,0,0,.6)}.taro-button-core[size=mini]{display:inline-block;font-size:13px;line-height:2.3;padding:0 1.32em;width:auto}.taro-button-core[plain=true],.taro-button-core[plain=true][type=default],.taro-button-core[plain=true][type=primary]{background-color:transparent;border-width:1px}.taro-button-core[disabled]{color:hsla(0,0%,100%,.6)}.taro-button-core[disabled][type=default]{background-color:#f7f7f7;color:rgba(0,0,0,.3)}.taro-button-core[disabled][type=primary]{background-color:#9ed99d}.taro-button-core[disabled][type=warn]{background-color:#ec8b89}.taro-button-core[loading] .weui-loading{margin:-.2em .34em 0 0}.taro-button-core[loading][type=primary],.taro-button-core[loading][type=warn]{color:hsla(0,0%,100%,.6)}.taro-button-core[loading][type=primary]{background-color:#179b16}.taro-button-core[loading][type=warn]{background-color:#ce3c39}.taro-button-core[plain=true][type=primary]{border:1px solid #1aad19;color:#1aad19}.taro-button-core[plain=true][type=primary]:not([disabled]):active{background-color:transparent;border-color:rgba(26,173,25,.6);color:rgba(26,173,25,.6)}.taro-button-core[plain=true][type=primary]:after{border-width:0}.taro-button-core[plain=true][type=warn]{border:1px solid #e64340;color:#e64340}.taro-button-core[plain=true][type=warn]:not([disabled]):active{background-color:transparent;border-color:rgba(230,67,64,.6);color:rgba(230,67,64,.6)}.taro-button-core[plain=true][type=warn]:after{border-width:0}.taro-button-core[plain=true],.taro-button-core[plain=true][type=default]{border:1px solid #353535;color:#353535}.taro-button-core[plain=true]:not([disabled]):active,.taro-button-core[plain=true][type=default]:not([disabled]):active{background-color:transparent;border-color:rgba(53,53,53,.6);color:rgba(53,53,53,.6)}.taro-button-core[plain=true]:after,.taro-button-core[plain=true][type=default]:after{border-width:0}.taro-button-core[type=primary]{background-color:#1aad19;color:#fff}.taro-button-core[type=primary]:not([disabled]):visited{color:#fff}.taro-button-core[type=primary]:not([disabled]):active{background-color:#179b16;color:hsla(0,0%,100%,.6)}.taro-button-core[type=warn]{background-color:#e64340;color:#fff}.taro-button-core[type=warn]:not([disabled]):visited{color:#fff}.taro-button-core[type=warn]:not([disabled]):active{background-color:#ce3c39;color:hsla(0,0%,100%,.6)}.taro-button-core[plain=true][disabled],.taro-button-core[plain=true][disabled][type=primary]{background-color:#f7f7f7;border:1px solid rgba(0,0,0,.2);color:rgba(0,0,0,.3)}.weui-icon-circle:before{content:"\ea01"}.weui-icon-download:before{content:"\ea02"}.weui-icon-info:before{content:"\ea03"}.weui-icon-safe-success:before{content:"\ea04"}.weui-icon-safe-warn:before{content:"\ea05"}.weui-icon-success:before{content:"\ea06"}.weui-icon-success-circle:before{content:"\ea07"}.weui-icon-success-no-circle:before{content:"\ea08"}.weui-icon-waiting:before{content:"\ea09"}.weui-icon-waiting-circle:before{content:"\ea0a"}.weui-icon-warn:before{content:"\ea0b"}.weui-icon-info-circle:before{content:"\ea0c"}.weui-icon-cancel:before{content:"\ea0d"}.weui-icon-search:before{content:"\ea0e"}.weui-icon-clear:before{content:"\ea0f"}.weui-icon-back:before{content:"\ea10"}.weui-icon-delete:before{content:"\ea11"}.weui-icon-success{color:#09bb07;font-size:23px}.weui-icon-waiting{color:#10aeff;font-size:23px}.weui-icon-warn{color:#f43530;font-size:23px}.weui-icon-info{color:#10aeff;font-size:23px}.weui-icon-success-circle,.weui-icon-success-no-circle{color:#09bb07;font-size:23px}.weui-icon-waiting-circle{color:#10aeff;font-size:23px}.weui-icon-circle{color:#c9c9c9;font-size:23px}.weui-icon-download,.weui-icon-info-circle{color:#09bb07;font-size:23px}.weui-icon-safe-success{color:#09bb07}.weui-icon-safe-warn{color:#ffbe00}.weui-icon-cancel{color:#f43530;font-size:22px}.weui-icon-clear,.weui-icon-search{color:#b2b2b2;font-size:14px}.weui-icon-delete.weui-icon_gallery-delete{color:#fff;font-size:22px}.weui-icon_msg{font-size:93px}.weui-icon_msg.weui-icon-warn{color:#f76260}.weui-icon_msg-primary{font-size:93px}.weui-icon_msg-primary.weui-icon-warn{color:#ffbe00}img[src=""]{opacity:0}.taro-img{display:inline-block;font-size:0;height:240px;overflow:hidden;position:relative;width:320px}.taro-img.taro-img__widthfix,.taro-img__mode-heightfix{height:100%}.taro-img__mode-scaletofill{height:100%;width:100%}.taro-img__mode-aspectfit{height:100%;object-fit:contain;width:100%}.taro-img__mode-aspectfill{height:100%;object-fit:cover;width:100%}.taro-img__mode-widthfix{width:100%}.taro-img__mode-bottom,.taro-img__mode-top{left:50%;position:absolute;transform:translate(-50%)}.taro-img__mode-bottom{bottom:0}.taro-img__mode-center{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.taro-img__mode-left,.taro-img__mode-right{position:absolute;top:50%;transform:translateY(-50%)}.taro-img__mode-right{right:0}.taro-img__mode-topright{position:absolute;right:0}.taro-img__mode-bottomleft{bottom:0;position:absolute}.taro-img__mode-bottomright{bottom:0;position:absolute;right:0}.taro-input-core{display:block}.weui-input{-webkit-appearance:none;background-color:transparent;border:0;color:inherit;font-size:inherit;height:1.4705882353em;line-height:1.4705882353;outline:0;width:100%}.weui-input::-webkit-inner-spin-button,.weui-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.taro-picker__overlay{z-index:1000}.taro-picker__mask-overlay,.taro-picker__overlay{bottom:0;height:100%;left:0;position:relative;right:0;top:0;width:100%}.taro-picker__mask-overlay{background-color:rgba(0,0,0,.6);z-index:1001}.taro-picker{background-color:#e5e5e5;bottom:0;left:0;position:relative;width:100%;z-index:1002}.taro-picker__hd{align-items:center;background-color:#fff;display:flex;font-size:17px;height:44px;justify-content:space-between;padding:0;position:relative}.taro-picker__hd:after{background-color:#e5e5e5;bottom:0;content:"";height:1px;left:0;position:absolute;transform:scaleY(.5);width:100%}.taro-picker__action{color:#1aad19;flex:0 0 auto;font-size:16px;height:44px;line-height:44px;padding:0 10px}.taro-picker__action:first-child{color:#888}.taro-picker__title{color:#000;font-weight:500;left:50%;max-width:40%;overflow:hidden;position:absolute;text-overflow:ellipsis;top:50%;transform:translate(-50%,-50%);white-space:nowrap}.taro-picker__bd{background-color:#fff;height:238px;overflow:hidden;width:100%}.taro-picker__bd,.taro-picker__group{box-sizing:border-box;display:flex;flex:1}.taro-picker__group{align-items:center;height:100%;justify-content:center;min-width:0;position:relative}.taro-picker__group--date .taro-picker__columns{display:flex;height:100%;width:100%}.taro-picker__mask{background:linear-gradient(180deg,hsla(0,0%,100%,.95),hsla(0,0%,100%,.6) 40%,hsla(0,0%,100%,0) 50%,hsla(0,0%,100%,0) 0,hsla(0,0%,100%,.6) 60%,hsla(0,0%,100%,.95));height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:1}.taro-picker__indicator{box-sizing:border-box;height:34px;left:0;position:absolute;top:50%;transform:translateY(-50%);width:100%;z-index:1002}.taro-picker__indicator:after,.taro-picker__indicator:before{background-color:#e5e5e5;content:"";height:1px;left:0;position:absolute;right:0;transform:scaleY(.5)}.taro-picker__indicator:before{top:0}.taro-picker__indicator:after{bottom:0}.taro-picker__content{box-sizing:border-box;height:100%;width:100%}.taro-picker__item{align-items:center;box-sizing:border-box;color:#000;display:flex;font-size:16px;height:34px;justify-content:center;line-height:34px;overflow:hidden;padding:0 8px;text-align:center;text-overflow:ellipsis;white-space:nowrap;width:100%}.taro-picker__item--selected{color:#1aad19;font-weight:500}.taro-picker__item--disabled{color:#999}.taro-picker__column{flex:1;margin:0 8px}.taro-picker__column:first-child{margin-left:0}.taro-picker__column:last-child{margin-right:0}.taro-picker__item--custom{align-items:center;color:#888;display:flex;font-weight:400;justify-content:center;text-align:center}@keyframes taro-picker__slide-up{0%{transform:translate3d(0,100%,0)}to{transform:translateZ(0)}}@keyframes taro-picker__slide-down{0%{transform:translateZ(0)}to{transform:translate3d(0,100%,0)}}@keyframes taro-picker__fade-in{0%{opacity:0}to{opacity:1}}@keyframes taro-picker__fade-out{0%{opacity:1}to{opacity:0}}.taro-picker,.taro-picker__hd{font-size:12px}.rmc-pull-to-refresh-content{transform-origin:left top 0}.rmc-pull-to-refresh-content-wrapper{min-height:100%}.rmc-pull-to-refresh-transition{transition:transform .3s}@keyframes rmc-pull-to-refresh-indicator{50%{opacity:.2}to{opacity:1}}.rmc-pull-to-refresh-indicator{height:30px;line-height:10px;text-align:center}.rmc-pull-to-refresh-indicator>div{animation-fill-mode:both;animation:rmc-pull-to-refresh-indicator .5s linear 0s infinite;background-color:grey;border-radius:100%;display:inline-block;height:6px;margin:3px;width:6px}.rmc-pull-to-refresh-indicator>div:nth-child(0){animation-delay:-.1s!important}.rmc-pull-to-refresh-indicator>div:first-child{animation-delay:-.2s!important}.rmc-pull-to-refresh-indicator>div:nth-child(2){animation-delay:-.3s!important}.rmc-pull-to-refresh-down .rmc-pull-to-refresh-indicator{margin-top:-25px}.taro-scroll{-webkit-overflow-scrolling:auto}.taro-scroll::-webkit-scrollbar{display:none}.taro-scroll-view{overflow:hidden}.taro-scroll-view__scroll-x{overflow-x:scroll;overflow-y:hidden}.taro-scroll-view__scroll-y{overflow-x:hidden;overflow-y:scroll}.swiper-container-wrapper{height:150px}.swiper-container{height:100%;overflow:visible;position:relative}.taro-text{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.taro-text__selectable{-moz-user-select:text;-webkit-user-select:text;-ms-user-select:text;user-select:text}
|
|
1
|
+
.taro-picker__overlay{z-index:1000}.taro-picker__mask-overlay,.taro-picker__overlay{bottom:0;height:100%;left:0;position:relative;right:0;top:0;width:100%}.taro-picker__mask-overlay{background-color:rgba(0,0,0,.6);z-index:1001}.taro-picker{background-color:#e5e5e5;bottom:0;left:0;position:relative;width:100%;z-index:1002}.taro-picker__hd{align-items:center;background-color:#fff;display:flex;font-size:17px;height:44px;justify-content:space-between;padding:0;position:relative}.taro-picker__hd:after{background-color:#e5e5e5;bottom:0;content:"";height:1px;left:0;position:absolute;transform:scaleY(.5);width:100%}.taro-picker__action{color:#1aad19;flex:0 0 auto;font-size:16px;height:44px;line-height:44px;padding:0 10px}.taro-picker__action:first-child{color:#888}.taro-picker__title{color:#000;font-weight:500;left:50%;max-width:40%;overflow:hidden;position:absolute;text-overflow:ellipsis;top:50%;transform:translate(-50%,-50%);white-space:nowrap}.taro-picker__bd{background-color:#fff;height:238px;overflow:hidden;width:100%}.taro-picker__bd,.taro-picker__group{box-sizing:border-box;display:flex;flex:1}.taro-picker__group{align-items:center;height:100%;justify-content:center;min-width:0;position:relative}.taro-picker__group--date .taro-picker__columns{display:flex;height:100%;width:100%}.taro-picker__mask{background:linear-gradient(180deg,hsla(0,0%,100%,.95),hsla(0,0%,100%,.6) 40%,hsla(0,0%,100%,0) 50%,hsla(0,0%,100%,0) 0,hsla(0,0%,100%,.6) 60%,hsla(0,0%,100%,.95));height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:1}.taro-picker__indicator{box-sizing:border-box;height:34px;left:0;position:absolute;top:50%;transform:translateY(-50%);width:100%;z-index:1002}.taro-picker__indicator:after,.taro-picker__indicator:before{background-color:#e5e5e5;content:"";height:1px;left:0;position:absolute;right:0;transform:scaleY(.5)}.taro-picker__indicator:before{top:0}.taro-picker__indicator:after{bottom:0}.taro-picker__content{box-sizing:border-box;height:100%;width:100%}.taro-picker__item{align-items:center;box-sizing:border-box;color:#000;display:flex;font-size:16px;height:34px;justify-content:center;line-height:34px;overflow:hidden;padding:0 8px;text-align:center;text-overflow:ellipsis;white-space:nowrap;width:100%}.taro-picker__item--selected{color:#1aad19;font-weight:500}.taro-picker__item--disabled{color:#999}.taro-picker__column{flex:1;margin:0 8px}.taro-picker__column:first-child{margin-left:0}.taro-picker__column:last-child{margin-right:0}.taro-picker__item--custom{align-items:center;color:#888;display:flex;font-weight:400;justify-content:center;text-align:center}@keyframes taro-picker__slide-up{0%{transform:translate3d(0,100%,0)}to{transform:translateZ(0)}}@keyframes taro-picker__slide-down{0%{transform:translateZ(0)}to{transform:translate3d(0,100%,0)}}@keyframes taro-picker__fade-in{0%{opacity:0}to{opacity:1}}@keyframes taro-picker__fade-out{0%{opacity:1}to{opacity:0}}.taro-picker,.taro-picker__hd{font-size:12px}
|
package/dist/index.js
CHANGED
|
@@ -1,14 +1,81 @@
|
|
|
1
|
-
export { Ad, AdCustom, AnimationVideo, AnimationView, ArCamera, Audio, AwemeData, Block, Camera, Canvas, ChannelLive, ChannelVideo, Checkbox, CheckboxGroup, CommentDetail, CommentList, ContactButton, CoverImage, CoverView, CustomWrapper, DraggableSheet, Editor, FollowSwan, Form, FunctionalPageNavigator, GridBuilder, GridView, InlinePaymentPanel, KeyboardAccessory, Label, Lifestyle, Like, ListBuilder, ListView, LivePlayer, LivePusher, Login, Lottie, Map, MatchMedia, MovableArea, MovableView, NativeSlot, NavigationBar, Navigator, NestedScrollBody, NestedScrollHeader, OfficialAccount, OpenContainer, OpenData, PageContainer, PageMeta, Progress, Radio, RadioGroup, RichText, RootPortal, RtcRoom, RtcRoomItem, Script, ShareElement, Slider, Slot, Snapshot, Span, StickyHeader, StickySection, Switch, Tabs, Textarea, Video, VoipRoom, WebView } from '@tarojs/components/lib/react';
|
|
2
|
-
export { default as Button } from './components/button/index.js';
|
|
3
|
-
export { default as Icon } from './components/icon/index.js';
|
|
4
|
-
export { default as Image } from './components/image/index.js';
|
|
5
|
-
export { default as Input } from './components/input/index.js';
|
|
6
1
|
export { Picker } from './components/picker/index.js';
|
|
7
|
-
export { default as PullDownRefresh } from './components/pull-down-refresh/index.js';
|
|
8
|
-
export { default as ScrollView } from './components/scroll-view/index.js';
|
|
9
|
-
export { Swiper, SwiperItem } from './components/swiper/index.js';
|
|
10
|
-
export { default as Text } from './components/text/index.js';
|
|
11
|
-
export { default as View } from './components/view/index.js';
|
|
12
2
|
|
|
13
|
-
/* eslint-disable simple-import-sort/exports */
|
|
3
|
+
// /* eslint-disable simple-import-sort/exports */
|
|
4
|
+
// export { Ad } from '@tarojs/components/lib/react'
|
|
5
|
+
// export { AdCustom } from '@tarojs/components/lib/react'
|
|
6
|
+
// export { AnimationVideo } from '@tarojs/components/lib/react'
|
|
7
|
+
// export { AnimationView } from '@tarojs/components/lib/react'
|
|
8
|
+
// export { ArCamera } from '@tarojs/components/lib/react'
|
|
9
|
+
// export { Audio } from '@tarojs/components/lib/react'
|
|
10
|
+
// export { AwemeData } from '@tarojs/components/lib/react'
|
|
11
|
+
// export { Block } from '@tarojs/components/lib/react'
|
|
12
|
+
// export { default as Button } from './components/button'
|
|
13
|
+
// export { Camera } from '@tarojs/components/lib/react'
|
|
14
|
+
// export { Canvas } from '@tarojs/components/lib/react'
|
|
15
|
+
// export { ChannelLive } from '@tarojs/components/lib/react'
|
|
16
|
+
// export { ChannelVideo } from '@tarojs/components/lib/react'
|
|
17
|
+
// export { Checkbox, CheckboxGroup } from '@tarojs/components/lib/react'
|
|
18
|
+
// export { CommentDetail, CommentList } from '@tarojs/components/lib/react'
|
|
19
|
+
// export { ContactButton } from '@tarojs/components/lib/react'
|
|
20
|
+
// export { CoverImage } from '@tarojs/components/lib/react'
|
|
21
|
+
// export { CoverView } from '@tarojs/components/lib/react'
|
|
22
|
+
// export { CustomWrapper } from '@tarojs/components/lib/react'
|
|
23
|
+
// export { DraggableSheet } from '@tarojs/components/lib/react'
|
|
24
|
+
// export { Editor } from '@tarojs/components/lib/react'
|
|
25
|
+
// export { FollowSwan } from '@tarojs/components/lib/react'
|
|
26
|
+
// export { Form } from '@tarojs/components/lib/react'
|
|
27
|
+
// export { FunctionalPageNavigator } from '@tarojs/components/lib/react'
|
|
28
|
+
// export { GridView } from '@tarojs/components/lib/react'
|
|
29
|
+
// export { GridBuilder } from '@tarojs/components/lib/react'
|
|
30
|
+
// export { default as Icon } from './components/icon'
|
|
31
|
+
// export { default as Image } from './components/image'
|
|
32
|
+
// export { InlinePaymentPanel } from '@tarojs/components/lib/react'
|
|
33
|
+
// export { default as Input } from './components/input'
|
|
34
|
+
// export { KeyboardAccessory } from '@tarojs/components/lib/react'
|
|
35
|
+
// export { Label } from '@tarojs/components/lib/react'
|
|
36
|
+
// export { Lifestyle } from '@tarojs/components/lib/react'
|
|
37
|
+
// export { Like } from '@tarojs/components/lib/react'
|
|
38
|
+
// export { LivePlayer } from '@tarojs/components/lib/react'
|
|
39
|
+
// export { LivePusher } from '@tarojs/components/lib/react'
|
|
40
|
+
// export { ListBuilder } from '@tarojs/components/lib/react'
|
|
41
|
+
// export { ListView } from '@tarojs/components/lib/react'
|
|
42
|
+
// export { Login } from '@tarojs/components/lib/react'
|
|
43
|
+
// export { Lottie } from '@tarojs/components/lib/react'
|
|
44
|
+
// export { Map } from '@tarojs/components/lib/react'
|
|
45
|
+
// export { MatchMedia } from '@tarojs/components/lib/react'
|
|
46
|
+
// export { MovableArea, MovableView } from '@tarojs/components/lib/react'
|
|
47
|
+
// export { NavigationBar } from '@tarojs/components/lib/react'
|
|
48
|
+
// export { Navigator } from '@tarojs/components/lib/react'
|
|
49
|
+
// export { NestedScrollBody } from '@tarojs/components/lib/react'
|
|
50
|
+
// export { NestedScrollHeader } from '@tarojs/components/lib/react'
|
|
51
|
+
// export { OfficialAccount } from '@tarojs/components/lib/react'
|
|
52
|
+
// export { OpenData } from '@tarojs/components/lib/react'
|
|
53
|
+
// export { OpenContainer } from '@tarojs/components/lib/react'
|
|
54
|
+
// export { PageContainer } from '@tarojs/components/lib/react'
|
|
55
|
+
// export { PageMeta } from '@tarojs/components/lib/react'
|
|
56
|
+
// export { Progress } from '@tarojs/components/lib/react'
|
|
57
|
+
// export { default as PullDownRefresh } from './components/pull-down-refresh'
|
|
58
|
+
// // export { PullToRefresh } from '@tarojs/components/lib/react'
|
|
59
|
+
// export { Radio, RadioGroup } from '@tarojs/components/lib/react'
|
|
60
|
+
// export { RichText } from '@tarojs/components/lib/react'
|
|
61
|
+
// export { RootPortal } from '@tarojs/components/lib/react'
|
|
62
|
+
// export { RtcRoom, RtcRoomItem } from '@tarojs/components/lib/react'
|
|
63
|
+
// export { Script } from '@tarojs/components/lib/react'
|
|
64
|
+
// export { default as ScrollView } from './components/scroll-view'
|
|
65
|
+
// export { ShareElement } from '@tarojs/components/lib/react'
|
|
66
|
+
// export { Slider } from '@tarojs/components/lib/react'
|
|
67
|
+
// export { Snapshot } from '@tarojs/components/lib/react'
|
|
68
|
+
// export { Span } from '@tarojs/components/lib/react'
|
|
69
|
+
// export { StickyHeader } from '@tarojs/components/lib/react'
|
|
70
|
+
// export { StickySection } from '@tarojs/components/lib/react'
|
|
71
|
+
// export { NativeSlot, Slot } from '@tarojs/components/lib/react'
|
|
72
|
+
// export { Swiper, SwiperItem } from './components/swiper'
|
|
73
|
+
// export { Switch } from '@tarojs/components/lib/react'
|
|
74
|
+
// export { Tabs } from '@tarojs/components/lib/react'
|
|
75
|
+
// export { default as Text } from './components/text'
|
|
76
|
+
// export { Textarea } from '@tarojs/components/lib/react'
|
|
77
|
+
// export { Video } from '@tarojs/components/lib/react'
|
|
78
|
+
// export { default as View } from './components/view'
|
|
79
|
+
// export { VoipRoom } from '@tarojs/components/lib/react'
|
|
80
|
+
// export { WebView } from '@tarojs/components/lib/react'
|
|
14
81
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/index.react.ts"],"sourcesContent":["/* eslint-disable simple-import-sort/exports */\
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/index.react.ts"],"sourcesContent":["// /* eslint-disable simple-import-sort/exports */\n// export { Ad } from '@tarojs/components/lib/react'\n// export { AdCustom } from '@tarojs/components/lib/react'\n// export { AnimationVideo } from '@tarojs/components/lib/react'\n// export { AnimationView } from '@tarojs/components/lib/react'\n// export { ArCamera } from '@tarojs/components/lib/react'\n// export { Audio } from '@tarojs/components/lib/react'\n// export { AwemeData } from '@tarojs/components/lib/react'\n// export { Block } from '@tarojs/components/lib/react'\n// export { default as Button } from './components/button'\n// export { Camera } from '@tarojs/components/lib/react'\n// export { Canvas } from '@tarojs/components/lib/react'\n// export { ChannelLive } from '@tarojs/components/lib/react'\n// export { ChannelVideo } from '@tarojs/components/lib/react'\n// export { Checkbox, CheckboxGroup } from '@tarojs/components/lib/react'\n// export { CommentDetail, CommentList } from '@tarojs/components/lib/react'\n// export { ContactButton } from '@tarojs/components/lib/react'\n// export { CoverImage } from '@tarojs/components/lib/react'\n// export { CoverView } from '@tarojs/components/lib/react'\n// export { CustomWrapper } from '@tarojs/components/lib/react'\n// export { DraggableSheet } from '@tarojs/components/lib/react'\n// export { Editor } from '@tarojs/components/lib/react'\n// export { FollowSwan } from '@tarojs/components/lib/react'\n// export { Form } from '@tarojs/components/lib/react'\n// export { FunctionalPageNavigator } from '@tarojs/components/lib/react'\n// export { GridView } from '@tarojs/components/lib/react'\n// export { GridBuilder } from '@tarojs/components/lib/react'\n// export { default as Icon } from './components/icon'\n// export { default as Image } from './components/image'\n// export { InlinePaymentPanel } from '@tarojs/components/lib/react'\n// export { default as Input } from './components/input'\n// export { KeyboardAccessory } from '@tarojs/components/lib/react'\n// export { Label } from '@tarojs/components/lib/react'\n// export { Lifestyle } from '@tarojs/components/lib/react'\n// export { Like } from '@tarojs/components/lib/react'\n// export { LivePlayer } from '@tarojs/components/lib/react'\n// export { LivePusher } from '@tarojs/components/lib/react'\n// export { ListBuilder } from '@tarojs/components/lib/react'\n// export { ListView } from '@tarojs/components/lib/react'\n// export { Login } from '@tarojs/components/lib/react'\n// export { Lottie } from '@tarojs/components/lib/react'\n// export { Map } from '@tarojs/components/lib/react'\n// export { MatchMedia } from '@tarojs/components/lib/react'\n// export { MovableArea, MovableView } from '@tarojs/components/lib/react'\n// export { NavigationBar } from '@tarojs/components/lib/react'\n// export { Navigator } from '@tarojs/components/lib/react'\n// export { NestedScrollBody } from '@tarojs/components/lib/react'\n// export { NestedScrollHeader } from '@tarojs/components/lib/react'\n// export { OfficialAccount } from '@tarojs/components/lib/react'\n// export { OpenData } from '@tarojs/components/lib/react'\n// export { OpenContainer } from '@tarojs/components/lib/react'\n// export { PageContainer } from '@tarojs/components/lib/react'\n// export { PageMeta } from '@tarojs/components/lib/react'\nexport { default as Picker } from './components/picker'\n// export { Progress } from '@tarojs/components/lib/react'\n// export { default as PullDownRefresh } from './components/pull-down-refresh'\n// // export { PullToRefresh } from '@tarojs/components/lib/react'\n// export { Radio, RadioGroup } from '@tarojs/components/lib/react'\n// export { RichText } from '@tarojs/components/lib/react'\n// export { RootPortal } from '@tarojs/components/lib/react'\n// export { RtcRoom, RtcRoomItem } from '@tarojs/components/lib/react'\n// export { Script } from '@tarojs/components/lib/react'\n// export { default as ScrollView } from './components/scroll-view'\n// export { ShareElement } from '@tarojs/components/lib/react'\n// export { Slider } from '@tarojs/components/lib/react'\n// export { Snapshot } from '@tarojs/components/lib/react'\n// export { Span } from '@tarojs/components/lib/react'\n// export { StickyHeader } from '@tarojs/components/lib/react'\n// export { StickySection } from '@tarojs/components/lib/react'\n// export { NativeSlot, Slot } from '@tarojs/components/lib/react'\n// export { Swiper, SwiperItem } from './components/swiper'\n// export { Switch } from '@tarojs/components/lib/react'\n// export { Tabs } from '@tarojs/components/lib/react'\n// export { default as Text } from './components/text'\n// export { Textarea } from '@tarojs/components/lib/react'\n// export { Video } from '@tarojs/components/lib/react'\n// export { default as View } from './components/view'\n// export { VoipRoom } from '@tarojs/components/lib/react'\n// export { WebView } from '@tarojs/components/lib/react'\n"],"names":[],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
|
package/dist/solid/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@-webkit-keyframes weuiLoading{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes weuiLoading{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.taro-button-core[loading]>.weui-loading{animation:weuiLoading 1s steps(12) infinite;background:transparent url("data:image/svg+xml;charset=utf8, %3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 100 100'%3E%3Cpath fill='none' d='M0 0h100v100H0z'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23E9E9E9' rx='5' ry='5' transform='translate(0 -30)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23989697' rx='5' ry='5' transform='rotate(30 105.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%239B999A' rx='5' ry='5' transform='rotate(60 75.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23A3A1A2' rx='5' ry='5' transform='rotate(90 65 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23ABA9AA' rx='5' ry='5' transform='rotate(120 58.66 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23B2B2B2' rx='5' ry='5' transform='rotate(150 54.02 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23BAB8B9' rx='5' ry='5' transform='rotate(180 50 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23C2C0C1' rx='5' ry='5' transform='rotate(-150 45.98 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23CBCBCB' rx='5' ry='5' transform='rotate(-120 41.34 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23D2D2D2' rx='5' ry='5' transform='rotate(-90 35 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23DADADA' rx='5' ry='5' transform='rotate(-60 24.02 65)'/%3E%3Crect width='7' height='20' x='46.5' y='40' fill='%23E2E2E2' rx='5' ry='5' transform='rotate(-30 -5.98 65)'/%3E%3C/svg%3E") no-repeat;background-size:100%;display:inline-block;height:20px;vertical-align:middle;width:20px}.taro-button-core[loading]>.weui-loading.weui-btn_primary,.taro-button-core[loading]>.weui-loading.weui-btn_warn{color:hsla(0,0%,100%,.6)}.taro-button-core[loading]>.weui-loading.weui-btn_primary{background-color:#179b16}.taro-button-core[loading]>.weui-loading.weui-btn_warn{background-color:#ce3c39}.taro-button-core{-webkit-tap-highlight-color:rgba(0,0,0,0);appearance:none;background-color:#f8f8f8;border-radius:5px;border-width:0;box-sizing:border-box;color:#000;display:block;font-size:18px;line-height:2.55555556;margin-left:auto;margin-right:auto;outline:0;overflow:hidden;padding-left:14px;padding-right:14px;position:relative;text-align:center;text-decoration:none;width:100%}.taro-button-core:focus{outline:0}.taro-button-core:not([disabled]):active{background-color:#dedede;color:rgba(0,0,0,.6)}.taro-button-core:after{border:1px solid rgba(0,0,0,.2);border-radius:10px;box-sizing:border-box;content:" ";height:200%;left:0;position:absolute;top:0;transform:scale(.5);transform-origin:0 0;width:200%}.taro-button-core+.taro-button-core{margin-top:15px}.taro-button-core[type=default]{background-color:#f8f8f8;color:#000}.taro-button-core[type=default]:not([disabled]):visited{color:#000}.taro-button-core[type=default]:not([disabled]):active{background-color:#dedede;color:rgba(0,0,0,.6)}.taro-button-core[size=mini]{display:inline-block;font-size:13px;line-height:2.3;padding:0 1.32em;width:auto}.taro-button-core[plain=true],.taro-button-core[plain=true][type=default],.taro-button-core[plain=true][type=primary]{background-color:transparent;border-width:1px}.taro-button-core[disabled]{color:hsla(0,0%,100%,.6)}.taro-button-core[disabled][type=default]{background-color:#f7f7f7;color:rgba(0,0,0,.3)}.taro-button-core[disabled][type=primary]{background-color:#9ed99d}.taro-button-core[disabled][type=warn]{background-color:#ec8b89}.taro-button-core[loading] .weui-loading{margin:-.2em .34em 0 0}.taro-button-core[loading][type=primary],.taro-button-core[loading][type=warn]{color:hsla(0,0%,100%,.6)}.taro-button-core[loading][type=primary]{background-color:#179b16}.taro-button-core[loading][type=warn]{background-color:#ce3c39}.taro-button-core[plain=true][type=primary]{border:1px solid #1aad19;color:#1aad19}.taro-button-core[plain=true][type=primary]:not([disabled]):active{background-color:transparent;border-color:rgba(26,173,25,.6);color:rgba(26,173,25,.6)}.taro-button-core[plain=true][type=primary]:after{border-width:0}.taro-button-core[plain=true][type=warn]{border:1px solid #e64340;color:#e64340}.taro-button-core[plain=true][type=warn]:not([disabled]):active{background-color:transparent;border-color:rgba(230,67,64,.6);color:rgba(230,67,64,.6)}.taro-button-core[plain=true][type=warn]:after{border-width:0}.taro-button-core[plain=true],.taro-button-core[plain=true][type=default]{border:1px solid #353535;color:#353535}.taro-button-core[plain=true]:not([disabled]):active,.taro-button-core[plain=true][type=default]:not([disabled]):active{background-color:transparent;border-color:rgba(53,53,53,.6);color:rgba(53,53,53,.6)}.taro-button-core[plain=true]:after,.taro-button-core[plain=true][type=default]:after{border-width:0}.taro-button-core[type=primary]{background-color:#1aad19;color:#fff}.taro-button-core[type=primary]:not([disabled]):visited{color:#fff}.taro-button-core[type=primary]:not([disabled]):active{background-color:#179b16;color:hsla(0,0%,100%,.6)}.taro-button-core[type=warn]{background-color:#e64340;color:#fff}.taro-button-core[type=warn]:not([disabled]):visited{color:#fff}.taro-button-core[type=warn]:not([disabled]):active{background-color:#ce3c39;color:hsla(0,0%,100%,.6)}.taro-button-core[plain=true][disabled],.taro-button-core[plain=true][disabled][type=primary]{background-color:#f7f7f7;border:1px solid rgba(0,0,0,.2);color:rgba(0,0,0,.3)}.weui-icon-circle:before{content:"\ea01"}.weui-icon-download:before{content:"\ea02"}.weui-icon-info:before{content:"\ea03"}.weui-icon-safe-success:before{content:"\ea04"}.weui-icon-safe-warn:before{content:"\ea05"}.weui-icon-success:before{content:"\ea06"}.weui-icon-success-circle:before{content:"\ea07"}.weui-icon-success-no-circle:before{content:"\ea08"}.weui-icon-waiting:before{content:"\ea09"}.weui-icon-waiting-circle:before{content:"\ea0a"}.weui-icon-warn:before{content:"\ea0b"}.weui-icon-info-circle:before{content:"\ea0c"}.weui-icon-cancel:before{content:"\ea0d"}.weui-icon-search:before{content:"\ea0e"}.weui-icon-clear:before{content:"\ea0f"}.weui-icon-back:before{content:"\ea10"}.weui-icon-delete:before{content:"\ea11"}.weui-icon-success{color:#09bb07;font-size:23px}.weui-icon-waiting{color:#10aeff;font-size:23px}.weui-icon-warn{color:#f43530;font-size:23px}.weui-icon-info{color:#10aeff;font-size:23px}.weui-icon-success-circle,.weui-icon-success-no-circle{color:#09bb07;font-size:23px}.weui-icon-waiting-circle{color:#10aeff;font-size:23px}.weui-icon-circle{color:#c9c9c9;font-size:23px}.weui-icon-download,.weui-icon-info-circle{color:#09bb07;font-size:23px}.weui-icon-safe-success{color:#09bb07}.weui-icon-safe-warn{color:#ffbe00}.weui-icon-cancel{color:#f43530;font-size:22px}.weui-icon-clear,.weui-icon-search{color:#b2b2b2;font-size:14px}.weui-icon-delete.weui-icon_gallery-delete{color:#fff;font-size:22px}.weui-icon_msg{font-size:93px}.weui-icon_msg.weui-icon-warn{color:#f76260}.weui-icon_msg-primary{font-size:93px}.weui-icon_msg-primary.weui-icon-warn{color:#ffbe00}img[src=""]{opacity:0}.taro-img{display:inline-block;font-size:0;height:240px;overflow:hidden;position:relative;width:320px}.taro-img.taro-img__widthfix,.taro-img__mode-heightfix{height:100%}.taro-img__mode-scaletofill{height:100%;width:100%}.taro-img__mode-aspectfit{height:100%;object-fit:contain;width:100%}.taro-img__mode-aspectfill{height:100%;object-fit:cover;width:100%}.taro-img__mode-widthfix{width:100%}.taro-img__mode-bottom,.taro-img__mode-top{left:50%;position:absolute;transform:translate(-50%)}.taro-img__mode-bottom{bottom:0}.taro-img__mode-center{left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.taro-img__mode-left,.taro-img__mode-right{position:absolute;top:50%;transform:translateY(-50%)}.taro-img__mode-right{right:0}.taro-img__mode-topright{position:absolute;right:0}.taro-img__mode-bottomleft{bottom:0;position:absolute}.taro-img__mode-bottomright{bottom:0;position:absolute;right:0}.taro-picker__overlay{z-index:1000}.taro-picker__mask-overlay,.taro-picker__overlay{bottom:0;height:100%;left:0;position:relative;right:0;top:0;width:100%}.taro-picker__mask-overlay{background-color:rgba(0,0,0,.6);z-index:1001}.taro-picker{background-color:#e5e5e5;bottom:0;left:0;position:relative;width:100%;z-index:1002}.taro-picker__hd{align-items:center;background-color:#fff;display:flex;font-size:17px;height:44px;justify-content:space-between;padding:0;position:relative}.taro-picker__hd:after{background-color:#e5e5e5;bottom:0;content:"";height:1px;left:0;position:absolute;transform:scaleY(.5);width:100%}.taro-picker__action{color:#1aad19;flex:0 0 auto;font-size:16px;height:44px;line-height:44px;padding:0 10px}.taro-picker__action:first-child{color:#888}.taro-picker__title{color:#000;font-weight:500;left:50%;max-width:40%;overflow:hidden;position:absolute;text-overflow:ellipsis;top:50%;transform:translate(-50%,-50%);white-space:nowrap}.taro-picker__bd{background-color:#fff;height:238px;overflow:hidden;width:100%}.taro-picker__bd,.taro-picker__group{box-sizing:border-box;display:flex;flex:1}.taro-picker__group{align-items:center;height:100%;justify-content:center;min-width:0;position:relative}.taro-picker__group--date .taro-picker__columns{display:flex;height:100%;width:100%}.taro-picker__mask{background:linear-gradient(180deg,hsla(0,0%,100%,.95),hsla(0,0%,100%,.6) 40%,hsla(0,0%,100%,0) 50%,hsla(0,0%,100%,0) 0,hsla(0,0%,100%,.6) 60%,hsla(0,0%,100%,.95));height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:1}.taro-picker__indicator{box-sizing:border-box;height:34px;left:0;position:absolute;top:50%;transform:translateY(-50%);width:100%;z-index:1002}.taro-picker__indicator:after,.taro-picker__indicator:before{background-color:#e5e5e5;content:"";height:1px;left:0;position:absolute;right:0;transform:scaleY(.5)}.taro-picker__indicator:before{top:0}.taro-picker__indicator:after{bottom:0}.taro-picker__content{box-sizing:border-box;height:100%;width:100%}.taro-picker__item{align-items:center;box-sizing:border-box;color:#000;display:flex;font-size:16px;height:34px;justify-content:center;line-height:34px;overflow:hidden;padding:0 8px;text-align:center;text-overflow:ellipsis;white-space:nowrap;width:100%}.taro-picker__item--selected{color:#1aad19;font-weight:500}.taro-picker__item--disabled{color:#999}.taro-picker__column{flex:1;margin:0 8px}.taro-picker__column:first-child{margin-left:0}.taro-picker__column:last-child{margin-right:0}.taro-picker__item--custom{align-items:center;color:#888;display:flex;font-weight:400;justify-content:center;text-align:center}@keyframes taro-picker__slide-up{0%{transform:translate3d(0,100%,0)}to{transform:translateZ(0)}}@keyframes taro-picker__slide-down{0%{transform:translateZ(0)}to{transform:translate3d(0,100%,0)}}@keyframes taro-picker__fade-in{0%{opacity:0}to{opacity:1}}@keyframes taro-picker__fade-out{0%{opacity:1}to{opacity:0}}.taro-picker,.taro-picker__hd{font-size:12px}.taro-scroll{-webkit-overflow-scrolling:auto}.taro-scroll::-webkit-scrollbar{display:none}.taro-scroll-view{overflow:hidden}.taro-scroll-view__scroll-x{overflow-x:scroll;overflow-y:hidden}.taro-scroll-view__scroll-y{overflow-x:hidden;overflow-y:scroll}.taro-text{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.taro-text__selectable{-moz-user-select:text;-webkit-user-select:text;-ms-user-select:text;user-select:text}
|
|
1
|
+
.taro-picker__overlay{z-index:1000}.taro-picker__mask-overlay,.taro-picker__overlay{bottom:0;height:100%;left:0;position:relative;right:0;top:0;width:100%}.taro-picker__mask-overlay{background-color:rgba(0,0,0,.6);z-index:1001}.taro-picker{background-color:#e5e5e5;bottom:0;left:0;position:relative;width:100%;z-index:1002}.taro-picker__hd{align-items:center;background-color:#fff;display:flex;font-size:17px;height:44px;justify-content:space-between;padding:0;position:relative}.taro-picker__hd:after{background-color:#e5e5e5;bottom:0;content:"";height:1px;left:0;position:absolute;transform:scaleY(.5);width:100%}.taro-picker__action{color:#1aad19;flex:0 0 auto;font-size:16px;height:44px;line-height:44px;padding:0 10px}.taro-picker__action:first-child{color:#888}.taro-picker__title{color:#000;font-weight:500;left:50%;max-width:40%;overflow:hidden;position:absolute;text-overflow:ellipsis;top:50%;transform:translate(-50%,-50%);white-space:nowrap}.taro-picker__bd{background-color:#fff;height:238px;overflow:hidden;width:100%}.taro-picker__bd,.taro-picker__group{box-sizing:border-box;display:flex;flex:1}.taro-picker__group{align-items:center;height:100%;justify-content:center;min-width:0;position:relative}.taro-picker__group--date .taro-picker__columns{display:flex;height:100%;width:100%}.taro-picker__mask{background:linear-gradient(180deg,hsla(0,0%,100%,.95),hsla(0,0%,100%,.6) 40%,hsla(0,0%,100%,0) 50%,hsla(0,0%,100%,0) 0,hsla(0,0%,100%,.6) 60%,hsla(0,0%,100%,.95));height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:1}.taro-picker__indicator{box-sizing:border-box;height:34px;left:0;position:absolute;top:50%;transform:translateY(-50%);width:100%;z-index:1002}.taro-picker__indicator:after,.taro-picker__indicator:before{background-color:#e5e5e5;content:"";height:1px;left:0;position:absolute;right:0;transform:scaleY(.5)}.taro-picker__indicator:before{top:0}.taro-picker__indicator:after{bottom:0}.taro-picker__content{box-sizing:border-box;height:100%;width:100%}.taro-picker__item{align-items:center;box-sizing:border-box;color:#000;display:flex;font-size:16px;height:34px;justify-content:center;line-height:34px;overflow:hidden;padding:0 8px;text-align:center;text-overflow:ellipsis;white-space:nowrap;width:100%}.taro-picker__item--selected{color:#1aad19;font-weight:500}.taro-picker__item--disabled{color:#999}.taro-picker__column{flex:1;margin:0 8px}.taro-picker__column:first-child{margin-left:0}.taro-picker__column:last-child{margin-right:0}.taro-picker__item--custom{align-items:center;color:#888;display:flex;font-weight:400;justify-content:center;text-align:center}@keyframes taro-picker__slide-up{0%{transform:translate3d(0,100%,0)}to{transform:translateZ(0)}}@keyframes taro-picker__slide-down{0%{transform:translateZ(0)}to{transform:translate3d(0,100%,0)}}@keyframes taro-picker__fade-in{0%{opacity:0}to{opacity:1}}@keyframes taro-picker__fade-out{0%{opacity:1}to{opacity:0}}.taro-picker,.taro-picker__hd{font-size:12px}
|
package/dist/solid/index.js
CHANGED
|
@@ -1,11 +1,81 @@
|
|
|
1
|
-
export { Ad, AdCustom, AnimationVideo, AnimationView, ArCamera, Audio, AwemeData, Block, Camera, Canvas, ChannelLive, ChannelVideo, Checkbox, CheckboxGroup, CommentDetail, CommentList, ContactButton, CoverImage, CoverView, CustomWrapper, DraggableSheet, Editor, FollowSwan, Form, FunctionalPageNavigator, GridBuilder, GridView, InlinePaymentPanel, Input, KeyboardAccessory, Label, Lifestyle, Like, ListBuilder, ListView, LivePlayer, LivePusher, Login, Lottie, Map, MatchMedia, MovableArea, MovableView, NativeSlot, NavigationBar, Navigator, NestedScrollBody, NestedScrollHeader, OfficialAccount, OpenContainer, OpenData, PageContainer, PageMeta, Progress, PullToRefresh, Radio, RadioGroup, RichText, RootPortal, RtcRoom, RtcRoomItem, Script, ShareElement, Slider, Slot, Snapshot, Span, StickyHeader, StickySection, Swiper, SwiperItem, Switch, Tabs, Textarea, Video, VoipRoom, WebView } from '@tarojs/components/lib/solid';
|
|
2
|
-
export { default as Button } from './components/button/index.js';
|
|
3
|
-
export { default as Icon } from './components/icon/index.js';
|
|
4
|
-
export { default as Image } from './components/image/index.js';
|
|
5
1
|
export { Picker } from './components/picker/index.js';
|
|
6
|
-
export { default as ScrollView } from './components/scroll-view/index.js';
|
|
7
|
-
export { default as Text } from './components/text/index.js';
|
|
8
|
-
export { default as View } from './components/view/index.js';
|
|
9
2
|
|
|
10
|
-
/* eslint-disable simple-import-sort/exports */
|
|
3
|
+
// /* eslint-disable simple-import-sort/exports */
|
|
4
|
+
// export { Ad } from '@tarojs/components/lib/solid'
|
|
5
|
+
// export { AdCustom } from '@tarojs/components/lib/solid'
|
|
6
|
+
// export { AnimationVideo } from '@tarojs/components/lib/solid'
|
|
7
|
+
// export { AnimationView } from '@tarojs/components/lib/solid'
|
|
8
|
+
// export { ArCamera } from '@tarojs/components/lib/solid'
|
|
9
|
+
// export { Audio } from '@tarojs/components/lib/solid'
|
|
10
|
+
// export { AwemeData } from '@tarojs/components/lib/solid'
|
|
11
|
+
// export { Block } from '@tarojs/components/lib/solid'
|
|
12
|
+
// export { default as Button } from './components/button'
|
|
13
|
+
// export { Camera } from '@tarojs/components/lib/solid'
|
|
14
|
+
// export { Canvas } from '@tarojs/components/lib/solid'
|
|
15
|
+
// export { ChannelLive } from '@tarojs/components/lib/solid'
|
|
16
|
+
// export { ChannelVideo } from '@tarojs/components/lib/solid'
|
|
17
|
+
// export { Checkbox, CheckboxGroup } from '@tarojs/components/lib/solid'
|
|
18
|
+
// export { CommentDetail, CommentList } from '@tarojs/components/lib/solid'
|
|
19
|
+
// export { ContactButton } from '@tarojs/components/lib/solid'
|
|
20
|
+
// export { CoverImage } from '@tarojs/components/lib/solid'
|
|
21
|
+
// export { CoverView } from '@tarojs/components/lib/solid'
|
|
22
|
+
// export { CustomWrapper } from '@tarojs/components/lib/solid'
|
|
23
|
+
// export { DraggableSheet } from '@tarojs/components/lib/solid'
|
|
24
|
+
// export { Editor } from '@tarojs/components/lib/solid'
|
|
25
|
+
// export { FollowSwan } from '@tarojs/components/lib/solid'
|
|
26
|
+
// export { Form } from '@tarojs/components/lib/solid'
|
|
27
|
+
// export { FunctionalPageNavigator } from '@tarojs/components/lib/solid'
|
|
28
|
+
// export { GridView } from '@tarojs/components/lib/solid'
|
|
29
|
+
// export { GridBuilder } from '@tarojs/components/lib/solid'
|
|
30
|
+
// export { default as Icon } from './components/icon'
|
|
31
|
+
// export { default as Image } from './components/image'
|
|
32
|
+
// export { InlinePaymentPanel } from '@tarojs/components/lib/solid'
|
|
33
|
+
// export { Input } from '@tarojs/components/lib/solid'
|
|
34
|
+
// export { KeyboardAccessory } from '@tarojs/components/lib/solid'
|
|
35
|
+
// export { Label } from '@tarojs/components/lib/solid'
|
|
36
|
+
// export { Lifestyle } from '@tarojs/components/lib/solid'
|
|
37
|
+
// export { Like } from '@tarojs/components/lib/solid'
|
|
38
|
+
// export { LivePlayer } from '@tarojs/components/lib/solid'
|
|
39
|
+
// export { LivePusher } from '@tarojs/components/lib/solid'
|
|
40
|
+
// export { ListBuilder } from '@tarojs/components/lib/solid'
|
|
41
|
+
// export { ListView } from '@tarojs/components/lib/solid'
|
|
42
|
+
// export { Login } from '@tarojs/components/lib/solid'
|
|
43
|
+
// export { Lottie } from '@tarojs/components/lib/solid'
|
|
44
|
+
// export { Map } from '@tarojs/components/lib/solid'
|
|
45
|
+
// export { MatchMedia } from '@tarojs/components/lib/solid'
|
|
46
|
+
// export { MovableArea, MovableView } from '@tarojs/components/lib/solid'
|
|
47
|
+
// export { NavigationBar } from '@tarojs/components/lib/solid'
|
|
48
|
+
// export { Navigator } from '@tarojs/components/lib/solid'
|
|
49
|
+
// export { NestedScrollBody } from '@tarojs/components/lib/solid'
|
|
50
|
+
// export { NestedScrollHeader } from '@tarojs/components/lib/solid'
|
|
51
|
+
// export { OfficialAccount } from '@tarojs/components/lib/solid'
|
|
52
|
+
// export { OpenData } from '@tarojs/components/lib/solid'
|
|
53
|
+
// export { OpenContainer } from '@tarojs/components/lib/solid'
|
|
54
|
+
// export { PageContainer } from '@tarojs/components/lib/solid'
|
|
55
|
+
// export { PageMeta } from '@tarojs/components/lib/solid'
|
|
56
|
+
// export { Progress } from '@tarojs/components/lib/solid'
|
|
57
|
+
// // export { default as PullDownRefresh } from './components/pull-down-refresh'
|
|
58
|
+
// export { PullToRefresh } from '@tarojs/components/lib/solid'
|
|
59
|
+
// export { Radio, RadioGroup } from '@tarojs/components/lib/solid'
|
|
60
|
+
// export { RichText } from '@tarojs/components/lib/solid'
|
|
61
|
+
// export { RootPortal } from '@tarojs/components/lib/solid'
|
|
62
|
+
// export { RtcRoom, RtcRoomItem } from '@tarojs/components/lib/solid'
|
|
63
|
+
// export { Script } from '@tarojs/components/lib/solid'
|
|
64
|
+
// export { default as ScrollView } from './components/scroll-view'
|
|
65
|
+
// export { ShareElement } from '@tarojs/components/lib/solid'
|
|
66
|
+
// export { Slider } from '@tarojs/components/lib/solid'
|
|
67
|
+
// export { Snapshot } from '@tarojs/components/lib/solid'
|
|
68
|
+
// export { Span } from '@tarojs/components/lib/solid'
|
|
69
|
+
// export { StickyHeader } from '@tarojs/components/lib/solid'
|
|
70
|
+
// export { StickySection } from '@tarojs/components/lib/solid'
|
|
71
|
+
// export { NativeSlot, Slot } from '@tarojs/components/lib/solid'
|
|
72
|
+
// export { Swiper, SwiperItem } from '@tarojs/components/lib/solid'
|
|
73
|
+
// export { Switch } from '@tarojs/components/lib/solid'
|
|
74
|
+
// export { Tabs } from '@tarojs/components/lib/solid'
|
|
75
|
+
// export { default as Text } from './components/text'
|
|
76
|
+
// export { Textarea } from '@tarojs/components/lib/solid'
|
|
77
|
+
// export { Video } from '@tarojs/components/lib/solid'
|
|
78
|
+
// export { default as View } from './components/view'
|
|
79
|
+
// export { VoipRoom } from '@tarojs/components/lib/solid'
|
|
80
|
+
// export { WebView } from '@tarojs/components/lib/solid'
|
|
11
81
|
//# sourceMappingURL=index.js.map
|
package/dist/solid/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/index.solid.ts"],"sourcesContent":["/* eslint-disable simple-import-sort/exports */\
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/index.solid.ts"],"sourcesContent":["// /* eslint-disable simple-import-sort/exports */\n// export { Ad } from '@tarojs/components/lib/solid'\n// export { AdCustom } from '@tarojs/components/lib/solid'\n// export { AnimationVideo } from '@tarojs/components/lib/solid'\n// export { AnimationView } from '@tarojs/components/lib/solid'\n// export { ArCamera } from '@tarojs/components/lib/solid'\n// export { Audio } from '@tarojs/components/lib/solid'\n// export { AwemeData } from '@tarojs/components/lib/solid'\n// export { Block } from '@tarojs/components/lib/solid'\n// export { default as Button } from './components/button'\n// export { Camera } from '@tarojs/components/lib/solid'\n// export { Canvas } from '@tarojs/components/lib/solid'\n// export { ChannelLive } from '@tarojs/components/lib/solid'\n// export { ChannelVideo } from '@tarojs/components/lib/solid'\n// export { Checkbox, CheckboxGroup } from '@tarojs/components/lib/solid'\n// export { CommentDetail, CommentList } from '@tarojs/components/lib/solid'\n// export { ContactButton } from '@tarojs/components/lib/solid'\n// export { CoverImage } from '@tarojs/components/lib/solid'\n// export { CoverView } from '@tarojs/components/lib/solid'\n// export { CustomWrapper } from '@tarojs/components/lib/solid'\n// export { DraggableSheet } from '@tarojs/components/lib/solid'\n// export { Editor } from '@tarojs/components/lib/solid'\n// export { FollowSwan } from '@tarojs/components/lib/solid'\n// export { Form } from '@tarojs/components/lib/solid'\n// export { FunctionalPageNavigator } from '@tarojs/components/lib/solid'\n// export { GridView } from '@tarojs/components/lib/solid'\n// export { GridBuilder } from '@tarojs/components/lib/solid'\n// export { default as Icon } from './components/icon'\n// export { default as Image } from './components/image'\n// export { InlinePaymentPanel } from '@tarojs/components/lib/solid'\n// export { Input } from '@tarojs/components/lib/solid'\n// export { KeyboardAccessory } from '@tarojs/components/lib/solid'\n// export { Label } from '@tarojs/components/lib/solid'\n// export { Lifestyle } from '@tarojs/components/lib/solid'\n// export { Like } from '@tarojs/components/lib/solid'\n// export { LivePlayer } from '@tarojs/components/lib/solid'\n// export { LivePusher } from '@tarojs/components/lib/solid'\n// export { ListBuilder } from '@tarojs/components/lib/solid'\n// export { ListView } from '@tarojs/components/lib/solid'\n// export { Login } from '@tarojs/components/lib/solid'\n// export { Lottie } from '@tarojs/components/lib/solid'\n// export { Map } from '@tarojs/components/lib/solid'\n// export { MatchMedia } from '@tarojs/components/lib/solid'\n// export { MovableArea, MovableView } from '@tarojs/components/lib/solid'\n// export { NavigationBar } from '@tarojs/components/lib/solid'\n// export { Navigator } from '@tarojs/components/lib/solid'\n// export { NestedScrollBody } from '@tarojs/components/lib/solid'\n// export { NestedScrollHeader } from '@tarojs/components/lib/solid'\n// export { OfficialAccount } from '@tarojs/components/lib/solid'\n// export { OpenData } from '@tarojs/components/lib/solid'\n// export { OpenContainer } from '@tarojs/components/lib/solid'\n// export { PageContainer } from '@tarojs/components/lib/solid'\n// export { PageMeta } from '@tarojs/components/lib/solid'\nexport { default as Picker } from './components/picker'\n// export { Progress } from '@tarojs/components/lib/solid'\n// // export { default as PullDownRefresh } from './components/pull-down-refresh'\n// export { PullToRefresh } from '@tarojs/components/lib/solid'\n// export { Radio, RadioGroup } from '@tarojs/components/lib/solid'\n// export { RichText } from '@tarojs/components/lib/solid'\n// export { RootPortal } from '@tarojs/components/lib/solid'\n// export { RtcRoom, RtcRoomItem } from '@tarojs/components/lib/solid'\n// export { Script } from '@tarojs/components/lib/solid'\n// export { default as ScrollView } from './components/scroll-view'\n// export { ShareElement } from '@tarojs/components/lib/solid'\n// export { Slider } from '@tarojs/components/lib/solid'\n// export { Snapshot } from '@tarojs/components/lib/solid'\n// export { Span } from '@tarojs/components/lib/solid'\n// export { StickyHeader } from '@tarojs/components/lib/solid'\n// export { StickySection } from '@tarojs/components/lib/solid'\n// export { NativeSlot, Slot } from '@tarojs/components/lib/solid'\n// export { Swiper, SwiperItem } from '@tarojs/components/lib/solid'\n// export { Switch } from '@tarojs/components/lib/solid'\n// export { Tabs } from '@tarojs/components/lib/solid'\n// export { default as Text } from './components/text'\n// export { Textarea } from '@tarojs/components/lib/solid'\n// export { Video } from '@tarojs/components/lib/solid'\n// export { default as View } from './components/view'\n// export { VoipRoom } from '@tarojs/components/lib/solid'\n// export { WebView } from '@tarojs/components/lib/solid'\n"],"names":[],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/components-react",
|
|
3
|
-
"version": "4.1.4-beta.
|
|
3
|
+
"version": "4.1.4-beta.13",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main:h5": "dist/index.js",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -28,16 +28,16 @@
|
|
|
28
28
|
"classnames": "^2.2.5",
|
|
29
29
|
"swiper": "11.1.15",
|
|
30
30
|
"tslib": "^2.6.2",
|
|
31
|
-
"@tarojs/taro": "4.1.4-beta.
|
|
32
|
-
"@tarojs/shared": "4.1.4-beta.
|
|
33
|
-
"@tarojs/components": "4.1.4-beta.
|
|
31
|
+
"@tarojs/taro": "4.1.4-beta.13",
|
|
32
|
+
"@tarojs/shared": "4.1.4-beta.13",
|
|
33
|
+
"@tarojs/components": "4.1.4-beta.13"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@babel/preset-react": "^7.24.1",
|
|
37
37
|
"babel-preset-solid": "^1.8.15",
|
|
38
38
|
"solid-js": "^1.8.16",
|
|
39
|
-
"@tarojs/
|
|
40
|
-
"@tarojs/
|
|
39
|
+
"@tarojs/runtime": "4.1.4-beta.13",
|
|
40
|
+
"@tarojs/helper": "4.1.4-beta.13"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"react": "*",
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { __rest } from 'tslib';
|
|
2
|
-
import './style/index.scss.js';
|
|
3
|
-
import classNames from 'classnames';
|
|
4
|
-
import { omit, createForwardRefComponent } from '../../utils/index.js';
|
|
5
|
-
import { useRef, useState, useEffect } from '../../utils/hooks.react.js';
|
|
6
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
7
|
-
|
|
8
|
-
function Button(props) {
|
|
9
|
-
const startTimer = useRef();
|
|
10
|
-
const endTimer = useRef();
|
|
11
|
-
const [state, setState] = useState({
|
|
12
|
-
hover: false,
|
|
13
|
-
touch: false
|
|
14
|
-
});
|
|
15
|
-
useEffect(() => {
|
|
16
|
-
return () => {
|
|
17
|
-
startTimer.current && clearTimeout(startTimer.current);
|
|
18
|
-
endTimer.current && clearTimeout(endTimer.current);
|
|
19
|
-
};
|
|
20
|
-
}, []);
|
|
21
|
-
const _onTouchStart = e => {
|
|
22
|
-
setState(e => Object.assign(Object.assign({}, e), {
|
|
23
|
-
touch: true
|
|
24
|
-
}));
|
|
25
|
-
if (props.hoverClass && props.hoverClass !== 'none' && !props.disabled) {
|
|
26
|
-
startTimer.current = setTimeout(() => {
|
|
27
|
-
if (state.touch) {
|
|
28
|
-
setState(e => Object.assign(Object.assign({}, e), {
|
|
29
|
-
hover: true
|
|
30
|
-
}));
|
|
31
|
-
}
|
|
32
|
-
}, props.hoverStartTime || 20);
|
|
33
|
-
}
|
|
34
|
-
props.onTouchStart && props.onTouchStart(e);
|
|
35
|
-
};
|
|
36
|
-
const _onTouchEnd = e => {
|
|
37
|
-
setState(e => Object.assign(Object.assign({}, e), {
|
|
38
|
-
touch: false
|
|
39
|
-
}));
|
|
40
|
-
if (props.hoverClass && props.hoverClass !== 'none' && !props.disabled) {
|
|
41
|
-
endTimer.current = setTimeout(() => {
|
|
42
|
-
if (!state.touch) {
|
|
43
|
-
setState(e => Object.assign(Object.assign({}, e), {
|
|
44
|
-
hover: false
|
|
45
|
-
}));
|
|
46
|
-
}
|
|
47
|
-
}, props.hoverStayTime || 70);
|
|
48
|
-
}
|
|
49
|
-
props.onTouchEnd && props.onTouchEnd(e);
|
|
50
|
-
};
|
|
51
|
-
const {
|
|
52
|
-
forwardedRef,
|
|
53
|
-
plain = false,
|
|
54
|
-
children,
|
|
55
|
-
disabled = false,
|
|
56
|
-
className,
|
|
57
|
-
style,
|
|
58
|
-
onClick,
|
|
59
|
-
hoverClass = 'button-hover',
|
|
60
|
-
loading = false,
|
|
61
|
-
type
|
|
62
|
-
} = props,
|
|
63
|
-
restProps = __rest(props, ["forwardedRef", "plain", "children", "disabled", "className", "style", "onClick", "hoverClass", "loading", "type"]);
|
|
64
|
-
const cls = classNames(className, 'taro-button-core', {
|
|
65
|
-
[`${hoverClass}`]: state.hover && !disabled
|
|
66
|
-
});
|
|
67
|
-
return /*#__PURE__*/jsxs("button", {
|
|
68
|
-
...omit(restProps, ['hoverClass', 'onTouchStart', 'onTouchEnd', 'type', 'loading', 'forwardedRef']),
|
|
69
|
-
type: type,
|
|
70
|
-
ref: forwardedRef,
|
|
71
|
-
className: cls,
|
|
72
|
-
style: style,
|
|
73
|
-
onClick: onClick,
|
|
74
|
-
disabled: disabled,
|
|
75
|
-
onTouchStart: _onTouchStart,
|
|
76
|
-
onTouchEnd: _onTouchEnd,
|
|
77
|
-
loading: loading.toString(),
|
|
78
|
-
plain: plain.toString(),
|
|
79
|
-
children: [!!loading && /*#__PURE__*/jsx("i", {
|
|
80
|
-
className: "weui-loading"
|
|
81
|
-
}), children]
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
var index = createForwardRefComponent(Button);
|
|
85
|
-
|
|
86
|
-
export { index as default };
|
|
87
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/button/index.tsx"],"sourcesContent":["import './style/index.scss'\n\nimport classNames from 'classnames'\n\nimport { createForwardRefComponent, omit } from '../../utils'\nimport { useEffect, useRef, useState } from '../../utils/hooks'\n\nimport type React from 'react'\n\ninterface IProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'type'> {\n size?: string\n plain?: boolean\n hoverClass?: string\n hoverStartTime?: number\n hoverStayTime?: number\n disabled?: boolean\n loading?: boolean\n type?: string\n className?: string\n forwardedRef?: React.MutableRefObject<HTMLButtonElement>\n}\n\ninterface IState {\n hover:boolean\n touch: boolean\n}\n\nfunction Button (props: IProps) {\n const startTimer = useRef<ReturnType<typeof setTimeout>>()\n const endTimer = useRef<ReturnType<typeof setTimeout>>()\n const [state, setState] = useState<IState>({\n hover: false,\n touch: false\n })\n\n useEffect(() => {\n return () => {\n startTimer.current && clearTimeout(startTimer.current)\n endTimer.current && clearTimeout(endTimer.current)\n }\n }, [])\n\n const _onTouchStart = (e: React.TouchEvent<HTMLButtonElement>) => {\n setState((e) => ({\n ...e,\n touch: true\n }))\n if (props.hoverClass && props.hoverClass !== 'none' && !props.disabled) {\n startTimer.current = setTimeout(() => {\n if ((state as IState).touch) {\n setState((e) => ({\n ...e,\n hover: true\n }))\n }\n }, props.hoverStartTime || 20)\n }\n props.onTouchStart && props.onTouchStart(e)\n }\n\n const _onTouchEnd = (e: React.TouchEvent<HTMLButtonElement>) => {\n setState((e) => ({\n ...e,\n touch: false\n }))\n if (props.hoverClass && props.hoverClass !== 'none' && !props.disabled) {\n endTimer.current = setTimeout(() => {\n if (!(state as IState).touch) {\n setState((e) => ({\n ...e,\n hover: false\n }))\n }\n }, props.hoverStayTime || 70)\n }\n props.onTouchEnd && props.onTouchEnd(e)\n }\n\n const { forwardedRef, plain = false, children, disabled = false, className, style, onClick, hoverClass = 'button-hover', loading = false, type, ...restProps } = props\n\n const cls = classNames(\n className,\n 'taro-button-core',\n {\n [`${hoverClass}`]: (state as IState).hover && !disabled\n }\n )\n\n return (\n <button\n {...omit(restProps, ['hoverClass', 'onTouchStart', 'onTouchEnd', 'type', 'loading', 'forwardedRef'])}\n type={type}\n ref={forwardedRef}\n className={cls}\n style={style}\n onClick={onClick}\n disabled={disabled}\n onTouchStart={_onTouchStart}\n onTouchEnd={_onTouchEnd}\n loading={loading.toString()}\n plain={plain.toString()}\n >\n {!!loading && <i className='weui-loading' />}\n {children}\n </button>\n )\n}\n\nexport default createForwardRefComponent(Button)\n"],"names":["Button","props","startTimer","useRef","endTimer","state","setState","useState","hover","touch","useEffect","current","clearTimeout","_onTouchStart","e","Object","assign","hoverClass","disabled","setTimeout","hoverStartTime","onTouchStart","_onTouchEnd","hoverStayTime","onTouchEnd","forwardedRef","plain","children","className","style","onClick","loading","type","restProps","__rest","cls","classNames","_jsxs","omit","ref","toString","_jsx","createForwardRefComponent"],"mappings":";;;;;;;AA2BA,SAASA,MAAMA,CAAEC,KAAa,EAAA;AAC5B,EAAA,MAAMC,UAAU,GAAGC,MAAM,EAAiC;AAC1D,EAAA,MAAMC,QAAQ,GAAGD,MAAM,EAAiC;AACxD,EAAA,MAAM,CAACE,KAAK,EAAEC,QAAQ,CAAC,GAAGC,QAAQ,CAAS;AACzCC,IAAAA,KAAK,EAAE,KAAK;AACZC,IAAAA,KAAK,EAAE;AACR,GAAA,CAAC;AAEFC,EAAAA,SAAS,CAAC,MAAK;AACb,IAAA,OAAO,MAAK;MACVR,UAAU,CAACS,OAAO,IAAIC,YAAY,CAACV,UAAU,CAACS,OAAO,CAAC;MACtDP,QAAQ,CAACO,OAAO,IAAIC,YAAY,CAACR,QAAQ,CAACO,OAAO,CAAC;KACnD;GACF,EAAE,EAAE,CAAC;EAEN,MAAME,aAAa,GAAIC,CAAsC,IAAI;AAC/DR,IAAAA,QAAQ,CAAEQ,CAAC,IAAKC,MAAA,CAAAC,MAAA,CAAAD,MAAA,CAAAC,MAAA,CAAA,EAAA,EACXF,CAAC,CAAA,EAAA;AACJL,MAAAA,KAAK,EAAE;AAAI,KAAA,CACX,CAAC;AACH,IAAA,IAAIR,KAAK,CAACgB,UAAU,IAAIhB,KAAK,CAACgB,UAAU,KAAK,MAAM,IAAI,CAAChB,KAAK,CAACiB,QAAQ,EAAE;AACtEhB,MAAAA,UAAU,CAACS,OAAO,GAAGQ,UAAU,CAAC,MAAK;QACnC,IAAKd,KAAgB,CAACI,KAAK,EAAE;AAC3BH,UAAAA,QAAQ,CAAEQ,CAAC,IAAKC,MAAA,CAAAC,MAAA,CAAAD,MAAA,CAAAC,MAAA,CAAA,EAAA,EACXF,CAAC,CAAA,EAAA;AACJN,YAAAA,KAAK,EAAE;AAAI,WAAA,CACX,CAAC;AACL;AACF,OAAC,EAAEP,KAAK,CAACmB,cAAc,IAAI,EAAE,CAAC;AAChC;IACAnB,KAAK,CAACoB,YAAY,IAAIpB,KAAK,CAACoB,YAAY,CAACP,CAAC,CAAC;GAC5C;EAED,MAAMQ,WAAW,GAAIR,CAAsC,IAAI;AAC7DR,IAAAA,QAAQ,CAAEQ,CAAC,IAAKC,MAAA,CAAAC,MAAA,CAAAD,MAAA,CAAAC,MAAA,CAAA,EAAA,EACXF,CAAC,CAAA,EAAA;AACJL,MAAAA,KAAK,EAAE;AAAK,KAAA,CACZ,CAAC;AACH,IAAA,IAAIR,KAAK,CAACgB,UAAU,IAAIhB,KAAK,CAACgB,UAAU,KAAK,MAAM,IAAI,CAAChB,KAAK,CAACiB,QAAQ,EAAE;AACtEd,MAAAA,QAAQ,CAACO,OAAO,GAAGQ,UAAU,CAAC,MAAK;AACjC,QAAA,IAAI,CAAEd,KAAgB,CAACI,KAAK,EAAE;AAC5BH,UAAAA,QAAQ,CAAEQ,CAAC,IAAKC,MAAA,CAAAC,MAAA,CAAAD,MAAA,CAAAC,MAAA,CAAA,EAAA,EACXF,CAAC,CAAA,EAAA;AACJN,YAAAA,KAAK,EAAE;AAAK,WAAA,CACZ,CAAC;AACL;AACF,OAAC,EAAEP,KAAK,CAACsB,aAAa,IAAI,EAAE,CAAC;AAC/B;IACAtB,KAAK,CAACuB,UAAU,IAAIvB,KAAK,CAACuB,UAAU,CAACV,CAAC,CAAC;GACxC;EAED,MAAM;MAAEW,YAAY;AAAEC,MAAAA,KAAK,GAAG,KAAK;MAAEC,QAAQ;AAAET,MAAAA,QAAQ,GAAG,KAAK;MAAEU,SAAS;MAAEC,KAAK;MAAEC,OAAO;AAAEb,MAAAA,UAAU,GAAG,cAAc;AAAEc,MAAAA,OAAO,GAAG,KAAK;AAAEC,MAAAA;AAAuB,KAAA,GAAA/B,KAAK;IAAnBgC,SAAS,GAAAC,MAAA,CAAKjC,KAAK,EAAhK,CAAA,cAAA,EAAA,OAAA,EAAA,UAAA,EAAA,UAAA,EAAA,WAAA,EAAA,OAAA,EAAA,SAAA,EAAA,YAAA,EAAA,SAAA,EAAA,MAAA,CAAwJ,CAAQ;AAEtK,EAAA,MAAMkC,GAAG,GAAGC,UAAU,CACpBR,SAAS,EACT,kBAAkB,EAClB;IACE,CAAC,CAAA,EAAGX,UAAU,CAAE,CAAA,GAAIZ,KAAgB,CAACG,KAAK,IAAI,CAACU;AAChD,GAAA,CACF;AAED,EAAA,oBACEmB,IAAA,CAAA,QAAA,EAAA;AAAA,IAAA,GACMC,IAAI,CAACL,SAAS,EAAE,CAAC,YAAY,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,cAAc,CAAC,CAAC;AACpGD,IAAAA,IAAI,EAAEA,IAAK;AACXO,IAAAA,GAAG,EAAEd,YAAa;AAClBG,IAAAA,SAAS,EAAEO,GAAI;AACfN,IAAAA,KAAK,EAAEA,KAAM;AACbC,IAAAA,OAAO,EAAEA,OAAQ;AACjBZ,IAAAA,QAAQ,EAAEA,QAAS;AACnBG,IAAAA,YAAY,EAAER,aAAc;AAC5BW,IAAAA,UAAU,EAAEF,WAAY;AACxBS,IAAAA,OAAO,EAAEA,OAAO,CAACS,QAAQ,EAAG;AAC5Bd,IAAAA,KAAK,EAAEA,KAAK,CAACc,QAAQ,EAAG;AAAAb,IAAAA,QAAA,EAEvB,CAAA,CAAC,CAACI,OAAO,iBAAIU,GAAA,CAAA,GAAA,EAAA;AAAGb,MAAAA,SAAS,EAAC;KAAc,CAAG,EAC3CD,QAAQ;AAAA,GACH,CAAC;AAEb;AAEA,YAAee,yBAAyB,CAAC1C,MAAM,CAAC;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import './style/index.scss.js';
|
|
2
|
-
import classNames from 'classnames';
|
|
3
|
-
import { omit, createForwardRefComponent } from '../../utils/index.js';
|
|
4
|
-
import { jsx } from 'react/jsx-runtime';
|
|
5
|
-
|
|
6
|
-
const Icon = props => {
|
|
7
|
-
let {
|
|
8
|
-
type,
|
|
9
|
-
className = '',
|
|
10
|
-
size = '23',
|
|
11
|
-
color,
|
|
12
|
-
forwardedRef
|
|
13
|
-
} = props;
|
|
14
|
-
if (type) type = type.replace(/_/g, '-');
|
|
15
|
-
const cls = classNames({
|
|
16
|
-
[`weui-icon-${type}`]: true
|
|
17
|
-
}, className);
|
|
18
|
-
const style = {
|
|
19
|
-
'font-size': size + 'px',
|
|
20
|
-
color: color
|
|
21
|
-
};
|
|
22
|
-
return (
|
|
23
|
-
/*#__PURE__*/
|
|
24
|
-
// eslint-disable-next-line react/react-in-jsx-scope
|
|
25
|
-
jsx("i", {
|
|
26
|
-
ref: forwardedRef,
|
|
27
|
-
...omit(props, ['type', 'className', 'forwardedRef']),
|
|
28
|
-
className: cls,
|
|
29
|
-
style: style
|
|
30
|
-
})
|
|
31
|
-
);
|
|
32
|
-
};
|
|
33
|
-
var index = createForwardRefComponent(Icon);
|
|
34
|
-
|
|
35
|
-
export { index as default };
|
|
36
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/icon/index.tsx"],"sourcesContent":["import './style/index.scss'\n\nimport classNames from 'classnames'\n\nimport { createForwardRefComponent, omit } from '../../utils'\n\ninterface IProps {\n type: string\n color: string\n size?: number | string\n className?: string\n forwardedRef?: React.MutableRefObject<HTMLLIElement>\n}\n\nconst Icon = (props: IProps) => {\n let { type, className = '', size = '23', color, forwardedRef } = props\n if (type) type = type.replace(/_/g, '-')\n const cls = classNames(\n {\n [`weui-icon-${type}`]: true\n },\n className\n )\n const style = { 'font-size': size + 'px', color: color }\n\n return (\n // eslint-disable-next-line react/react-in-jsx-scope\n <i ref={forwardedRef} {...omit(props, ['type', 'className', 'forwardedRef'])} className={cls} style={style} />\n )\n}\nexport default createForwardRefComponent(Icon)\n"],"names":["Icon","props","type","className","size","color","forwardedRef","replace","cls","classNames","style","_jsx","ref","omit","createForwardRefComponent"],"mappings":";;;;;AAcA,MAAMA,IAAI,GAAIC,KAAa,IAAI;EAC7B,IAAI;IAAEC,IAAI;AAAEC,IAAAA,SAAS,GAAG,EAAE;AAAEC,IAAAA,IAAI,GAAG,IAAI;IAAEC,KAAK;AAAEC,IAAAA;AAAc,GAAA,GAAGL,KAAK;EACtE,IAAIC,IAAI,EAAEA,IAAI,GAAGA,IAAI,CAACK,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC;EACxC,MAAMC,GAAG,GAAGC,UAAU,CACpB;IACE,CAAC,CAAA,UAAA,EAAaP,IAAI,CAAA,CAAE,GAAG;GACxB,EACDC,SAAS,CACV;AACD,EAAA,MAAMO,KAAK,GAAG;IAAE,WAAW,EAAEN,IAAI,GAAG,IAAI;AAAEC,IAAAA,KAAK,EAAEA;GAAO;AAExD,EAAA;AAAA;AACE;IACAM,GAAA,CAAA,GAAA,EAAA;AAAGC,MAAAA,GAAG,EAAEN,YAAa;MAAA,GAAKO,IAAI,CAACZ,KAAK,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,cAAc,CAAC,CAAC;AAAEE,MAAAA,SAAS,EAAEK,GAAI;AAACE,MAAAA,KAAK,EAAEA;KAAM;AAAG;AAElH,CAAC;AACD,YAAeI,yBAAyB,CAACd,IAAI,CAAC;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|