nuance-ui 0.2.18 → 0.2.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module.json +1 -1
- package/dist/runtime/components/center.d.vue.ts +18 -0
- package/dist/runtime/components/center.vue +26 -0
- package/dist/runtime/components/center.vue.d.ts +18 -0
- package/dist/runtime/components/dialog/index.d.ts +2 -0
- package/dist/runtime/components/dialog/ui/dialog-footer.d.vue.ts +16 -0
- package/dist/runtime/components/dialog/ui/dialog-footer.vue +16 -0
- package/dist/runtime/components/dialog/ui/dialog-footer.vue.d.ts +16 -0
- package/dist/runtime/components/dialog/ui/dialog-root.d.vue.ts +2 -2
- package/dist/runtime/components/dialog/ui/dialog-root.vue +9 -4
- package/dist/runtime/components/dialog/ui/dialog-root.vue.d.ts +2 -2
- package/dist/runtime/components/dialog/ui/dialog-section.d.vue.ts +17 -0
- package/dist/runtime/components/dialog/ui/dialog-section.vue +17 -0
- package/dist/runtime/components/dialog/ui/dialog-section.vue.d.ts +17 -0
- package/dist/runtime/components/dialog/ui/dialog.module.css +1 -1
- package/dist/runtime/components/drawer/drawer-footer.d.vue.ts +16 -0
- package/dist/runtime/components/drawer/drawer-footer.vue +13 -0
- package/dist/runtime/components/drawer/drawer-footer.vue.d.ts +16 -0
- package/dist/runtime/components/drawer/drawer-root.vue +1 -0
- package/dist/runtime/components/drawer/drawer-section.d.vue.ts +16 -0
- package/dist/runtime/components/drawer/drawer-section.vue +14 -0
- package/dist/runtime/components/drawer/drawer-section.vue.d.ts +16 -0
- package/dist/runtime/components/drawer/index.d.ts +2 -0
- package/dist/runtime/components/group.d.vue.ts +28 -0
- package/dist/runtime/components/group.vue +39 -0
- package/dist/runtime/components/group.vue.d.ts +28 -0
- package/dist/runtime/components/input/ui/input-base.d.vue.ts +1 -0
- package/dist/runtime/components/input/ui/input-base.vue +3 -2
- package/dist/runtime/components/input/ui/input-base.vue.d.ts +1 -0
- package/dist/runtime/components/modal/index.d.ts +0 -2
- package/dist/runtime/components/modal/modal-footer.d.vue.ts +14 -0
- package/dist/runtime/components/modal/modal-footer.vue +13 -0
- package/dist/runtime/components/modal/modal-footer.vue.d.ts +14 -0
- package/dist/runtime/components/modal/modal-header.d.vue.ts +1 -3
- package/dist/runtime/components/modal/modal-header.vue.d.ts +1 -3
- package/dist/runtime/components/modal/modal-root.d.vue.ts +1 -2
- package/dist/runtime/components/modal/modal-root.vue +3 -1
- package/dist/runtime/components/modal/modal-root.vue.d.ts +1 -2
- package/dist/runtime/components/modal/modal-section.d.vue.ts +14 -0
- package/dist/runtime/components/modal/modal-section.vue +14 -0
- package/dist/runtime/components/modal/modal-section.vue.d.ts +14 -0
- package/dist/runtime/components/modal/modal-title.d.vue.ts +1 -3
- package/dist/runtime/components/modal/modal-title.vue.d.ts +1 -3
- package/dist/runtime/components/pin-input/lib.d.ts +2 -0
- package/dist/runtime/components/pin-input/lib.js +19 -0
- package/dist/runtime/components/pin-input/pin-input.d.vue.ts +55 -0
- package/dist/runtime/components/pin-input/pin-input.vue +171 -0
- package/dist/runtime/components/pin-input/pin-input.vue.d.ts +55 -0
- package/dist/runtime/components/pin-input/use-pin-input.d.ts +18 -0
- package/dist/runtime/components/pin-input/use-pin-input.js +94 -0
- package/dist/runtime/components/stack.d.vue.ts +24 -0
- package/dist/runtime/components/stack.vue +33 -0
- package/dist/runtime/components/stack.vue.d.ts +24 -0
- package/dist/runtime/modals/_confirm-modal/confirm-modal.vue +16 -6
- package/dist/runtime/styles/const.css +1 -1
- package/dist/runtime/types/styling.d.ts +2 -1
- package/package.json +1 -1
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
import { ref } from "vue";
|
|
3
3
|
import Button from "../../components/button/button.vue";
|
|
4
4
|
import ModalCloseButton from "../../components/modal/modal-close-button.vue";
|
|
5
|
+
import ModalFooter from "../../components/modal/modal-footer.vue";
|
|
5
6
|
import ModalHeader from "../../components/modal/modal-header.vue";
|
|
6
7
|
import ModalRoot from "../../components/modal/modal-root.vue";
|
|
8
|
+
import ModalSection from "../../components/modal/modal-section.vue";
|
|
7
9
|
import Title from "../../components/title.vue";
|
|
8
10
|
import { useModal } from "../use-modal";
|
|
9
11
|
const {
|
|
@@ -53,11 +55,19 @@ async function hanleConfirm() {
|
|
|
53
55
|
<ModalCloseButton />
|
|
54
56
|
</ModalHeader>
|
|
55
57
|
|
|
56
|
-
<
|
|
57
|
-
|
|
58
|
-
|
|
58
|
+
<ModalSection bordered>
|
|
59
|
+
<p v-if='body' :class='$style.body'>
|
|
60
|
+
{{ body }}
|
|
61
|
+
</p>
|
|
62
|
+
</ModalSection>
|
|
59
63
|
|
|
60
|
-
<
|
|
64
|
+
<ModalSection bordered>
|
|
65
|
+
<p v-if='body' :class='$style.body'>
|
|
66
|
+
{{ body }}
|
|
67
|
+
</p>
|
|
68
|
+
</ModalSection>
|
|
69
|
+
|
|
70
|
+
<ModalFooter :class='$style.footer'>
|
|
61
71
|
<Button
|
|
62
72
|
variant='default'
|
|
63
73
|
v-bind='cancelProps'
|
|
@@ -74,10 +84,10 @@ async function hanleConfirm() {
|
|
|
74
84
|
>
|
|
75
85
|
{{ labels?.confirm ?? "Confirm" }}
|
|
76
86
|
</Button>
|
|
77
|
-
</
|
|
87
|
+
</ModalFooter>
|
|
78
88
|
</ModalRoot>
|
|
79
89
|
</template>
|
|
80
90
|
|
|
81
91
|
<style module>
|
|
82
|
-
.body{color:var(--color-dimmed);margin:0}.footer{display:flex;gap:var(--spacing-sm);justify-content:flex-end
|
|
92
|
+
.body{color:var(--color-dimmed);margin:0}.footer{display:flex;gap:var(--spacing-sm);justify-content:flex-end}
|
|
83
93
|
</style>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--mantine-scale:1;--font-family:Inter
|
|
1
|
+
:root{--mantine-scale:1;--font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";--font-family-headings:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;--font-family-mono:"JetBrains Mono","JetBrainsMono Nerd Font","SF Mono",Menlo,Consolas,monospace;--heading-text-wrap:wrap;--font-size-xs:.75rem;--font-size-sm:.875rem;--font-size-md:1rem;--font-size-lg:1.125rem;--font-size-xl:1.25rem;--font-size-h1:2.125rem;--line-height-h1:1.3;--font-weight-h1:700;--font-size-h2:1.625rem;--line-height-h2:1.35;--font-weight-h2:700;--font-size-h3:1.375rem;--line-height-h3:1.4;--font-weight-h3:700;--font-size-h4:1.125rem;--line-height-h4:1.45;--font-weight-h4:700;--font-size-h5:1rem;--line-height-h5:1.5;--font-weight-h5:600;--font-size-h6:0.875rem;--line-height-h6:1.5;--font-weight-h6:600;--spacing-2xs:0.25rem;--spacing-xs:0.5rem;--spacing-sm:0.75rem;--spacing-md:1rem;--spacing-lg:1.25rem;--spacing-xl:2rem;--spacing-2xl:3rem;--radius-xs:0.125rem;--radius-sm:0.25rem;--radius-md:0.5rem;--radius-lg:1rem;--radius-xl:2rem;--radius-default:var(--radius-sm);--line-height:1.55;--line-height-xs:1.4;--line-height-sm:1.45;--line-height-md:1.55;--line-height-lg:1.6;--line-height-xl:1.65;--shadow-xs:0 0.0625rem 0.1875rem rgba(0,0,0,.05),0 0.0625rem 0.125rem rgba(0,0,0,.1);--shadow-sm:0 0.0625rem 0.1875rem rgba(0,0,0,.05),rgba(0,0,0,.05) 0 0.625rem 0.9375rem -0.3125rem,rgba(0,0,0,.04) 0 0.4375rem 0.4375rem -0.3125rem;--shadow-md:0 0.0625rem 0.1875rem rgba(0,0,0,.05),rgba(0,0,0,.05) 0 1.25rem 1.5625rem -0.3125rem,rgba(0,0,0,.04) 0 0.625rem 0.625rem -0.3125rem;--shadow-lg:0 0.0625rem 0.1875rem rgba(0,0,0,.05),rgba(0,0,0,.05) 0 1.75rem 1.4375rem -0.4375rem,rgba(0,0,0,.04) 0 0.75rem 0.75rem -0.4375rem;--shadow-xl:0 0.0625rem 0.1875rem rgba(0,0,0,.05),rgba(0,0,0,.05) 0 2.25rem 1.75rem -0.4375rem,rgba(0,0,0,.04) 0 1.0625rem 1.0625rem -0.4375rem;--breakpoint-xs:36em;--breakpoint-sm:48em;--breakpoint-md:62em;--breakpoint-lg:75em;--breakpoint-xl:88em}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'vue';
|
|
1
2
|
export type CssVariable = `--${string}`;
|
|
2
3
|
export type TransformVars<V> = {
|
|
3
4
|
[Key in keyof V]: V[Key] extends CssVariable ? Record<V[Key], string | number | undefined> : never;
|
|
4
5
|
};
|
|
5
6
|
/** Map of component part names to user-provided class names. */
|
|
6
|
-
export type Classes<Key extends string
|
|
7
|
+
export type Classes<Key extends string> = Partial<Record<Key, HTMLAttributes['class']>>;
|