@embeddable.com/remarkable-ui 2.0.11 → 2.0.12

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,22 +1,28 @@
1
1
  .kpiChartContainer {
2
+ display: flex;
3
+ flex-direction: column;
4
+ align-items: center;
2
5
  width: 100%;
3
6
  height: 100%;
4
- font-style: normal;
5
- text-align: center;
6
- display: flex;
7
7
  }
8
8
 
9
- .kpiChartCenter {
10
- margin: auto;
9
+ .kpiChartValueContainer {
10
+ flex: 1 1 auto;
11
+ min-height: 0;
12
+ overflow: auto;
13
+ width: 100%;
11
14
  display: flex;
12
15
  flex-direction: column;
13
- align-items: center;
16
+ justify-content: center;
17
+ /* eslint-disable-next-line css/no-important */
18
+ align-items: center !important;
19
+ text-align: center;
14
20
  }
15
21
 
16
- .kpiChartCenter h2 {
22
+ .kpiChartValueContainer h2 {
23
+ width: 100%;
17
24
  margin: unset;
18
25
  overflow: hidden;
19
- width: min-content;
20
26
  text-overflow: ellipsis;
21
27
  white-space: nowrap;
22
28
  color: var(--em-kpichart-color, #212129);
@@ -5,6 +5,8 @@
5
5
  justify-content: center;
6
6
  gap: var(--em-kpichart-label-gap, 0.5rem);
7
7
  margin-top: var(--em-kpichart-gap, 1.5rem);
8
+ flex: 0 0 auto;
9
+ flex-shrink: 0;
8
10
  }
9
11
 
10
12
  .kpiChangeBadge {
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React$1 from 'react';
3
3
  import React__default, { FC, SVGProps, ImgHTMLAttributes, ReactNode, ReactElement } from 'react';
4
4
  import * as _tabler_icons_react from '@tabler/icons-react';
5
- import { TablerIcon, Icon } from '@tabler/icons-react';
5
+ import { IconProps, Icon } from '@tabler/icons-react';
6
6
  import * as DropdownMenu from '@radix-ui/react-dropdown-menu';
7
7
  import { ChartData, ChartOptions, CartesianTickOptions, GridLineOptions } from 'chart.js';
8
8
  import { S as StylesKeys } from './index-C2c7n1lv.js';
@@ -26,7 +26,7 @@ declare const CardContent: React__default.ForwardRefExoticComponent<CardContentP
26
26
 
27
27
  type CardFeedbackProps = {
28
28
  className?: string;
29
- icon?: TablerIcon;
29
+ icon?: React.ComponentType<IconProps>;
30
30
  title: string;
31
31
  message: string;
32
32
  variant?: 'error' | 'info';
@@ -45,14 +45,14 @@ declare function Typography({ children, as: Component, className, style, title,
45
45
 
46
46
  type ActionIconProps = {
47
47
  className?: string;
48
- icon: TablerIcon;
48
+ icon: React__default.ComponentType<IconProps>;
49
49
  } & React__default.ButtonHTMLAttributes<HTMLButtonElement>;
50
50
  declare const ActionIcon: React__default.FC<ActionIconProps>;
51
51
 
52
52
  type ButtonIconProps = {
53
53
  variant?: 'primary' | 'secondary';
54
54
  size?: 'small' | 'medium';
55
- icon: TablerIcon;
55
+ icon: React__default.ComponentType<IconProps>;
56
56
  } & React__default.ButtonHTMLAttributes<HTMLButtonElement>;
57
57
  declare const ButtonIcon: React__default.FC<ButtonIconProps>;
58
58
 
@@ -84,8 +84,8 @@ type SelectListOptionPropsWithCategory = SelectListOptionProps & {
84
84
  declare const SelectListOption: FC<SelectListOptionProps>;
85
85
 
86
86
  type ButtonProps = {
87
- startIcon?: TablerIcon;
88
- endIcon?: TablerIcon;
87
+ startIcon?: React.ComponentType<IconProps>;
88
+ endIcon?: React.ComponentType<IconProps>;
89
89
  children: string;
90
90
  size?: 'small' | 'medium';
91
91
  variant?: 'primary' | 'secondary';
@@ -113,7 +113,7 @@ type FieldHeaderProps = {
113
113
  declare const FieldHeader: ({ label, required, requiredLabel, className, }: FieldHeaderProps) => react_jsx_runtime.JSX.Element | null;
114
114
 
115
115
  type MultiSelectFieldProps = {
116
- startIcon?: TablerIcon;
116
+ startIcon?: React.ComponentType<IconProps>;
117
117
  disabled?: boolean;
118
118
  isClearable?: boolean;
119
119
  isLoading?: boolean;
@@ -146,7 +146,7 @@ type FieldFeedbackProps = {
146
146
  declare const FieldFeedback: FC<FieldFeedbackProps>;
147
147
 
148
148
  declare const SelectFieldTrigger: React$1.ForwardRefExoticComponent<React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
149
- startIcon?: TablerIcon;
149
+ startIcon?: React.ComponentType<IconProps>;
150
150
  valueLabel?: string;
151
151
  placeholder?: string;
152
152
  isClearable?: boolean;
@@ -171,7 +171,7 @@ declare const SelectFieldContentList: FC<SelectFieldContentListProps>;
171
171
 
172
172
  type SingleSelectFieldProps = {
173
173
  options: (SelectListOptionProps | SelectListOptionPropsWithCategory)[];
174
- startIcon?: TablerIcon;
174
+ startIcon?: React.ComponentType<IconProps>;
175
175
  value?: string;
176
176
  disabled?: boolean;
177
177
  placeholder?: string;
@@ -189,8 +189,8 @@ declare const SingleSelectField: FC<SingleSelectFieldProps>;
189
189
  declare const TextField: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onChange"> & {
190
190
  value?: string;
191
191
  placeholder?: string;
192
- startIcon?: _tabler_icons_react.TablerIcon;
193
- endIcon?: _tabler_icons_react.TablerIcon;
192
+ startIcon?: React.ComponentType<_tabler_icons_react.IconProps>;
193
+ endIcon?: React.ComponentType<_tabler_icons_react.IconProps>;
194
194
  onChange: (value: string) => void;
195
195
  clearable?: boolean;
196
196
  error?: boolean;
@@ -200,8 +200,8 @@ declare const TextField: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTM
200
200
  type InputFieldProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange'> & {
201
201
  value?: string;
202
202
  placeholder?: string;
203
- startIcon?: TablerIcon;
204
- endIcon?: TablerIcon;
203
+ startIcon?: React.ComponentType<IconProps>;
204
+ endIcon?: React.ComponentType<IconProps>;
205
205
  onChange: (value: string) => void;
206
206
  clearable?: boolean;
207
207
  error?: boolean;
@@ -281,7 +281,7 @@ type CssSize = number | `${number}px` | `${number}rem` | `${number}em` | `${numb
281
281
 
282
282
  type KpiChartProps = {
283
283
  value: number;
284
- changeFontSize?: number;
284
+ trendFontSize?: number;
285
285
  comparisonValue?: number;
286
286
  showChangeAsPercentage?: boolean;
287
287
  invertChangeColors?: boolean;
@@ -289,6 +289,7 @@ type KpiChartProps = {
289
289
  equalComparisonLabel?: string;
290
290
  percentageDecimalPlaces?: number;
291
291
  valueFontSize?: CssSize;
292
+ noPreviousDataLabel?: string;
292
293
  valueFormatter?: (value: number) => string;
293
294
  };
294
295