@privyid/persona 0.21.0 → 0.23.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/components/accordion/Accordion.vue +5 -2
- package/dist/components/accordion/AccordionItem.vue +9 -7
- package/dist/components/avatar/Avatar.vue.d.ts +2 -2
- package/dist/components/badge/Badge.vue +21 -3
- package/dist/components/badge/Badge.vue.d.ts +1 -1
- package/dist/components/banner/Banner.vue +5 -0
- package/dist/components/banner/Banner.vue.d.ts +9 -0
- package/dist/components/button/Button.vue +18 -18
- package/dist/components/calendar/Calendar.vue.d.ts +2 -2
- package/dist/components/calendar/adapter/adapter.d.ts +1 -8
- package/dist/components/calendar/adapter/adapter.mjs +0 -10
- package/dist/components/calendar/adapter/date.mjs +2 -2
- package/dist/components/calendar/adapter/month.mjs +2 -2
- package/dist/components/camera/Camera.vue.d.ts +3 -3
- package/dist/components/card/Card.vue.d.ts +1 -1
- package/dist/components/card/CardSection.vue +1 -0
- package/dist/components/card/CardSection.vue.d.ts +1 -1
- package/dist/components/carousel/Carousel.vue.d.ts +8 -8
- package/dist/components/chart/ChartSet.vue.d.ts +2 -2
- package/dist/components/chart/ChartVal.vue.d.ts +4 -4
- package/dist/components/checkbox/Checkbox.vue +98 -112
- package/dist/components/checkbox/icon/IconCheckbox.vue +13 -0
- package/dist/components/checkbox/icon/IconInderteminate.vue +12 -0
- package/dist/components/contextual-bar/ContextualBar.vue +67 -19
- package/dist/components/contextual-bar/ContextualBar.vue.d.ts +4 -4
- package/dist/components/contextual-bar/index.d.ts +1 -1
- package/dist/components/cropper/Cropper.vue.d.ts +10 -10
- package/dist/components/datepicker/Datepicker.vue +2 -0
- package/dist/components/datepicker/Datepicker.vue.d.ts +3 -3
- package/dist/components/dialog/Dialog.vue +2 -0
- package/dist/components/dialog/index.d.ts +2 -0
- package/dist/components/divider/Divider.vue +1 -1
- package/dist/components/dot/Dot.vue.d.ts +1 -1
- package/dist/components/dropdown/Dropdown.vue +303 -222
- package/dist/components/dropdown/DropdownItem.vue +8 -8
- package/dist/components/dropdown-subitem/DropdownSubitem.vue.d.ts +1 -1
- package/dist/components/dropzone/Dropzone.vue.d.ts +5 -5
- package/dist/components/filterbar/pinned/PinnedDate.vue +2 -0
- package/dist/components/filterbar/pinned/PinnedDate.vue.d.ts +3 -3
- package/dist/components/filterbar/pinned/PinnedMultiselect.vue +10 -6
- package/dist/components/filterbar/pinned/PinnedMultiselect.vue.d.ts +1 -1
- package/dist/components/filterbar/pinned/PinnedSelect.vue +11 -7
- package/dist/components/filterbar/pinned/PinnedSelect.vue.d.ts +4 -4
- package/dist/components/filterbar/pinned/PinnedToggle.vue.d.ts +7 -7
- package/dist/components/global/store.d.ts +2 -1
- package/dist/components/input/Input.vue +16 -5
- package/dist/components/input/Input.vue.d.ts +6 -5
- package/dist/components/input/index.d.ts +1 -1
- package/dist/components/input-file/InputFile.vue.d.ts +5 -5
- package/dist/components/input-pin/InputPin.vue.d.ts +3 -3
- package/dist/components/input-range/InputRange.vue.d.ts +8 -8
- package/dist/components/label/Label.vue +31 -12
- package/dist/components/label/Label.vue.d.ts +2 -2
- package/dist/components/list-group/ListGroup.vue.d.ts +1 -1
- package/dist/components/list-group/ListGroupItem.vue +2 -2
- package/dist/components/main/Main.vue +4 -2
- package/dist/components/markdown/index.d.ts +6 -1
- package/dist/components/markdown/index.mjs +8 -2
- package/dist/components/meta.json +135 -0
- package/dist/components/modal/Modal.vue +215 -12
- package/dist/components/modal/Modal.vue.d.ts +56 -2
- package/dist/components/modal/index.d.ts +1 -1
- package/dist/components/nav/Nav.vue +5 -1
- package/dist/components/nav/Nav.vue.d.ts +1 -1
- package/dist/components/nav/NavItem.vue.d.ts +2 -2
- package/dist/components/nav/NavItemDropdown.vue.d.ts +3 -3
- package/dist/components/nav/NavSubItem.vue +6 -6
- package/dist/components/navbar/Navbar.vue.d.ts +1 -1
- package/dist/components/navbar/NavbarBrand.vue +1 -1
- package/dist/components/pagination/Pagination.vue +9 -0
- package/dist/components/pagination/Pagination.vue.d.ts +10 -0
- package/dist/components/pdf-helipad/PdfHelipad.vue +101 -85
- package/dist/components/pdf-helipad/utils/use-drag.d.ts +2 -7
- package/dist/components/pdf-helipad/utils/use-drag.mjs +1 -1
- package/dist/components/pdf-object/PdfObject.vue.d.ts +3 -3
- package/dist/components/pdf-object/index.d.ts +7 -0
- package/dist/components/pdf-object/utils/use-drag.d.ts +1 -0
- package/dist/components/pdf-object/utils/use-drag.mjs +1 -1
- package/dist/components/pdf-text/PdfText.vue.d.ts +4 -4
- package/dist/components/pdf-viewer/PdfViewer.vue.d.ts +6 -6
- package/dist/components/progress-indicator/ProgressIndicator.vue.d.ts +2 -2
- package/dist/components/progressbar/Progressbar.vue.d.ts +7 -7
- package/dist/components/radio/Radio.vue.d.ts +5 -5
- package/dist/components/ringbar/Ringbar.vue.d.ts +6 -6
- package/dist/components/select/Select.vue +402 -214
- package/dist/components/select/SelectInput.vue +102 -0
- package/dist/components/select/SelectTags.vue +57 -0
- package/dist/components/select/adapter/adapter.d.ts +1 -0
- package/dist/components/select/adapter/async-adapter.d.ts +13 -1
- package/dist/components/select/adapter/async-adapter.mjs +8 -15
- package/dist/components/select/index.d.ts +2 -0
- package/dist/components/select/index.mjs +4 -1
- package/dist/components/sheet/Sheet.vue +2 -3
- package/dist/components/sidebar/Sidebar.vue +101 -116
- package/dist/components/sidebar/SidebarBrand.vue +1 -1
- package/dist/components/sidebar/SidebarContent.vue +27 -0
- package/dist/components/sidebar/SidebarNav.vue +78 -87
- package/dist/components/sidebar-menu/SidebarMenu.vue +57 -204
- package/dist/components/sidebar-menu/SidebarMenuItem.vue +70 -0
- package/dist/components/signature-text/SignatureText.vue.d.ts +5 -5
- package/dist/components/steps/StepSlider.vue +2 -2
- package/dist/components/steps/Steps.vue.d.ts +2 -2
- package/dist/components/strengthbar/Strengthbar.vue.d.ts +9 -9
- package/dist/components/table/index.d.ts +5 -8
- package/dist/components/table-flex/TableFlex.vue +14 -11
- package/dist/components/table-static/TableStatic.vue +131 -119
- package/dist/components/table-static/TableStaticRoot.vue +42 -0
- package/dist/components/tabs/Tab.vue +13 -15
- package/dist/components/tabs/TabContent.vue +64 -23
- package/dist/components/tabs/Tabs.vue +93 -75
- package/dist/components/text/Text.vue +15 -7
- package/dist/components/text/Text.vue.d.ts +11 -2
- package/dist/components/text/index.d.ts +1 -0
- package/dist/components/textarea/Textarea.vue.d.ts +5 -5
- package/dist/components/toggle/Toggle.vue +12 -1
- package/dist/components/toggle/Toggle.vue.d.ts +16 -7
- package/dist/components/tooltip/index.mjs +1 -1
- package/dist/components/tooltip/utils/create-handler.mjs +1 -1
- package/dist/components/tour/TourDialog.vue +6 -0
- package/dist/components/truncate/Truncate.vue +1 -1
- package/dist/components/truncate/Truncate.vue.d.ts +2 -2
- package/dist/components/utils/date.d.ts +21 -0
- package/dist/components/utils/date.mjs +15 -0
- package/dist/components/utils/vnode.mjs +1 -1
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.mjs +4 -0
- package/dist/module.json +1 -1
- package/package.json +17 -17
- package/dist/components/checkbox/Checkbox.vue.d.ts +0 -84
- package/dist/components/dropdown/Dropdown.vue.d.ts +0 -147
- package/dist/components/pdf-helipad/PdfHelipad.vue.d.ts +0 -45
- package/dist/components/select/Select.vue.d.ts +0 -157
- package/dist/components/sidebar/Sidebar.vue.d.ts +0 -80
- package/dist/components/sidebar/SidebarNav.vue.d.ts +0 -66
- package/dist/components/sidebar-menu/SidebarMenu.vue.d.ts +0 -91
- package/dist/components/tabs/Tab.vue.d.ts +0 -23
- package/dist/components/tabs/TabContent.vue.d.ts +0 -14
- package/dist/components/tabs/Tabs.vue.d.ts +0 -80
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
{
|
|
2
|
+
"PAccordion": "components/accordion/Accordion.vue",
|
|
3
|
+
"PAccordionItem": "components/accordion/AccordionItem.vue",
|
|
4
|
+
"PAvatar": "components/avatar/Avatar.vue",
|
|
5
|
+
"PBadge": "components/badge/Badge.vue",
|
|
6
|
+
"PBanner": "components/banner/Banner.vue",
|
|
7
|
+
"PBreadcrumb": "components/breadcrumbs/Breadcrumb.vue",
|
|
8
|
+
"PBreadcrumbItem": "components/breadcrumbs/BreadcrumbItem.vue",
|
|
9
|
+
"PBreadcrumbItemDropdown": "components/breadcrumbs/BreadcrumbItemDropdown.vue",
|
|
10
|
+
"PButton": "components/button/Button.vue",
|
|
11
|
+
"PButtonGroup": "components/button-group/ButtonGroup.vue",
|
|
12
|
+
"PCamera": "components/camera/Camera.vue",
|
|
13
|
+
"PCalendar": "components/calendar/Calendar.vue",
|
|
14
|
+
"PCaption": "components/caption/Caption.vue",
|
|
15
|
+
"PCard": "components/card/Card.vue",
|
|
16
|
+
"PCardSection": "components/card/CardSection.vue",
|
|
17
|
+
"PCarousel": "components/carousel/Carousel.vue",
|
|
18
|
+
"PCarouselBody": "components/carousel/CarouselBody.vue",
|
|
19
|
+
"PCarouselItem": "components/carousel/CarouselItem.vue",
|
|
20
|
+
"PChart": "components/chart/Chart.vue",
|
|
21
|
+
"PChartSet": "components/chart/ChartSet.vue",
|
|
22
|
+
"PChartVal": "components/chart/ChartVal.vue",
|
|
23
|
+
"PCheckbox": "components/checkbox/Checkbox.vue",
|
|
24
|
+
"PCollapse": "components/collapse/Collapse.vue",
|
|
25
|
+
"PContextualBar": "components/contextual-bar/ContextualBar.vue",
|
|
26
|
+
"PCropper": "components/cropper/Cropper.vue",
|
|
27
|
+
"PDatepicker": "components/datepicker/Datepicker.vue",
|
|
28
|
+
"PDialog": "components/dialog/Dialog.vue",
|
|
29
|
+
"PDialogFooter": "components/dialog/DialogFooter.vue",
|
|
30
|
+
"PDivider": "components/divider/Divider.vue",
|
|
31
|
+
"PDot": "components/dot/Dot.vue",
|
|
32
|
+
"PDropdown": "components/dropdown/Dropdown.vue",
|
|
33
|
+
"PDropdownHeader": "components/dropdown/DropdownHeader.vue",
|
|
34
|
+
"PDropdownItem": "components/dropdown/DropdownItem.vue",
|
|
35
|
+
"PDropdownSubitem": "components/dropdown-subitem/DropdownSubitem.vue",
|
|
36
|
+
"PDropzone": "components/dropzone/Dropzone.vue",
|
|
37
|
+
"PFilterbar": "components/filterbar/Filterbar.vue",
|
|
38
|
+
"PFormGroup": "components/form-group/FormGroup.vue",
|
|
39
|
+
"PHeading": "components/heading/Heading.vue",
|
|
40
|
+
"PInput": "components/input/Input.vue",
|
|
41
|
+
"PInputFile": "components/input-file/InputFile.vue",
|
|
42
|
+
"PInputGroup": "components/input-group/InputGroup.vue",
|
|
43
|
+
"PInputGroupAddon": "components/input-group/InputGroupAddon.vue",
|
|
44
|
+
"PInputPassword": "components/input-password/InputPassword.vue",
|
|
45
|
+
"PInputPin": "components/input-pin/InputPin.vue",
|
|
46
|
+
"PInputRange": "components/input-range/InputRange.vue",
|
|
47
|
+
"PLabel": "components/label/Label.vue",
|
|
48
|
+
"PListGroup": "components/list-group/ListGroup.vue",
|
|
49
|
+
"PListGroupItem": "components/list-group/ListGroupItem.vue",
|
|
50
|
+
"PMain": "components/main/Main.vue",
|
|
51
|
+
"PModal": "components/modal/Modal.vue",
|
|
52
|
+
"PNav": "components/nav/Nav.vue",
|
|
53
|
+
"PNavCollapse": "components/nav/NavCollapse.vue",
|
|
54
|
+
"PNavForm": "components/nav/NavForm.vue",
|
|
55
|
+
"PNavItem": "components/nav/NavItem.vue",
|
|
56
|
+
"PNavItemDropdown": "components/nav/NavItemDropdown.vue",
|
|
57
|
+
"PNavSubItem": "components/nav/NavSubItem.vue",
|
|
58
|
+
"PNavText": "components/nav/NavText.vue",
|
|
59
|
+
"PNavbar": "components/navbar/Navbar.vue",
|
|
60
|
+
"PNavbarBrand": "components/navbar/NavbarBrand.vue",
|
|
61
|
+
"PNavbarNav": "components/navbar/NavbarNav.vue",
|
|
62
|
+
"PNavbarToggle": "components/navbar/NavbarToggle.vue",
|
|
63
|
+
"PNavbarNavMenu": "components/navbar-menu/NavbarNavMenu.vue",
|
|
64
|
+
"POverlay": "components/overlay/Overlay.vue",
|
|
65
|
+
"PPage": "components/page/Page.vue",
|
|
66
|
+
"PPagination": "components/pagination/Pagination.vue",
|
|
67
|
+
"PPdfHelipad": "components/pdf-helipad/PdfHelipad.vue",
|
|
68
|
+
"PPdfObject": "components/pdf-object/PdfObject.vue",
|
|
69
|
+
"PPdfObjectAddon": "components/pdf-object/PdfObjectAddon.vue",
|
|
70
|
+
"PPdfObjectDebugger": "components/pdf-object/PdfObjectDebugger.vue",
|
|
71
|
+
"PPdfObjects": "components/pdf-object/PdfObjects.vue",
|
|
72
|
+
"PPdfText": "components/pdf-text/PdfText.vue",
|
|
73
|
+
"PPdfError": "components/pdf-viewer/PdfError.vue",
|
|
74
|
+
"PPdfLoading": "components/pdf-viewer/PdfLoading.vue",
|
|
75
|
+
"PPdfNavigation": "components/pdf-viewer/PdfNavigation.vue",
|
|
76
|
+
"PPdfViewer": "components/pdf-viewer/PdfViewer.vue",
|
|
77
|
+
"PProgress": "components/progress/Progress.vue",
|
|
78
|
+
"PProgressItem": "components/progress/ProgressItem.vue",
|
|
79
|
+
"PProgressIndicator": "components/progress-indicator/ProgressIndicator.vue",
|
|
80
|
+
"PProgressbar": "components/progressbar/Progressbar.vue",
|
|
81
|
+
"PRadio": "components/radio/Radio.vue",
|
|
82
|
+
"PRingbar": "components/ringbar/Ringbar.vue",
|
|
83
|
+
"PSelect": "components/select/Select.vue",
|
|
84
|
+
"PSelectInput": "components/select/SelectInput.vue",
|
|
85
|
+
"PSelectTags": "components/select/SelectTags.vue",
|
|
86
|
+
"PSheet": "components/sheet/Sheet.vue",
|
|
87
|
+
"PSidebar": "components/sidebar/Sidebar.vue",
|
|
88
|
+
"PSidebarBrand": "components/sidebar/SidebarBrand.vue",
|
|
89
|
+
"PSidebarContent": "components/sidebar/SidebarContent.vue",
|
|
90
|
+
"PSidebarNav": "components/sidebar/SidebarNav.vue",
|
|
91
|
+
"PSidebarMenu": "components/sidebar-menu/SidebarMenu.vue",
|
|
92
|
+
"PSidebarMenuItem": "components/sidebar-menu/SidebarMenuItem.vue",
|
|
93
|
+
"PSignatureDraw": "components/signature-draw/SignatureDraw.vue",
|
|
94
|
+
"PSignatureDrawDesktop": "components/signature-draw/SignatureDrawDesktop.vue",
|
|
95
|
+
"PSignatureDrawMobile": "components/signature-draw/SignatureDrawMobile.vue",
|
|
96
|
+
"PSignatureText": "components/signature-text/SignatureText.vue",
|
|
97
|
+
"PSpinner": "components/spinner/Spinner.vue",
|
|
98
|
+
"PSpinnerRing": "components/spinner/SpinnerRing.vue",
|
|
99
|
+
"PSpinnerRinggo": "components/spinner/SpinnerRinggo.vue",
|
|
100
|
+
"PSpread": "components/spread/Spread.vue",
|
|
101
|
+
"PStep": "components/steps/Step.vue",
|
|
102
|
+
"PStepSlider": "components/steps/StepSlider.vue",
|
|
103
|
+
"PSteps": "components/steps/Steps.vue",
|
|
104
|
+
"PStrengthbar": "components/strengthbar/Strengthbar.vue",
|
|
105
|
+
"PSubheading": "components/subheading/Subheading.vue",
|
|
106
|
+
"PTable": "components/table/Table.vue",
|
|
107
|
+
"PTableFlex": "components/table-flex/TableFlex.vue",
|
|
108
|
+
"PTableStatic": "components/table-static/TableStatic.vue",
|
|
109
|
+
"PTableStaticRoot": "components/table-static/TableStaticRoot.vue",
|
|
110
|
+
"PTab": "components/tabs/Tab.vue",
|
|
111
|
+
"PTabContent": "components/tabs/TabContent.vue",
|
|
112
|
+
"PTabs": "components/tabs/Tabs.vue",
|
|
113
|
+
"PText": "components/text/Text.vue",
|
|
114
|
+
"PTextarea": "components/textarea/Textarea.vue",
|
|
115
|
+
"PToast": "components/toast/Toast.vue",
|
|
116
|
+
"PToastContainer": "components/toast/ToastContainer.vue",
|
|
117
|
+
"PToastRoot": "components/toast/ToastRoot.vue",
|
|
118
|
+
"PToggle": "components/toggle/Toggle.vue",
|
|
119
|
+
"PTooltip": "components/tooltip/Tooltip.vue",
|
|
120
|
+
"PTooltipContainer": "components/tooltip/TooltipContainer.vue",
|
|
121
|
+
"PTour": "components/tour/Tour.vue",
|
|
122
|
+
"PTourDialog": "components/tour/TourDialog.vue",
|
|
123
|
+
"PTourHighlight": "components/tour/TourHighlight.vue",
|
|
124
|
+
"PTruncate": "components/truncate/Truncate.vue",
|
|
125
|
+
"PWizard": "components/wizard/Wizard.vue",
|
|
126
|
+
"PWizardBody": "components/wizard/WizardBody.vue",
|
|
127
|
+
"PWizardHeader": "components/wizard/WizardHeader.vue",
|
|
128
|
+
"PWizardStep": "components/wizard/WizardStep.vue",
|
|
129
|
+
"PIconCheckbox": "components/checkbox/icon/IconCheckbox.vue",
|
|
130
|
+
"PIconInderteminate": "components/checkbox/icon/IconInderteminate.vue",
|
|
131
|
+
"PPinnedDate": "components/filterbar/pinned/PinnedDate.vue",
|
|
132
|
+
"PPinnedMultiselect": "components/filterbar/pinned/PinnedMultiselect.vue",
|
|
133
|
+
"PPinnedSelect": "components/filterbar/pinned/PinnedSelect.vue",
|
|
134
|
+
"PPinnedToggle": "components/filterbar/pinned/PinnedToggle.vue"
|
|
135
|
+
}
|
|
@@ -13,21 +13,33 @@
|
|
|
13
13
|
mode="out-in">
|
|
14
14
|
<div
|
|
15
15
|
v-show="model"
|
|
16
|
-
class="modal__dialog"
|
|
16
|
+
class="modal__dialog"
|
|
17
|
+
:class="dialogClass"
|
|
18
|
+
data-testid="modal-dialog">
|
|
19
|
+
<span
|
|
20
|
+
v-if="dismissable && (size === 'full' && freeDistraction)"
|
|
21
|
+
data-testid="modal-free-distraction-dismiss"
|
|
22
|
+
class="modal__dismiss"
|
|
23
|
+
@click="close">
|
|
24
|
+
<IconCloseFull class="text-state-emphasis dark:text-dark-state-emphasis" />
|
|
25
|
+
</span>
|
|
17
26
|
<div
|
|
18
27
|
class="modal__content"
|
|
28
|
+
:class="contentClass"
|
|
29
|
+
data-testid="modal-content"
|
|
19
30
|
@click.stop>
|
|
20
31
|
<span
|
|
21
|
-
v-if="dismissable"
|
|
32
|
+
v-if="dismissable && size !== 'full'"
|
|
22
33
|
data-testid="modal-dismiss"
|
|
23
34
|
class="modal__dismiss"
|
|
24
35
|
@click="close">
|
|
25
36
|
<IconClose />
|
|
26
37
|
</span>
|
|
27
38
|
<div
|
|
28
|
-
v-if="$slots.header || title"
|
|
39
|
+
v-if="($slots.header || title) && (size !== 'full' || freeDistraction)"
|
|
29
40
|
data-testid="modal-header"
|
|
30
|
-
class="modal__header"
|
|
41
|
+
class="modal__header"
|
|
42
|
+
:class="headerClass">
|
|
31
43
|
<slot name="header">
|
|
32
44
|
<Heading
|
|
33
45
|
v-if="title"
|
|
@@ -39,15 +51,51 @@
|
|
|
39
51
|
</div>
|
|
40
52
|
<div
|
|
41
53
|
data-testid="modal-body"
|
|
42
|
-
:class="[ { 'modal__body--scroll' : modalBodyScrollable
|
|
43
|
-
<
|
|
54
|
+
:class="[ { 'modal__body--scroll' : modalBodyScrollable}, (size !== 'full' || freeDistraction) ? bodyClass : '', 'modal__body' ]">
|
|
55
|
+
<div
|
|
56
|
+
v-if="size === 'full' && !freeDistraction"
|
|
57
|
+
class="modal--full__content">
|
|
58
|
+
<div
|
|
59
|
+
class="modal--full__header">
|
|
60
|
+
<span
|
|
61
|
+
v-if="dismissable"
|
|
62
|
+
class="modal--full__header__dismiss">
|
|
63
|
+
<Button
|
|
64
|
+
variant="link"
|
|
65
|
+
data-testid="modal-full-dismiss"
|
|
66
|
+
@click="close">
|
|
67
|
+
<IconCloseFull />
|
|
68
|
+
</Button>
|
|
69
|
+
</span>
|
|
70
|
+
<div
|
|
71
|
+
data-testid="modal-full-header"
|
|
72
|
+
class="modal--full__header__title"
|
|
73
|
+
:class="headerClass">
|
|
74
|
+
<slot name="header">
|
|
75
|
+
<Heading
|
|
76
|
+
v-if="title"
|
|
77
|
+
class="modal__title"
|
|
78
|
+
element="h6">
|
|
79
|
+
{{ title }}
|
|
80
|
+
</Heading>
|
|
81
|
+
</slot>
|
|
82
|
+
</div>
|
|
83
|
+
</div><!-- /header -->
|
|
84
|
+
<div :class="bodyClass">
|
|
85
|
+
<slot name="body">
|
|
86
|
+
{{ text }}
|
|
87
|
+
</slot>
|
|
88
|
+
</div><!-- /body -->
|
|
89
|
+
</div><!-- /content -->
|
|
90
|
+
<slot v-else>
|
|
44
91
|
{{ text }}
|
|
45
92
|
</slot>
|
|
46
93
|
</div>
|
|
47
94
|
<div
|
|
48
|
-
v-if="$slots.footer"
|
|
95
|
+
v-if="$slots.footer && (size !== 'full' || freeDistraction)"
|
|
49
96
|
data-testid="modal-footer"
|
|
50
|
-
class="modal__footer"
|
|
97
|
+
class="modal__footer"
|
|
98
|
+
:class="footerClass">
|
|
51
99
|
<slot
|
|
52
100
|
name="footer"
|
|
53
101
|
:close="close" />
|
|
@@ -68,10 +116,17 @@ import {
|
|
|
68
116
|
} from "vue-demi";
|
|
69
117
|
import { onKeyStroke } from "@vueuse/core";
|
|
70
118
|
import Heading from "../heading/Heading.vue";
|
|
119
|
+
import Button from "../button/Button.vue";
|
|
71
120
|
import IconClose from "@privyid/persona-icon/vue/close/16.vue";
|
|
121
|
+
import IconCloseFull from "@privyid/persona-icon/vue/close/24.vue";
|
|
72
122
|
import { useVModel } from "../input";
|
|
73
123
|
export default defineComponent({
|
|
74
|
-
components: {
|
|
124
|
+
components: {
|
|
125
|
+
Heading,
|
|
126
|
+
Button,
|
|
127
|
+
IconClose,
|
|
128
|
+
IconCloseFull
|
|
129
|
+
},
|
|
75
130
|
props: {
|
|
76
131
|
title: {
|
|
77
132
|
type: String,
|
|
@@ -112,6 +167,50 @@ export default defineComponent({
|
|
|
112
167
|
centered: {
|
|
113
168
|
type: Boolean,
|
|
114
169
|
default: false
|
|
170
|
+
},
|
|
171
|
+
freeDistraction: {
|
|
172
|
+
type: Boolean,
|
|
173
|
+
default: false
|
|
174
|
+
},
|
|
175
|
+
headerClass: {
|
|
176
|
+
type: [
|
|
177
|
+
String,
|
|
178
|
+
Array,
|
|
179
|
+
Object
|
|
180
|
+
],
|
|
181
|
+
default: void 0
|
|
182
|
+
},
|
|
183
|
+
dialogClass: {
|
|
184
|
+
type: [
|
|
185
|
+
String,
|
|
186
|
+
Array,
|
|
187
|
+
Object
|
|
188
|
+
],
|
|
189
|
+
default: void 0
|
|
190
|
+
},
|
|
191
|
+
contentClass: {
|
|
192
|
+
type: [
|
|
193
|
+
String,
|
|
194
|
+
Array,
|
|
195
|
+
Object
|
|
196
|
+
],
|
|
197
|
+
default: void 0
|
|
198
|
+
},
|
|
199
|
+
bodyClass: {
|
|
200
|
+
type: [
|
|
201
|
+
String,
|
|
202
|
+
Array,
|
|
203
|
+
Object
|
|
204
|
+
],
|
|
205
|
+
default: void 0
|
|
206
|
+
},
|
|
207
|
+
footerClass: {
|
|
208
|
+
type: [
|
|
209
|
+
String,
|
|
210
|
+
Array,
|
|
211
|
+
Object
|
|
212
|
+
],
|
|
213
|
+
default: void 0
|
|
115
214
|
}
|
|
116
215
|
},
|
|
117
216
|
models: {
|
|
@@ -129,6 +228,8 @@ export default defineComponent({
|
|
|
129
228
|
result.push("modal--centered");
|
|
130
229
|
if (props.banner)
|
|
131
230
|
result.push("modal--banner");
|
|
231
|
+
if (props.freeDistraction && props.size === "full")
|
|
232
|
+
result.push("modal--free-distraction");
|
|
132
233
|
return result;
|
|
133
234
|
});
|
|
134
235
|
function close(event) {
|
|
@@ -172,6 +273,7 @@ export default defineComponent({
|
|
|
172
273
|
/**
|
|
173
274
|
* modal sizing variables
|
|
174
275
|
*/
|
|
276
|
+
--p-modal-size-full: 1022px;
|
|
175
277
|
--p-modal-size-xl: 960px;
|
|
176
278
|
--p-modal-size-lg: 800px;
|
|
177
279
|
--p-modal-size-md: 600px;
|
|
@@ -234,11 +336,20 @@ export default defineComponent({
|
|
|
234
336
|
}
|
|
235
337
|
}
|
|
236
338
|
|
|
339
|
+
/**
|
|
340
|
+
* Set padding
|
|
341
|
+
* in body and footer
|
|
342
|
+
* of modal
|
|
343
|
+
*/
|
|
237
344
|
&__body,
|
|
238
345
|
&__footer {
|
|
239
346
|
@apply p-6;
|
|
240
347
|
}
|
|
241
348
|
|
|
349
|
+
/**
|
|
350
|
+
* Modal variant
|
|
351
|
+
* Scroll
|
|
352
|
+
*/
|
|
242
353
|
&__body {
|
|
243
354
|
&&--scroll {
|
|
244
355
|
@apply max-h-[var(--p-modal-body-scrollable-max-height)] min-h-[var(--p-modal-body-scrollable-min-height)] overflow-y-auto overscroll-contain;
|
|
@@ -256,9 +367,9 @@ export default defineComponent({
|
|
|
256
367
|
}
|
|
257
368
|
|
|
258
369
|
/**
|
|
259
|
-
* Modal has
|
|
260
|
-
* eg: small, medium, large
|
|
261
|
-
*
|
|
370
|
+
* Modal has 5 different size
|
|
371
|
+
* eg: small, medium, large,
|
|
372
|
+
* extra large and full. default
|
|
262
373
|
* size are medium
|
|
263
374
|
*/
|
|
264
375
|
&&--xl {
|
|
@@ -285,6 +396,98 @@ export default defineComponent({
|
|
|
285
396
|
}
|
|
286
397
|
}
|
|
287
398
|
|
|
399
|
+
/**
|
|
400
|
+
* Modal has 2 types of
|
|
401
|
+
* full size, eg: full and
|
|
402
|
+
* free-distraction
|
|
403
|
+
*/
|
|
404
|
+
&&--full {
|
|
405
|
+
/**
|
|
406
|
+
* Style of Modal full
|
|
407
|
+
* except free distraction type
|
|
408
|
+
*/
|
|
409
|
+
&:not(.modal--free-distraction) {
|
|
410
|
+
/**
|
|
411
|
+
* Make modal dialog and
|
|
412
|
+
* modal content full height
|
|
413
|
+
*/
|
|
414
|
+
.modal__dialog {
|
|
415
|
+
@apply h-full min-h-full;
|
|
416
|
+
}
|
|
417
|
+
.modal__content {
|
|
418
|
+
@apply w-full max-w-full my-0 rounded-none;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
/**
|
|
422
|
+
* Reset modal body
|
|
423
|
+
*/
|
|
424
|
+
.modal__body {
|
|
425
|
+
@apply p-0 h-full;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* Custom modal content
|
|
430
|
+
* in full size
|
|
431
|
+
*/
|
|
432
|
+
.modal--full__content {
|
|
433
|
+
@apply flex flex-col justify-items-stretch h-full;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* Custom modal header
|
|
438
|
+
* in full size
|
|
439
|
+
*/
|
|
440
|
+
.modal--full__header {
|
|
441
|
+
@apply flex h-[60px] border-b border-b-default shrink-0;
|
|
442
|
+
@apply dark:border-b-dark-default;
|
|
443
|
+
|
|
444
|
+
&__dismiss {
|
|
445
|
+
@apply flex items-center border-r shrink-0 border-r-default bg-default;
|
|
446
|
+
@apply dark:border-r-dark-default dark:bg-dark-default;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
&__title {
|
|
450
|
+
@apply flex grow items-stretch;
|
|
451
|
+
|
|
452
|
+
.modal__title {
|
|
453
|
+
@apply items-center flex;
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
&__content {
|
|
458
|
+
@apply grow flex items-stretch;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
&__navigation {
|
|
462
|
+
@apply shrink-0 flex items-center border-l border-l-default px-3 space-x-1 bg-default;
|
|
463
|
+
@apply dark:border-l-dark-default dark:bg-dark-default;
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* Styling modal full
|
|
470
|
+
* with free distraction type
|
|
471
|
+
*/
|
|
472
|
+
&:is(.modal--free-distraction) {
|
|
473
|
+
@apply bg-inverse/80;
|
|
474
|
+
@apply dark:bg-dark-inverse/80;
|
|
475
|
+
|
|
476
|
+
.modal__content {
|
|
477
|
+
@apply w-[var(--p-modal-size-full)];
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
.modal__dismiss {
|
|
481
|
+
@apply absolute right-5 top-5 p-[10px] rounded bg-default-alpha cursor-pointer;
|
|
482
|
+
@apply dark:bg-dark-default-alpha;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
.modal__title {
|
|
486
|
+
@apply pr-0;
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
|
|
288
491
|
/**
|
|
289
492
|
* Modal vertically center
|
|
290
493
|
* in the viewport
|
|
@@ -41,6 +41,30 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
41
41
|
type: BooleanConstructor;
|
|
42
42
|
default: boolean;
|
|
43
43
|
};
|
|
44
|
+
freeDistraction: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
default: boolean;
|
|
47
|
+
};
|
|
48
|
+
headerClass: {
|
|
49
|
+
type: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
50
|
+
default: undefined;
|
|
51
|
+
};
|
|
52
|
+
dialogClass: {
|
|
53
|
+
type: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
54
|
+
default: undefined;
|
|
55
|
+
};
|
|
56
|
+
contentClass: {
|
|
57
|
+
type: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
58
|
+
default: undefined;
|
|
59
|
+
};
|
|
60
|
+
bodyClass: {
|
|
61
|
+
type: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
62
|
+
default: undefined;
|
|
63
|
+
};
|
|
64
|
+
footerClass: {
|
|
65
|
+
type: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
66
|
+
default: undefined;
|
|
67
|
+
};
|
|
44
68
|
}, {
|
|
45
69
|
model: import("vue-demi").Ref<boolean>;
|
|
46
70
|
classNames: import("vue-demi").ComputedRef<string[]>;
|
|
@@ -87,6 +111,30 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
87
111
|
type: BooleanConstructor;
|
|
88
112
|
default: boolean;
|
|
89
113
|
};
|
|
114
|
+
freeDistraction: {
|
|
115
|
+
type: BooleanConstructor;
|
|
116
|
+
default: boolean;
|
|
117
|
+
};
|
|
118
|
+
headerClass: {
|
|
119
|
+
type: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
120
|
+
default: undefined;
|
|
121
|
+
};
|
|
122
|
+
dialogClass: {
|
|
123
|
+
type: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
124
|
+
default: undefined;
|
|
125
|
+
};
|
|
126
|
+
contentClass: {
|
|
127
|
+
type: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
128
|
+
default: undefined;
|
|
129
|
+
};
|
|
130
|
+
bodyClass: {
|
|
131
|
+
type: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
132
|
+
default: undefined;
|
|
133
|
+
};
|
|
134
|
+
footerClass: {
|
|
135
|
+
type: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
136
|
+
default: undefined;
|
|
137
|
+
};
|
|
90
138
|
}>> & {
|
|
91
139
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
92
140
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
@@ -95,11 +143,17 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
95
143
|
dismissable: boolean;
|
|
96
144
|
banner: boolean;
|
|
97
145
|
text: string;
|
|
146
|
+
modelValue: boolean;
|
|
98
147
|
title: string;
|
|
99
148
|
centered: boolean;
|
|
100
|
-
modelValue: boolean;
|
|
101
|
-
noCloseOnEsc: boolean;
|
|
102
149
|
noCloseOnBackdrop: boolean;
|
|
150
|
+
bodyClass: string | Record<string, any> | unknown[];
|
|
151
|
+
noCloseOnEsc: boolean;
|
|
103
152
|
modalBodyScrollable: boolean;
|
|
153
|
+
freeDistraction: boolean;
|
|
154
|
+
headerClass: string | Record<string, any> | unknown[];
|
|
155
|
+
dialogClass: string | Record<string, any> | unknown[];
|
|
156
|
+
contentClass: string | Record<string, any> | unknown[];
|
|
157
|
+
footerClass: string | Record<string, any> | unknown[];
|
|
104
158
|
}, {}>;
|
|
105
159
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type SizeVariant = 'sm' | 'md' | 'lg' | 'xl';
|
|
1
|
+
export type SizeVariant = 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
@@ -115,6 +115,10 @@ export default defineComponent({
|
|
|
115
115
|
@apply first:ml-2 mr-2 last:mr-0;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
+
&__item > &__link {
|
|
119
|
+
@apply no-underline transition-colors duration-150 ease-out;
|
|
120
|
+
}
|
|
121
|
+
|
|
118
122
|
& > &__item {
|
|
119
123
|
.nav__link {
|
|
120
124
|
@apply text-subtle;
|
|
@@ -357,7 +361,7 @@ export default defineComponent({
|
|
|
357
361
|
}
|
|
358
362
|
|
|
359
363
|
&__link {
|
|
360
|
-
@apply mb-0
|
|
364
|
+
@apply mb-0;
|
|
361
365
|
}
|
|
362
366
|
|
|
363
367
|
&__title {
|
|
@@ -80,9 +80,9 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
80
80
|
fill: boolean;
|
|
81
81
|
variant: StyleVariant;
|
|
82
82
|
title: string;
|
|
83
|
-
vertical: boolean;
|
|
84
83
|
align: AlignVariant;
|
|
85
84
|
condensed: boolean;
|
|
85
|
+
vertical: boolean;
|
|
86
86
|
justified: boolean;
|
|
87
87
|
titleActionLabel: string;
|
|
88
88
|
titleActionUrl: string;
|
|
@@ -18,7 +18,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
18
18
|
default: string;
|
|
19
19
|
};
|
|
20
20
|
linkClass: {
|
|
21
|
-
type: (StringConstructor |
|
|
21
|
+
type: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
22
22
|
default: undefined;
|
|
23
23
|
};
|
|
24
24
|
exact: {
|
|
@@ -47,7 +47,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
47
47
|
default: string;
|
|
48
48
|
};
|
|
49
49
|
linkClass: {
|
|
50
|
-
type: (StringConstructor |
|
|
50
|
+
type: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
51
51
|
default: undefined;
|
|
52
52
|
};
|
|
53
53
|
exact: {
|
|
@@ -32,7 +32,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
32
32
|
default: string;
|
|
33
33
|
};
|
|
34
34
|
menuClass: {
|
|
35
|
-
type: (StringConstructor |
|
|
35
|
+
type: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
36
36
|
default: undefined;
|
|
37
37
|
};
|
|
38
38
|
menuSize: {
|
|
@@ -75,7 +75,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
75
75
|
default: string;
|
|
76
76
|
};
|
|
77
77
|
menuClass: {
|
|
78
|
-
type: (StringConstructor |
|
|
78
|
+
type: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
|
|
79
79
|
default: undefined;
|
|
80
80
|
};
|
|
81
81
|
menuSize: {
|
|
@@ -95,8 +95,8 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
95
95
|
divider: boolean;
|
|
96
96
|
text: string;
|
|
97
97
|
modelValue: boolean;
|
|
98
|
-
placement: Placement;
|
|
99
98
|
noCaret: boolean;
|
|
99
|
+
placement: Placement;
|
|
100
100
|
menuClass: string | Record<string, any> | unknown[];
|
|
101
101
|
menuSize: MenuSizeVariant;
|
|
102
102
|
}, {}>;
|
|
@@ -127,14 +127,10 @@ export default defineComponent({
|
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
.nav {
|
|
130
|
-
@apply pt-
|
|
130
|
+
@apply pt-3 select-none;
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
&&--icon {
|
|
134
|
-
.nav {
|
|
135
|
-
@apply ml-5;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
134
|
.nav__link__icon {
|
|
139
135
|
@apply grow-0;
|
|
140
136
|
|
|
@@ -144,7 +140,7 @@ export default defineComponent({
|
|
|
144
140
|
}
|
|
145
141
|
|
|
146
142
|
.nav__link__label {
|
|
147
|
-
@apply shrink
|
|
143
|
+
@apply shrink pl-3 w-full select-none;
|
|
148
144
|
|
|
149
145
|
.badge {
|
|
150
146
|
@apply ml-auto;
|
|
@@ -176,6 +172,10 @@ export default defineComponent({
|
|
|
176
172
|
@apply dark:text-dark-subtle hover:dark:text-dark-default;
|
|
177
173
|
}
|
|
178
174
|
}
|
|
175
|
+
|
|
176
|
+
.sidebar__nav .nav__link__label {
|
|
177
|
+
@apply pl-8;
|
|
178
|
+
}
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
&&--condensed {
|
|
@@ -20,7 +20,7 @@ export default defineComponent({
|
|
|
20
20
|
</script>
|
|
21
21
|
|
|
22
22
|
<style lang="postcss">
|
|
23
|
-
.navbar {
|
|
23
|
+
a.navbar {
|
|
24
24
|
&__brand {
|
|
25
25
|
@apply inline-block mr-4 text-xl py-1 font-medium text-default no-underline cursor-pointer hover:no-underline;
|
|
26
26
|
@apply dark:text-dark-default;
|