@jobber/components 3.5.5 → 3.5.6-pre.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 (58) hide show
  1. package/dist/Autocomplete/Autocomplete.d.ts +0 -1
  2. package/dist/Autocomplete/Menu.d.ts +0 -1
  3. package/dist/Avatar/Avatar.d.ts +0 -1
  4. package/dist/Card/CardHeader.d.ts +0 -1
  5. package/dist/Chips/Chip.d.ts +0 -1
  6. package/dist/Chips/Chips.d.ts +0 -1
  7. package/dist/Chips/InternalChip.d.ts +0 -1
  8. package/dist/Chips/InternalChipDismissible/InternalChipDismissible.d.ts +0 -1
  9. package/dist/Chips/InternalChipDismissible/InternalChipDismissibleInput.d.ts +0 -1
  10. package/dist/Chips/InternalChipMultiSelect.d.ts +0 -1
  11. package/dist/Chips/InternalChipSingleSelect.d.ts +0 -1
  12. package/dist/ConfirmationModal/ConfirmationModal.d.ts +1 -1
  13. package/dist/Countdown/Countdown.d.ts +0 -1
  14. package/dist/DataDump/DataDump.d.ts +0 -1
  15. package/dist/DataTable/Footer.d.ts +0 -1
  16. package/dist/DataTable/Header.d.ts +0 -1
  17. package/dist/DataTable/Pagination.d.ts +0 -1
  18. package/dist/DataTable/SortIcon.d.ts +0 -1
  19. package/dist/DatePicker/DatePickerCustomHeader.d.ts +0 -1
  20. package/dist/Divider/Divider.d.ts +0 -1
  21. package/dist/FormField/FormField.d.ts +0 -1
  22. package/dist/FormField/FormFieldDescription.d.ts +0 -1
  23. package/dist/FormField/FormFieldPostFix.d.ts +0 -1
  24. package/dist/FormatDate/FormatDate.d.ts +0 -1
  25. package/dist/FormatEmail/FormatEmail.d.ts +0 -1
  26. package/dist/FormatFile/FormatFileDeleteButton.d.ts +0 -1
  27. package/dist/FormatFile/InternalThumbnail.d.ts +0 -1
  28. package/dist/FormatRelativeDateTime/FormatRelativeDateTime.d.ts +0 -1
  29. package/dist/FormatTime/FormatTime.d.ts +0 -1
  30. package/dist/Gallery/Gallery.d.ts +0 -1
  31. package/dist/Icon/Icon.d.ts +0 -1
  32. package/dist/InputAvatar/InputAvatar.d.ts +0 -1
  33. package/dist/InputDate/InputDate.d.ts +0 -1
  34. package/dist/InputEmail/InputEmail.d.ts +0 -1
  35. package/dist/InputFile/InputFile.d.ts +0 -1
  36. package/dist/InputPassword/InputPassword.d.ts +0 -1
  37. package/dist/InputTime/InputTime.d.ts +0 -1
  38. package/dist/InputTime/InputTimeSafari.d.ts +0 -1
  39. package/dist/InputValidation/InputValidation.d.ts +0 -1
  40. package/dist/List/List.d.ts +0 -1
  41. package/dist/List/List.stories.d.ts +0 -1
  42. package/dist/Markdown/Markdown.d.ts +0 -1
  43. package/dist/Menu/Menu.stories.d.ts +0 -1
  44. package/dist/ProgressBar/ProgressBar.d.ts +0 -1
  45. package/dist/RecurringSelect/CurrentRecurrenceComponent.d.ts +0 -1
  46. package/dist/RecurringSelect/RecurringSelect.d.ts +0 -1
  47. package/dist/RecurringSelect/components/DayOfMonthSelect.d.ts +0 -1
  48. package/dist/RecurringSelect/components/MonthlyDayOfWeekSelect.d.ts +0 -1
  49. package/dist/RecurringSelect/components/MonthlySelect.d.ts +0 -1
  50. package/dist/RecurringSelect/components/WeeklySelect.d.ts +0 -1
  51. package/dist/Select/Select.d.ts +0 -1
  52. package/dist/Spinner/Spinner.d.ts +0 -1
  53. package/dist/StatusLabel/StatusLabel.d.ts +0 -1
  54. package/dist/Switch/Switch.d.ts +0 -1
  55. package/dist/Table/Cells/CellCurrency.d.ts +0 -1
  56. package/dist/Table/Cells/CellNumeric.d.ts +0 -1
  57. package/dist/Toast/Toast.d.ts +0 -1
  58. package/package.json +3 -3
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { XOR } from "ts-xor";
3
2
  import { GroupOption, Option } from "./Option";
4
3
  import { FormFieldProps } from "../FormField";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Option } from "./Option";
3
2
  interface MenuProps {
4
3
  readonly visible: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { XOR } from "ts-xor";
3
2
  declare type AvatarSize = "base" | "large" | "small";
4
3
  interface AvatarFoundationProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CardProps } from "./types";
3
2
  /**
4
3
  * Intended to be used in the Card component.
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InternalChipProps } from "./ChipTypes";
3
2
  export interface ChipProps extends Pick<InternalChipProps, "label" | "prefix" | "disabled" | "invalid"> {
4
3
  /**
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { ChipsProps } from "./ChipsTypes";
3
2
  export declare function Chips(props: ChipsProps): JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { InternalChipProps } from "./ChipTypes";
3
2
  export declare function InternalChip({ label, active, disabled, invalid, prefix, suffix, tabIndex, ariaLabel, onClick, onKeyDown, }: InternalChipProps): JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { InternalChipDismissibleProps } from "./InternalChipDismissibleTypes";
3
2
  export declare function InternalChipDismissible(props: InternalChipDismissibleProps): JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { ChipDismissibleInputProps } from "./InternalChipDismissibleTypes";
3
2
  export declare function InternalChipDismissibleInput(props: ChipDismissibleInputProps): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ChipMultiSelectProps } from "./ChipsTypes";
3
2
  declare type InternalChipChoiceMultipleProps = Pick<ChipMultiSelectProps, "selected" | "onChange" | "children" | "onClick">;
4
3
  export declare function InternalChipMultiSelect({ children, selected, onChange, onClick, }: InternalChipChoiceMultipleProps): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ChipSingleSelectProps } from "./ChipsTypes";
3
2
  declare type InternalChipChoiceProps = Pick<ChipSingleSelectProps, "selected" | "onChange" | "children" | "onClick" | "name">;
4
3
  export declare function InternalChipSingleSelect({ children, selected, name, onChange, onClick, }: InternalChipChoiceProps): JSX.Element;
@@ -74,5 +74,5 @@ interface StringMessage extends BaseConfirmationModalProps {
74
74
  message: string;
75
75
  children?: never;
76
76
  }
77
- export declare const ConfirmationModal: React.ForwardRefExoticComponent<(SimpleConfirmationModalProps & ChildrenMessage & React.RefAttributes<ConfirmationModalRef>) | (SimpleConfirmationModalProps & StringMessage & React.RefAttributes<ConfirmationModalRef>) | (Pick<ComplexConfirmationModalProps & ChildrenMessage, "children" | "size" | "title" | "variation" | "message" | "open" | "onRequestClose" | "onCancel" | "confirmLabel" | "cancelLabel" | "onConfirm"> & React.RefAttributes<ConfirmationModalRef>) | (Pick<ComplexConfirmationModalProps & StringMessage, "children" | "size" | "title" | "variation" | "message" | "open" | "onRequestClose" | "onCancel" | "confirmLabel" | "cancelLabel" | "onConfirm"> & React.RefAttributes<ConfirmationModalRef>)>;
77
+ export declare const ConfirmationModal: React.ForwardRefExoticComponent<(SimpleConfirmationModalProps & ChildrenMessage & React.RefAttributes<ConfirmationModalRef>) | (SimpleConfirmationModalProps & StringMessage & React.RefAttributes<ConfirmationModalRef>) | (ComplexConfirmationModalProps & ChildrenMessage & React.RefAttributes<ConfirmationModalRef>) | (ComplexConfirmationModalProps & StringMessage & React.RefAttributes<ConfirmationModalRef>)>;
78
78
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CivilDate } from "@std-proposal/temporal";
3
2
  /**
4
3
  * Options for deciding how much information is shown to the user
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface DataDebuggerProps {
3
2
  /**
4
3
  * Label for the DataDump
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Table } from "@tanstack/react-table";
3
2
  export declare type ViewType = "desktop" | "handheld";
4
3
  export interface FooterProps<T> {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Row, Table } from "@tanstack/react-table";
3
2
  import { SortingType } from "./types";
4
3
  interface HeaderProps<T> {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Table } from "@tanstack/react-table";
3
2
  interface PaginationProps<T> {
4
3
  table: Table<T>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare enum SortDirection {
3
2
  ascending = 0,
4
3
  descending = 1,
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { ReactDatePickerCustomHeaderProps } from "react-datepicker";
3
2
  export declare function DatePickerCustomHeader({ monthDate, decreaseMonth, increaseMonth, prevMonthButtonDisabled, nextMonthButtonDisabled, }: ReactDatePickerCustomHeaderProps): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface DividerProps {
3
2
  /**
4
3
  * The weight of the divider.
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { FormFieldProps } from "./FormFieldTypes";
3
2
  export declare function FormField(props: FormFieldProps): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface FormFieldDescriptionProps {
3
2
  readonly id: string;
4
3
  readonly description: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface FormFieldPostFixProps {
3
2
  readonly variation: "select" | "spinner";
4
3
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CivilDate } from "@std-proposal/temporal";
3
2
  interface FormatDateProps {
4
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface FormatEmailProps {
3
2
  /**
4
3
  * Email address to format
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface DeleteButtonProps {
3
2
  size?: "base" | "large";
4
3
  onDelete?: () => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FileUpload } from "../InputFile";
3
2
  interface InternalThumbnailProps {
4
3
  readonly name?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CivilDateTime } from "@std-proposal/temporal";
3
2
  interface FormatRelativeDateTimeProps {
4
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CivilTime } from "@std-proposal/temporal";
3
2
  interface FormatTimeProps {
4
3
  /**
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { GalleryProps } from "./GalleryTypes";
3
2
  export declare function Gallery({ files, size, max, onDelete }: GalleryProps): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IconColorNames, IconNames, IconSizes } from "@jobber/design";
3
2
  export { IconColorNames, IconNames } from "@jobber/design";
4
3
  export interface IconProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { AvatarProps } from "../Avatar";
3
2
  import { FileUpload, UploadParams } from "../InputFile";
4
3
  interface InputAvatarProps extends Omit<AvatarProps, "size"> {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CommonFormFieldProps, FormFieldProps } from "../FormField";
3
2
  interface InputDateProps extends CommonFormFieldProps, Pick<FormFieldProps, "readonly" | "disabled" | "onEnter" | "onFocus" | "inputRef" | "validations" | "placeholder" | "onChange" | "onBlur"> {
4
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CommonFormFieldProps, FormFieldProps } from "../FormField";
3
2
  declare type InputEmailProps = CommonFormFieldProps & Pick<FormFieldProps, "maxLength" | "readonly" | "validations" | "defaultValue">;
4
3
  export declare const validationMessage = "Please enter a valid email";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface FileUpload {
3
2
  /**
4
3
  * File Identifier
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CommonFormFieldProps, FormFieldProps } from "../FormField";
3
2
  interface InputPasswordProps extends CommonFormFieldProps, Pick<FormFieldProps, "autocomplete" | "onEnter" | "onFocus" | "onBlur" | "inputRef" | "validations" | "defaultValue"> {
4
3
  value?: string;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { InputTimeProps } from "./InputTimeProps";
3
2
  export declare function InputTime({ defaultValue, value, onChange, ...params }: InputTimeProps): JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { InputTimeProps } from "./InputTimeProps";
3
2
  export declare function InputTimeSafari({ defaultValue, value, onChange, ...params }: InputTimeProps): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface InputValidationProps {
3
2
  /**
4
3
  * Validation message to be displayed
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ListItemProps } from "./ListItem";
3
2
  interface ListProps {
4
3
  /**
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { ListItemProps } from "./ListItem";
3
2
  export declare const StorybookListPropsInterface: (_: ListItemProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface MarkdownProps {
3
2
  /**
4
3
  * Rich text content.
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { SectionProps } from ".";
3
2
  export declare const StorybookMenuSectionShape: (_: SectionProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import sizes from "./Sizes.css";
3
2
  interface ProgressBarProps {
4
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { RecurrenceRule } from "./types";
3
2
  interface RecurringSelectProps {
4
3
  disabled?: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { RecurrenceRule } from "./types";
3
2
  interface RecurringSelectProps {
4
3
  readonly disabled?: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DayOfMonth } from "../types";
3
2
  interface DayOfMonthSelectProps {
4
3
  selectedDays: Set<DayOfMonth>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { WeekDay } from "../types";
3
2
  interface MonthlyDayOfWeekSelectProps {
4
3
  disabled: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DurationPeriod } from "../types";
3
2
  interface MonthlySelectProps {
4
3
  disabled: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { WeekDay } from "../types";
3
2
  interface WeeklySelectProps {
4
3
  disabled: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FormFieldProps } from "../FormField";
3
2
  /**
4
3
  * The following is the same as:
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface SpinnerProps {
3
2
  /**
4
3
  * Specifies the size of the spinner
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare type StatusType = "success" | "warning" | "critical" | "inactive" | "informative";
3
2
  export interface StatusLabelType {
4
3
  readonly statusLabel: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface SwitchProps {
3
2
  readonly value?: boolean;
4
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CurrencyType } from "@jobber/formatters";
3
2
  import { CellNumericProps } from "./CellNumeric";
4
3
  interface CellCurrencyProps extends CellNumericProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface CellNumericProps {
3
2
  value: number | string;
4
3
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { XOR } from "ts-xor";
3
2
  interface BaseToastProps {
4
3
  readonly variation?: "info" | "success" | "error";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components",
3
- "version": "3.5.5",
3
+ "version": "3.5.6-pre.0+03511639",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -17,7 +17,7 @@
17
17
  "dist/*"
18
18
  ],
19
19
  "dependencies": {
20
- "@jobber/design": "^0.29.3",
20
+ "@jobber/design": "^0.29.4-pre.49+03511639",
21
21
  "@jobber/formatters": "^0.2.1",
22
22
  "@jobber/hooks": "^1.13.2",
23
23
  "@popperjs/core": "^2.0.6",
@@ -83,5 +83,5 @@
83
83
  "> 1%",
84
84
  "IE 10"
85
85
  ],
86
- "gitHead": "cf0b27a3daf886386c967177b6806c38b1631c67"
86
+ "gitHead": "03511639f4c392a6a1cef792f26bce19bd95b4a6"
87
87
  }