@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
|
@@ -116,6 +116,7 @@ export default defineComponent({
|
|
|
116
116
|
<style lang="postcss">
|
|
117
117
|
.avatar {
|
|
118
118
|
@apply rounded-full inline-flex items-center justify-center overflow-hidden text-subtle bg-subtle;
|
|
119
|
+
@apply dark:text-dark-subtle dark:bg-dark-subtle;
|
|
119
120
|
|
|
120
121
|
&__image {
|
|
121
122
|
@apply w-full h-full object-cover;
|
|
@@ -3,11 +3,11 @@ import { TypeVariant, SizeVariant } from '.';
|
|
|
3
3
|
declare const _default: import("vue-demi").DefineComponent<{
|
|
4
4
|
variant: {
|
|
5
5
|
type: PropType<TypeVariant>;
|
|
6
|
-
default:
|
|
6
|
+
default: undefined;
|
|
7
7
|
};
|
|
8
8
|
src: {
|
|
9
9
|
type: StringConstructor;
|
|
10
|
-
default:
|
|
10
|
+
default: undefined;
|
|
11
11
|
};
|
|
12
12
|
fallbackSrc: {
|
|
13
13
|
type: StringConstructor;
|
|
@@ -15,15 +15,15 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
15
15
|
};
|
|
16
16
|
name: {
|
|
17
17
|
type: StringConstructor;
|
|
18
|
-
default:
|
|
18
|
+
default: undefined;
|
|
19
19
|
};
|
|
20
20
|
size: {
|
|
21
21
|
type: PropType<SizeVariant>;
|
|
22
22
|
default: string;
|
|
23
23
|
};
|
|
24
24
|
imgClass: {
|
|
25
|
-
type: (
|
|
26
|
-
default:
|
|
25
|
+
type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
26
|
+
default: undefined;
|
|
27
27
|
};
|
|
28
28
|
}, {
|
|
29
29
|
classNames: import("vue-demi").ComputedRef<string[]>;
|
|
@@ -32,11 +32,11 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
32
32
|
}, unknown, {}, {}, import("vue-demi").ComponentOptionsMixin, import("vue-demi").ComponentOptionsMixin, ("imgloaded" | "imgerror")[], "imgloaded" | "imgerror", import("vue-demi").VNodeProps & import("vue-demi").AllowedComponentProps & import("vue-demi").ComponentCustomProps, Readonly<import("vue-demi").ExtractPropTypes<{
|
|
33
33
|
variant: {
|
|
34
34
|
type: PropType<TypeVariant>;
|
|
35
|
-
default:
|
|
35
|
+
default: undefined;
|
|
36
36
|
};
|
|
37
37
|
src: {
|
|
38
38
|
type: StringConstructor;
|
|
39
|
-
default:
|
|
39
|
+
default: undefined;
|
|
40
40
|
};
|
|
41
41
|
fallbackSrc: {
|
|
42
42
|
type: StringConstructor;
|
|
@@ -44,23 +44,23 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
44
44
|
};
|
|
45
45
|
name: {
|
|
46
46
|
type: StringConstructor;
|
|
47
|
-
default:
|
|
47
|
+
default: undefined;
|
|
48
48
|
};
|
|
49
49
|
size: {
|
|
50
50
|
type: PropType<SizeVariant>;
|
|
51
51
|
default: string;
|
|
52
52
|
};
|
|
53
53
|
imgClass: {
|
|
54
|
-
type: (
|
|
55
|
-
default:
|
|
54
|
+
type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
55
|
+
default: undefined;
|
|
56
56
|
};
|
|
57
57
|
}>> & {
|
|
58
|
-
onImgloaded?: (...args: any[]) => any;
|
|
59
|
-
onImgerror?: (...args: any[]) => any;
|
|
58
|
+
onImgloaded?: ((...args: any[]) => any) | undefined;
|
|
59
|
+
onImgerror?: ((...args: any[]) => any) | undefined;
|
|
60
60
|
}, {
|
|
61
|
-
src: string;
|
|
62
61
|
name: string;
|
|
63
62
|
variant: TypeVariant;
|
|
63
|
+
src: string;
|
|
64
64
|
fallbackSrc: string;
|
|
65
65
|
size: SizeVariant;
|
|
66
66
|
imgClass: string | unknown[] | Record<string, any>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export type TypeVariant = 'image' | 'alias';
|
|
2
|
+
export type SizeVariant = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
@@ -48,7 +48,10 @@ export default defineComponent({
|
|
|
48
48
|
* Set global style
|
|
49
49
|
* of badge
|
|
50
50
|
*/
|
|
51
|
-
|
|
51
|
+
--p-color-primary-light: lighten(theme(colors.brand.accent), 40%);
|
|
52
|
+
--p-color-dark-primary-light: darken(theme(colors.dark.brand.accent), 40%);
|
|
53
|
+
|
|
54
|
+
@apply inline-block font-bold text-xs px-2 py-0.5 text-state-emphasis dark:text-dark-state-emphasis rounded-full;
|
|
52
55
|
|
|
53
56
|
/**
|
|
54
57
|
* Provide colors variant
|
|
@@ -59,23 +62,35 @@ export default defineComponent({
|
|
|
59
62
|
&&--variant-default {
|
|
60
63
|
&.badge {
|
|
61
64
|
&--default {
|
|
62
|
-
|
|
65
|
+
--p-bg-variant-default: theme(backgroundColor.inverse);
|
|
66
|
+
--p-bg-dark-variant-default: theme(backgroundColor.dark.inverse);
|
|
67
|
+
@apply bg-[color:var(--p-bg-variant-default)];
|
|
68
|
+
@apply dark:bg-[color:var(--p-bg-dark-variant-default)] dark:text-dark-on-emphasis;
|
|
63
69
|
}
|
|
64
70
|
|
|
65
71
|
&--primary {
|
|
66
|
-
@apply bg-accent
|
|
72
|
+
@apply bg-brand-accent;
|
|
73
|
+
@apply dark:bg-dark-brand-accent;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&--info {
|
|
77
|
+
@apply bg-info-emphasis;
|
|
78
|
+
@apply dark:bg-dark-info-emphasis;
|
|
67
79
|
}
|
|
68
80
|
|
|
69
81
|
&--success {
|
|
70
82
|
@apply bg-success-emphasis;
|
|
83
|
+
@apply dark:bg-dark-success-emphasis;
|
|
71
84
|
}
|
|
72
85
|
|
|
73
86
|
&--warning {
|
|
74
87
|
@apply bg-warning-emphasis;
|
|
88
|
+
@apply dark:bg-dark-warning-emphasis;
|
|
75
89
|
}
|
|
76
90
|
|
|
77
91
|
&--danger {
|
|
78
92
|
@apply bg-danger-emphasis;
|
|
93
|
+
@apply dark:bg-dark-danger-emphasis;
|
|
79
94
|
}
|
|
80
95
|
}
|
|
81
96
|
}
|
|
@@ -88,23 +103,35 @@ export default defineComponent({
|
|
|
88
103
|
&&--variant-inverse {
|
|
89
104
|
&.badge {
|
|
90
105
|
&--default {
|
|
91
|
-
|
|
106
|
+
--p-color-variant-inverse: theme(textColor.subtle);
|
|
107
|
+
--p-color-dark-variant-inverse: theme(textColor.dark.subtle);
|
|
108
|
+
@apply text-[color:var(--p-color-variant-inverse)];
|
|
109
|
+
@apply dark:text-[color:var(--p-color-dark-variant-inverse)];
|
|
92
110
|
}
|
|
93
111
|
|
|
94
112
|
&--primary {
|
|
95
|
-
@apply text-accent;
|
|
113
|
+
@apply text-brand-accent;
|
|
114
|
+
@apply dark:text-dark-brand-accent;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&--info {
|
|
118
|
+
@apply text-info;
|
|
119
|
+
@apply dark:text-dark-info;
|
|
96
120
|
}
|
|
97
121
|
|
|
98
122
|
&--success {
|
|
99
123
|
@apply text-success;
|
|
124
|
+
@apply dark:text-dark-success;
|
|
100
125
|
}
|
|
101
126
|
|
|
102
127
|
&--warning {
|
|
103
128
|
@apply text-warning;
|
|
129
|
+
@apply dark:text-dark-warning;
|
|
104
130
|
}
|
|
105
131
|
|
|
106
132
|
&--danger {
|
|
107
133
|
@apply text-danger;
|
|
134
|
+
@apply dark:text-dark-danger;
|
|
108
135
|
}
|
|
109
136
|
}
|
|
110
137
|
}
|
|
@@ -115,24 +142,36 @@ export default defineComponent({
|
|
|
115
142
|
*/
|
|
116
143
|
&--variant-light {
|
|
117
144
|
&.badge {
|
|
145
|
+
&--default {
|
|
146
|
+
--p-bg-variant-light: theme(backgroundColor.subtle.alpha);
|
|
147
|
+
--p-bg-dark-variant-light: theme(backgroundColor.dark.subtle.alpha);
|
|
148
|
+
@apply bg-[color:var(--p-bg-variant-light)];
|
|
149
|
+
@apply dark:bg-[color:var(--p-bg-dark-variant-light)];
|
|
150
|
+
}
|
|
151
|
+
|
|
118
152
|
&--primary {
|
|
119
|
-
@apply bg-
|
|
153
|
+
@apply bg-[color:var(--p-color-primary-light)];
|
|
154
|
+
@apply dark:bg-[color:var(--p-color-dark-primary-light)];
|
|
120
155
|
}
|
|
121
156
|
|
|
122
|
-
&--
|
|
123
|
-
@apply bg-
|
|
157
|
+
&--info {
|
|
158
|
+
@apply bg-info;
|
|
159
|
+
@apply dark:bg-dark-info;
|
|
124
160
|
}
|
|
125
161
|
|
|
126
162
|
&--success {
|
|
127
163
|
@apply bg-success;
|
|
164
|
+
@apply dark:bg-dark-success;
|
|
128
165
|
}
|
|
129
166
|
|
|
130
167
|
&--warning {
|
|
131
168
|
@apply bg-warning;
|
|
169
|
+
@apply dark:bg-dark-warning;
|
|
132
170
|
}
|
|
133
171
|
|
|
134
172
|
&--danger {
|
|
135
173
|
@apply bg-danger;
|
|
174
|
+
@apply dark:bg-dark-danger;
|
|
136
175
|
}
|
|
137
176
|
}
|
|
138
177
|
}
|
|
@@ -143,6 +182,7 @@ export default defineComponent({
|
|
|
143
182
|
*/
|
|
144
183
|
&:where(.badge--variant-inverse, .badge--dot) {
|
|
145
184
|
@apply bg-default;
|
|
185
|
+
@apply dark:bg-dark-default;
|
|
146
186
|
}
|
|
147
187
|
|
|
148
188
|
/**
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue-demi';
|
|
2
|
-
import {
|
|
2
|
+
import { StyleVariant } from '.';
|
|
3
|
+
import { ColorVariant } from '../button';
|
|
3
4
|
declare const _default: import("vue-demi").DefineComponent<{
|
|
4
5
|
color: {
|
|
5
6
|
type: PropType<ColorVariant>;
|
|
@@ -21,7 +22,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
21
22
|
default: string;
|
|
22
23
|
};
|
|
23
24
|
}>>, {
|
|
24
|
-
variant: StyleVariant;
|
|
25
25
|
color: ColorVariant;
|
|
26
|
+
variant: StyleVariant;
|
|
26
27
|
}>;
|
|
27
28
|
export default _default;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export declare type StyleVariant = 'default' | 'light' | 'inverse';
|
|
1
|
+
export type StyleVariant = 'default' | 'light' | 'inverse';
|
|
@@ -3,10 +3,15 @@
|
|
|
3
3
|
v-if="show"
|
|
4
4
|
data-testid="banner"
|
|
5
5
|
:class="classNames">
|
|
6
|
-
<div
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
<div
|
|
7
|
+
class="banner__icon"
|
|
8
|
+
data-testid="banner-icon"
|
|
9
|
+
:class="{ 'banner__icon--custom' : $slots.icon }">
|
|
10
|
+
<slot name="icon">
|
|
11
|
+
<component
|
|
12
|
+
:is="icon"
|
|
13
|
+
v-if="icon" />
|
|
14
|
+
</slot>
|
|
10
15
|
</div>
|
|
11
16
|
<div class="banner__body">
|
|
12
17
|
<slot :close="close" />
|
|
@@ -79,10 +84,12 @@ export default defineComponent({
|
|
|
79
84
|
<style lang="postcss">
|
|
80
85
|
.banner {
|
|
81
86
|
@apply p-4 flex space-x-2 rounded text-subtle;
|
|
87
|
+
@apply dark:text-dark-subtle;
|
|
82
88
|
|
|
83
89
|
a {
|
|
84
90
|
&:not(.btn) {
|
|
85
|
-
@apply underline decoration-solid text-
|
|
91
|
+
@apply underline decoration-solid text-info;
|
|
92
|
+
@apply dark:text-dark-info;
|
|
86
93
|
}
|
|
87
94
|
}
|
|
88
95
|
|
|
@@ -95,18 +102,22 @@ export default defineComponent({
|
|
|
95
102
|
}
|
|
96
103
|
|
|
97
104
|
&&--info {
|
|
98
|
-
@apply bg-
|
|
105
|
+
@apply bg-base;
|
|
106
|
+
@apply dark:bg-dark-base;
|
|
99
107
|
|
|
100
108
|
.banner__icon {
|
|
101
|
-
@apply text-
|
|
109
|
+
@apply text-info;
|
|
110
|
+
@apply dark:text-dark-info;
|
|
102
111
|
}
|
|
103
112
|
}
|
|
104
113
|
|
|
105
114
|
&&--danger {
|
|
106
115
|
@apply bg-danger;
|
|
116
|
+
@apply dark:bg-dark-danger;
|
|
107
117
|
|
|
108
118
|
.banner__icon {
|
|
109
119
|
@apply text-danger;
|
|
120
|
+
@apply dark:text-dark-danger;
|
|
110
121
|
}
|
|
111
122
|
}
|
|
112
123
|
|
|
@@ -121,6 +132,7 @@ export default defineComponent({
|
|
|
121
132
|
|
|
122
133
|
&__close {
|
|
123
134
|
@apply cursor-pointer text-default/30 hover:text-default/50;
|
|
135
|
+
@apply dark:text-dark-default/30 hover:dark:text-dark-default/50;
|
|
124
136
|
}
|
|
125
137
|
}
|
|
126
138
|
</style>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type StyleVariant = 'info' | 'danger';
|
|
@@ -11,7 +11,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
11
11
|
}, {
|
|
12
12
|
classNames: import("vue-demi").ComputedRef<string[]>;
|
|
13
13
|
tagName: import("vue-demi").ComputedRef<TagVariant>;
|
|
14
|
-
permalink: import("vue-demi").ComputedRef<string>;
|
|
14
|
+
permalink: import("vue-demi").ComputedRef<string | undefined>;
|
|
15
15
|
}, unknown, {}, {}, 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<{
|
|
16
16
|
href: {
|
|
17
17
|
type: StringConstructor;
|
|
@@ -49,15 +49,18 @@ export default defineComponent({
|
|
|
49
49
|
&&--dropdown {
|
|
50
50
|
.dropdown__activator {
|
|
51
51
|
@apply px-0 text-subtle bg-transparent border-transparent hover:shadow-none hover:border-transparent hover:bg-transparent focus:shadow-none focus:border-transparent focus:bg-transparent;
|
|
52
|
+
@apply dark:text-dark-subtle dark:bg-transparent dark:border-transparent hover:dark:border-transparent hover:dark:bg-transparent focus:dark:border-transparent focus:dark:bg-transparent;
|
|
52
53
|
}
|
|
53
54
|
}
|
|
54
55
|
|
|
55
56
|
&&--active {
|
|
56
57
|
.dropdown__activator {
|
|
57
58
|
@apply text-default;
|
|
59
|
+
@apply dark:text-dark-default;
|
|
58
60
|
|
|
59
61
|
& > .dropdown__caret {
|
|
60
62
|
@apply text-subtle;
|
|
63
|
+
@apply dark:text-dark-subtle;
|
|
61
64
|
}
|
|
62
65
|
}
|
|
63
66
|
}
|
|
@@ -6,6 +6,6 @@ interface Breadcrumb {
|
|
|
6
6
|
export interface BreadcrumbItems extends Breadcrumb {
|
|
7
7
|
subitem?: Breadcrumb[];
|
|
8
8
|
}
|
|
9
|
-
export
|
|
9
|
+
export type TagVariant = 'a' | 'span';
|
|
10
10
|
export declare function defineNavigation(navigation: BreadcrumbItems[]): BreadcrumbItems[];
|
|
11
11
|
export {};
|
|
@@ -11,8 +11,11 @@
|
|
|
11
11
|
<script>
|
|
12
12
|
import {
|
|
13
13
|
computed,
|
|
14
|
-
defineComponent
|
|
14
|
+
defineComponent,
|
|
15
|
+
inject
|
|
15
16
|
} from "vue-demi";
|
|
17
|
+
import { BUTTONGROUP_SETTING } from "../button-group";
|
|
18
|
+
import { INPUTGROUP_SETTING } from "../input-group";
|
|
16
19
|
export default defineComponent({
|
|
17
20
|
props: {
|
|
18
21
|
variant: {
|
|
@@ -41,13 +44,19 @@ export default defineComponent({
|
|
|
41
44
|
}
|
|
42
45
|
},
|
|
43
46
|
setup(props) {
|
|
47
|
+
const inputSetting = inject(INPUTGROUP_SETTING, void 0, false);
|
|
48
|
+
const buttonSetting = inject(BUTTONGROUP_SETTING, void 0, false);
|
|
44
49
|
const classNames = computed(() => {
|
|
45
50
|
const result = ["btn"];
|
|
46
51
|
if (props.color)
|
|
47
52
|
result.push(`btn--${props.color}`);
|
|
48
53
|
if (props.variant)
|
|
49
54
|
result.push(`btn--variant-${props.variant}`);
|
|
50
|
-
if (
|
|
55
|
+
if (inputSetting?.size.value)
|
|
56
|
+
result.push(`btn--${inputSetting?.size.value}`);
|
|
57
|
+
else if (buttonSetting?.size.value)
|
|
58
|
+
result.push(`btn--${buttonSetting?.size.value}`);
|
|
59
|
+
else if (props.size)
|
|
51
60
|
result.push(`btn--${props.size}`);
|
|
52
61
|
if (props.icon)
|
|
53
62
|
result.push("btn--icon");
|
|
@@ -74,14 +83,26 @@ export default defineComponent({
|
|
|
74
83
|
* Last Update : Nov 21, 2022
|
|
75
84
|
*/
|
|
76
85
|
.btn {
|
|
77
|
-
--p-color-primary-hover: darken(theme(
|
|
78
|
-
--p-color-primary-
|
|
86
|
+
--p-color-primary-hover: darken(theme(colors.brand.accent), 5%);
|
|
87
|
+
--p-color-dark-primary-hover: darken(theme(colors.dark.brand.accent), 5%);
|
|
88
|
+
--p-color-primary-focus: darken(theme(colors.brand.accent), 10%);
|
|
89
|
+
--p-color-dark-primary-focus: darken(theme(colors.dark.brand.accent), 10%);
|
|
90
|
+
--p-color-info-hover: darken(theme(backgroundColor.info.emphasis), 5%);
|
|
91
|
+
--p-color-dark-info-hover: darken(theme(backgroundColor.dark.info.emphasis), 5%);
|
|
92
|
+
--p-color-info-focus: darken(theme(backgroundColor.info.emphasis), 10%);
|
|
93
|
+
--p-color-dark-info-focus: darken(theme(backgroundColor.dark.info.emphasis), 10%);
|
|
79
94
|
--p-color-success-hover: darken(theme(backgroundColor.success.emphasis), 5%);
|
|
95
|
+
--p-color-dark-success-hover: darken(theme(backgroundColor.dark.success.emphasis), 5%);
|
|
80
96
|
--p-color-success-focus: darken(theme(backgroundColor.success.emphasis), 10%);
|
|
97
|
+
--p-color-dark-success-focus: darken(theme(backgroundColor.dark.success.emphasis), 10%);
|
|
81
98
|
--p-color-warning-hover: darken(theme(backgroundColor.warning.emphasis), 5%);
|
|
99
|
+
--p-color-dark-warning-hover: darken(theme(backgroundColor.dark.warning.emphasis), 5%);
|
|
82
100
|
--p-color-warning-focus: darken(theme(backgroundColor.warning.emphasis), 10%);
|
|
101
|
+
--p-color-dark-warning-focus: darken(theme(backgroundColor.dark.warning.emphasis), 10%);
|
|
83
102
|
--p-color-danger-hover: darken(theme(backgroundColor.danger.emphasis), 5%);
|
|
103
|
+
--p-color-dark-danger-hover: darken(theme(backgroundColor.dark.danger.emphasis), 5%);
|
|
84
104
|
--p-color-danger-focus: darken(theme(backgroundColor.danger.emphasis), 10%);
|
|
105
|
+
--p-color-dark-danger-focus: darken(theme(backgroundColor.dark.danger.emphasis), 10%);
|
|
85
106
|
|
|
86
107
|
@apply inline-flex align-middle font-medium disabled:opacity-50 disabled:pointer-events-none transition-all ease-in-out duration-200;
|
|
87
108
|
|
|
@@ -118,27 +139,38 @@ export default defineComponent({
|
|
|
118
139
|
* default style variant
|
|
119
140
|
*/
|
|
120
141
|
&&--variant-solid {
|
|
121
|
-
@apply border border-solid hover:shadow-lg focus:shadow-none active:shadow-none text-
|
|
142
|
+
@apply border border-solid hover:shadow-lg focus:shadow-none active:shadow-none text-state-emphasis;
|
|
143
|
+
@apply dark:text-dark-state-emphasis;
|
|
122
144
|
|
|
123
145
|
&.btn {
|
|
124
146
|
&--default {
|
|
125
147
|
@apply bg-default-alpha focus:bg-subtle-alpha active:bg-subtle-alpha text-subtle hover:text-default focus:text-default;
|
|
148
|
+
@apply dark:bg-dark-default-alpha focus:dark:bg-dark-subtle-alpha active:dark:bg-dark-subtle-alpha dark:text-dark-subtle hover:dark:text-dark-default focus:dark:text-dark-default;
|
|
126
149
|
}
|
|
127
150
|
|
|
128
151
|
&--primary {
|
|
129
|
-
@apply bg-accent
|
|
152
|
+
@apply bg-brand-accent hover:bg-[color:var(--p-color-primary-hover)] focus:bg-[color:var(--p-color-primary-focus)] active:bg-[color:var(--p-color-primary-focus)];
|
|
153
|
+
@apply dark:bg-dark-brand-accent hover:dark:bg-[color:var(--p-color-dark-primary-hover)] focus:dark:bg-[color:var(--p-color-dark-primary-focus)] active:dark:bg-[color:var(--p-color-dark-primary-focus)];
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
&--info {
|
|
157
|
+
@apply bg-info-emphasis hover:bg-[color:var(--p-color-info-hover)] focus:bg-[color:var(--p-color-info-focus)] active:bg-[color:var(--p-color-info-focus)];
|
|
158
|
+
@apply dark:bg-dark-info-emphasis hover:dark:bg-[color:var(--p-color-dark-info-hover)] focus:dark:bg-[color:var(--p-color-dark-info-focus)] active:dark:bg-[color:var(--p-color-dark-info-focus)];
|
|
130
159
|
}
|
|
131
160
|
|
|
132
161
|
&--success {
|
|
133
162
|
@apply bg-success-emphasis hover:bg-[color:var(--p-color-success-hover)] focus:bg-[color:var(--p-color-success-focus)] active:bg-[color:var(--p-color-success-focus)];
|
|
163
|
+
@apply dark:bg-dark-success-emphasis hover:dark:bg-[color:var(--p-color-dark-success-hover)] focus:dark:bg-[color:var(--p-color-dark-success-focus)] active:dark:bg-[color:var(--p-color-dark-success-focus)]
|
|
134
164
|
}
|
|
135
165
|
|
|
136
166
|
&--warning {
|
|
137
167
|
@apply bg-warning-emphasis hover:bg-[color:var(--p-color-warning-hover)] focus:bg-[color:var(--p-color-warning-focus)] active:bg-[color:var(--p-color-warning-focus)];
|
|
168
|
+
@apply dark:bg-dark-warning-emphasis hover:dark:bg-[color:var(--p-color-dark-warning-hover)] focus:dark:bg-[color:var(--p-color-dark-warning-focus)] active:dark:bg-[color:var(--p-color-dark-warning-focus)];
|
|
138
169
|
}
|
|
139
170
|
|
|
140
171
|
&--danger {
|
|
141
172
|
@apply bg-danger-emphasis hover:bg-[color:var(--p-color-danger-hover)] focus:bg-[color:var(--p-color-danger-focus)] active:bg-[color:var(--p-color-danger-focus)];
|
|
173
|
+
@apply dark:bg-dark-danger-emphasis hover:dark:bg-[color:var(--p-color-dark-danger-hover)] focus:dark:bg-[color:var(--p-color-dark-danger-focus)] active:dark:bg-[color:var(--p-color-dark-danger-focus)]
|
|
142
174
|
}
|
|
143
175
|
}
|
|
144
176
|
}
|
|
@@ -146,6 +178,7 @@ export default defineComponent({
|
|
|
146
178
|
&&--variant-outline,
|
|
147
179
|
&&--variant-ghost {
|
|
148
180
|
@apply border border-solid text-subtle hover:text-default hover:shadow-lg focus:shadow-none active:shadow-none focus:text-default active:text-default;
|
|
181
|
+
@apply dark:text-dark-subtle hover:dark:text-dark-default focus:dark:text-dark-default active:dark:text-dark-default;
|
|
149
182
|
}
|
|
150
183
|
|
|
151
184
|
/**
|
|
@@ -159,22 +192,32 @@ export default defineComponent({
|
|
|
159
192
|
&.btn {
|
|
160
193
|
&--default {
|
|
161
194
|
@apply border-default-alpha hover:border-subtle-alpha active:border-subtle-alpha focus:border-subtle-alpha;
|
|
195
|
+
@apply dark:border-dark-default-alpha hover:dark:border-dark-subtle-alpha active:dark:border-dark-subtle-alpha focus:dark:border-dark-subtle-alpha;
|
|
162
196
|
}
|
|
163
197
|
|
|
164
198
|
&--primary {
|
|
165
|
-
@apply border-accent
|
|
199
|
+
@apply border-brand-accent hover:border-[color:var(--p-color-primary-hover)] focus:border-[color:var(--p-color-primary-focus)] active:border-[color:var(--p-color-primary-focus)];
|
|
200
|
+
@apply dark:border-dark-brand-accent hover:dark:border-[color:var(--p-color-dark-primary-hover)] focus:dark:border-[color:var(--p-color-dark-primary-focus)] active:dark:border-[color:var(--p-color-dark-primary-focus)];
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
&--info {
|
|
204
|
+
@apply border-info-emphasis hover:border-[color:var(--p-color-info-hover)] focus:border-[color:var(--p-color-info-focus)] active:border-[color:var(--p-color-info-focus)];
|
|
205
|
+
@apply dark:border-dark-info-emphasis hover:dark:border-[color:var(--p-color-dark-info-hover)] focus:dark:border-[color:var(--p-color-dark-info-focus)] active:dark:border-[color:var(--p-color-dark-info-focus)];
|
|
166
206
|
}
|
|
167
207
|
|
|
168
208
|
&--success {
|
|
169
209
|
@apply border-success-emphasis hover:border-[color:var(--p-color-success-hover)] focus:border-[color:var(--p-color-success-focus)] active:border-[color:var(--p-color-success-focus)];
|
|
210
|
+
@apply dark:border-dark-success-emphasis hover:dark:border-[color:var(--p-color-dark-success-hover)] focus:dark:border-[color:var(--p-color-dark-success-focus)] active:dark:border-[color:var(--p-color-dark-success-fucus)];
|
|
170
211
|
}
|
|
171
212
|
|
|
172
213
|
&--warning {
|
|
173
214
|
@apply border-warning-emphasis hover:border-[color:var(--p-color-warning-hover)] focus:border-[color:var(--p-color-warning-focus)] active:border-[color:var(--p-color-warning-focus)];
|
|
215
|
+
@apply dark:border-dark-warning-emphasis hover:dark:border-[color:var(--p-color-dark-warning-hover)] focus:dark:border-[color:var(--p-color-dark-warning-focus)] active:dark:border-[color:var(--p-color-dark-warning-focus)]
|
|
174
216
|
}
|
|
175
217
|
|
|
176
218
|
&--danger {
|
|
177
219
|
@apply border-danger-emphasis hover:border-[color:var(--p-color-danger-hover)] focus:border-[color:var(--p-color-danger-focus)] active:border-[color:var(--p-color-danger-focus)];
|
|
220
|
+
@apply dark:border-dark-danger-emphasis hover:dark:border-[color:var(--p-color-dark-danger-hover)] focus:dark:border-[color:var(--p-color-dark-danger-focus)] active:dark:border-[color:var(--p-color-dark-danger-focus)];
|
|
178
221
|
}
|
|
179
222
|
}
|
|
180
223
|
}
|
|
@@ -183,7 +226,8 @@ export default defineComponent({
|
|
|
183
226
|
* Button ghost variant
|
|
184
227
|
*/
|
|
185
228
|
&&--variant-ghost {
|
|
186
|
-
@apply border-transparent bg-transparent hover:border-default-alpha hover:bg-default-alpha active:bg-default-alpha focus:bg-default-alpha active:border-default-alpha focus:border-default-alpha;
|
|
229
|
+
@apply border-transparent bg-transparent hover:border-default-alpha hover:bg-default-alpha active:bg-default-alpha focus:bg-default-alpha active:border-default-alpha focus:border-default-alpha ;
|
|
230
|
+
@apply dark:border-transparent dark:bg-transparent hover:dark:border-dark-default-alpha hover:dark:bg-dark-default-alpha active:dark:bg-dark-default-alpha focus:dark:bg-dark-default-alpha active:dark:border-dark-default-alpha focus:dark:border-dark-default-alpha;
|
|
187
231
|
}
|
|
188
232
|
|
|
189
233
|
/**
|
|
@@ -195,39 +239,53 @@ export default defineComponent({
|
|
|
195
239
|
|
|
196
240
|
&.btn {
|
|
197
241
|
&--default {
|
|
198
|
-
@apply text-subtle hover:text-default focus:text-default active:text-default;
|
|
242
|
+
@apply text-subtle hover:text-default focus:text-default active:text-default ;
|
|
243
|
+
@apply dark:text-dark-subtle hover:dark:text-dark-default focus:dark:text-dark-default active:dark:text-dark-default;
|
|
199
244
|
}
|
|
200
245
|
|
|
201
246
|
&--primary {
|
|
202
|
-
@apply text-accent hover:text-[color:var(--p-color-primary-hover)] focus:text-[color:var(--p-color-primary-focus)] active:text-[color:var(--p-color-primary-focus)];
|
|
247
|
+
@apply text-brand-accent hover:text-[color:var(--p-color-primary-hover)] focus:text-[color:var(--p-color-primary-focus)] active:text-[color:var(--p-color-primary-focus)];
|
|
248
|
+
@apply dark:text-dark-brand-accent hover:dark:text-[color:var(--p-color-dark-primary-hover)] focus:dark:text-[color:var(--p-color-dark-primary-focus)] active:dark:text-[color:var(--p-color-dark-primary-focus)];
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
&--info {
|
|
252
|
+
@apply text-info hover:text-[color:var(--p-color-info-hover)] focus:text-[color:var(--p-color-info-focus)] active:text-[color:var(--p-color-info-focus)];
|
|
253
|
+
@apply dark:text-dark-info hover:dark:text-[color:var(--p-color-dark-info-hover)] focus:dark:text-[color:var(--p-color-dark-info-focus)] active:dark:text-[color:var(--p-color-dark-info-focus)];
|
|
203
254
|
}
|
|
204
255
|
|
|
205
256
|
&--success {
|
|
206
257
|
@apply text-success hover:text-[color:var(--p-color-success-hover)] focus:text-[color:var(--p-color-success-focus)] active:text-[color:var(--p-color-success-focus)];
|
|
258
|
+
@apply dark:text-dark-success hover:dark:text-[color:var(--p-color-dark-success-hover)] focus:dark:text-[color:var(--p-color-dark-success-focus)] active:dark:text-[color:var(--p-color-dark-success-focus)];
|
|
207
259
|
}
|
|
208
260
|
|
|
209
261
|
&--warning {
|
|
210
262
|
@apply text-warning hover:text-[color:var(--p-color-warning-hover)] focus:text-[color:var(--p-color-warning-focus)] active:text-[color:var(--p-color-warning-focus)];
|
|
263
|
+
@apply dark:text-dark-warning hover:dark:text-[color:var(--p-color-dark-warning-hover)] focus:dark:text-[color:var(--p-color-dark-warning-focus)] active:dark:text-[color:var(--p-color-dark-warning-focus)];
|
|
211
264
|
}
|
|
212
265
|
|
|
213
266
|
&--danger {
|
|
214
267
|
@apply text-danger hover:text-[color:var(--p-color-danger-hover)] focus:text-[color:var(--p-color-danger-focus)] active:text-[color:var(--p-color-danger-focus)];
|
|
268
|
+
@apply dark:text-dark-danger hover:dark:text-[color:var(--p-color-dark-danger-hover)] focus:dark:text-[color:var(--p-color-dark-danger-focus)] active:dark:text-[color:var(--p-color-dark-danger-focus)];
|
|
215
269
|
}
|
|
216
270
|
}
|
|
217
271
|
}
|
|
218
272
|
|
|
219
273
|
&&--variant-input {
|
|
220
274
|
@apply border border-solid border-muted text-subtle font-normal bg-default hover:border-subtle focus:border-subtle active:outline-default;
|
|
275
|
+
@apply dark:border-dark-muted dark:text-dark-subtle dark:bg-dark-default hover:dark:border-dark-subtle focus:dark:border-dark-subtle active:dark:outline-dark-default;
|
|
221
276
|
|
|
222
277
|
.state--disabled & {
|
|
223
|
-
@apply bg-
|
|
278
|
+
@apply bg-subtle border-muted pointer-events-none text-muted;
|
|
279
|
+
@apply dark:bg-dark-subtle dark:border-dark-muted dark:text-dark-muted;
|
|
224
280
|
}
|
|
225
281
|
|
|
226
282
|
.state--error & {
|
|
227
283
|
@apply border-danger-emphasis;
|
|
284
|
+
@apply dark:border-dark-danger-emphasis;
|
|
228
285
|
|
|
229
286
|
&:focus {
|
|
230
287
|
@apply ring-danger border-danger-emphasis;
|
|
288
|
+
@apply dark:ring-dark-danger dark:border-dark-danger-emphasis;
|
|
231
289
|
}
|
|
232
290
|
}
|
|
233
291
|
}
|
|
@@ -23,7 +23,7 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
23
23
|
};
|
|
24
24
|
href: {
|
|
25
25
|
type: StringConstructor;
|
|
26
|
-
default:
|
|
26
|
+
default: undefined;
|
|
27
27
|
};
|
|
28
28
|
}, {
|
|
29
29
|
classNames: import("vue-demi").ComputedRef<string[]>;
|
|
@@ -51,14 +51,14 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
51
51
|
};
|
|
52
52
|
href: {
|
|
53
53
|
type: StringConstructor;
|
|
54
|
-
default:
|
|
54
|
+
default: undefined;
|
|
55
55
|
};
|
|
56
56
|
}>>, {
|
|
57
|
-
|
|
57
|
+
color: ColorVariant;
|
|
58
58
|
variant: StyleVariant;
|
|
59
59
|
size: SizeVariant;
|
|
60
|
-
color: ColorVariant;
|
|
61
60
|
href: string;
|
|
61
|
+
icon: boolean;
|
|
62
62
|
pill: boolean;
|
|
63
63
|
}>;
|
|
64
64
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
1
|
+
export type StyleVariant = 'solid' | 'outline' | 'ghost' | 'link' | 'input';
|
|
2
|
+
export type ColorVariant = 'default' | 'primary' | 'info' | 'success' | 'warning' | 'danger';
|
|
3
|
+
export type SizeVariant = 'xs' | 'sm' | 'md' | 'lg';
|
|
4
|
+
export type TagVariant = 'a' | 'button';
|