nuance-ui 0.2.22 → 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 +1 -1
- package/dist/runtime/components/dialog/ui/dialog.module.css +1 -1
- package/dist/runtime/components/drawer/drawer-root.d.vue.ts +1 -1
- package/dist/runtime/components/drawer/drawer-root.vue +2 -1
- package/dist/runtime/components/drawer/drawer-root.vue.d.ts +1 -1
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.root{--dialog-size-xs:rem(320px);--dialog-size-sm:rem(380px);--dialog-size-md:rem(440px);--dialog-size-lg:rem(620px);--dialog-size-xl:rem(780px);--dialog-size:var(--dialog-size-md);--dialog-y-offset:0;--dialog-x-offset:0;--dialog-shadow:var(--shadow-md);--dialog-radius:var(--radius-md);--dialog-padding:var(--spacing-
|
|
1
|
+
.root{--dialog-size-xs:rem(320px);--dialog-size-sm:rem(380px);--dialog-size-md:rem(440px);--dialog-size-lg:rem(620px);--dialog-size-xl:rem(780px);--dialog-size:var(--dialog-size-md);--dialog-y-offset:0;--dialog-x-offset:0;--dialog-shadow:var(--shadow-md);--dialog-radius:var(--radius-md);--dialog-padding:var(--spacing-lg);--dialog-bd-c:var(--color-gray-4);--overlay-bg:rgba(0,0,0,.4);--overlay-filter:blur(.1rem);background:none;border:none;box-shadow:var(--dialog-shadow);display:grid;left:var(--dialog-x-offset);max-height:100%;max-width:100%;min-height:0;opacity:0;overflow:hidden;padding:0;top:var(--dialog-y-offset);transition:opacity .3s ease,overlay allow-discrete .3s ease,display allow-discrete .3s ease;width:var(--dialog-size);z-index:2}.root::backdrop{backdrop-filter:var(--overlay-filter);background:var(--overlay-bg,rgba(0,0,0,.6));opacity:0;transition:opacity .3s ease,overlay allow-discrete .3s ease,display allow-discrete .3s ease}.root[open]{opacity:1}@starting-style{.root[open]{opacity:0}}.root[open]::backdrop{opacity:1}@starting-style{.root[open]::backdrop{opacity:0}}.root:not([open]){opacity:0;pointer-events:none}.root:not([open])::backdrop{opacity:0}.root[data-without-overlay]::backdrop{display:none}.content{background-color:var(--color-body);border-radius:var(--dialog-radius);color:var(--color-text);height:100%;min-height:0;width:100%}.footer,.header{padding:calc(var(--dialog-padding)/1.5) var(--dialog-padding)}.header{align-items:center;border-bottom:1px solid var(--dialog-bd-c);display:flex;justify-content:space-between}.section{padding:var(--dialog-padding)}.footer,.section[data-bordered=true]:not(:first-of-type){border-top:1px solid var(--dialog-bd-c)}.title{font-weight:400}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DialogModel, DialogRootProps } from '../dialog/index.js';
|
|
2
|
-
type OmittedDialogRootProps = Omit<DialogRootProps, '
|
|
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, '
|
|
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';
|