@jobber/components 4.79.2-STCJS-to-.6 → 4.79.2-STCJS-to-.8

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.
@@ -44,4 +44,4 @@ interface InternalRadioOptionProps extends BaseRadioOptionProps {
44
44
  onChange(newValue: string | number): void;
45
45
  }
46
46
  export declare function InternalRadioOption({ value, name, label, description, disabled, checked, children, onChange, }: InternalRadioOptionProps): JSX.Element;
47
- export {};
47
+ export default RadioOption;
@@ -14,4 +14,4 @@ declare function SelectOption({ children, disabled, value }: InputSelectProps):
14
14
  * component is called Option internally. We have opened an issue with them
15
15
  * to find out more information.
16
16
  */
17
- export { SelectOption as Option };
17
+ export { SelectOption as Option, SelectOption as default };
@@ -1,6 +1,6 @@
1
1
  import { ReactElement } from "react";
2
2
  interface BodyProps {
3
- children: ReactElement | ReactElement[];
3
+ readonly children: ReactElement | ReactElement[];
4
4
  }
5
5
  export declare function Body({ children }: BodyProps): JSX.Element;
6
- export {};
6
+ export default Body;
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from "react";
2
2
  interface CellProps {
3
- children?: ReactNode | ReactNode[];
4
- align?: "left" | "center" | "right";
3
+ readonly children?: ReactNode | ReactNode[];
4
+ readonly align?: "left" | "center" | "right";
5
5
  }
6
6
  export declare function Cell({ children, align }: CellProps): JSX.Element;
7
- export {};
7
+ export default Cell;
@@ -2,8 +2,8 @@
2
2
  import { CurrencyType } from "@jobber/formatters";
3
3
  import { CellNumericProps } from "./CellNumeric";
4
4
  interface CellCurrencyProps extends CellNumericProps {
5
- value: number;
6
- currency?: CurrencyType;
5
+ readonly value: number;
6
+ readonly currency?: CurrencyType;
7
7
  }
8
8
  export declare function CellCurrency({ value, currency, }: CellCurrencyProps): JSX.Element;
9
- export {};
9
+ export default CellCurrency;
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  export interface CellNumericProps {
3
- value: number | string;
3
+ readonly value: number | string;
4
4
  }
5
5
  export declare function CellNumeric({ value }: CellNumericProps): JSX.Element;
6
+ export default CellNumeric;
@@ -1,6 +1,6 @@
1
1
  import { ReactElement } from "react";
2
2
  interface FooterProps {
3
- children: ReactElement | ReactElement[];
3
+ readonly children: ReactElement | ReactElement[];
4
4
  }
5
5
  export declare function Footer({ children }: FooterProps): JSX.Element;
6
- export {};
6
+ export default Footer;
@@ -1,6 +1,6 @@
1
1
  import { ReactElement } from "react";
2
2
  interface HeaderProps {
3
- children: ReactElement | ReactElement[];
3
+ readonly children: ReactElement | ReactElement[];
4
4
  }
5
5
  export declare function Header({ children }: HeaderProps): JSX.Element;
6
- export {};
6
+ export default Header;
@@ -1,6 +1,6 @@
1
1
  import { ReactElement } from "react";
2
2
  interface RowProps {
3
- children: ReactElement | ReactElement[];
3
+ readonly children: ReactElement | ReactElement[];
4
4
  }
5
5
  export declare function Row({ children }: RowProps): JSX.Element;
6
- export {};
6
+ export default Row;
@@ -1,8 +1,8 @@
1
- export { Table } from "./Table";
2
- export { Row } from "./Row";
3
- export { Cell } from "./Cells/Cell";
4
- export { CellNumeric } from "./Cells/CellNumeric";
5
- export { CellCurrency } from "./Cells/CellCurrency";
6
- export { Header } from "./Header";
7
- export { Footer } from "./Footer";
8
- export { Body } from "./Body";
1
+ export { default as Table } from "./Table";
2
+ export { default as Row } from "./Row";
3
+ export { default as Cell } from "./Cells/Cell";
4
+ export { default as CellNumeric } from "./Cells/CellNumeric";
5
+ export { default as CellCurrency } from "./Cells/CellCurrency";
6
+ export { default as Header } from "./Header";
7
+ export { default as Footer } from "./Footer";
8
+ export { default as Body } from "./Body";
@@ -1,2 +1,3 @@
1
1
  import { ToastProps } from "./Toast";
2
2
  export declare function showToast(props: ToastProps): void;
3
+ export default showToast;
package/dist/index.d.ts CHANGED
@@ -16,6 +16,7 @@ export { default as Countdown } from "./Countdown/Countdown";
16
16
  export { default as DataDump } from "./DataDump/DataDump";
17
17
  export { default as DataList } from "./DataList/DataList";
18
18
  export { default as DataTable } from "./DataTable/DataTable";
19
+ export { createColumnHelper } from "./DataTable/index";
19
20
  export { default as DatePicker } from "./DatePicker/DatePicker";
20
21
  export { default as DescriptionList } from "./DescriptionList/DescriptionList";
21
22
  export { default as Disclosure } from "./Disclosure/Disclosure";
@@ -27,6 +28,7 @@ export { default as Flex } from "./Flex/Flex";
27
28
  export { default as Form } from "./Form/Form";
28
29
  export { default as FormField } from "./FormField/FormField";
29
30
  export { default as FormatDate } from "./FormatDate/FormatDate";
31
+ export { strFormatDate } from "./FormatDate";
30
32
  export { default as FormatEmail } from "./FormatEmail/FormatEmail";
31
33
  export { default as FormatFile } from "./FormatFile/FormatFile";
32
34
  export { default as FormatRelativeDateTime } from "./FormatRelativeDateTime/FormatRelativeDateTime";
@@ -41,6 +43,7 @@ export { default as InputAvatar } from "./InputAvatar/InputAvatar";
41
43
  export { default as InputDate } from "./InputDate/InputDate";
42
44
  export { default as InputEmail } from "./InputEmail/InputEmail";
43
45
  export { default as InputFile } from "./InputFile/InputFile";
46
+ export { updateFiles } from "./InputFile/index";
44
47
  export { default as InputGroup } from "./InputGroup/InputGroup";
45
48
  export { default as InputNumber } from "./InputNumber/InputNumber";
46
49
  export { default as InputPassword } from "./InputPassword/InputPassword";
@@ -51,6 +54,7 @@ export { default as InputValidation } from "./InputValidation/InputValidation";
51
54
  export { default as LightBox } from "./LightBox/LightBox";
52
55
  export { default as Link } from "./Link/Link";
53
56
  export { default as List } from "./List/List";
57
+ export { ListItem } from "./List/index";
54
58
  export { default as Markdown } from "./Markdown/Markdown";
55
59
  export { default as Menu } from "./Menu/Menu";
56
60
  export { default as Modal } from "./Modal/Modal";
@@ -59,14 +63,24 @@ export { default as Page } from "./Page/Page";
59
63
  export { default as Popover } from "./Popover/Popover";
60
64
  export { default as ProgressBar } from "./ProgressBar/ProgressBar";
61
65
  export { default as RadioGroup } from "./RadioGroup/RadioGroup";
66
+ export { default as RadioOption } from "./RadioGroup/RadioOption";
62
67
  export { default as RecurringSelect } from "./RecurringSelect/RecurringSelect";
63
68
  export { default as Select } from "./Select/Select";
69
+ export { default as Option } from "./Select/Option";
64
70
  export { default as Spinner } from "./Spinner/Spinner";
65
71
  export { default as StatusLabel } from "./StatusLabel/StatusLabel";
66
72
  export { default as Switch } from "./Switch/Switch";
67
73
  export { default as Table } from "./Table/Table";
74
+ export { default as Header } from "./Table/Header";
75
+ export { default as Cell } from "./Table/Cells/Cell";
76
+ export { default as Row } from "./Table/Row";
77
+ export { default as Footer } from "./Table/Footer";
78
+ export { default as Body } from "./Table/Body";
79
+ export { default as CellCurrency } from "./Table/Cells/CellCurrency";
80
+ export { default as CellNumeric } from "./Table/Cells/CellNumeric";
68
81
  export { default as Tabs } from "./Tabs/Tabs";
69
82
  export { default as Text } from "./Text/Text";
70
83
  export { default as Toast } from "./Toast/Toast";
84
+ export { default as showToast } from "./Toast/showToast";
71
85
  export { default as Tooltip } from "./Tooltip/Tooltip";
72
86
  export { default as Typography } from "./Typography/Typography";