@jobber/components 4.85.2 → 4.85.4-CJS-to-ESM.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.
Files changed (166) hide show
  1. package/dist/ButtonDismiss/ButtonDismiss.d.ts +1 -1
  2. package/dist/Card/CardClickable.d.ts +1 -1
  3. package/dist/DataList/components/DataListTotalCount/DataListTotalCount.d.ts +2 -2
  4. package/dist/DataTable/BodyLoading.d.ts +1 -1
  5. package/dist/DataTable/Footer.d.ts +2 -2
  6. package/dist/DataTable/SortIcon.d.ts +1 -1
  7. package/dist/DescriptionList/DescriptionList.d.ts +1 -1
  8. package/dist/Drawer/DrawerGrid.d.ts +1 -1
  9. package/dist/Emphasis/Emphasis.d.ts +2 -2
  10. package/dist/FormField/FormFieldAffix.d.ts +2 -2
  11. package/dist/FormatFile/FormatFileDeleteButton.d.ts +2 -2
  12. package/dist/InlineLabel/InlineLabel.d.ts +3 -3
  13. package/dist/InputNumber/InputNumber.d.ts +1 -1
  14. package/dist/InputPassword/InputPassword.d.ts +2 -2
  15. package/dist/RecurringSelect/CurrentRecurrenceComponent.d.ts +2 -2
  16. package/dist/RecurringSelect/components/MonthlyDayOfWeekSelect.d.ts +2 -2
  17. package/dist/RecurringSelect/components/MonthlySelect.d.ts +2 -2
  18. package/dist/Table/Body.d.ts +1 -1
  19. package/dist/Table/Cells/Cell.d.ts +2 -2
  20. package/dist/Table/Cells/CellCurrency.d.ts +2 -2
  21. package/dist/Table/Cells/CellNumeric.d.ts +1 -1
  22. package/dist/Table/Footer.d.ts +1 -1
  23. package/dist/Table/Header.d.ts +1 -1
  24. package/dist/Table/Row.d.ts +1 -1
  25. package/dist/Table/Table.d.ts +1 -1
  26. package/dist/Text/Text.d.ts +1 -1
  27. package/dist/Typography/Typography.d.ts +1 -1
  28. package/dist/index.cjs.js +6721 -0
  29. package/dist/index.d.ts +73 -0
  30. package/dist/index.esm.js +6603 -0
  31. package/package.json +373 -5
  32. package/rollup.config.js +21 -77
  33. package/.eslintrc.js +0 -10
  34. package/dist/AnimatedPresence/index.js +0 -12
  35. package/dist/AnimatedPresence-20a02aaa.js +0 -104
  36. package/dist/AnimatedSwitcher/index.js +0 -13
  37. package/dist/AnimatedSwitcher-3d45ec5d.js +0 -96
  38. package/dist/Autocomplete/index.js +0 -209
  39. package/dist/Avatar/index.js +0 -15
  40. package/dist/Avatar-76a799fa.js +0 -78
  41. package/dist/Banner/index.js +0 -110
  42. package/dist/Button/index.js +0 -16
  43. package/dist/Button-b73a5e01.js +0 -57
  44. package/dist/ButtonDismiss/index.js +0 -17
  45. package/dist/ButtonDismiss-350af163.js +0 -14
  46. package/dist/Card/colors.css.d.ts +0 -89
  47. package/dist/Card/index.js +0 -24
  48. package/dist/Card-e3144022.js +0 -93
  49. package/dist/Checkbox/index.js +0 -18
  50. package/dist/Checkbox-787e2e47.js +0 -63
  51. package/dist/Chip/index.js +0 -41
  52. package/dist/Chip-3d1bfddc.js +0 -89
  53. package/dist/Chips/index.js +0 -524
  54. package/dist/Combobox/index.js +0 -40
  55. package/dist/Combobox-a24c8241.js +0 -479
  56. package/dist/ConfirmationModal/index.js +0 -31
  57. package/dist/ConfirmationModal-52e16873.js +0 -100
  58. package/dist/Content/Spacing.css.d.ts +0 -13
  59. package/dist/Content/index.js +0 -12
  60. package/dist/Content-e3f7b6fc.js +0 -24
  61. package/dist/Countdown/index.js +0 -72
  62. package/dist/DataDump/index.js +0 -37
  63. package/dist/DataList/index.js +0 -1335
  64. package/dist/DataTable/index.js +0 -301
  65. package/dist/DatePicker/index.js +0 -20
  66. package/dist/DatePicker-64c5ab1a.js +0 -134
  67. package/dist/DescriptionList/index.js +0 -24
  68. package/dist/Disclosure/index.js +0 -46
  69. package/dist/Divider/index.js +0 -29
  70. package/dist/Drawer/index.js +0 -50
  71. package/dist/Emphasis/index.js +0 -13
  72. package/dist/Emphasis-bda56d3b.js +0 -19
  73. package/dist/FeatureSwitch/index.js +0 -70
  74. package/dist/Flex/index.js +0 -12
  75. package/dist/Flex-d490c4db.js +0 -38
  76. package/dist/Form/index.js +0 -56
  77. package/dist/FormField/index.js +0 -24
  78. package/dist/FormField-6ff183f8.js +0 -253
  79. package/dist/FormatDate/index.js +0 -11
  80. package/dist/FormatDate-70ea5b43.js +0 -34
  81. package/dist/FormatEmail/index.js +0 -23
  82. package/dist/FormatFile/index.js +0 -36
  83. package/dist/FormatFile-f036902d.js +0 -162
  84. package/dist/FormatRelativeDateTime/index.js +0 -72
  85. package/dist/FormatTime/index.js +0 -36
  86. package/dist/Gallery/Gallery.css.d.ts +0 -9
  87. package/dist/Gallery/index.js +0 -99
  88. package/dist/Glimmer/index.js +0 -15
  89. package/dist/Glimmer/style/Shape.css.d.ts +0 -9
  90. package/dist/Glimmer/style/Sizes.css.d.ts +0 -10
  91. package/dist/Glimmer/style/Timing.css.d.ts +0 -6
  92. package/dist/Glimmer-84dee1ed.js +0 -77
  93. package/dist/Grid/GridAlign.css.d.ts +0 -8
  94. package/dist/Grid/index.js +0 -76
  95. package/dist/Heading/index.js +0 -14
  96. package/dist/Heading-1e8e4bd3.js +0 -55
  97. package/dist/Icon/index.js +0 -11
  98. package/dist/Icon-405a216c.js +0 -40
  99. package/dist/InlineLabel/index.js +0 -13
  100. package/dist/InlineLabel-a6557829.js +0 -28
  101. package/dist/InputAvatar/index.js +0 -70
  102. package/dist/InputDate/index.js +0 -57
  103. package/dist/InputEmail/index.js +0 -43
  104. package/dist/InputFile/index.js +0 -25
  105. package/dist/InputFile-bb945071.js +0 -190
  106. package/dist/InputGroup/index.js +0 -12
  107. package/dist/InputGroup-8d4fd4eb.js +0 -33
  108. package/dist/InputNumber/index.js +0 -25
  109. package/dist/InputNumber-d451b52e.js +0 -62
  110. package/dist/InputPassword/index.js +0 -41
  111. package/dist/InputPhoneNumber/index.js +0 -116
  112. package/dist/InputText/index.js +0 -26
  113. package/dist/InputText-55b6cb65.js +0 -102
  114. package/dist/InputTime/index.js +0 -209
  115. package/dist/InputValidation/index.js +0 -17
  116. package/dist/InputValidation-05e839fa.js +0 -29
  117. package/dist/LightBox/index.js +0 -24
  118. package/dist/LightBox-a89d8863.js +0 -117
  119. package/dist/Link/index.js +0 -15
  120. package/dist/List/index.js +0 -93
  121. package/dist/Markdown/index.js +0 -19
  122. package/dist/Markdown-f7c55304.js +0 -62
  123. package/dist/Menu/index.js +0 -21
  124. package/dist/Menu-083fc4c4.js +0 -139
  125. package/dist/Modal/Sizes.css.d.ts +0 -6
  126. package/dist/Modal/index.js +0 -25
  127. package/dist/Modal-c336cac6.js +0 -71
  128. package/dist/MultiSelect/index.js +0 -182
  129. package/dist/Option-3c4d377e.js +0 -19
  130. package/dist/Page/index.js +0 -78
  131. package/dist/Popover/index.js +0 -61
  132. package/dist/ProgressBar/Sizes.css.d.ts +0 -7
  133. package/dist/ProgressBar/index.js +0 -12
  134. package/dist/ProgressBar-b68edc8f.js +0 -43
  135. package/dist/RadioGroup/index.js +0 -15
  136. package/dist/RadioGroup-17b67ade.js +0 -46
  137. package/dist/RecurringSelect/index.js +0 -227
  138. package/dist/Select/index.js +0 -26
  139. package/dist/Spinner/index.js +0 -12
  140. package/dist/Spinner-9d8fc7ff.js +0 -24
  141. package/dist/StatusIndicator/index.js +0 -11
  142. package/dist/StatusIndicator-b179d06e.js +0 -18
  143. package/dist/StatusLabel/index.js +0 -29
  144. package/dist/Switch/index.js +0 -13
  145. package/dist/Switch-7d4aa7c3.js +0 -56
  146. package/dist/Table/index.js +0 -66
  147. package/dist/Tabs/index.js +0 -80
  148. package/dist/Text/index.js +0 -13
  149. package/dist/Text-259af966.js +0 -31
  150. package/dist/Toast/index.js +0 -111
  151. package/dist/Tooltip/index.js +0 -16
  152. package/dist/Tooltip-ef3d6ef4.js +0 -112
  153. package/dist/Typography/css/Emphasis.css.d.ts +0 -6
  154. package/dist/Typography/css/FontFamilies.css.d.ts +0 -6
  155. package/dist/Typography/css/FontSizes.css.d.ts +0 -12
  156. package/dist/Typography/css/FontWeights.css.d.ts +0 -10
  157. package/dist/Typography/css/TextAlignment.css.d.ts +0 -7
  158. package/dist/Typography/css/TextCases.css.d.ts +0 -7
  159. package/dist/Typography/css/TextColors.css.d.ts +0 -22
  160. package/dist/Typography/css/Truncate.css.d.ts +0 -5
  161. package/dist/Typography/css/Typography.css.d.ts +0 -5
  162. package/dist/Typography/index.js +0 -12
  163. package/dist/Typography-c45bf216.js +0 -62
  164. package/dist/getAtlantisConfig-0f3e8af2.js +0 -13
  165. package/dist/style-inject.es-9d2f5f4e.js +0 -30
  166. package/dist/tslib.es6-754e2961.js +0 -46
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  interface ButtonDismissProps {
3
3
  onClick?(event: React.MouseEvent<HTMLAnchorElement | HTMLButtonElement>): void;
4
- ariaLabel: string;
4
+ readonly ariaLabel: string;
5
5
  }
6
6
  export declare function ButtonDismiss({ onClick, ariaLabel }: ButtonDismissProps): JSX.Element;
7
7
  export {};
@@ -1,7 +1,7 @@
1
1
  import React, { ReactNode } from "react";
2
2
  interface ClickableCardProps {
3
3
  onClick(event: React.MouseEvent<HTMLElement>): void;
4
- className: string;
4
+ readonly className: string;
5
5
  readonly children: ReactNode | ReactNode[];
6
6
  }
7
7
  /**
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  export declare const DATALIST_TOTALCOUNT_TEST_ID = "ATL-DataList-TotalCount";
3
3
  interface DataListTotalCountProps {
4
- totalCount?: number | null;
5
- loading?: boolean;
4
+ readonly totalCount?: number | null;
5
+ readonly loading?: boolean;
6
6
  }
7
7
  export declare function DataListTotalCount({ totalCount, loading, }: DataListTotalCountProps): JSX.Element | null;
8
8
  export {};
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { Table } from "@tanstack/react-table";
3
3
  interface BodyLoadingProps<T> {
4
- table: Table<T>;
4
+ readonly table: Table<T>;
5
5
  }
6
6
  export declare function BodyLoading<T extends object>({ table }: BodyLoadingProps<T>): JSX.Element;
7
7
  export {};
@@ -1,7 +1,7 @@
1
1
  import { Table } from "@tanstack/react-table";
2
2
  export type ViewType = "desktop" | "handheld";
3
3
  export interface FooterProps<T> {
4
- table: Table<T>;
5
- viewType?: ViewType;
4
+ readonly table: Table<T>;
5
+ readonly viewType?: ViewType;
6
6
  }
7
7
  export declare const Footer: <T extends object>({ table, viewType, }: FooterProps<T>) => JSX.Element | null;
@@ -5,7 +5,7 @@ export declare enum SortDirection {
5
5
  equilibrium = 2
6
6
  }
7
7
  interface SortIconProps {
8
- direction: SortDirection;
8
+ readonly direction: SortDirection;
9
9
  }
10
10
  export declare function SortIcon({ direction }: SortIconProps): JSX.Element;
11
11
  export {};
@@ -4,7 +4,7 @@ interface DescriptionListProps {
4
4
  * A tuple where the first item is the string to display as the term
5
5
  * and the second value is the string to display as the definition
6
6
  */
7
- data: [string, string | ReactNode][];
7
+ readonly data: [string, string | ReactNode][];
8
8
  }
9
9
  export declare function DescriptionList({ data }: DescriptionListProps): JSX.Element;
10
10
  export {};
@@ -1,6 +1,6 @@
1
1
  import { ReactElement } from "react";
2
2
  interface DrawerGridProps {
3
- children: ReactElement | ReactElement[];
3
+ readonly children: ReactElement | ReactElement[];
4
4
  }
5
5
  export declare function DrawerGrid({ children }: DrawerGridProps): JSX.Element;
6
6
  export {};
@@ -1,8 +1,8 @@
1
1
  import { ReactNode } from "react";
2
2
  import { TypographyOptions } from "../Typography";
3
3
  interface EmphasisProps {
4
- variation: "bold" | "italic" | "highlight";
5
- children: ReactNode;
4
+ readonly variation: "bold" | "italic" | "highlight";
5
+ readonly children: ReactNode;
6
6
  }
7
7
  export interface VariationMap {
8
8
  [variation: string]: TypographyOptions;
@@ -2,8 +2,8 @@ import { RefObject } from "react";
2
2
  import { XOR } from "ts-xor";
3
3
  import { Affix, FormFieldProps, Suffix } from "./FormFieldTypes";
4
4
  interface AffixLabelProps extends Affix {
5
- labelRef: RefObject<HTMLDivElement>;
6
- variation?: "prefix" | "suffix";
5
+ readonly labelRef: RefObject<HTMLDivElement>;
6
+ readonly variation?: "prefix" | "suffix";
7
7
  }
8
8
  export declare function AffixLabel({ label, variation, labelRef, }: AffixLabelProps): JSX.Element;
9
9
  interface AffixIconProps extends Pick<FormFieldProps, "size"> {
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  interface DeleteButtonProps {
3
- size?: "base" | "large";
4
- onDelete?: () => void;
3
+ readonly size?: "base" | "large";
4
+ readonly onDelete?: () => void;
5
5
  }
6
6
  export declare function FormatFileDeleteButton({ size, onDelete }: DeleteButtonProps): JSX.Element;
7
7
  export {};
@@ -5,13 +5,13 @@ interface InlineLabelProps {
5
5
  * The size of the label
6
6
  * @default base
7
7
  */
8
- size?: "base" | "large" | "larger";
8
+ readonly size?: "base" | "large" | "larger";
9
9
  /**
10
10
  * The color of the label
11
11
  * @default "greyBlue"
12
12
  */
13
- color?: InlineLabelColors;
14
- children: ReactNode;
13
+ readonly color?: InlineLabelColors;
14
+ readonly children: ReactNode;
15
15
  }
16
16
  export declare function InlineLabel({ size, color, children, }: InlineLabelProps): JSX.Element;
17
17
  export {};
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { CommonFormFieldProps, FormFieldProps } from "../FormField";
3
3
  export interface InputNumberProps extends CommonFormFieldProps, Pick<FormFieldProps, "maxLength" | "autocomplete" | "max" | "min" | "onEnter" | "onFocus" | "onBlur" | "inputRef" | "validations" | "readonly" | "defaultValue" | "keyboard" | "prefix" | "suffix"> {
4
- value?: number;
4
+ readonly value?: number;
5
5
  }
6
6
  export interface InputNumberRef {
7
7
  blur(): void;
@@ -1,13 +1,13 @@
1
1
  /// <reference types="react" />
2
2
  import { CommonFormFieldProps, FormFieldProps } from "../FormField";
3
3
  interface InputPasswordProps extends CommonFormFieldProps, Pick<FormFieldProps, "autocomplete" | "onEnter" | "onFocus" | "onBlur" | "inputRef" | "validations" | "defaultValue"> {
4
- value?: string;
4
+ readonly value?: string;
5
5
  onChange?(newValue: string): void;
6
6
  /**
7
7
  * Display toggle to change the visibility of the password input
8
8
  * @default false
9
9
  */
10
- hasVisibility?: boolean;
10
+ readonly hasVisibility?: boolean;
11
11
  }
12
12
  export declare function InputPassword(props: InputPasswordProps): JSX.Element;
13
13
  export {};
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import { RecurrenceRule } from "./types";
3
3
  interface RecurringSelectProps {
4
- disabled?: boolean;
5
- recurrenceRule: RecurrenceRule;
4
+ readonly disabled?: boolean;
5
+ readonly recurrenceRule: RecurrenceRule;
6
6
  onChange(newRecurrence: RecurrenceRule): void;
7
7
  }
8
8
  export declare function CurrentRecurrenceComponent({ recurrenceRule, disabled, onChange, }: RecurringSelectProps): JSX.Element;
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import { WeekDay } from "../types";
3
3
  interface MonthlyDayOfWeekSelectProps {
4
- disabled: boolean;
5
- selectedWeeks: Set<WeekDay>[];
4
+ readonly disabled: boolean;
5
+ readonly selectedWeeks: Set<WeekDay>[];
6
6
  onChange(nextSelectedWeeks: Set<WeekDay>[]): void;
7
7
  }
8
8
  export declare function MonthlyDayOfWeekSelect({ disabled, selectedWeeks, onChange, }: MonthlyDayOfWeekSelectProps): JSX.Element;
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import { DurationPeriod } from "../types";
3
3
  interface MonthlySelectProps {
4
- disabled: boolean;
5
- selectedMonthOption: DurationPeriod.DayOfMonth | DurationPeriod.WeekDayOfMonth;
4
+ readonly disabled: boolean;
5
+ readonly selectedMonthOption: DurationPeriod.DayOfMonth | DurationPeriod.WeekDayOfMonth;
6
6
  onChange(type: DurationPeriod.DayOfMonth | DurationPeriod.WeekDayOfMonth): void;
7
7
  }
8
8
  export declare function MonthlySelect({ disabled, onChange, selectedMonthOption, }: MonthlySelectProps): JSX.Element;
@@ -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
6
  export {};
@@ -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
7
  export {};
@@ -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
9
  export {};
@@ -1,5 +1,5 @@
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;
@@ -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
6
  export {};
@@ -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
6
  export {};
@@ -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
6
  export {};
@@ -1,6 +1,6 @@
1
1
  import { ReactElement } from "react";
2
2
  interface TableProps {
3
- children: ReactElement | ReactElement[];
3
+ readonly children: ReactElement | ReactElement[];
4
4
  }
5
5
  export declare function Table({ children }: TableProps): JSX.Element;
6
6
  export {};
@@ -1,6 +1,6 @@
1
1
  import { PropsWithChildren } from "react";
2
2
  interface TextProps {
3
- maxLines?: "single" | "small" | "base" | "large" | "larger" | "unlimited";
3
+ readonly maxLines?: "single" | "small" | "base" | "large" | "larger" | "unlimited";
4
4
  readonly variation?: "default" | "subdued" | "success" | "error" | "warn" | "info" | "disabled";
5
5
  readonly align?: "start" | "center" | "end";
6
6
  readonly size?: "small" | "base" | "large";
@@ -31,7 +31,7 @@ interface TypographyProps {
31
31
  readonly align?: keyof typeof alignment;
32
32
  readonly fontFamily?: keyof typeof fontFamilies;
33
33
  readonly children: ReactNode;
34
- numberOfLines?: number;
34
+ readonly numberOfLines?: number;
35
35
  }
36
36
  export type TypographyOptions = Omit<TypographyProps, "children">;
37
37
  export declare function Typography({ id, children, element: Tag, size, align, fontWeight, textCase, textColor, emphasisType, numberOfLines, fontFamily, }: TypographyProps): JSX.Element;