@team_yumi/ramen 1.2.3-next.20240826-6630003-de6124b1e182bcf52b0971632a93cd8f → 1.2.3-next.20241227-3e1f8a8-0bc131539a6e1e7ac6de93c877dd872c

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@team_yumi/ramen",
3
- "version": "1.2.3-next.20240826-6630003-de6124b1e182bcf52b0971632a93cd8f",
3
+ "version": "1.2.3-next.20241227-3e1f8a8-0bc131539a6e1e7ac6de93c877dd872c",
4
4
  "license": "MIT",
5
5
  "peerDependencies": {
6
6
  "react": ">=16.8.0"
@@ -2,7 +2,7 @@ import React, { LegacyRef, MouseEventHandler } from 'react';
2
2
  import { Collections } from '../../../models';
3
3
  export interface IProps {
4
4
  inputRef?: LegacyRef<HTMLInputElement>;
5
- type?: (typeof Collections.IInputType)[number];
5
+ type?: (typeof Collections.IInputType)[number] | 'currency';
6
6
  placeholder?: string;
7
7
  value?: string | number;
8
8
  size?: (typeof Collections.IInputSize)[number];
@@ -23,6 +23,8 @@ export interface IProps {
23
23
  type?: (typeof Collections.IType)[number];
24
24
  disabled?: boolean;
25
25
  };
26
+ maxLength?: number;
27
+ maxNumber?: number;
26
28
  }
27
29
  declare const XInput: React.FC<IProps>;
28
30
  export default XInput;
@@ -25,6 +25,18 @@ export interface IProps {
25
25
  * Test to be displayed if showProgressNumber is false
26
26
  */
27
27
  endText?: string;
28
+ /**
29
+ * Text displayed at the start of the progress bar.
30
+ */
31
+ startText?: string;
32
+ /**
33
+ * If true, hide the progress bar itself.
34
+ */
35
+ hideProgressBar?: boolean;
36
+ /**
37
+ * Additional description of the progress.
38
+ */
39
+ progressDescription?: string;
28
40
  }
29
41
  declare const XProgressBar: React.FC<IProps>;
30
42
  export default XProgressBar;
@@ -30,6 +30,10 @@ export interface IProps extends Omit<IInputProps, 'type'> {
30
30
  * Max digital count
31
31
  */
32
32
  maxNumber?: number;
33
+ /**
34
+ * Max length of the input field.
35
+ */
36
+ maxLength?: number;
33
37
  }
34
38
  declare const XTextField: React.FC<IProps>;
35
39
  export default XTextField;
@@ -0,0 +1,2 @@
1
+ import Root from './root';
2
+ export default Root;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const XBarGraph: React.FC<any>;
3
+ export default XBarGraph;
@@ -8,10 +8,14 @@ export interface IProps {
8
8
  onClick?: () => void;
9
9
  children?: React.ReactNode;
10
10
  disabled?: boolean;
11
+ progressDescription?: string;
11
12
  progress?: number;
13
+ hideProgressBar?: boolean;
14
+ arrowRight?: boolean;
12
15
  items?: {
13
16
  description: string;
14
17
  progress: number;
18
+ progressDescription?: string;
15
19
  }[];
16
20
  }
17
21
  declare const XCardExpandProgress: React.FC<IProps>;
@@ -0,0 +1,2 @@
1
+ import Root from "./root";
2
+ export default Root;
@@ -0,0 +1,25 @@
1
+ import React from 'react';
2
+ export type ISeries = {
3
+ label: string;
4
+ value: number;
5
+ color: string;
6
+ };
7
+ export type IGaugeChart = {
8
+ onClick: () => void;
9
+ title: string;
10
+ skeleton: boolean;
11
+ series: ISeries[];
12
+ clickToHide?: boolean;
13
+ width?: string;
14
+ lineThickness?: number;
15
+ locale?: string;
16
+ currency?: string;
17
+ format?: (value: number) => string | number;
18
+ titleRows?: {
19
+ col1?: string;
20
+ col2?: string;
21
+ col3?: string;
22
+ };
23
+ };
24
+ declare const XGaugeGraph: React.FC<IGaugeChart>;
25
+ export default XGaugeGraph;
@@ -3,6 +3,8 @@
3
3
  import './index.css';
4
4
  import XList from '@yumi/x-list';
5
5
  declare const _default: {
6
+ XGaugeGraph: import("react").FC<import("./components/mobile/x-gauge-graph/root").IGaugeChart>;
7
+ XBarGraph: import("react").FC<any>;
6
8
  XCardCounter: import("react").FC<import("./components/core/x-card-counter/root").IProps>;
7
9
  XBox: import("react").FC<import("./components/core/x-box/root").IProps>;
8
10
  XText: import("react").FC<import("./components/core/x-text/root").IProps>;
@@ -86,6 +86,8 @@ declare const _default: {
86
86
  XStoreSelector: import("react").FC<import("./components/mobile/x-store-selector/root").IProps>;
87
87
  XPullToRefresh: import("react").FC<import("./components/mobile/x-pull-to-refresh/root").IProps>;
88
88
  XCardExpandProgress: import("react").FC<import("./components/mobile/x-card-expand-progress/root").IProps>;
89
+ XGaugeGraph: import("react").FC<import("./components/mobile/x-gauge-graph/root").IGaugeChart>;
90
+ XBarGraph: import("react").FC<any>;
89
91
  XCardCounter: import("react").FC<import("./components/core/x-card-counter/root").IProps>;
90
92
  XBox: import("react").FC<import("./components/core/x-box/root").IProps>;
91
93
  XText: import("react").FC<import("./components/core/x-text/root").IProps>;
@@ -220,6 +222,8 @@ export { default as XGroupCheckBox } from './components/mobile/x-group-checkbox'
220
222
  export { default as XDatepickerYear } from './components/mobile/x-datepicker-year';
221
223
  export { default as XCardProgress } from './components/mobile/x-card-progress';
222
224
  export { default as XCardHomeIndicator } from './components/mobile/x-card-home-indicator';
225
+ export { default as XGaugeGraph } from './components/mobile/x-gauge-graph';
226
+ export { default as XBarGraph } from './components/mobile/x-bar-graph';
223
227
  export { default as XCardBusiness } from './components/mobile/x-card-business';
224
228
  export { default as XStoreSelector } from './components/mobile/x-store-selector';
225
229
  export { default as XPullToRefresh } from './components/mobile/x-pull-to-refresh';
@@ -67,6 +67,8 @@ declare const _default: {
67
67
  };
68
68
  };
69
69
  XApp: import("react").FC<import("./components/web/x-app/root").IProps>;
70
+ XGaugeGraph: import("react").FC<import("./components/mobile/x-gauge-graph/root").IGaugeChart>;
71
+ XBarGraph: import("react").FC<any>;
70
72
  XCardCounter: import("react").FC<import("./components/core/x-card-counter/root").IProps>;
71
73
  XBox: import("react").FC<import("./components/core/x-box/root").IProps>;
72
74
  XText: import("react").FC<import("./components/core/x-text/root").IProps>;