maxit-cli 0.1.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/LICENSE +49 -0
- package/README.md +56 -0
- package/bin/maxit.js +75 -0
- package/lib/commands.js +142 -0
- package/lib/project.js +58 -0
- package/lib/registry.js +50 -0
- package/package.json +30 -0
- package/registry/components/action-sheet/action-sheet.js +1 -0
- package/registry/components/action-sheet/action-sheet.json +1 -0
- package/registry/components/action-sheet/action-sheet.wxml +1 -0
- package/registry/components/action-sheet/action-sheet.wxs +34 -0
- package/registry/components/action-sheet/action-sheet.wxss +197 -0
- package/registry/components/action-sheet/index.js +1 -0
- package/registry/components/action-sheet/props.js +1 -0
- package/registry/components/action-sheet/show.js +1 -0
- package/registry/components/action-sheet/template/grid.wxml +1 -0
- package/registry/components/avatar/avatar.js +1 -0
- package/registry/components/avatar/avatar.json +1 -0
- package/registry/components/avatar/avatar.wxml +1 -0
- package/registry/components/avatar/avatar.wxs +30 -0
- package/registry/components/avatar/avatar.wxss +105 -0
- package/registry/components/avatar/index.js +1 -0
- package/registry/components/avatar/props.js +1 -0
- package/registry/components/avatar-group/avatar-group.js +1 -0
- package/registry/components/avatar-group/avatar-group.json +1 -0
- package/registry/components/avatar-group/avatar-group.wxml +1 -0
- package/registry/components/avatar-group/avatar-group.wxss +248 -0
- package/registry/components/avatar-group/index.js +1 -0
- package/registry/components/avatar-group/props.js +1 -0
- package/registry/components/back-top/back-top.js +1 -0
- package/registry/components/back-top/back-top.json +1 -0
- package/registry/components/back-top/back-top.wxml +1 -0
- package/registry/components/back-top/back-top.wxss +77 -0
- package/registry/components/back-top/index.js +1 -0
- package/registry/components/back-top/props.js +1 -0
- package/registry/components/badge/badge.js +1 -0
- package/registry/components/badge/badge.json +1 -0
- package/registry/components/badge/badge.wxml +1 -0
- package/registry/components/badge/badge.wxs +64 -0
- package/registry/components/badge/badge.wxss +168 -0
- package/registry/components/badge/index.js +1 -0
- package/registry/components/badge/props.js +1 -0
- package/registry/components/balance-card/balance-card.js +34 -0
- package/registry/components/balance-card/balance-card.json +1 -0
- package/registry/components/balance-card/balance-card.wxml +33 -0
- package/registry/components/balance-card/balance-card.wxss +111 -0
- package/registry/components/balance-card/index.js +2 -0
- package/registry/components/balance-card/props.js +14 -0
- package/registry/components/balance-thumb-card/balance-thumb-card.js +39 -0
- package/registry/components/balance-thumb-card/balance-thumb-card.json +1 -0
- package/registry/components/balance-thumb-card/balance-thumb-card.wxml +26 -0
- package/registry/components/balance-thumb-card/balance-thumb-card.wxss +31 -0
- package/registry/components/balance-thumb-card/index.js +2 -0
- package/registry/components/balance-thumb-card/props.js +17 -0
- package/registry/components/bill-card/bill-card.js +23 -0
- package/registry/components/bill-card/bill-card.json +1 -0
- package/registry/components/bill-card/bill-card.wxml +30 -0
- package/registry/components/bill-card/bill-card.wxss +33 -0
- package/registry/components/bill-card/index.js +2 -0
- package/registry/components/bill-card/props.js +18 -0
- package/registry/components/button/button.js +1 -0
- package/registry/components/button/button.json +1 -0
- package/registry/components/button/button.wxml +1 -0
- package/registry/components/button/button.wxss +775 -0
- package/registry/components/button/index.js +1 -0
- package/registry/components/button/props.js +1 -0
- package/registry/components/calendar/calendar-header.wxml +1 -0
- package/registry/components/calendar/calendar.js +1 -0
- package/registry/components/calendar/calendar.json +1 -0
- package/registry/components/calendar/calendar.wxml +1 -0
- package/registry/components/calendar/calendar.wxs +44 -0
- package/registry/components/calendar/calendar.wxss +246 -0
- package/registry/components/calendar/index.js +1 -0
- package/registry/components/calendar/props.js +1 -0
- package/registry/components/calendar/template.wxml +1 -0
- package/registry/components/calendar/utils.js +1 -0
- package/registry/components/card/card.js +24 -0
- package/registry/components/card/card.json +1 -0
- package/registry/components/card/card.wxml +23 -0
- package/registry/components/card/card.wxss +103 -0
- package/registry/components/card/index.js +2 -0
- package/registry/components/card/props.js +16 -0
- package/registry/components/card-list/card-list.js +22 -0
- package/registry/components/card-list/card-list.json +1 -0
- package/registry/components/card-list/card-list.wxml +7 -0
- package/registry/components/card-list/card-list.wxss +30 -0
- package/registry/components/card-list/index.js +2 -0
- package/registry/components/card-list/props.js +16 -0
- package/registry/components/cascader/cascader.js +1 -0
- package/registry/components/cascader/cascader.json +1 -0
- package/registry/components/cascader/cascader.wxml +1 -0
- package/registry/components/cascader/cascader.wxss +178 -0
- package/registry/components/cascader/index.js +1 -0
- package/registry/components/cascader/props.js +1 -0
- package/registry/components/category-filter/category-filter.js +50 -0
- package/registry/components/category-filter/category-filter.json +1 -0
- package/registry/components/category-filter/category-filter.wxml +16 -0
- package/registry/components/category-filter/category-filter.wxss +47 -0
- package/registry/components/category-filter/index.js +2 -0
- package/registry/components/category-filter/props.js +10 -0
- package/registry/components/cell/cell.js +1 -0
- package/registry/components/cell/cell.json +1 -0
- package/registry/components/cell/cell.wxml +1 -0
- package/registry/components/cell/cell.wxss +136 -0
- package/registry/components/cell/index.js +1 -0
- package/registry/components/cell/props.js +1 -0
- package/registry/components/check-tag/check-tag.js +1 -0
- package/registry/components/check-tag/check-tag.json +1 -0
- package/registry/components/check-tag/check-tag.wxml +1 -0
- package/registry/components/check-tag/check-tag.wxss +275 -0
- package/registry/components/check-tag/index.js +1 -0
- package/registry/components/check-tag/props.js +1 -0
- package/registry/components/checkbox/checkbox.js +1 -0
- package/registry/components/checkbox/checkbox.json +1 -0
- package/registry/components/checkbox/checkbox.wxml +1 -0
- package/registry/components/checkbox/checkbox.wxss +230 -0
- package/registry/components/checkbox/index.js +1 -0
- package/registry/components/checkbox/props.js +1 -0
- package/registry/components/checkbox-group/checkbox-group.js +1 -0
- package/registry/components/checkbox-group/checkbox-group.json +1 -0
- package/registry/components/checkbox-group/checkbox-group.wxml +1 -0
- package/registry/components/checkbox-group/checkbox-group.wxss +7 -0
- package/registry/components/checkbox-group/index.js +1 -0
- package/registry/components/checkbox-group/props.js +1 -0
- package/registry/components/collapse/collapse.js +1 -0
- package/registry/components/collapse/collapse.json +1 -0
- package/registry/components/collapse/collapse.wxml +1 -0
- package/registry/components/collapse/collapse.wxss +8 -0
- package/registry/components/collapse/index.js +1 -0
- package/registry/components/collapse/props.js +1 -0
- package/registry/components/collapse-panel/collapse-panel.js +1 -0
- package/registry/components/collapse-panel/collapse-panel.json +1 -0
- package/registry/components/collapse-panel/collapse-panel.wxml +1 -0
- package/registry/components/collapse-panel/collapse-panel.wxss +186 -0
- package/registry/components/collapse-panel/index.js +1 -0
- package/registry/components/collapse-panel/props.js +1 -0
- package/registry/components/color-picker/color-picker.js +1 -0
- package/registry/components/color-picker/color-picker.json +1 -0
- package/registry/components/color-picker/color-picker.wxml +1 -0
- package/registry/components/color-picker/color-picker.wxss +312 -0
- package/registry/components/color-picker/constants.js +1 -0
- package/registry/components/color-picker/index.js +1 -0
- package/registry/components/color-picker/interfaces.js +1 -0
- package/registry/components/color-picker/props.js +1 -0
- package/registry/components/color-picker/template.wxml +1 -0
- package/registry/components/color-picker/utils.js +1 -0
- package/registry/components/common/bus.js +1 -0
- package/registry/components/common/config.js +1 -0
- package/registry/components/common/libs/tinycolor.js +1 -0
- package/registry/components/common/locale.js +20 -0
- package/registry/components/common/mixins/page-scroll.js +1 -0
- package/registry/components/common/mixins/touch.js +1 -0
- package/registry/components/common/mixins/transition.js +1 -0
- package/registry/components/common/mixins/using-config.js +24 -0
- package/registry/components/common/mixins/using-custom-navbar.js +1 -0
- package/registry/components/common/shared/calendar/index.js +1 -0
- package/registry/components/common/shared/color-picker/cmyk.js +1 -0
- package/registry/components/common/shared/color-picker/color.js +1 -0
- package/registry/components/common/shared/color-picker/gradient.js +1 -0
- package/registry/components/common/shared/color-picker/index.js +1 -0
- package/registry/components/common/shared/date.js +1 -0
- package/registry/components/common/shared/qrcode/qrcodegen.js +1 -0
- package/registry/components/common/shared/qrcode/utils.js +1 -0
- package/registry/components/common/src/control.js +1 -0
- package/registry/components/common/src/flatTool.js +1 -0
- package/registry/components/common/src/index.js +1 -0
- package/registry/components/common/src/instantiationDecorator.js +1 -0
- package/registry/components/common/src/superComponent.js +1 -0
- package/registry/components/common/style/card.wxss +245 -0
- package/registry/components/common/style/index.wxss +3 -0
- package/registry/components/common/style/tokens.wxss +233 -0
- package/registry/components/common/template/badge.wxml +1 -0
- package/registry/components/common/template/button.wxml +1 -0
- package/registry/components/common/template/icon.wxml +1 -0
- package/registry/components/common/template/image.wxml +1 -0
- package/registry/components/common/tslib.js +2 -0
- package/registry/components/common/typography/ellipsis.wxml +1 -0
- package/registry/components/common/typography/typography.wxs +49 -0
- package/registry/components/common/utils.js +1 -0
- package/registry/components/common/utils.wxs +149 -0
- package/registry/components/common/validator.js +1 -0
- package/registry/components/common/wechat.js +1 -0
- package/registry/components/consumption-card/consumption-card.js +23 -0
- package/registry/components/consumption-card/consumption-card.json +1 -0
- package/registry/components/consumption-card/consumption-card.wxml +16 -0
- package/registry/components/consumption-card/consumption-card.wxss +36 -0
- package/registry/components/consumption-card/index.js +2 -0
- package/registry/components/consumption-card/props.js +14 -0
- package/registry/components/contact-list/contact-list.js +60 -0
- package/registry/components/contact-list/contact-list.json +1 -0
- package/registry/components/contact-list/contact-list.wxml +24 -0
- package/registry/components/contact-list/contact-list.wxss +73 -0
- package/registry/components/contact-list/index.js +2 -0
- package/registry/components/contact-list/props.js +13 -0
- package/registry/components/description-tile/description-tile.js +22 -0
- package/registry/components/description-tile/description-tile.json +1 -0
- package/registry/components/description-tile/description-tile.wxml +11 -0
- package/registry/components/description-tile/description-tile.wxss +21 -0
- package/registry/components/description-tile/index.js +2 -0
- package/registry/components/description-tile/props.js +10 -0
- package/registry/components/details-card/details-card.js +38 -0
- package/registry/components/details-card/details-card.json +1 -0
- package/registry/components/details-card/details-card.wxml +37 -0
- package/registry/components/details-card/details-card.wxss +119 -0
- package/registry/components/details-card/index.js +2 -0
- package/registry/components/details-card/props.js +22 -0
- package/registry/components/dialog/dialog.js +1 -0
- package/registry/components/dialog/dialog.json +1 -0
- package/registry/components/dialog/dialog.wxml +1 -0
- package/registry/components/dialog/dialog.wxs +13 -0
- package/registry/components/dialog/dialog.wxss +123 -0
- package/registry/components/dialog/index.js +1 -0
- package/registry/components/dialog/props.js +1 -0
- package/registry/components/divider/divider.js +1 -0
- package/registry/components/divider/divider.json +1 -0
- package/registry/components/divider/divider.wxml +1 -0
- package/registry/components/divider/divider.wxss +69 -0
- package/registry/components/divider/index.js +1 -0
- package/registry/components/divider/props.js +1 -0
- package/registry/components/drawer/drawer.js +1 -0
- package/registry/components/drawer/drawer.json +1 -0
- package/registry/components/drawer/drawer.wxml +1 -0
- package/registry/components/drawer/drawer.wxss +75 -0
- package/registry/components/drawer/index.js +1 -0
- package/registry/components/drawer/props.js +1 -0
- package/registry/components/dropdown-item/dropdown-item.js +1 -0
- package/registry/components/dropdown-item/dropdown-item.json +1 -0
- package/registry/components/dropdown-item/dropdown-item.wxml +1 -0
- package/registry/components/dropdown-item/dropdown-item.wxss +116 -0
- package/registry/components/dropdown-item/index.js +1 -0
- package/registry/components/dropdown-item/index.wxs +9 -0
- package/registry/components/dropdown-item/props.js +1 -0
- package/registry/components/dropdown-menu/dropdown-menu.js +1 -0
- package/registry/components/dropdown-menu/dropdown-menu.json +1 -0
- package/registry/components/dropdown-menu/dropdown-menu.wxml +1 -0
- package/registry/components/dropdown-menu/dropdown-menu.wxss +72 -0
- package/registry/components/dropdown-menu/index.js +1 -0
- package/registry/components/dropdown-menu/props.js +1 -0
- package/registry/components/empty/empty.js +1 -0
- package/registry/components/empty/empty.json +1 -0
- package/registry/components/empty/empty.wxml +1 -0
- package/registry/components/empty/empty.wxss +28 -0
- package/registry/components/empty/index.js +1 -0
- package/registry/components/empty/props.js +1 -0
- package/registry/components/entry-card/entry-card.js +23 -0
- package/registry/components/entry-card/entry-card.json +1 -0
- package/registry/components/entry-card/entry-card.wxml +14 -0
- package/registry/components/entry-card/entry-card.wxss +30 -0
- package/registry/components/entry-card/index.js +2 -0
- package/registry/components/entry-card/props.js +11 -0
- package/registry/components/file-drop/file-drop.js +23 -0
- package/registry/components/file-drop/file-drop.json +1 -0
- package/registry/components/file-drop/file-drop.wxml +13 -0
- package/registry/components/file-drop/file-drop.wxss +35 -0
- package/registry/components/file-drop/index.js +2 -0
- package/registry/components/file-drop/props.js +9 -0
- package/registry/components/grid/grid.js +1 -0
- package/registry/components/grid/grid.json +1 -0
- package/registry/components/grid/grid.wxml +1 -0
- package/registry/components/grid/grid.wxss +18 -0
- package/registry/components/grid/index.js +1 -0
- package/registry/components/grid/props.js +1 -0
- package/registry/components/grid-item/grid-item.js +1 -0
- package/registry/components/grid-item/grid-item.json +1 -0
- package/registry/components/grid-item/grid-item.wxml +1 -0
- package/registry/components/grid-item/grid-item.wxss +130 -0
- package/registry/components/grid-item/index.js +1 -0
- package/registry/components/grid-item/props.js +1 -0
- package/registry/components/guide/content.wxml +1 -0
- package/registry/components/guide/guide.js +1 -0
- package/registry/components/guide/guide.json +1 -0
- package/registry/components/guide/guide.wxml +1 -0
- package/registry/components/guide/guide.wxss +79 -0
- package/registry/components/guide/index.js +1 -0
- package/registry/components/guide/props.js +1 -0
- package/registry/components/icon/icon.js +1 -0
- package/registry/components/icon/icon.json +1 -0
- package/registry/components/icon/icon.wxml +1 -0
- package/registry/components/icon/icon.wxss +2361 -0
- package/registry/components/icon/index.js +1 -0
- package/registry/components/icon/props.js +1 -0
- package/registry/components/image/image.js +1 -0
- package/registry/components/image/image.json +1 -0
- package/registry/components/image/image.wxml +1 -0
- package/registry/components/image/image.wxss +55 -0
- package/registry/components/image/index.js +1 -0
- package/registry/components/image/props.js +1 -0
- package/registry/components/image-viewer/image-viewer.js +1 -0
- package/registry/components/image-viewer/image-viewer.json +1 -0
- package/registry/components/image-viewer/image-viewer.wxml +1 -0
- package/registry/components/image-viewer/image-viewer.wxs +7 -0
- package/registry/components/image-viewer/image-viewer.wxss +90 -0
- package/registry/components/image-viewer/index.js +1 -0
- package/registry/components/image-viewer/props.js +1 -0
- package/registry/components/info-card/index.js +2 -0
- package/registry/components/info-card/info-card.js +22 -0
- package/registry/components/info-card/info-card.json +1 -0
- package/registry/components/info-card/info-card.wxml +14 -0
- package/registry/components/info-card/info-card.wxss +56 -0
- package/registry/components/info-card/props.js +11 -0
- package/registry/components/input/index.js +1 -0
- package/registry/components/input/input.js +1 -0
- package/registry/components/input/input.json +1 -0
- package/registry/components/input/input.wxml +1 -0
- package/registry/components/input/input.wxs +16 -0
- package/registry/components/input/input.wxss +313 -0
- package/registry/components/input/props.js +1 -0
- package/registry/components/insight-card/index.js +2 -0
- package/registry/components/insight-card/insight-card.js +19 -0
- package/registry/components/insight-card/insight-card.json +1 -0
- package/registry/components/insight-card/insight-card.wxml +17 -0
- package/registry/components/insight-card/insight-card.wxss +35 -0
- package/registry/components/insight-card/props.js +12 -0
- package/registry/components/link/index.js +1 -0
- package/registry/components/link/link.js +1 -0
- package/registry/components/link/link.json +1 -0
- package/registry/components/link/link.wxml +1 -0
- package/registry/components/link/link.wxss +155 -0
- package/registry/components/link/props.js +1 -0
- package/registry/components/list-item/index.js +2 -0
- package/registry/components/list-item/list-item.js +39 -0
- package/registry/components/list-item/list-item.json +1 -0
- package/registry/components/list-item/list-item.wxml +22 -0
- package/registry/components/list-item/list-item.wxss +110 -0
- package/registry/components/list-item/props.js +22 -0
- package/registry/components/loading/index.js +1 -0
- package/registry/components/loading/loading.js +1 -0
- package/registry/components/loading/loading.json +1 -0
- package/registry/components/loading/loading.wxml +1 -0
- package/registry/components/loading/loading.wxss +281 -0
- package/registry/components/loading/props.js +1 -0
- package/registry/components/main-card/index.js +2 -0
- package/registry/components/main-card/main-card.js +23 -0
- package/registry/components/main-card/main-card.json +1 -0
- package/registry/components/main-card/main-card.wxml +37 -0
- package/registry/components/main-card/main-card.wxss +63 -0
- package/registry/components/main-card/props.js +24 -0
- package/registry/components/media-card/index.js +2 -0
- package/registry/components/media-card/media-card.js +23 -0
- package/registry/components/media-card/media-card.json +1 -0
- package/registry/components/media-card/media-card.wxml +11 -0
- package/registry/components/media-card/media-card.wxss +51 -0
- package/registry/components/media-card/props.js +8 -0
- package/registry/components/message/index.js +1 -0
- package/registry/components/message/message.interface.js +1 -0
- package/registry/components/message/message.js +1 -0
- package/registry/components/message/message.json +1 -0
- package/registry/components/message/message.wxml +1 -0
- package/registry/components/message/message.wxss +2 -0
- package/registry/components/message/props.js +1 -0
- package/registry/components/message-item/index.js +1 -0
- package/registry/components/message-item/message-item.js +1 -0
- package/registry/components/message-item/message-item.json +1 -0
- package/registry/components/message-item/message-item.wxml +1 -0
- package/registry/components/message-item/message-item.wxs +31 -0
- package/registry/components/message-item/message-item.wxss +141 -0
- package/registry/components/navbar/index.js +1 -0
- package/registry/components/navbar/navbar.js +1 -0
- package/registry/components/navbar/navbar.json +1 -0
- package/registry/components/navbar/navbar.wxml +1 -0
- package/registry/components/navbar/navbar.wxss +126 -0
- package/registry/components/navbar/props.js +1 -0
- package/registry/components/notice-bar/index.js +1 -0
- package/registry/components/notice-bar/notice-bar.js +1 -0
- package/registry/components/notice-bar/notice-bar.json +1 -0
- package/registry/components/notice-bar/notice-bar.wxml +1 -0
- package/registry/components/notice-bar/notice-bar.wxss +95 -0
- package/registry/components/notice-bar/props.js +1 -0
- package/registry/components/notification-item/index.js +2 -0
- package/registry/components/notification-item/notification-item.js +35 -0
- package/registry/components/notification-item/notification-item.json +1 -0
- package/registry/components/notification-item/notification-item.wxml +14 -0
- package/registry/components/notification-item/notification-item.wxss +47 -0
- package/registry/components/notification-item/props.js +10 -0
- package/registry/components/offer-card/index.js +2 -0
- package/registry/components/offer-card/offer-card.js +22 -0
- package/registry/components/offer-card/offer-card.json +1 -0
- package/registry/components/offer-card/offer-card.wxml +33 -0
- package/registry/components/offer-card/offer-card.wxss +37 -0
- package/registry/components/offer-card/props.js +21 -0
- package/registry/components/om-card/index.js +2 -0
- package/registry/components/om-card/om-card.js +40 -0
- package/registry/components/om-card/om-card.json +1 -0
- package/registry/components/om-card/om-card.wxml +35 -0
- package/registry/components/om-card/om-card.wxss +90 -0
- package/registry/components/om-card/props.js +14 -0
- package/registry/components/overlay/index.js +1 -0
- package/registry/components/overlay/overlay.js +1 -0
- package/registry/components/overlay/overlay.json +1 -0
- package/registry/components/overlay/overlay.wxml +1 -0
- package/registry/components/overlay/overlay.wxss +22 -0
- package/registry/components/overlay/props.js +1 -0
- package/registry/components/paragraph/index.js +1 -0
- package/registry/components/paragraph/paragraph.js +1 -0
- package/registry/components/paragraph/paragraph.json +1 -0
- package/registry/components/paragraph/paragraph.wxml +1 -0
- package/registry/components/paragraph/paragraph.wxss +151 -0
- package/registry/components/paragraph/props.js +1 -0
- package/registry/components/picker/index.js +1 -0
- package/registry/components/picker/picker.js +1 -0
- package/registry/components/picker/picker.json +1 -0
- package/registry/components/picker/picker.wxml +1 -0
- package/registry/components/picker/picker.wxs +9 -0
- package/registry/components/picker/picker.wxss +84 -0
- package/registry/components/picker/props.js +1 -0
- package/registry/components/picker/template.wxml +1 -0
- package/registry/components/picker-item/index.js +1 -0
- package/registry/components/picker-item/picker-item.js +1 -0
- package/registry/components/picker-item/picker-item.json +1 -0
- package/registry/components/picker-item/picker-item.wxml +1 -0
- package/registry/components/picker-item/picker-item.wxss +41 -0
- package/registry/components/picker-item/props.js +1 -0
- package/registry/components/popover/index.js +1 -0
- package/registry/components/popover/popover.js +1 -0
- package/registry/components/popover/popover.json +1 -0
- package/registry/components/popover/popover.wxml +1 -0
- package/registry/components/popover/popover.wxss +336 -0
- package/registry/components/popover/props.js +1 -0
- package/registry/components/popup/index.js +1 -0
- package/registry/components/popup/popup.js +1 -0
- package/registry/components/popup/popup.json +1 -0
- package/registry/components/popup/popup.wxml +1 -0
- package/registry/components/popup/popup.wxs +21 -0
- package/registry/components/popup/popup.wxss +96 -0
- package/registry/components/popup/props.js +1 -0
- package/registry/components/post-item/index.js +2 -0
- package/registry/components/post-item/post-item.js +22 -0
- package/registry/components/post-item/post-item.json +1 -0
- package/registry/components/post-item/post-item.wxml +5 -0
- package/registry/components/post-item/post-item.wxss +37 -0
- package/registry/components/post-item/props.js +7 -0
- package/registry/components/progress/index.js +1 -0
- package/registry/components/progress/progress.js +1 -0
- package/registry/components/progress/progress.json +1 -0
- package/registry/components/progress/progress.wxml +1 -0
- package/registry/components/progress/progress.wxs +80 -0
- package/registry/components/progress/progress.wxss +161 -0
- package/registry/components/progress/props.js +1 -0
- package/registry/components/progress/utils.js +1 -0
- package/registry/components/purchase-card/index.js +2 -0
- package/registry/components/purchase-card/props.js +13 -0
- package/registry/components/purchase-card/purchase-card.js +40 -0
- package/registry/components/purchase-card/purchase-card.json +1 -0
- package/registry/components/purchase-card/purchase-card.wxml +22 -0
- package/registry/components/purchase-card/purchase-card.wxss +19 -0
- package/registry/components/qrcode/components/qrcode-canvas/props.js +1 -0
- package/registry/components/qrcode/components/qrcode-canvas/qrcode-canvas.js +1 -0
- package/registry/components/qrcode/components/qrcode-canvas/qrcode-canvas.json +1 -0
- package/registry/components/qrcode/components/qrcode-canvas/qrcode-canvas.wxml +1 -0
- package/registry/components/qrcode/components/qrcode-canvas/qrcode-canvas.wxss +10 -0
- package/registry/components/qrcode/components/qrcode-status/props.js +1 -0
- package/registry/components/qrcode/components/qrcode-status/qrcode-status.js +1 -0
- package/registry/components/qrcode/components/qrcode-status/qrcode-status.json +1 -0
- package/registry/components/qrcode/components/qrcode-status/qrcode-status.wxml +1 -0
- package/registry/components/qrcode/components/qrcode-status/qrcode-status.wxss +32 -0
- package/registry/components/qrcode/hooks/useQRCode.js +1 -0
- package/registry/components/qrcode/index.js +1 -0
- package/registry/components/qrcode/props.js +1 -0
- package/registry/components/qrcode/qrcode.js +1 -0
- package/registry/components/qrcode/qrcode.json +1 -0
- package/registry/components/qrcode/qrcode.wxml +1 -0
- package/registry/components/qrcode/qrcode.wxss +36 -0
- package/registry/components/quick-action/index.js +2 -0
- package/registry/components/quick-action/props.js +10 -0
- package/registry/components/quick-action/quick-action.js +22 -0
- package/registry/components/quick-action/quick-action.json +1 -0
- package/registry/components/quick-action/quick-action.wxml +15 -0
- package/registry/components/quick-action/quick-action.wxss +80 -0
- package/registry/components/radio/index.js +1 -0
- package/registry/components/radio/props.js +1 -0
- package/registry/components/radio/radio.js +1 -0
- package/registry/components/radio/radio.json +1 -0
- package/registry/components/radio/radio.wxml +1 -0
- package/registry/components/radio/radio.wxss +219 -0
- package/registry/components/radio-group/index.js +1 -0
- package/registry/components/radio-group/props.js +1 -0
- package/registry/components/radio-group/radio-group.js +1 -0
- package/registry/components/radio-group/radio-group.json +1 -0
- package/registry/components/radio-group/radio-group.wxml +1 -0
- package/registry/components/radio-group/radio-group.wxss +7 -0
- package/registry/components/rate/index.js +1 -0
- package/registry/components/rate/props.js +1 -0
- package/registry/components/rate/rate.js +1 -0
- package/registry/components/rate/rate.json +1 -0
- package/registry/components/rate/rate.wxml +1 -0
- package/registry/components/rate/rate.wxs +65 -0
- package/registry/components/rate/rate.wxss +99 -0
- package/registry/components/rating-card/index.js +2 -0
- package/registry/components/rating-card/props.js +12 -0
- package/registry/components/rating-card/rating-card.js +42 -0
- package/registry/components/rating-card/rating-card.json +1 -0
- package/registry/components/rating-card/rating-card.wxml +24 -0
- package/registry/components/rating-card/rating-card.wxss +49 -0
- package/registry/components/recap-card/index.js +2 -0
- package/registry/components/recap-card/props.js +21 -0
- package/registry/components/recap-card/recap-card.js +38 -0
- package/registry/components/recap-card/recap-card.json +1 -0
- package/registry/components/recap-card/recap-card.wxml +43 -0
- package/registry/components/recap-card/recap-card.wxss +60 -0
- package/registry/components/result/illustrations.js +2 -0
- package/registry/components/result/index.js +1 -0
- package/registry/components/result/props.js +1 -0
- package/registry/components/result/result.js +1 -0
- package/registry/components/result/result.json +1 -0
- package/registry/components/result/result.wxml +1 -0
- package/registry/components/result/result.wxss +97 -0
- package/registry/components/review-item/index.js +2 -0
- package/registry/components/review-item/props.js +13 -0
- package/registry/components/review-item/review-item.js +38 -0
- package/registry/components/review-item/review-item.json +1 -0
- package/registry/components/review-item/review-item.wxml +19 -0
- package/registry/components/review-item/review-item.wxss +65 -0
- package/registry/components/search/index.js +1 -0
- package/registry/components/search/props.js +1 -0
- package/registry/components/search/search.js +1 -0
- package/registry/components/search/search.json +1 -0
- package/registry/components/search/search.wxml +1 -0
- package/registry/components/search/search.wxs +6 -0
- package/registry/components/search/search.wxss +100 -0
- package/registry/components/section-title/index.js +2 -0
- package/registry/components/section-title/props.js +6 -0
- package/registry/components/section-title/section-title.js +22 -0
- package/registry/components/section-title/section-title.json +1 -0
- package/registry/components/section-title/section-title.wxml +6 -0
- package/registry/components/section-title/section-title.wxss +19 -0
- package/registry/components/segmented/index.js +1 -0
- package/registry/components/segmented/props.js +1 -0
- package/registry/components/segmented/segmented.js +1 -0
- package/registry/components/segmented/segmented.json +1 -0
- package/registry/components/segmented/segmented.wxml +1 -0
- package/registry/components/segmented/segmented.wxss +113 -0
- package/registry/components/selection-card/index.js +2 -0
- package/registry/components/selection-card/props.js +11 -0
- package/registry/components/selection-card/selection-card.js +25 -0
- package/registry/components/selection-card/selection-card.json +1 -0
- package/registry/components/selection-card/selection-card.wxml +7 -0
- package/registry/components/selection-card/selection-card.wxss +27 -0
- package/registry/components/shortcut-chip/index.js +2 -0
- package/registry/components/shortcut-chip/props.js +7 -0
- package/registry/components/shortcut-chip/shortcut-chip.js +24 -0
- package/registry/components/shortcut-chip/shortcut-chip.json +1 -0
- package/registry/components/shortcut-chip/shortcut-chip.wxml +4 -0
- package/registry/components/shortcut-chip/shortcut-chip.wxss +29 -0
- package/registry/components/skeleton/index.js +1 -0
- package/registry/components/skeleton/props.js +1 -0
- package/registry/components/skeleton/skeleton.js +1 -0
- package/registry/components/skeleton/skeleton.json +1 -0
- package/registry/components/skeleton/skeleton.wxml +1 -0
- package/registry/components/skeleton/skeleton.wxss +92 -0
- package/registry/components/slider/index.js +1 -0
- package/registry/components/slider/props.js +1 -0
- package/registry/components/slider/slider.js +1 -0
- package/registry/components/slider/slider.json +1 -0
- package/registry/components/slider/slider.wxml +1 -0
- package/registry/components/slider/slider.wxs +10 -0
- package/registry/components/slider/slider.wxss +287 -0
- package/registry/components/slider/tool.js +1 -0
- package/registry/components/step-item/index.js +1 -0
- package/registry/components/step-item/props.js +1 -0
- package/registry/components/step-item/step-item.js +1 -0
- package/registry/components/step-item/step-item.json +1 -0
- package/registry/components/step-item/step-item.wxml +1 -0
- package/registry/components/step-item/step-item.wxs +7 -0
- package/registry/components/step-item/step-item.wxss +226 -0
- package/registry/components/stepper/index.js +1 -0
- package/registry/components/stepper/props.js +1 -0
- package/registry/components/stepper/stepper.js +1 -0
- package/registry/components/stepper/stepper.json +1 -0
- package/registry/components/stepper/stepper.wxml +1 -0
- package/registry/components/stepper/stepper.wxss +130 -0
- package/registry/components/steps/index.js +1 -0
- package/registry/components/steps/props.js +1 -0
- package/registry/components/steps/steps.js +1 -0
- package/registry/components/steps/steps.json +1 -0
- package/registry/components/steps/steps.wxml +1 -0
- package/registry/components/steps/steps.wxss +27 -0
- package/registry/components/sticky/index.js +1 -0
- package/registry/components/sticky/props.js +1 -0
- package/registry/components/sticky/sticky.js +1 -0
- package/registry/components/sticky/sticky.json +1 -0
- package/registry/components/sticky/sticky.wxml +1 -0
- package/registry/components/sticky/sticky.wxss +6 -0
- package/registry/components/story-item/index.js +2 -0
- package/registry/components/story-item/props.js +8 -0
- package/registry/components/story-item/story-item.js +22 -0
- package/registry/components/story-item/story-item.json +1 -0
- package/registry/components/story-item/story-item.wxml +9 -0
- package/registry/components/story-item/story-item.wxss +43 -0
- package/registry/components/swipe-cell/index.js +1 -0
- package/registry/components/swipe-cell/props.js +1 -0
- package/registry/components/swipe-cell/swipe-cell.js +1 -0
- package/registry/components/swipe-cell/swipe-cell.json +1 -0
- package/registry/components/swipe-cell/swipe-cell.wxml +1 -0
- package/registry/components/swipe-cell/swipe-cell.wxs +185 -0
- package/registry/components/swipe-cell/swipe-cell.wxss +40 -0
- package/registry/components/swiper/index.js +1 -0
- package/registry/components/swiper/index.wxs +25 -0
- package/registry/components/swiper/props.js +1 -0
- package/registry/components/swiper/swiper.js +1 -0
- package/registry/components/swiper/swiper.json +1 -0
- package/registry/components/swiper/swiper.wxml +1 -0
- package/registry/components/swiper/swiper.wxss +28 -0
- package/registry/components/swiper-nav/index.js +1 -0
- package/registry/components/swiper-nav/props.js +1 -0
- package/registry/components/swiper-nav/swiper-nav.js +1 -0
- package/registry/components/swiper-nav/swiper-nav.json +1 -0
- package/registry/components/swiper-nav/swiper-nav.wxml +1 -0
- package/registry/components/swiper-nav/swiper-nav.wxss +155 -0
- package/registry/components/switch/index.js +1 -0
- package/registry/components/switch/props.js +1 -0
- package/registry/components/switch/switch.js +1 -0
- package/registry/components/switch/switch.json +1 -0
- package/registry/components/switch/switch.wxml +1 -0
- package/registry/components/switch/switch.wxss +169 -0
- package/registry/components/tab-bar/index.js +1 -0
- package/registry/components/tab-bar/props.js +1 -0
- package/registry/components/tab-bar/tab-bar.js +1 -0
- package/registry/components/tab-bar/tab-bar.json +1 -0
- package/registry/components/tab-bar/tab-bar.wxml +1 -0
- package/registry/components/tab-bar/tab-bar.wxss +50 -0
- package/registry/components/tab-bar-item/index.js +1 -0
- package/registry/components/tab-bar-item/props.js +1 -0
- package/registry/components/tab-bar-item/tab-bar-item.js +1 -0
- package/registry/components/tab-bar-item/tab-bar-item.json +1 -0
- package/registry/components/tab-bar-item/tab-bar-item.wxml +1 -0
- package/registry/components/tab-bar-item/tab-bar-item.wxss +177 -0
- package/registry/components/tab-panel/index.js +1 -0
- package/registry/components/tab-panel/props.js +1 -0
- package/registry/components/tab-panel/tab-panel.js +1 -0
- package/registry/components/tab-panel/tab-panel.json +1 -0
- package/registry/components/tab-panel/tab-panel.wxml +1 -0
- package/registry/components/tab-panel/tab-panel.wxss +20 -0
- package/registry/components/tabs/index.js +1 -0
- package/registry/components/tabs/props.js +1 -0
- package/registry/components/tabs/tabs.js +1 -0
- package/registry/components/tabs/tabs.json +1 -0
- package/registry/components/tabs/tabs.wxml +1 -0
- package/registry/components/tabs/tabs.wxs +30 -0
- package/registry/components/tabs/tabs.wxss +233 -0
- package/registry/components/tag/index.js +1 -0
- package/registry/components/tag/props.js +1 -0
- package/registry/components/tag/tag.js +1 -0
- package/registry/components/tag/tag.json +1 -0
- package/registry/components/tag/tag.wxml +1 -0
- package/registry/components/tag/tag.wxss +268 -0
- package/registry/components/text/index.js +1 -0
- package/registry/components/text/props.js +1 -0
- package/registry/components/text/text.js +1 -0
- package/registry/components/text/text.json +1 -0
- package/registry/components/text/text.wxml +1 -0
- package/registry/components/text/text.wxss +151 -0
- package/registry/components/textarea/index.js +1 -0
- package/registry/components/textarea/props.js +1 -0
- package/registry/components/textarea/textarea.js +1 -0
- package/registry/components/textarea/textarea.json +1 -0
- package/registry/components/textarea/textarea.wxml +1 -0
- package/registry/components/textarea/textarea.wxs +15 -0
- package/registry/components/textarea/textarea.wxss +151 -0
- package/registry/components/ticket/index.js +2 -0
- package/registry/components/ticket/props.js +19 -0
- package/registry/components/ticket/ticket.js +19 -0
- package/registry/components/ticket/ticket.json +1 -0
- package/registry/components/ticket/ticket.wxml +31 -0
- package/registry/components/ticket/ticket.wxss +57 -0
- package/registry/components/title/index.js +1 -0
- package/registry/components/title/props.js +1 -0
- package/registry/components/title/title.js +1 -0
- package/registry/components/title/title.json +1 -0
- package/registry/components/title/title.wxml +1 -0
- package/registry/components/title/title.wxss +151 -0
- package/registry/components/toast/index.js +1 -0
- package/registry/components/toast/props.js +1 -0
- package/registry/components/toast/toast.js +1 -0
- package/registry/components/toast/toast.json +1 -0
- package/registry/components/toast/toast.wxml +1 -0
- package/registry/components/toast/toast.wxss +87 -0
- package/registry/components/toggle-card/index.js +2 -0
- package/registry/components/toggle-card/props.js +7 -0
- package/registry/components/toggle-card/toggle-card.js +37 -0
- package/registry/components/toggle-card/toggle-card.json +1 -0
- package/registry/components/toggle-card/toggle-card.wxml +12 -0
- package/registry/components/toggle-card/toggle-card.wxss +11 -0
- package/registry/components/top-item/index.js +2 -0
- package/registry/components/top-item/props.js +10 -0
- package/registry/components/top-item/top-item.js +22 -0
- package/registry/components/top-item/top-item.json +1 -0
- package/registry/components/top-item/top-item.wxml +8 -0
- package/registry/components/top-item/top-item.wxss +37 -0
- package/registry/components/transaction-card/index.js +2 -0
- package/registry/components/transaction-card/props.js +25 -0
- package/registry/components/transaction-card/transaction-card.js +43 -0
- package/registry/components/transaction-card/transaction-card.json +1 -0
- package/registry/components/transaction-card/transaction-card.wxml +44 -0
- package/registry/components/transaction-card/transaction-card.wxss +45 -0
- package/registry/components/transfer-item/index.js +2 -0
- package/registry/components/transfer-item/props.js +18 -0
- package/registry/components/transfer-item/transfer-item.js +40 -0
- package/registry/components/transfer-item/transfer-item.json +1 -0
- package/registry/components/transfer-item/transfer-item.wxml +34 -0
- package/registry/components/transfer-item/transfer-item.wxss +66 -0
- package/registry/components/upload/drag.wxs +242 -0
- package/registry/components/upload/index.js +1 -0
- package/registry/components/upload/props.js +1 -0
- package/registry/components/upload/upload.js +1 -0
- package/registry/components/upload/upload.json +1 -0
- package/registry/components/upload/upload.wxml +1 -0
- package/registry/components/upload/upload.wxs +129 -0
- package/registry/components/upload/upload.wxss +354 -0
- package/registry/components/wheel-select/index.js +2 -0
- package/registry/components/wheel-select/props.js +8 -0
- package/registry/components/wheel-select/wheel-select.js +38 -0
- package/registry/components/wheel-select/wheel-select.json +1 -0
- package/registry/components/wheel-select/wheel-select.wxml +9 -0
- package/registry/components/wheel-select/wheel-select.wxss +22 -0
- package/registry/registry.json +1033 -0
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
@import '../common/style/index.wxss';
|
|
2
|
+
|
|
3
|
+
.o-typography {
|
|
4
|
+
color: var(--o-text-color-primary,var(--o-font-gray-1,#1c1b1f));
|
|
5
|
+
font: var(--o-font-body-medium,28rpx / 44rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial));
|
|
6
|
+
margin: var(--o-spacer-2,32rpx) 0;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.o-typography--h1 {
|
|
10
|
+
font: var(--o-font-headline-large,600 72rpx / 88rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial));
|
|
11
|
+
margin-top: var(--o-spacer-4,64rpx);
|
|
12
|
+
margin-bottom: var(--o-spacer-3,48rpx);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.o-typography--h2 {
|
|
16
|
+
font: var(--o-font-headline-medium,600 56rpx / 72rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial));
|
|
17
|
+
margin-top: var(--o-spacer-4,64rpx);
|
|
18
|
+
margin-bottom: var(--o-spacer-3,48rpx);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.o-typography--h3 {
|
|
22
|
+
font: var(--o-font-headline-small,600 48rpx / 64rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial));
|
|
23
|
+
margin-top: var(--o-spacer-4,64rpx);
|
|
24
|
+
margin-bottom: var(--o-spacer-2,32rpx);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.o-typography--h4 {
|
|
28
|
+
font: var(--o-font-title-large,600 36rpx / 52rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial));
|
|
29
|
+
margin-top: var(--o-spacer-3,48rpx);
|
|
30
|
+
margin-bottom: var(--o-spacer-2,32rpx);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.o-typography--h5 {
|
|
34
|
+
font: var(--o-font-title-medium,600 32rpx / 48rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial));
|
|
35
|
+
margin-top: var(--o-spacer-3,48rpx);
|
|
36
|
+
margin-bottom: var(--o-spacer-2,32rpx);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.o-typography--h6 {
|
|
40
|
+
font: var(--o-font-title-small,600 28rpx / 44rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial));
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.o-typography strong,
|
|
44
|
+
.o-typography--strong {
|
|
45
|
+
font-weight: 600;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.o-typography mark,
|
|
49
|
+
.o-typography--mark {
|
|
50
|
+
background-color: #fcdf47;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.o-typography code,
|
|
54
|
+
.o-typography--code {
|
|
55
|
+
border-radius: var(--o-radius-default,12rpx);
|
|
56
|
+
border: 1px solid var(--o-component-border,var(--o-gray-color-4,#dddddd));
|
|
57
|
+
margin: 0 var(--o-spacer,16rpx);
|
|
58
|
+
background-color: var(--o-bg-color-secondarycontainer,var(--o-gray-color-1,#eeeeee));
|
|
59
|
+
padding: 0 var(--o-spacer,16rpx);
|
|
60
|
+
transition: background-color .2s;
|
|
61
|
+
white-space: nowrap;
|
|
62
|
+
font: var(--o-font-body-small,24rpx / 40rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial));
|
|
63
|
+
font-family: Source Code Pro,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Hiragino Sans GB,Microsoft YaHei UI,Microsoft YaHei;
|
|
64
|
+
display: inline-block;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.o-typography kbd,
|
|
68
|
+
.o-typography--keyboard {
|
|
69
|
+
border-radius: var(--o-radius-default,12rpx);
|
|
70
|
+
border: 1px solid var(--o-component-border,var(--o-gray-color-4,#dddddd));
|
|
71
|
+
margin: 0 calc(var(--o-spacer,16rpx)/ 2);
|
|
72
|
+
background-color: var(--o-bg-color-secondarycontainer,var(--o-gray-color-1,#eeeeee));
|
|
73
|
+
padding: 0 var(--o-spacer,16rpx);
|
|
74
|
+
box-shadow: 0 1px 0 0 var(--o-component-border,var(--o-gray-color-4,#dddddd));
|
|
75
|
+
font: var(--o-font-body-small,24rpx / 40rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial));
|
|
76
|
+
font-family: Source Code Pro,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Hiragino Sans GB,Microsoft YaHei UI,Microsoft YaHei;
|
|
77
|
+
display: inline-block;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.o-typography--disabled {
|
|
81
|
+
color: var(--o-text-color-disabled,var(--o-font-gray-4,rgba(0,0,0,.26)));
|
|
82
|
+
cursor: not-allowed;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.o-typography--success {
|
|
86
|
+
color: var(--o-success-color,var(--o-success-color-5,#028702));
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.o-typography--warning {
|
|
90
|
+
color: var(--o-warning-color,var(--o-warning-color-5,#e37318));
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.o-typography--error {
|
|
94
|
+
color: var(--o-error-color,var(--o-error-color-6,#cd3c14));
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.o-typography--secondary {
|
|
98
|
+
color: var(--o-text-color-secondary,var(--o-font-gray-2,#444748));
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.o-typography .o-icon-copy,
|
|
102
|
+
.o-typography-ellipsis-symbol {
|
|
103
|
+
color: var(--o-brand-color,var(--o-primary-color-7,#f16e00));
|
|
104
|
+
cursor: pointer;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.o-typography .o-icon-checked {
|
|
108
|
+
color: var(--o-success-color,var(--o-success-color-5,#028702));
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.o-typography i,
|
|
112
|
+
.o-typography--italic {
|
|
113
|
+
font-style: italic;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.o-typography u,
|
|
117
|
+
.o-typography--underline {
|
|
118
|
+
text-decoration: underline;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.o-typography del,
|
|
122
|
+
.o-typography--delete {
|
|
123
|
+
text-decoration: line-through;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.o-typography__ellipsis-wrapper {
|
|
127
|
+
display: flex;
|
|
128
|
+
align-items: flex-end;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.o-typography__ellipsis-content {
|
|
132
|
+
overflow: hidden;
|
|
133
|
+
text-overflow: ellipsis;
|
|
134
|
+
white-space: normal;
|
|
135
|
+
display: -webkit-box;
|
|
136
|
+
-webkit-box-orient: vertical;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.o-typography-ellipsis-symbol {
|
|
140
|
+
text-decoration: none;
|
|
141
|
+
white-space: nowrap;
|
|
142
|
+
flex: 1;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.o-typography__copy {
|
|
146
|
+
display: inline-flex;
|
|
147
|
+
align-items: center;
|
|
148
|
+
margin-left: var(--o-spacer,16rpx);
|
|
149
|
+
flex-shrink: 0;
|
|
150
|
+
}
|
|
151
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./props";export*from"./textarea";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const props={variant:{type:String,value:"outlined"},size:{type:String,value:"medium"},adjustPosition:{type:Boolean,value:!0},allowInputOverMax:{type:Boolean,value:!1},autofocus:{type:Boolean,value:!1},autosize:{type:null,value:!1},bordered:{type:Boolean,value:!1},confirmHold:{type:Boolean,value:!1},confirmType:{type:String,value:"return"},cursor:{type:Number,value:-1},cursorColor:{type:String,value:"#f16e00"},cursorSpacing:{type:Number,value:0},disableDefaultPadding:{type:Boolean,value:!1},disabled:{type:null,value:void 0},fixed:{type:Boolean,value:!1},focus:{type:Boolean,value:!1},holdKeyboard:{type:Boolean,value:!1},indicator:{type:Boolean,value:!1},label:{type:String},maxcharacter:{type:Number},maxlength:{type:Number,value:-1},placeholder:{type:String,value:void 0},placeholderClass:{type:String,value:"textarea-placeholder"},placeholderStyle:{type:String,value:""},readonly:{type:null,value:void 0},selectionEnd:{type:Number,value:-1},selectionStart:{type:Number,value:-1},showConfirmBar:{type:Boolean,value:!0},value:{type:null,value:null},defaultValue:{type:null}};export default props;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__decorate}from"../common/tslib";import{SuperComponent,wxComponent}from"../common/src/index";import config from"../common/config";import props from"./props";import{getCharacterLength}from"../common/utils";const{prefix:prefix}=config,name=`${prefix}-textarea`;let Textarea=class extends SuperComponent{constructor(){super(...arguments),this.options={multipleSlots:!0},this.behaviors=["wx://form-field"],this.externalClasses=[`${prefix}-class`,`${prefix}-class-textarea`,`${prefix}-class-label`,`${prefix}-class-indicator`],this.properties=props,this.data={prefix:prefix,classPrefix:name,count:0},this.observers={value(e){this.updateCount(null!=e?e:this.properties.defaultValue)}},this.lifetimes={ready(){var e;const{value:t,defaultValue:a}=this.properties;this.updateValue(null!==(e=null!=t?t:a)&&void 0!==e?e:"")}},this.methods={updateCount(e){const{maxcharacter:t,maxlength:a}=this.properties,{count:r}=this.calculateValue(e,t,a);this.setData({count:r})},updateValue(e){const{maxcharacter:t,maxlength:a}=this.properties,{value:r,count:s}=this.calculateValue(e,t,a);this.setData({value:r,count:s})},calculateValue(e,t,a){const{allowInputOverMax:r}=this.properties;if(t>0&&!Number.isNaN(t)){const{length:a,characters:s}=getCharacterLength("maxcharacter",e,r?1/0:t);return{value:s,count:a}}if(a>0&&!Number.isNaN(a)){const{length:t,characters:s}=getCharacterLength("maxlength",e,r?1/0:a);return{value:s,count:t}}return{value:e,count:e?String(e).length:0}},onInput(e){const{value:t,cursor:a}=e.detail;this.updateValue(t),this.triggerEvent("change",{value:this.data.value,cursor:a})},onFocus(e){this.setData({_focused:!0}),this.triggerEvent("focus",Object.assign({},e.detail))},onBlur(e){this.setData({_focused:!1}),this.triggerEvent("blur",Object.assign({},e.detail))},onConfirm(e){this.triggerEvent("enter",Object.assign({},e.detail))},onLineChange(e){this.triggerEvent("line-change",Object.assign({},e.detail))},onKeyboardHeightChange(e){this.triggerEvent("keyboardheightchange",e.detail)}}}};Textarea=__decorate([wxComponent()],Textarea);export default Textarea;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"component":true,"styleIsolation":"apply-shared","usingComponents":{}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<wxs src="../common/utils.wxs" module="_"/><wxs src="./textarea.wxs" module="_this"/><view style="{{_._style([style, customStyle])}}" class="{{classPrefix}} {{bordered? classPrefix + '--border' : ''}} {{variant === 'outlined' ? classPrefix + '--outlined ' + classPrefix + '--size-' + size : ''}} {{_focused ? classPrefix + '--focused' : ''}} class {{prefix}}-class"><view class="{{classPrefix}}__label {{prefix}}-class-label"><block wx:if="{{label}}">{{ label }}</block><slot name="label"/></view><view class="{{classPrefix}}__wrapper"><textarea class="{{classPrefix}}__wrapper-inner {{disabled? prefix + '-is-disabled' : ''}} {{prefix}}-class-textarea" style="{{_this.textareaStyle(autosize)}}" maxlength="{{allowInputOverMax ? -1 : maxlength}}" disabled="{{disabled || readonly}}" placeholder="{{placeholder}}" placeholder-class="{{classPrefix}}__placeholder {{placeholderClass}}" placeholder-style="{{placeholderStyle}}" value="{{value}}" auto-height="{{!!autosize}}" auto-focus="{{autofocus}}" fixed="{{fixed}}" focus="{{focus}}" cursor="{{cursor}}" cursor-spacing="{{cursorSpacing}}" cursor-color="{{cursorColor}}" adjust-position="{{adjustPosition}}" confirm-type="{{confirmType}}" confirm-hold="{{confirmHold}}" disable-default-padding="{{disableDefaultPadding}}" show-confirm-bar="{{showConfirmBar}}" selection-start="{{selectionStart}}" selection-end="{{selectionEnd}}" hold-keyboard="{{holdKeyboard}}" bindinput="onInput" bindfocus="onFocus" bindblur="onBlur" bindconfirm="onConfirm" bindlinechange="onLineChange" bind:keyboardheightchange="onKeyboardHeightChange"/><view wx:if="{{indicator && (maxcharacter > 0 || maxlength > 0 )}}" class="{{classPrefix}}__indicator {{prefix}}-class-indicator">{{count}} / {{maxcharacter || maxlength}}</view></view></view>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
var utils = require('../common/utils.wxs');
|
|
2
|
+
|
|
3
|
+
function textareaStyle(autosize) {
|
|
4
|
+
if (autosize && autosize.constructor === 'Object') {
|
|
5
|
+
return utils._style({
|
|
6
|
+
'min-height': utils.addUnit(autosize.minHeight),
|
|
7
|
+
'max-height': utils.addUnit(autosize.maxHeight),
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
return '';
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
module.exports = {
|
|
14
|
+
textareaStyle: textareaStyle,
|
|
15
|
+
};
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
@import '../common/style/index.wxss';
|
|
2
|
+
|
|
3
|
+
.o-textarea {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
padding: var(--o-textarea-padding,var(--o-spacer-2,32rpx));
|
|
8
|
+
background-color: var(--o-textarea-background-color,var(--o-bg-color-container,var(--o-font-white-1,#fff)));
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.o-textarea__label:not(:empty) {
|
|
12
|
+
font: var(--o-font-body-medium,28rpx / 44rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial));
|
|
13
|
+
color: var(--o-textarea-label-color,var(--o-text-color-primary,var(--o-font-gray-1,#1c1b1f)));
|
|
14
|
+
flex-shrink: 0;
|
|
15
|
+
padding-bottom: var(--o-spacer,16rpx);
|
|
16
|
+
overflow: hidden;
|
|
17
|
+
white-space: nowrap;
|
|
18
|
+
text-overflow: ellipsis;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.o-textarea__wrapper {
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
width: 100%;
|
|
25
|
+
flex: 1 1 auto;
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.o-textarea__wrapper-inner {
|
|
30
|
+
flex: 1 1 auto;
|
|
31
|
+
box-sizing: border-box;
|
|
32
|
+
width: inherit;
|
|
33
|
+
min-width: 0;
|
|
34
|
+
min-height: 20px;
|
|
35
|
+
margin: 0;
|
|
36
|
+
padding: 0;
|
|
37
|
+
text-align: left;
|
|
38
|
+
background-color: transparent;
|
|
39
|
+
border: 0;
|
|
40
|
+
resize: none;
|
|
41
|
+
font: var(--o-font-body-large,32rpx / 48rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial));
|
|
42
|
+
color: var(--o-textarea-text-color,var(--o-text-color-primary,var(--o-font-gray-1,#1c1b1f)));
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.o-textarea__placeholder {
|
|
46
|
+
color: var(--o-textarea-placeholder-color,var(--o-text-color-placeholder,var(--o-font-gray-3,#8d8d8d)));
|
|
47
|
+
font: var(--o-font-body-medium,28rpx / 44rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial));
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.o-textarea__indicator:not(:empty) {
|
|
51
|
+
flex-shrink: 0;
|
|
52
|
+
color: var(--o-textarea-indicator-text-color,var(--o-text-color-placeholder,var(--o-font-gray-3,#8d8d8d)));
|
|
53
|
+
font: var(--o-font-body-small,24rpx / 40rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial));
|
|
54
|
+
text-align: right;
|
|
55
|
+
padding-top: var(--o-spacer,16rpx);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.o-textarea--border {
|
|
59
|
+
border-radius: var(--o-textarea-border-radius,var(--o-radius-default,12rpx));
|
|
60
|
+
position: relative;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.o-textarea--border::after {
|
|
64
|
+
content: '';
|
|
65
|
+
position: absolute;
|
|
66
|
+
top: 0;
|
|
67
|
+
left: 0;
|
|
68
|
+
right: 0;
|
|
69
|
+
bottom: 0;
|
|
70
|
+
border: 2rpx solid var(--o-textarea-border-color,var(--o-component-border,var(--o-gray-color-4,#dddddd)));
|
|
71
|
+
border-radius: inherit;
|
|
72
|
+
pointer-events: none;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.o-textarea .o-is-disabled {
|
|
76
|
+
color: var(--o-textarea-disabled-text-color,var(--o-text-color-disabled,var(--o-font-gray-4,rgba(0,0,0,.26))));
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.o-textarea--outlined {
|
|
80
|
+
position: relative;
|
|
81
|
+
box-sizing: border-box;
|
|
82
|
+
width: 100%;
|
|
83
|
+
margin: var(--o-textarea-outlined-label-offset,20rpx) 0 0;
|
|
84
|
+
overflow: visible;
|
|
85
|
+
border: var(--o-textarea-outlined-border-width,2rpx) solid var(--o-textarea-outlined-border-color,#dddddd);
|
|
86
|
+
border-radius: var(--o-textarea-outlined-radius,16rpx);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.o-textarea--outlined .o-textarea__label:not(:empty) {
|
|
90
|
+
position: absolute;
|
|
91
|
+
top: 0;
|
|
92
|
+
left: var(--o-textarea-outlined-label-left,24rpx);
|
|
93
|
+
transform: translateY(-50%);
|
|
94
|
+
max-width: calc(100% - 48rpx);
|
|
95
|
+
margin: 0;
|
|
96
|
+
padding: 0 12rpx;
|
|
97
|
+
background-color: var(--o-textarea-bg-color,var(--o-bg-color-container,var(--o-font-white-1,#fff)));
|
|
98
|
+
color: var(--o-textarea-outlined-label-color,var(--o-text-color-primary,#000));
|
|
99
|
+
white-space: nowrap;
|
|
100
|
+
overflow: hidden;
|
|
101
|
+
text-overflow: ellipsis;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.o-textarea--outlined.o-textarea--size-small {
|
|
105
|
+
padding: var(--o-textarea-small-padding,20rpx 24rpx);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.o-textarea--outlined.o-textarea--size-small .o-textarea__label:not(:empty) {
|
|
109
|
+
font: var(--o-textarea-small-label-font,24rpx / 36rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial));
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.o-textarea--outlined.o-textarea--size-small .o-textarea__wrapper-inner,
|
|
113
|
+
.o-textarea--outlined.o-textarea--size-small .o-textarea__placeholder {
|
|
114
|
+
font: var(--o-textarea-small-font,28rpx / 44rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial));
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.o-textarea--outlined.o-textarea--size-medium {
|
|
118
|
+
padding: var(--o-textarea-medium-padding,32rpx 32rpx);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.o-textarea--outlined.o-textarea--size-medium .o-textarea__label:not(:empty) {
|
|
122
|
+
font: var(--o-textarea-medium-label-font,28rpx / 40rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial));
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.o-textarea--outlined.o-textarea--size-medium .o-textarea__wrapper-inner,
|
|
126
|
+
.o-textarea--outlined.o-textarea--size-medium .o-textarea__placeholder {
|
|
127
|
+
font: var(--o-textarea-medium-font,32rpx / 48rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial));
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.o-textarea--outlined.o-textarea--size-large {
|
|
131
|
+
padding: var(--o-textarea-large-padding,40rpx 32rpx);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.o-textarea--outlined.o-textarea--size-large .o-textarea__label:not(:empty) {
|
|
135
|
+
font: var(--o-textarea-large-label-font,32rpx / 44rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial));
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.o-textarea--outlined.o-textarea--size-large .o-textarea__wrapper-inner,
|
|
139
|
+
.o-textarea--outlined.o-textarea--size-large .o-textarea__placeholder {
|
|
140
|
+
font: var(--o-textarea-large-font,36rpx / 52rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial));
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.o-textarea--outlined.o-textarea--focused {
|
|
144
|
+
border-color: var(--o-brand-color,#f16e00);
|
|
145
|
+
box-shadow: inset 0 0 0 calc(var(--o-input-outlined-focus-width,4rpx) - 2rpx) var(--o-brand-color,#f16e00);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.o-textarea--outlined.o-textarea--focused .o-textarea__label:not(:empty) {
|
|
149
|
+
color: var(--o-brand-color,#f16e00);
|
|
150
|
+
}
|
|
151
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// o-ticket: Event / invitation ticket (Figma "Ticket"): header, name and price, perforated separator, QR code.
|
|
2
|
+
const props = {
|
|
3
|
+
// event (with ticket name and price) or invitation
|
|
4
|
+
type: { type: String, value: 'event' },
|
|
5
|
+
thumbnail: { type: String, value: '' },
|
|
6
|
+
title: { type: String, value: '' },
|
|
7
|
+
subtitle: { type: String, value: '' },
|
|
8
|
+
meta: { type: String, value: '' },
|
|
9
|
+
subtitle2: { type: String, value: '' },
|
|
10
|
+
nameLabel: { type: String, value: 'Billet' },
|
|
11
|
+
name: { type: String, value: '' },
|
|
12
|
+
priceLabel: { type: String, value: 'Prix' },
|
|
13
|
+
amount: { type: String, value: '' },
|
|
14
|
+
currency: { type: String, value: 'FCFA' },
|
|
15
|
+
code: { type: String, value: '' },
|
|
16
|
+
number: { type: String, value: '' },
|
|
17
|
+
numberLabel: { type: String, value: 'Numéro du billet' },
|
|
18
|
+
};
|
|
19
|
+
export default props;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { __decorate } from '../common/tslib';
|
|
2
|
+
import { SuperComponent, wxComponent } from '../common/src/index';
|
|
3
|
+
import config from '../common/config';
|
|
4
|
+
import props from './props';
|
|
5
|
+
|
|
6
|
+
const { prefix } = config;
|
|
7
|
+
const name = `${prefix}-ticket`;
|
|
8
|
+
|
|
9
|
+
let Ticket = class Ticket extends SuperComponent {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.externalClasses = [`${prefix}-class`];
|
|
13
|
+
this.options = { multipleSlots: true };
|
|
14
|
+
this.properties = props;
|
|
15
|
+
this.data = { prefix, classPrefix: name };
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
Ticket = __decorate([wxComponent()], Ticket);
|
|
19
|
+
export default Ticket;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"component":true,"styleIsolation":"apply-shared","usingComponents":{"o-icon":"../icon/icon","o-qrcode":"../qrcode/qrcode"}}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<view class="o-surface o-surface--outlined o-ticket class {{prefix}}-class" style="{{style}} {{customStyle}}">
|
|
2
|
+
<view class="o-pad">
|
|
3
|
+
<view class="o-row o-row--top">
|
|
4
|
+
<view class="o-thumb">
|
|
5
|
+
<image wx:if="{{thumbnail}}" class="o-thumb__image" src="{{thumbnail}}" mode="aspectFill" />
|
|
6
|
+
<o-icon wx:else name="image" />
|
|
7
|
+
</view>
|
|
8
|
+
<view class="o-grow o-ticket__heading">
|
|
9
|
+
<view class="o-txt-title">{{title}}</view>
|
|
10
|
+
<view wx:if="{{subtitle}}" class="o-txt-body">{{subtitle}}</view>
|
|
11
|
+
<view wx:if="{{meta}}" class="o-txt-meta">{{meta}}</view>
|
|
12
|
+
<view wx:if="{{subtitle2}}" class="o-txt-body">{{subtitle2}}</view>
|
|
13
|
+
</view>
|
|
14
|
+
</view>
|
|
15
|
+
<view wx:if="{{type === 'event'}}" class="o-row o-ticket__info">
|
|
16
|
+
<view class="o-grow">
|
|
17
|
+
<view class="o-txt-body">{{nameLabel}}</view>
|
|
18
|
+
<view class="o-ticket__value">{{name}}</view>
|
|
19
|
+
</view>
|
|
20
|
+
<view class="o-ticket__right">
|
|
21
|
+
<view class="o-txt-body">{{priceLabel}}</view>
|
|
22
|
+
<view class="o-ticket__value">{{amount}} <text class="o-amount__currency">{{currency}}</text></view>
|
|
23
|
+
</view>
|
|
24
|
+
</view>
|
|
25
|
+
</view>
|
|
26
|
+
<view class="o-ticket__cut" />
|
|
27
|
+
<view class="o-ticket__code">
|
|
28
|
+
<o-qrcode wx:if="{{code}}" value="{{code}}" size="{{140}}" borderless />
|
|
29
|
+
<view wx:if="{{number}}" class="o-txt-body o-ticket__number">{{numberLabel}} : {{number}}</view>
|
|
30
|
+
</view>
|
|
31
|
+
</view>
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
@import '../common/style/index.wxss';
|
|
2
|
+
@import '../common/style/card.wxss';
|
|
3
|
+
|
|
4
|
+
/* Event / invitation ticket (Figma "Ticket"): header, name and price, perforated separator, QR code. */
|
|
5
|
+
.o-ticket__heading {
|
|
6
|
+
margin-left: 24rpx;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.o-ticket__info {
|
|
10
|
+
margin-top: 40rpx;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.o-ticket__right {
|
|
14
|
+
text-align: right;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.o-ticket__value {
|
|
18
|
+
font: var(--o-type-body-large, 400 32rpx / 48rpx var(--o-font-family, Roboto, Arial));
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* Perforated line with two half-circle notches cut into the card edges */
|
|
22
|
+
.o-ticket__cut {
|
|
23
|
+
position: relative;
|
|
24
|
+
margin: 8rpx 32rpx;
|
|
25
|
+
border-top: 2rpx dashed var(--o-scheme-outline-variant, #ddd);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.o-ticket__cut::before,
|
|
29
|
+
.o-ticket__cut::after {
|
|
30
|
+
content: '';
|
|
31
|
+
position: absolute;
|
|
32
|
+
top: -18rpx;
|
|
33
|
+
width: 32rpx;
|
|
34
|
+
height: 32rpx;
|
|
35
|
+
border-radius: 50%;
|
|
36
|
+
border: 2rpx solid var(--o-scheme-outline-variant, #ddd);
|
|
37
|
+
background-color: var(--o-ticket-notch-color, var(--o-scheme-background, #fff));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.o-ticket__cut::before {
|
|
41
|
+
left: -50rpx;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.o-ticket__cut::after {
|
|
45
|
+
right: -50rpx;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.o-ticket__code {
|
|
49
|
+
display: flex;
|
|
50
|
+
flex-direction: column;
|
|
51
|
+
align-items: center;
|
|
52
|
+
padding: 32rpx;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.o-ticket__number {
|
|
56
|
+
margin-top: 16rpx;
|
|
57
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./props";export*from"./title";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const props={content:{type:String},ellipsis:{type:null,value:!1},level:{type:String,value:"h1"}};export default props;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__decorate}from"../common/tslib";import{SuperComponent,wxComponent}from"../common/src/index";import config from"../common/config";import props from"./props";import usingConfig from"../common/mixins/using-config";const{prefix:prefix}=config,componentName="typography";let Title=class extends SuperComponent{constructor(){super(...arguments),this.behaviors=[usingConfig({componentName:"typography"})],this.externalClasses=[`${prefix}-class`],this.options={multipleSlots:!0},this.properties=props,this.data={prefix:prefix,classPrefix:`${prefix}-typography`,isExpanded:!1},this.methods={onExpand(){this.setData({isExpanded:!0});const{ellipsis:e}=this.properties;"object"==typeof e&&this.triggerEvent("expand",{expanded:!0})},onCollapse(){this.setData({isExpanded:!1});const{ellipsis:e}=this.properties;"object"==typeof e&&this.triggerEvent("expand",{expanded:!1})}}}};Title=__decorate([wxComponent()],Title);export default Title;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"component":true,"styleIsolation":"apply-shared"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<wxs src="../common/utils.wxs" module="_"/><wxs src="../common/typography/typography.wxs" module="_this"/><import src="../common/typography/ellipsis.wxml"/><view class="{{classPrefix}} {{classPrefix}}--{{level}} {{prefix}}-class {{_this.wrapperClass(classPrefix, ellipsis)}}" style="{{_._style([style, customStyle])}}"><view wx:if="{{ellipsis}}" class="{{classPrefix}}__ellipsis-content" style="{{_this.ellipsisStyle(ellipsis, isExpanded)}}"><text wx:if="{{content}}">{{content}}</text><slot wx:else/></view><block wx:else><text wx:if="{{content}}">{{content}}</text><slot wx:else/></block><template is="ellipsis-toggle" data="{{ellipsis, isExpanded, classPrefix, globalConfig}}"/></view>
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
@import '../common/style/index.wxss';
|
|
2
|
+
|
|
3
|
+
.o-typography {
|
|
4
|
+
color: var(--o-text-color-primary,var(--o-font-gray-1,#1c1b1f));
|
|
5
|
+
font: var(--o-font-body-medium,28rpx / 44rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial));
|
|
6
|
+
margin: var(--o-spacer-2,32rpx) 0;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.o-typography--h1 {
|
|
10
|
+
font: var(--o-font-headline-large,600 72rpx / 88rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial));
|
|
11
|
+
margin-top: var(--o-spacer-4,64rpx);
|
|
12
|
+
margin-bottom: var(--o-spacer-3,48rpx);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.o-typography--h2 {
|
|
16
|
+
font: var(--o-font-headline-medium,600 56rpx / 72rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial));
|
|
17
|
+
margin-top: var(--o-spacer-4,64rpx);
|
|
18
|
+
margin-bottom: var(--o-spacer-3,48rpx);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.o-typography--h3 {
|
|
22
|
+
font: var(--o-font-headline-small,600 48rpx / 64rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial));
|
|
23
|
+
margin-top: var(--o-spacer-4,64rpx);
|
|
24
|
+
margin-bottom: var(--o-spacer-2,32rpx);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.o-typography--h4 {
|
|
28
|
+
font: var(--o-font-title-large,600 36rpx / 52rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial));
|
|
29
|
+
margin-top: var(--o-spacer-3,48rpx);
|
|
30
|
+
margin-bottom: var(--o-spacer-2,32rpx);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.o-typography--h5 {
|
|
34
|
+
font: var(--o-font-title-medium,600 32rpx / 48rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial));
|
|
35
|
+
margin-top: var(--o-spacer-3,48rpx);
|
|
36
|
+
margin-bottom: var(--o-spacer-2,32rpx);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.o-typography--h6 {
|
|
40
|
+
font: var(--o-font-title-small,600 28rpx / 44rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial));
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.o-typography strong,
|
|
44
|
+
.o-typography--strong {
|
|
45
|
+
font-weight: 600;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.o-typography mark,
|
|
49
|
+
.o-typography--mark {
|
|
50
|
+
background-color: #fcdf47;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.o-typography code,
|
|
54
|
+
.o-typography--code {
|
|
55
|
+
border-radius: var(--o-radius-default,12rpx);
|
|
56
|
+
border: 1px solid var(--o-component-border,var(--o-gray-color-4,#dddddd));
|
|
57
|
+
margin: 0 var(--o-spacer,16rpx);
|
|
58
|
+
background-color: var(--o-bg-color-secondarycontainer,var(--o-gray-color-1,#eeeeee));
|
|
59
|
+
padding: 0 var(--o-spacer,16rpx);
|
|
60
|
+
transition: background-color .2s;
|
|
61
|
+
white-space: nowrap;
|
|
62
|
+
font: var(--o-font-body-small,24rpx / 40rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial));
|
|
63
|
+
font-family: Source Code Pro,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Hiragino Sans GB,Microsoft YaHei UI,Microsoft YaHei;
|
|
64
|
+
display: inline-block;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.o-typography kbd,
|
|
68
|
+
.o-typography--keyboard {
|
|
69
|
+
border-radius: var(--o-radius-default,12rpx);
|
|
70
|
+
border: 1px solid var(--o-component-border,var(--o-gray-color-4,#dddddd));
|
|
71
|
+
margin: 0 calc(var(--o-spacer,16rpx)/ 2);
|
|
72
|
+
background-color: var(--o-bg-color-secondarycontainer,var(--o-gray-color-1,#eeeeee));
|
|
73
|
+
padding: 0 var(--o-spacer,16rpx);
|
|
74
|
+
box-shadow: 0 1px 0 0 var(--o-component-border,var(--o-gray-color-4,#dddddd));
|
|
75
|
+
font: var(--o-font-body-small,24rpx / 40rpx var(--o-font-family,Roboto,PingFang SC,Microsoft YaHei,Arial));
|
|
76
|
+
font-family: Source Code Pro,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Hiragino Sans GB,Microsoft YaHei UI,Microsoft YaHei;
|
|
77
|
+
display: inline-block;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.o-typography--disabled {
|
|
81
|
+
color: var(--o-text-color-disabled,var(--o-font-gray-4,rgba(0,0,0,.26)));
|
|
82
|
+
cursor: not-allowed;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.o-typography--success {
|
|
86
|
+
color: var(--o-success-color,var(--o-success-color-5,#028702));
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.o-typography--warning {
|
|
90
|
+
color: var(--o-warning-color,var(--o-warning-color-5,#e37318));
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.o-typography--error {
|
|
94
|
+
color: var(--o-error-color,var(--o-error-color-6,#cd3c14));
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.o-typography--secondary {
|
|
98
|
+
color: var(--o-text-color-secondary,var(--o-font-gray-2,#444748));
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.o-typography .o-icon-copy,
|
|
102
|
+
.o-typography-ellipsis-symbol {
|
|
103
|
+
color: var(--o-brand-color,var(--o-primary-color-7,#f16e00));
|
|
104
|
+
cursor: pointer;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.o-typography .o-icon-checked {
|
|
108
|
+
color: var(--o-success-color,var(--o-success-color-5,#028702));
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.o-typography i,
|
|
112
|
+
.o-typography--italic {
|
|
113
|
+
font-style: italic;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.o-typography u,
|
|
117
|
+
.o-typography--underline {
|
|
118
|
+
text-decoration: underline;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.o-typography del,
|
|
122
|
+
.o-typography--delete {
|
|
123
|
+
text-decoration: line-through;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.o-typography__ellipsis-wrapper {
|
|
127
|
+
display: flex;
|
|
128
|
+
align-items: flex-end;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.o-typography__ellipsis-content {
|
|
132
|
+
overflow: hidden;
|
|
133
|
+
text-overflow: ellipsis;
|
|
134
|
+
white-space: normal;
|
|
135
|
+
display: -webkit-box;
|
|
136
|
+
-webkit-box-orient: vertical;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.o-typography-ellipsis-symbol {
|
|
140
|
+
text-decoration: none;
|
|
141
|
+
white-space: nowrap;
|
|
142
|
+
flex: 1;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.o-typography__copy {
|
|
146
|
+
display: inline-flex;
|
|
147
|
+
align-items: center;
|
|
148
|
+
margin-left: var(--o-spacer,16rpx);
|
|
149
|
+
flex-shrink: 0;
|
|
150
|
+
}
|
|
151
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__rest}from"../common/tslib";import{getInstance}from"../common/utils";function Toast(t){var o;const{context:s,selector:e="#o-toast"}=t,n=__rest(t,["context","selector"]),a=getInstance(s,e);a&&a.show(Object.assign(Object.assign({},n),{duration:null!==(o=n.duration)&&void 0!==o?o:2e3}))}function showToast(t={}){Toast(t)}function hideToast(t={}){const{context:o,selector:s="#o-toast"}=t,e=getInstance(o,s);e&&e.hide()}export{Toast as default,showToast,hideToast};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const props={direction:{type:String,value:"row"},duration:{type:Number,value:2e3},icon:{type:null},message:{type:String},overlayProps:{type:Object},placement:{type:String,value:"middle"},preventScrollThrough:{type:Boolean,value:!1},showOverlay:{type:Boolean,value:!1},theme:{type:String},usingCustomNavbar:{type:Boolean,value:!1}};export default props;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__decorate}from"../common/tslib";import{SuperComponent,wxComponent}from"../common/src/index";import config from"../common/config";import props from"./props";import transition from"../common/mixins/transition";import{calcIcon}from"../common/utils";import useCustomNavbar from"../common/mixins/using-custom-navbar";const{prefix:prefix}=config,name=`${prefix}-toast`;let Toast=class extends SuperComponent{constructor(){super(...arguments),this.externalClasses=[`${prefix}-class`],this.options={multipleSlots:!0},this.behaviors=[transition(),useCustomNavbar],this.hideTimer=null,this.data={prefix:prefix,classPrefix:name,typeMapIcon:""},this.properties=props,this.lifetimes={detached(){this.destroyed()}},this.pageLifetimes={hide(){this.hide()}},this.methods={show(e){this.hideTimer&&clearTimeout(this.hideTimer);const i={loading:"loading",success:"check-circle",warning:"error-circle",error:"close-circle"}[null==e?void 0:e.theme],t={direction:props.direction.value,duration:props.duration.value,icon:props.icon.value,message:props.message.value,placement:props.placement.value,preventScrollThrough:props.preventScrollThrough.value,theme:props.theme.value,close:null},o=Object.assign(Object.assign(Object.assign({},t),e),{visible:!0,isLoading:"loading"===(null==e?void 0:e.theme),_icon:calcIcon(null!=i?i:e.icon)}),{duration:s}=o;this.setData(o),s>0&&(this.hideTimer=setTimeout(()=>{this.hide()},s))},hide(){var e,i;this.data.visible&&(this.setData({visible:!1}),null===(i=null===(e=this.data)||void 0===e?void 0:e.close)||void 0===i||i.call(e),this.triggerEvent("close"))},destroyed(){this.hideTimer&&(clearTimeout(this.hideTimer),this.hideTimer=null),this.triggerEvent("destory")},loop(){}}}};Toast=__decorate([wxComponent()],Toast);export default Toast;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"component":true,"styleIsolation":"apply-shared","usingComponents":{"o-icon":"../icon/icon","o-loading":"../loading/loading","o-overlay":"../overlay/overlay"}}
|