gov-ui-core 1.0.20 → 1.0.22

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/.stylelintrc.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "rules": {
7
7
  "at-rule-no-unknown": null,
8
8
  "selector-class-pattern": "^([a-z][a-z0-9]*)(-[a-z0-9]+)*$",
9
- "keyframes-name-pattern": "/^(,[a-z][a-z0-9]*)(-[a-z0-9]+)*$/",
9
+ "keyframes-name-pattern": null,
10
10
  "no-descending-specificity": null,
11
11
  "block-no-empty": null,
12
12
  "scss/at-rule-no-unknown": [
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ type DropdownOption = {
3
+ label: React.ReactNode;
4
+ onClick: () => void;
5
+ selected?: boolean;
6
+ divider?: boolean;
7
+ disabled?: boolean;
8
+ };
9
+ interface IGroupButtonProps {
10
+ className?: string;
11
+ items: {
12
+ content: React.ReactNode;
13
+ onClick?: () => void;
14
+ options?: DropdownOption[];
15
+ message?: React.ReactNode;
16
+ active?: boolean;
17
+ disabled?: boolean;
18
+ }[];
19
+ }
20
+ declare const GroupButton: React.FC<IGroupButtonProps>;
21
+ export default GroupButton;
@@ -16,3 +16,6 @@ export declare const TextButtonBox: import("styled-components").StyledComponent<
16
16
  $type: 'default' | 'gray';
17
17
  $disabled?: boolean | undefined;
18
18
  }, never>;
19
+ export declare const GroupButtonBox: import("styled-components").StyledComponent<"div", DefaultTheme, {
20
+ $itemSize: number;
21
+ }, never>;
@@ -3,6 +3,7 @@ import './ErrorMessage.scss';
3
3
  interface IErrorMessageProps {
4
4
  visible: boolean;
5
5
  message: React.ReactNode | string;
6
+ type?: 'error' | 'success' | 'info' | 'warning';
6
7
  }
7
8
  declare const ErrorMessage: React.FC<IErrorMessageProps>;
8
9
  export default ErrorMessage;
@@ -3,6 +3,10 @@ import { ErrorType, ErrorStyle } from './data';
3
3
  import { ChangeHandler } from 'react-hook-form';
4
4
  export interface IInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'prefix' | 'size'> {
5
5
  error?: string | ErrorType | boolean;
6
+ statusMessage?: {
7
+ type: 'success' | 'warning';
8
+ message?: string;
9
+ };
6
10
  errorStyle?: ErrorStyle;
7
11
  prefix?: React.ReactNode;
8
12
  suffix?: React.ReactNode;
@@ -6,6 +6,7 @@ declare const ItemArea: import("styled-components").StyledComponent<"div", impor
6
6
  }, never>;
7
7
  declare const InputBox: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
8
8
  error: boolean;
9
+ status?: "success" | "warning" | undefined;
9
10
  suffixWidth: number;
10
11
  prefixWidth: number;
11
12
  disabled?: boolean | undefined;
@@ -4,7 +4,7 @@ export interface ITooltipProps {
4
4
  type?: 'default' | 'chart' | 'rich';
5
5
  position?: string;
6
6
  status?: 'default' | 'primary' | 'error' | 'warning' | 'success';
7
- title?: string | number;
7
+ title?: React.ReactNode;
8
8
  description?: string;
9
9
  gaugeColor?: string;
10
10
  gaugeName?: string;