@privyid/persona 0.10.0 → 0.12.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/avatar/Avatar.vue +1 -0
- package/dist/components/avatar/Avatar.vue.d.ts +13 -13
- package/dist/components/avatar/index.d.ts +2 -2
- package/dist/components/badge/Badge.vue +48 -8
- package/dist/components/badge/Badge.vue.d.ts +3 -2
- package/dist/components/badge/index.d.ts +1 -2
- package/dist/components/banner/Banner.vue +19 -7
- package/dist/components/banner/Banner.vue.d.ts +1 -1
- package/dist/components/banner/index.d.ts +1 -1
- package/dist/components/breadcrumbs/BreadcrumbItem.vue +1 -0
- package/dist/components/breadcrumbs/BreadcrumbItem.vue.d.ts +1 -1
- package/dist/components/breadcrumbs/BreadcrumbItemDropdown.vue +3 -0
- package/dist/components/breadcrumbs/index.d.ts +1 -1
- package/dist/components/button/Button.vue +69 -11
- package/dist/components/button/Button.vue.d.ts +4 -4
- package/dist/components/button/index.d.ts +4 -4
- package/dist/components/button-group/ButtonGroup.vue +11 -18
- package/dist/components/button-group/index.d.ts +6 -0
- package/dist/components/button-group/index.mjs +1 -0
- package/dist/components/calendar/Calendar.vue +8 -3
- package/dist/components/calendar/Calendar.vue.d.ts +31 -31
- package/dist/components/calendar/adapter/adapter.d.ts +1 -1
- package/dist/components/calendar/adapter/date.mjs +1 -1
- package/dist/components/camera/Camera.vue +7 -3
- package/dist/components/camera/Camera.vue.d.ts +19 -19
- package/dist/components/camera/adapter/adapter.d.ts +2 -2
- package/dist/components/camera/adapter/liveness.mjs +1 -1
- package/dist/components/caption/Caption.vue +1 -0
- package/dist/components/caption/index.d.ts +1 -1
- package/dist/components/card/Card.vue +9 -3
- package/dist/components/card/Card.vue.d.ts +5 -5
- package/dist/components/card/CardSection.vue.d.ts +2 -2
- package/dist/components/card/index.d.ts +1 -1
- package/dist/components/chart/Chart.vue +1 -0
- package/dist/components/chart/ChartVal.vue.d.ts +2 -2
- package/dist/components/chart/adapter/index.d.ts +1 -1
- package/dist/components/chart/index.d.ts +1 -1
- package/dist/components/checkbox/Checkbox.vue +15 -6
- package/dist/components/checkbox/Checkbox.vue.d.ts +13 -13
- package/dist/components/collapse/Collapse.vue +2 -1
- package/dist/components/collapse/Collapse.vue.d.ts +1 -1
- package/dist/components/contextual-bar/ContextualBar.vue +15 -3
- package/dist/components/contextual-bar/ContextualBar.vue.d.ts +11 -11
- package/dist/components/contextual-bar/index.d.ts +1 -1
- package/dist/components/cropper/Cropper.vue +3 -2
- package/dist/components/cropper/Cropper.vue.d.ts +20 -20
- package/dist/components/cropper/utils/use-pinch.mjs +10 -2
- package/dist/components/datepicker/Datepicker.vue +2 -1
- package/dist/components/datepicker/Datepicker.vue.d.ts +16 -16
- package/dist/components/dialog/Dialog.vue.d.ts +2 -2
- package/dist/components/dialog/DialogFooter.vue +2 -2
- package/dist/components/dialog/DialogFooter.vue.d.ts +7 -7
- package/dist/components/dialog/index.d.ts +11 -16
- package/dist/components/divider/Divider.vue +8 -2
- package/dist/components/dot/Dot.vue +12 -2
- package/dist/components/dot/Dot.vue.d.ts +3 -2
- package/dist/components/dot/index.d.ts +1 -2
- package/dist/components/dropdown/Dropdown.vue +2 -0
- package/dist/components/dropdown/Dropdown.vue.d.ts +8 -8
- package/dist/components/dropdown/DropdownItem.vue +5 -1
- package/dist/components/dropdown/DropdownItem.vue.d.ts +3 -3
- package/dist/components/dropdown-subitem/DropdownSubitem.vue.d.ts +3 -3
- package/dist/components/dropzone/Dropzone.vue.d.ts +12 -12
- package/dist/components/dropzone/index.d.ts +1 -1
- package/dist/components/filterbar/Filterbar.vue +7 -6
- package/dist/components/filterbar/Filterbar.vue.d.ts +3 -3
- package/dist/components/filterbar/index.d.ts +1 -1
- package/dist/components/filterbar/pinned/{Date.vue.d.ts → PinnedDate.vue.d.ts} +8 -8
- package/dist/components/filterbar/pinned/{Multiselect.vue.d.ts → PinnedMultiselect.vue.d.ts} +5 -5
- package/dist/components/filterbar/pinned/{Select.vue.d.ts → PinnedSelect.vue.d.ts} +10 -10
- package/dist/components/filterbar/pinned/{Toggle.vue.d.ts → PinnedToggle.vue.d.ts} +11 -11
- package/dist/components/form-group/FormGroup.vue +9 -4
- package/dist/components/form-group/FormGroup.vue.d.ts +2 -2
- package/dist/components/global/context.d.ts +1 -1
- package/dist/components/global/use-singleton.d.ts +2 -2
- package/dist/components/global/utils/queue.d.ts +2 -2
- package/dist/components/heading/Heading.vue +6 -0
- package/dist/components/heading/index.d.ts +3 -3
- package/dist/components/input/Input.vue +68 -19
- package/dist/components/input/Input.vue.d.ts +3 -3
- package/dist/components/input-file/InputFile.vue +13 -2
- package/dist/components/input-file/InputFile.vue.d.ts +12 -12
- package/dist/components/input-group/InputGroup.vue +55 -41
- package/dist/components/input-group/InputGroupAddon.vue +10 -11
- package/dist/components/input-group/index.d.ts +6 -0
- package/dist/components/input-group/index.mjs +1 -0
- package/dist/components/input-password/InputPassword.vue +3 -1
- package/dist/components/input-pin/InputPin.vue +3 -3
- package/dist/components/input-pin/InputPin.vue.d.ts +4 -4
- package/dist/components/input-range/InputRange.vue +8 -5
- package/dist/components/input-range/InputRange.vue.d.ts +11 -11
- package/dist/components/input-range/utils/use-drag.mjs +5 -1
- package/dist/components/label/Label.vue +34 -7
- package/dist/components/label/Label.vue.d.ts +4 -5
- package/dist/components/label/index.d.ts +1 -0
- package/dist/components/label/index.mjs +0 -0
- package/dist/components/main/Main.vue +18 -3
- package/dist/components/modal/Modal.vue +19 -6
- package/dist/components/modal/Modal.vue.d.ts +9 -9
- package/dist/components/nav/Nav.vue +24 -8
- package/dist/components/nav/Nav.vue.d.ts +2 -2
- package/dist/components/nav/NavForm.vue +1 -1
- package/dist/components/nav/NavItem.vue +2 -0
- package/dist/components/nav/NavItem.vue.d.ts +6 -6
- package/dist/components/nav/NavItemDropdown.vue +20 -2
- package/dist/components/nav/NavItemDropdown.vue.d.ts +26 -3
- package/dist/components/nav/NavSubItem.vue +4 -0
- package/dist/components/nav/NavSubItem.vue.d.ts +2 -2
- package/dist/components/nav/index.d.ts +2 -2
- package/dist/components/navbar/Navbar.vue +5 -2
- package/dist/components/navbar/Navbar.vue.d.ts +5 -5
- package/dist/components/navbar/NavbarBrand.vue +2 -1
- package/dist/components/navbar/NavbarBrand.vue.d.ts +2 -2
- package/dist/components/navbar/NavbarNav.vue +10 -5
- package/dist/components/navbar/NavbarNav.vue.d.ts +2 -2
- package/dist/components/navbar/NavbarToggle.vue +2 -1
- package/dist/components/navbar/index.d.ts +1 -1
- package/dist/components/overlay/Overlay.vue +2 -1
- package/dist/components/page/Page.vue +13 -9
- package/dist/components/page/Page.vue.d.ts +3 -3
- package/dist/components/pagination/Pagination.vue +16 -9
- package/dist/components/pagination/Pagination.vue.d.ts +5 -5
- package/dist/components/pagination/index.d.ts +1 -1
- package/dist/components/pagination/index.mjs +1 -1
- package/dist/components/pagination/utils/calculate-page.d.ts +1 -1
- package/dist/components/pdf-helipad/PdfHelipad.vue +0 -2
- package/dist/components/pdf-helipad/PdfHelipad.vue.d.ts +1 -1
- package/dist/components/pdf-object/PdfObject.vue +3 -1
- package/dist/components/pdf-object/PdfObject.vue.d.ts +20 -20
- package/dist/components/pdf-object/PdfObjectAddon.vue +1 -0
- package/dist/components/pdf-object/PdfObjectDebugger.vue +4 -1
- package/dist/components/pdf-object/PdfObjectDebugger.vue.d.ts +5 -5
- package/dist/components/pdf-object/index.d.ts +5 -5
- package/dist/components/pdf-object/utils/overlap.d.ts +1 -1
- package/dist/components/pdf-object/utils/position.d.ts +2 -2
- package/dist/components/pdf-text/PdfText.vue.d.ts +5 -5
- package/dist/components/pdf-viewer/PdfError.vue +20 -3
- package/dist/components/pdf-viewer/PdfLoading.vue +1 -1
- package/dist/components/pdf-viewer/PdfNavigation.vue +9 -5
- package/dist/components/pdf-viewer/PdfViewer.vue +7 -1
- package/dist/components/pdf-viewer/PdfViewer.vue.d.ts +12 -12
- package/dist/components/pdf-viewer/index.d.ts +1 -1
- package/dist/components/pdf-viewer/utils/use-viewer.d.ts +7 -7
- package/dist/components/progress/Progress.vue +15 -7
- package/dist/components/progress/Progress.vue.d.ts +2 -2
- package/dist/components/radio/Radio.vue +17 -6
- package/dist/components/radio/Radio.vue.d.ts +9 -9
- package/dist/components/radio/index.d.ts +1 -1
- package/dist/components/select/Select.vue +10 -1
- package/dist/components/select/Select.vue.d.ts +11 -11
- package/dist/components/select/adapter/async-adapter.d.ts +2 -2
- package/dist/components/sidebar/Sidebar.vue +10 -4
- package/dist/components/sidebar/Sidebar.vue.d.ts +3 -3
- package/dist/components/sidebar/SidebarBrand.vue +2 -1
- package/dist/components/sidebar/SidebarBrand.vue.d.ts +2 -2
- package/dist/components/sidebar/SidebarNav.vue +5 -17
- package/dist/components/sidebar/SidebarNav.vue.d.ts +4 -4
- package/dist/components/sidebar/index.d.ts +1 -1
- package/dist/components/sidebar-menu/SidebarMenu.vue +1 -1
- package/dist/components/sidebar-menu/SidebarMenu.vue.d.ts +4 -4
- package/dist/components/signature-draw/SignatureDraw.vue.d.ts +3 -3
- package/dist/components/signature-draw/SignatureDrawDesktop.vue +4 -1
- package/dist/components/signature-draw/SignatureDrawDesktop.vue.d.ts +3 -3
- package/dist/components/signature-draw/SignatureDrawMobile.vue +5 -0
- package/dist/components/signature-draw/SignatureDrawMobile.vue.d.ts +3 -3
- package/dist/components/signature-draw/utils/canvas.d.ts +1 -1
- package/dist/components/signature-draw/utils/smooth-line.mjs +15 -0
- package/dist/components/signature-draw/utils/use-draw.mjs +5 -1
- package/dist/components/signature-text/SignatureText.vue +9 -4
- package/dist/components/signature-text/SignatureText.vue.d.ts +16 -7
- package/dist/components/steps/Step.vue.d.ts +5 -5
- package/dist/components/steps/Steps.vue.d.ts +1 -1
- package/dist/components/steps/index.d.ts +9 -9
- package/dist/components/steps/utils/hook.d.ts +1 -1
- package/dist/components/strengthbar/Strengthbar.vue +4 -0
- package/dist/components/subheading/Subheading.vue +1 -1
- package/dist/components/subheading/Subheading.vue.d.ts +2 -2
- package/dist/components/subheading/index.d.ts +1 -1
- package/dist/components/table/Table.vue +69 -1
- package/dist/components/table/Table.vue.d.ts +18 -9
- package/dist/components/tabs/Tabs.vue +4 -1
- package/dist/components/tabs/Tabs.vue.d.ts +2 -2
- package/dist/components/text/Text.vue.d.ts +2 -2
- package/dist/components/text/index.d.ts +1 -1
- package/dist/components/textarea/Textarea.vue +8 -7
- package/dist/components/textarea/Textarea.vue.d.ts +5 -5
- package/dist/components/toast/Toast.vue +17 -3
- package/dist/components/toast/Toast.vue.d.ts +1 -1
- package/dist/components/toast/ToastContainer.vue.d.ts +4 -4
- package/dist/components/toast/index.d.ts +2 -2
- package/dist/components/toggle/Toggle.vue +17 -7
- package/dist/components/toggle/Toggle.vue.d.ts +12 -12
- package/dist/components/tooltip/Tooltip.vue +6 -2
- package/dist/components/tooltip/Tooltip.vue.d.ts +7 -7
- package/dist/components/tooltip/index.d.ts +1 -1
- package/dist/components/tooltip/index.mjs +1 -1
- package/dist/components/tooltip/utils/create-handler.d.ts +1 -1
- package/dist/components/tour/Tour.vue.d.ts +3 -3
- package/dist/components/tour/TourDialog.vue +11 -3
- package/dist/components/tour/TourDialog.vue.d.ts +8 -8
- package/dist/components/tour/TourHighlight.vue.d.ts +2 -2
- package/dist/components/tour/core/base.d.ts +1 -1
- package/dist/components/tour/core/base.mjs +15 -0
- package/dist/components/tour/core/step/action.d.ts +4 -4
- package/dist/components/tour/core/step.d.ts +3 -3
- package/dist/components/tour/core/step.mjs +19 -0
- package/dist/components/tour/core/story.d.ts +1 -1
- package/dist/components/tour/core/story.mjs +81 -0
- package/dist/components/tour/core/tour.d.ts +1 -1
- package/dist/components/tour/core/tour.mjs +56 -2
- package/dist/components/truncate/Truncate.vue +8 -0
- package/dist/components/utils/base64.mjs +1 -1
- package/dist/components/utils/value.d.ts +4 -4
- package/dist/components/wizard/Wizard.vue.d.ts +6 -6
- package/dist/components/wizard/WizardBody.vue.d.ts +1 -1
- package/dist/components/wizard/WizardStep.vue.d.ts +4 -4
- package/dist/module.json +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +16 -14
- package/dist/components/badge/assets/images/img-guide-badge.svg +0 -1
- package/dist/components/card/assets/images/img-card-callout-01.svg +0 -1
- package/dist/components/contextual-bar/assets/images/img-background-contextualbar.svg +0 -14
- package/dist/components/contextual-bar/assets/images/img-bg-contextualbar.svg +0 -19
- package/dist/components/cropper/assets/sample-1.jpg +0 -0
- package/dist/components/modal/assets/images/img-modal-banner-sheet.jpg +0 -0
- package/dist/components/pdf-helipad/assets/helicopter.svg +0 -1
- package/dist/components/pdf-object-text/PdfObjectText.vue +0 -170
- package/dist/components/pdf-object-text/PdfObjectText.vue.d.ts +0 -140
- package/dist/components/pdf-object-text/utils/text-to-image.d.ts +0 -51
- package/dist/components/pdf-object-text/utils/text-to-image.mjs +0 -77
- package/dist/components/pdf-viewer/assets/Calibrator-v3.pdf +8 -99519
- package/dist/components/pdf-viewer/assets/Calibrator-v3_protected.pdf +0 -0
- package/dist/components/pdf-viewer/assets/fixed-vs-fit.svg +0 -186
- package/dist/components/pdf-viewer/assets/sample-3.pdf +0 -0
- package/dist/components/pdf-viewer/assets/sample-with-sign.pdf +0 -0
- package/dist/components/pdf-viewer/assets/sample.pdf +0 -18304
- package/dist/components/sidebar/assets/images/icon-flag.svg +0 -1
- package/dist/components/sidebar/assets/images/logo-privy-icon.svg +0 -1
- package/dist/components/sidebar/assets/images/logo-privy.svg +0 -1
- package/dist/components/sidebar-menu/assets/images/img-flag.svg +0 -1
- package/dist/components/signature-draw/assets/empty-img.png +0 -0
- package/dist/components/signature-text/sample/sample-signature.png +0 -0
- /package/dist/components/filterbar/pinned/{Date.vue → PinnedDate.vue} +0 -0
- /package/dist/components/filterbar/pinned/{Multiselect.vue → PinnedMultiselect.vue} +0 -0
- /package/dist/components/filterbar/pinned/{Select.vue → PinnedSelect.vue} +0 -0
- /package/dist/components/filterbar/pinned/{Toggle.vue → PinnedToggle.vue} +0 -0
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
</div>
|
|
40
40
|
|
|
41
41
|
<Draggable
|
|
42
|
+
v-if="items.length > 0"
|
|
42
43
|
v-model="rows"
|
|
43
44
|
class="datatable__body"
|
|
44
45
|
handle=".datatable__drag"
|
|
@@ -96,6 +97,45 @@
|
|
|
96
97
|
</div>
|
|
97
98
|
</template>
|
|
98
99
|
</Draggable>
|
|
100
|
+
|
|
101
|
+
<div
|
|
102
|
+
v-else
|
|
103
|
+
class="datatable__body">
|
|
104
|
+
<div
|
|
105
|
+
class="datatable__row">
|
|
106
|
+
<template v-if="variant === 'flexible'">
|
|
107
|
+
<div
|
|
108
|
+
v-for="field in fields"
|
|
109
|
+
:key="field.key"
|
|
110
|
+
class="datatable__cell datatable__cell--empty"
|
|
111
|
+
data-testid="datatable-cell-empty"
|
|
112
|
+
:class="field.tdClass"
|
|
113
|
+
:style="field.width ? { width: `${field.width}%` } : { flex: '1 1 0%' }"
|
|
114
|
+
:data-cell="field.key">
|
|
115
|
+
<div
|
|
116
|
+
class="datatable__header"
|
|
117
|
+
:class="field.thClass">
|
|
118
|
+
<slot
|
|
119
|
+
:name="`head(${field.key})`"
|
|
120
|
+
:label="field.label"
|
|
121
|
+
:field="field"
|
|
122
|
+
:data-header="field.key">
|
|
123
|
+
{{ field.label }}
|
|
124
|
+
</slot>
|
|
125
|
+
</div>
|
|
126
|
+
</div>
|
|
127
|
+
</template>
|
|
128
|
+
<div
|
|
129
|
+
data-testid="datatable-empty"
|
|
130
|
+
class="datatable__cell datatable__cell--empty datatable__state-empty">
|
|
131
|
+
<slot name="empty">
|
|
132
|
+
<span class="flex justify-center items-center text-subtle dark:text-dark-subtle">
|
|
133
|
+
{{ emptyLabel }}
|
|
134
|
+
</span>
|
|
135
|
+
</slot>
|
|
136
|
+
</div>
|
|
137
|
+
</div>
|
|
138
|
+
</div>
|
|
99
139
|
</div>
|
|
100
140
|
</template>
|
|
101
141
|
|
|
@@ -139,6 +179,10 @@ export default defineComponent({
|
|
|
139
179
|
draggable: {
|
|
140
180
|
type: Boolean,
|
|
141
181
|
default: false
|
|
182
|
+
},
|
|
183
|
+
emptyLabel: {
|
|
184
|
+
type: String,
|
|
185
|
+
default: "There are no records to show"
|
|
142
186
|
}
|
|
143
187
|
},
|
|
144
188
|
models: {
|
|
@@ -200,6 +244,7 @@ export default defineComponent({
|
|
|
200
244
|
|
|
201
245
|
&__headers {
|
|
202
246
|
@apply flex pt-4 space-x-2 bg-default;
|
|
247
|
+
@apply dark:bg-dark-default;
|
|
203
248
|
|
|
204
249
|
> .datatable__header {
|
|
205
250
|
@apply px-3;
|
|
@@ -212,6 +257,7 @@ export default defineComponent({
|
|
|
212
257
|
|
|
213
258
|
.datatable__header {
|
|
214
259
|
@apply text-subtle text-xs font-bold pb-3;
|
|
260
|
+
@apply dark:text-dark-subtle;
|
|
215
261
|
|
|
216
262
|
&.datatable__checkbox,
|
|
217
263
|
&.datatable__drag {
|
|
@@ -224,11 +270,18 @@ export default defineComponent({
|
|
|
224
270
|
}
|
|
225
271
|
|
|
226
272
|
&__row {
|
|
227
|
-
@apply flex space-x-2 w-full items-start;
|
|
273
|
+
@apply flex space-x-2 w-full items-start flex-wrap;
|
|
274
|
+
|
|
275
|
+
& > :not([hidden]) {
|
|
276
|
+
~ .basis-full {
|
|
277
|
+
@apply ml-0;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
228
280
|
}
|
|
229
281
|
|
|
230
282
|
&__cell {
|
|
231
283
|
@apply py-4 px-3 text-sm text-default break-all;
|
|
284
|
+
@apply dark:text-dark-default;
|
|
232
285
|
|
|
233
286
|
& > .datatable__header {
|
|
234
287
|
@apply text-xs;
|
|
@@ -248,6 +301,18 @@ export default defineComponent({
|
|
|
248
301
|
&.datatable__drag {
|
|
249
302
|
@apply cursor-grabbing mx-3;
|
|
250
303
|
}
|
|
304
|
+
|
|
305
|
+
&--empty {
|
|
306
|
+
@apply pt-4 pb-0 px-3 text-sm text-default;
|
|
307
|
+
|
|
308
|
+
&.basis-full {
|
|
309
|
+
@apply pb-4;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
&__state-empty {
|
|
315
|
+
@apply basis-full flex-1;
|
|
251
316
|
}
|
|
252
317
|
|
|
253
318
|
&__body {
|
|
@@ -261,16 +326,19 @@ export default defineComponent({
|
|
|
261
326
|
|
|
262
327
|
.datatable__row {
|
|
263
328
|
@apply rounded border border-default bg-default;
|
|
329
|
+
@apply dark:border-dark-default dark:bg-dark-default;
|
|
264
330
|
}
|
|
265
331
|
}
|
|
266
332
|
|
|
267
333
|
&--static {
|
|
268
334
|
.datatable__headers {
|
|
269
335
|
@apply border-b border-b-default;
|
|
336
|
+
@apply dark:border-b-dark-default;
|
|
270
337
|
}
|
|
271
338
|
|
|
272
339
|
.datatable__body {
|
|
273
340
|
@apply border-b border-b-default divide-y divide-default bg-default;
|
|
341
|
+
@apply dark:border-b-dark-default dark:divide-dark-default dark:bg-dark-default;
|
|
274
342
|
}
|
|
275
343
|
}
|
|
276
344
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue-demi';
|
|
2
2
|
import { TableField } from '.';
|
|
3
|
-
|
|
3
|
+
type TypeVariant = 'flexible' | 'static';
|
|
4
4
|
declare const _default: import("vue-demi").DefineComponent<{
|
|
5
5
|
variant: {
|
|
6
6
|
type: PropType<TypeVariant>;
|
|
@@ -8,15 +8,15 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
8
8
|
};
|
|
9
9
|
modelValue: {
|
|
10
10
|
type: PropType<Record<string, unknown>[]>;
|
|
11
|
-
default: () =>
|
|
11
|
+
default: () => never[];
|
|
12
12
|
};
|
|
13
13
|
fields: {
|
|
14
14
|
type: PropType<TableField[]>;
|
|
15
|
-
default: () =>
|
|
15
|
+
default: () => never[];
|
|
16
16
|
};
|
|
17
17
|
items: {
|
|
18
18
|
type: PropType<Record<string, unknown>[]>;
|
|
19
|
-
default: () =>
|
|
19
|
+
default: () => never[];
|
|
20
20
|
};
|
|
21
21
|
selectable: {
|
|
22
22
|
type: BooleanConstructor;
|
|
@@ -26,6 +26,10 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
26
26
|
type: BooleanConstructor;
|
|
27
27
|
default: boolean;
|
|
28
28
|
};
|
|
29
|
+
emptyLabel: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
29
33
|
}, {
|
|
30
34
|
model: import("vue-demi").Ref<Record<string, unknown>[]>;
|
|
31
35
|
rows: import("vue-demi").WritableComputedRef<Record<string, unknown>[]>;
|
|
@@ -39,15 +43,15 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
39
43
|
};
|
|
40
44
|
modelValue: {
|
|
41
45
|
type: PropType<Record<string, unknown>[]>;
|
|
42
|
-
default: () =>
|
|
46
|
+
default: () => never[];
|
|
43
47
|
};
|
|
44
48
|
fields: {
|
|
45
49
|
type: PropType<TableField[]>;
|
|
46
|
-
default: () =>
|
|
50
|
+
default: () => never[];
|
|
47
51
|
};
|
|
48
52
|
items: {
|
|
49
53
|
type: PropType<Record<string, unknown>[]>;
|
|
50
|
-
default: () =>
|
|
54
|
+
default: () => never[];
|
|
51
55
|
};
|
|
52
56
|
selectable: {
|
|
53
57
|
type: BooleanConstructor;
|
|
@@ -57,9 +61,13 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
57
61
|
type: BooleanConstructor;
|
|
58
62
|
default: boolean;
|
|
59
63
|
};
|
|
64
|
+
emptyLabel: {
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
default: string;
|
|
67
|
+
};
|
|
60
68
|
}>> & {
|
|
61
|
-
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
62
|
-
"onUpdate:items"?: (...args: any[]) => any;
|
|
69
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
70
|
+
"onUpdate:items"?: ((...args: any[]) => any) | undefined;
|
|
63
71
|
}, {
|
|
64
72
|
variant: TypeVariant;
|
|
65
73
|
items: Record<string, unknown>[];
|
|
@@ -67,5 +75,6 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
67
75
|
draggable: boolean;
|
|
68
76
|
fields: TableField[];
|
|
69
77
|
selectable: boolean;
|
|
78
|
+
emptyLabel: string;
|
|
70
79
|
}>;
|
|
71
80
|
export default _default;
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
data-testid="tab"
|
|
22
22
|
:disabled="tab.disabled"
|
|
23
23
|
:active="i === active"
|
|
24
|
-
:class="
|
|
24
|
+
:class="{ 'nav__item--no-icon' : (!tab.slots.icon), 'nav__item--no-label' : (!tab.title && !tab.slots.title) }"
|
|
25
25
|
@click="selectTab(i, tab)">
|
|
26
26
|
<template #icon>
|
|
27
27
|
<template v-if="tab.slots.icon">
|
|
@@ -147,6 +147,7 @@ export default defineComponent({
|
|
|
147
147
|
*/
|
|
148
148
|
.nav {
|
|
149
149
|
@apply border-b border-b-default;
|
|
150
|
+
@apply dark:border-b-dark-default;
|
|
150
151
|
|
|
151
152
|
&__link {
|
|
152
153
|
.badge {
|
|
@@ -156,6 +157,7 @@ export default defineComponent({
|
|
|
156
157
|
|
|
157
158
|
&--vertical {
|
|
158
159
|
@apply pb-2 border-b-0 border-r border-r-default;
|
|
160
|
+
@apply dark:border-r-dark-default;
|
|
159
161
|
}
|
|
160
162
|
}
|
|
161
163
|
|
|
@@ -187,6 +189,7 @@ export default defineComponent({
|
|
|
187
189
|
|
|
188
190
|
.nav {
|
|
189
191
|
@apply border-b-0 border-r-0 border-l border-l-default;
|
|
192
|
+
@apply dark:border-l-dark-default;
|
|
190
193
|
|
|
191
194
|
&.nav--pills {
|
|
192
195
|
@apply pl-2 pr-0;
|
|
@@ -28,7 +28,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
28
28
|
};
|
|
29
29
|
navWrapperClass: {
|
|
30
30
|
type: StringConstructor;
|
|
31
|
-
default:
|
|
31
|
+
default: undefined;
|
|
32
32
|
};
|
|
33
33
|
modelValue: {
|
|
34
34
|
type: NumberConstructor;
|
|
@@ -62,7 +62,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
62
62
|
};
|
|
63
63
|
navWrapperClass: {
|
|
64
64
|
type: StringConstructor;
|
|
65
|
-
default:
|
|
65
|
+
default: undefined;
|
|
66
66
|
};
|
|
67
67
|
modelValue: {
|
|
68
68
|
type: NumberConstructor;
|
|
@@ -7,7 +7,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
7
7
|
};
|
|
8
8
|
href: {
|
|
9
9
|
type: StringConstructor;
|
|
10
|
-
default:
|
|
10
|
+
default: undefined;
|
|
11
11
|
};
|
|
12
12
|
}, {
|
|
13
13
|
hyperlink: import("vue-demi").ComputedRef<String>;
|
|
@@ -19,7 +19,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
19
19
|
};
|
|
20
20
|
href: {
|
|
21
21
|
type: StringConstructor;
|
|
22
|
-
default:
|
|
22
|
+
default: undefined;
|
|
23
23
|
};
|
|
24
24
|
}>>, {
|
|
25
25
|
variant: StyleVariant;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type StyleVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'subheading' | 'subheading2' | 'body' | 'body2' | 'btn' | 'btn2' | 'caption' | 'caption2' | 'formlabel' | 'formlabel2' | 'overline';
|
|
@@ -134,14 +134,17 @@ export default defineComponent({
|
|
|
134
134
|
@apply flex flex-auto relative;
|
|
135
135
|
|
|
136
136
|
&__input {
|
|
137
|
-
@apply p-3 rounded border border-solid border-muted hover:border-subtle focus:border-subtle placeholder:text-muted w-full outline-none text-default bg-default resize-none min-h-[46px] focus:ring-4 focus:ring-subtle/10 focus:z-
|
|
137
|
+
@apply p-3 rounded border border-solid border-muted hover:border-subtle focus:border-subtle placeholder:text-muted w-full outline-none text-default bg-default resize-none min-h-[46px] focus:ring-4 focus:ring-subtle/10 focus:z-1;
|
|
138
|
+
@apply dark:border-dark-muted hover:dark:border-dark-subtle focus:dark:border-dark-subtle placeholder:dark:text-dark-muted dark:text-dark-default dark:bg-dark-default focus:dark:ring-dark-subtle/10;
|
|
138
139
|
|
|
139
140
|
.textarea--readonly & {
|
|
140
141
|
@apply hover:border-muted focus:border-muted focus:ring-0 focus:z-0;
|
|
142
|
+
@apply hover:dark:border-dark-muted focus:dark:border-dark-muted;
|
|
141
143
|
}
|
|
142
144
|
|
|
143
145
|
.textarea--disabled & {
|
|
144
|
-
@apply bg-
|
|
146
|
+
@apply bg-subtle border-subtle pointer-events-none text-muted;
|
|
147
|
+
@apply dark:bg-dark-subtle dark:border-dark-subtle dark:text-dark-muted;
|
|
145
148
|
}
|
|
146
149
|
|
|
147
150
|
.textarea--resize & {
|
|
@@ -154,16 +157,14 @@ export default defineComponent({
|
|
|
154
157
|
|
|
155
158
|
.state--error &,
|
|
156
159
|
.textarea--error & {
|
|
157
|
-
@apply border-danger-emphasis hover:border-danger-emphasis;
|
|
158
|
-
|
|
159
|
-
&:focus {
|
|
160
|
-
@apply ring-danger border-danger-emphasis;
|
|
161
|
-
}
|
|
160
|
+
@apply border-danger-emphasis hover:border-danger-emphasis focus:ring-danger focus:border-danger-emphasis;
|
|
161
|
+
@apply dark:border-dark-danger-emphasis hover:dark:border-dark-danger-emphasis focus:dark:ring-dark-danger focus:dark:border-dark-danger-emphasis;
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
&__counter {
|
|
166
166
|
@apply text-right text-muted text-xs absolute bottom-1 right-1 pointer-events-none z-1;
|
|
167
|
+
@apply dark:text-dark-muted;
|
|
167
168
|
}
|
|
168
169
|
}
|
|
169
170
|
|
|
@@ -37,7 +37,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
37
37
|
};
|
|
38
38
|
maxlength: {
|
|
39
39
|
type: (NumberConstructor | StringConstructor)[];
|
|
40
|
-
default:
|
|
40
|
+
default: undefined;
|
|
41
41
|
};
|
|
42
42
|
}, {
|
|
43
43
|
model: import("vue-demi").Ref<string>;
|
|
@@ -84,16 +84,16 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
84
84
|
};
|
|
85
85
|
maxlength: {
|
|
86
86
|
type: (NumberConstructor | StringConstructor)[];
|
|
87
|
-
default:
|
|
87
|
+
default: undefined;
|
|
88
88
|
};
|
|
89
89
|
}>> & {
|
|
90
|
-
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
91
|
-
onInput?: (...args: any[]) => any;
|
|
90
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
91
|
+
onInput?: ((...args: any[]) => any) | undefined;
|
|
92
92
|
}, {
|
|
93
93
|
error: boolean;
|
|
94
94
|
resize: boolean;
|
|
95
|
-
disabled: boolean;
|
|
96
95
|
modelValue: string;
|
|
96
|
+
disabled: boolean;
|
|
97
97
|
readonly: boolean;
|
|
98
98
|
placeholder: string;
|
|
99
99
|
maxlength: string | number;
|
|
@@ -123,6 +123,7 @@ export default defineComponent({
|
|
|
123
123
|
|
|
124
124
|
.toast__close {
|
|
125
125
|
@apply cursor-pointer text-default/30 hover:text-default/50;
|
|
126
|
+
@apply dark:text-dark-default/30 dark:text-dark-default/50;
|
|
126
127
|
}
|
|
127
128
|
|
|
128
129
|
.toast__body {
|
|
@@ -154,10 +155,12 @@ export default defineComponent({
|
|
|
154
155
|
&:is(.toast--info) {
|
|
155
156
|
.toast__title {
|
|
156
157
|
@apply text-default;
|
|
158
|
+
@apply dark:text-dark-default;
|
|
157
159
|
}
|
|
158
160
|
|
|
159
161
|
.toast__text {
|
|
160
162
|
@apply text-subtle;
|
|
163
|
+
@apply dark:text-dark-subtle;
|
|
161
164
|
}
|
|
162
165
|
}
|
|
163
166
|
|
|
@@ -169,7 +172,8 @@ export default defineComponent({
|
|
|
169
172
|
&&--info {
|
|
170
173
|
.toast__icon,
|
|
171
174
|
&.toast--filled {
|
|
172
|
-
@apply bg-
|
|
175
|
+
@apply bg-base text-info;
|
|
176
|
+
@apply dark:bg-dark-base dark:text-dark-info;
|
|
173
177
|
}
|
|
174
178
|
}
|
|
175
179
|
|
|
@@ -184,12 +188,14 @@ export default defineComponent({
|
|
|
184
188
|
&.toast--simple {
|
|
185
189
|
.toast__title {
|
|
186
190
|
@apply text-danger;
|
|
191
|
+
@apply dark:text-dark-danger;
|
|
187
192
|
}
|
|
188
193
|
}
|
|
189
194
|
|
|
190
195
|
.toast__icon,
|
|
191
196
|
&.toast--filled {
|
|
192
197
|
@apply bg-danger-emphasis;
|
|
198
|
+
@apply dark:bg-dark-danger-emphasis;
|
|
193
199
|
}
|
|
194
200
|
}
|
|
195
201
|
|
|
@@ -197,12 +203,14 @@ export default defineComponent({
|
|
|
197
203
|
&.toast--simple {
|
|
198
204
|
.toast__title {
|
|
199
205
|
@apply text-success;
|
|
206
|
+
@apply dark:text-dark-success;
|
|
200
207
|
}
|
|
201
208
|
}
|
|
202
209
|
|
|
203
210
|
.toast__icon,
|
|
204
211
|
&.toast--filled {
|
|
205
212
|
@apply bg-success-emphasis;
|
|
213
|
+
@apply dark:bg-dark-success-emphasis;
|
|
206
214
|
}
|
|
207
215
|
}
|
|
208
216
|
|
|
@@ -210,12 +218,14 @@ export default defineComponent({
|
|
|
210
218
|
&.toast--simple {
|
|
211
219
|
.toast__title {
|
|
212
220
|
@apply text-warning;
|
|
221
|
+
@apply dark:text-dark-warning;
|
|
213
222
|
}
|
|
214
223
|
}
|
|
215
224
|
|
|
216
225
|
.toast__icon,
|
|
217
226
|
&.toast--filled {
|
|
218
227
|
@apply bg-warning-emphasis;
|
|
228
|
+
@apply dark:bg-dark-warning-emphasis;
|
|
219
229
|
}
|
|
220
230
|
}
|
|
221
231
|
|
|
@@ -226,14 +236,17 @@ export default defineComponent({
|
|
|
226
236
|
*/
|
|
227
237
|
&&--simple {
|
|
228
238
|
@apply bg-default;
|
|
239
|
+
@apply dark:bg-dark-default;
|
|
229
240
|
|
|
230
241
|
.toast__text {
|
|
231
242
|
@apply text-subtle;
|
|
243
|
+
@apply dark:text-dark-subtle;
|
|
232
244
|
}
|
|
233
245
|
|
|
234
246
|
&:not(.toast--info) {
|
|
235
247
|
.toast__icon {
|
|
236
|
-
@apply text-
|
|
248
|
+
@apply text-state-emphasis;
|
|
249
|
+
@apply dark:text-dark-state-emphasis;
|
|
237
250
|
}
|
|
238
251
|
}
|
|
239
252
|
}
|
|
@@ -250,7 +263,8 @@ export default defineComponent({
|
|
|
250
263
|
}
|
|
251
264
|
|
|
252
265
|
&:not(.toast--info) {
|
|
253
|
-
@apply text-
|
|
266
|
+
@apply text-state-emphasis;
|
|
267
|
+
@apply dark:text-dark-state-emphasis;
|
|
254
268
|
}
|
|
255
269
|
}
|
|
256
270
|
}
|
|
@@ -47,7 +47,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
47
47
|
default: number;
|
|
48
48
|
};
|
|
49
49
|
}>> & {
|
|
50
|
-
onDismissed?: (...args: any[]) => any;
|
|
50
|
+
onDismissed?: ((...args: any[]) => any) | undefined;
|
|
51
51
|
}, {
|
|
52
52
|
variant: ToastStyleVariant;
|
|
53
53
|
type: ToastTypeVariant;
|
|
@@ -4,12 +4,12 @@ declare const _default: import("vue-demi").DefineComponent<{}, {
|
|
|
4
4
|
remove: (index: number) => void;
|
|
5
5
|
items: import("vue-demi").Ref<{
|
|
6
6
|
_id: symbol;
|
|
7
|
-
type?: import(".").ToastTypeVariant;
|
|
8
|
-
variant?: import(".").ToastStyleVariant;
|
|
7
|
+
type?: import(".").ToastTypeVariant | undefined;
|
|
8
|
+
variant?: import(".").ToastStyleVariant | undefined;
|
|
9
9
|
title: string;
|
|
10
10
|
text: string;
|
|
11
|
-
duration?: number;
|
|
12
|
-
toastClass?: string | string[];
|
|
11
|
+
duration?: number | undefined;
|
|
12
|
+
toastClass?: string | string[] | undefined;
|
|
13
13
|
}[]>;
|
|
14
14
|
}, {}, {}, {}, import("vue-demi").ComponentOptionsMixin, import("vue-demi").ComponentOptionsMixin, {}, string, import("vue-demi").VNodeProps & import("vue-demi").AllowedComponentProps & import("vue-demi").ComponentCustomProps, Readonly<import("vue-demi").ExtractPropTypes<{}>>, {}>;
|
|
15
15
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export type ToastTypeVariant = 'info' | 'success' | 'warning' | 'error';
|
|
2
|
+
export type ToastStyleVariant = 'simple' | 'filled';
|
|
3
3
|
export interface ToastOption {
|
|
4
4
|
type?: ToastTypeVariant;
|
|
5
5
|
variant?: ToastStyleVariant;
|
|
@@ -136,14 +136,17 @@ export default defineComponent({
|
|
|
136
136
|
|
|
137
137
|
<style lang="postcss">
|
|
138
138
|
.toggle {
|
|
139
|
-
@apply inline-flex cursor-pointer relative items-center select-none;
|
|
139
|
+
@apply inline-flex cursor-pointer relative items-center select-none text-default;
|
|
140
|
+
@apply dark:text-dark-default;
|
|
140
141
|
|
|
141
142
|
&__switch {
|
|
142
|
-
@apply flex items-center justify-center relative bg-
|
|
143
|
+
@apply flex items-center justify-center relative bg-subtle border-default;
|
|
144
|
+
@apply dark:bg-dark-subtle dark:border-dark-default;
|
|
143
145
|
}
|
|
144
146
|
|
|
145
147
|
&__pointer {
|
|
146
148
|
@apply block absolute appearance-none cursor-pointer will-change-transform transition-transform -translate-x-1/2 bg-default;
|
|
149
|
+
@apply dark:bg-dark-layer-2;
|
|
147
150
|
}
|
|
148
151
|
|
|
149
152
|
&--disabled {
|
|
@@ -152,7 +155,8 @@ export default defineComponent({
|
|
|
152
155
|
|
|
153
156
|
&&--pill {
|
|
154
157
|
.toggle__switch {
|
|
155
|
-
@apply w-9 h-5 rounded-full text-[0.5rem] text-
|
|
158
|
+
@apply w-9 h-5 rounded-full text-[0.5rem] text-state-emphasis border;
|
|
159
|
+
@apply dark:text-dark-state-emphasis;
|
|
156
160
|
}
|
|
157
161
|
|
|
158
162
|
.toggle__label {
|
|
@@ -165,7 +169,8 @@ export default defineComponent({
|
|
|
165
169
|
|
|
166
170
|
&.toggle--checked {
|
|
167
171
|
.toggle__switch {
|
|
168
|
-
@apply bg-
|
|
172
|
+
@apply bg-info-emphasis border-info-emphasis;
|
|
173
|
+
@apply dark:bg-dark-info-emphasis dark:border-dark-info-emphasis;
|
|
169
174
|
}
|
|
170
175
|
|
|
171
176
|
.toggle__pointer {
|
|
@@ -176,7 +181,7 @@ export default defineComponent({
|
|
|
176
181
|
|
|
177
182
|
&&--flat {
|
|
178
183
|
.toggle__switch {
|
|
179
|
-
@apply flex-row-reverse border-2 rounded-
|
|
184
|
+
@apply flex-row-reverse border-2 rounded-sm min-h-[1.5rem] min-w-[2.5rem];
|
|
180
185
|
}
|
|
181
186
|
|
|
182
187
|
.toggle__label {
|
|
@@ -185,19 +190,22 @@ export default defineComponent({
|
|
|
185
190
|
|
|
186
191
|
.toggle__checked-label {
|
|
187
192
|
@apply text-muted;
|
|
193
|
+
@apply dark:text-dark-muted;
|
|
188
194
|
}
|
|
189
195
|
|
|
190
196
|
.toggle__pointer {
|
|
191
|
-
@apply w-1/2 h-full rounded-
|
|
197
|
+
@apply w-1/2 h-full rounded-xs z-[1];
|
|
192
198
|
}
|
|
193
199
|
|
|
194
200
|
&.toggle--checked {
|
|
195
201
|
.toggle__checked-label {
|
|
196
202
|
@apply text-default;
|
|
203
|
+
@apply dark:text-dark-default;
|
|
197
204
|
}
|
|
198
205
|
|
|
199
206
|
.toggle__unchecked-label {
|
|
200
207
|
@apply text-muted;
|
|
208
|
+
@apply dark:text-dark-muted;
|
|
201
209
|
}
|
|
202
210
|
|
|
203
211
|
.toggle__pointer {
|
|
@@ -208,10 +216,12 @@ export default defineComponent({
|
|
|
208
216
|
|
|
209
217
|
.dropdown__menu & {
|
|
210
218
|
@apply px-3 py-2 cursor-pointer text-default w-full select-none text-left flex justify-between items-center flex-row-reverse;
|
|
219
|
+
@apply dark:text-dark-default;
|
|
211
220
|
|
|
212
221
|
&:hover,
|
|
213
222
|
&:focus-visible {
|
|
214
|
-
@apply bg-
|
|
223
|
+
@apply bg-subtle;
|
|
224
|
+
@apply dark:bg-dark-subtle;
|
|
215
225
|
}
|
|
216
226
|
}
|
|
217
227
|
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { PropType } from 'vue-demi';
|
|
2
|
-
|
|
2
|
+
type StyleVariant = 'pill' | 'flat';
|
|
3
3
|
declare const _default: import("vue-demi").DefineComponent<{
|
|
4
4
|
variant: {
|
|
5
5
|
type: PropType<StyleVariant>;
|
|
6
6
|
default: string;
|
|
7
7
|
};
|
|
8
8
|
modelValue: {
|
|
9
|
-
type: (NumberConstructor |
|
|
9
|
+
type: (NumberConstructor | StringConstructor | BooleanConstructor | ObjectConstructor | DateConstructor | ArrayConstructor)[];
|
|
10
10
|
default: boolean;
|
|
11
11
|
};
|
|
12
12
|
value: {
|
|
13
|
-
type: (NumberConstructor |
|
|
13
|
+
type: (NumberConstructor | StringConstructor | BooleanConstructor | ObjectConstructor | DateConstructor | ArrayConstructor)[];
|
|
14
14
|
default: boolean;
|
|
15
15
|
};
|
|
16
16
|
uncheckedValue: {
|
|
17
|
-
type: (NumberConstructor |
|
|
17
|
+
type: (NumberConstructor | StringConstructor | BooleanConstructor | ObjectConstructor | DateConstructor | ArrayConstructor)[];
|
|
18
18
|
default: boolean;
|
|
19
19
|
};
|
|
20
20
|
checked: {
|
|
@@ -51,15 +51,15 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
51
51
|
default: string;
|
|
52
52
|
};
|
|
53
53
|
modelValue: {
|
|
54
|
-
type: (NumberConstructor |
|
|
54
|
+
type: (NumberConstructor | StringConstructor | BooleanConstructor | ObjectConstructor | DateConstructor | ArrayConstructor)[];
|
|
55
55
|
default: boolean;
|
|
56
56
|
};
|
|
57
57
|
value: {
|
|
58
|
-
type: (NumberConstructor |
|
|
58
|
+
type: (NumberConstructor | StringConstructor | BooleanConstructor | ObjectConstructor | DateConstructor | ArrayConstructor)[];
|
|
59
59
|
default: boolean;
|
|
60
60
|
};
|
|
61
61
|
uncheckedValue: {
|
|
62
|
-
type: (NumberConstructor |
|
|
62
|
+
type: (NumberConstructor | StringConstructor | BooleanConstructor | ObjectConstructor | DateConstructor | ArrayConstructor)[];
|
|
63
63
|
default: boolean;
|
|
64
64
|
};
|
|
65
65
|
checked: {
|
|
@@ -87,15 +87,15 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
87
87
|
default: boolean;
|
|
88
88
|
};
|
|
89
89
|
}>> & {
|
|
90
|
-
onChange?: (...args: any[]) => any;
|
|
91
|
-
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
90
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
91
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
92
92
|
}, {
|
|
93
|
-
value: string | number | boolean | unknown[] | Record<string, any
|
|
93
|
+
value: string | number | boolean | unknown[] | Date | Record<string, any>;
|
|
94
94
|
variant: StyleVariant;
|
|
95
|
+
modelValue: string | number | boolean | unknown[] | Date | Record<string, any>;
|
|
95
96
|
disabled: boolean;
|
|
96
|
-
modelValue: string | number | boolean | unknown[] | Record<string, any> | Date;
|
|
97
97
|
readonly: boolean;
|
|
98
|
-
uncheckedValue: string | number | boolean | unknown[] | Record<string, any
|
|
98
|
+
uncheckedValue: string | number | boolean | unknown[] | Date | Record<string, any>;
|
|
99
99
|
checked: boolean;
|
|
100
100
|
checkedLabel: string;
|
|
101
101
|
uncheckedLabel: string;
|
|
@@ -137,18 +137,22 @@ export default defineComponent({
|
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
&--black {
|
|
140
|
-
@apply bg-
|
|
140
|
+
@apply bg-inverse text-on-emphasis;
|
|
141
|
+
@apply dark:bg-dark-inverse dark:text-dark-on-emphasis;
|
|
141
142
|
|
|
142
143
|
.tooltip__arrow {
|
|
143
|
-
@apply after:bg-
|
|
144
|
+
@apply after:bg-inverse;
|
|
145
|
+
@apply dark:after:bg-dark-inverse;
|
|
144
146
|
}
|
|
145
147
|
}
|
|
146
148
|
|
|
147
149
|
&--white {
|
|
148
150
|
@apply bg-default text-subtle;
|
|
151
|
+
@apply dark:bg-dark-default dark:text-dark-subtle;
|
|
149
152
|
|
|
150
153
|
.tooltip__arrow {
|
|
151
154
|
@apply after:bg-default;
|
|
155
|
+
@apply dark:after:bg-dark-default;
|
|
152
156
|
}
|
|
153
157
|
}
|
|
154
158
|
}
|