@mw-kit/mw-ui 1.8.8 → 1.8.10

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.
@@ -1,5 +1,5 @@
1
1
  import type { ColorOptions } from '../../theme/interfaces';
2
- export type Types = 'default' | 'info' | 'danger' | 'success' | 'warning';
2
+ export type Types = 'default' | 'info' | 'danger' | 'success' | 'warning' | 'temporary';
3
3
  export type Sizes = 'mini' | 'medium' | 'small';
4
4
  export interface IndicatorProps extends React.HTMLAttributes<HTMLDivElement> {
5
5
  size: Sizes;
package/dist/index.d.mts CHANGED
@@ -931,7 +931,7 @@ interface TimeProps extends Omit<InputProps$1, 'type' | 'mask'> {
931
931
  value: string;
932
932
  }
933
933
 
934
- type Types = 'default' | 'info' | 'danger' | 'success' | 'warning';
934
+ type Types = 'default' | 'info' | 'danger' | 'success' | 'warning' | 'temporary';
935
935
  type Sizes = 'mini' | 'medium' | 'small';
936
936
  interface IndicatorProps extends React.HTMLAttributes<HTMLDivElement> {
937
937
  size: Sizes;
package/dist/index.js CHANGED
@@ -9065,7 +9065,8 @@ var types = {
9065
9065
  info: "blue",
9066
9066
  danger: "warningRed",
9067
9067
  success: "green",
9068
- warning: "warningYellow"
9068
+ warning: "warningYellow",
9069
+ temporary: "purple"
9069
9070
  };
9070
9071
 
9071
9072
  // src/components/Indicator/styles.ts
@@ -14842,8 +14843,7 @@ var Submenu = (props) => {
14842
14843
  );
14843
14844
  if (index2 !== -1) {
14844
14845
  if (newState[index2].value === option.value) return prev;
14845
- newState[index2].value = option.value;
14846
- return [...newState];
14846
+ newState.splice(index2, 1);
14847
14847
  }
14848
14848
  newState.push({
14849
14849
  name: item.name,
package/dist/index.mjs CHANGED
@@ -9008,7 +9008,8 @@ var types = {
9008
9008
  info: "blue",
9009
9009
  danger: "warningRed",
9010
9010
  success: "green",
9011
- warning: "warningYellow"
9011
+ warning: "warningYellow",
9012
+ temporary: "purple"
9012
9013
  };
9013
9014
 
9014
9015
  // src/components/Indicator/styles.ts
@@ -14785,8 +14786,7 @@ var Submenu = (props) => {
14785
14786
  );
14786
14787
  if (index2 !== -1) {
14787
14788
  if (newState[index2].value === option.value) return prev;
14788
- newState[index2].value = option.value;
14789
- return [...newState];
14789
+ newState.splice(index2, 1);
14790
14790
  }
14791
14791
  newState.push({
14792
14792
  name: item.name,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mw-kit/mw-ui",
3
- "version": "1.8.8",
3
+ "version": "1.8.10",
4
4
  "description": "Made with create-react-library",
5
5
  "author": "fmgusmao",
6
6
  "license": "MIT",