nuance-ui 0.2.23 → 0.2.24

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 CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^4.0.0"
6
6
  },
7
- "version": "0.2.23",
7
+ "version": "0.2.24",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
10
  "unbuild": "3.6.1"
@@ -1,5 +1,5 @@
1
1
  import type { DialogModel, DialogRootProps } from '../dialog/index.js';
2
- type OmittedDialogRootProps = Omit<DialogRootProps, 'rootClass' | 'transition'>;
2
+ type OmittedDialogRootProps = Omit<DialogRootProps, 'transition'>;
3
3
  export interface DrawerRootProps extends OmittedDialogRootProps {
4
4
  /** Side of the screen on which drawer will be opened @default `'left'` */
5
5
  position?: 'bottom' | 'left' | 'right' | 'top';
@@ -8,6 +8,7 @@ const {
8
8
  withinPortal = false,
9
9
  closeOnClickOutside = true,
10
10
  mod,
11
+ classes,
11
12
  ...rest
12
13
  } = defineProps({
13
14
  position: { type: String, required: false },
@@ -45,12 +46,12 @@ const transition = computed(() => {
45
46
  <DialogRoot
46
47
  v-model:open='opened'
47
48
  :mod='[{ position }, mod]'
48
- :root-class='css.root'
49
49
  :class='css.content'
50
50
  :within-portal
51
51
  :without-overlay
52
52
  :close-on-click-outside
53
53
  :transition
54
+ :classes='{ ...classes, root: [css.root, classes?.root] }'
54
55
  v-bind='rest'
55
56
  @open='$emit("open")'
56
57
  @close='$emit("close")'
@@ -1,5 +1,5 @@
1
1
  import type { DialogModel, DialogRootProps } from '../dialog/index.js';
2
- type OmittedDialogRootProps = Omit<DialogRootProps, 'rootClass' | 'transition'>;
2
+ type OmittedDialogRootProps = Omit<DialogRootProps, 'transition'>;
3
3
  export interface DrawerRootProps extends OmittedDialogRootProps {
4
4
  /** Side of the screen on which drawer will be opened @default `'left'` */
5
5
  position?: 'bottom' | 'left' | 'right' | 'top';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuance-ui",
3
- "version": "0.2.23",
3
+ "version": "0.2.24",
4
4
  "description": "A modern Vue UI library inspired by the best of the React ecosystem.",
5
5
  "repository": {
6
6
  "type": "git",