codexly-ui 0.10.43 → 0.10.45
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/codexly-ui.mjs
CHANGED
|
@@ -215,7 +215,7 @@ const BUTTON_SIZE_MAP = {
|
|
|
215
215
|
xs: 'text-xs px-2 py-1 gap-1',
|
|
216
216
|
sm: 'text-xs px-3 py-1.5 gap-1.5',
|
|
217
217
|
md: 'text-sm px-4 py-2 gap-2',
|
|
218
|
-
lg: 'text-
|
|
218
|
+
lg: 'text-base px-5 py-2.5 gap-2.5',
|
|
219
219
|
};
|
|
220
220
|
const BUTTON_SHAPE_FIXED = {
|
|
221
221
|
pill: 'rounded-full',
|
|
@@ -16092,7 +16092,7 @@ class ClxDrawerService {
|
|
|
16092
16092
|
open(
|
|
16093
16093
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
16094
16094
|
component, config = {}) {
|
|
16095
|
-
const { hasBackdrop = false, disableClose = false, size = 'md', data, } = config;
|
|
16095
|
+
const { hasBackdrop = false, disableClose = false, size = 'md', position = 'right', data, } = config;
|
|
16096
16096
|
let _resolve;
|
|
16097
16097
|
const _afterClosed = new Promise(res => (_resolve = res));
|
|
16098
16098
|
let _closing = false;
|
|
@@ -16114,16 +16114,18 @@ class ClxDrawerService {
|
|
|
16114
16114
|
backdropClass: 'clx-modal-backdrop',
|
|
16115
16115
|
containerStyle: {
|
|
16116
16116
|
alignItems: 'flex-start',
|
|
16117
|
-
justifyContent: 'flex-end',
|
|
16117
|
+
justifyContent: position === 'left' ? 'flex-start' : 'flex-end',
|
|
16118
16118
|
padding: '0',
|
|
16119
16119
|
},
|
|
16120
16120
|
});
|
|
16121
16121
|
const panelEl = compRef.location.nativeElement;
|
|
16122
16122
|
panelEl.style.height = '100vh';
|
|
16123
16123
|
panelEl.style.pointerEvents = 'auto';
|
|
16124
|
-
|
|
16124
|
+
const inAnim = position === 'left' ? 'fadeInLeft' : 'fadeInRight';
|
|
16125
|
+
const outAnim = position === 'left' ? 'fadeOutLeft' : 'fadeOutRight';
|
|
16126
|
+
// Slide in from the configured edge
|
|
16125
16127
|
this._animate.animate(panelEl, {
|
|
16126
|
-
animation:
|
|
16128
|
+
animation: inAnim,
|
|
16127
16129
|
duration: 300,
|
|
16128
16130
|
trigger: 'manual',
|
|
16129
16131
|
});
|
|
@@ -16132,7 +16134,7 @@ class ClxDrawerService {
|
|
|
16132
16134
|
return;
|
|
16133
16135
|
_closing = true;
|
|
16134
16136
|
this._animate.animate(panelEl, {
|
|
16135
|
-
animation:
|
|
16137
|
+
animation: outAnim,
|
|
16136
16138
|
duration: 300,
|
|
16137
16139
|
trigger: 'manual',
|
|
16138
16140
|
fillMode: 'forwards',
|