@cal.macconnachie/web-components 2.3.1 → 2.4.1

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 (3) hide show
  1. package/dist/index.d.ts +9 -1
  2. package/dist/index.js +2831 -2733
  3. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -203,6 +203,8 @@ export declare class BaseDateTimePicker extends BaseElement {
203
203
  export declare class BaseDrawer extends BaseElement {
204
204
  open: boolean;
205
205
  size: 'sm' | 'md' | 'lg';
206
+ detents: number[];
207
+ persistOnOverlayClick: boolean;
206
208
  private isClosing;
207
209
  private isVisible;
208
210
  private isDragging;
@@ -210,8 +212,10 @@ export declare class BaseDrawer extends BaseElement {
210
212
  private dragCurrentY;
211
213
  private dragStartTime;
212
214
  private lastDragEndTime;
215
+ private currentDetentIndex;
216
+ private dragCommitted;
213
217
  private modalContainer?;
214
- private modalBody?;
218
+ private drawerContent?;
215
219
  private transitionDuration;
216
220
  private boundKeyHandler;
217
221
  connectedCallback(): void;
@@ -222,6 +226,9 @@ export declare class BaseDrawer extends BaseElement {
222
226
  private unlockBodyScroll;
223
227
  private cleanupInlineStyles;
224
228
  private resetState;
229
+ private getActiveDetents;
230
+ private isClosable;
231
+ private getCurrentDetentHeight;
225
232
  private handleClose;
226
233
  private handleOverlayClick;
227
234
  private handleDragStart;
@@ -230,6 +237,7 @@ export declare class BaseDrawer extends BaseElement {
230
237
  private handleHandleClick;
231
238
  closeDrawer(): void;
232
239
  openDrawer(): void;
240
+ setDetent(index: number, animated?: boolean): void;
233
241
  render(): TemplateResult<1> | typeof nothing;
234
242
  static styles: CSSResult;
235
243
  }