@privyid/persona 1.1.2 → 1.2.1-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module.d.cts +2 -0
- package/dist/module.d.mts +2 -27
- package/dist/module.json +12 -0
- package/dist/module.mjs +13 -92
- package/dist/types.d.mts +13 -0
- package/package.json +25 -27
- package/dist/components/accordion/Accordion.vue +0 -121
- package/dist/components/accordion/AccordionItem.vue +0 -250
- package/dist/components/accordion/AccordionItems.vue +0 -50
- package/dist/components/accordion/AccordionItems.vue.d.ts +0 -41
- package/dist/components/accordion/index.d.ts +0 -7
- package/dist/components/accordion/index.mjs +0 -3
- package/dist/components/aspect-ratio/index.d.ts +0 -3
- package/dist/components/aspect-ratio/index.mjs +0 -21
- package/dist/components/aspect-ratio/utils/calculate-ratio.d.ts +0 -7
- package/dist/components/aspect-ratio/utils/calculate-ratio.mjs +0 -10
- package/dist/components/aspect-ratio/utils/resize-observer.d.ts +0 -1
- package/dist/components/aspect-ratio/utils/resize-observer.mjs +0 -22
- package/dist/components/avatar/Avatar.vue +0 -193
- package/dist/components/avatar/AvatarGroup.vue +0 -42
- package/dist/components/avatar/AvatarTruncate.vue +0 -33
- package/dist/components/avatar/AvatarTruncate.vue.d.ts +0 -31
- package/dist/components/avatar/assets/avatar-old.png +0 -0
- package/dist/components/avatar/assets/avatar.png +0 -0
- package/dist/components/avatar/index.d.ts +0 -2
- package/dist/components/avatar/index.mjs +0 -0
- package/dist/components/avatar/utils/color-hash.d.ts +0 -2
- package/dist/components/avatar/utils/color-hash.mjs +0 -22
- package/dist/components/avatar/utils/create-image.d.ts +0 -5
- package/dist/components/avatar/utils/create-image.mjs +0 -19
- package/dist/components/avatar/utils/load-image.d.ts +0 -1
- package/dist/components/avatar/utils/load-image.mjs +0 -22
- package/dist/components/badge/Badge.vue +0 -218
- package/dist/components/badge/index.d.ts +0 -1
- package/dist/components/badge/index.mjs +0 -0
- package/dist/components/banner/Banner.vue +0 -213
- package/dist/components/banner/index.d.ts +0 -1
- package/dist/components/banner/index.mjs +0 -0
- package/dist/components/breadcrumbs/Breadcrumb.vue +0 -62
- package/dist/components/breadcrumbs/BreadcrumbItem.vue +0 -95
- package/dist/components/breadcrumbs/BreadcrumbItemDropdown.vue +0 -78
- package/dist/components/breadcrumbs/index.d.ts +0 -11
- package/dist/components/breadcrumbs/index.mjs +0 -3
- package/dist/components/button/Button.vue +0 -422
- package/dist/components/button/index.d.ts +0 -5
- package/dist/components/button/index.mjs +0 -0
- package/dist/components/button-group/ButtonGroup.vue +0 -220
- package/dist/components/button-group/index.d.ts +0 -6
- package/dist/components/button-group/index.mjs +0 -1
- package/dist/components/calendar/Calendar.vue +0 -465
- package/dist/components/calendar/adapter/adapter.d.ts +0 -32
- package/dist/components/calendar/adapter/adapter.mjs +0 -43
- package/dist/components/calendar/adapter/date.d.ts +0 -2
- package/dist/components/calendar/adapter/date.mjs +0 -86
- package/dist/components/calendar/adapter/month.d.ts +0 -2
- package/dist/components/calendar/adapter/month.mjs +0 -66
- package/dist/components/calendar/adapter/year.d.ts +0 -2
- package/dist/components/calendar/adapter/year.mjs +0 -63
- package/dist/components/camera/Camera.vue +0 -416
- package/dist/components/camera/adapter/adapter.d.ts +0 -41
- package/dist/components/camera/adapter/adapter.mjs +0 -3
- package/dist/components/camera/adapter/capture.d.ts +0 -5
- package/dist/components/camera/adapter/capture.mjs +0 -12
- package/dist/components/camera/adapter/liveness.d.ts +0 -5
- package/dist/components/camera/adapter/liveness.mjs +0 -46
- package/dist/components/camera/adapter/qr-code.d.ts +0 -2
- package/dist/components/camera/adapter/qr-code.mjs +0 -19
- package/dist/components/camera/assets/shutter.wav +0 -0
- package/dist/components/camera/utils/motion.d.ts +0 -29
- package/dist/components/camera/utils/motion.mjs +0 -88
- package/dist/components/camera/utils/take-picture.d.ts +0 -1
- package/dist/components/camera/utils/take-picture.mjs +0 -14
- package/dist/components/caption/Caption.vue +0 -122
- package/dist/components/caption/index.d.ts +0 -1
- package/dist/components/caption/index.mjs +0 -0
- package/dist/components/card/Card.vue +0 -354
- package/dist/components/card/CardSection.vue +0 -81
- package/dist/components/card/index.d.ts +0 -2
- package/dist/components/card/index.mjs +0 -0
- package/dist/components/carousel/Carousel.vue +0 -202
- package/dist/components/carousel/CarouselBody.vue +0 -18
- package/dist/components/carousel/CarouselItem.vue +0 -10
- package/dist/components/carousel/index.d.ts +0 -4
- package/dist/components/carousel/index.mjs +0 -1
- package/dist/components/chart/Chart.vue +0 -155
- package/dist/components/chart/ChartSet.vue +0 -32
- package/dist/components/chart/ChartVal.vue +0 -36
- package/dist/components/chart/adapter/adapter.d.ts +0 -7
- package/dist/components/chart/adapter/adapter.mjs +0 -3
- package/dist/components/chart/adapter/bubble.d.ts +0 -2
- package/dist/components/chart/adapter/bubble.mjs +0 -26
- package/dist/components/chart/adapter/index.d.ts +0 -3
- package/dist/components/chart/adapter/index.mjs +0 -16
- package/dist/components/chart/adapter/line.d.ts +0 -2
- package/dist/components/chart/adapter/line.mjs +0 -66
- package/dist/components/chart/adapter/pie.d.ts +0 -2
- package/dist/components/chart/adapter/pie.mjs +0 -34
- package/dist/components/chart/index.d.ts +0 -2
- package/dist/components/chart/index.mjs +0 -0
- package/dist/components/chart/utils/use-chart.d.ts +0 -2
- package/dist/components/chart/utils/use-chart.mjs +0 -9
- package/dist/components/checkbox/Checkbox.vue +0 -232
- package/dist/components/checkbox/icon/IconCheckbox.vue +0 -13
- package/dist/components/checkbox/icon/IconInderteminate.vue +0 -12
- package/dist/components/checkbox/index.d.ts +0 -7
- package/dist/components/checkbox/index.mjs +0 -34
- package/dist/components/collapse/Collapse.vue +0 -71
- package/dist/components/contextual-bar/ContextualBar.vue +0 -461
- package/dist/components/contextual-bar/index.d.ts +0 -1
- package/dist/components/contextual-bar/index.mjs +0 -0
- package/dist/components/cropper/Cropper.vue +0 -446
- package/dist/components/cropper/index.d.ts +0 -1
- package/dist/components/cropper/index.mjs +0 -3
- package/dist/components/cropper/utils/crop-image.d.ts +0 -44
- package/dist/components/cropper/utils/crop-image.mjs +0 -43
- package/dist/components/cropper/utils/use-pinch.d.ts +0 -8
- package/dist/components/cropper/utils/use-pinch.mjs +0 -50
- package/dist/components/cropper/utils/use-preview.d.ts +0 -3
- package/dist/components/cropper/utils/use-preview.mjs +0 -21
- package/dist/components/cropper/utils/use-ratio.d.ts +0 -9
- package/dist/components/cropper/utils/use-ratio.mjs +0 -24
- package/dist/components/datepicker/Datepicker.vue +0 -235
- package/dist/components/dialog/Dialog.vue +0 -149
- package/dist/components/dialog/DialogFooter.vue +0 -138
- package/dist/components/dialog/index.d.ts +0 -52
- package/dist/components/dialog/index.mjs +0 -86
- package/dist/components/divider/Divider.vue +0 -65
- package/dist/components/dot/Dot.vue +0 -103
- package/dist/components/dot/index.d.ts +0 -1
- package/dist/components/dot/index.mjs +0 -0
- package/dist/components/dropdown/Dropdown.vue +0 -441
- package/dist/components/dropdown/DropdownHeader.vue +0 -33
- package/dist/components/dropdown/DropdownItem.vue +0 -103
- package/dist/components/dropdown/DropdownText.vue +0 -34
- package/dist/components/dropdown/index.d.ts +0 -10
- package/dist/components/dropdown/index.mjs +0 -1
- package/dist/components/dropdown/utils/use-focus.d.ts +0 -5
- package/dist/components/dropdown/utils/use-focus.mjs +0 -22
- package/dist/components/dropdown-subitem/DropdownSubitem.vue +0 -182
- package/dist/components/dropdown-subitem/index.d.ts +0 -12
- package/dist/components/dropdown-subitem/index.mjs +0 -1
- package/dist/components/dropzone/Dropzone.vue +0 -261
- package/dist/components/dropzone/index.d.ts +0 -4
- package/dist/components/dropzone/index.mjs +0 -0
- package/dist/components/dropzone/utils/accept.d.ts +0 -1
- package/dist/components/dropzone/utils/accept.mjs +0 -17
- package/dist/components/filterbar/Filterbar.vue +0 -103
- package/dist/components/filterbar/Filterbar.vue.d.ts +0 -40
- package/dist/components/filterbar/index.d.ts +0 -45
- package/dist/components/filterbar/index.mjs +0 -7
- package/dist/components/filterbar/pinned/PinnedDate.vue +0 -100
- package/dist/components/filterbar/pinned/PinnedDate.vue.d.ts +0 -72
- package/dist/components/filterbar/pinned/PinnedMultiselect.vue +0 -113
- package/dist/components/filterbar/pinned/PinnedMultiselect.vue.d.ts +0 -48
- package/dist/components/filterbar/pinned/PinnedSelect.vue +0 -100
- package/dist/components/filterbar/pinned/PinnedSelect.vue.d.ts +0 -47
- package/dist/components/filterbar/pinned/PinnedToggle.vue +0 -77
- package/dist/components/filterbar/pinned/PinnedToggle.vue.d.ts +0 -59
- package/dist/components/form-group/FormGroup.vue +0 -169
- package/dist/components/global/router.d.ts +0 -24
- package/dist/components/global/router.mjs +0 -7
- package/dist/components/global/store.d.ts +0 -49
- package/dist/components/global/store.mjs +0 -52
- package/dist/components/global/types.d.ts +0 -4
- package/dist/components/global/types.mjs +0 -0
- package/dist/components/global/use-singleton.d.ts +0 -21
- package/dist/components/global/use-singleton.mjs +0 -60
- package/dist/components/global/utils/queue.d.ts +0 -16
- package/dist/components/global/utils/queue.mjs +0 -35
- package/dist/components/heading/Heading.vue +0 -140
- package/dist/components/heading/index.d.ts +0 -3
- package/dist/components/heading/index.mjs +0 -0
- package/dist/components/input/Input.vue +0 -243
- package/dist/components/input/index.d.ts +0 -6
- package/dist/components/input/index.mjs +0 -25
- package/dist/components/input/utils/accept.d.ts +0 -26
- package/dist/components/input/utils/accept.mjs +0 -81
- package/dist/components/input-color/index.d.ts +0 -1
- package/dist/components/input-color/index.mjs +0 -0
- package/dist/components/input-color/inputColor.vue +0 -264
- package/dist/components/input-file/InputFile.vue +0 -221
- package/dist/components/input-group/InputGroup.vue +0 -188
- package/dist/components/input-group/InputGroupAddon.vue +0 -42
- package/dist/components/input-group/index.d.ts +0 -6
- package/dist/components/input-group/index.mjs +0 -1
- package/dist/components/input-password/InputPassword.vue +0 -110
- package/dist/components/input-password/index.d.ts +0 -2
- package/dist/components/input-password/index.mjs +0 -17
- package/dist/components/input-pin/InputPin.vue +0 -170
- package/dist/components/input-pin/index.d.ts +0 -6
- package/dist/components/input-pin/index.mjs +0 -3
- package/dist/components/input-range/InputRange.vue +0 -303
- package/dist/components/input-range/utils/use-drag.d.ts +0 -3
- package/dist/components/input-range/utils/use-drag.mjs +0 -26
- package/dist/components/label/Label.vue +0 -265
- package/dist/components/label/index.d.ts +0 -1
- package/dist/components/label/index.mjs +0 -0
- package/dist/components/list-group/ListGroup.vue +0 -75
- package/dist/components/list-group/ListGroupItem.vue +0 -88
- package/dist/components/list-group/index.d.ts +0 -1
- package/dist/components/list-group/index.mjs +0 -0
- package/dist/components/main/Main.vue +0 -66
- package/dist/components/markdown/index.d.ts +0 -29
- package/dist/components/markdown/index.mjs +0 -25
- package/dist/components/meta.json +0 -171
- package/dist/components/modal/Modal.vue +0 -546
- package/dist/components/modal/index.d.ts +0 -1
- package/dist/components/modal/index.mjs +0 -0
- package/dist/components/nav/Nav.vue +0 -416
- package/dist/components/nav/NavCollapse.vue +0 -66
- package/dist/components/nav/NavForm.vue +0 -23
- package/dist/components/nav/NavItem.vue +0 -187
- package/dist/components/nav/NavItemDropdown.vue +0 -120
- package/dist/components/nav/NavSubItem.vue +0 -194
- package/dist/components/nav/NavText.vue +0 -19
- package/dist/components/nav/index.d.ts +0 -2
- package/dist/components/nav/index.mjs +0 -0
- package/dist/components/navbar/Navbar.vue +0 -284
- package/dist/components/navbar/NavbarBrand.vue +0 -31
- package/dist/components/navbar/NavbarNav.vue +0 -114
- package/dist/components/navbar/NavbarToggle.vue +0 -72
- package/dist/components/navbar/index.d.ts +0 -9
- package/dist/components/navbar/index.mjs +0 -1
- package/dist/components/navbar-menu/NavbarNavMenu.vue +0 -59
- package/dist/components/notify/Notify.vue +0 -51
- package/dist/components/notify/NotifyGroup.vue +0 -244
- package/dist/components/notify/NotifyItem.vue +0 -45
- package/dist/components/notify/index.d.ts +0 -20
- package/dist/components/notify/index.mjs +0 -18
- package/dist/components/overlay/Overlay.vue +0 -68
- package/dist/components/overlay/assets/icon-white.svg +0 -1
- package/dist/components/overlay/index.d.ts +0 -2
- package/dist/components/overlay/index.mjs +0 -8
- package/dist/components/overlay/utils/use-loading.d.ts +0 -4
- package/dist/components/overlay/utils/use-loading.mjs +0 -28
- package/dist/components/page/Page.vue +0 -106
- package/dist/components/pagination/Pagination.vue +0 -415
- package/dist/components/pagination/index.d.ts +0 -14
- package/dist/components/pagination/index.mjs +0 -38
- package/dist/components/pagination/utils/calculate-page.d.ts +0 -11
- package/dist/components/pagination/utils/calculate-page.mjs +0 -48
- package/dist/components/pdf-helipad/PdfHelipad.vue +0 -147
- package/dist/components/pdf-helipad/index.d.ts +0 -7
- package/dist/components/pdf-helipad/index.mjs +0 -0
- package/dist/components/pdf-helipad/utils/use-drag.d.ts +0 -3
- package/dist/components/pdf-helipad/utils/use-drag.mjs +0 -38
- package/dist/components/pdf-object/PdfObject.vue +0 -348
- package/dist/components/pdf-object/PdfObjectAddon.vue +0 -55
- package/dist/components/pdf-object/PdfObjectDebugger.vue +0 -70
- package/dist/components/pdf-object/PdfObjects.vue +0 -39
- package/dist/components/pdf-object/index.d.ts +0 -63
- package/dist/components/pdf-object/index.mjs +0 -110
- package/dist/components/pdf-object/utils/overlap.d.ts +0 -51
- package/dist/components/pdf-object/utils/overlap.mjs +0 -54
- package/dist/components/pdf-object/utils/position.d.ts +0 -64
- package/dist/components/pdf-object/utils/position.mjs +0 -48
- package/dist/components/pdf-object/utils/use-drag.d.ts +0 -9
- package/dist/components/pdf-object/utils/use-drag.mjs +0 -69
- package/dist/components/pdf-object/utils/use-drop.d.ts +0 -7
- package/dist/components/pdf-object/utils/use-drop.mjs +0 -57
- package/dist/components/pdf-object/utils/use-resize.d.ts +0 -17
- package/dist/components/pdf-object/utils/use-resize.mjs +0 -90
- package/dist/components/pdf-object/utils/use-selector.d.ts +0 -4
- package/dist/components/pdf-object/utils/use-selector.mjs +0 -26
- package/dist/components/pdf-text/PdfText.vue +0 -138
- package/dist/components/pdf-text/utils/text-to-image.d.ts +0 -68
- package/dist/components/pdf-text/utils/text-to-image.mjs +0 -120
- package/dist/components/pdf-viewer/PdfError.vue +0 -74
- package/dist/components/pdf-viewer/PdfLoading.vue +0 -24
- package/dist/components/pdf-viewer/PdfNavigation.vue +0 -169
- package/dist/components/pdf-viewer/PdfViewer.vue +0 -377
- package/dist/components/pdf-viewer/assets/pdf-loading.svg +0 -1
- package/dist/components/pdf-viewer/index.d.ts +0 -25
- package/dist/components/pdf-viewer/index.mjs +0 -24
- package/dist/components/pdf-viewer/utils/pdfjs.d.ts +0 -68
- package/dist/components/pdf-viewer/utils/pdfjs.mjs +0 -54
- package/dist/components/pdf-viewer/utils/use-idle.d.ts +0 -2
- package/dist/components/pdf-viewer/utils/use-idle.mjs +0 -25
- package/dist/components/pdf-viewer/utils/use-sticky.d.ts +0 -6
- package/dist/components/pdf-viewer/utils/use-sticky.mjs +0 -49
- package/dist/components/pdf-viewer/utils/use-viewer.d.ts +0 -27
- package/dist/components/pdf-viewer/utils/use-viewer.mjs +0 -191
- package/dist/components/popover/Popover.vue +0 -131
- package/dist/components/popover/index.d.ts +0 -17
- package/dist/components/popover/index.mjs +0 -52
- package/dist/components/popup/Popup.vue +0 -428
- package/dist/components/popup/index.d.ts +0 -38
- package/dist/components/popup/index.mjs +0 -31
- package/dist/components/progress/Progress.vue +0 -221
- package/dist/components/progress/ProgressItem.vue +0 -56
- package/dist/components/progress/index.d.ts +0 -2
- package/dist/components/progress/index.mjs +0 -0
- package/dist/components/progress-indicator/ProgressIndicator.vue +0 -132
- package/dist/components/progressbar/Progressbar.vue +0 -113
- package/dist/components/progressbar/index.d.ts +0 -7
- package/dist/components/progressbar/index.mjs +0 -11
- package/dist/components/pspdfkit/PspdfHelipad.vue +0 -165
- package/dist/components/pspdfkit/PspdfObject.vue +0 -341
- package/dist/components/pspdfkit/PspdfObjectAddon.vue +0 -30
- package/dist/components/pspdfkit/PspdfObjects.vue +0 -30
- package/dist/components/pspdfkit/PspdfViewer.vue +0 -257
- package/dist/components/pspdfkit/css/custom.css +0 -345
- package/dist/components/pspdfkit/index.d.ts +0 -8
- package/dist/components/pspdfkit/index.mjs +0 -7
- package/dist/components/pspdfkit/utils/position.d.ts +0 -1
- package/dist/components/pspdfkit/utils/position.mjs +0 -5
- package/dist/components/pspdfkit/utils/pspdfkit.d.ts +0 -17
- package/dist/components/pspdfkit/utils/pspdfkit.mjs +0 -53
- package/dist/components/pspdfkit/utils/use-drop.d.ts +0 -2
- package/dist/components/pspdfkit/utils/use-drop.mjs +0 -41
- package/dist/components/pspdfkit/utils/use-viewer.d.ts +0 -17
- package/dist/components/pspdfkit/utils/use-viewer.mjs +0 -167
- package/dist/components/qrcode/Qrcode.vue +0 -174
- package/dist/components/qrcode/index.d.ts +0 -1
- package/dist/components/qrcode/index.mjs +0 -0
- package/dist/components/radio/Radio.vue +0 -304
- package/dist/components/radio/index.d.ts +0 -7
- package/dist/components/radio/index.mjs +0 -16
- package/dist/components/richtext/Richtext.vue +0 -295
- package/dist/components/richtext/RichtextToolbarAdvance.vue +0 -37
- package/dist/components/richtext/RichtextToolbarSimple.vue +0 -158
- package/dist/components/richtext/control/RichtextControlFontFamily.vue +0 -56
- package/dist/components/richtext/control/RichtextControlFontSize.vue +0 -81
- package/dist/components/richtext/control/RichtextControlHighlight.vue +0 -135
- package/dist/components/richtext/control/RichtextControlHistory.vue +0 -27
- package/dist/components/richtext/control/RichtextControlImage.vue +0 -34
- package/dist/components/richtext/control/RichtextControlLink.vue +0 -53
- package/dist/components/richtext/control/RichtextControlList.vue +0 -45
- package/dist/components/richtext/control/RichtextControlTable.vue +0 -106
- package/dist/components/richtext/control/RichtextControlTextAlign.vue +0 -90
- package/dist/components/richtext/control/RichtextControlTextFormat.vue +0 -49
- package/dist/components/richtext/control/RichtextControlTextHeading.vue +0 -101
- package/dist/components/richtext/index.d.ts +0 -7
- package/dist/components/richtext/index.mjs +0 -7
- package/dist/components/richtext/popup/RichtextPopupImageEdit.vue +0 -65
- package/dist/components/richtext/popup/RichtextPopupLinkDetail.vue +0 -95
- package/dist/components/richtext/popup/RichtextPopupLinkEdit.vue +0 -74
- package/dist/components/richtext/tiptap/image-align.d.ts +0 -43
- package/dist/components/richtext/tiptap/image-align.mjs +0 -60
- package/dist/components/ringbar/Ringbar.vue +0 -158
- package/dist/components/ringbar/index.d.ts +0 -1
- package/dist/components/ringbar/index.mjs +0 -0
- package/dist/components/select/Select.vue +0 -576
- package/dist/components/select/SelectInput.vue +0 -123
- package/dist/components/select/SelectTags.vue +0 -58
- package/dist/components/select/adapter/adapter.d.ts +0 -17
- package/dist/components/select/adapter/adapter.mjs +0 -20
- package/dist/components/select/adapter/async-adapter.d.ts +0 -17
- package/dist/components/select/adapter/async-adapter.mjs +0 -61
- package/dist/components/select/adapter/basic-adapter.d.ts +0 -5
- package/dist/components/select/adapter/basic-adapter.mjs +0 -13
- package/dist/components/select/adapter/fuzzy-adapter.d.ts +0 -2
- package/dist/components/select/adapter/fuzzy-adapter.mjs +0 -24
- package/dist/components/select/index.d.ts +0 -15
- package/dist/components/select/index.mjs +0 -20
- package/dist/components/select/utils/use-on-scroll.d.ts +0 -2
- package/dist/components/select/utils/use-on-scroll.mjs +0 -9
- package/dist/components/select/utils/use-on-typing.d.ts +0 -3
- package/dist/components/select/utils/use-on-typing.mjs +0 -8
- package/dist/components/sheet/Sheet.vue +0 -230
- package/dist/components/shimmer/Shimmer.vue +0 -123
- package/dist/components/shimmer/index.d.ts +0 -2
- package/dist/components/shimmer/index.mjs +0 -10
- package/dist/components/sidebar/Sidebar.vue +0 -249
- package/dist/components/sidebar/SidebarBrand.vue +0 -108
- package/dist/components/sidebar/SidebarContent.vue +0 -21
- package/dist/components/sidebar/SidebarContent.vue.d.ts +0 -16
- package/dist/components/sidebar/SidebarNav.vue +0 -260
- package/dist/components/sidebar/index.d.ts +0 -9
- package/dist/components/sidebar/index.mjs +0 -1
- package/dist/components/sidebar-menu/SidebarMenu.vue +0 -123
- package/dist/components/sidebar-menu/SidebarMenuItem.vue +0 -70
- package/dist/components/sidebar-menu/index.d.ts +0 -138
- package/dist/components/sidebar-menu/index.mjs +0 -44
- package/dist/components/signature-draw/SignatureDraw.vue +0 -101
- package/dist/components/signature-draw/SignatureDrawDesktop.vue +0 -165
- package/dist/components/signature-draw/SignatureDrawMobile.vue +0 -244
- package/dist/components/signature-draw/utils/canvas.d.ts +0 -41
- package/dist/components/signature-draw/utils/canvas.mjs +0 -55
- package/dist/components/signature-draw/utils/image.d.ts +0 -7
- package/dist/components/signature-draw/utils/image.mjs +0 -23
- package/dist/components/signature-draw/utils/smooth-line.d.ts +0 -36
- package/dist/components/signature-draw/utils/smooth-line.mjs +0 -56
- package/dist/components/signature-draw/utils/straight-line.d.ts +0 -8
- package/dist/components/signature-draw/utils/straight-line.mjs +0 -24
- package/dist/components/signature-draw/utils/use-draw.d.ts +0 -7
- package/dist/components/signature-draw/utils/use-draw.mjs +0 -29
- package/dist/components/signature-text/SignatureText.vue +0 -138
- package/dist/components/signature-text/utils/formatter.d.ts +0 -2
- package/dist/components/signature-text/utils/formatter.mjs +0 -8
- package/dist/components/signature-text/utils/generate-text.d.ts +0 -8
- package/dist/components/signature-text/utils/generate-text.mjs +0 -28
- package/dist/components/signature-text/utils/load-font.d.ts +0 -1
- package/dist/components/signature-text/utils/load-font.mjs +0 -22
- package/dist/components/spinner/Spinner.vue +0 -156
- package/dist/components/spinner/SpinnerRing.vue +0 -34
- package/dist/components/spinner/SpinnerRinggo.vue +0 -64
- package/dist/components/spread/Spread.vue +0 -52
- package/dist/components/steps/Step.vue +0 -49
- package/dist/components/steps/StepSlider.vue +0 -37
- package/dist/components/steps/StepSlider.vue.d.ts +0 -34
- package/dist/components/steps/Steps.vue +0 -150
- package/dist/components/steps/index.d.ts +0 -30
- package/dist/components/steps/index.mjs +0 -53
- package/dist/components/steps/utils/hook.d.ts +0 -10
- package/dist/components/steps/utils/hook.mjs +0 -35
- package/dist/components/strengthbar/Strengthbar.vue +0 -97
- package/dist/components/subheading/Subheading.vue +0 -148
- package/dist/components/subheading/index.d.ts +0 -1
- package/dist/components/subheading/index.mjs +0 -0
- package/dist/components/table/Table.vue +0 -391
- package/dist/components/table/Table.vue.d.ts +0 -174
- package/dist/components/table/index.d.ts +0 -49
- package/dist/components/table/index.mjs +0 -37
- package/dist/components/table-flex/TableFlex.vue +0 -341
- package/dist/components/table-static/TableStatic.vue +0 -458
- package/dist/components/table-static/TableStaticRoot.vue +0 -42
- package/dist/components/table-static/TableStaticSort.vue +0 -23
- package/dist/components/table-static/index.d.ts +0 -64
- package/dist/components/table-static/index.mjs +0 -24
- package/dist/components/tabs/Tab.vue +0 -34
- package/dist/components/tabs/TabContent.vue +0 -53
- package/dist/components/tabs/TabContent.vue.d.ts +0 -33
- package/dist/components/tabs/Tabs.vue +0 -234
- package/dist/components/text/Text.vue +0 -235
- package/dist/components/text/index.d.ts +0 -2
- package/dist/components/text/index.mjs +0 -0
- package/dist/components/textarea/Textarea.vue +0 -188
- package/dist/components/time/Time.vue +0 -257
- package/dist/components/time/TimeItem.vue +0 -117
- package/dist/components/time/index.d.ts +0 -19
- package/dist/components/time/index.mjs +0 -53
- package/dist/components/time/utils/index.d.ts +0 -9
- package/dist/components/time/utils/index.mjs +0 -82
- package/dist/components/timepicker/Timepicker.vue +0 -230
- package/dist/components/toast/Toast.vue +0 -269
- package/dist/components/toast/index.d.ts +0 -50
- package/dist/components/toast/index.mjs +0 -44
- package/dist/components/toggle/Toggle.vue +0 -239
- package/dist/components/tooltip/Tooltip.vue +0 -172
- package/dist/components/tooltip/TooltipContainer.vue +0 -89
- package/dist/components/tooltip/index.d.ts +0 -17
- package/dist/components/tooltip/index.mjs +0 -113
- package/dist/components/tooltip/utils/create-handler.d.ts +0 -9
- package/dist/components/tooltip/utils/create-handler.mjs +0 -16
- package/dist/components/tooltip/utils/on-hover.d.ts +0 -23
- package/dist/components/tooltip/utils/on-hover.mjs +0 -42
- package/dist/components/tooltip/utils/parse-bindings.d.ts +0 -23
- package/dist/components/tooltip/utils/parse-bindings.mjs +0 -47
- package/dist/components/tour/Tour.vue +0 -112
- package/dist/components/tour/TourDialog.vue +0 -207
- package/dist/components/tour/TourHighlight.vue +0 -58
- package/dist/components/tour/core/base.d.ts +0 -59
- package/dist/components/tour/core/base.mjs +0 -69
- package/dist/components/tour/core/step/action.d.ts +0 -15
- package/dist/components/tour/core/step/action.mjs +0 -14
- package/dist/components/tour/core/step/conditional.d.ts +0 -25
- package/dist/components/tour/core/step/conditional.mjs +0 -57
- package/dist/components/tour/core/step/delay.d.ts +0 -8
- package/dist/components/tour/core/step/delay.mjs +0 -9
- package/dist/components/tour/core/step/dialog.d.ts +0 -11
- package/dist/components/tour/core/step/dialog.mjs +0 -25
- package/dist/components/tour/core/step/visit.d.ts +0 -9
- package/dist/components/tour/core/step/visit.mjs +0 -15
- package/dist/components/tour/core/step.d.ts +0 -37
- package/dist/components/tour/core/step.mjs +0 -46
- package/dist/components/tour/core/story.d.ts +0 -130
- package/dist/components/tour/core/story.mjs +0 -166
- package/dist/components/tour/core/tour.d.ts +0 -126
- package/dist/components/tour/core/tour.mjs +0 -196
- package/dist/components/tour/index.d.ts +0 -3
- package/dist/components/tour/index.mjs +0 -4
- package/dist/components/tour/utils/focus.d.ts +0 -1
- package/dist/components/tour/utils/focus.mjs +0 -6
- package/dist/components/tour/utils/is-visible.d.ts +0 -1
- package/dist/components/tour/utils/is-visible.mjs +0 -29
- package/dist/components/tour/utils/wait-element.d.ts +0 -6
- package/dist/components/tour/utils/wait-element.mjs +0 -45
- package/dist/components/truncate/Truncate.vue +0 -75
- package/dist/components/utils/array.d.ts +0 -2
- package/dist/components/utils/array.mjs +0 -19
- package/dist/components/utils/base64.d.ts +0 -8
- package/dist/components/utils/base64.mjs +0 -35
- package/dist/components/utils/color.d.ts +0 -17
- package/dist/components/utils/color.mjs +0 -14
- package/dist/components/utils/date.d.ts +0 -22
- package/dist/components/utils/date.mjs +0 -14
- package/dist/components/utils/value.d.ts +0 -8
- package/dist/components/utils/value.mjs +0 -7
- package/dist/components/utils/vnode.d.ts +0 -15
- package/dist/components/utils/vnode.mjs +0 -18
- package/dist/components/wizard/Wizard.vue +0 -84
- package/dist/components/wizard/WizardBody.vue +0 -50
- package/dist/components/wizard/WizardHeader.vue +0 -38
- package/dist/components/wizard/WizardHeader.vue.d.ts +0 -16
- package/dist/components/wizard/WizardStep.vue +0 -31
- package/dist/core/index.d.ts +0 -43
- package/dist/core/index.mjs +0 -148
- package/dist/directive/index.d.ts +0 -3
- package/dist/directive/index.mjs +0 -12
- package/dist/module.cjs +0 -5
- package/dist/module.d.ts +0 -27
- package/dist/runtime/plugins/persona.d.ts +0 -2
- package/dist/runtime/plugins/persona.js +0 -35
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<li
|
|
3
|
-
data-testid="nav-item-dropdown"
|
|
4
|
-
class="nav__item nav__item--dropdown">
|
|
5
|
-
<Dropdown
|
|
6
|
-
v-model="model"
|
|
7
|
-
:text="text"
|
|
8
|
-
:icon="icon"
|
|
9
|
-
:variant="variant"
|
|
10
|
-
:size="size"
|
|
11
|
-
:placement="placement"
|
|
12
|
-
:no-caret="noCaret"
|
|
13
|
-
:divider="divider"
|
|
14
|
-
:menu-class="menuClass"
|
|
15
|
-
:menu-size="menuSize">
|
|
16
|
-
<template #button-content>
|
|
17
|
-
<slot name="button-content">
|
|
18
|
-
{{ text }}
|
|
19
|
-
</slot>
|
|
20
|
-
</template>
|
|
21
|
-
<slot />
|
|
22
|
-
</Dropdown>
|
|
23
|
-
</li>
|
|
24
|
-
</template>
|
|
25
|
-
|
|
26
|
-
<script lang="ts" setup>
|
|
27
|
-
import type { PropType, VNode } from 'vue-demi'
|
|
28
|
-
import Dropdown from '../dropdown/Dropdown.vue'
|
|
29
|
-
import type { Placement } from '@floating-ui/core'
|
|
30
|
-
import type {
|
|
31
|
-
SizeVariant,
|
|
32
|
-
StyleVariant,
|
|
33
|
-
} from '../button'
|
|
34
|
-
import { useVModel } from '../input'
|
|
35
|
-
import type { MenuSizeVariant } from '../dropdown'
|
|
36
|
-
|
|
37
|
-
const props = defineProps({
|
|
38
|
-
modelValue: {
|
|
39
|
-
type : Boolean,
|
|
40
|
-
default: false,
|
|
41
|
-
},
|
|
42
|
-
text: {
|
|
43
|
-
type : String,
|
|
44
|
-
default: '',
|
|
45
|
-
},
|
|
46
|
-
icon: {
|
|
47
|
-
type : Boolean,
|
|
48
|
-
default: false,
|
|
49
|
-
},
|
|
50
|
-
size: {
|
|
51
|
-
type : String as PropType<SizeVariant>,
|
|
52
|
-
default: 'md',
|
|
53
|
-
},
|
|
54
|
-
variant: {
|
|
55
|
-
type : String as PropType<StyleVariant>,
|
|
56
|
-
default: 'ghost',
|
|
57
|
-
},
|
|
58
|
-
noCaret: {
|
|
59
|
-
type : Boolean,
|
|
60
|
-
default: false,
|
|
61
|
-
},
|
|
62
|
-
placement: {
|
|
63
|
-
type : String as PropType<Placement>,
|
|
64
|
-
default: 'bottom-end',
|
|
65
|
-
},
|
|
66
|
-
menuClass: {
|
|
67
|
-
type: [
|
|
68
|
-
String,
|
|
69
|
-
Array,
|
|
70
|
-
Object,
|
|
71
|
-
],
|
|
72
|
-
default: undefined,
|
|
73
|
-
},
|
|
74
|
-
menuSize: {
|
|
75
|
-
type : String as PropType<MenuSizeVariant>,
|
|
76
|
-
default: 'sm',
|
|
77
|
-
},
|
|
78
|
-
divider: {
|
|
79
|
-
type : Boolean,
|
|
80
|
-
default: false,
|
|
81
|
-
},
|
|
82
|
-
})
|
|
83
|
-
|
|
84
|
-
defineEmits<{
|
|
85
|
-
'update:modelValue': [boolean],
|
|
86
|
-
}>()
|
|
87
|
-
|
|
88
|
-
const model = useVModel(props)
|
|
89
|
-
|
|
90
|
-
defineSlots<{
|
|
91
|
-
'default'(): VNode[],
|
|
92
|
-
'button-content'(): VNode[],
|
|
93
|
-
}>()
|
|
94
|
-
</script>
|
|
95
|
-
|
|
96
|
-
<style lang="postcss">
|
|
97
|
-
.nav {
|
|
98
|
-
&__item {
|
|
99
|
-
&--dropdown {
|
|
100
|
-
@apply ml-auto relative;
|
|
101
|
-
|
|
102
|
-
.dropdown {
|
|
103
|
-
&__menu {
|
|
104
|
-
.dropdown__item {
|
|
105
|
-
@apply px-3;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
&--fill {
|
|
113
|
-
.nav__item {
|
|
114
|
-
&--dropdown {
|
|
115
|
-
@apply text-right;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
</style>
|
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<li
|
|
3
|
-
ref="root"
|
|
4
|
-
data-testid="nav-subitem"
|
|
5
|
-
class="nav__subitem"
|
|
6
|
-
:class="classNames">
|
|
7
|
-
<div
|
|
8
|
-
class="nav__subitem__parent"
|
|
9
|
-
data-testid="nav-subitem-parent"
|
|
10
|
-
@click.prevent="toggleExpand">
|
|
11
|
-
<span
|
|
12
|
-
v-if="$slots.icon"
|
|
13
|
-
class="nav__link__icon">
|
|
14
|
-
<slot name="icon" />
|
|
15
|
-
</span>
|
|
16
|
-
<span class="nav__link__label">
|
|
17
|
-
{{ text }}
|
|
18
|
-
</span>
|
|
19
|
-
<IconArrow
|
|
20
|
-
v-if="collapsible"
|
|
21
|
-
class="nav__link__caret" />
|
|
22
|
-
</div>
|
|
23
|
-
<Collapse :model-value="isExpand">
|
|
24
|
-
<slot />
|
|
25
|
-
</Collapse>
|
|
26
|
-
</li>
|
|
27
|
-
</template>
|
|
28
|
-
|
|
29
|
-
<script lang="ts" setup>
|
|
30
|
-
import type { VNode } from 'vue-demi'
|
|
31
|
-
import {
|
|
32
|
-
computed,
|
|
33
|
-
inject,
|
|
34
|
-
ref,
|
|
35
|
-
onMounted,
|
|
36
|
-
} from 'vue-demi'
|
|
37
|
-
import { SIDEBAR_SETTINGS } from '../sidebar'
|
|
38
|
-
import IconArrow from '@privyid/persona-icon/vue/chevron-down/16.vue'
|
|
39
|
-
import Collapse from '../collapse/Collapse.vue'
|
|
40
|
-
|
|
41
|
-
const props = defineProps({
|
|
42
|
-
text: {
|
|
43
|
-
type : String,
|
|
44
|
-
default: undefined,
|
|
45
|
-
},
|
|
46
|
-
collapsible: {
|
|
47
|
-
type : Boolean,
|
|
48
|
-
default: false,
|
|
49
|
-
},
|
|
50
|
-
})
|
|
51
|
-
|
|
52
|
-
const slots = defineSlots<{
|
|
53
|
-
'icon'(): VNode[],
|
|
54
|
-
'default'(): VNode[],
|
|
55
|
-
}>()
|
|
56
|
-
|
|
57
|
-
const settings = inject(SIDEBAR_SETTINGS, undefined, true)
|
|
58
|
-
const root = ref<HTMLLIElement>()
|
|
59
|
-
const collapsible = computed(() => props.collapsible && settings?.type !== 'narrow')
|
|
60
|
-
const isExpand = ref(!props.collapsible)
|
|
61
|
-
|
|
62
|
-
const classNames = computed(() => {
|
|
63
|
-
const result: string[] = []
|
|
64
|
-
|
|
65
|
-
if (slots.icon)
|
|
66
|
-
result.push('nav__subitem--icon')
|
|
67
|
-
|
|
68
|
-
if (collapsible.value) {
|
|
69
|
-
result.push('nav__subitem--collapsible')
|
|
70
|
-
|
|
71
|
-
if (isExpand.value)
|
|
72
|
-
result.push('nav__subitem--expanded')
|
|
73
|
-
else
|
|
74
|
-
result.push('nav__subitem--collapsed')
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
return result
|
|
78
|
-
})
|
|
79
|
-
|
|
80
|
-
function toggleExpand () {
|
|
81
|
-
if (collapsible.value)
|
|
82
|
-
isExpand.value = !isExpand.value
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
onMounted(() => {
|
|
86
|
-
if (collapsible.value && root.value) {
|
|
87
|
-
isExpand.value = root.value
|
|
88
|
-
.querySelectorAll('.router-link-active:not(.nav__link--exact),.router-link-exact-active.nav__link--exact')
|
|
89
|
-
.length > 0
|
|
90
|
-
}
|
|
91
|
-
})
|
|
92
|
-
</script>
|
|
93
|
-
|
|
94
|
-
<style lang="postcss">
|
|
95
|
-
.nav {
|
|
96
|
-
&__subitem {
|
|
97
|
-
/**
|
|
98
|
-
* there is some tricky here.
|
|
99
|
-
* default text is set with muted color
|
|
100
|
-
* (used for disabled state)
|
|
101
|
-
* in the future, when all sub-item
|
|
102
|
-
* is disabled, parent menu
|
|
103
|
-
* will disabled too
|
|
104
|
-
*/
|
|
105
|
-
@apply block text-base text-muted;
|
|
106
|
-
@apply dark:text-dark-muted;
|
|
107
|
-
|
|
108
|
-
&&--collapsible {
|
|
109
|
-
/**
|
|
110
|
-
* when menu is collapsible,
|
|
111
|
-
* parent menu is set to
|
|
112
|
-
* active state
|
|
113
|
-
*/
|
|
114
|
-
.nav__subitem__parent {
|
|
115
|
-
@apply cursor-pointer text-default relative;
|
|
116
|
-
@apply dark:text-dark-default;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.nav__link__caret {
|
|
120
|
-
@apply absolute right-3 rotate-180 origin-center ease-in-out duration-150;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
&.nav__subitem--collapsed {
|
|
124
|
-
.nav__link__caret {
|
|
125
|
-
@apply rotate-0;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
&__parent {
|
|
131
|
-
@apply flex flex-row items-center p-3 border border-transparent cursor-default rounded;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.nav {
|
|
135
|
-
@apply pt-3 select-none;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
&&--icon {
|
|
139
|
-
.nav__link__icon {
|
|
140
|
-
@apply grow-0;
|
|
141
|
-
|
|
142
|
-
img {
|
|
143
|
-
@apply w-5 h-5;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.nav__link__label {
|
|
148
|
-
@apply shrink pl-3 w-full select-none;
|
|
149
|
-
|
|
150
|
-
.badge {
|
|
151
|
-
@apply ml-auto;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* when all of sub-item has no
|
|
158
|
-
* disabled state, set text color
|
|
159
|
-
* of parent with default color
|
|
160
|
-
* (used for active or hover state)
|
|
161
|
-
*/
|
|
162
|
-
&:has(ul > li:not(.nav__item--disabled)) {
|
|
163
|
-
.nav__subitem__parent {
|
|
164
|
-
@apply text-default;
|
|
165
|
-
@apply dark:text-dark-default;
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* when menu is set to collapsible
|
|
171
|
-
* and its collapsed, then styling parent
|
|
172
|
-
* with normal state
|
|
173
|
-
*/
|
|
174
|
-
&:is(&--collapsible&--collapsed):has(ul > li:not(.nav__item--disabled)) {
|
|
175
|
-
.nav__subitem__parent {
|
|
176
|
-
@apply text-subtle hover:text-default;
|
|
177
|
-
@apply dark:text-dark-subtle hover:dark:text-dark-default;
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
.sidebar__nav .nav__link__label {
|
|
182
|
-
@apply pl-8;
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
&&--condensed {
|
|
187
|
-
.nav__subitem {
|
|
188
|
-
&__parent {
|
|
189
|
-
@apply py-1;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
</style>
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<li
|
|
3
|
-
class="nav__text"
|
|
4
|
-
data-testid="nav-text">
|
|
5
|
-
<slot />
|
|
6
|
-
</li>
|
|
7
|
-
</template>
|
|
8
|
-
|
|
9
|
-
<style lang="postcss">
|
|
10
|
-
.nav {
|
|
11
|
-
&__text {
|
|
12
|
-
@apply inline-block ml-3;
|
|
13
|
-
|
|
14
|
-
.navbar--collapse.collapse--show & {
|
|
15
|
-
@apply ml-0;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
</style>
|
|
File without changes
|
|
@@ -1,284 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<nav
|
|
3
|
-
ref="navbar"
|
|
4
|
-
data-testid="navbar"
|
|
5
|
-
class="navbar"
|
|
6
|
-
:class="[{ 'navbar--shadow' : (y > height)}, classNames]">
|
|
7
|
-
<slot />
|
|
8
|
-
</nav>
|
|
9
|
-
</template>
|
|
10
|
-
|
|
11
|
-
<script lang="ts" setup>
|
|
12
|
-
import type { PropType } from 'vue-demi'
|
|
13
|
-
import {
|
|
14
|
-
computed,
|
|
15
|
-
provide,
|
|
16
|
-
ref,
|
|
17
|
-
toRef,
|
|
18
|
-
watchEffect,
|
|
19
|
-
} from 'vue-demi'
|
|
20
|
-
import type { StyleVariant } from '../nav'
|
|
21
|
-
import {
|
|
22
|
-
useElementBounding,
|
|
23
|
-
useWindowScroll,
|
|
24
|
-
} from '@vueuse/core'
|
|
25
|
-
import type { ToggleableVariant } from '.'
|
|
26
|
-
import { NAVBAR_SETTINGS } from '.'
|
|
27
|
-
|
|
28
|
-
const props = defineProps({
|
|
29
|
-
variant: {
|
|
30
|
-
type : String as PropType<StyleVariant>,
|
|
31
|
-
default: 'pills',
|
|
32
|
-
},
|
|
33
|
-
toggleable: {
|
|
34
|
-
type : String as PropType<ToggleableVariant | undefined>,
|
|
35
|
-
default: undefined,
|
|
36
|
-
},
|
|
37
|
-
fixed: {
|
|
38
|
-
type : Boolean,
|
|
39
|
-
default: false,
|
|
40
|
-
},
|
|
41
|
-
sticky: {
|
|
42
|
-
type : Boolean,
|
|
43
|
-
default: false,
|
|
44
|
-
},
|
|
45
|
-
condensed: {
|
|
46
|
-
type : Boolean,
|
|
47
|
-
default: false,
|
|
48
|
-
},
|
|
49
|
-
})
|
|
50
|
-
|
|
51
|
-
const { y } = useWindowScroll()
|
|
52
|
-
const navbar = ref<HTMLElement>()
|
|
53
|
-
const { height } = useElementBounding(navbar)
|
|
54
|
-
|
|
55
|
-
const classNames = computed(() => {
|
|
56
|
-
const result: string[] = ['']
|
|
57
|
-
|
|
58
|
-
if (props.fixed)
|
|
59
|
-
result.push('navbar--fixed')
|
|
60
|
-
|
|
61
|
-
if (props.sticky)
|
|
62
|
-
result.push('navbar--sticky')
|
|
63
|
-
|
|
64
|
-
if (props.variant)
|
|
65
|
-
result.push(`navbar--${props.variant}`)
|
|
66
|
-
|
|
67
|
-
if (props.toggleable)
|
|
68
|
-
result.push(`navbar--expand-${props.toggleable}`)
|
|
69
|
-
|
|
70
|
-
return result
|
|
71
|
-
})
|
|
72
|
-
|
|
73
|
-
watchEffect((onCleanup) => {
|
|
74
|
-
if (typeof document !== 'undefined' && document.body && props.fixed) {
|
|
75
|
-
document.body.style.setProperty('padding-top', `${height.value}px`)
|
|
76
|
-
document.body.style.setProperty('--p-navbar-height', `${height.value}px`)
|
|
77
|
-
|
|
78
|
-
onCleanup(() => {
|
|
79
|
-
document.body.style.removeProperty('padding-top')
|
|
80
|
-
document.body.style.removeProperty('--p-navbar-height')
|
|
81
|
-
})
|
|
82
|
-
}
|
|
83
|
-
})
|
|
84
|
-
|
|
85
|
-
provide(NAVBAR_SETTINGS, {
|
|
86
|
-
variant : toRef(props, 'variant'),
|
|
87
|
-
toggleable: toRef(props, 'toggleable'),
|
|
88
|
-
condensed : toRef(props, 'condensed'),
|
|
89
|
-
})
|
|
90
|
-
</script>
|
|
91
|
-
|
|
92
|
-
<style lang="postcss">
|
|
93
|
-
.navbar {
|
|
94
|
-
--p-navbar-z-index: theme(zIndex.fixed);
|
|
95
|
-
--p-navbar-sticky-top: theme(spacing.0);
|
|
96
|
-
--p-navbar-fixed-top: theme(spacing.0);
|
|
97
|
-
--p-navbar-collapse-max-height: 20rem; /** 320px */
|
|
98
|
-
--p-navbar-padding-x: theme(spacing.3);
|
|
99
|
-
--p-navbar-padding-left: var(--p-navbar-padding-x);
|
|
100
|
-
--p-navbar-padding-right: var(--p-navbar-padding-x);
|
|
101
|
-
--p-navbar-padding-y: theme(spacing.3);
|
|
102
|
-
--p-navbar-padding-top: var(--p-navbar-padding-y);
|
|
103
|
-
--p-navbar-padding-bottom: var(--p-navbar-padding-y);
|
|
104
|
-
--p-navbar-bg: theme(backgroundColor.default.DEFAULT);
|
|
105
|
-
--p-navbar-bg-dark: theme(backgroundColor.dark.default.DEFAULT);
|
|
106
|
-
--p-navbar-shadow: none;
|
|
107
|
-
--p-navbar-shadow-on-scroll: theme(boxShadow.lg);
|
|
108
|
-
|
|
109
|
-
@apply bg-[color:var(--p-navbar-bg)] relative pl-[var(--p-navbar-padding-left)] pr-[var(--p-navbar-padding-right)] pt-[var(--p-navbar-padding-top)] pb-[var(--p-navbar-padding-bottom)] flex items-center flex-wrap transition-shadow duration-150 ease-in-out;
|
|
110
|
-
@apply dark:bg-[color:var(--p-navbar-bg-dark)];
|
|
111
|
-
box-shadow: var(--p-navbar-shadow);
|
|
112
|
-
|
|
113
|
-
&&--fixed {
|
|
114
|
-
@apply fixed left-0 top-[var(--p-navbar-fixed-top)] w-full z-[var(--p-navbar-z-index)] transition-all;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
&&--sticky {
|
|
118
|
-
@apply sticky top-[var(--p-navbar-sticky-top)] z-sticky;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
&&--shadow {
|
|
122
|
-
@apply transition-shadow duration-150 ease-in-out;
|
|
123
|
-
box-shadow: var(--p-navbar-shadow-on-scroll);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
&&--expand {
|
|
127
|
-
:is(&-all, &-lg, &-md, &-sm) {
|
|
128
|
-
@apply justify-between;
|
|
129
|
-
|
|
130
|
-
.navbar__nav {
|
|
131
|
-
@apply flex-col;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
&-all {
|
|
136
|
-
& > .collapse {
|
|
137
|
-
@apply visible;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
&-lg {
|
|
142
|
-
.navbar__nav {
|
|
143
|
-
@apply lg:flex-row;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
& > .collapse {
|
|
147
|
-
@apply lg:visible;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.navbar--collapse {
|
|
151
|
-
@apply lg:flex lg:basis-auto;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
&-md {
|
|
156
|
-
.navbar__nav {
|
|
157
|
-
@apply md:flex-row;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
& > .collapse {
|
|
161
|
-
@apply md:visible;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.navbar--collapse {
|
|
165
|
-
@apply md:flex md:basis-auto;
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
&-sm {
|
|
170
|
-
.navbar__nav {
|
|
171
|
-
@apply sm:flex-row;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
& > .collapse {
|
|
175
|
-
@apply sm:visible;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
.navbar--collapse {
|
|
179
|
-
@apply sm:flex sm:basis-auto;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
&--collapse {
|
|
185
|
-
@apply basis-full grow items-center max-h-[var(--p-navbar-collapse-max-height)] overflow-y-auto;
|
|
186
|
-
|
|
187
|
-
&.collapse--show {
|
|
188
|
-
@apply mt-3;
|
|
189
|
-
|
|
190
|
-
.nav__item--dropdown {
|
|
191
|
-
@apply ml-0;
|
|
192
|
-
|
|
193
|
-
.dropdown,
|
|
194
|
-
.btn {
|
|
195
|
-
@apply flex w-full;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
.dropdown {
|
|
199
|
-
@apply flex-col;
|
|
200
|
-
|
|
201
|
-
&__menu {
|
|
202
|
-
@apply static shadow-none border-0 bg-ground rounded-t-none;
|
|
203
|
-
@apply dark:bg-dark-ground;
|
|
204
|
-
|
|
205
|
-
&:where(.dropdown__menu--sm, .dropdown__menu--md, .dropdown__menu--lg) {
|
|
206
|
-
@apply w-full;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
&__container {
|
|
210
|
-
.dropdown__item {
|
|
211
|
-
@apply first:rounded-t-none;
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
&.dropdown--open {
|
|
217
|
-
.dropdown__activator.btn.btn--md {
|
|
218
|
-
@apply rounded-b-none bg-ground;
|
|
219
|
-
@apply dark:bg-dark-ground;
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
&-icon {
|
|
225
|
-
.dropdown__menu__container {
|
|
226
|
-
.dropdown__item {
|
|
227
|
-
@apply px-11;
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
.btn {
|
|
233
|
-
@apply justify-start;
|
|
234
|
-
|
|
235
|
-
.dropdown__caret {
|
|
236
|
-
@apply ml-auto;
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
:where(.nav__item, .nav__text, .nav__form) {
|
|
242
|
-
@apply w-full;
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
&&--lines {
|
|
248
|
-
.navbar--collapse {
|
|
249
|
-
|
|
250
|
-
&.collapse--show {
|
|
251
|
-
|
|
252
|
-
.nav__item--dropdown {
|
|
253
|
-
|
|
254
|
-
.dropdown {
|
|
255
|
-
&__menu {
|
|
256
|
-
@apply rounded mt-2;
|
|
257
|
-
|
|
258
|
-
&__container {
|
|
259
|
-
.dropdown__item {
|
|
260
|
-
@apply first:rounded-t;
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
&.dropdown--open {
|
|
266
|
-
.dropdown__activator.btn.btn--md {
|
|
267
|
-
@apply rounded-b-none bg-transparent;
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
&-icon {
|
|
273
|
-
.dropdown__menu__container {
|
|
274
|
-
.dropdown__item {
|
|
275
|
-
@apply px-3;
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
</style>
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<a
|
|
3
|
-
:href="href"
|
|
4
|
-
data-testid="navbar-brand"
|
|
5
|
-
class="navbar__brand">
|
|
6
|
-
<slot />
|
|
7
|
-
</a>
|
|
8
|
-
</template>
|
|
9
|
-
|
|
10
|
-
<script lang="ts" setup>
|
|
11
|
-
defineProps({
|
|
12
|
-
href: {
|
|
13
|
-
type : String,
|
|
14
|
-
default: undefined,
|
|
15
|
-
},
|
|
16
|
-
})
|
|
17
|
-
</script>
|
|
18
|
-
|
|
19
|
-
<style lang="postcss">
|
|
20
|
-
a.navbar {
|
|
21
|
-
&__brand {
|
|
22
|
-
@apply inline-block mr-4 text-xl py-1 font-medium text-default no-underline cursor-pointer hover:no-underline;
|
|
23
|
-
@apply dark:text-dark-default;
|
|
24
|
-
|
|
25
|
-
img {
|
|
26
|
-
@apply h-7 w-auto inline-block;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
</style>
|