@privyid/persona 1.1.2 → 1.2.1-rc.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/dist/module.d.cts +2 -0
- package/dist/module.d.mts +2 -27
- package/dist/module.json +12 -0
- package/dist/module.mjs +13 -92
- package/dist/types.d.mts +13 -0
- package/package.json +25 -27
- package/dist/components/accordion/Accordion.vue +0 -121
- package/dist/components/accordion/AccordionItem.vue +0 -250
- package/dist/components/accordion/AccordionItems.vue +0 -50
- package/dist/components/accordion/AccordionItems.vue.d.ts +0 -41
- package/dist/components/accordion/index.d.ts +0 -7
- package/dist/components/accordion/index.mjs +0 -3
- package/dist/components/aspect-ratio/index.d.ts +0 -3
- package/dist/components/aspect-ratio/index.mjs +0 -21
- package/dist/components/aspect-ratio/utils/calculate-ratio.d.ts +0 -7
- package/dist/components/aspect-ratio/utils/calculate-ratio.mjs +0 -10
- package/dist/components/aspect-ratio/utils/resize-observer.d.ts +0 -1
- package/dist/components/aspect-ratio/utils/resize-observer.mjs +0 -22
- package/dist/components/avatar/Avatar.vue +0 -193
- package/dist/components/avatar/AvatarGroup.vue +0 -42
- package/dist/components/avatar/AvatarTruncate.vue +0 -33
- package/dist/components/avatar/AvatarTruncate.vue.d.ts +0 -31
- package/dist/components/avatar/assets/avatar-old.png +0 -0
- package/dist/components/avatar/assets/avatar.png +0 -0
- package/dist/components/avatar/index.d.ts +0 -2
- package/dist/components/avatar/index.mjs +0 -0
- package/dist/components/avatar/utils/color-hash.d.ts +0 -2
- package/dist/components/avatar/utils/color-hash.mjs +0 -22
- package/dist/components/avatar/utils/create-image.d.ts +0 -5
- package/dist/components/avatar/utils/create-image.mjs +0 -19
- package/dist/components/avatar/utils/load-image.d.ts +0 -1
- package/dist/components/avatar/utils/load-image.mjs +0 -22
- package/dist/components/badge/Badge.vue +0 -218
- package/dist/components/badge/index.d.ts +0 -1
- package/dist/components/badge/index.mjs +0 -0
- package/dist/components/banner/Banner.vue +0 -213
- package/dist/components/banner/index.d.ts +0 -1
- package/dist/components/banner/index.mjs +0 -0
- package/dist/components/breadcrumbs/Breadcrumb.vue +0 -62
- package/dist/components/breadcrumbs/BreadcrumbItem.vue +0 -95
- package/dist/components/breadcrumbs/BreadcrumbItemDropdown.vue +0 -78
- package/dist/components/breadcrumbs/index.d.ts +0 -11
- package/dist/components/breadcrumbs/index.mjs +0 -3
- package/dist/components/button/Button.vue +0 -422
- package/dist/components/button/index.d.ts +0 -5
- package/dist/components/button/index.mjs +0 -0
- package/dist/components/button-group/ButtonGroup.vue +0 -220
- package/dist/components/button-group/index.d.ts +0 -6
- package/dist/components/button-group/index.mjs +0 -1
- package/dist/components/calendar/Calendar.vue +0 -465
- package/dist/components/calendar/adapter/adapter.d.ts +0 -32
- package/dist/components/calendar/adapter/adapter.mjs +0 -43
- package/dist/components/calendar/adapter/date.d.ts +0 -2
- package/dist/components/calendar/adapter/date.mjs +0 -86
- package/dist/components/calendar/adapter/month.d.ts +0 -2
- package/dist/components/calendar/adapter/month.mjs +0 -66
- package/dist/components/calendar/adapter/year.d.ts +0 -2
- package/dist/components/calendar/adapter/year.mjs +0 -63
- package/dist/components/camera/Camera.vue +0 -416
- package/dist/components/camera/adapter/adapter.d.ts +0 -41
- package/dist/components/camera/adapter/adapter.mjs +0 -3
- package/dist/components/camera/adapter/capture.d.ts +0 -5
- package/dist/components/camera/adapter/capture.mjs +0 -12
- package/dist/components/camera/adapter/liveness.d.ts +0 -5
- package/dist/components/camera/adapter/liveness.mjs +0 -46
- package/dist/components/camera/adapter/qr-code.d.ts +0 -2
- package/dist/components/camera/adapter/qr-code.mjs +0 -19
- package/dist/components/camera/assets/shutter.wav +0 -0
- package/dist/components/camera/utils/motion.d.ts +0 -29
- package/dist/components/camera/utils/motion.mjs +0 -88
- package/dist/components/camera/utils/take-picture.d.ts +0 -1
- package/dist/components/camera/utils/take-picture.mjs +0 -14
- package/dist/components/caption/Caption.vue +0 -122
- package/dist/components/caption/index.d.ts +0 -1
- package/dist/components/caption/index.mjs +0 -0
- package/dist/components/card/Card.vue +0 -354
- package/dist/components/card/CardSection.vue +0 -81
- package/dist/components/card/index.d.ts +0 -2
- package/dist/components/card/index.mjs +0 -0
- package/dist/components/carousel/Carousel.vue +0 -202
- package/dist/components/carousel/CarouselBody.vue +0 -18
- package/dist/components/carousel/CarouselItem.vue +0 -10
- package/dist/components/carousel/index.d.ts +0 -4
- package/dist/components/carousel/index.mjs +0 -1
- package/dist/components/chart/Chart.vue +0 -155
- package/dist/components/chart/ChartSet.vue +0 -32
- package/dist/components/chart/ChartVal.vue +0 -36
- package/dist/components/chart/adapter/adapter.d.ts +0 -7
- package/dist/components/chart/adapter/adapter.mjs +0 -3
- package/dist/components/chart/adapter/bubble.d.ts +0 -2
- package/dist/components/chart/adapter/bubble.mjs +0 -26
- package/dist/components/chart/adapter/index.d.ts +0 -3
- package/dist/components/chart/adapter/index.mjs +0 -16
- package/dist/components/chart/adapter/line.d.ts +0 -2
- package/dist/components/chart/adapter/line.mjs +0 -66
- package/dist/components/chart/adapter/pie.d.ts +0 -2
- package/dist/components/chart/adapter/pie.mjs +0 -34
- package/dist/components/chart/index.d.ts +0 -2
- package/dist/components/chart/index.mjs +0 -0
- package/dist/components/chart/utils/use-chart.d.ts +0 -2
- package/dist/components/chart/utils/use-chart.mjs +0 -9
- package/dist/components/checkbox/Checkbox.vue +0 -232
- package/dist/components/checkbox/icon/IconCheckbox.vue +0 -13
- package/dist/components/checkbox/icon/IconInderteminate.vue +0 -12
- package/dist/components/checkbox/index.d.ts +0 -7
- package/dist/components/checkbox/index.mjs +0 -34
- package/dist/components/collapse/Collapse.vue +0 -71
- package/dist/components/contextual-bar/ContextualBar.vue +0 -461
- package/dist/components/contextual-bar/index.d.ts +0 -1
- package/dist/components/contextual-bar/index.mjs +0 -0
- package/dist/components/cropper/Cropper.vue +0 -446
- package/dist/components/cropper/index.d.ts +0 -1
- package/dist/components/cropper/index.mjs +0 -3
- package/dist/components/cropper/utils/crop-image.d.ts +0 -44
- package/dist/components/cropper/utils/crop-image.mjs +0 -43
- package/dist/components/cropper/utils/use-pinch.d.ts +0 -8
- package/dist/components/cropper/utils/use-pinch.mjs +0 -50
- package/dist/components/cropper/utils/use-preview.d.ts +0 -3
- package/dist/components/cropper/utils/use-preview.mjs +0 -21
- package/dist/components/cropper/utils/use-ratio.d.ts +0 -9
- package/dist/components/cropper/utils/use-ratio.mjs +0 -24
- package/dist/components/datepicker/Datepicker.vue +0 -235
- package/dist/components/dialog/Dialog.vue +0 -149
- package/dist/components/dialog/DialogFooter.vue +0 -138
- package/dist/components/dialog/index.d.ts +0 -52
- package/dist/components/dialog/index.mjs +0 -86
- package/dist/components/divider/Divider.vue +0 -65
- package/dist/components/dot/Dot.vue +0 -103
- package/dist/components/dot/index.d.ts +0 -1
- package/dist/components/dot/index.mjs +0 -0
- package/dist/components/dropdown/Dropdown.vue +0 -441
- package/dist/components/dropdown/DropdownHeader.vue +0 -33
- package/dist/components/dropdown/DropdownItem.vue +0 -103
- package/dist/components/dropdown/DropdownText.vue +0 -34
- package/dist/components/dropdown/index.d.ts +0 -10
- package/dist/components/dropdown/index.mjs +0 -1
- package/dist/components/dropdown/utils/use-focus.d.ts +0 -5
- package/dist/components/dropdown/utils/use-focus.mjs +0 -22
- package/dist/components/dropdown-subitem/DropdownSubitem.vue +0 -182
- package/dist/components/dropdown-subitem/index.d.ts +0 -12
- package/dist/components/dropdown-subitem/index.mjs +0 -1
- package/dist/components/dropzone/Dropzone.vue +0 -261
- package/dist/components/dropzone/index.d.ts +0 -4
- package/dist/components/dropzone/index.mjs +0 -0
- package/dist/components/dropzone/utils/accept.d.ts +0 -1
- package/dist/components/dropzone/utils/accept.mjs +0 -17
- package/dist/components/filterbar/Filterbar.vue +0 -103
- package/dist/components/filterbar/Filterbar.vue.d.ts +0 -40
- package/dist/components/filterbar/index.d.ts +0 -45
- package/dist/components/filterbar/index.mjs +0 -7
- package/dist/components/filterbar/pinned/PinnedDate.vue +0 -100
- package/dist/components/filterbar/pinned/PinnedDate.vue.d.ts +0 -72
- package/dist/components/filterbar/pinned/PinnedMultiselect.vue +0 -113
- package/dist/components/filterbar/pinned/PinnedMultiselect.vue.d.ts +0 -48
- package/dist/components/filterbar/pinned/PinnedSelect.vue +0 -100
- package/dist/components/filterbar/pinned/PinnedSelect.vue.d.ts +0 -47
- package/dist/components/filterbar/pinned/PinnedToggle.vue +0 -77
- package/dist/components/filterbar/pinned/PinnedToggle.vue.d.ts +0 -59
- package/dist/components/form-group/FormGroup.vue +0 -169
- package/dist/components/global/router.d.ts +0 -24
- package/dist/components/global/router.mjs +0 -7
- package/dist/components/global/store.d.ts +0 -49
- package/dist/components/global/store.mjs +0 -52
- package/dist/components/global/types.d.ts +0 -4
- package/dist/components/global/types.mjs +0 -0
- package/dist/components/global/use-singleton.d.ts +0 -21
- package/dist/components/global/use-singleton.mjs +0 -60
- package/dist/components/global/utils/queue.d.ts +0 -16
- package/dist/components/global/utils/queue.mjs +0 -35
- package/dist/components/heading/Heading.vue +0 -140
- package/dist/components/heading/index.d.ts +0 -3
- package/dist/components/heading/index.mjs +0 -0
- package/dist/components/input/Input.vue +0 -243
- package/dist/components/input/index.d.ts +0 -6
- package/dist/components/input/index.mjs +0 -25
- package/dist/components/input/utils/accept.d.ts +0 -26
- package/dist/components/input/utils/accept.mjs +0 -81
- package/dist/components/input-color/index.d.ts +0 -1
- package/dist/components/input-color/index.mjs +0 -0
- package/dist/components/input-color/inputColor.vue +0 -264
- package/dist/components/input-file/InputFile.vue +0 -221
- package/dist/components/input-group/InputGroup.vue +0 -188
- package/dist/components/input-group/InputGroupAddon.vue +0 -42
- package/dist/components/input-group/index.d.ts +0 -6
- package/dist/components/input-group/index.mjs +0 -1
- package/dist/components/input-password/InputPassword.vue +0 -110
- package/dist/components/input-password/index.d.ts +0 -2
- package/dist/components/input-password/index.mjs +0 -17
- package/dist/components/input-pin/InputPin.vue +0 -170
- package/dist/components/input-pin/index.d.ts +0 -6
- package/dist/components/input-pin/index.mjs +0 -3
- package/dist/components/input-range/InputRange.vue +0 -303
- package/dist/components/input-range/utils/use-drag.d.ts +0 -3
- package/dist/components/input-range/utils/use-drag.mjs +0 -26
- package/dist/components/label/Label.vue +0 -265
- package/dist/components/label/index.d.ts +0 -1
- package/dist/components/label/index.mjs +0 -0
- package/dist/components/list-group/ListGroup.vue +0 -75
- package/dist/components/list-group/ListGroupItem.vue +0 -88
- package/dist/components/list-group/index.d.ts +0 -1
- package/dist/components/list-group/index.mjs +0 -0
- package/dist/components/main/Main.vue +0 -66
- package/dist/components/markdown/index.d.ts +0 -29
- package/dist/components/markdown/index.mjs +0 -25
- package/dist/components/meta.json +0 -171
- package/dist/components/modal/Modal.vue +0 -546
- package/dist/components/modal/index.d.ts +0 -1
- package/dist/components/modal/index.mjs +0 -0
- package/dist/components/nav/Nav.vue +0 -416
- package/dist/components/nav/NavCollapse.vue +0 -66
- package/dist/components/nav/NavForm.vue +0 -23
- package/dist/components/nav/NavItem.vue +0 -187
- package/dist/components/nav/NavItemDropdown.vue +0 -120
- package/dist/components/nav/NavSubItem.vue +0 -194
- package/dist/components/nav/NavText.vue +0 -19
- package/dist/components/nav/index.d.ts +0 -2
- package/dist/components/nav/index.mjs +0 -0
- package/dist/components/navbar/Navbar.vue +0 -284
- package/dist/components/navbar/NavbarBrand.vue +0 -31
- package/dist/components/navbar/NavbarNav.vue +0 -114
- package/dist/components/navbar/NavbarToggle.vue +0 -72
- package/dist/components/navbar/index.d.ts +0 -9
- package/dist/components/navbar/index.mjs +0 -1
- package/dist/components/navbar-menu/NavbarNavMenu.vue +0 -59
- package/dist/components/notify/Notify.vue +0 -51
- package/dist/components/notify/NotifyGroup.vue +0 -244
- package/dist/components/notify/NotifyItem.vue +0 -45
- package/dist/components/notify/index.d.ts +0 -20
- package/dist/components/notify/index.mjs +0 -18
- package/dist/components/overlay/Overlay.vue +0 -68
- package/dist/components/overlay/assets/icon-white.svg +0 -1
- package/dist/components/overlay/index.d.ts +0 -2
- package/dist/components/overlay/index.mjs +0 -8
- package/dist/components/overlay/utils/use-loading.d.ts +0 -4
- package/dist/components/overlay/utils/use-loading.mjs +0 -28
- package/dist/components/page/Page.vue +0 -106
- package/dist/components/pagination/Pagination.vue +0 -415
- package/dist/components/pagination/index.d.ts +0 -14
- package/dist/components/pagination/index.mjs +0 -38
- package/dist/components/pagination/utils/calculate-page.d.ts +0 -11
- package/dist/components/pagination/utils/calculate-page.mjs +0 -48
- package/dist/components/pdf-helipad/PdfHelipad.vue +0 -147
- package/dist/components/pdf-helipad/index.d.ts +0 -7
- package/dist/components/pdf-helipad/index.mjs +0 -0
- package/dist/components/pdf-helipad/utils/use-drag.d.ts +0 -3
- package/dist/components/pdf-helipad/utils/use-drag.mjs +0 -38
- package/dist/components/pdf-object/PdfObject.vue +0 -348
- package/dist/components/pdf-object/PdfObjectAddon.vue +0 -55
- package/dist/components/pdf-object/PdfObjectDebugger.vue +0 -70
- package/dist/components/pdf-object/PdfObjects.vue +0 -39
- package/dist/components/pdf-object/index.d.ts +0 -63
- package/dist/components/pdf-object/index.mjs +0 -110
- package/dist/components/pdf-object/utils/overlap.d.ts +0 -51
- package/dist/components/pdf-object/utils/overlap.mjs +0 -54
- package/dist/components/pdf-object/utils/position.d.ts +0 -64
- package/dist/components/pdf-object/utils/position.mjs +0 -48
- package/dist/components/pdf-object/utils/use-drag.d.ts +0 -9
- package/dist/components/pdf-object/utils/use-drag.mjs +0 -69
- package/dist/components/pdf-object/utils/use-drop.d.ts +0 -7
- package/dist/components/pdf-object/utils/use-drop.mjs +0 -57
- package/dist/components/pdf-object/utils/use-resize.d.ts +0 -17
- package/dist/components/pdf-object/utils/use-resize.mjs +0 -90
- package/dist/components/pdf-object/utils/use-selector.d.ts +0 -4
- package/dist/components/pdf-object/utils/use-selector.mjs +0 -26
- package/dist/components/pdf-text/PdfText.vue +0 -138
- package/dist/components/pdf-text/utils/text-to-image.d.ts +0 -68
- package/dist/components/pdf-text/utils/text-to-image.mjs +0 -120
- package/dist/components/pdf-viewer/PdfError.vue +0 -74
- package/dist/components/pdf-viewer/PdfLoading.vue +0 -24
- package/dist/components/pdf-viewer/PdfNavigation.vue +0 -169
- package/dist/components/pdf-viewer/PdfViewer.vue +0 -377
- package/dist/components/pdf-viewer/assets/pdf-loading.svg +0 -1
- package/dist/components/pdf-viewer/index.d.ts +0 -25
- package/dist/components/pdf-viewer/index.mjs +0 -24
- package/dist/components/pdf-viewer/utils/pdfjs.d.ts +0 -68
- package/dist/components/pdf-viewer/utils/pdfjs.mjs +0 -54
- package/dist/components/pdf-viewer/utils/use-idle.d.ts +0 -2
- package/dist/components/pdf-viewer/utils/use-idle.mjs +0 -25
- package/dist/components/pdf-viewer/utils/use-sticky.d.ts +0 -6
- package/dist/components/pdf-viewer/utils/use-sticky.mjs +0 -49
- package/dist/components/pdf-viewer/utils/use-viewer.d.ts +0 -27
- package/dist/components/pdf-viewer/utils/use-viewer.mjs +0 -191
- package/dist/components/popover/Popover.vue +0 -131
- package/dist/components/popover/index.d.ts +0 -17
- package/dist/components/popover/index.mjs +0 -52
- package/dist/components/popup/Popup.vue +0 -428
- package/dist/components/popup/index.d.ts +0 -38
- package/dist/components/popup/index.mjs +0 -31
- package/dist/components/progress/Progress.vue +0 -221
- package/dist/components/progress/ProgressItem.vue +0 -56
- package/dist/components/progress/index.d.ts +0 -2
- package/dist/components/progress/index.mjs +0 -0
- package/dist/components/progress-indicator/ProgressIndicator.vue +0 -132
- package/dist/components/progressbar/Progressbar.vue +0 -113
- package/dist/components/progressbar/index.d.ts +0 -7
- package/dist/components/progressbar/index.mjs +0 -11
- package/dist/components/pspdfkit/PspdfHelipad.vue +0 -165
- package/dist/components/pspdfkit/PspdfObject.vue +0 -341
- package/dist/components/pspdfkit/PspdfObjectAddon.vue +0 -30
- package/dist/components/pspdfkit/PspdfObjects.vue +0 -30
- package/dist/components/pspdfkit/PspdfViewer.vue +0 -257
- package/dist/components/pspdfkit/css/custom.css +0 -345
- package/dist/components/pspdfkit/index.d.ts +0 -8
- package/dist/components/pspdfkit/index.mjs +0 -7
- package/dist/components/pspdfkit/utils/position.d.ts +0 -1
- package/dist/components/pspdfkit/utils/position.mjs +0 -5
- package/dist/components/pspdfkit/utils/pspdfkit.d.ts +0 -17
- package/dist/components/pspdfkit/utils/pspdfkit.mjs +0 -53
- package/dist/components/pspdfkit/utils/use-drop.d.ts +0 -2
- package/dist/components/pspdfkit/utils/use-drop.mjs +0 -41
- package/dist/components/pspdfkit/utils/use-viewer.d.ts +0 -17
- package/dist/components/pspdfkit/utils/use-viewer.mjs +0 -167
- package/dist/components/qrcode/Qrcode.vue +0 -174
- package/dist/components/qrcode/index.d.ts +0 -1
- package/dist/components/qrcode/index.mjs +0 -0
- package/dist/components/radio/Radio.vue +0 -304
- package/dist/components/radio/index.d.ts +0 -7
- package/dist/components/radio/index.mjs +0 -16
- package/dist/components/richtext/Richtext.vue +0 -295
- package/dist/components/richtext/RichtextToolbarAdvance.vue +0 -37
- package/dist/components/richtext/RichtextToolbarSimple.vue +0 -158
- package/dist/components/richtext/control/RichtextControlFontFamily.vue +0 -56
- package/dist/components/richtext/control/RichtextControlFontSize.vue +0 -81
- package/dist/components/richtext/control/RichtextControlHighlight.vue +0 -135
- package/dist/components/richtext/control/RichtextControlHistory.vue +0 -27
- package/dist/components/richtext/control/RichtextControlImage.vue +0 -34
- package/dist/components/richtext/control/RichtextControlLink.vue +0 -53
- package/dist/components/richtext/control/RichtextControlList.vue +0 -45
- package/dist/components/richtext/control/RichtextControlTable.vue +0 -106
- package/dist/components/richtext/control/RichtextControlTextAlign.vue +0 -90
- package/dist/components/richtext/control/RichtextControlTextFormat.vue +0 -49
- package/dist/components/richtext/control/RichtextControlTextHeading.vue +0 -101
- package/dist/components/richtext/index.d.ts +0 -7
- package/dist/components/richtext/index.mjs +0 -7
- package/dist/components/richtext/popup/RichtextPopupImageEdit.vue +0 -65
- package/dist/components/richtext/popup/RichtextPopupLinkDetail.vue +0 -95
- package/dist/components/richtext/popup/RichtextPopupLinkEdit.vue +0 -74
- package/dist/components/richtext/tiptap/image-align.d.ts +0 -43
- package/dist/components/richtext/tiptap/image-align.mjs +0 -60
- package/dist/components/ringbar/Ringbar.vue +0 -158
- package/dist/components/ringbar/index.d.ts +0 -1
- package/dist/components/ringbar/index.mjs +0 -0
- package/dist/components/select/Select.vue +0 -576
- package/dist/components/select/SelectInput.vue +0 -123
- package/dist/components/select/SelectTags.vue +0 -58
- package/dist/components/select/adapter/adapter.d.ts +0 -17
- package/dist/components/select/adapter/adapter.mjs +0 -20
- package/dist/components/select/adapter/async-adapter.d.ts +0 -17
- package/dist/components/select/adapter/async-adapter.mjs +0 -61
- package/dist/components/select/adapter/basic-adapter.d.ts +0 -5
- package/dist/components/select/adapter/basic-adapter.mjs +0 -13
- package/dist/components/select/adapter/fuzzy-adapter.d.ts +0 -2
- package/dist/components/select/adapter/fuzzy-adapter.mjs +0 -24
- package/dist/components/select/index.d.ts +0 -15
- package/dist/components/select/index.mjs +0 -20
- package/dist/components/select/utils/use-on-scroll.d.ts +0 -2
- package/dist/components/select/utils/use-on-scroll.mjs +0 -9
- package/dist/components/select/utils/use-on-typing.d.ts +0 -3
- package/dist/components/select/utils/use-on-typing.mjs +0 -8
- package/dist/components/sheet/Sheet.vue +0 -230
- package/dist/components/shimmer/Shimmer.vue +0 -123
- package/dist/components/shimmer/index.d.ts +0 -2
- package/dist/components/shimmer/index.mjs +0 -10
- package/dist/components/sidebar/Sidebar.vue +0 -249
- package/dist/components/sidebar/SidebarBrand.vue +0 -108
- package/dist/components/sidebar/SidebarContent.vue +0 -21
- package/dist/components/sidebar/SidebarContent.vue.d.ts +0 -16
- package/dist/components/sidebar/SidebarNav.vue +0 -260
- package/dist/components/sidebar/index.d.ts +0 -9
- package/dist/components/sidebar/index.mjs +0 -1
- package/dist/components/sidebar-menu/SidebarMenu.vue +0 -123
- package/dist/components/sidebar-menu/SidebarMenuItem.vue +0 -70
- package/dist/components/sidebar-menu/index.d.ts +0 -138
- package/dist/components/sidebar-menu/index.mjs +0 -44
- package/dist/components/signature-draw/SignatureDraw.vue +0 -101
- package/dist/components/signature-draw/SignatureDrawDesktop.vue +0 -165
- package/dist/components/signature-draw/SignatureDrawMobile.vue +0 -244
- package/dist/components/signature-draw/utils/canvas.d.ts +0 -41
- package/dist/components/signature-draw/utils/canvas.mjs +0 -55
- package/dist/components/signature-draw/utils/image.d.ts +0 -7
- package/dist/components/signature-draw/utils/image.mjs +0 -23
- package/dist/components/signature-draw/utils/smooth-line.d.ts +0 -36
- package/dist/components/signature-draw/utils/smooth-line.mjs +0 -56
- package/dist/components/signature-draw/utils/straight-line.d.ts +0 -8
- package/dist/components/signature-draw/utils/straight-line.mjs +0 -24
- package/dist/components/signature-draw/utils/use-draw.d.ts +0 -7
- package/dist/components/signature-draw/utils/use-draw.mjs +0 -29
- package/dist/components/signature-text/SignatureText.vue +0 -138
- package/dist/components/signature-text/utils/formatter.d.ts +0 -2
- package/dist/components/signature-text/utils/formatter.mjs +0 -8
- package/dist/components/signature-text/utils/generate-text.d.ts +0 -8
- package/dist/components/signature-text/utils/generate-text.mjs +0 -28
- package/dist/components/signature-text/utils/load-font.d.ts +0 -1
- package/dist/components/signature-text/utils/load-font.mjs +0 -22
- package/dist/components/spinner/Spinner.vue +0 -156
- package/dist/components/spinner/SpinnerRing.vue +0 -34
- package/dist/components/spinner/SpinnerRinggo.vue +0 -64
- package/dist/components/spread/Spread.vue +0 -52
- package/dist/components/steps/Step.vue +0 -49
- package/dist/components/steps/StepSlider.vue +0 -37
- package/dist/components/steps/StepSlider.vue.d.ts +0 -34
- package/dist/components/steps/Steps.vue +0 -150
- package/dist/components/steps/index.d.ts +0 -30
- package/dist/components/steps/index.mjs +0 -53
- package/dist/components/steps/utils/hook.d.ts +0 -10
- package/dist/components/steps/utils/hook.mjs +0 -35
- package/dist/components/strengthbar/Strengthbar.vue +0 -97
- package/dist/components/subheading/Subheading.vue +0 -148
- package/dist/components/subheading/index.d.ts +0 -1
- package/dist/components/subheading/index.mjs +0 -0
- package/dist/components/table/Table.vue +0 -391
- package/dist/components/table/Table.vue.d.ts +0 -174
- package/dist/components/table/index.d.ts +0 -49
- package/dist/components/table/index.mjs +0 -37
- package/dist/components/table-flex/TableFlex.vue +0 -341
- package/dist/components/table-static/TableStatic.vue +0 -458
- package/dist/components/table-static/TableStaticRoot.vue +0 -42
- package/dist/components/table-static/TableStaticSort.vue +0 -23
- package/dist/components/table-static/index.d.ts +0 -64
- package/dist/components/table-static/index.mjs +0 -24
- package/dist/components/tabs/Tab.vue +0 -34
- package/dist/components/tabs/TabContent.vue +0 -53
- package/dist/components/tabs/TabContent.vue.d.ts +0 -33
- package/dist/components/tabs/Tabs.vue +0 -234
- package/dist/components/text/Text.vue +0 -235
- package/dist/components/text/index.d.ts +0 -2
- package/dist/components/text/index.mjs +0 -0
- package/dist/components/textarea/Textarea.vue +0 -188
- package/dist/components/time/Time.vue +0 -257
- package/dist/components/time/TimeItem.vue +0 -117
- package/dist/components/time/index.d.ts +0 -19
- package/dist/components/time/index.mjs +0 -53
- package/dist/components/time/utils/index.d.ts +0 -9
- package/dist/components/time/utils/index.mjs +0 -82
- package/dist/components/timepicker/Timepicker.vue +0 -230
- package/dist/components/toast/Toast.vue +0 -269
- package/dist/components/toast/index.d.ts +0 -50
- package/dist/components/toast/index.mjs +0 -44
- package/dist/components/toggle/Toggle.vue +0 -239
- package/dist/components/tooltip/Tooltip.vue +0 -172
- package/dist/components/tooltip/TooltipContainer.vue +0 -89
- package/dist/components/tooltip/index.d.ts +0 -17
- package/dist/components/tooltip/index.mjs +0 -113
- package/dist/components/tooltip/utils/create-handler.d.ts +0 -9
- package/dist/components/tooltip/utils/create-handler.mjs +0 -16
- package/dist/components/tooltip/utils/on-hover.d.ts +0 -23
- package/dist/components/tooltip/utils/on-hover.mjs +0 -42
- package/dist/components/tooltip/utils/parse-bindings.d.ts +0 -23
- package/dist/components/tooltip/utils/parse-bindings.mjs +0 -47
- package/dist/components/tour/Tour.vue +0 -112
- package/dist/components/tour/TourDialog.vue +0 -207
- package/dist/components/tour/TourHighlight.vue +0 -58
- package/dist/components/tour/core/base.d.ts +0 -59
- package/dist/components/tour/core/base.mjs +0 -69
- package/dist/components/tour/core/step/action.d.ts +0 -15
- package/dist/components/tour/core/step/action.mjs +0 -14
- package/dist/components/tour/core/step/conditional.d.ts +0 -25
- package/dist/components/tour/core/step/conditional.mjs +0 -57
- package/dist/components/tour/core/step/delay.d.ts +0 -8
- package/dist/components/tour/core/step/delay.mjs +0 -9
- package/dist/components/tour/core/step/dialog.d.ts +0 -11
- package/dist/components/tour/core/step/dialog.mjs +0 -25
- package/dist/components/tour/core/step/visit.d.ts +0 -9
- package/dist/components/tour/core/step/visit.mjs +0 -15
- package/dist/components/tour/core/step.d.ts +0 -37
- package/dist/components/tour/core/step.mjs +0 -46
- package/dist/components/tour/core/story.d.ts +0 -130
- package/dist/components/tour/core/story.mjs +0 -166
- package/dist/components/tour/core/tour.d.ts +0 -126
- package/dist/components/tour/core/tour.mjs +0 -196
- package/dist/components/tour/index.d.ts +0 -3
- package/dist/components/tour/index.mjs +0 -4
- package/dist/components/tour/utils/focus.d.ts +0 -1
- package/dist/components/tour/utils/focus.mjs +0 -6
- package/dist/components/tour/utils/is-visible.d.ts +0 -1
- package/dist/components/tour/utils/is-visible.mjs +0 -29
- package/dist/components/tour/utils/wait-element.d.ts +0 -6
- package/dist/components/tour/utils/wait-element.mjs +0 -45
- package/dist/components/truncate/Truncate.vue +0 -75
- package/dist/components/utils/array.d.ts +0 -2
- package/dist/components/utils/array.mjs +0 -19
- package/dist/components/utils/base64.d.ts +0 -8
- package/dist/components/utils/base64.mjs +0 -35
- package/dist/components/utils/color.d.ts +0 -17
- package/dist/components/utils/color.mjs +0 -14
- package/dist/components/utils/date.d.ts +0 -22
- package/dist/components/utils/date.mjs +0 -14
- package/dist/components/utils/value.d.ts +0 -8
- package/dist/components/utils/value.mjs +0 -7
- package/dist/components/utils/vnode.d.ts +0 -15
- package/dist/components/utils/vnode.mjs +0 -18
- package/dist/components/wizard/Wizard.vue +0 -84
- package/dist/components/wizard/WizardBody.vue +0 -50
- package/dist/components/wizard/WizardHeader.vue +0 -38
- package/dist/components/wizard/WizardHeader.vue.d.ts +0 -16
- package/dist/components/wizard/WizardStep.vue +0 -31
- package/dist/core/index.d.ts +0 -43
- package/dist/core/index.mjs +0 -148
- package/dist/directive/index.d.ts +0 -3
- package/dist/directive/index.mjs +0 -12
- package/dist/module.cjs +0 -5
- package/dist/module.d.ts +0 -27
- package/dist/runtime/plugins/persona.d.ts +0 -2
- package/dist/runtime/plugins/persona.js +0 -35
|
@@ -1,428 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
data-testid="popup"
|
|
4
|
-
:class="[classNames, popupClass]"
|
|
5
|
-
v-bind="popupAttrs">
|
|
6
|
-
<div
|
|
7
|
-
class="popup__icon"
|
|
8
|
-
data-testid="popup-icon"
|
|
9
|
-
:class="classIcon">
|
|
10
|
-
<component
|
|
11
|
-
:is="toastIcon"
|
|
12
|
-
v-if="toastIcon" />
|
|
13
|
-
</div>
|
|
14
|
-
<div class="popup__body">
|
|
15
|
-
<div
|
|
16
|
-
v-if="title"
|
|
17
|
-
v-p-md.inline="title"
|
|
18
|
-
class="popup__title" />
|
|
19
|
-
<div
|
|
20
|
-
v-if="text"
|
|
21
|
-
v-p-md.inline="text"
|
|
22
|
-
class="popup__text"
|
|
23
|
-
data-testid="popup-text" />
|
|
24
|
-
<div
|
|
25
|
-
v-if="actions.length > 0"
|
|
26
|
-
class="popup__actions">
|
|
27
|
-
<template
|
|
28
|
-
v-for="(action, i) in actions"
|
|
29
|
-
:key="i">
|
|
30
|
-
<a
|
|
31
|
-
v-p-md.inline="action.text"
|
|
32
|
-
data-testid="popup-action"
|
|
33
|
-
href="javascript:void"
|
|
34
|
-
class="popup__action"
|
|
35
|
-
v-bind="action.attrs"
|
|
36
|
-
@click.prevent="onActionClick(action)" />
|
|
37
|
-
</template>
|
|
38
|
-
</div>
|
|
39
|
-
</div>
|
|
40
|
-
<div
|
|
41
|
-
v-if="dismissable"
|
|
42
|
-
data-testid="popup-close"
|
|
43
|
-
class="popup__close"
|
|
44
|
-
@click="close">
|
|
45
|
-
<IconClose />
|
|
46
|
-
</div>
|
|
47
|
-
</div>
|
|
48
|
-
</template>
|
|
49
|
-
|
|
50
|
-
<script lang="ts" setup>
|
|
51
|
-
import type { Component, PropType } from 'vue-demi'
|
|
52
|
-
import {
|
|
53
|
-
computed,
|
|
54
|
-
h,
|
|
55
|
-
} from 'vue-demi'
|
|
56
|
-
import type {
|
|
57
|
-
PopupActionOption,
|
|
58
|
-
PopupStyleVariant,
|
|
59
|
-
PopupTypeVariant,
|
|
60
|
-
} from '.'
|
|
61
|
-
import IconClose from '@privyid/persona-icon/vue/close/16.vue'
|
|
62
|
-
import { vPMd } from '../markdown'
|
|
63
|
-
import type { ColorVariant } from '../button'
|
|
64
|
-
import type { AdditionalAttr } from '../global/types'
|
|
65
|
-
import { useNotifyItem } from '../notify'
|
|
66
|
-
import { PopupIcons } from '.'
|
|
67
|
-
|
|
68
|
-
const props = defineProps({
|
|
69
|
-
title: {
|
|
70
|
-
type : String,
|
|
71
|
-
default: '',
|
|
72
|
-
},
|
|
73
|
-
text: {
|
|
74
|
-
type : String,
|
|
75
|
-
default: '',
|
|
76
|
-
},
|
|
77
|
-
type: {
|
|
78
|
-
type : String as PropType<PopupTypeVariant>,
|
|
79
|
-
default: 'info',
|
|
80
|
-
},
|
|
81
|
-
variant: {
|
|
82
|
-
type : String as PropType<PopupStyleVariant>,
|
|
83
|
-
default: 'simple',
|
|
84
|
-
},
|
|
85
|
-
icon: {
|
|
86
|
-
type: [
|
|
87
|
-
String,
|
|
88
|
-
Object,
|
|
89
|
-
Function,
|
|
90
|
-
] as PropType<string | Component>,
|
|
91
|
-
default: undefined,
|
|
92
|
-
},
|
|
93
|
-
iconColor: {
|
|
94
|
-
type : String as PropType<ColorVariant>,
|
|
95
|
-
default: undefined,
|
|
96
|
-
},
|
|
97
|
-
popupAttrs: {
|
|
98
|
-
type : Object as PropType<AdditionalAttr>,
|
|
99
|
-
default: undefined,
|
|
100
|
-
},
|
|
101
|
-
popupClass: {
|
|
102
|
-
type: [
|
|
103
|
-
String,
|
|
104
|
-
Array,
|
|
105
|
-
Object,
|
|
106
|
-
],
|
|
107
|
-
default: undefined,
|
|
108
|
-
},
|
|
109
|
-
actions: {
|
|
110
|
-
type : Array as PropType<PopupActionOption[]>,
|
|
111
|
-
default: () => ([]),
|
|
112
|
-
},
|
|
113
|
-
dismissable: {
|
|
114
|
-
type : Boolean,
|
|
115
|
-
default: true,
|
|
116
|
-
},
|
|
117
|
-
})
|
|
118
|
-
|
|
119
|
-
const notify = useNotifyItem()
|
|
120
|
-
const emit = defineEmits<{
|
|
121
|
-
'dismissed': [],
|
|
122
|
-
}>()
|
|
123
|
-
|
|
124
|
-
const classNames = computed(() => {
|
|
125
|
-
const result: string[] = ['popup']
|
|
126
|
-
|
|
127
|
-
if (props.type)
|
|
128
|
-
result.push(`popup--${props.type}`)
|
|
129
|
-
|
|
130
|
-
if (props.variant)
|
|
131
|
-
result.push(`popup--${props.variant}`)
|
|
132
|
-
|
|
133
|
-
return result
|
|
134
|
-
})
|
|
135
|
-
|
|
136
|
-
const classIcon = computed(() => {
|
|
137
|
-
const result: string[] = ['default']
|
|
138
|
-
|
|
139
|
-
if (props.iconColor)
|
|
140
|
-
result.push(`popup__icon--${props.iconColor}`)
|
|
141
|
-
|
|
142
|
-
return result
|
|
143
|
-
})
|
|
144
|
-
|
|
145
|
-
const toastIcon = computed(() => {
|
|
146
|
-
if (!props.icon)
|
|
147
|
-
return PopupIcons[props.type]
|
|
148
|
-
|
|
149
|
-
if (typeof props.icon === 'string') {
|
|
150
|
-
return () => h('img', {
|
|
151
|
-
'src' : props.icon,
|
|
152
|
-
'width' : 20,
|
|
153
|
-
'height' : 20,
|
|
154
|
-
'data-testid': 'popup-icon-image',
|
|
155
|
-
})
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
return props.icon
|
|
159
|
-
})
|
|
160
|
-
|
|
161
|
-
function close () {
|
|
162
|
-
notify.close()
|
|
163
|
-
|
|
164
|
-
emit('dismissed')
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
async function onActionClick (action: PopupActionOption) {
|
|
168
|
-
const event = new MouseEvent('click')
|
|
169
|
-
|
|
170
|
-
if (typeof action.onClick === 'function')
|
|
171
|
-
await action.onClick(Object.assign(event, { close }))
|
|
172
|
-
|
|
173
|
-
if (!event.defaultPrevented)
|
|
174
|
-
close()
|
|
175
|
-
}
|
|
176
|
-
</script>
|
|
177
|
-
|
|
178
|
-
<style lang="postcss">
|
|
179
|
-
.popup {
|
|
180
|
-
--p-popup-icon-color-primary: theme(textColor.brand.accent.DEFAULT);
|
|
181
|
-
--p-popup-icon-color-primary-dark: theme(textColor.dark.brand.accent.DEFAULT);
|
|
182
|
-
|
|
183
|
-
/**
|
|
184
|
-
* global style
|
|
185
|
-
* of popup
|
|
186
|
-
*/
|
|
187
|
-
@apply flex shadow-xl rounded w-72 md:w-96 overflow-hidden;
|
|
188
|
-
|
|
189
|
-
.popup__icon,
|
|
190
|
-
.popup__close {
|
|
191
|
-
@apply shrink-0 p-4;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
.popup__icon {
|
|
195
|
-
@apply flex items-center justify-center;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
.popup__close {
|
|
199
|
-
@apply cursor-pointer text-muted hover:text-default;
|
|
200
|
-
@apply dark:text-dark-muted dark:hover:text-dark-default;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
.popup__body {
|
|
204
|
-
@apply py-4 grow space-y-2 flex flex-col overflow-hidden justify-center;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
.popup__title {
|
|
208
|
-
@apply text-sm font-medium leading-[1.75] truncate;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
.popup__text {
|
|
212
|
-
@apply text-xs line-clamp-2;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
.popup__actions {
|
|
216
|
-
@apply space-x-2;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
.popup__action {
|
|
220
|
-
@apply text-xs truncate hover:underline;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
/**
|
|
224
|
-
* Give padding-left when
|
|
225
|
-
* popup variant is not filled
|
|
226
|
-
*/
|
|
227
|
-
&:not(.popup--filled) {
|
|
228
|
-
.popup__body {
|
|
229
|
-
@apply pl-4;
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
/**
|
|
234
|
-
* set popup info title
|
|
235
|
-
* and text color
|
|
236
|
-
*/
|
|
237
|
-
&:is(.popup--info) {
|
|
238
|
-
.popup__title {
|
|
239
|
-
@apply text-default;
|
|
240
|
-
@apply dark:text-dark-default;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
.popup__text {
|
|
244
|
-
@apply text-subtle;
|
|
245
|
-
@apply dark:text-dark-subtle;
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
/**
|
|
250
|
-
* set popup info icon color.
|
|
251
|
-
* provide background when
|
|
252
|
-
* variant is filled
|
|
253
|
-
*/
|
|
254
|
-
&&--info {
|
|
255
|
-
&:is(.popup--simple) {
|
|
256
|
-
.popup__icon {
|
|
257
|
-
@apply bg-ground text-info;
|
|
258
|
-
@apply dark:bg-dark-ground dark:text-dark-info;
|
|
259
|
-
|
|
260
|
-
&--default {
|
|
261
|
-
@apply text-default;
|
|
262
|
-
@apply dark:text-dark-default;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
&--warning {
|
|
266
|
-
@apply text-warning;
|
|
267
|
-
@apply dark:text-dark-warning;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
&--success {
|
|
271
|
-
@apply text-success;
|
|
272
|
-
@apply dark:text-dark-success;
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
&--primary {
|
|
276
|
-
@apply text-[color:var(--p-toast-icon-color-primary)];
|
|
277
|
-
@apply dark:text-[color:var(--p-toast-icon-color-primary-dark)];
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
&--danger {
|
|
281
|
-
@apply text-danger;
|
|
282
|
-
@apply dark:text-danger;
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
.popup__title {
|
|
286
|
-
@apply text-default;
|
|
287
|
-
@apply dark:text-dark-default;
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
&.popup--filled {
|
|
291
|
-
@apply bg-ground text-info;
|
|
292
|
-
@apply dark:bg-dark-ground dark:text-dark-info;
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
/**
|
|
297
|
-
* provide title color
|
|
298
|
-
* in simple variant.
|
|
299
|
-
* set popup icon color and background.
|
|
300
|
-
* provide background color when
|
|
301
|
-
* variant is filled
|
|
302
|
-
*/
|
|
303
|
-
&&--error {
|
|
304
|
-
&.popup--simple {
|
|
305
|
-
.popup__title {
|
|
306
|
-
@apply text-danger;
|
|
307
|
-
@apply dark:text-dark-danger;
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
.popup__icon,
|
|
312
|
-
&.popup--filled {
|
|
313
|
-
@apply bg-danger-emphasis;
|
|
314
|
-
@apply dark:bg-dark-danger-emphasis;
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
&&--success {
|
|
319
|
-
&.popup--simple {
|
|
320
|
-
.popup__title {
|
|
321
|
-
@apply text-success;
|
|
322
|
-
@apply dark:text-dark-success;
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
.popup__icon,
|
|
327
|
-
&.popup--filled {
|
|
328
|
-
@apply bg-success-emphasis;
|
|
329
|
-
@apply dark:bg-dark-success-emphasis;
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
&&--warning {
|
|
334
|
-
&.popup--simple {
|
|
335
|
-
.popup__title {
|
|
336
|
-
@apply text-warning;
|
|
337
|
-
@apply dark:text-dark-warning;
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
.popup__icon,
|
|
342
|
-
&.popup--filled {
|
|
343
|
-
@apply bg-warning-emphasis;
|
|
344
|
-
@apply dark:bg-dark-warning-emphasis;
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
/**
|
|
349
|
-
* set global style
|
|
350
|
-
* of popup in simple
|
|
351
|
-
* variant
|
|
352
|
-
*/
|
|
353
|
-
&&--simple {
|
|
354
|
-
@apply bg-default;
|
|
355
|
-
@apply dark:bg-dark-default;
|
|
356
|
-
|
|
357
|
-
.popup__text {
|
|
358
|
-
@apply text-subtle;
|
|
359
|
-
@apply dark:text-dark-subtle;
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
&:not(.popup--info) {
|
|
363
|
-
.popup__icon {
|
|
364
|
-
@apply text-state-emphasis;
|
|
365
|
-
@apply dark:text-dark-state-emphasis;
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
.popup__action {
|
|
370
|
-
@apply text-info;
|
|
371
|
-
@apply dark:text-dark-info;
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
/**
|
|
376
|
-
* aligning popup icon
|
|
377
|
-
* when variant is filled.
|
|
378
|
-
* provide text color
|
|
379
|
-
* when popup color isn't info
|
|
380
|
-
*/
|
|
381
|
-
&&--filled {
|
|
382
|
-
.popup__icon {
|
|
383
|
-
@apply items-start;
|
|
384
|
-
|
|
385
|
-
> svg {
|
|
386
|
-
@apply h-[24.56px];
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
&--default {
|
|
390
|
-
@apply text-on-emphasis;
|
|
391
|
-
@apply dark:text-dark-on-emphasis;
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
&--warning {
|
|
395
|
-
@apply text-warning;
|
|
396
|
-
@apply dark:text-dark-warning;
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
&--success {
|
|
400
|
-
@apply text-success;
|
|
401
|
-
@apply dark:text-dark-success;
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
&--primary {
|
|
405
|
-
@apply text-[color:var(--p-popup-icon-color-primary)];
|
|
406
|
-
@apply dark:text-[color:var(--p-popup-icon-color-primary-dark)];
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
&--danger {
|
|
410
|
-
@apply text-danger;
|
|
411
|
-
@apply dark:text-danger;
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
&:not(.popup--info),
|
|
416
|
-
&:not(.popup--info) .popup__action {
|
|
417
|
-
@apply text-state-emphasis;
|
|
418
|
-
@apply dark:text-dark-state-emphasis;
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
&:not(.popup--info) .popup__close {
|
|
422
|
-
@apply text-on-emphasis/70 hover:text-on-emphasis;
|
|
423
|
-
@apply dark:text-dark-on-emphasis/70 dark:hover:text-dark-on-emphasis;
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
</style>
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import type { HTMLAttributes, Component } from 'vue-demi';
|
|
2
|
-
import type { ColorVariant } from '../button';
|
|
3
|
-
import type { NotifyInstance, NotifyOption } from '../notify';
|
|
4
|
-
import type { AdditionalAttr } from '../global/types';
|
|
5
|
-
import type { RequireAtLeastOne } from 'type-fest';
|
|
6
|
-
import type pPopup from './Popup.vue';
|
|
7
|
-
export type PopupTypeVariant = 'info' | 'success' | 'warning' | 'error';
|
|
8
|
-
export type PopupStyleVariant = 'simple' | 'filled';
|
|
9
|
-
export type PopupInstance = NotifyInstance<typeof pPopup>;
|
|
10
|
-
export interface PopupActionOption {
|
|
11
|
-
text?: string;
|
|
12
|
-
onClick?: (event: MouseEvent & {
|
|
13
|
-
close: () => void;
|
|
14
|
-
}) => void | Promise<void>;
|
|
15
|
-
attrs?: AdditionalAttr;
|
|
16
|
-
}
|
|
17
|
-
interface Option extends Omit<NotifyOption, 'component'> {
|
|
18
|
-
type?: PopupTypeVariant;
|
|
19
|
-
variant?: PopupStyleVariant;
|
|
20
|
-
title?: string;
|
|
21
|
-
text?: string;
|
|
22
|
-
icon?: string | Component;
|
|
23
|
-
iconColor?: ColorVariant;
|
|
24
|
-
popupClass?: HTMLAttributes['class'];
|
|
25
|
-
popupAttrs?: AdditionalAttr;
|
|
26
|
-
dismissable?: boolean;
|
|
27
|
-
actions?: PopupActionOption[];
|
|
28
|
-
}
|
|
29
|
-
export declare const PopupIcons: {
|
|
30
|
-
info: any;
|
|
31
|
-
success: any;
|
|
32
|
-
warning: any;
|
|
33
|
-
error: any;
|
|
34
|
-
};
|
|
35
|
-
export type PopupOption = RequireAtLeastOne<Option, 'text' | 'title'>;
|
|
36
|
-
declare function showPopup(text: string, title?: string, type?: PopupTypeVariant, variant?: PopupStyleVariant): Promise<PopupInstance>;
|
|
37
|
-
declare function showPopup(option: PopupOption): Promise<PopupInstance>;
|
|
38
|
-
export default showPopup;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { markRaw } from "vue-demi";
|
|
2
|
-
import { showNotify } from "../notify/index.mjs";
|
|
3
|
-
import IconInfo from "@privyid/persona-icon/vue/information-circle-solid/20.vue";
|
|
4
|
-
import IconSuccess from "@privyid/persona-icon/vue/checkmark/20.vue";
|
|
5
|
-
import IconWarning from "@privyid/persona-icon/vue/exclamation-circle-solid/20.vue";
|
|
6
|
-
import IconError from "@privyid/persona-icon/vue/exclamation-triangle-solid/20.vue";
|
|
7
|
-
export const PopupIcons = {
|
|
8
|
-
info: markRaw(IconInfo),
|
|
9
|
-
success: markRaw(IconSuccess),
|
|
10
|
-
warning: markRaw(IconWarning),
|
|
11
|
-
error: markRaw(IconError)
|
|
12
|
-
};
|
|
13
|
-
async function showPopup(textOrOption, title, type, variant) {
|
|
14
|
-
if (typeof textOrOption === "string") {
|
|
15
|
-
return await showPopup({
|
|
16
|
-
text: textOrOption,
|
|
17
|
-
title,
|
|
18
|
-
type,
|
|
19
|
-
variant
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
const { default: pPopup } = await import("./Popup.vue");
|
|
23
|
-
const instance = await showNotify({
|
|
24
|
-
component: markRaw(pPopup),
|
|
25
|
-
props: textOrOption,
|
|
26
|
-
duration: textOrOption.duration,
|
|
27
|
-
position: textOrOption.position
|
|
28
|
-
});
|
|
29
|
-
return instance;
|
|
30
|
-
}
|
|
31
|
-
export default showPopup;
|
|
@@ -1,221 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
class="progress"
|
|
4
|
-
data-testid="progress"
|
|
5
|
-
:class="classNames">
|
|
6
|
-
<div class="progress__items">
|
|
7
|
-
<slot />
|
|
8
|
-
</div>
|
|
9
|
-
|
|
10
|
-
<div
|
|
11
|
-
v-if="titleVariant === 'general'"
|
|
12
|
-
data-testid="progress-title-general"
|
|
13
|
-
class="progress__title">
|
|
14
|
-
<template v-if="item.slots?.title">
|
|
15
|
-
<component :is="item.slots.title" />
|
|
16
|
-
</template>
|
|
17
|
-
<template v-else>
|
|
18
|
-
{{ item.title }}
|
|
19
|
-
</template>
|
|
20
|
-
</div>
|
|
21
|
-
</div>
|
|
22
|
-
</template>
|
|
23
|
-
|
|
24
|
-
<script lang="ts" setup>
|
|
25
|
-
import { findLast } from 'lodash-es'
|
|
26
|
-
import type {
|
|
27
|
-
PropType,
|
|
28
|
-
Slots,
|
|
29
|
-
VNode,
|
|
30
|
-
} from 'vue-demi'
|
|
31
|
-
import { computed } from 'vue-demi'
|
|
32
|
-
import { findAllChildren, toBoolean } from '../utils/vnode'
|
|
33
|
-
import type { IconVariant, TitleVariant } from '.'
|
|
34
|
-
|
|
35
|
-
interface ProgressLabel {
|
|
36
|
-
title: string,
|
|
37
|
-
slots: Slots,
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
const props = defineProps({
|
|
41
|
-
variant: {
|
|
42
|
-
type : String as PropType<IconVariant>,
|
|
43
|
-
default: 'dot',
|
|
44
|
-
},
|
|
45
|
-
titleVariant: {
|
|
46
|
-
type : String as PropType<TitleVariant>,
|
|
47
|
-
default: 'specific',
|
|
48
|
-
},
|
|
49
|
-
vertical: {
|
|
50
|
-
type : Boolean,
|
|
51
|
-
default: false,
|
|
52
|
-
},
|
|
53
|
-
})
|
|
54
|
-
|
|
55
|
-
const slots = defineSlots<{
|
|
56
|
-
'title'(): VNode[],
|
|
57
|
-
'default'(): VNode[],
|
|
58
|
-
}>()
|
|
59
|
-
|
|
60
|
-
const classNames = computed(() => {
|
|
61
|
-
const result: string[] = []
|
|
62
|
-
|
|
63
|
-
if (props.variant)
|
|
64
|
-
result.push(`progress--${props.variant}`)
|
|
65
|
-
|
|
66
|
-
if (props.titleVariant)
|
|
67
|
-
result.push(`progress--${props.titleVariant}`)
|
|
68
|
-
|
|
69
|
-
if (props.vertical)
|
|
70
|
-
result.push('progress--vertical')
|
|
71
|
-
else
|
|
72
|
-
result.push('progress--horizontal')
|
|
73
|
-
|
|
74
|
-
return result
|
|
75
|
-
})
|
|
76
|
-
|
|
77
|
-
const item = computed<ProgressLabel>(() => {
|
|
78
|
-
const vnodes = findAllChildren(slots.default(), 'ProgressItem')
|
|
79
|
-
const activeNode = findLast(vnodes, (vnode) => {
|
|
80
|
-
return toBoolean(vnode.props?.active)
|
|
81
|
-
})
|
|
82
|
-
|
|
83
|
-
return {
|
|
84
|
-
title: activeNode?.props?.title ?? '',
|
|
85
|
-
slots: activeNode?.children as Slots ?? {},
|
|
86
|
-
}
|
|
87
|
-
})
|
|
88
|
-
</script>
|
|
89
|
-
|
|
90
|
-
<style lang="postcss">
|
|
91
|
-
.progress {
|
|
92
|
-
--p-bg-bar-active-state: theme(backgroundColor.info.emphasis);
|
|
93
|
-
--p-bg-bar-normal-state: theme(backgroundColor.base.DEFAULT);
|
|
94
|
-
--p-bg-dark-bar-active-state: theme(backgroundColor.dark.info.emphasis);
|
|
95
|
-
--p-bg-dark-bar-normal-state: theme(backgroundColor.dark.base);
|
|
96
|
-
|
|
97
|
-
&__items {
|
|
98
|
-
@apply flex overflow-hidden;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
&__item {
|
|
102
|
-
@apply flex-1 flex justify-center relative;
|
|
103
|
-
|
|
104
|
-
&:first-child .progress__bar {
|
|
105
|
-
@apply hidden;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
&__content {
|
|
110
|
-
@apply flex flex-col space-y-2;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
&__point {
|
|
114
|
-
@apply w-7 h-7 rounded-full bg-[color:var(--p-bg-bar-normal-state)] flex items-center justify-center text-default;
|
|
115
|
-
@apply dark:bg-[color:var(--p-bg-dark-bar-normal-state)] dark:text-dark-default;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
&__bar {
|
|
119
|
-
@apply absolute rounded-full transition-[background-position] ease-linear duration-150;
|
|
120
|
-
@apply from-[var(--p-bg-bar-active-state)_50%] to-[var(--p-bg-bar-normal-state)_50%];
|
|
121
|
-
@apply dark:from-[var(--p-bg-dark-bar-active-state)_50%] dark:to-[var(--p-bg-dark-bar-normal-state)_50%];
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
&__title {
|
|
125
|
-
@apply truncate text-sm text-center w-full text-default;
|
|
126
|
-
@apply dark:text-dark-default;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
& > .progress__title {
|
|
130
|
-
@apply pt-2;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
&--active {
|
|
134
|
-
.progress__point {
|
|
135
|
-
@apply bg-brand-accent text-state-emphasis;
|
|
136
|
-
@apply dark:bg-dark-brand-accent dark:text-dark-state-emphasis;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
&--horizontal {
|
|
141
|
-
@apply w-full;
|
|
142
|
-
|
|
143
|
-
.progress__items {
|
|
144
|
-
@apply flex-row;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.progress__content {
|
|
148
|
-
@apply justify-start items-center;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.progress__bar {
|
|
152
|
-
@apply w-[calc(100%_-_3rem)] h-1 top-5 right-[calc(50%_+_1.5rem)] bg-gradient-to-r bg-[length:210%_100%] bg-right;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
.progress--active + .progress--active {
|
|
156
|
-
.progress__bar {
|
|
157
|
-
@apply bg-left;
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
&--vertical {
|
|
163
|
-
@apply h-full;
|
|
164
|
-
|
|
165
|
-
> .progress__title {
|
|
166
|
-
@apply hidden;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
.progress__items {
|
|
170
|
-
@apply flex-col items-center justify-between h-full space-y-2;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
.progress__content {
|
|
174
|
-
@apply justify-center items-center;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
.progress__bar {
|
|
178
|
-
@apply h-[calc(100%_-_4.25rem)] w-1 bottom-[calc(50%_+_2.25rem)] left-1/2 -translate-x-1/2 bg-gradient-to-b bg-bottom bg-[length:100%_210%];
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
.progress--active + .progress--active {
|
|
182
|
-
.progress__bar {
|
|
183
|
-
@apply bg-top;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
&--dot {
|
|
189
|
-
.progress__point-item {
|
|
190
|
-
@apply w-3 h-3 rounded-full bg-default;
|
|
191
|
-
@apply dark:bg-dark-default;
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
&--counter {
|
|
196
|
-
counter-reset: progress;
|
|
197
|
-
|
|
198
|
-
.progress__point {
|
|
199
|
-
counter-increment: progress;
|
|
200
|
-
|
|
201
|
-
&-item::before {
|
|
202
|
-
content: counter(progress);
|
|
203
|
-
|
|
204
|
-
@apply text-sm font-medium;
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
&--specific {
|
|
210
|
-
> .progress__title {
|
|
211
|
-
@apply hidden;
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
&--general {
|
|
216
|
-
.progress__content > .progress__title {
|
|
217
|
-
@apply hidden;
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
</style>
|