sard 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +153 -0
- package/all-components.d.ts +3 -0
- package/all-components.js +290 -0
- package/components/accordion/accordion-item.d.ts +15 -0
- package/components/accordion/accordion-item.js +70 -0
- package/components/accordion/accordion.d.ts +19 -0
- package/components/accordion/accordion.js +61 -0
- package/components/accordion/common.d.ts +38 -0
- package/components/accordion/common.js +5 -0
- package/components/accordion/index.css +1 -0
- package/components/accordion/index.d.ts +7 -0
- package/components/accordion/index.js +9 -0
- package/components/action-sheet/action-sheet-item.d.ts +18 -0
- package/components/action-sheet/action-sheet-item.js +77 -0
- package/components/action-sheet/action-sheet.d.ts +49 -0
- package/components/action-sheet/action-sheet.js +161 -0
- package/components/action-sheet/common.d.ts +56 -0
- package/components/action-sheet/common.js +4 -0
- package/components/action-sheet/context.d.ts +16 -0
- package/components/action-sheet/context.js +51 -0
- package/components/action-sheet/imperative.d.ts +18 -0
- package/components/action-sheet/imperative.js +20 -0
- package/components/action-sheet/index.css +1 -0
- package/components/action-sheet/index.d.ts +9 -0
- package/components/action-sheet/index.js +10 -0
- package/components/alert/alert.d.ts +22 -0
- package/components/alert/alert.js +79 -0
- package/components/alert/common.d.ts +17 -0
- package/components/alert/common.js +4 -0
- package/components/alert/index.css +1 -0
- package/components/alert/index.d.ts +5 -0
- package/components/alert/index.js +7 -0
- package/components/avatar/avatar-group.d.ts +21 -0
- package/components/avatar/avatar-group.js +52 -0
- package/components/avatar/avatar.d.ts +23 -0
- package/components/avatar/avatar.js +92 -0
- package/components/avatar/common.d.ts +44 -0
- package/components/avatar/common.js +9 -0
- package/components/avatar/index.css +1 -0
- package/components/avatar/index.d.ts +7 -0
- package/components/avatar/index.js +9 -0
- package/components/back-top/back-top.d.ts +20 -0
- package/components/back-top/back-top.js +57 -0
- package/components/back-top/common.d.ts +14 -0
- package/components/back-top/common.js +7 -0
- package/components/back-top/index.css +1 -0
- package/components/back-top/index.d.ts +7 -0
- package/components/back-top/index.js +9 -0
- package/components/back-top/useElementBackTop.d.ts +5 -0
- package/components/back-top/useElementBackTop.js +19 -0
- package/components/back-top/usePageBackTop.d.ts +4 -0
- package/components/back-top/usePageBackTop.js +22 -0
- package/components/badge/badge.d.ts +19 -0
- package/components/badge/badge.js +78 -0
- package/components/badge/common.d.ts +15 -0
- package/components/badge/common.js +7 -0
- package/components/badge/index.css +1 -0
- package/components/badge/index.d.ts +5 -0
- package/components/badge/index.js +7 -0
- package/components/barcode/barcode.d.ts +24 -0
- package/components/barcode/barcode.js +228 -0
- package/components/barcode/common.d.ts +26 -0
- package/components/barcode/common.js +20 -0
- package/components/barcode/index.css +1 -0
- package/components/barcode/index.d.ts +5 -0
- package/components/barcode/index.js +7 -0
- package/components/button/button.d.ts +29 -0
- package/components/button/button.js +119 -0
- package/components/button/common.d.ts +24 -0
- package/components/button/common.js +9 -0
- package/components/button/index.css +1 -0
- package/components/button/index.d.ts +5 -0
- package/components/button/index.js +7 -0
- package/components/calendar/calendar-month.d.ts +8 -0
- package/components/calendar/calendar-month.js +177 -0
- package/components/calendar/calendar.d.ts +27 -0
- package/components/calendar/calendar.js +338 -0
- package/components/calendar/common.d.ts +64 -0
- package/components/calendar/common.js +30 -0
- package/components/calendar/index.css +1 -0
- package/components/calendar/index.d.ts +5 -0
- package/components/calendar/index.js +7 -0
- package/components/calendar-input/calendar-input.d.ts +71 -0
- package/components/calendar-input/calendar-input.js +229 -0
- package/components/calendar-input/common.d.ts +11 -0
- package/components/calendar-input/common.js +11 -0
- package/components/calendar-input/index.d.ts +5 -0
- package/components/calendar-input/index.js +7 -0
- package/components/calendar-popout/calendar-popout.d.ts +61 -0
- package/components/calendar-popout/calendar-popout.js +158 -0
- package/components/calendar-popout/common.d.ts +20 -0
- package/components/calendar-popout/common.js +10 -0
- package/components/calendar-popout/index.d.ts +5 -0
- package/components/calendar-popout/index.js +7 -0
- package/components/card/card.d.ts +17 -0
- package/components/card/card.js +104 -0
- package/components/card/common.d.ts +26 -0
- package/components/card/common.js +4 -0
- package/components/card/index.css +1 -0
- package/components/card/index.d.ts +5 -0
- package/components/card/index.js +7 -0
- package/components/cascader/cascader.d.ts +32 -0
- package/components/cascader/cascader.js +220 -0
- package/components/cascader/common.d.ts +62 -0
- package/components/cascader/common.js +30 -0
- package/components/cascader/index.css +1 -0
- package/components/cascader/index.d.ts +5 -0
- package/components/cascader/index.js +7 -0
- package/components/cascader/useCascaderTabs.d.ts +12 -0
- package/components/cascader/useCascaderTabs.js +43 -0
- package/components/cascader/useCascaderTree.d.ts +66 -0
- package/components/cascader/useCascaderTree.js +157 -0
- package/components/cascader-input/cascader-input.d.ts +69 -0
- package/components/cascader-input/cascader-input.js +245 -0
- package/components/cascader-input/common.d.ts +11 -0
- package/components/cascader-input/common.js +8 -0
- package/components/cascader-input/index.d.ts +5 -0
- package/components/cascader-input/index.js +7 -0
- package/components/cascader-popout/cascader-popout.d.ts +59 -0
- package/components/cascader-popout/cascader-popout.js +140 -0
- package/components/cascader-popout/common.d.ts +21 -0
- package/components/cascader-popout/common.js +7 -0
- package/components/cascader-popout/index.d.ts +5 -0
- package/components/cascader-popout/index.js +7 -0
- package/components/check-icon/check-icon.d.ts +7 -0
- package/components/check-icon/check-icon.js +41 -0
- package/components/check-icon/common.d.ts +5 -0
- package/components/check-icon/common.js +0 -0
- package/components/check-icon/index.css +1 -0
- package/components/checkbox/checkbox-group.d.ts +30 -0
- package/components/checkbox/checkbox-group.js +104 -0
- package/components/checkbox/checkbox.d.ts +30 -0
- package/components/checkbox/checkbox.js +146 -0
- package/components/checkbox/common.d.ts +65 -0
- package/components/checkbox/common.js +9 -0
- package/components/checkbox/index.css +1 -0
- package/components/checkbox/index.d.ts +7 -0
- package/components/checkbox/index.js +9 -0
- package/components/checkbox-input/checkbox-input.d.ts +58 -0
- package/components/checkbox-input/checkbox-input.js +195 -0
- package/components/checkbox-input/common.d.ts +372 -0
- package/components/checkbox-input/common.js +5 -0
- package/components/checkbox-input/index.d.ts +5 -0
- package/components/checkbox-input/index.js +7 -0
- package/components/checkbox-popout/checkbox-popout.d.ts +58 -0
- package/components/checkbox-popout/checkbox-popout.js +246 -0
- package/components/checkbox-popout/common.d.ts +22 -0
- package/components/checkbox-popout/common.js +8 -0
- package/components/checkbox-popout/index.css +1 -0
- package/components/checkbox-popout/index.d.ts +5 -0
- package/components/checkbox-popout/index.js +7 -0
- package/components/collapse/collapse.d.ts +11 -0
- package/components/collapse/collapse.js +95 -0
- package/components/collapse/common.d.ts +11 -0
- package/components/collapse/common.js +0 -0
- package/components/collapse/index.css +1 -0
- package/components/collapse/index.d.ts +5 -0
- package/components/collapse/index.js +7 -0
- package/components/color-picker/color-picker.d.ts +32 -0
- package/components/color-picker/color-picker.js +368 -0
- package/components/color-picker/common.d.ts +24 -0
- package/components/color-picker/common.js +12 -0
- package/components/color-picker/index.css +1 -0
- package/components/color-picker/index.d.ts +6 -0
- package/components/color-picker/index.js +7 -0
- package/components/color-picker-input/color-picker-input.d.ts +59 -0
- package/components/color-picker-input/color-picker-input.js +171 -0
- package/components/color-picker-input/common.d.ts +12 -0
- package/components/color-picker-input/common.js +5 -0
- package/components/color-picker-input/index.css +1 -0
- package/components/color-picker-input/index.d.ts +5 -0
- package/components/color-picker-input/index.js +7 -0
- package/components/color-picker-popout/color-picker-popout.d.ts +53 -0
- package/components/color-picker-popout/color-picker-popout.js +117 -0
- package/components/color-picker-popout/common.d.ts +19 -0
- package/components/color-picker-popout/common.js +9 -0
- package/components/color-picker-popout/index.css +1 -0
- package/components/color-picker-popout/index.d.ts +5 -0
- package/components/color-picker-popout/index.js +7 -0
- package/components/compact/common.d.ts +22 -0
- package/components/compact/common.js +5 -0
- package/components/compact/compact.d.ts +14 -0
- package/components/compact/compact.js +50 -0
- package/components/compact/index.css +1 -0
- package/components/compact/index.d.ts +5 -0
- package/components/compact/index.js +7 -0
- package/components/config/index.d.ts +10 -0
- package/components/config/index.js +2 -0
- package/components/config/windowInfo.d.ts +16 -0
- package/components/config/windowInfo.js +20 -0
- package/components/cool-icon/common.d.ts +17 -0
- package/components/cool-icon/common.js +4 -0
- package/components/cool-icon/cool-icon.d.ts +21 -0
- package/components/cool-icon/cool-icon.js +71 -0
- package/components/cool-icon/index.css +1 -0
- package/components/cool-icon/index.d.ts +5 -0
- package/components/cool-icon/index.js +7 -0
- package/components/count-down/common.d.ts +23 -0
- package/components/count-down/common.js +8 -0
- package/components/count-down/count-down.d.ts +22 -0
- package/components/count-down/count-down.js +51 -0
- package/components/count-down/index.css +0 -0
- package/components/count-down/index.d.ts +6 -0
- package/components/count-down/index.js +8 -0
- package/components/count-down/useCountDown.d.ts +22 -0
- package/components/count-down/useCountDown.js +101 -0
- package/components/count-to/common.d.ts +9 -0
- package/components/count-to/common.js +9 -0
- package/components/count-to/count-to.d.ts +10 -0
- package/components/count-to/count-to.js +59 -0
- package/components/count-to/index.d.ts +5 -0
- package/components/count-to/index.js +7 -0
- package/components/crop-image/common.d.ts +28 -0
- package/components/crop-image/common.js +8 -0
- package/components/crop-image/crop-image.d.ts +50 -0
- package/components/crop-image/crop-image.js +537 -0
- package/components/crop-image/imperative.d.ts +10 -0
- package/components/crop-image/imperative.js +20 -0
- package/components/crop-image/index.css +1 -0
- package/components/crop-image/index.d.ts +6 -0
- package/components/crop-image/index.js +8 -0
- package/components/date-strip/common.d.ts +28 -0
- package/components/date-strip/common.js +21 -0
- package/components/date-strip/date-strip.d.ts +28 -0
- package/components/date-strip/date-strip.js +272 -0
- package/components/date-strip/index.css +1 -0
- package/components/date-strip/index.d.ts +6 -0
- package/components/date-strip/index.js +7 -0
- package/components/datetime-picker/common.d.ts +49 -0
- package/components/datetime-picker/common.js +234 -0
- package/components/datetime-picker/datetime-picker.d.ts +26 -0
- package/components/datetime-picker/datetime-picker.js +182 -0
- package/components/datetime-picker/index.d.ts +5 -0
- package/components/datetime-picker/index.js +7 -0
- package/components/datetime-picker-input/common.d.ts +21 -0
- package/components/datetime-picker-input/common.js +18 -0
- package/components/datetime-picker-input/datetime-picker-input.d.ts +62 -0
- package/components/datetime-picker-input/datetime-picker-input.js +185 -0
- package/components/datetime-picker-input/index.d.ts +5 -0
- package/components/datetime-picker-input/index.js +7 -0
- package/components/datetime-picker-popout/common.d.ts +17 -0
- package/components/datetime-picker-popout/common.js +8 -0
- package/components/datetime-picker-popout/datetime-picker-popout.d.ts +53 -0
- package/components/datetime-picker-popout/datetime-picker-popout.js +138 -0
- package/components/datetime-picker-popout/index.d.ts +5 -0
- package/components/datetime-picker-popout/index.js +7 -0
- package/components/datetime-range-picker/common.d.ts +15 -0
- package/components/datetime-range-picker/common.js +4 -0
- package/components/datetime-range-picker/datetime-range-picker.d.ts +27 -0
- package/components/datetime-range-picker/datetime-range-picker.js +116 -0
- package/components/datetime-range-picker/index.css +1 -0
- package/components/datetime-range-picker/index.d.ts +5 -0
- package/components/datetime-range-picker/index.js +7 -0
- package/components/datetime-range-picker-input/common.d.ts +11 -0
- package/components/datetime-range-picker-input/common.js +7 -0
- package/components/datetime-range-picker-input/datetime-range-picker-input.d.ts +63 -0
- package/components/datetime-range-picker-input/datetime-range-picker-input.js +199 -0
- package/components/datetime-range-picker-input/index.d.ts +5 -0
- package/components/datetime-range-picker-input/index.js +7 -0
- package/components/datetime-range-picker-popout/common.d.ts +17 -0
- package/components/datetime-range-picker-popout/common.js +7 -0
- package/components/datetime-range-picker-popout/datetime-range-picker-popout.d.ts +54 -0
- package/components/datetime-range-picker-popout/datetime-range-picker-popout.js +129 -0
- package/components/datetime-range-picker-popout/index.d.ts +5 -0
- package/components/datetime-range-picker-popout/index.js +7 -0
- package/components/descriptions/common.d.ts +39 -0
- package/components/descriptions/common.js +12 -0
- package/components/descriptions/descriptions-item.d.ts +18 -0
- package/components/descriptions/descriptions-item.js +77 -0
- package/components/descriptions/descriptions.d.ts +17 -0
- package/components/descriptions/descriptions.js +103 -0
- package/components/descriptions/index.css +1 -0
- package/components/descriptions/index.d.ts +7 -0
- package/components/descriptions/index.js +9 -0
- package/components/dialog/common.d.ts +35 -0
- package/components/dialog/common.js +10 -0
- package/components/dialog/dialog.d.ts +55 -0
- package/components/dialog/dialog.js +274 -0
- package/components/dialog/imperative.d.ts +20 -0
- package/components/dialog/imperative.js +36 -0
- package/components/dialog/index.css +1 -0
- package/components/dialog/index.d.ts +6 -0
- package/components/dialog/index.js +8 -0
- package/components/divider/common.d.ts +15 -0
- package/components/divider/common.js +8 -0
- package/components/divider/divider.d.ts +16 -0
- package/components/divider/divider.js +52 -0
- package/components/divider/index.css +1 -0
- package/components/divider/index.d.ts +5 -0
- package/components/divider/index.js +7 -0
- package/components/dnd/common.d.ts +72 -0
- package/components/dnd/common.js +5 -0
- package/components/dnd/dnd-handle.d.ts +11 -0
- package/components/dnd/dnd-handle.js +58 -0
- package/components/dnd/dnd-item.d.ts +11 -0
- package/components/dnd/dnd-item.js +132 -0
- package/components/dnd/dnd.d.ts +40 -0
- package/components/dnd/dnd.js +86 -0
- package/components/dnd/index.css +1 -0
- package/components/dnd/index.d.ts +9 -0
- package/components/dnd/index.js +11 -0
- package/components/dropdown/common.d.ts +62 -0
- package/components/dropdown/common.js +13 -0
- package/components/dropdown/dropdown-item.d.ts +50 -0
- package/components/dropdown/dropdown-item.js +263 -0
- package/components/dropdown/dropdown.d.ts +19 -0
- package/components/dropdown/dropdown.js +91 -0
- package/components/dropdown/index.css +1 -0
- package/components/dropdown/index.d.ts +7 -0
- package/components/dropdown/index.js +9 -0
- package/components/ellipsis/common.d.ts +20 -0
- package/components/ellipsis/common.js +9 -0
- package/components/ellipsis/ellipsis.d.ts +25 -0
- package/components/ellipsis/ellipsis.js +205 -0
- package/components/ellipsis/index.css +1 -0
- package/components/ellipsis/index.d.ts +5 -0
- package/components/ellipsis/index.js +7 -0
- package/components/empty/common.d.ts +12 -0
- package/components/empty/common.js +4 -0
- package/components/empty/empty.d.ts +15 -0
- package/components/empty/empty.js +52 -0
- package/components/empty/index.css +1 -0
- package/components/empty/index.d.ts +5 -0
- package/components/empty/index.js +7 -0
- package/components/fab/common.d.ts +60 -0
- package/components/fab/common.js +13 -0
- package/components/fab/fab-item.d.ts +20 -0
- package/components/fab/fab-item.js +63 -0
- package/components/fab/fab.d.ts +44 -0
- package/components/fab/fab.js +188 -0
- package/components/fab/index.css +1 -0
- package/components/fab/index.d.ts +7 -0
- package/components/fab/index.js +9 -0
- package/components/floating-bubble/common.d.ts +23 -0
- package/components/floating-bubble/common.js +9 -0
- package/components/floating-bubble/floating-bubble.d.ts +33 -0
- package/components/floating-bubble/floating-bubble.js +74 -0
- package/components/floating-bubble/index.css +1 -0
- package/components/floating-bubble/index.d.ts +5 -0
- package/components/floating-bubble/index.js +7 -0
- package/components/floating-bubble/useFloatingBubble.d.ts +42 -0
- package/components/floating-bubble/useFloatingBubble.js +125 -0
- package/components/floating-panel/common.d.ts +18 -0
- package/components/floating-panel/common.js +9 -0
- package/components/floating-panel/floating-panel.d.ts +23 -0
- package/components/floating-panel/floating-panel.js +157 -0
- package/components/floating-panel/index.css +1 -0
- package/components/floating-panel/index.d.ts +5 -0
- package/components/floating-panel/index.js +7 -0
- package/components/form/Validator.d.ts +95 -0
- package/components/form/Validator.js +186 -0
- package/components/form/common.d.ts +114 -0
- package/components/form/common.js +28 -0
- package/components/form/form-item.d.ts +27 -0
- package/components/form/form-item.js +125 -0
- package/components/form/form.d.ts +29 -0
- package/components/form/form.js +93 -0
- package/components/form/getUrlRegexp.d.ts +2 -0
- package/components/form/getUrlRegexp.js +32 -0
- package/components/form/index.css +1 -0
- package/components/form/index.d.ts +8 -0
- package/components/form/index.js +11 -0
- package/components/form/useForm.d.ts +24 -0
- package/components/form/useForm.js +97 -0
- package/components/form/useFormItem.d.ts +21 -0
- package/components/form/useFormItem.js +179 -0
- package/components/form-plain/common.d.ts +25 -0
- package/components/form-plain/common.js +0 -0
- package/components/form-plain/form-item-plain.d.ts +27 -0
- package/components/form-plain/form-item-plain.js +94 -0
- package/components/form-plain/form-plain.d.ts +29 -0
- package/components/form-plain/form-plain.js +86 -0
- package/components/form-plain/index.d.ts +7 -0
- package/components/form-plain/index.js +9 -0
- package/components/grid/common.d.ts +33 -0
- package/components/grid/common.js +8 -0
- package/components/grid/grid-item.d.ts +15 -0
- package/components/grid/grid-item.js +64 -0
- package/components/grid/grid.d.ts +19 -0
- package/components/grid/grid.js +68 -0
- package/components/grid/index.css +1 -0
- package/components/grid/index.d.ts +7 -0
- package/components/grid/index.js +9 -0
- package/components/image/common.d.ts +48 -0
- package/components/image/common.js +31 -0
- package/components/image/image.d.ts +32 -0
- package/components/image/image.js +165 -0
- package/components/image/index.css +1 -0
- package/components/image/index.d.ts +5 -0
- package/components/image/index.js +7 -0
- package/components/index.d.ts +121 -0
- package/components/index.js +142 -0
- package/components/indexes/common.d.ts +39 -0
- package/components/indexes/common.js +5 -0
- package/components/indexes/index.css +1 -0
- package/components/indexes/index.d.ts +9 -0
- package/components/indexes/index.js +11 -0
- package/components/indexes/indexes-anchor.d.ts +11 -0
- package/components/indexes/indexes-anchor.js +34 -0
- package/components/indexes/indexes-nav.d.ts +17 -0
- package/components/indexes/indexes-nav.js +86 -0
- package/components/indexes/indexes.d.ts +19 -0
- package/components/indexes/indexes.js +66 -0
- package/components/input/common.d.ts +63 -0
- package/components/input/common.js +10 -0
- package/components/input/index.css +1 -0
- package/components/input/index.d.ts +5 -0
- package/components/input/index.js +7 -0
- package/components/input/input.d.ts +60 -0
- package/components/input/input.js +389 -0
- package/components/input/utils.d.ts +7 -0
- package/components/input/utils.js +37 -0
- package/components/keyboard/common.d.ts +28 -0
- package/components/keyboard/common.js +35 -0
- package/components/keyboard/index.css +1 -0
- package/components/keyboard/index.d.ts +5 -0
- package/components/keyboard/index.js +8 -0
- package/components/keyboard/keyboard.d.ts +23 -0
- package/components/keyboard/keyboard.js +140 -0
- package/components/keyboard-popout/common.d.ts +27 -0
- package/components/keyboard-popout/common.js +7 -0
- package/components/keyboard-popout/index.css +0 -0
- package/components/keyboard-popout/index.d.ts +5 -0
- package/components/keyboard-popout/index.js +7 -0
- package/components/keyboard-popout/keyboard-popout.d.ts +58 -0
- package/components/keyboard-popout/keyboard-popout.js +125 -0
- package/components/layout/col.d.ts +11 -0
- package/components/layout/col.js +50 -0
- package/components/layout/common.d.ts +36 -0
- package/components/layout/common.js +18 -0
- package/components/layout/index.css +1 -0
- package/components/layout/index.d.ts +6 -0
- package/components/layout/index.js +9 -0
- package/components/layout/row.d.ts +11 -0
- package/components/layout/row.js +55 -0
- package/components/list/common.d.ts +38 -0
- package/components/list/common.js +5 -0
- package/components/list/index.css +1 -0
- package/components/list/index.d.ts +7 -0
- package/components/list/index.js +9 -0
- package/components/list/list-item.d.ts +22 -0
- package/components/list/list-item.js +80 -0
- package/components/list/list.d.ts +11 -0
- package/components/list/list.js +61 -0
- package/components/load-more/common.d.ts +20 -0
- package/components/load-more/common.js +4 -0
- package/components/load-more/index.css +1 -0
- package/components/load-more/index.d.ts +6 -0
- package/components/load-more/index.js +8 -0
- package/components/load-more/load-more.d.ts +23 -0
- package/components/load-more/load-more.js +57 -0
- package/components/load-more/useLoadMore.d.ts +22 -0
- package/components/load-more/useLoadMore.js +68 -0
- package/components/loading/common.d.ts +17 -0
- package/components/loading/common.js +8 -0
- package/components/loading/index.css +1 -0
- package/components/loading/index.d.ts +5 -0
- package/components/loading/index.js +7 -0
- package/components/loading/loading.d.ts +21 -0
- package/components/loading/loading.js +98 -0
- package/components/marquee/common.d.ts +11 -0
- package/components/marquee/common.js +7 -0
- package/components/marquee/index.css +1 -0
- package/components/marquee/index.d.ts +5 -0
- package/components/marquee/index.js +7 -0
- package/components/marquee/marquee.d.ts +14 -0
- package/components/marquee/marquee.js +77 -0
- package/components/menu/common.d.ts +24 -0
- package/components/menu/common.js +7 -0
- package/components/menu/context.d.ts +23 -0
- package/components/menu/context.js +56 -0
- package/components/menu/index.css +1 -0
- package/components/menu/index.d.ts +7 -0
- package/components/menu/index.js +9 -0
- package/components/menu/menu-item.d.ts +16 -0
- package/components/menu/menu-item.js +60 -0
- package/components/menu/menu.d.ts +18 -0
- package/components/menu/menu.js +45 -0
- package/components/motion/common.d.ts +24 -0
- package/components/motion/common.js +7 -0
- package/components/motion/index.css +1 -0
- package/components/motion/index.d.ts +6 -0
- package/components/motion/index.js +8 -0
- package/components/motion/motion.d.ts +35 -0
- package/components/motion/motion.js +89 -0
- package/components/motion/useMotioning.d.ts +2 -0
- package/components/motion/useMotioning.js +26 -0
- package/components/navbar/common.d.ts +28 -0
- package/components/navbar/common.js +0 -0
- package/components/navbar/index.css +1 -0
- package/components/navbar/index.d.ts +7 -0
- package/components/navbar/index.js +9 -0
- package/components/navbar/navbar-item.d.ts +15 -0
- package/components/navbar/navbar-item.js +31 -0
- package/components/navbar/navbar.d.ts +15 -0
- package/components/navbar/navbar.js +101 -0
- package/components/navbar-pit/common.d.ts +3 -0
- package/components/navbar-pit/common.js +0 -0
- package/components/navbar-pit/index.css +1 -0
- package/components/navbar-pit/index.d.ts +5 -0
- package/components/navbar-pit/index.js +7 -0
- package/components/navbar-pit/navbar-pit.d.ts +4 -0
- package/components/navbar-pit/navbar-pit.js +20 -0
- package/components/notice-bar/common.d.ts +25 -0
- package/components/notice-bar/common.js +8 -0
- package/components/notice-bar/index.css +1 -0
- package/components/notice-bar/index.d.ts +5 -0
- package/components/notice-bar/index.js +7 -0
- package/components/notice-bar/notice-bar.d.ts +28 -0
- package/components/notice-bar/notice-bar.js +166 -0
- package/components/notify/common.d.ts +24 -0
- package/components/notify/common.js +9 -0
- package/components/notify/imperative.d.ts +18 -0
- package/components/notify/imperative.js +43 -0
- package/components/notify/index.css +1 -0
- package/components/notify/index.d.ts +6 -0
- package/components/notify/index.js +8 -0
- package/components/notify/notify.d.ts +45 -0
- package/components/notify/notify.js +133 -0
- package/components/overlay/common.d.ts +14 -0
- package/components/overlay/common.js +4 -0
- package/components/overlay/index.css +1 -0
- package/components/overlay/index.d.ts +5 -0
- package/components/overlay/index.js +7 -0
- package/components/overlay/overlay.d.ts +20 -0
- package/components/overlay/overlay.js +58 -0
- package/components/pagination/common.d.ts +28 -0
- package/components/pagination/common.js +29 -0
- package/components/pagination/index.css +1 -0
- package/components/pagination/index.d.ts +5 -0
- package/components/pagination/index.js +7 -0
- package/components/pagination/pagination.d.ts +26 -0
- package/components/pagination/pagination.js +130 -0
- package/components/password-input/common.d.ts +21 -0
- package/components/password-input/common.js +8 -0
- package/components/password-input/index.css +1 -0
- package/components/password-input/index.d.ts +5 -0
- package/components/password-input/index.js +7 -0
- package/components/password-input/password-input.d.ts +27 -0
- package/components/password-input/password-input.js +189 -0
- package/components/picker/common.d.ts +25 -0
- package/components/picker/common.js +77 -0
- package/components/picker/index.css +1 -0
- package/components/picker/index.d.ts +5 -0
- package/components/picker/index.js +7 -0
- package/components/picker/picker.d.ts +22 -0
- package/components/picker/picker.js +143 -0
- package/components/picker-input/common.d.ts +81 -0
- package/components/picker-input/common.js +5 -0
- package/components/picker-input/index.d.ts +5 -0
- package/components/picker-input/index.js +7 -0
- package/components/picker-input/picker-input.d.ts +33 -0
- package/components/picker-input/picker-input.js +168 -0
- package/components/picker-popout/common.d.ts +17 -0
- package/components/picker-popout/common.js +8 -0
- package/components/picker-popout/index.d.ts +5 -0
- package/components/picker-popout/index.js +7 -0
- package/components/picker-popout/picker-popout.d.ts +33 -0
- package/components/picker-popout/picker-popout.js +108 -0
- package/components/picker-view/common.d.ts +52 -0
- package/components/picker-view/common.js +21 -0
- package/components/picker-view/index.css +1 -0
- package/components/picker-view/index.d.ts +7 -0
- package/components/picker-view/index.js +9 -0
- package/components/picker-view/picker-view-column.d.ts +3 -0
- package/components/picker-view/picker-view-column.js +139 -0
- package/components/picker-view/picker-view.d.ts +21 -0
- package/components/picker-view/picker-view.js +69 -0
- package/components/popout/common.d.ts +52 -0
- package/components/popout/common.js +14 -0
- package/components/popout/index.css +1 -0
- package/components/popout/index.d.ts +6 -0
- package/components/popout/index.js +8 -0
- package/components/popout/popout.d.ts +61 -0
- package/components/popout/popout.js +309 -0
- package/components/popout/useFormPopout.d.ts +43 -0
- package/components/popout/useFormPopout.js +70 -0
- package/components/popout-input/common.d.ts +26 -0
- package/components/popout-input/common.js +4 -0
- package/components/popout-input/index.css +1 -0
- package/components/popout-input/index.d.ts +6 -0
- package/components/popout-input/index.js +8 -0
- package/components/popout-input/popout-input.d.ts +31 -0
- package/components/popout-input/popout-input.js +177 -0
- package/components/popout-input/usePopoutInput.d.ts +25 -0
- package/components/popout-input/usePopoutInput.js +64 -0
- package/components/popover/common.d.ts +21 -0
- package/components/popover/common.js +10 -0
- package/components/popover/index.css +1 -0
- package/components/popover/index.d.ts +7 -0
- package/components/popover/index.js +7 -0
- package/components/popover/popover.d.ts +23 -0
- package/components/popover/popover.js +120 -0
- package/components/popup/common.d.ts +48 -0
- package/components/popup/common.js +39 -0
- package/components/popup/index.css +1 -0
- package/components/popup/index.d.ts +5 -0
- package/components/popup/index.js +8 -0
- package/components/popup/popup.d.ts +48 -0
- package/components/popup/popup.js +150 -0
- package/components/preview-image/common.d.ts +28 -0
- package/components/preview-image/common.js +8 -0
- package/components/preview-image/imperative.d.ts +10 -0
- package/components/preview-image/imperative.js +20 -0
- package/components/preview-image/index.css +1 -0
- package/components/preview-image/index.d.ts +6 -0
- package/components/preview-image/index.js +8 -0
- package/components/preview-image/preview-image-item.d.ts +4 -0
- package/components/preview-image/preview-image-item.js +258 -0
- package/components/preview-image/preview-image.d.ts +40 -0
- package/components/preview-image/preview-image.js +174 -0
- package/components/progress-bar/common.d.ts +16 -0
- package/components/progress-bar/common.js +7 -0
- package/components/progress-bar/index.css +1 -0
- package/components/progress-bar/index.d.ts +5 -0
- package/components/progress-bar/index.js +7 -0
- package/components/progress-bar/progress-bar.d.ts +21 -0
- package/components/progress-bar/progress-bar.js +96 -0
- package/components/progress-circle/common.d.ts +13 -0
- package/components/progress-circle/common.js +7 -0
- package/components/progress-circle/index.css +1 -0
- package/components/progress-circle/index.d.ts +5 -0
- package/components/progress-circle/index.js +7 -0
- package/components/progress-circle/progress-circle.d.ts +18 -0
- package/components/progress-circle/progress-circle.js +101 -0
- package/components/pull-down-refresh/common.d.ts +26 -0
- package/components/pull-down-refresh/common.js +11 -0
- package/components/pull-down-refresh/index.css +1 -0
- package/components/pull-down-refresh/index.d.ts +5 -0
- package/components/pull-down-refresh/index.js +7 -0
- package/components/pull-down-refresh/pull-down-refresh.d.ts +22 -0
- package/components/pull-down-refresh/pull-down-refresh.js +162 -0
- package/components/puzzle-verify/common.d.ts +13 -0
- package/components/puzzle-verify/common.js +4 -0
- package/components/puzzle-verify/index.css +1 -0
- package/components/puzzle-verify/index.d.ts +5 -0
- package/components/puzzle-verify/index.js +7 -0
- package/components/puzzle-verify/puzzle-verify.d.ts +32 -0
- package/components/puzzle-verify/puzzle-verify.js +150 -0
- package/components/qrcode/common.d.ts +16 -0
- package/components/qrcode/common.js +11 -0
- package/components/qrcode/index.css +1 -0
- package/components/qrcode/index.d.ts +5 -0
- package/components/qrcode/index.js +7 -0
- package/components/qrcode/qrcode.d.ts +12 -0
- package/components/qrcode/qrcode.js +122 -0
- package/components/qrcode/test/utils.d.ts +7 -0
- package/components/qrcode/test/utils.js +89 -0
- package/components/radio/common.d.ts +59 -0
- package/components/radio/common.js +8 -0
- package/components/radio/index.css +1 -0
- package/components/radio/index.d.ts +7 -0
- package/components/radio/index.js +9 -0
- package/components/radio/radio-group.d.ts +28 -0
- package/components/radio/radio-group.js +101 -0
- package/components/radio/radio.d.ts +15 -0
- package/components/radio/radio.js +114 -0
- package/components/radio-input/common.d.ts +317 -0
- package/components/radio-input/common.js +5 -0
- package/components/radio-input/index.d.ts +5 -0
- package/components/radio-input/index.js +7 -0
- package/components/radio-input/radio-input.d.ts +57 -0
- package/components/radio-input/radio-input.js +191 -0
- package/components/radio-popout/common.d.ts +21 -0
- package/components/radio-popout/common.js +9 -0
- package/components/radio-popout/index.css +1 -0
- package/components/radio-popout/index.d.ts +5 -0
- package/components/radio-popout/index.js +7 -0
- package/components/radio-popout/radio-popout.d.ts +57 -0
- package/components/radio-popout/radio-popout.js +219 -0
- package/components/rate/common.d.ts +25 -0
- package/components/rate/common.js +7 -0
- package/components/rate/index.css +1 -0
- package/components/rate/index.d.ts +5 -0
- package/components/rate/index.js +7 -0
- package/components/rate/rate.d.ts +31 -0
- package/components/rate/rate.js +192 -0
- package/components/read-more/common.d.ts +20 -0
- package/components/read-more/common.js +7 -0
- package/components/read-more/index.css +1 -0
- package/components/read-more/index.d.ts +5 -0
- package/components/read-more/index.js +7 -0
- package/components/read-more/read-more.d.ts +26 -0
- package/components/read-more/read-more.js +121 -0
- package/components/result/common.d.ts +13 -0
- package/components/result/common.js +4 -0
- package/components/result/index.css +1 -0
- package/components/result/index.d.ts +5 -0
- package/components/result/index.js +7 -0
- package/components/result/result.d.ts +15 -0
- package/components/result/result.js +50 -0
- package/components/rotate-verify/common.d.ts +12 -0
- package/components/rotate-verify/common.js +4 -0
- package/components/rotate-verify/index.css +1 -0
- package/components/rotate-verify/index.d.ts +5 -0
- package/components/rotate-verify/index.js +7 -0
- package/components/rotate-verify/rotate-verify.d.ts +31 -0
- package/components/rotate-verify/rotate-verify.js +107 -0
- package/components/scroll-list/common.d.ts +15 -0
- package/components/scroll-list/common.js +4 -0
- package/components/scroll-list/index.css +1 -0
- package/components/scroll-list/index.d.ts +5 -0
- package/components/scroll-list/index.js +7 -0
- package/components/scroll-list/scroll-list.d.ts +19 -0
- package/components/scroll-list/scroll-list.js +89 -0
- package/components/scroll-spy/common.d.ts +32 -0
- package/components/scroll-spy/common.js +4 -0
- package/components/scroll-spy/index.css +1 -0
- package/components/scroll-spy/index.d.ts +7 -0
- package/components/scroll-spy/index.js +9 -0
- package/components/scroll-spy/scroll-spy-anchor.d.ts +11 -0
- package/components/scroll-spy/scroll-spy-anchor.js +28 -0
- package/components/scroll-spy/scroll-spy.d.ts +17 -0
- package/components/scroll-spy/scroll-spy.js +65 -0
- package/components/search/common.d.ts +37 -0
- package/components/search/common.js +7 -0
- package/components/search/index.css +1 -0
- package/components/search/index.d.ts +5 -0
- package/components/search/index.js +7 -0
- package/components/search/search.d.ts +44 -0
- package/components/search/search.js +213 -0
- package/components/segmented/common.d.ts +54 -0
- package/components/segmented/common.js +12 -0
- package/components/segmented/index.css +1 -0
- package/components/segmented/index.d.ts +7 -0
- package/components/segmented/index.js +9 -0
- package/components/segmented/segmented-item.d.ts +20 -0
- package/components/segmented/segmented-item.js +74 -0
- package/components/segmented/segmented.d.ts +28 -0
- package/components/segmented/segmented.js +135 -0
- package/components/select/common.d.ts +100 -0
- package/components/select/common.js +12 -0
- package/components/select/index.css +1 -0
- package/components/select/index.d.ts +9 -0
- package/components/select/index.js +11 -0
- package/components/select/select-option-group.d.ts +14 -0
- package/components/select/select-option-group.js +29 -0
- package/components/select/select-option.d.ts +20 -0
- package/components/select/select-option.js +92 -0
- package/components/select/select.d.ts +33 -0
- package/components/select/select.js +271 -0
- package/components/select/useSelect.d.ts +8 -0
- package/components/select/useSelect.js +45 -0
- package/components/select-input/common.d.ts +14 -0
- package/components/select-input/common.js +8 -0
- package/components/select-input/index.d.ts +5 -0
- package/components/select-input/index.js +7 -0
- package/components/select-input/select-input.d.ts +68 -0
- package/components/select-input/select-input.js +260 -0
- package/components/select-popout/common.d.ts +17 -0
- package/components/select-popout/common.js +9 -0
- package/components/select-popout/index.d.ts +5 -0
- package/components/select-popout/index.js +7 -0
- package/components/select-popout/select-popout.d.ts +58 -0
- package/components/select-popout/select-popout.js +153 -0
- package/components/share-sheet/common.d.ts +62 -0
- package/components/share-sheet/common.js +5 -0
- package/components/share-sheet/context.d.ts +14 -0
- package/components/share-sheet/context.js +42 -0
- package/components/share-sheet/index.css +1 -0
- package/components/share-sheet/index.d.ts +12 -0
- package/components/share-sheet/index.js +13 -0
- package/components/share-sheet/share-sheet-icon.d.ts +11 -0
- package/components/share-sheet/share-sheet-icon.js +44 -0
- package/components/share-sheet/share-sheet-item.d.ts +17 -0
- package/components/share-sheet/share-sheet-item.js +59 -0
- package/components/share-sheet/share-sheet-row.d.ts +11 -0
- package/components/share-sheet/share-sheet-row.js +16 -0
- package/components/share-sheet/share-sheet.d.ts +48 -0
- package/components/share-sheet/share-sheet.js +139 -0
- package/components/sidebar/common.d.ts +43 -0
- package/components/sidebar/common.js +4 -0
- package/components/sidebar/index.css +1 -0
- package/components/sidebar/index.d.ts +7 -0
- package/components/sidebar/index.js +9 -0
- package/components/sidebar/sidebar-item.d.ts +15 -0
- package/components/sidebar/sidebar-item.js +84 -0
- package/components/sidebar/sidebar.d.ts +17 -0
- package/components/sidebar/sidebar.js +80 -0
- package/components/signature/common.d.ts +27 -0
- package/components/signature/common.js +10 -0
- package/components/signature/index.css +1 -0
- package/components/signature/index.d.ts +5 -0
- package/components/signature/index.js +7 -0
- package/components/signature/signature.d.ts +32 -0
- package/components/signature/signature.js +249 -0
- package/components/skeleton/common.d.ts +29 -0
- package/components/skeleton/common.js +7 -0
- package/components/skeleton/index.css +1 -0
- package/components/skeleton/index.d.ts +13 -0
- package/components/skeleton/index.js +15 -0
- package/components/skeleton/skeleton-avatar.d.ts +4 -0
- package/components/skeleton/skeleton-avatar.js +59 -0
- package/components/skeleton/skeleton-block.d.ts +4 -0
- package/components/skeleton/skeleton-block.js +50 -0
- package/components/skeleton/skeleton-paragraph.d.ts +4 -0
- package/components/skeleton/skeleton-paragraph.js +53 -0
- package/components/skeleton/skeleton-title.d.ts +4 -0
- package/components/skeleton/skeleton-title.js +46 -0
- package/components/skeleton/skeleton.d.ts +20 -0
- package/components/skeleton/skeleton.js +77 -0
- package/components/slide-verify/common.d.ts +30 -0
- package/components/slide-verify/common.js +4 -0
- package/components/slide-verify/index.css +1 -0
- package/components/slide-verify/index.d.ts +5 -0
- package/components/slide-verify/index.js +7 -0
- package/components/slide-verify/slide-verify.d.ts +30 -0
- package/components/slide-verify/slide-verify.js +202 -0
- package/components/slider/common.d.ts +39 -0
- package/components/slider/common.js +9 -0
- package/components/slider/index.css +1 -0
- package/components/slider/index.d.ts +5 -0
- package/components/slider/index.js +7 -0
- package/components/slider/slider.d.ts +44 -0
- package/components/slider/slider.js +336 -0
- package/components/space/common.d.ts +18 -0
- package/components/space/common.js +23 -0
- package/components/space/index.css +1 -0
- package/components/space/index.d.ts +5 -0
- package/components/space/index.js +8 -0
- package/components/space/space.d.ts +17 -0
- package/components/space/space.js +60 -0
- package/components/status-bar/common.d.ts +11 -0
- package/components/status-bar/common.js +4 -0
- package/components/status-bar/index.css +1 -0
- package/components/status-bar/index.d.ts +5 -0
- package/components/status-bar/index.js +7 -0
- package/components/status-bar/status-bar.d.ts +13 -0
- package/components/status-bar/status-bar.js +32 -0
- package/components/stepper/common.d.ts +26 -0
- package/components/stepper/common.js +15 -0
- package/components/stepper/index.css +1 -0
- package/components/stepper/index.d.ts +5 -0
- package/components/stepper/index.js +7 -0
- package/components/stepper/stepper.d.ts +31 -0
- package/components/stepper/stepper.js +264 -0
- package/components/steps/common.d.ts +46 -0
- package/components/steps/common.js +10 -0
- package/components/steps/index.css +1 -0
- package/components/steps/index.d.ts +7 -0
- package/components/steps/index.js +9 -0
- package/components/steps/step.d.ts +11 -0
- package/components/steps/step.js +62 -0
- package/components/steps/steps.d.ts +18 -0
- package/components/steps/steps.js +67 -0
- package/components/sticky/common.d.ts +25 -0
- package/components/sticky/common.js +4 -0
- package/components/sticky/index.css +1 -0
- package/components/sticky/index.d.ts +7 -0
- package/components/sticky/index.js +9 -0
- package/components/sticky/sticky-box.d.ts +11 -0
- package/components/sticky/sticky-box.js +21 -0
- package/components/sticky/sticky.d.ts +11 -0
- package/components/sticky/sticky.js +128 -0
- package/components/style/base.css +0 -0
- package/components/style/bem.css +0 -0
- package/components/style/config.css +0 -0
- package/components/style/core-color.css +0 -0
- package/components/style/functions.css +0 -0
- package/components/style/index.css +1 -0
- package/components/style/utils/border.css +0 -0
- package/components/style/utils/button.css +0 -0
- package/components/style/utils/dir.css +0 -0
- package/components/style/utils/disabled.css +0 -0
- package/components/style/utils/ellipsis.css +0 -0
- package/components/style/utils/notify.css +0 -0
- package/components/style/utils/scroll-shadow.css +0 -0
- package/components/style/utils/theme-dark.css +0 -0
- package/components/style/utils/touch.css +0 -0
- package/components/style/utils.css +0 -0
- package/components/swipe-action/common.d.ts +39 -0
- package/components/swipe-action/common.js +5 -0
- package/components/swipe-action/index.css +1 -0
- package/components/swipe-action/index.d.ts +7 -0
- package/components/swipe-action/index.js +9 -0
- package/components/swipe-action/swipe-action-group.d.ts +13 -0
- package/components/swipe-action/swipe-action-group.js +40 -0
- package/components/swipe-action/swipe-action.d.ts +15 -0
- package/components/swipe-action/swipe-action.js +176 -0
- package/components/swiper/common.d.ts +101 -0
- package/components/swiper/common.js +68 -0
- package/components/swiper/index.css +1 -0
- package/components/swiper/index.d.ts +8 -0
- package/components/swiper/index.js +10 -0
- package/components/swiper/swiper-item.d.ts +3 -0
- package/components/swiper/swiper-item.js +35 -0
- package/components/swiper/swiper.d.ts +57 -0
- package/components/swiper/swiper.js +44 -0
- package/components/swiper/useSwiper.d.ts +29 -0
- package/components/swiper/useSwiper.js +188 -0
- package/components/swiper/useSwiperAnimation.d.ts +5 -0
- package/components/swiper/useSwiperAnimation.js +34 -0
- package/components/swiper/useSwiperAutoHeight.d.ts +3 -0
- package/components/swiper/useSwiperAutoHeight.js +26 -0
- package/components/swiper/useSwiperAutoPlay.d.ts +7 -0
- package/components/swiper/useSwiperAutoPlay.js +26 -0
- package/components/swiper/useSwiperData.d.ts +49 -0
- package/components/swiper/useSwiperData.js +229 -0
- package/components/swiper/useSwiperNested.d.ts +5 -0
- package/components/swiper/useSwiperNested.js +10 -0
- package/components/switch/common.d.ts +27 -0
- package/components/switch/common.js +8 -0
- package/components/switch/index.css +1 -0
- package/components/switch/index.d.ts +5 -0
- package/components/switch/index.js +7 -0
- package/components/switch/switch.d.ts +35 -0
- package/components/switch/switch.js +138 -0
- package/components/tabbar/common.d.ts +38 -0
- package/components/tabbar/common.js +5 -0
- package/components/tabbar/index.css +1 -0
- package/components/tabbar/index.d.ts +7 -0
- package/components/tabbar/index.js +9 -0
- package/components/tabbar/tabbar-item.d.ts +15 -0
- package/components/tabbar/tabbar-item.js +48 -0
- package/components/tabbar/tabbar.d.ts +24 -0
- package/components/tabbar/tabbar.js +68 -0
- package/components/tabbar-pit/common.d.ts +10 -0
- package/components/tabbar-pit/common.js +0 -0
- package/components/tabbar-pit/index.css +1 -0
- package/components/tabbar-pit/index.d.ts +5 -0
- package/components/tabbar-pit/index.js +7 -0
- package/components/tabbar-pit/tabbar-pit.d.ts +11 -0
- package/components/tabbar-pit/tabbar-pit.js +24 -0
- package/components/table/common.d.ts +113 -0
- package/components/table/common.js +9 -0
- package/components/table/index.css +1 -0
- package/components/table/index.d.ts +5 -0
- package/components/table/index.js +7 -0
- package/components/table/table-col.d.ts +4 -0
- package/components/table/table-col.js +42 -0
- package/components/table/table.d.ts +19 -0
- package/components/table/table.js +404 -0
- package/components/table/useColumn.d.ts +17 -0
- package/components/table/useColumn.js +43 -0
- package/components/tabs/common.d.ts +39 -0
- package/components/tabs/common.js +5 -0
- package/components/tabs/index.css +1 -0
- package/components/tabs/index.d.ts +7 -0
- package/components/tabs/index.js +9 -0
- package/components/tabs/tab.d.ts +15 -0
- package/components/tabs/tab.js +63 -0
- package/components/tabs/tabs.d.ts +22 -0
- package/components/tabs/tabs.js +137 -0
- package/components/tag/common.d.ts +17 -0
- package/components/tag/common.js +8 -0
- package/components/tag/index.css +1 -0
- package/components/tag/index.d.ts +5 -0
- package/components/tag/index.js +7 -0
- package/components/tag/tag.d.ts +24 -0
- package/components/tag/tag.js +61 -0
- package/components/text/common.d.ts +16 -0
- package/components/text/common.js +9 -0
- package/components/text/index.css +1 -0
- package/components/text/index.d.ts +5 -0
- package/components/text/index.js +7 -0
- package/components/text/text.d.ts +17 -0
- package/components/text/text.js +58 -0
- package/components/timeline/common.d.ts +15 -0
- package/components/timeline/common.js +0 -0
- package/components/timeline/index.css +1 -0
- package/components/timeline/index.d.ts +7 -0
- package/components/timeline/index.js +9 -0
- package/components/timeline/timeline-item.d.ts +11 -0
- package/components/timeline/timeline-item.js +49 -0
- package/components/timeline/timeline.d.ts +11 -0
- package/components/timeline/timeline.js +15 -0
- package/components/toast/common.d.ts +24 -0
- package/components/toast/common.js +10 -0
- package/components/toast/imperative.d.ts +18 -0
- package/components/toast/imperative.js +43 -0
- package/components/toast/index.css +1 -0
- package/components/toast/index.d.ts +6 -0
- package/components/toast/index.js +8 -0
- package/components/toast/toast.d.ts +42 -0
- package/components/toast/toast.js +122 -0
- package/components/tree/common.d.ts +134 -0
- package/components/tree/common.js +16 -0
- package/components/tree/index.css +1 -0
- package/components/tree/index.d.ts +9 -0
- package/components/tree/index.js +11 -0
- package/components/tree/tree-branch.d.ts +4 -0
- package/components/tree/tree-branch.js +23 -0
- package/components/tree/tree-node.d.ts +4 -0
- package/components/tree/tree-node.js +360 -0
- package/components/tree/tree.d.ts +48 -0
- package/components/tree/tree.js +698 -0
- package/components/upload/common.d.ts +73 -0
- package/components/upload/common.js +11 -0
- package/components/upload/index.css +1 -0
- package/components/upload/index.d.ts +7 -0
- package/components/upload/index.js +9 -0
- package/components/upload/upload-preview.d.ts +24 -0
- package/components/upload/upload-preview.js +154 -0
- package/components/upload/upload.d.ts +37 -0
- package/components/upload/upload.js +292 -0
- package/components/waterfall/common.d.ts +62 -0
- package/components/waterfall/common.js +9 -0
- package/components/waterfall/index.css +1 -0
- package/components/waterfall/index.d.ts +9 -0
- package/components/waterfall/index.js +11 -0
- package/components/waterfall/test/SimulatedImage.d.ts +32 -0
- package/components/waterfall/test/SimulatedImage.js +50 -0
- package/components/waterfall/waterfall-item.d.ts +11 -0
- package/components/waterfall/waterfall-item.js +75 -0
- package/components/waterfall/waterfall-load.d.ts +15 -0
- package/components/waterfall/waterfall-load.js +69 -0
- package/components/waterfall/waterfall.d.ts +21 -0
- package/components/waterfall/waterfall.js +129 -0
- package/components/watermark/common.d.ts +29 -0
- package/components/watermark/common.js +18 -0
- package/components/watermark/index.css +1 -0
- package/components/watermark/index.d.ts +5 -0
- package/components/watermark/index.js +7 -0
- package/components/watermark/watermark.d.ts +21 -0
- package/components/watermark/watermark.js +207 -0
- package/global.d.js +0 -0
- package/global.d.ts +167 -0
- package/index.css +1 -0
- package/index.d.ts +9 -0
- package/index.js +222 -0
- package/locale/index.d.ts +19 -0
- package/locale/index.js +52 -0
- package/locale/lang/ar-SA.d.ts +141 -0
- package/locale/lang/ar-SA.js +130 -0
- package/locale/lang/bn-BD.d.ts +159 -0
- package/locale/lang/bn-BD.js +148 -0
- package/locale/lang/en-US.d.ts +141 -0
- package/locale/lang/en-US.js +130 -0
- package/locale/lang/es-ES.d.ts +159 -0
- package/locale/lang/es-ES.js +148 -0
- package/locale/lang/hi-IN.d.ts +159 -0
- package/locale/lang/hi-IN.js +148 -0
- package/locale/lang/id-ID.d.ts +159 -0
- package/locale/lang/id-ID.js +148 -0
- package/locale/lang/pt-BR.d.ts +159 -0
- package/locale/lang/pt-BR.js +148 -0
- package/locale/lang/tr-TR.d.ts +159 -0
- package/locale/lang/tr-TR.js +148 -0
- package/locale/lang/ur-PK.d.ts +159 -0
- package/locale/lang/ur-PK.js +148 -0
- package/locale/lang/vi-VN.d.ts +141 -0
- package/locale/lang/vi-VN.js +130 -0
- package/locale/lang/zh-CN.d.ts +159 -0
- package/locale/lang/zh-CN.js +148 -0
- package/package.json +26 -7
- package/type-helpers.d.ts +25 -0
- package/type-helpers.js +0 -0
- package/use/index.d.ts +35 -0
- package/use/index.js +36 -0
- package/use/reactiveComputed.d.ts +3 -0
- package/use/reactiveComputed.js +8 -0
- package/use/toReactive.d.ts +2 -0
- package/use/toReactive.js +32 -0
- package/use/useClickOutside.d.ts +2 -0
- package/use/useClickOutside.js +46 -0
- package/use/useColorScheme.d.ts +11 -0
- package/use/useColorScheme.js +38 -0
- package/use/useComposition.d.ts +11 -0
- package/use/useComposition.js +32 -0
- package/use/useDragPinch.d.ts +10 -0
- package/use/useDragPinch.js +83 -0
- package/use/useElementScroll.d.ts +2 -0
- package/use/useElementScroll.js +19 -0
- package/use/useImperative.d.ts +11 -0
- package/use/useImperative.js +44 -0
- package/use/useIndeterminate.d.ts +10 -0
- package/use/useIndeterminate.js +26 -0
- package/use/useInitialVelocity.d.ts +8 -0
- package/use/useInitialVelocity.js +88 -0
- package/use/useIntersectionObserver.d.ts +15 -0
- package/use/useIntersectionObserver.js +74 -0
- package/use/useKeyList.d.ts +5 -0
- package/use/useKeyList.js +19 -0
- package/use/useLockScroll.d.ts +2 -0
- package/use/useLockScroll.js +36 -0
- package/use/useLuckyDraw.d.ts +22 -0
- package/use/useLuckyDraw.js +132 -0
- package/use/useLuckyGrid.d.ts +26 -0
- package/use/useLuckyGrid.js +51 -0
- package/use/useLuckyWheel.d.ts +15 -0
- package/use/useLuckyWheel.js +26 -0
- package/use/useOptionKeys.d.ts +29 -0
- package/use/useOptionKeys.js +37 -0
- package/use/usePageScroll.d.ts +1 -0
- package/use/usePageScroll.js +15 -0
- package/use/usePointerDown.d.ts +1 -0
- package/use/usePointerDown.js +22 -0
- package/use/usePopper.d.ts +34 -0
- package/use/usePopper.js +243 -0
- package/use/useReachBottom.d.ts +1 -0
- package/use/useReachBottom.js +14 -0
- package/use/useResizeObserver.d.ts +10 -0
- package/use/useResizeObserver.js +34 -0
- package/use/useRtl.d.ts +2 -0
- package/use/useRtl.js +32 -0
- package/use/useScrollSide.d.ts +10 -0
- package/use/useScrollSide.js +49 -0
- package/use/useScrollSpy.d.ts +16 -0
- package/use/useScrollSpy.js +99 -0
- package/use/useSimulatedClick.d.ts +6 -0
- package/use/useSimulatedClick.js +39 -0
- package/use/useSimulatedDblClick.d.ts +4 -0
- package/use/useSimulatedDblClick.js +38 -0
- package/use/useSimulatedPress.d.ts +12 -0
- package/use/useSimulatedPress.js +50 -0
- package/use/useSingleTask.d.ts +6 -0
- package/use/useSingleTask.js +36 -0
- package/use/useSlotMachine.d.ts +16 -0
- package/use/useSlotMachine.js +86 -0
- package/use/useStopMovedClick.d.ts +6 -0
- package/use/useStopMovedClick.js +27 -0
- package/use/useTimeout.d.ts +5 -0
- package/use/useTimeout.js +32 -0
- package/use/useTimeoutLoading.d.ts +6 -0
- package/use/useTimeoutLoading.js +48 -0
- package/use/useWindowResize.d.ts +1 -0
- package/use/useWindowResize.js +15 -0
- package/use/useZIndex.d.ts +1 -0
- package/use/useZIndex.js +13 -0
- package/utils/array.d.ts +28 -0
- package/utils/array.js +77 -0
- package/utils/barcode.d.ts +73 -0
- package/utils/barcode.js +442 -0
- package/utils/bem.d.ts +39 -0
- package/utils/bem.js +56 -0
- package/utils/canvas.d.ts +9 -0
- package/utils/canvas.js +12 -0
- package/utils/clipboard.d.ts +7 -0
- package/utils/clipboard.js +37 -0
- package/utils/color.d.ts +39 -0
- package/utils/color.js +341 -0
- package/utils/common.d.ts +3 -0
- package/utils/common.js +0 -0
- package/utils/component.d.ts +21 -0
- package/utils/component.js +31 -0
- package/utils/createImperativeComponent.d.ts +10 -0
- package/utils/createImperativeComponent.js +54 -0
- package/utils/date.d.ts +119 -0
- package/utils/date.js +803 -0
- package/utils/dom.d.ts +6 -0
- package/utils/dom.js +19 -0
- package/utils/file.d.ts +57 -0
- package/utils/file.js +113 -0
- package/utils/geometry.d.ts +98 -0
- package/utils/geometry.js +174 -0
- package/utils/index.d.ts +24 -0
- package/utils/index.js +28 -0
- package/utils/inertialAnimate.d.ts +10 -0
- package/utils/inertialAnimate.js +44 -0
- package/utils/is.d.ts +80 -0
- package/utils/is.js +108 -0
- package/utils/log.d.ts +1 -0
- package/utils/log.js +8 -0
- package/utils/number.d.ts +32 -0
- package/utils/number.js +62 -0
- package/utils/object.d.ts +43 -0
- package/utils/object.js +134 -0
- package/utils/physics.d.ts +34 -0
- package/utils/physics.js +59 -0
- package/utils/polyfill.d.ts +7 -0
- package/utils/polyfill.js +15 -0
- package/utils/qrcode.d.ts +8 -0
- package/utils/qrcode.js +768 -0
- package/utils/regexp.d.ts +1 -0
- package/utils/regexp.js +6 -0
- package/utils/scroller/Friction.d.ts +80 -0
- package/utils/scroller/Friction.js +116 -0
- package/utils/scroller/Scroll.d.ts +52 -0
- package/utils/scroller/Scroll.js +110 -0
- package/utils/scroller/Spring.d.ts +66 -0
- package/utils/scroller/Spring.js +204 -0
- package/utils/scroller/index.d.ts +3 -0
- package/utils/scroller/index.js +4 -0
- package/utils/scroller/useEasingAnimation.d.ts +5 -0
- package/utils/scroller/useEasingAnimation.js +32 -0
- package/utils/scroller/useScrollAnimation.d.ts +12 -0
- package/utils/scroller/useScrollAnimation.js +36 -0
- package/utils/scroller/useScrollBinding.d.ts +8 -0
- package/utils/scroller/useScrollBinding.js +52 -0
- package/utils/scroller/useScroller.d.ts +39 -0
- package/utils/scroller/useScroller.js +210 -0
- package/utils/string.d.ts +37 -0
- package/utils/string.js +68 -0
- package/utils/tree.d.ts +26 -0
- package/utils/tree.js +141 -0
- package/utils/utils.d.ts +56 -0
- package/utils/utils.js +163 -0
- package/utils/vnode.d.ts +9 -0
- package/utils/vnode.js +69 -0
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { createBem } from "../../utils/bem.js";
|
|
2
|
+
import { usePointerDown } from "../../use/usePointerDown.js";
|
|
3
|
+
import { useRtl } from "../../use/useRtl.js";
|
|
4
|
+
import "../../use/index.js";
|
|
5
|
+
import "../../utils/index.js";
|
|
6
|
+
import { useFormContext, useFormItemContext } from "../form/common.js";
|
|
7
|
+
import { defaultRateProps } from "./common.js";
|
|
8
|
+
import { Fragment, computed, createBlock, createElementBlock, createElementVNode, createTextVNode, defineComponent, mergeDefaults, normalizeClass, normalizeStyle, openBlock, ref, renderList, renderSlot, toDisplayString, unref, useSlots, useTemplateRef, watch, withModifiers } from "vue";
|
|
9
|
+
import { Star, StarFill } from "@sard/icons";
|
|
10
|
+
//#region packages/sard/components/rate/rate.vue
|
|
11
|
+
const _hoisted_1 = ["data-index", "onClick"];
|
|
12
|
+
var rate_default = /*@__PURE__*/ defineComponent({
|
|
13
|
+
__name: "rate",
|
|
14
|
+
props: /*@__PURE__*/ mergeDefaults({
|
|
15
|
+
modelValue: {
|
|
16
|
+
type: Number,
|
|
17
|
+
required: false
|
|
18
|
+
},
|
|
19
|
+
allowHalf: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
required: false
|
|
22
|
+
},
|
|
23
|
+
clearable: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
required: false
|
|
26
|
+
},
|
|
27
|
+
count: {
|
|
28
|
+
type: Number,
|
|
29
|
+
required: false
|
|
30
|
+
},
|
|
31
|
+
size: {
|
|
32
|
+
type: String,
|
|
33
|
+
required: false
|
|
34
|
+
},
|
|
35
|
+
gap: {
|
|
36
|
+
type: String,
|
|
37
|
+
required: false
|
|
38
|
+
},
|
|
39
|
+
text: {
|
|
40
|
+
type: String,
|
|
41
|
+
required: false
|
|
42
|
+
},
|
|
43
|
+
voidText: {
|
|
44
|
+
type: String,
|
|
45
|
+
required: false
|
|
46
|
+
},
|
|
47
|
+
color: {
|
|
48
|
+
type: String,
|
|
49
|
+
required: false
|
|
50
|
+
},
|
|
51
|
+
voidColor: {
|
|
52
|
+
type: String,
|
|
53
|
+
required: false
|
|
54
|
+
},
|
|
55
|
+
disabled: {
|
|
56
|
+
type: Boolean,
|
|
57
|
+
required: false
|
|
58
|
+
},
|
|
59
|
+
readonly: {
|
|
60
|
+
type: Boolean,
|
|
61
|
+
required: false
|
|
62
|
+
},
|
|
63
|
+
validateEvent: {
|
|
64
|
+
type: Boolean,
|
|
65
|
+
required: false
|
|
66
|
+
}
|
|
67
|
+
}, defaultRateProps),
|
|
68
|
+
emits: ["update:modelValue", "change"],
|
|
69
|
+
setup(__props, { emit: __emit }) {
|
|
70
|
+
const props = __props;
|
|
71
|
+
const slots = useSlots();
|
|
72
|
+
const emit = __emit;
|
|
73
|
+
const bem = createBem("rate");
|
|
74
|
+
const formContext = useFormContext();
|
|
75
|
+
const formItemContext = useFormItemContext();
|
|
76
|
+
const isDisabled = computed(() => {
|
|
77
|
+
return formContext?.disabled || props.disabled;
|
|
78
|
+
});
|
|
79
|
+
const isReadonly = computed(() => {
|
|
80
|
+
return formContext?.readonly || props.readonly;
|
|
81
|
+
});
|
|
82
|
+
const innerValue = ref(props.modelValue ?? 0);
|
|
83
|
+
watch(() => props.modelValue, () => {
|
|
84
|
+
innerValue.value = props.modelValue ?? 0;
|
|
85
|
+
if (props.validateEvent) formItemContext?.onChange();
|
|
86
|
+
});
|
|
87
|
+
const rateRef = useTemplateRef("rate");
|
|
88
|
+
const itemRefs = useTemplateRef("items");
|
|
89
|
+
const firstStar = computed(() => {
|
|
90
|
+
return itemRefs.value?.find((item) => item.dataset.index === "0");
|
|
91
|
+
});
|
|
92
|
+
const rateRect = ref();
|
|
93
|
+
const firstStarRect = ref();
|
|
94
|
+
const isRtl = useRtl(rateRef);
|
|
95
|
+
const starList = computed(() => {
|
|
96
|
+
return Array(props.count).fill(0).map((_, index) => {
|
|
97
|
+
const diff = index + 1 - innerValue.value;
|
|
98
|
+
return { width: (diff <= 0 ? 1 : diff > 1 ? 0 : innerValue.value % 1) * 100 + "%" };
|
|
99
|
+
});
|
|
100
|
+
});
|
|
101
|
+
const onClick = (event, index) => {
|
|
102
|
+
if (isReadonly.value || isDisabled.value) return;
|
|
103
|
+
let nextValue;
|
|
104
|
+
if (props.allowHalf) {
|
|
105
|
+
const { left: rateLeft, width: rateWidth } = rateRef.value.getBoundingClientRect();
|
|
106
|
+
const starWidth = firstStar.value.getBoundingClientRect().width;
|
|
107
|
+
const { clientX } = "touches" in event ? event.touches[0] : event;
|
|
108
|
+
nextValue = index + (clientX - rateLeft - index * (starWidth + (rateWidth - props.count * starWidth) / (props.count - 1)) <= starWidth / 2 ? .5 : 1);
|
|
109
|
+
} else nextValue = index + 1;
|
|
110
|
+
if (props.clearable && nextValue === innerValue.value) nextValue = 0;
|
|
111
|
+
if (nextValue !== void 0 && nextValue !== innerValue.value) {
|
|
112
|
+
innerValue.value = nextValue;
|
|
113
|
+
emit("update:modelValue", nextValue);
|
|
114
|
+
emit("change", nextValue);
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
const onTouchStart = () => {
|
|
118
|
+
if (isReadonly.value || isDisabled.value) return;
|
|
119
|
+
rateRect.value = rateRef.value.getBoundingClientRect();
|
|
120
|
+
firstStarRect.value = firstStar.value.getBoundingClientRect();
|
|
121
|
+
};
|
|
122
|
+
const onTouchMove = (event) => {
|
|
123
|
+
if (isReadonly.value || isDisabled.value) return;
|
|
124
|
+
if (!rateRect.value || !firstStarRect.value) return;
|
|
125
|
+
const { left: rateLeft, width: rateWidth } = rateRect.value;
|
|
126
|
+
const { clientX } = event.touches[0];
|
|
127
|
+
let offsetX = clientX - rateLeft;
|
|
128
|
+
let nextValue;
|
|
129
|
+
if (isRtl.value) offsetX = rateWidth - offsetX;
|
|
130
|
+
if (offsetX < 0) nextValue = 0;
|
|
131
|
+
else {
|
|
132
|
+
const { width: starWidth } = firstStarRect.value;
|
|
133
|
+
const gap = (rateWidth - props.count * starWidth) / (props.count - 1);
|
|
134
|
+
for (let i = props.count - 1; i >= 0; i--) {
|
|
135
|
+
const left = i * (gap + starWidth);
|
|
136
|
+
if (offsetX >= left) {
|
|
137
|
+
nextValue = i + (props.allowHalf && offsetX <= left + starWidth / 2 ? .5 : 1);
|
|
138
|
+
break;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
if (nextValue === 0 && !props.clearable) nextValue = props.allowHalf ? .5 : 1;
|
|
143
|
+
if (nextValue !== void 0 && nextValue !== innerValue.value) {
|
|
144
|
+
innerValue.value = nextValue;
|
|
145
|
+
emit("update:modelValue", nextValue);
|
|
146
|
+
emit("change", nextValue);
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
const onPointerDown = usePointerDown(onTouchStart, onTouchMove);
|
|
150
|
+
const rateClass = computed(() => {
|
|
151
|
+
return [
|
|
152
|
+
bem.b(),
|
|
153
|
+
bem.m("disabled", isDisabled.value),
|
|
154
|
+
bem.m("readonly", isReadonly.value)
|
|
155
|
+
];
|
|
156
|
+
});
|
|
157
|
+
const contentStyle = computed(() => {
|
|
158
|
+
return { gap: props.gap };
|
|
159
|
+
});
|
|
160
|
+
return (_ctx, _cache) => {
|
|
161
|
+
return openBlock(), createElementBlock("div", { class: normalizeClass(rateClass.value) }, [createElementVNode("div", {
|
|
162
|
+
ref: "rate",
|
|
163
|
+
class: normalizeClass(unref(bem).e("content")),
|
|
164
|
+
style: normalizeStyle(contentStyle.value),
|
|
165
|
+
onTouchstart: withModifiers(onTouchStart, ["stop", "prevent"]),
|
|
166
|
+
onTouchmove: withModifiers(onTouchMove, ["stop", "prevent"]),
|
|
167
|
+
onPointerdown: _cache[0] || (_cache[0] = (...args) => unref(onPointerDown) && unref(onPointerDown)(...args))
|
|
168
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(starList.value, (item, i) => {
|
|
169
|
+
return openBlock(), createElementBlock("div", {
|
|
170
|
+
key: i,
|
|
171
|
+
ref_for: true,
|
|
172
|
+
ref: "items",
|
|
173
|
+
class: normalizeClass(unref(bem).e("item")),
|
|
174
|
+
"data-index": i,
|
|
175
|
+
style: normalizeStyle({ fontSize: __props.size }),
|
|
176
|
+
onClick: ($event) => onClick($event, i)
|
|
177
|
+
}, [createElementVNode("div", {
|
|
178
|
+
class: normalizeClass(unref(bem).e("star-void")),
|
|
179
|
+
style: normalizeStyle({ color: isDisabled.value ? void 0 : __props.voidColor })
|
|
180
|
+
}, [__props.voidText || slots["void-star"] ? renderSlot(_ctx.$slots, "void-star", { key: 0 }, () => [createTextVNode(toDisplayString(__props.voidText), 1)]) : (openBlock(), createBlock(unref(Star), { key: 1 }))], 6), createElementVNode("div", {
|
|
181
|
+
class: normalizeClass(unref(bem).e("star")),
|
|
182
|
+
style: normalizeStyle({
|
|
183
|
+
color: isDisabled.value ? void 0 : __props.color,
|
|
184
|
+
width: item.width
|
|
185
|
+
})
|
|
186
|
+
}, [__props.text || slots["star"] ? renderSlot(_ctx.$slots, "star", { key: 0 }, () => [createTextVNode(toDisplayString(__props.text), 1)]) : (openBlock(), createBlock(unref(StarFill), { key: 1 }))], 6)], 14, _hoisted_1);
|
|
187
|
+
}), 128))], 38)], 2);
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
//#endregion
|
|
192
|
+
export { rate_default as default };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type DefaultProps } from '../config';
|
|
2
|
+
export interface ReadMoreProps {
|
|
3
|
+
maxHeight?: number;
|
|
4
|
+
hideClose?: boolean;
|
|
5
|
+
openText?: string;
|
|
6
|
+
closeText?: string;
|
|
7
|
+
visible?: boolean;
|
|
8
|
+
keepLocation?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const defaultReadMoreProps: DefaultProps<ReadMoreProps>;
|
|
11
|
+
export interface ReadMoreSlots {
|
|
12
|
+
default?(props: Record<string, never>): any;
|
|
13
|
+
}
|
|
14
|
+
export interface ReadMoreEmits {
|
|
15
|
+
(e: 'update:visible', visible: boolean): void;
|
|
16
|
+
(e: 'open'): void;
|
|
17
|
+
(e: 'close'): void;
|
|
18
|
+
}
|
|
19
|
+
export interface ReadMoreExpose {
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--s-read-more-shadow-max-height:80%;--s-read-more-shadow-height:100px;--s-read-more-shadow-bg:linear-gradient(to bottom, rgba(var(--s-bg-color-container-rgb), 0), rgba(var(--s-bg-color-container-rgb), 1) 95%)}.s-read-more__content{position:relative}.s-read-more__shadow{position:absolute;left:0;right:0;bottom:0;max-height:var(--s-read-more-shadow-max-height);height:var(--s-read-more-shadow-height);background:var(--s-read-more-shadow-bg);display:none}.s-read-more__toggle{display:flex;justify-content:center;align-items:center;margin-inline-start:auto;margin-inline-end:auto}.s-read-more__toggle-btn{gap:4px}.s-read-more--close .s-read-more__content{overflow:hidden}.s-read-more--close .s-read-more__shadow{display:block}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type EnhancedComponent } from '../../utils';
|
|
2
|
+
import _ReadMore from './read-more.vue';
|
|
3
|
+
export declare const ReadMore: EnhancedComponent<typeof _ReadMore>;
|
|
4
|
+
export default ReadMore;
|
|
5
|
+
export type { ReadMoreProps, ReadMoreSlots, ReadMoreEmits, ReadMoreExpose } from './common';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { enhanceComponent } from "../../utils/component.js";
|
|
2
|
+
import "../../utils/index.js";
|
|
3
|
+
import read_more_default from "./read-more.js";
|
|
4
|
+
//#region packages/sard/components/read-more/index.ts
|
|
5
|
+
const ReadMore = enhanceComponent(read_more_default);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { ReadMore, ReadMore as default };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type ReadMoreProps, type ReadMoreSlots, type ReadMoreExpose } from './common';
|
|
2
|
+
type __VLS_Slots = ReadMoreSlots;
|
|
3
|
+
declare const __VLS_base: import("vue").DefineComponent<ReadMoreProps, ReadMoreExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
4
|
+
close: () => any;
|
|
5
|
+
"update:visible": (visible: boolean) => any;
|
|
6
|
+
open: () => any;
|
|
7
|
+
}, string, import("vue").PublicProps, Readonly<ReadMoreProps> & Readonly<{
|
|
8
|
+
onClose?: (() => any) | undefined;
|
|
9
|
+
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
10
|
+
onOpen?: (() => any) | undefined;
|
|
11
|
+
}>, {
|
|
12
|
+
visible: boolean;
|
|
13
|
+
maxHeight: number;
|
|
14
|
+
hideClose: boolean;
|
|
15
|
+
openText: string;
|
|
16
|
+
closeText: string;
|
|
17
|
+
keepLocation: boolean;
|
|
18
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { createBem } from "../../utils/bem.js";
|
|
2
|
+
import { usePointerDown } from "../../use/usePointerDown.js";
|
|
3
|
+
import "../../use/index.js";
|
|
4
|
+
import "../../utils/index.js";
|
|
5
|
+
import { useTranslateWithPrefix } from "../../locale/index.js";
|
|
6
|
+
import button_default from "../button/button.js";
|
|
7
|
+
import { defaultReadMoreProps } from "./common.js";
|
|
8
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeDefaults, normalizeClass, normalizeStyle, openBlock, ref, renderSlot, toDisplayString, unref, useTemplateRef, watch, withCtx } from "vue";
|
|
9
|
+
import { Down, Up } from "@sard/icons";
|
|
10
|
+
//#region packages/sard/components/read-more/read-more.vue
|
|
11
|
+
var read_more_default = /*@__PURE__*/ defineComponent({
|
|
12
|
+
__name: "read-more",
|
|
13
|
+
props: /*@__PURE__*/ mergeDefaults({
|
|
14
|
+
maxHeight: {
|
|
15
|
+
type: Number,
|
|
16
|
+
required: false
|
|
17
|
+
},
|
|
18
|
+
hideClose: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
required: false
|
|
21
|
+
},
|
|
22
|
+
openText: {
|
|
23
|
+
type: String,
|
|
24
|
+
required: false
|
|
25
|
+
},
|
|
26
|
+
closeText: {
|
|
27
|
+
type: String,
|
|
28
|
+
required: false
|
|
29
|
+
},
|
|
30
|
+
visible: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
required: false
|
|
33
|
+
},
|
|
34
|
+
keepLocation: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
required: false
|
|
37
|
+
}
|
|
38
|
+
}, defaultReadMoreProps),
|
|
39
|
+
emits: [
|
|
40
|
+
"update:visible",
|
|
41
|
+
"open",
|
|
42
|
+
"close"
|
|
43
|
+
],
|
|
44
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
45
|
+
const props = __props;
|
|
46
|
+
const emit = __emit;
|
|
47
|
+
const bem = createBem("read-more");
|
|
48
|
+
const { t } = useTranslateWithPrefix("readMore");
|
|
49
|
+
const innerVisible = ref(props.visible);
|
|
50
|
+
watch(() => props.visible, () => {
|
|
51
|
+
innerVisible.value = props.visible;
|
|
52
|
+
});
|
|
53
|
+
const handleClick = () => {
|
|
54
|
+
innerVisible.value = !innerVisible.value;
|
|
55
|
+
emit("update:visible", innerVisible.value);
|
|
56
|
+
if (innerVisible.value) emit("open");
|
|
57
|
+
else {
|
|
58
|
+
onClose();
|
|
59
|
+
emit("close");
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
const onButtonClick = () => {
|
|
63
|
+
handleClick();
|
|
64
|
+
};
|
|
65
|
+
const toggleText = computed(() => {
|
|
66
|
+
return innerVisible.value ? props.openText || t("fold") : props.closeText || t("unfold");
|
|
67
|
+
});
|
|
68
|
+
const hideToggle = computed(() => {
|
|
69
|
+
return innerVisible.value && props.hideClose;
|
|
70
|
+
});
|
|
71
|
+
const contentRef = useTemplateRef("content");
|
|
72
|
+
const toggleRef = useTemplateRef("toggle");
|
|
73
|
+
let scrollTop = 0;
|
|
74
|
+
const onTouchStart = (event) => {
|
|
75
|
+
if (props.keepLocation && innerVisible.value) {
|
|
76
|
+
const { clientY, pageY } = event.touches[0];
|
|
77
|
+
const contentRect = contentRef.value.getBoundingClientRect();
|
|
78
|
+
const toggleRect = toggleRef.value.getBoundingClientRect();
|
|
79
|
+
const closeContentHeight = Math.min(props.maxHeight, contentRect.height);
|
|
80
|
+
const openContentHeight = contentRect.height;
|
|
81
|
+
scrollTop = pageY - (clientY - toggleRect.top) - openContentHeight - (toggleRect.top - closeContentHeight);
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
const onPointerDown = usePointerDown(onTouchStart, void 0, void 0);
|
|
85
|
+
const onClose = () => {
|
|
86
|
+
if (props.keepLocation) window.scrollTo({
|
|
87
|
+
top: scrollTop,
|
|
88
|
+
behavior: "instant"
|
|
89
|
+
});
|
|
90
|
+
};
|
|
91
|
+
__expose({});
|
|
92
|
+
const readMoreClass = computed(() => {
|
|
93
|
+
return [bem.b(), bem.m("close", !innerVisible.value)];
|
|
94
|
+
});
|
|
95
|
+
const contentStyle = computed(() => {
|
|
96
|
+
return { maxHeight: innerVisible.value ? "none" : props.maxHeight + "px" };
|
|
97
|
+
});
|
|
98
|
+
return (_ctx, _cache) => {
|
|
99
|
+
return openBlock(), createElementBlock("div", { class: normalizeClass(readMoreClass.value) }, [createElementVNode("div", {
|
|
100
|
+
ref: "content",
|
|
101
|
+
class: normalizeClass(unref(bem).e("content")),
|
|
102
|
+
style: normalizeStyle(contentStyle.value)
|
|
103
|
+
}, [renderSlot(_ctx.$slots, "default"), createElementVNode("div", { class: normalizeClass(unref(bem).e("shadow")) }, null, 2)], 6), !hideToggle.value ? (openBlock(), createElementBlock("div", {
|
|
104
|
+
key: 0,
|
|
105
|
+
ref: "toggle",
|
|
106
|
+
class: normalizeClass(unref(bem).e("toggle")),
|
|
107
|
+
onTouchstart: onTouchStart,
|
|
108
|
+
onPointerdown: _cache[0] || (_cache[0] = (...args) => unref(onPointerDown) && unref(onPointerDown)(...args))
|
|
109
|
+
}, [createVNode(button_default, {
|
|
110
|
+
class: normalizeClass(unref(bem).e("toggle-btn")),
|
|
111
|
+
variant: "link",
|
|
112
|
+
onClick: onButtonClick
|
|
113
|
+
}, {
|
|
114
|
+
default: withCtx(() => [createElementVNode("span", null, toDisplayString(toggleText.value), 1), innerVisible.value ? (openBlock(), createBlock(unref(Up), { key: 0 })) : (openBlock(), createBlock(unref(Down), { key: 1 }))]),
|
|
115
|
+
_: 1
|
|
116
|
+
}, 8, ["class"])], 34)) : createCommentVNode("v-if", true)], 2);
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
//#endregion
|
|
121
|
+
export { read_more_default as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type DefaultProps } from '../config';
|
|
2
|
+
export interface ResultProps {
|
|
3
|
+
status?: 'success' | 'info' | 'warning' | 'error' | 'question';
|
|
4
|
+
title?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const defaultResultProps: DefaultProps<ResultProps>;
|
|
8
|
+
export interface ResultSlots {
|
|
9
|
+
default?(props: Record<string, never>): any;
|
|
10
|
+
title?(props: Record<string, never>): any;
|
|
11
|
+
description?(props: Record<string, never>): any;
|
|
12
|
+
icon?(props: Record<string, never>): any;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--s-result-icon-font-size:var(--s-size-4xl);--s-result-color-success:var(--s-color-success);--s-result-color-info:var(--s-color-primary);--s-result-color-warning:var(--s-color-warning);--s-result-color-error:var(--s-color-danger);--s-result-color-question:var(--s-color-primary);--s-result-title-margin-top:var(--s-size);--s-result-title-font-size:var(--s-font-size-xl);--s-result-description-margin-top:var(--s-size-2xs);--s-result-description-font-size:var(--s-font-size);--s-result-description-color:var(--s-text-color-tertiary);--s-result-extra-margin-top:var(--s-size)}.s-result{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}.s-result__icon{display:flex;font-size:var(--s-result-icon-font-size);line-height:var(--s-line-height-none);text-align:center}.s-result__icon--success{color:var(--s-result-color-success)}.s-result__icon--info{color:var(--s-result-color-info)}.s-result__icon--warning{color:var(--s-result-color-warning)}.s-result__icon--error{color:var(--s-result-color-error)}.s-result__icon--question{color:var(--s-result-color-question)}.s-result__title{margin-top:var(--s-result-title-margin-top);font-size:var(--s-result-title-font-size);text-align:center}.s-result__description{margin-top:var(--s-result-description-margin-top);font-size:var(--s-result-description-font-size);color:var(--s-result-description-color);text-align:center}.s-result__extra{margin-top:var(--s-result-extra-margin-top)}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { enhanceComponent } from "../../utils/component.js";
|
|
2
|
+
import "../../utils/index.js";
|
|
3
|
+
import result_default from "./result.js";
|
|
4
|
+
//#region packages/sard/components/result/index.ts
|
|
5
|
+
const Result = enhanceComponent(result_default);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { Result, Result as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type ResultProps, type ResultSlots } from './common';
|
|
2
|
+
type __VLS_Slots = ResultSlots;
|
|
3
|
+
declare const __VLS_base: import("vue").DefineComponent<ResultProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ResultProps> & Readonly<{}>, {
|
|
4
|
+
title: string;
|
|
5
|
+
description: string;
|
|
6
|
+
status: "success" | "info" | "warning" | "error" | "question";
|
|
7
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
12
|
+
new (): {
|
|
13
|
+
$slots: S;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { createBem } from "../../utils/bem.js";
|
|
2
|
+
import "../../utils/index.js";
|
|
3
|
+
import { defaultResultProps } from "./common.js";
|
|
4
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, mergeDefaults, normalizeClass, openBlock, renderSlot, toDisplayString, unref, useSlots } from "vue";
|
|
5
|
+
import { CheckCircleFill, InfoCircleFill, QuestionCircleFill, WarningFill, XOctagonFill } from "@sard/icons";
|
|
6
|
+
//#region packages/sard/components/result/result.vue
|
|
7
|
+
var result_default = /*@__PURE__*/ defineComponent({
|
|
8
|
+
__name: "result",
|
|
9
|
+
props: /*@__PURE__*/ mergeDefaults({
|
|
10
|
+
status: {
|
|
11
|
+
type: String,
|
|
12
|
+
required: false
|
|
13
|
+
},
|
|
14
|
+
title: {
|
|
15
|
+
type: String,
|
|
16
|
+
required: false
|
|
17
|
+
},
|
|
18
|
+
description: {
|
|
19
|
+
type: String,
|
|
20
|
+
required: false
|
|
21
|
+
}
|
|
22
|
+
}, defaultResultProps),
|
|
23
|
+
setup(__props) {
|
|
24
|
+
const props = __props;
|
|
25
|
+
const slots = useSlots();
|
|
26
|
+
const bem = createBem("result");
|
|
27
|
+
const iconClass = computed(() => {
|
|
28
|
+
return [bem.e("icon"), bem.em("icon", props.status)];
|
|
29
|
+
});
|
|
30
|
+
return (_ctx, _cache) => {
|
|
31
|
+
return openBlock(), createElementBlock("div", { class: normalizeClass(unref(bem).b()) }, [
|
|
32
|
+
createElementVNode("div", { class: normalizeClass(iconClass.value) }, [renderSlot(_ctx.$slots, "icon", {}, () => [__props.status === "success" ? (openBlock(), createBlock(unref(CheckCircleFill), { key: 0 })) : __props.status === "info" ? (openBlock(), createBlock(unref(InfoCircleFill), { key: 1 })) : __props.status === "warning" ? (openBlock(), createBlock(unref(WarningFill), { key: 2 })) : __props.status === "error" ? (openBlock(), createBlock(unref(XOctagonFill), { key: 3 })) : __props.status === "question" ? (openBlock(), createBlock(unref(QuestionCircleFill), { key: 4 })) : createCommentVNode("v-if", true)])], 2),
|
|
33
|
+
__props.title ? (openBlock(), createElementBlock("div", {
|
|
34
|
+
key: 0,
|
|
35
|
+
class: normalizeClass(unref(bem).e("title"))
|
|
36
|
+
}, [renderSlot(_ctx.$slots, "title", {}, () => [createTextVNode(toDisplayString(__props.title), 1)])], 2)) : createCommentVNode("v-if", true),
|
|
37
|
+
__props.description ? (openBlock(), createElementBlock("div", {
|
|
38
|
+
key: 1,
|
|
39
|
+
class: normalizeClass(unref(bem).e("description"))
|
|
40
|
+
}, [renderSlot(_ctx.$slots, "description", {}, () => [createTextVNode(toDisplayString(__props.description), 1)])], 2)) : createCommentVNode("v-if", true),
|
|
41
|
+
slots.default ? (openBlock(), createElementBlock("div", {
|
|
42
|
+
key: 2,
|
|
43
|
+
class: normalizeClass(unref(bem).e("extra"))
|
|
44
|
+
}, [renderSlot(_ctx.$slots, "default")], 2)) : createCommentVNode("v-if", true)
|
|
45
|
+
], 2);
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
//#endregion
|
|
50
|
+
export { result_default as default };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type DefaultProps } from '../config';
|
|
2
|
+
import { type SlideVerifySlots, type SlideVerifyProps, type SlideVerifyExpose, type SlideVerifyEmits } from '../slide-verify/common';
|
|
3
|
+
export interface RotateVerifyProps extends SlideVerifyProps {
|
|
4
|
+
src?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const defaultRotateVerifyProps: DefaultProps<RotateVerifyProps>;
|
|
7
|
+
export interface RotateVerifySlots extends SlideVerifySlots {
|
|
8
|
+
}
|
|
9
|
+
export interface RotateVerifyEmits extends SlideVerifyEmits {
|
|
10
|
+
}
|
|
11
|
+
export interface RotateVerifyExpose extends SlideVerifyExpose {
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--s-rotate-verify-image-size:128px;--s-rotate-verify-image-margin-bottom:var(--s-size-lg)}.s-rotate-verify__image{display:flex;width:var(--s-rotate-verify-image-size);height:var(--s-rotate-verify-image-size);margin:0 auto var(--s-rotate-verify-image-margin-bottom);border-radius:50%;overflow:hidden;object-fit:cover}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type EnhancedComponent } from '../../utils';
|
|
2
|
+
import _RotateVerify from './rotate-verify.vue';
|
|
3
|
+
export declare const RotateVerify: EnhancedComponent<typeof _RotateVerify>;
|
|
4
|
+
export default RotateVerify;
|
|
5
|
+
export type { RotateVerifyProps, RotateVerifySlots, RotateVerifyEmits, RotateVerifyExpose, } from './common';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { enhanceComponent } from "../../utils/component.js";
|
|
2
|
+
import "../../utils/index.js";
|
|
3
|
+
import rotate_verify_default from "./rotate-verify.js";
|
|
4
|
+
//#region packages/sard/components/rotate-verify/index.ts
|
|
5
|
+
const RotateVerify = enhanceComponent(rotate_verify_default);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { RotateVerify, RotateVerify as default };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type RotateVerifyProps, type RotateVerifySlots, type RotateVerifyExpose } from './common';
|
|
2
|
+
type __VLS_Slots = RotateVerifySlots;
|
|
3
|
+
declare const __VLS_base: import("vue").DefineComponent<RotateVerifyProps, RotateVerifyExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
4
|
+
start: (event: any) => any;
|
|
5
|
+
end: (event: any) => any;
|
|
6
|
+
change: (percent: number) => any;
|
|
7
|
+
move: (event: any) => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<RotateVerifyProps> & Readonly<{
|
|
9
|
+
onStart?: ((event: any) => any) | undefined;
|
|
10
|
+
onEnd?: ((event: any) => any) | undefined;
|
|
11
|
+
onChange?: ((percent: number) => any) | undefined;
|
|
12
|
+
onMove?: ((event: any) => any) | undefined;
|
|
13
|
+
}>, {
|
|
14
|
+
text: string;
|
|
15
|
+
disabled: boolean;
|
|
16
|
+
src: string;
|
|
17
|
+
errorText: string;
|
|
18
|
+
targetPos: number;
|
|
19
|
+
successText: string;
|
|
20
|
+
resetWhenError: boolean;
|
|
21
|
+
showTarget: boolean;
|
|
22
|
+
verify: (result: import("../index.ts").SlideVerifyResult) => Promise<boolean> | boolean;
|
|
23
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
25
|
+
declare const _default: typeof __VLS_export;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|