@cagatayfdn/flora-components 0.0.56 → 0.0.58

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/dist/index.d.ts CHANGED
@@ -19,6 +19,7 @@ import { NiceModalHocProps } from '@ebay/nice-modal-react';
19
19
  import { default as React_2 } from 'react';
20
20
  import { ReactNode } from 'react';
21
21
  import { SelectItemRenderer } from 'react-dropdown-select';
22
+ import { SelectRenderer } from 'react-dropdown-select';
22
23
  import { SetStateAction } from 'react';
23
24
  import { TFunction } from 'i18next';
24
25
  import { TFunctionResult } from 'i18next';
@@ -173,7 +174,7 @@ export declare type AutocompleteProps = {
173
174
 
174
175
  declare function Bar({ data, options }: BarProps): JSX_2.Element;
175
176
 
176
- declare type BarChartProps = ChartProps<'bar', number[], unknown>;
177
+ export declare type BarChartProps = ChartProps<'bar', number[], unknown>;
177
178
 
178
179
  declare type BarProps = {
179
180
  options?: BarChartProps['options'];
@@ -739,7 +740,7 @@ export declare type LengthCardProps = {
739
740
 
740
741
  declare function Line({ data, options, lineRef }: LineProps): JSX_2.Element;
741
742
 
742
- declare type LineChartProps = ChartProps<'line', any[], unknown>;
743
+ export declare type LineChartProps = ChartProps<'line', any[], unknown>;
743
744
 
744
745
  declare type LineProps = {
745
746
  options?: LineChartProps['options'];
@@ -811,7 +812,7 @@ export declare type NavigatorCardProps = {
811
812
 
812
813
  export { NiceModal }
813
814
 
814
- export declare function NoResult(): JSX_2.Element;
815
+ export declare function NoResult({ text }: Props): JSX_2.Element;
815
816
 
816
817
  declare const Notification_2: (props: NotificationProps) => void;
817
818
  export { Notification_2 as Notification }
@@ -886,7 +887,7 @@ export declare type PermalinkProps = {
886
887
 
887
888
  export declare const PermFallBack: () => JSX_2.Element;
888
889
 
889
- export declare function Permission(props: Props): JSX_2.Element;
890
+ export declare function Permission(props: Props_2): JSX_2.Element;
890
891
 
891
892
  declare interface Permissions_2 {
892
893
  default: boolean;
@@ -1038,7 +1039,7 @@ declare type PermType_2 = `${PermissionsSlug_2}`
1038
1039
 
1039
1040
  declare function Pie({ data, options }: PieProps): JSX_2.Element;
1040
1041
 
1041
- declare type PieChartProps = ChartProps<'pie', number[], unknown>;
1042
+ export declare type PieChartProps = ChartProps<'pie', number[], unknown>;
1042
1043
 
1043
1044
  declare type PieProps = {
1044
1045
  options?: PieChartProps['options'];
@@ -1101,7 +1102,11 @@ declare enum ProjectAppAddonTypeSlugs {
1101
1102
  MAIL = 'mail',
1102
1103
  }
1103
1104
 
1104
- declare type Props = {
1105
+ declare type Props = Partial<SelectRenderer<OptionProps>> & {
1106
+ text?: string;
1107
+ };
1108
+
1109
+ declare type Props_2 = {
1105
1110
  id: string;
1106
1111
  tooltipText?: string;
1107
1112
  } & CanProps;
package/dist/index.es.js CHANGED
@@ -21761,9 +21761,9 @@ function Uq({
21761
21761
  const Kq = "_noResult_19yve_1", qq = {
21762
21762
  noResult: Kq
21763
21763
  };
21764
- function hb() {
21765
- const { t: n } = yt();
21766
- return /* @__PURE__ */ v.jsx("span", { "data-testid": "noresult", className: qq.noResult, children: n("text.no_result") });
21764
+ function hb({ text: n }) {
21765
+ const { t } = yt(), e = n || t("text.no_results");
21766
+ return /* @__PURE__ */ v.jsx("div", { "data-testid": "noresult", className: qq.noResult, children: /* @__PURE__ */ v.jsx("span", { children: e }) });
21767
21767
  }
21768
21768
  const $q = "_typography_1wwcb_1", e8 = "_ellipsis_1wwcb_6", t8 = "_success_1wwcb_12", n8 = "_copy_1wwcb_17", i8 = "_checkCopy_1wwcb_21", r8 = "_code_1wwcb_25", Li = {
21769
21769
  typography: $q,