@muraldevkit/ui-toolkit 2.12.1 → 2.13.0-dev.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.
@@ -8,7 +8,7 @@ export interface MrlSelectItemProptypes extends React.HTMLAttributes<HTMLDivElem
8
8
  /**
9
9
  * index of the select item starting at 0
10
10
  */
11
- index: number;
11
+ index?: number;
12
12
  /**
13
13
  * Applies additional HTML attributes to the `mrl-select-item` element after the
14
14
  * hydration process. It is recommended only to use when overwriting an attribute
@@ -1,4 +1,5 @@
1
1
  import * as React from 'react';
2
+ import { ReactElement } from 'react';
2
3
  import { SelectMenuPositions } from '../../constants';
3
4
  import { AttrsObject } from '../../../../utils';
4
5
  export interface MrlSelectMenuProptypes extends React.HTMLAttributes<HTMLDivElement> {
@@ -9,6 +9,9 @@ type Action = {
9
9
  payload: number;
10
10
  } | {
11
11
  type: 'default';
12
+ } | {
13
+ type: 'defaultValue';
14
+ payload: string;
12
15
  } | {
13
16
  type: 'disabled';
14
17
  } | {
@@ -22,6 +25,7 @@ type Dispatch = (action: Action) => void;
22
25
  type State = {
23
26
  open: boolean;
24
27
  focus: boolean;
28
+ defaultValue?: string;
25
29
  disabled: boolean;
26
30
  focusIndex?: number;
27
31
  selectedItem?: string;
@@ -0,0 +1 @@
1
+ export declare const countries: string[];