@sonny-ui/core 0.1.0-alpha.20 → 0.1.0-alpha.22
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/fesm2022/sonny-ui-core.mjs +6 -6
- package/fesm2022/sonny-ui-core.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/drawer/drawer.directives.ts +1 -1
- package/src/lib/modal/dialog.directives.ts +4 -4
- package/src/lib/navbar/navbar.directives.ts +1 -1
- package/src/styles/sonny-theme.css +12 -0
package/package.json
CHANGED
|
@@ -70,7 +70,7 @@ export class SnyDrawerSideDirective {
|
|
|
70
70
|
protected readonly computedClass = computed(() => {
|
|
71
71
|
const isOpen = this.drawer.isOpen();
|
|
72
72
|
const s = this.side();
|
|
73
|
-
const base = 'fixed inset-y-0 z-
|
|
73
|
+
const base = 'fixed inset-y-0 z-50 w-64 bg-background border-r border-border transition-transform duration-300 ease-in-out overflow-y-auto';
|
|
74
74
|
const sideClass = s === 'left' ? 'left-0' : 'right-0 border-l border-r-0';
|
|
75
75
|
const transformClass = isOpen
|
|
76
76
|
? 'translate-x-0'
|
|
@@ -9,7 +9,7 @@ import { cn } from '../core/utils/cn';
|
|
|
9
9
|
export class SnyDialogHeaderDirective {
|
|
10
10
|
readonly class = input<string>('');
|
|
11
11
|
protected readonly computedClass = computed(() =>
|
|
12
|
-
cn('flex flex-col space-y-1.5 text-center sm:text-left', this.class())
|
|
12
|
+
cn('flex flex-col space-y-1.5 text-center sm:text-left px-6 pt-6 shrink-0', this.class())
|
|
13
13
|
);
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -43,7 +43,7 @@ export class SnyDialogContentDirective {
|
|
|
43
43
|
readonly class = input<string>('');
|
|
44
44
|
protected readonly computedClass = computed(() =>
|
|
45
45
|
cn(
|
|
46
|
-
'
|
|
46
|
+
'flex-1 overflow-y-auto px-6 py-4',
|
|
47
47
|
this.class()
|
|
48
48
|
)
|
|
49
49
|
);
|
|
@@ -56,7 +56,7 @@ export class SnyDialogContentDirective {
|
|
|
56
56
|
export class SnyDialogFooterDirective {
|
|
57
57
|
readonly class = input<string>('');
|
|
58
58
|
protected readonly computedClass = computed(() =>
|
|
59
|
-
cn('flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2', this.class())
|
|
59
|
+
cn('flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2 px-6 pb-6 shrink-0', this.class())
|
|
60
60
|
);
|
|
61
61
|
}
|
|
62
62
|
|
|
@@ -71,7 +71,7 @@ export class SnyDialogCloseDirective {
|
|
|
71
71
|
readonly class = input<string>('');
|
|
72
72
|
protected readonly computedClass = computed(() =>
|
|
73
73
|
cn(
|
|
74
|
-
'absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none',
|
|
74
|
+
'absolute right-4 top-4 z-10 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none cursor-pointer',
|
|
75
75
|
this.class()
|
|
76
76
|
)
|
|
77
77
|
);
|
|
@@ -24,7 +24,7 @@ export class SnyNavbarDirective {
|
|
|
24
24
|
v === 'bordered' ? 'border-b border-border' :
|
|
25
25
|
v === 'floating' ? 'mx-4 mt-2 rounded-lg border border-border shadow-sm' :
|
|
26
26
|
'';
|
|
27
|
-
const stickyClass = this.sticky() ? 'sticky top-0 z-
|
|
27
|
+
const stickyClass = this.sticky() ? 'sticky top-0 z-40' : '';
|
|
28
28
|
return cn(base, variantClass, stickyClass, this.class());
|
|
29
29
|
});
|
|
30
30
|
}
|
|
@@ -125,6 +125,18 @@
|
|
|
125
125
|
background-color: rgba(0, 0, 0, 0.5) !important;
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
+
.sny-dialog-panel {
|
|
129
|
+
position: relative;
|
|
130
|
+
background-color: var(--sny-background);
|
|
131
|
+
border: 1px solid var(--sny-border);
|
|
132
|
+
border-radius: 0.5rem;
|
|
133
|
+
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
|
|
134
|
+
max-height: 85vh;
|
|
135
|
+
display: flex;
|
|
136
|
+
flex-direction: column;
|
|
137
|
+
overflow: hidden;
|
|
138
|
+
}
|
|
139
|
+
|
|
128
140
|
/* Sheet panel — styling only; positioning handled by CDK GlobalPositionStrategy */
|
|
129
141
|
.sny-sheet-panel {
|
|
130
142
|
background-color: var(--sny-background);
|