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.
Files changed (57) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/center.d.vue.ts +18 -0
  3. package/dist/runtime/components/center.vue +26 -0
  4. package/dist/runtime/components/center.vue.d.ts +18 -0
  5. package/dist/runtime/components/dialog/index.d.ts +2 -0
  6. package/dist/runtime/components/dialog/ui/dialog-footer.d.vue.ts +16 -0
  7. package/dist/runtime/components/dialog/ui/dialog-footer.vue +16 -0
  8. package/dist/runtime/components/dialog/ui/dialog-footer.vue.d.ts +16 -0
  9. package/dist/runtime/components/dialog/ui/dialog-root.d.vue.ts +2 -2
  10. package/dist/runtime/components/dialog/ui/dialog-root.vue +9 -4
  11. package/dist/runtime/components/dialog/ui/dialog-root.vue.d.ts +2 -2
  12. package/dist/runtime/components/dialog/ui/dialog-section.d.vue.ts +17 -0
  13. package/dist/runtime/components/dialog/ui/dialog-section.vue +17 -0
  14. package/dist/runtime/components/dialog/ui/dialog-section.vue.d.ts +17 -0
  15. package/dist/runtime/components/dialog/ui/dialog.module.css +1 -1
  16. package/dist/runtime/components/drawer/drawer-footer.d.vue.ts +16 -0
  17. package/dist/runtime/components/drawer/drawer-footer.vue +13 -0
  18. package/dist/runtime/components/drawer/drawer-footer.vue.d.ts +16 -0
  19. package/dist/runtime/components/drawer/drawer-root.vue +1 -0
  20. package/dist/runtime/components/drawer/drawer-section.d.vue.ts +16 -0
  21. package/dist/runtime/components/drawer/drawer-section.vue +14 -0
  22. package/dist/runtime/components/drawer/drawer-section.vue.d.ts +16 -0
  23. package/dist/runtime/components/drawer/index.d.ts +2 -0
  24. package/dist/runtime/components/group.d.vue.ts +28 -0
  25. package/dist/runtime/components/group.vue +39 -0
  26. package/dist/runtime/components/group.vue.d.ts +28 -0
  27. package/dist/runtime/components/input/ui/input-base.d.vue.ts +1 -0
  28. package/dist/runtime/components/input/ui/input-base.vue +3 -2
  29. package/dist/runtime/components/input/ui/input-base.vue.d.ts +1 -0
  30. package/dist/runtime/components/modal/index.d.ts +0 -2
  31. package/dist/runtime/components/modal/modal-footer.d.vue.ts +14 -0
  32. package/dist/runtime/components/modal/modal-footer.vue +13 -0
  33. package/dist/runtime/components/modal/modal-footer.vue.d.ts +14 -0
  34. package/dist/runtime/components/modal/modal-header.d.vue.ts +1 -3
  35. package/dist/runtime/components/modal/modal-header.vue.d.ts +1 -3
  36. package/dist/runtime/components/modal/modal-root.d.vue.ts +1 -2
  37. package/dist/runtime/components/modal/modal-root.vue +3 -1
  38. package/dist/runtime/components/modal/modal-root.vue.d.ts +1 -2
  39. package/dist/runtime/components/modal/modal-section.d.vue.ts +14 -0
  40. package/dist/runtime/components/modal/modal-section.vue +14 -0
  41. package/dist/runtime/components/modal/modal-section.vue.d.ts +14 -0
  42. package/dist/runtime/components/modal/modal-title.d.vue.ts +1 -3
  43. package/dist/runtime/components/modal/modal-title.vue.d.ts +1 -3
  44. package/dist/runtime/components/pin-input/lib.d.ts +2 -0
  45. package/dist/runtime/components/pin-input/lib.js +19 -0
  46. package/dist/runtime/components/pin-input/pin-input.d.vue.ts +55 -0
  47. package/dist/runtime/components/pin-input/pin-input.vue +171 -0
  48. package/dist/runtime/components/pin-input/pin-input.vue.d.ts +55 -0
  49. package/dist/runtime/components/pin-input/use-pin-input.d.ts +18 -0
  50. package/dist/runtime/components/pin-input/use-pin-input.js +94 -0
  51. package/dist/runtime/components/stack.d.vue.ts +24 -0
  52. package/dist/runtime/components/stack.vue +33 -0
  53. package/dist/runtime/components/stack.vue.d.ts +24 -0
  54. package/dist/runtime/modals/_confirm-modal/confirm-modal.vue +16 -6
  55. package/dist/runtime/styles/const.css +1 -1
  56. package/dist/runtime/types/styling.d.ts +2 -1
  57. 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
- <p v-if='body' :class='$style.body'>
57
- {{ body }}
58
- </p>
58
+ <ModalSection bordered>
59
+ <p v-if='body' :class='$style.body'>
60
+ {{ body }}
61
+ </p>
62
+ </ModalSection>
59
63
 
60
- <footer :class='$style.footer'>
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
- </footer>
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;margin-top:var(--spacing-md)}
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,Roboto,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";--font-family-headings:Inter,Roboto,-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;--font-family-mono:ui-monospace,"JetBrains Mono",SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,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:700;--font-size-h6:0.875rem;--line-height-h6:1.5;--font-weight-h6:700;--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
+ :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, Value = string | string[]> = Partial<Record<Key, Value>>;
7
+ export type Classes<Key extends string> = Partial<Record<Key, HTMLAttributes['class']>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuance-ui",
3
- "version": "0.2.18",
3
+ "version": "0.2.20",
4
4
  "description": "A modern Vue UI library inspired by the best of the React ecosystem.",
5
5
  "repository": {
6
6
  "type": "git",