@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,249 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<aside
|
|
3
|
-
ref="sidebar"
|
|
4
|
-
data-testid="sidebar"
|
|
5
|
-
class="sidebar"
|
|
6
|
-
:class="classNames">
|
|
7
|
-
<slot
|
|
8
|
-
v-if="$slots.brand"
|
|
9
|
-
name="brand" />
|
|
10
|
-
<div
|
|
11
|
-
ref="sidebarMenus"
|
|
12
|
-
data-testid="sidebar-menus"
|
|
13
|
-
class="sidebar__menus">
|
|
14
|
-
<SidebarContent>
|
|
15
|
-
<slot />
|
|
16
|
-
</SidebarContent>
|
|
17
|
-
</div>
|
|
18
|
-
<div
|
|
19
|
-
ref="bottom"
|
|
20
|
-
data-testid="sidebar-bottom"
|
|
21
|
-
class="sidebar__bottom">
|
|
22
|
-
<SidebarContent bottom>
|
|
23
|
-
<slot />
|
|
24
|
-
</SidebarContent>
|
|
25
|
-
<slot name="bottom" />
|
|
26
|
-
</div>
|
|
27
|
-
</aside>
|
|
28
|
-
</template>
|
|
29
|
-
|
|
30
|
-
<script lang="ts" setup>
|
|
31
|
-
import type { PropType, VNode } from 'vue-demi'
|
|
32
|
-
import {
|
|
33
|
-
computed,
|
|
34
|
-
provide,
|
|
35
|
-
ref,
|
|
36
|
-
} from 'vue-demi'
|
|
37
|
-
import type { TypeVariant } from '.'
|
|
38
|
-
import { SIDEBAR_SETTINGS } from '.'
|
|
39
|
-
import { useVModel } from '../input'
|
|
40
|
-
import type { StyleVariant, AlignVariant } from '../nav'
|
|
41
|
-
import type { ToggleableVariant } from '../navbar'
|
|
42
|
-
import SidebarContent from './SidebarContent.vue'
|
|
43
|
-
|
|
44
|
-
const props = defineProps({
|
|
45
|
-
variant: {
|
|
46
|
-
type : String as PropType<StyleVariant>,
|
|
47
|
-
default: 'pills',
|
|
48
|
-
},
|
|
49
|
-
align: {
|
|
50
|
-
type : String as PropType<AlignVariant>,
|
|
51
|
-
default: 'left',
|
|
52
|
-
},
|
|
53
|
-
type: {
|
|
54
|
-
type : String as PropType<TypeVariant>,
|
|
55
|
-
default: 'wide',
|
|
56
|
-
},
|
|
57
|
-
fixed: {
|
|
58
|
-
type : Boolean,
|
|
59
|
-
default: false,
|
|
60
|
-
},
|
|
61
|
-
sticky: {
|
|
62
|
-
type : Boolean,
|
|
63
|
-
default: false,
|
|
64
|
-
},
|
|
65
|
-
toggleable: {
|
|
66
|
-
type : String as PropType<ToggleableVariant>,
|
|
67
|
-
default: undefined,
|
|
68
|
-
},
|
|
69
|
-
modelValue: {
|
|
70
|
-
type : Boolean,
|
|
71
|
-
default: true,
|
|
72
|
-
},
|
|
73
|
-
})
|
|
74
|
-
|
|
75
|
-
defineOptions({
|
|
76
|
-
models: {
|
|
77
|
-
prop : 'modelValue',
|
|
78
|
-
event: 'update:modelValue',
|
|
79
|
-
},
|
|
80
|
-
})
|
|
81
|
-
|
|
82
|
-
defineEmits<{
|
|
83
|
-
'update:modelValue': [boolean],
|
|
84
|
-
}>()
|
|
85
|
-
|
|
86
|
-
defineSlots<{
|
|
87
|
-
'brand'(): VNode[],
|
|
88
|
-
'bottom'(): VNode[],
|
|
89
|
-
}>()
|
|
90
|
-
|
|
91
|
-
const model = useVModel(props)
|
|
92
|
-
const bottom = ref<HTMLDivElement>()
|
|
93
|
-
|
|
94
|
-
const classNames = computed(() => {
|
|
95
|
-
const result: string[] = ['']
|
|
96
|
-
|
|
97
|
-
if (props.type)
|
|
98
|
-
result.push(`sidebar--${props.type}`)
|
|
99
|
-
|
|
100
|
-
if (props.align)
|
|
101
|
-
result.push(`sidebar--${props.align}`)
|
|
102
|
-
|
|
103
|
-
if (props.variant)
|
|
104
|
-
result.push(`sidebar--${props.variant}`)
|
|
105
|
-
|
|
106
|
-
if (props.fixed)
|
|
107
|
-
result.push('sidebar--fixed')
|
|
108
|
-
|
|
109
|
-
if (props.sticky)
|
|
110
|
-
result.push('sidebar--sticky')
|
|
111
|
-
|
|
112
|
-
if (props.toggleable)
|
|
113
|
-
result.push(`sidebar--toggleable sidebar--toggleable-${props.toggleable}`)
|
|
114
|
-
|
|
115
|
-
if (props.toggleable && props.fixed && model.value)
|
|
116
|
-
result.push('sidebar--show')
|
|
117
|
-
|
|
118
|
-
return result
|
|
119
|
-
})
|
|
120
|
-
|
|
121
|
-
provide(SIDEBAR_SETTINGS, {
|
|
122
|
-
variant: props.variant,
|
|
123
|
-
align : props.align,
|
|
124
|
-
type : props.type,
|
|
125
|
-
})
|
|
126
|
-
</script>
|
|
127
|
-
|
|
128
|
-
<style lang="postcss">
|
|
129
|
-
.sidebar {
|
|
130
|
-
--p-sidebar-size-narrow: 60px;
|
|
131
|
-
--p-sidebar-size-wide: 230px;
|
|
132
|
-
--p-sidebar-bg: theme(backgroundColor.DEFAULT);
|
|
133
|
-
--p-sidebar-bg-dark: theme(backgroundColor.dark.DEFAULT);
|
|
134
|
-
--p-sidebar-z-index: theme(zIndex.fixed);
|
|
135
|
-
--p-sidebar-sticky-top: theme(spacing.0);
|
|
136
|
-
--p-sidebar-fixed-top: theme(spacing.0);
|
|
137
|
-
--p-sidebar-padding-x: theme(spacing.2);
|
|
138
|
-
--p-sidebar-padding-left: var(--p-sidebar-padding-x);
|
|
139
|
-
--p-sidebar-padding-right: var(--p-sidebar-padding-x);
|
|
140
|
-
--p-sidebar-padding-y: theme(spacing.4);
|
|
141
|
-
--p-sidebar-padding-top: var(--p-sidebar-padding-y);
|
|
142
|
-
--p-sidebar-padding-bottom: var(--p-sidebar-padding-y);
|
|
143
|
-
--p-sidebar-shadow: theme(boxShadow.lg);
|
|
144
|
-
|
|
145
|
-
@apply bg-[color:var(--p-sidebar-bg)] pt-[var(--p-sidebar-padding-top)] pb-[var(--p-sidebar-padding-bottom)] pl-[var(--p-sidebar-padding-left)] pr-[var(--p-sidebar-padding-right)] flex flex-col items-stretch;
|
|
146
|
-
@apply dark:bg-[color:var(--p-sidebar-bg-dark)];
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* Default sidebar has
|
|
150
|
-
* 230px width
|
|
151
|
-
*/
|
|
152
|
-
&:not(.sidebar--narrow) {
|
|
153
|
-
@apply w-[var(--p-sidebar-size-wide)];
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* Right-align sidebar
|
|
158
|
-
*/
|
|
159
|
-
&:not(.sidebar--fixed) {
|
|
160
|
-
&.sidebar--right {
|
|
161
|
-
@apply ml-auto;
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* Fixed sidebar
|
|
167
|
-
*/
|
|
168
|
-
&&--fixed {
|
|
169
|
-
@apply fixed z-[var(--p-sidebar-z-index)] top-[var(--p-sidebar-fixed-top)] h-full transition-all;
|
|
170
|
-
box-shadow: var(--p-sidebar-shadow);
|
|
171
|
-
|
|
172
|
-
.sidebar__menus {
|
|
173
|
-
@apply grow h-full overflow-y-auto py-2;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
&:not(.sidebar--right) {
|
|
177
|
-
@apply left-0;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
.sidebar__bottom {
|
|
181
|
-
@apply w-full bg-[color:var(--p-sidebar-bg)] shrink-0 pt-2;
|
|
182
|
-
@apply dark:bg-[color:var(--p-sidebar-bg-dark)];
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
* Right-align in fixed
|
|
187
|
-
*/
|
|
188
|
-
&.sidebar--right {
|
|
189
|
-
@apply left-auto right-0;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* Toggleable sidebar
|
|
194
|
-
*/
|
|
195
|
-
&.sidebar--toggleable {
|
|
196
|
-
&:where(&&-all, &&-lg, &&-md, &&-sm) {
|
|
197
|
-
&:is(.sidebar--show) {
|
|
198
|
-
@apply left-0 transition-[left] ease-out delay-75;
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
&:where(&&-all, &&-lg, &&-md, &&-sm) {
|
|
203
|
-
@apply -left-[100%] transition-[left] ease-in delay-75;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
&&-lg {
|
|
207
|
-
@apply lg:left-0;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
&&-md {
|
|
211
|
-
@apply md:left-0;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
&&-sm {
|
|
215
|
-
@apply sm:left-0;
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
/**
|
|
221
|
-
* Sticky sidebar
|
|
222
|
-
*/
|
|
223
|
-
&&--sticky {
|
|
224
|
-
@apply sticky top-[var(--p-sidebar-sticky-top)] z-sticky;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
/**
|
|
228
|
-
* Narrow sidebar
|
|
229
|
-
* is 60px width
|
|
230
|
-
*/
|
|
231
|
-
&&--narrow {
|
|
232
|
-
@apply w-[var(--p-sidebar-size-narrow)];
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
/**
|
|
236
|
-
* Sidebar with tabs
|
|
237
|
-
* and lines variant
|
|
238
|
-
*/
|
|
239
|
-
&&--tabs,
|
|
240
|
-
&&--lines {
|
|
241
|
-
@apply pr-0 py-2 border-r border-r-default;
|
|
242
|
-
@apply dark:border-r-dark-default;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
&&--lines {
|
|
246
|
-
@apply px-0;
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
</style>
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
ref="sidebarBrand"
|
|
4
|
-
:class="classNames"
|
|
5
|
-
data-testid="sidebar-brand"
|
|
6
|
-
class="sidebar__brand">
|
|
7
|
-
<nuxt-link
|
|
8
|
-
v-if="href"
|
|
9
|
-
:href="href"
|
|
10
|
-
data-testid="sidebar-brand-link">
|
|
11
|
-
<slot />
|
|
12
|
-
</nuxt-link>
|
|
13
|
-
<template v-else>
|
|
14
|
-
<slot />
|
|
15
|
-
</template>
|
|
16
|
-
</div>
|
|
17
|
-
</template>
|
|
18
|
-
|
|
19
|
-
<script lang="ts" setup>
|
|
20
|
-
import type { PropType } from 'vue-demi'
|
|
21
|
-
import { computed } from 'vue-demi'
|
|
22
|
-
import type { RouteLocationRaw } from 'vue-router'
|
|
23
|
-
|
|
24
|
-
const props = defineProps({
|
|
25
|
-
href: {
|
|
26
|
-
type : [String, Object] as PropType<RouteLocationRaw>,
|
|
27
|
-
default: undefined,
|
|
28
|
-
},
|
|
29
|
-
sticky: {
|
|
30
|
-
type : Boolean,
|
|
31
|
-
default: false,
|
|
32
|
-
},
|
|
33
|
-
fixed: {
|
|
34
|
-
type : Boolean,
|
|
35
|
-
default: false,
|
|
36
|
-
},
|
|
37
|
-
})
|
|
38
|
-
|
|
39
|
-
const classNames = computed(() => {
|
|
40
|
-
const result: string[] = ['']
|
|
41
|
-
|
|
42
|
-
if (props.sticky)
|
|
43
|
-
result.push('sidebar__brand--sticky')
|
|
44
|
-
|
|
45
|
-
if (props.fixed)
|
|
46
|
-
result.push('sidebar__brand--fixed')
|
|
47
|
-
|
|
48
|
-
return result
|
|
49
|
-
})
|
|
50
|
-
</script>
|
|
51
|
-
|
|
52
|
-
<style lang="postcss">
|
|
53
|
-
.sidebar {
|
|
54
|
-
&__brand {
|
|
55
|
-
--p-sidebar-brand-sticky-top: 0;
|
|
56
|
-
|
|
57
|
-
@apply block text-center mx-auto pb-4 font-semibold text-default;
|
|
58
|
-
@apply dark:text-dark-default;
|
|
59
|
-
|
|
60
|
-
a {
|
|
61
|
-
@apply no-underline cursor-pointer;
|
|
62
|
-
|
|
63
|
-
& > img {
|
|
64
|
-
@apply max-w-full h-auto;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.sidebar--wide & {
|
|
68
|
-
& > img {
|
|
69
|
-
@apply h-7 w-auto;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
& > img {
|
|
75
|
-
@apply max-w-full h-auto;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
&--fixed {
|
|
79
|
-
@apply fixed top-0 left-0;
|
|
80
|
-
|
|
81
|
-
.sidebar--right & {
|
|
82
|
-
@apply right-0 left-auto;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
&--sticky {
|
|
87
|
-
@apply sticky top-[var(--p-sidebar-brand-sticky-top)];
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.sidebar--wide & {
|
|
91
|
-
@apply px-3;
|
|
92
|
-
|
|
93
|
-
& > img {
|
|
94
|
-
@apply h-7 w-auto;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.sidebar--tabs &,
|
|
99
|
-
.sidebar--lines & {
|
|
100
|
-
@apply pr-2;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.sidebar--lines & {
|
|
104
|
-
@apply pl-2;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
</style>
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import {
|
|
3
|
-
defineComponent,
|
|
4
|
-
h
|
|
5
|
-
} from "vue-demi";
|
|
6
|
-
import { findAllChildren, toBoolean } from "../utils/vnode";
|
|
7
|
-
export default defineComponent({
|
|
8
|
-
props: {
|
|
9
|
-
bottom: {
|
|
10
|
-
type: Boolean,
|
|
11
|
-
default: false
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
setup(props, { slots }) {
|
|
15
|
-
return () => {
|
|
16
|
-
const navs = props.bottom ? findAllChildren(slots.default(), "SidebarNav").filter((vnode) => toBoolean(vnode.props?.bottom)) : findAllChildren(slots.default(), "*").filter((vnode) => toBoolean(vnode.props?.bottom) !== true);
|
|
17
|
-
return navs.map((nav) => h(nav));
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
</script>
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue-demi").DefineComponent<import("vue-demi").ExtractPropTypes<{
|
|
2
|
-
bottom: {
|
|
3
|
-
type: BooleanConstructor;
|
|
4
|
-
default: boolean;
|
|
5
|
-
};
|
|
6
|
-
}>, () => import("vue-demi").VNode<import("vue-demi").RendererNode, import("vue-demi").RendererElement, {
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
}>[], {}, {}, {}, import("vue-demi").ComponentOptionsMixin, import("vue-demi").ComponentOptionsMixin, {}, string, import("vue-demi").PublicProps, Readonly<import("vue-demi").ExtractPropTypes<{
|
|
9
|
-
bottom: {
|
|
10
|
-
type: BooleanConstructor;
|
|
11
|
-
default: boolean;
|
|
12
|
-
};
|
|
13
|
-
}>> & Readonly<{}>, {
|
|
14
|
-
bottom: boolean;
|
|
15
|
-
}, {}, {}, {}, string, import("vue-demi").ComponentProvideOptions, true, {}, any>;
|
|
16
|
-
export default _default;
|
|
@@ -1,260 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
v-if="title || titleActionLabel || collapsible"
|
|
4
|
-
class="sidebar__title"
|
|
5
|
-
data-testid="sidebar-title"
|
|
6
|
-
:class="{
|
|
7
|
-
'sidebar__title__collapsible': (collapsible && type !== 'narrow'),
|
|
8
|
-
'sidebar__title--collapsed': !isExpand,
|
|
9
|
-
}"
|
|
10
|
-
v-bind="$attrs"
|
|
11
|
-
@click.prevent="toggleExpand">
|
|
12
|
-
<Caption
|
|
13
|
-
v-if="title"
|
|
14
|
-
class="sidebar__title__caption"
|
|
15
|
-
weight="bold"
|
|
16
|
-
transform="capitalize">
|
|
17
|
-
{{ title }}
|
|
18
|
-
</Caption>
|
|
19
|
-
<Text
|
|
20
|
-
v-if="titleActionLabel && titleActionUrl"
|
|
21
|
-
data-testid="sidebar-nav-action"
|
|
22
|
-
class="sidebar__title__action"
|
|
23
|
-
variant="caption"
|
|
24
|
-
:href="titleActionUrl">
|
|
25
|
-
{{ titleActionLabel }}
|
|
26
|
-
</Text>
|
|
27
|
-
|
|
28
|
-
<IconArrow
|
|
29
|
-
v-if="collapsible"
|
|
30
|
-
data-testid="sidebar-title-caret"
|
|
31
|
-
class="sidebar__title__caret" />
|
|
32
|
-
</div>
|
|
33
|
-
<Collapse
|
|
34
|
-
v-if="!bottom"
|
|
35
|
-
:model-value="isExpand">
|
|
36
|
-
<Nav
|
|
37
|
-
class="sidebar__nav"
|
|
38
|
-
:class="{ 'sidebar__nav--collapsed' : !isExpand }"
|
|
39
|
-
data-testid="sidebar-nav"
|
|
40
|
-
vertical
|
|
41
|
-
:title="title"
|
|
42
|
-
:title-action-label="titleActionLabel"
|
|
43
|
-
:title-action-url="titleActionUrl"
|
|
44
|
-
:variant="variant"
|
|
45
|
-
:condensed="condensed"
|
|
46
|
-
:align="align">
|
|
47
|
-
<slot />
|
|
48
|
-
</Nav>
|
|
49
|
-
</Collapse>
|
|
50
|
-
<template v-else>
|
|
51
|
-
<Nav
|
|
52
|
-
class="sidebar__nav sidebar__nav--bottom"
|
|
53
|
-
data-testid="sidebar-nav"
|
|
54
|
-
vertical
|
|
55
|
-
:title="title"
|
|
56
|
-
:variant="variant"
|
|
57
|
-
:condensed="condensed"
|
|
58
|
-
:align="align">
|
|
59
|
-
<slot />
|
|
60
|
-
</Nav>
|
|
61
|
-
</template>
|
|
62
|
-
</template>
|
|
63
|
-
|
|
64
|
-
<script lang="ts" setup>
|
|
65
|
-
import type { PropType } from 'vue-demi'
|
|
66
|
-
import {
|
|
67
|
-
inject,
|
|
68
|
-
ref,
|
|
69
|
-
} from 'vue-demi'
|
|
70
|
-
import Nav from '../nav/Nav.vue'
|
|
71
|
-
import Caption from '../caption/Caption.vue'
|
|
72
|
-
import Text from '../text/Text.vue'
|
|
73
|
-
import { SIDEBAR_SETTINGS } from '.'
|
|
74
|
-
import Collapse from '../collapse/Collapse.vue'
|
|
75
|
-
import IconArrow from '@privyid/persona-icon/vue/chevron-down/16.vue'
|
|
76
|
-
import type { RouteLocationRaw } from 'vue-router'
|
|
77
|
-
|
|
78
|
-
defineOptions({
|
|
79
|
-
name : 'SidebarNav',
|
|
80
|
-
inheritAttrs: false,
|
|
81
|
-
})
|
|
82
|
-
|
|
83
|
-
const props = defineProps({
|
|
84
|
-
title: {
|
|
85
|
-
type : String,
|
|
86
|
-
default: undefined,
|
|
87
|
-
},
|
|
88
|
-
titleActionLabel: {
|
|
89
|
-
type : String,
|
|
90
|
-
default: undefined,
|
|
91
|
-
},
|
|
92
|
-
titleActionUrl: {
|
|
93
|
-
type : [String, Object] as PropType<RouteLocationRaw>,
|
|
94
|
-
default: undefined,
|
|
95
|
-
},
|
|
96
|
-
bottom: {
|
|
97
|
-
type : Boolean,
|
|
98
|
-
default: false,
|
|
99
|
-
},
|
|
100
|
-
condensed: {
|
|
101
|
-
type : Boolean,
|
|
102
|
-
default: false,
|
|
103
|
-
},
|
|
104
|
-
collapsible: {
|
|
105
|
-
type : Boolean,
|
|
106
|
-
default: false,
|
|
107
|
-
},
|
|
108
|
-
})
|
|
109
|
-
|
|
110
|
-
const settings = inject(SIDEBAR_SETTINGS, undefined, true)
|
|
111
|
-
const variant = settings?.variant
|
|
112
|
-
const align = settings?.align
|
|
113
|
-
const type = settings?.type
|
|
114
|
-
const isExpand = ref(true)
|
|
115
|
-
|
|
116
|
-
function toggleExpand (): void {
|
|
117
|
-
if (props.collapsible)
|
|
118
|
-
isExpand.value = !isExpand.value
|
|
119
|
-
}
|
|
120
|
-
</script>
|
|
121
|
-
|
|
122
|
-
<style lang="postcss">
|
|
123
|
-
.sidebar {
|
|
124
|
-
&__nav {
|
|
125
|
-
&.nav--pills.nav--vertical {
|
|
126
|
-
@apply pl-0 pr-0;
|
|
127
|
-
|
|
128
|
-
.nav__link {
|
|
129
|
-
@apply pr-3;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.nav__item.nav__item--no-icon {
|
|
133
|
-
.nav__link__label {
|
|
134
|
-
@apply justify-start pl-8;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
.nav__link {
|
|
138
|
-
@apply text-subtle hover:text-default;
|
|
139
|
-
@apply dark:text-dark-subtle dark:hover:text-dark-default;
|
|
140
|
-
|
|
141
|
-
&:is(.router-link-active, .router-link-exact-active) {
|
|
142
|
-
@apply bg-transparent text-default hover:cursor-default;
|
|
143
|
-
@apply dark:bg-transparent dark:text-dark-default;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
.nav__title {
|
|
150
|
-
@apply hidden;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.nav__subitem &.nav {
|
|
154
|
-
@apply pt-0;
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
&&--narrow {
|
|
159
|
-
.nav__link {
|
|
160
|
-
@apply flex-col justify-center text-center text-tn;
|
|
161
|
-
|
|
162
|
-
&__label {
|
|
163
|
-
@apply ml-0 mt-3 justify-center break-all;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
.nav--pills {
|
|
168
|
-
.nav__link {
|
|
169
|
-
&:is(.nav__link--icon) {
|
|
170
|
-
@apply p-0;
|
|
171
|
-
|
|
172
|
-
.nav__link__icon {
|
|
173
|
-
@apply rounded p-3 inline-block;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
.nav__link__label {
|
|
177
|
-
@apply mt-0 px-1 pb-3;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
&.nav__link--active {
|
|
181
|
-
@apply bg-transparent text-default;
|
|
182
|
-
@apply dark:bg-transparent dark:text-dark-default;
|
|
183
|
-
|
|
184
|
-
.nav__link__icon {
|
|
185
|
-
@apply bg-base;
|
|
186
|
-
@apply dark:bg-dark-base;
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
&:not(.nav__link--icon) {
|
|
192
|
-
.nav__link__icon {
|
|
193
|
-
@apply hidden;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
.nav__link__label {
|
|
197
|
-
@apply mt-0;
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
.nav--tabs {
|
|
204
|
-
.nav__link {
|
|
205
|
-
@apply px-0;
|
|
206
|
-
|
|
207
|
-
&--active {
|
|
208
|
-
@apply bg-default;
|
|
209
|
-
@apply dark:bg-dark-default;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
&__label {
|
|
213
|
-
@apply px-2;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
.nav__title {
|
|
219
|
-
@apply hidden;
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
&__title {
|
|
224
|
-
@apply relative z-1 flex items-center -mb-9 px-3 mt-5 justify-end;
|
|
225
|
-
|
|
226
|
-
&__caption {
|
|
227
|
-
@apply grow;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
&__action {
|
|
231
|
-
@apply shrink-0;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
&__collapsible {
|
|
235
|
-
@apply cursor-pointer select-none;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
&__caret {
|
|
239
|
-
@apply absolute right-2 rotate-180 origin-center ease-in-out duration-150;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
&&--collapsed {
|
|
243
|
-
.sidebar__title__caret {
|
|
244
|
-
@apply rotate-0;
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
&:is(&__collapsible) {
|
|
249
|
-
a {
|
|
250
|
-
@apply mr-5;
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
.caption {
|
|
255
|
-
@apply text-subtle;
|
|
256
|
-
@apply dark:text-dark-subtle;
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
</style>
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { InjectionKey } from 'vue-demi';
|
|
2
|
-
import type { StyleVariant, AlignVariant } from '../nav';
|
|
3
|
-
export type TypeVariant = 'wide' | 'narrow';
|
|
4
|
-
export interface SidebarSettings {
|
|
5
|
-
variant: StyleVariant;
|
|
6
|
-
align: AlignVariant;
|
|
7
|
-
type: TypeVariant;
|
|
8
|
-
}
|
|
9
|
-
export declare const SIDEBAR_SETTINGS: InjectionKey<SidebarSettings>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const SIDEBAR_SETTINGS = Symbol("SidebarSettings");
|