pebble-web 2.25.0-alpha.1 → 2.25.2-alpha.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 (80) hide show
  1. package/dist/components/typings/Button.d.ts +1 -0
  2. package/dist/components/typings/Control.d.ts +1 -0
  3. package/dist/components/typings/DateInput.d.ts +1 -0
  4. package/dist/components/typings/Dropdown.d.ts +1 -0
  5. package/dist/components/typings/Input.d.ts +1 -0
  6. package/dist/components/typings/Loader.d.ts +1 -0
  7. package/dist/components/typings/Message.d.ts +1 -0
  8. package/dist/components/typings/OptionGroup.d.ts +1 -0
  9. package/dist/components/typings/OptionGroupCheckBox.d.ts +1 -0
  10. package/dist/components/typings/OptionGroupRadio.d.ts +1 -0
  11. package/dist/components/typings/PhoneNumberInput.d.ts +1 -0
  12. package/dist/components/typings/RadioGroup.d.ts +1 -0
  13. package/dist/components/typings/Search.d.ts +1 -0
  14. package/dist/components/typings/SecondaryInput.d.ts +1 -0
  15. package/dist/components/typings/Select.d.ts +1 -0
  16. package/dist/components/typings/Text.d.ts +1 -0
  17. package/dist/components/typings/Typeahead.d.ts +1 -0
  18. package/dist/pebble-web.dev.js +244 -112
  19. package/dist/pebble-web.dev.js.map +1 -1
  20. package/dist/pebble-web.es.dev.js +178 -57
  21. package/dist/pebble-web.es.dev.js.map +1 -1
  22. package/dist/pebble-web.es.js +173 -52
  23. package/dist/pebble-web.es.js.map +1 -1
  24. package/dist/pebble-web.js +239 -107
  25. package/dist/pebble-web.js.map +1 -1
  26. package/dist/pebble-web.module.dev.js +244 -112
  27. package/dist/pebble-web.module.dev.js.map +1 -1
  28. package/dist/pebble-web.module.js +239 -107
  29. package/dist/pebble-web.module.js.map +1 -1
  30. package/dist/pebble-web.umd.dev.js +244 -112
  31. package/dist/pebble-web.umd.dev.js.map +1 -1
  32. package/dist/pebble-web.umd.js +239 -107
  33. package/dist/pebble-web.umd.js.map +1 -1
  34. package/dist/utils/index.d.ts +1 -0
  35. package/dist/utils/testIds.d.ts +53 -0
  36. package/package.json +3 -2
  37. package/src/components/Button.tsx +3 -1
  38. package/src/components/DateInput.tsx +3 -1
  39. package/src/components/DropDown.tsx +3 -1
  40. package/src/components/Input.tsx +13 -3
  41. package/src/components/Loader.tsx +3 -1
  42. package/src/components/Message.tsx +3 -1
  43. package/src/components/NativeDateInput.tsx +2 -1
  44. package/src/components/OptionGroupCheckBox.tsx +14 -2
  45. package/src/components/PhoneNumberInput.tsx +7 -1
  46. package/src/components/RadioGroup.tsx +20 -3
  47. package/src/components/Search.tsx +3 -1
  48. package/src/components/SecondaryInput.tsx +7 -2
  49. package/src/components/Select.tsx +13 -1
  50. package/src/components/Tabs.tsx +1 -1
  51. package/src/components/Text.tsx +7 -2
  52. package/src/components/TimePicker.tsx +2 -2
  53. package/src/components/Toast.tsx +2 -2
  54. package/src/components/TypeAhead.tsx +14 -3
  55. package/src/components/__tests__/__snapshots__/optionGroup.test.tsx.snap +0 -3
  56. package/src/components/__tests__/__snapshots__/select.test.tsx.snap +3 -0
  57. package/src/components/__tests__/__snapshots__/timepicker.test.tsx.snap +18 -18
  58. package/src/components/__tests__/select.test.tsx +19 -30
  59. package/src/components/__tests__/timepicker.test.tsx +4 -14
  60. package/src/components/shared/Control.tsx +3 -1
  61. package/src/components/shared/OptionGroup.tsx +23 -5
  62. package/src/components/typings/Button.ts +1 -0
  63. package/src/components/typings/Control.ts +1 -0
  64. package/src/components/typings/DateInput.ts +1 -0
  65. package/src/components/typings/Dropdown.ts +1 -0
  66. package/src/components/typings/Input.ts +1 -0
  67. package/src/components/typings/Loader.ts +1 -0
  68. package/src/components/typings/Message.ts +1 -0
  69. package/src/components/typings/OptionGroup.ts +1 -0
  70. package/src/components/typings/OptionGroupCheckBox.ts +1 -0
  71. package/src/components/typings/OptionGroupRadio.ts +1 -0
  72. package/src/components/typings/PhoneNumberInput.ts +1 -0
  73. package/src/components/typings/RadioGroup.ts +1 -0
  74. package/src/components/typings/Search.ts +1 -0
  75. package/src/components/typings/SecondaryInput.ts +1 -0
  76. package/src/components/typings/Select.ts +1 -0
  77. package/src/components/typings/Text.ts +1 -0
  78. package/src/components/typings/Typeahead.ts +1 -0
  79. package/src/utils/index.ts +1 -0
  80. package/src/utils/testIds.ts +98 -0
@@ -14,6 +14,7 @@ export interface ButtonProps {
14
14
  loading?: boolean;
15
15
  outline?: boolean;
16
16
  buttonProps?: React.ButtonHTMLAttributes<HTMLButtonElement>;
17
+ testId?: string;
17
18
  }
18
19
  export interface DropDownButtonProps extends ButtonProps {
19
20
  isOpen: boolean;
@@ -13,4 +13,5 @@ export interface ControlProps<OptionType> {
13
13
  className?: string;
14
14
  iconClassName?: string;
15
15
  indeterminate?: boolean;
16
+ testId?: string;
16
17
  }
@@ -17,6 +17,7 @@ export interface DateInputProps {
17
17
  onOutsideClick?: (isOpen: boolean) => void;
18
18
  controlled?: boolean;
19
19
  isOpen?: boolean;
20
+ testId?: string;
20
21
  }
21
22
  export interface DateInputState {
22
23
  stringInput: string;
@@ -26,6 +26,7 @@ export interface DropdownProps {
26
26
  modifiers?: Modifiers;
27
27
  controlled?: boolean;
28
28
  isOpen?: boolean;
29
+ testId?: string;
29
30
  }
30
31
  export interface DropdownState {
31
32
  isOpen: boolean;
@@ -19,6 +19,7 @@ export interface CommonInputProps {
19
19
  successMessage?: string;
20
20
  leftElement?: () => React.ReactNode;
21
21
  rightElement?: () => React.ReactNode;
22
+ testId?: string;
22
23
  }
23
24
  export declare type InputType = "text" | "date" | "password" | "number" | "email" | "tel";
24
25
  export interface SimpleInputProps extends CommonInputProps {
@@ -2,4 +2,5 @@ export interface LoaderProps {
2
2
  color?: string;
3
3
  className?: string;
4
4
  scale?: number;
5
+ testId?: string;
5
6
  }
@@ -3,4 +3,5 @@ export interface AlertProps {
3
3
  intent: "error" | "success";
4
4
  className?: string;
5
5
  text: React.ReactChild;
6
+ testId?: string;
6
7
  }
@@ -12,6 +12,7 @@ export interface CommonProps {
12
12
  selectVisible?: () => void;
13
13
  clearVisible?: () => void;
14
14
  };
15
+ testId?: string;
15
16
  }
16
17
  export interface OptionGroupProps<OptionType> extends CommonProps {
17
18
  isSelected: (value: OptionType) => boolean;
@@ -9,4 +9,5 @@ export interface OptionGroupCheckBoxProps<OptionType> extends CommonProps {
9
9
  isSelected?: (value: OptionType) => boolean;
10
10
  onApply?: (value: OptionType[], props: OptionGroupCheckBoxProps<OptionType>) => void;
11
11
  onClear?: () => void;
12
+ testId?: string;
12
13
  }
@@ -6,4 +6,5 @@ export interface OptionGroupRadio<OptionType> extends CommonProps {
6
6
  */
7
7
  selected?: OptionType;
8
8
  isSelected?: (value: OptionType) => boolean;
9
+ testId?: string;
9
10
  }
@@ -13,4 +13,5 @@ export interface PhoneNumberInputProps<OptionType = string> {
13
13
  inputProps?: Omit<SimpleInputProps, "value" | "onChange" | "placeholder">;
14
14
  placeholder?: string;
15
15
  required?: boolean;
16
+ testId?: string;
16
17
  }
@@ -6,4 +6,5 @@ export interface RadioGroupProps<OptionType> {
6
6
  className?: string;
7
7
  name: string;
8
8
  disabled?: boolean;
9
+ testId?: string;
9
10
  }
@@ -9,4 +9,5 @@ export interface SearchProps {
9
9
  clearable?: boolean;
10
10
  inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
11
11
  loading?: boolean;
12
+ testId?: string;
12
13
  }
@@ -14,6 +14,7 @@ export interface SecondaryInputProps {
14
14
  loading?: boolean;
15
15
  message?: string;
16
16
  inputProps?: React.InputHTMLAttributes<HTMLInputElement> & React.RefAttributes<HTMLInputElement>;
17
+ testId?: string;
17
18
  }
18
19
  export interface SecondaryInputState {
19
20
  isFocused: boolean;
@@ -23,6 +23,7 @@ export interface CommonSelectProps<OptionType> {
23
23
  isSelected?: (value: OptionType) => boolean;
24
24
  placement?: Placement;
25
25
  modifiers?: Modifiers;
26
+ testId?: string;
26
27
  }
27
28
  export interface SingleSelectProps<OptionType> extends CommonSelectProps<OptionType> {
28
29
  multiSelect?: false;
@@ -3,4 +3,5 @@ export interface TextProps {
3
3
  color?: string;
4
4
  className?: string;
5
5
  typography?: TypographyStyle;
6
+ testId?: string;
6
7
  }
@@ -23,6 +23,7 @@ export interface TypeaheadProps<OptionType> {
23
23
  valueExtractor: (value: OptionType) => string;
24
24
  onClear?: () => void;
25
25
  inputProps?: Omit<SimpleInputProps, "onChange" | "value" | "placeholder">;
26
+ testId?: string;
26
27
  }
27
28
  export interface TypeaheadState {
28
29
  value: string;