@movable/ui 2.13.1 → 2.13.3

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.
@@ -4,6 +4,7 @@ type InkChipPropType = {
4
4
  chipProps: ChipProps;
5
5
  size?: 'small' | 'medium';
6
6
  expandOnHover?: boolean;
7
+ truncation?: 'end' | 'middle';
7
8
  };
8
- export declare function InkChip({ maxWidth, chipProps, size, expandOnHover, }: InkChipPropType): import("react/jsx-runtime").JSX.Element;
9
+ export declare function InkChip({ maxWidth, chipProps, size, expandOnHover, truncation, }: InkChipPropType): import("react/jsx-runtime").JSX.Element;
9
10
  export {};
package/lib/index.d.ts CHANGED
@@ -182,6 +182,25 @@ declare type InkAttributeProps = ListItemTextProps & {
182
182
 
183
183
  export declare const InkCheckboxGroup: ForwardRefExoticComponent<InkCheckboxGroupProps & RefAttributes<HTMLDivElement>>;
184
184
 
185
+ export declare class inkCheckboxGroup {
186
+ baseAttr: string;
187
+ name: string;
188
+ static create(name: string): inkCheckboxGroup;
189
+ constructor(name: string);
190
+ get element(): Cypress.Chainable<JQuery<HTMLElement>>;
191
+ get label(): Cypress.Chainable<JQuery<HTMLElement>>;
192
+ get required(): Cypress.Chainable<JQuery<HTMLElement>>;
193
+ get error(): Cypress.Chainable<JQuery<HTMLElement>>;
194
+ get stack(): Cypress.Chainable<JQuery<HTMLElement>>;
195
+ isHorizontal(): Cypress.Chainable<JQuery<HTMLElement>>;
196
+ isVertical(): Cypress.Chainable<JQuery<HTMLElement>>;
197
+ get options(): Cypress.Chainable<JQuery<HTMLElement>>;
198
+ getCheckbox(value: string): Cypress.Chainable<JQuery<HTMLElement>>;
199
+ isChecked(value: string): Cypress.Chainable<JQuery<HTMLInputElement>>;
200
+ notChecked(value: string): Cypress.Chainable<JQuery<HTMLInputElement>>;
201
+ get helperText(): Cypress.Chainable<JQuery<HTMLElement>>;
202
+ }
203
+
185
204
  export declare type InkCheckboxGroupProps = {
186
205
  options: {
187
206
  value: string;
@@ -199,7 +218,7 @@ export declare type InkCheckboxGroupProps = {
199
218
  helperText?: string;
200
219
  };
201
220
 
202
- export declare function InkChip({ maxWidth, chipProps, size, expandOnHover, }: InkChipPropType): JSX_2.Element;
221
+ export declare function InkChip({ maxWidth, chipProps, size, expandOnHover, truncation, }: InkChipPropType): JSX_2.Element;
203
222
 
204
223
  export declare function InkChipGroup({ chipList, numTagsToDisplay, size, maxChipWidth, }: InkChipGroupProps): JSX_2.Element;
205
224
 
@@ -215,6 +234,7 @@ declare type InkChipPropType = {
215
234
  chipProps: ChipProps;
216
235
  size?: 'small' | 'medium';
217
236
  expandOnHover?: boolean;
237
+ truncation?: 'end' | 'middle';
218
238
  };
219
239
 
220
240
  export declare function InkDialog({ Title, Content, Actions, onClose, hideCloseButton, ActionsProp, ...props }: InkDialogProps): JSX_2.Element;
@@ -327,6 +347,26 @@ export declare function InkPersistentFilterDrawer({ isOpen, handleDrawerClose, c
327
347
 
328
348
  export declare const InkRadioGroup: ForwardRefExoticComponent<InkRadioGroupProps & RefAttributes<HTMLDivElement>>;
329
349
 
350
+ export declare class inkRadioGroup {
351
+ baseAttr: string;
352
+ radioGroupDirectionClass: string;
353
+ name: string;
354
+ static create(name: string): inkRadioGroup;
355
+ constructor(name: string);
356
+ get element(): Cypress.Chainable<JQuery<HTMLElement>>;
357
+ get label(): Cypress.Chainable<JQuery<HTMLElement>>;
358
+ get required(): Cypress.Chainable<JQuery<HTMLElement>>;
359
+ get error(): Cypress.Chainable<JQuery<HTMLElement>>;
360
+ get radioGroup(): Cypress.Chainable<JQuery<HTMLElement>>;
361
+ isHorizontal(): Cypress.Chainable<JQuery<HTMLElement>>;
362
+ isVertical(): Cypress.Chainable<JQuery<HTMLElement>>;
363
+ get options(): Cypress.Chainable<JQuery<HTMLElement>>;
364
+ getRadio(value: string): Cypress.Chainable<JQuery<HTMLElement>>;
365
+ isChecked(value: string): Cypress.Chainable<JQuery<HTMLInputElement>>;
366
+ notChecked(value: string): Cypress.Chainable<JQuery<HTMLInputElement>>;
367
+ get helperText(): Cypress.Chainable<JQuery<HTMLElement>>;
368
+ }
369
+
330
370
  export declare type InkRadioGroupProps = {
331
371
  formLabel: string;
332
372
  currentValue: string;
@@ -396,6 +436,18 @@ declare type InkSnackbarActionButtonProps = ButtonProps_2 & {
396
436
 
397
437
  export declare const InkSnackbarAlert: ({ action, severity, alertProps, message, onClose, title, }: InkSnackbarAlertProps) => JSX_2.Element;
398
438
 
439
+ export declare const inkSnackbarAlert: InkSnackbarAlertPageObject;
440
+
441
+ declare class InkSnackbarAlertPageObject {
442
+ get title(): Cypress.Chainable<JQuery<HTMLElement>>;
443
+ get message(): Cypress.Chainable<JQuery<HTMLElement>>;
444
+ get action(): Cypress.Chainable<JQuery<HTMLElement>>;
445
+ actionButton(label: string): Cypress.Chainable<JQuery<HTMLElement>>;
446
+ get actionClose(): Cypress.Chainable<JQuery<HTMLElement>>;
447
+ get snackbarAlerts(): Cypress.Chainable<JQuery<HTMLElement>>;
448
+ snackbarAlertType(type: InkSnackbarAlertProps['severity']): Cypress.Chainable<JQuery<HTMLElement>>;
449
+ }
450
+
399
451
  export declare type InkSnackbarAlertProps = {
400
452
  message: InkSnackbarContentProps['message'];
401
453
  severity: VariantType_2;
@@ -418,6 +470,24 @@ export declare const InkSnackbarProvider: ({ children, maxSnack, anchorOrigin, .
418
470
 
419
471
  export declare const InkSwitch: ForwardRefExoticComponent<Omit<InkSwitchProps, "ref"> & RefAttributes<HTMLDivElement>>;
420
472
 
473
+ export declare class InkSwitchPageObject {
474
+ baseAttr: string;
475
+ disabledClass: string;
476
+ checkedClass: string;
477
+ requiredClass: string;
478
+ name: string;
479
+ static create(name: string): InkSwitchPageObject;
480
+ constructor(name: string);
481
+ get element(): Cypress.Chainable<JQuery<HTMLElement>>;
482
+ get label(): Cypress.Chainable<JQuery<HTMLElement>>;
483
+ isRequired(): Cypress.Chainable<JQuery<HTMLElement>>;
484
+ notRequired(): Cypress.Chainable<JQuery<HTMLElement>>;
485
+ isDisabled(): Cypress.Chainable<JQuery<HTMLElement>>;
486
+ notDisabled(): Cypress.Chainable<JQuery<HTMLElement>>;
487
+ isChecked(): Cypress.Chainable<JQuery<HTMLElement>>;
488
+ notChecked(): Cypress.Chainable<JQuery<HTMLElement>>;
489
+ }
490
+
421
491
  export declare type InkSwitchProps = {
422
492
  id: string;
423
493
  formLabel?: FormControlLabelProps['label'];
@@ -433,6 +503,30 @@ name: string;
433
503
  name: string;
434
504
  }, "ref">) & RefAttributes<HTMLDivElement>>;
435
505
 
506
+ export declare class InkTextFieldPageObject {
507
+ baseAttribute: string;
508
+ helperTextSelector: string;
509
+ errorTextSelector: string;
510
+ errorClass: string;
511
+ name: string;
512
+ static create(name: string): InkTextFieldPageObject;
513
+ constructor(name: string);
514
+ get element(): Cypress.Chainable<JQuery<HTMLElement>>;
515
+ get label(): Cypress.Chainable<JQuery<HTMLLabelElement>>;
516
+ get input(): Cypress.Chainable<JQuery<HTMLInputElement>>;
517
+ get helperText(): Cypress.Chainable<JQuery<HTMLElement>>;
518
+ get error(): Cypress.Chainable<JQuery<HTMLElement>>;
519
+ get errorMessage(): Cypress.Chainable<JQuery<HTMLElement>>;
520
+ get multiline(): Cypress.Chainable<JQuery<HTMLTextAreaElement>>;
521
+ hasLabel(label: string): Cypress.Chainable<JQuery<HTMLLabelElement>>;
522
+ hasValue(value: string): Cypress.Chainable<JQuery<HTMLInputElement>>;
523
+ hasHelperText(text: string): Cypress.Chainable<JQuery<HTMLElement>>;
524
+ hasError(text: string): Cypress.Chainable<JQuery<HTMLElement>>;
525
+ type(value: string): Cypress.Chainable<JQuery<HTMLInputElement>>;
526
+ clear(): Cypress.Chainable<JQuery<HTMLInputElement>>;
527
+ blur(): Cypress.Chainable<JQuery<HTMLInputElement>>;
528
+ }
529
+
436
530
  export declare type InkTextFieldProps = TextFieldProps & {
437
531
  name: string;
438
532
  };