@privyid/persona 1.1.2 → 1.2.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/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,174 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<img
|
|
3
|
-
data-testid="qrcode"
|
|
4
|
-
class="qrcode"
|
|
5
|
-
:width="size"
|
|
6
|
-
:height="size"
|
|
7
|
-
:src="preview"
|
|
8
|
-
:alt="String(data)">
|
|
9
|
-
</template>
|
|
10
|
-
|
|
11
|
-
<script lang="ts" setup>
|
|
12
|
-
import type { PropType } from 'vue-demi'
|
|
13
|
-
import {
|
|
14
|
-
computed,
|
|
15
|
-
onMounted,
|
|
16
|
-
shallowRef,
|
|
17
|
-
} from 'vue-demi'
|
|
18
|
-
import type QRCode from 'qr-code-styling'
|
|
19
|
-
import type {
|
|
20
|
-
Options,
|
|
21
|
-
ErrorCorrectionLevel,
|
|
22
|
-
TypeNumber,
|
|
23
|
-
Mode,
|
|
24
|
-
} from 'qr-code-styling'
|
|
25
|
-
import type { StyleVariant } from '.'
|
|
26
|
-
import type { ModelModifier } from '../dropzone'
|
|
27
|
-
import { defuFn } from 'defu'
|
|
28
|
-
import { usePreview } from '../cropper/utils/use-preview'
|
|
29
|
-
import { useVModel } from '../input'
|
|
30
|
-
import { createSpinner } from '../avatar/utils/create-image'
|
|
31
|
-
import { fromBase64 } from '../utils/base64'
|
|
32
|
-
import { toDataURL } from '../signature-draw/utils/canvas'
|
|
33
|
-
import { watchDebounced } from '@vueuse/core'
|
|
34
|
-
|
|
35
|
-
const props = defineProps({
|
|
36
|
-
modelValue: {
|
|
37
|
-
type : [String, globalThis.File],
|
|
38
|
-
default: undefined,
|
|
39
|
-
},
|
|
40
|
-
modelModifiers: {
|
|
41
|
-
type : Object as PropType<ModelModifier>,
|
|
42
|
-
default: () => ({} as ModelModifier),
|
|
43
|
-
},
|
|
44
|
-
data: {
|
|
45
|
-
type : undefined as PropType<any>,
|
|
46
|
-
default: undefined,
|
|
47
|
-
},
|
|
48
|
-
variant: {
|
|
49
|
-
type : String as PropType<StyleVariant>,
|
|
50
|
-
default: 'square',
|
|
51
|
-
},
|
|
52
|
-
size: {
|
|
53
|
-
type : [Number, String],
|
|
54
|
-
default: 200,
|
|
55
|
-
},
|
|
56
|
-
logo: {
|
|
57
|
-
type : String,
|
|
58
|
-
default: undefined,
|
|
59
|
-
},
|
|
60
|
-
logoSize: {
|
|
61
|
-
type : [Number, String],
|
|
62
|
-
default: 0.8,
|
|
63
|
-
},
|
|
64
|
-
logoMargin: {
|
|
65
|
-
type : [Number, String],
|
|
66
|
-
default: 8,
|
|
67
|
-
},
|
|
68
|
-
color: {
|
|
69
|
-
type : String,
|
|
70
|
-
default: '#000000',
|
|
71
|
-
},
|
|
72
|
-
bgColor: {
|
|
73
|
-
type : String,
|
|
74
|
-
default: '#ffffff',
|
|
75
|
-
},
|
|
76
|
-
ecc: {
|
|
77
|
-
type : String as PropType<ErrorCorrectionLevel>,
|
|
78
|
-
default: 'M',
|
|
79
|
-
},
|
|
80
|
-
typeNumber: {
|
|
81
|
-
type : Number as PropType<TypeNumber>,
|
|
82
|
-
default: 0,
|
|
83
|
-
},
|
|
84
|
-
mode: {
|
|
85
|
-
type : String as PropType<Mode>,
|
|
86
|
-
default: undefined,
|
|
87
|
-
},
|
|
88
|
-
options: {
|
|
89
|
-
type : Object as PropType<Options>,
|
|
90
|
-
default: undefined,
|
|
91
|
-
},
|
|
92
|
-
})
|
|
93
|
-
|
|
94
|
-
const model = useVModel(props)
|
|
95
|
-
const preview = usePreview(model, createSpinner(Number(props.size)))
|
|
96
|
-
const qrCode = shallowRef<QRCode>()
|
|
97
|
-
|
|
98
|
-
const qrOptions = computed(() => {
|
|
99
|
-
return defuFn<Options, [Options]>(props.options, {
|
|
100
|
-
type : 'canvas',
|
|
101
|
-
data : props.data,
|
|
102
|
-
width : props.size as number,
|
|
103
|
-
height : props.size as number,
|
|
104
|
-
image : props.logo,
|
|
105
|
-
dotsOptions: {
|
|
106
|
-
type : props.variant,
|
|
107
|
-
color: props.color,
|
|
108
|
-
},
|
|
109
|
-
cornersDotOptions : { type: props.variant === 'dots' ? 'dot' : undefined },
|
|
110
|
-
cornersSquareOptions: { type: props.variant === 'dots' ? 'extra-rounded' : undefined },
|
|
111
|
-
qrOptions : {
|
|
112
|
-
mode : props.mode,
|
|
113
|
-
typeNumber : props.typeNumber,
|
|
114
|
-
errorCorrectionLevel: props.ecc,
|
|
115
|
-
},
|
|
116
|
-
imageOptions: {
|
|
117
|
-
margin : props.logoMargin as number,
|
|
118
|
-
imageSize: props.logoSize as number,
|
|
119
|
-
},
|
|
120
|
-
backgroundOptions: { color: props.bgColor },
|
|
121
|
-
})
|
|
122
|
-
})
|
|
123
|
-
|
|
124
|
-
watchDebounced(() => [
|
|
125
|
-
props.data,
|
|
126
|
-
props.variant,
|
|
127
|
-
props.size,
|
|
128
|
-
props.logo,
|
|
129
|
-
props.logoSize,
|
|
130
|
-
props.logoMargin,
|
|
131
|
-
props.color,
|
|
132
|
-
props.bgColor,
|
|
133
|
-
props.ecc,
|
|
134
|
-
props.typeNumber,
|
|
135
|
-
props.mode,
|
|
136
|
-
props.options,
|
|
137
|
-
], () => {
|
|
138
|
-
load()
|
|
139
|
-
}, { debounce: 300 })
|
|
140
|
-
|
|
141
|
-
onMounted(() => {
|
|
142
|
-
load()
|
|
143
|
-
})
|
|
144
|
-
|
|
145
|
-
async function load () {
|
|
146
|
-
if (props.data) {
|
|
147
|
-
if (qrCode.value)
|
|
148
|
-
qrCode.value.update(qrOptions.value)
|
|
149
|
-
else {
|
|
150
|
-
const { default: QRStyling } = await import('qr-code-styling')
|
|
151
|
-
|
|
152
|
-
qrCode.value = new QRStyling(qrOptions.value)
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
const canvas = await qrCode.value._getElement('png')
|
|
156
|
-
const result = toDataURL(canvas as HTMLCanvasElement, 'image/png')
|
|
157
|
-
const value = props.modelModifiers.base64
|
|
158
|
-
? result
|
|
159
|
-
: fromBase64(result)
|
|
160
|
-
|
|
161
|
-
model.value = value
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
defineEmits<{
|
|
166
|
-
'update:modelValue': [unknown],
|
|
167
|
-
}>()
|
|
168
|
-
</script>
|
|
169
|
-
|
|
170
|
-
<style lang="postcss">
|
|
171
|
-
.qrcode {
|
|
172
|
-
@apply max-w-full h-auto;
|
|
173
|
-
}
|
|
174
|
-
</style>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type StyleVariant = 'square' | 'rounded' | 'dots';
|
|
File without changes
|
|
@@ -1,304 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<label
|
|
3
|
-
data-testid="radio"
|
|
4
|
-
class="radio"
|
|
5
|
-
:class="classNames"
|
|
6
|
-
@click.prevent="toggle">
|
|
7
|
-
<span class="radio__icon">
|
|
8
|
-
<IconCheck v-if="appearance === 'option'" />
|
|
9
|
-
<svg
|
|
10
|
-
v-else-if="appearance === 'checkbox'"
|
|
11
|
-
width="10"
|
|
12
|
-
height="10"
|
|
13
|
-
viewBox="0 0 14 10"
|
|
14
|
-
fill="none"
|
|
15
|
-
xmlns="http://www.w3.org/2000/svg">
|
|
16
|
-
<path
|
|
17
|
-
fill-rule="evenodd"
|
|
18
|
-
clip-rule="evenodd"
|
|
19
|
-
d="M3.81581 8.48528L5.23002 9.8995L6.64423 8.48528L13.7153 1.41421L12.3011 0L5.23002 7.07107L1.69449 3.53553L0.280273 4.94975L3.81581 8.48528Z" />
|
|
20
|
-
</svg>
|
|
21
|
-
|
|
22
|
-
<svg
|
|
23
|
-
v-else
|
|
24
|
-
width="10"
|
|
25
|
-
height="10"
|
|
26
|
-
viewBox="0 0 14 14"
|
|
27
|
-
fill="none"
|
|
28
|
-
xmlns="http://www.w3.org/2000/svg">
|
|
29
|
-
<circle
|
|
30
|
-
cx="7"
|
|
31
|
-
cy="7"
|
|
32
|
-
r="6" />
|
|
33
|
-
</svg>
|
|
34
|
-
</span>
|
|
35
|
-
<span class="radio__label">
|
|
36
|
-
<slot :is-checked="model" />
|
|
37
|
-
</span>
|
|
38
|
-
<input
|
|
39
|
-
type="radio"
|
|
40
|
-
:value="model"
|
|
41
|
-
:name="name"
|
|
42
|
-
:disabled="disabled || readonly">
|
|
43
|
-
</label>
|
|
44
|
-
</template>
|
|
45
|
-
|
|
46
|
-
<script lang="ts" setup>
|
|
47
|
-
import { useVModel } from '.'
|
|
48
|
-
import IconCheck from '@privyid/persona-icon/vue/checkmark/20.vue'
|
|
49
|
-
import type { PropType, VNode } from 'vue-demi'
|
|
50
|
-
import { computed } from 'vue-demi'
|
|
51
|
-
|
|
52
|
-
type AppearanceType = 'radio' | 'checkbox' | 'option' | 'none'
|
|
53
|
-
|
|
54
|
-
const props = defineProps({
|
|
55
|
-
name: {
|
|
56
|
-
type : String,
|
|
57
|
-
default: '',
|
|
58
|
-
},
|
|
59
|
-
modelValue: {
|
|
60
|
-
type : undefined as PropType<any>,
|
|
61
|
-
default: false,
|
|
62
|
-
},
|
|
63
|
-
value: {
|
|
64
|
-
type : undefined as PropType<any>,
|
|
65
|
-
default: true,
|
|
66
|
-
},
|
|
67
|
-
checked: {
|
|
68
|
-
type : Boolean,
|
|
69
|
-
default: false,
|
|
70
|
-
},
|
|
71
|
-
readonly: {
|
|
72
|
-
type : Boolean,
|
|
73
|
-
default: false,
|
|
74
|
-
},
|
|
75
|
-
disabled: {
|
|
76
|
-
type : Boolean,
|
|
77
|
-
default: false,
|
|
78
|
-
},
|
|
79
|
-
appearance: {
|
|
80
|
-
type : String as PropType<AppearanceType>,
|
|
81
|
-
default: 'radio',
|
|
82
|
-
},
|
|
83
|
-
})
|
|
84
|
-
|
|
85
|
-
defineEmits<{
|
|
86
|
-
'update:modelValue': [boolean],
|
|
87
|
-
'change': [boolean],
|
|
88
|
-
}>()
|
|
89
|
-
|
|
90
|
-
const model = useVModel(props)
|
|
91
|
-
|
|
92
|
-
const classNames = computed(() => {
|
|
93
|
-
const result: string[] = []
|
|
94
|
-
|
|
95
|
-
if (model.value)
|
|
96
|
-
result.push('radio--checked')
|
|
97
|
-
|
|
98
|
-
if (props.readonly)
|
|
99
|
-
result.push('radio--readonly')
|
|
100
|
-
|
|
101
|
-
if (props.disabled)
|
|
102
|
-
result.push('radio--disabled')
|
|
103
|
-
|
|
104
|
-
if (props.appearance)
|
|
105
|
-
result.push(`radio--${props.appearance}`)
|
|
106
|
-
|
|
107
|
-
return result
|
|
108
|
-
})
|
|
109
|
-
|
|
110
|
-
function toggle () {
|
|
111
|
-
if (!props.disabled && !props.readonly)
|
|
112
|
-
model.value = true
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
defineSlots<{
|
|
116
|
-
'default'(props: { isChecked: boolean }): VNode[],
|
|
117
|
-
}>()
|
|
118
|
-
</script>
|
|
119
|
-
|
|
120
|
-
<style lang="postcss">
|
|
121
|
-
.radio {
|
|
122
|
-
@apply inline-flex space-x-2 relative cursor-pointer select-none items-baseline;
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* hide default appearance
|
|
126
|
-
* radio
|
|
127
|
-
*/
|
|
128
|
-
& > input[type="radio"] {
|
|
129
|
-
@apply appearance-none w-0 h-0 opacity-0 absolute;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* replace default appearance
|
|
134
|
-
* with custom icon
|
|
135
|
-
*/
|
|
136
|
-
&__icon {
|
|
137
|
-
@apply w-4 h-4 border shrink-0 rounded-full border-subtle inline-flex items-center justify-center bg-default;
|
|
138
|
-
@apply dark:border-dark-subtle dark:bg-dark-default;
|
|
139
|
-
|
|
140
|
-
> svg {
|
|
141
|
-
@apply w-3 fill-default;
|
|
142
|
-
@apply dark:fill-dark-default;
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* give color of
|
|
148
|
-
* checkbox label
|
|
149
|
-
*/
|
|
150
|
-
&__label {
|
|
151
|
-
@apply text-default grow;
|
|
152
|
-
@apply dark:text-dark-default;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
/**
|
|
156
|
-
* disable radio
|
|
157
|
-
*/
|
|
158
|
-
&&--disabled {
|
|
159
|
-
@apply opacity-50;
|
|
160
|
-
|
|
161
|
-
&:not(.radio--checked) {
|
|
162
|
-
.radio__icon {
|
|
163
|
-
@apply bg-base border-subtle;
|
|
164
|
-
@apply dark:bg-dark-base dark:border-dark-subtle;
|
|
165
|
-
|
|
166
|
-
> svg {
|
|
167
|
-
@apply fill-base;
|
|
168
|
-
@apply dark:fill-dark-base;
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
/**
|
|
175
|
-
* checked radio
|
|
176
|
-
*/
|
|
177
|
-
&&--checked {
|
|
178
|
-
&:not(.radio--checkbox, .radio--option) {
|
|
179
|
-
.radio__icon {
|
|
180
|
-
@apply bg-default;
|
|
181
|
-
@apply dark:bg-dark-inverse;
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
.radio__icon {
|
|
186
|
-
@apply border-brand-accent;
|
|
187
|
-
@apply dark:border-dark-brand-accent;
|
|
188
|
-
|
|
189
|
-
> svg {
|
|
190
|
-
@apply fill-brand-accent;
|
|
191
|
-
@apply dark:fill-dark-brand-accent;
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
&.radio--checkbox {
|
|
196
|
-
.radio__icon {
|
|
197
|
-
@apply bg-brand-accent;
|
|
198
|
-
@apply dark:bg-dark-brand-accent;
|
|
199
|
-
|
|
200
|
-
> svg {
|
|
201
|
-
@apply fill-default;
|
|
202
|
-
@apply dark:fill-dark-inverse;
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
/**
|
|
209
|
-
* radio with checkbox
|
|
210
|
-
* appearance
|
|
211
|
-
*/
|
|
212
|
-
&&--checkbox {
|
|
213
|
-
.radio__icon {
|
|
214
|
-
@apply rounded-tn;
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* radio with option
|
|
220
|
-
* appearance
|
|
221
|
-
*/
|
|
222
|
-
&&--option {
|
|
223
|
-
.radio__icon {
|
|
224
|
-
@apply order-2 border-none invisible bg-transparent;
|
|
225
|
-
|
|
226
|
-
> svg {
|
|
227
|
-
@apply w-4;
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
.radio__label {
|
|
232
|
-
@apply grow;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
.dropdown__menu > .dropdown__subitem > & {
|
|
236
|
-
.radio__label {
|
|
237
|
-
@apply ml-0;
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
&.radio--checked {
|
|
242
|
-
.radio__icon {
|
|
243
|
-
@apply text-info visible;
|
|
244
|
-
@apply dark:text-dark-info;
|
|
245
|
-
|
|
246
|
-
> svg {
|
|
247
|
-
@apply fill-brand-accent;
|
|
248
|
-
@apply dark:fill-dark-brand-accent;
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
/**
|
|
255
|
-
* radio with
|
|
256
|
-
* appearance none
|
|
257
|
-
*/
|
|
258
|
-
&&--none {
|
|
259
|
-
.radio__icon {
|
|
260
|
-
@apply hidden;
|
|
261
|
-
|
|
262
|
-
+ .radio__label {
|
|
263
|
-
@apply ml-0;
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
&.radio--disabled {
|
|
268
|
-
.card {
|
|
269
|
-
@apply bg-base hover:shadow-none hover:cursor-default;
|
|
270
|
-
@apply dark:bg-dark-base;
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
/**
|
|
276
|
-
* checkbox in
|
|
277
|
-
* dropdown menu
|
|
278
|
-
*/
|
|
279
|
-
.dropdown__menu > .dropdown__subitem > .dropdown__item > &,
|
|
280
|
-
.dropdown__menu > .dropdown__subitem > & {
|
|
281
|
-
@apply w-full select-none;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
.dropdown__menu > .dropdown__subitem > .dropdown__item > & {
|
|
285
|
-
@apply py-[2px];
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
.dropdown__menu > .dropdown__subitem > & {
|
|
289
|
-
@apply px-4 py-[10px];
|
|
290
|
-
|
|
291
|
-
&:not(.radio--option) {
|
|
292
|
-
.radio__label {
|
|
293
|
-
@apply ml-4;
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
&:hover,
|
|
298
|
-
&:focus-visible {
|
|
299
|
-
@apply bg-default-alpha;
|
|
300
|
-
@apply dark:bg-dark-default-alpha;
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
</style>
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { CheckboxProps } from '../checkbox';
|
|
2
|
-
export type RadioProps = Omit<CheckboxProps, 'uncheckedValue'>;
|
|
3
|
-
export interface ChangedInteface {
|
|
4
|
-
value: any;
|
|
5
|
-
state: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare function useVModel(props: RadioProps): import("vue-demi").WritableComputedRef<boolean, boolean>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { computed, getCurrentInstance } from "vue-demi";
|
|
2
|
-
import { isEqual } from "../utils/value.mjs";
|
|
3
|
-
export function useVModel(props) {
|
|
4
|
-
const { emit } = getCurrentInstance();
|
|
5
|
-
const model = computed({
|
|
6
|
-
get() {
|
|
7
|
-
return isEqual(props.modelValue, props.value) || props.checked;
|
|
8
|
-
},
|
|
9
|
-
set(value) {
|
|
10
|
-
emit("change", value);
|
|
11
|
-
if (value)
|
|
12
|
-
emit("update:modelValue", props.value);
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
return model;
|
|
16
|
-
}
|