chiperos-ai-components-library 0.2.10 → 0.2.13

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.
@@ -36,3 +36,29 @@ export declare const DualYAxis: Story;
36
36
  * Minimal chart without grid and legend
37
37
  */
38
38
  export declare const Minimal: Story;
39
+ /**
40
+ * Chart with title and axis labels
41
+ */
42
+ export declare const WithTitles: Story;
43
+ /**
44
+ * Dual Y-axis chart with labels on both axes
45
+ */
46
+ export declare const DualYAxisWithLabels: Story;
47
+ /**
48
+ * Chart with currency formatting (without decimals)
49
+ * Values are formatted with thousand separators (dots) and currency symbol
50
+ */
51
+ export declare const CurrencyFormat: Story;
52
+ /**
53
+ * Chart with currency formatting including decimals
54
+ */
55
+ export declare const CurrencyFormatWithDecimals: Story;
56
+ /**
57
+ * Dual Y-axis with different currency formats
58
+ * Left axis: USD without decimals, Right axis: EUR with decimals
59
+ */
60
+ export declare const DualAxisCurrencyFormat: Story;
61
+ /**
62
+ * Currency format with symbol as suffix
63
+ */
64
+ export declare const CurrencyFormatSuffix: Story;
@@ -30,6 +30,36 @@ export interface ComposedChartSeries {
30
30
  */
31
31
  yAxisId?: 'left' | 'right';
32
32
  }
33
+ /**
34
+ * Currency format configuration
35
+ */
36
+ export interface CurrencyFormatConfig {
37
+ /**
38
+ * Whether to format values as currency
39
+ * @default false
40
+ */
41
+ enabled: boolean;
42
+ /**
43
+ * Currency symbol to display (e.g., "$", "€", "MXN")
44
+ * @default "$"
45
+ */
46
+ symbol?: string;
47
+ /**
48
+ * Whether to show decimal places
49
+ * @default false
50
+ */
51
+ showDecimals?: boolean;
52
+ /**
53
+ * Number of decimal places to show (only when showDecimals is true)
54
+ * @default 2
55
+ */
56
+ decimalPlaces?: number;
57
+ /**
58
+ * Position of the currency symbol
59
+ * @default "prefix"
60
+ */
61
+ symbolPosition?: 'prefix' | 'suffix';
62
+ }
33
63
  export interface ComposedChartProps {
34
64
  /**
35
65
  * Array of data objects to display
@@ -86,6 +116,34 @@ export interface ComposedChartProps {
86
116
  * Bar size in pixels
87
117
  */
88
118
  barSize?: number;
119
+ /**
120
+ * Main title of the chart
121
+ */
122
+ title?: string;
123
+ /**
124
+ * Label for the X-axis
125
+ */
126
+ xAxisLabel?: string;
127
+ /**
128
+ * Label for the left Y-axis
129
+ */
130
+ yAxisLabel?: string;
131
+ /**
132
+ * Label for the right Y-axis (only shown when showRightYAxis is true)
133
+ */
134
+ yAxisRightLabel?: string;
135
+ /**
136
+ * Currency format configuration for the left Y-axis
137
+ * When enabled, values will be formatted with thousand separators (dots)
138
+ * and optional currency symbol
139
+ */
140
+ currencyFormat?: CurrencyFormatConfig;
141
+ /**
142
+ * Currency format configuration for the right Y-axis
143
+ * When enabled, values will be formatted with thousand separators (dots)
144
+ * and optional currency symbol
145
+ */
146
+ currencyFormatRight?: CurrencyFormatConfig;
89
147
  }
90
148
  /**
91
149
  * ComposedChart Component
@@ -105,6 +163,9 @@ export interface ComposedChartProps {
105
163
  * { type: 'bar', dataKey: 'sales', name: 'Sales', color: '#00995a' },
106
164
  * { type: 'line', dataKey: 'revenue', name: 'Revenue', color: '#312e4d' },
107
165
  * ]}
166
+ * title="Monthly Performance"
167
+ * xAxisLabel="Month"
168
+ * yAxisLabel="Amount"
108
169
  * />
109
170
  * ```
110
171
  */
@@ -29,6 +29,10 @@ declare const meta: {
29
29
  control: "boolean";
30
30
  description: string;
31
31
  };
32
+ multiple: {
33
+ control: "boolean";
34
+ description: string;
35
+ };
32
36
  options: {
33
37
  control: "object";
34
38
  description: string;
@@ -60,3 +64,12 @@ export declare const PrimaryDisabled: Story;
60
64
  export declare const PrimaryLongOptions: Story;
61
65
  export declare const VariantsComparison: Story;
62
66
  export declare const PrimaryInHeader: Story;
67
+ export declare const MultipleSelect: Story;
68
+ export declare const MultipleWithLabel: Story;
69
+ export declare const MultipleWithPreselected: Story;
70
+ export declare const MultipleDisabled: Story;
71
+ export declare const MultiplePrimaryVariant: Story;
72
+ export declare const MultipleManyOptions: Story;
73
+ export declare const MultipleInteractive: Story;
74
+ export declare const SingleVsMultiple: Story;
75
+ export declare const MultipleFilterExample: Story;
@@ -2,15 +2,7 @@ export interface SelectOption {
2
2
  id: string;
3
3
  text: string;
4
4
  }
5
- export interface SelectProps {
6
- /**
7
- * The currently selected value (id)
8
- */
9
- value?: string;
10
- /**
11
- * Callback fired when selection changes
12
- */
13
- onChange?: (text: string) => void;
5
+ interface SelectBaseProps {
14
6
  /**
15
7
  * Whether the select is disabled
16
8
  */
@@ -38,5 +30,34 @@ export interface SelectProps {
38
30
  */
39
31
  className?: string;
40
32
  }
33
+ interface SingleSelectProps extends SelectBaseProps {
34
+ /**
35
+ * Enable multiple selection mode
36
+ */
37
+ multiple?: false;
38
+ /**
39
+ * The currently selected value (id) - single string for single select
40
+ */
41
+ value?: string;
42
+ /**
43
+ * Callback fired when selection changes - returns single string for single select
44
+ */
45
+ onChange?: (value: string) => void;
46
+ }
47
+ interface MultipleSelectProps extends SelectBaseProps {
48
+ /**
49
+ * Enable multiple selection mode
50
+ */
51
+ multiple: true;
52
+ /**
53
+ * The currently selected values (ids) - array of strings for multiple select
54
+ */
55
+ value?: string[];
56
+ /**
57
+ * Callback fired when selection changes - returns array of strings for multiple select
58
+ */
59
+ onChange?: (values: string[]) => void;
60
+ }
61
+ export type SelectProps = SingleSelectProps | MultipleSelectProps;
41
62
  export declare const Select: import('react').ForwardRefExoticComponent<SelectProps & import('react').RefAttributes<HTMLButtonElement>>;
42
63
  export default Select;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "chiperos-ai-components-library",
3
3
  "private": false,
4
- "version": "0.2.10",
4
+ "version": "0.2.13",
5
5
  "description": "Chiperos AI Components Library - A modern React component library built with Vite, TypeScript and Tailwind CSS.",
6
6
  "type": "module",
7
7
  "main": "./dist/chiperos-ai-components-library.cjs",