@apia/charts 0.2.2 → 0.3.0

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/LICENSE.md CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) [year] [fullname]
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1
+ MIT License
2
+
3
+ Copyright (c) [year] [fullname]
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import * as _apia_util from '@apia/util';
2
- import React$1 from 'react';
2
+ import * as React$1 from 'react';
3
+ import React__default from 'react';
3
4
 
4
5
  type TApiaChartCoordinate = {
5
6
  /**
@@ -180,17 +181,21 @@ type TChartRendererProps = {
180
181
  allowZoom?: boolean;
181
182
  };
182
183
 
183
- declare const ChartRenderer: React$1.FC<{
184
+ declare const ChartRenderer: React__default.FC<{
184
185
  currentChart: TApiaChartDefinition;
185
186
  chartConfig?: Partial<Omit<TApiaChartDefinition, "columns">> | undefined;
186
187
  chartProps?: Partial<TChartRendererProps> | undefined;
187
188
  allowScaleChange?: boolean | undefined;
188
189
  chartId: string;
189
190
  allowZoom?: boolean | undefined;
190
- } & React$1.RefAttributes<HTMLElement> & {
191
+ } & React__default.RefAttributes<HTMLElement> & {
191
192
  id: _apia_util.TId;
192
193
  }>;
193
194
 
195
+ declare const EmptyGrid: ({ width }: {
196
+ width?: number | undefined;
197
+ }) => React$1.JSX.Element;
198
+
194
199
  type TWidgetZone = {
195
200
  minimum: number;
196
201
  maximum: number;
@@ -232,6 +237,6 @@ type TWidgetData = {
232
237
 
233
238
  declare const WidgetContainer: ({ data }: {
234
239
  data: TWidgetData;
235
- }) => React$1.JSX.Element;
240
+ }) => React__default.JSX.Element;
236
241
 
237
- export { ChartRenderer, TApiaChartColumn, TApiaChartDefinition, TWidgetData, WidgetContainer };
242
+ export { ChartRenderer, EmptyGrid, TApiaChartColumn, TApiaChartDefinition, TWidgetData, WidgetContainer };