@pushwoosh/dumb-components 1.1.236 → 1.1.238

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 (53) hide show
  1. package/Alert/Alert.d.ts +1 -1
  2. package/Alert/styles.d.ts +14 -14
  3. package/ApplicationPreloader/ApplicationPreloader.d.ts +1 -1
  4. package/Calendar/CalendarDropdown/helpers.js +1 -1
  5. package/Calendar/CalendarMonthSlider/styles.d.ts +7 -7
  6. package/Calendar/CalendarSuperForm/components/CalendarTimeAndTimezoneSection/CalendarTimeAndTimezoneSection.js +1 -1
  7. package/Calendar/CalendarSuperForm/components/CalendarTimeInput.d.ts +1 -1
  8. package/CodeEditor/CodeEditor.d.ts +1 -1
  9. package/CodeEditor/constants.d.ts +1 -1
  10. package/DateTimePicker/styles.d.ts +21 -21
  11. package/DropdownMenu/components/DropdownMenuSection/styles.d.ts +7 -7
  12. package/DropdownMenu/shared/styles.d.ts +7 -7
  13. package/EmailTemplatePreview/components/NoEmailTemplatePreview/styles.d.ts +14 -14
  14. package/EnhancedInput/styles.d.ts +4 -4
  15. package/ExportResult/styles.d.ts +21 -21
  16. package/FieldBox/styles.d.ts +7 -7
  17. package/FrequencyCapping/FrequencyCappingReadonly.d.ts +1 -1
  18. package/FrequencyCapping/components/Condition/index.d.ts +1 -1
  19. package/FrequencyCapping/components/Description/index.d.ts +1 -1
  20. package/FrequencyCapping/helpers/getReadonlyCappingHelpers.d.ts +1 -1
  21. package/FrequencyCapping/styles.d.ts +14 -14
  22. package/GetStartedPage/styles.d.ts +4 -4
  23. package/InboxPreview/components/InboxCellCarousel/styles.d.ts +11 -11
  24. package/InboxPreview/styles.d.ts +11 -11
  25. package/Modal/components/ModalContent/styles.d.ts +14 -14
  26. package/NativeRichMediaPreview/components/NativeRichMediaRewardPanel/styles.d.ts +4 -4
  27. package/NativeRichMediaPreview/components/NativeRichMediaTitle/styles.d.ts +4 -4
  28. package/NotificationInbox/styles.d.ts +58 -58
  29. package/PushPreview/styles.d.ts +7 -7
  30. package/Radio/styles.d.ts +7 -7
  31. package/RadioCard/styled.d.ts +7 -7
  32. package/RichMessageEditor/RichMessageEditor.styled.d.ts +7 -7
  33. package/RichMessageEditor/slate/DynamicContentElement.d.ts +1 -1
  34. package/RichmediaPreview/styles.d.ts +7 -7
  35. package/SendRate/SendRateEdit.d.ts +1 -1
  36. package/SendRate/SendRateReadonly.d.ts +1 -1
  37. package/SendRate/components/Condition/index.d.ts +1 -1
  38. package/SendRate/components/Description/index.d.ts +1 -1
  39. package/SendRate/components/Settings/index.d.ts +1 -1
  40. package/SendRate/helpers/getReadonlySendRateHelpers.d.ts +1 -1
  41. package/SendRate/styles.d.ts +14 -14
  42. package/Toast/ToastProvider.d.ts +1 -1
  43. package/Tooltip/styles.d.ts +7 -7
  44. package/Tooltip/useTooltipPosition.d.ts +1 -1
  45. package/WhatsAppPreview/components/WhatsAppAttachment/styles.d.ts +54 -54
  46. package/WhatsAppPreview/components/WhatsAppMessageContent/styles.d.ts +4 -4
  47. package/WhatsAppPreview/styles.d.ts +51 -51
  48. package/helpers/__tests__/timezones.test.js +16 -1
  49. package/helpers/timezones.d.ts +2 -0
  50. package/helpers/timezones.js +5 -0
  51. package/package.json +27 -26
  52. package/Calendar/helpers-tz.d.ts +0 -2
  53. package/Calendar/helpers-tz.js +0 -47
@@ -1,13 +1,13 @@
1
1
  import { Color } from '@pushwoosh/kit-constants';
2
2
  export declare const MediaBox: import("styled-components").StyledComponent<"div", any, import("@pushwoosh/kit-helpers/styled-helpers").CommonBoxProps & {
3
- $alignContent?: import("@pushwoosh/kit-helpers/styled-helpers").AlignContentValue | undefined;
4
- $alignItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue | undefined;
5
- $gap?: import("@pushwoosh/kit-helpers/styled-helpers").StrNum | undefined;
6
- $justifyContent?: import("@pushwoosh/kit-helpers/styled-helpers").JustifyContentValue | undefined;
3
+ $alignContent?: import("@pushwoosh/kit-helpers/styled-helpers").AlignContentValue;
4
+ $alignItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue;
5
+ $gap?: import("@pushwoosh/kit-helpers/styled-helpers").StrNum;
6
+ $justifyContent?: import("@pushwoosh/kit-helpers/styled-helpers").JustifyContentValue;
7
7
  } & {
8
- $gridAutoFlow?: "row" | "column" | "dense" | "row dense" | "column dense" | undefined;
9
- $justifyItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue | undefined;
10
- $placeItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue | undefined;
8
+ $gridAutoFlow?: "row" | "column" | "dense" | "row dense" | "column dense";
9
+ $justifyItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue;
10
+ $placeItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue;
11
11
  } & {
12
12
  $gridAutoFlow: string;
13
13
  } & {
@@ -20,14 +20,14 @@ export declare const MediaBox: import("styled-components").StyledComponent<"div"
20
20
  $hasOverlay: boolean;
21
21
  }, "$gridAutoFlow" | "$bgColor" | "$borderRadius" | "$position" | "$alignContent" | "$justifyItems">;
22
22
  export declare const MediaFallback: import("styled-components").StyledComponent<"div", any, import("@pushwoosh/kit-helpers/styled-helpers").CommonBoxProps & {
23
- $alignContent?: import("@pushwoosh/kit-helpers/styled-helpers").AlignContentValue | undefined;
24
- $alignItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue | undefined;
25
- $gap?: import("@pushwoosh/kit-helpers/styled-helpers").StrNum | undefined;
26
- $justifyContent?: import("@pushwoosh/kit-helpers/styled-helpers").JustifyContentValue | undefined;
23
+ $alignContent?: import("@pushwoosh/kit-helpers/styled-helpers").AlignContentValue;
24
+ $alignItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue;
25
+ $gap?: import("@pushwoosh/kit-helpers/styled-helpers").StrNum;
26
+ $justifyContent?: import("@pushwoosh/kit-helpers/styled-helpers").JustifyContentValue;
27
27
  } & {
28
- $gridAutoFlow?: "row" | "column" | "dense" | "row dense" | "column dense" | undefined;
29
- $justifyItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue | undefined;
30
- $placeItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue | undefined;
28
+ $gridAutoFlow?: "row" | "column" | "dense" | "row dense" | "column dense";
29
+ $justifyItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue;
30
+ $placeItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue;
31
31
  } & {
32
32
  $gridAutoFlow: string;
33
33
  } & {
@@ -39,14 +39,14 @@ export declare const MediaFallback: import("styled-components").StyledComponent<
39
39
  $width: string;
40
40
  }, "$gridAutoFlow" | "$bgColor" | "$borderRadius" | "$height" | "$width" | "$alignContent" | "$justifyItems">;
41
41
  export declare const PlayButton: import("styled-components").StyledComponent<"div", any, import("@pushwoosh/kit-helpers/styled-helpers").CommonBoxProps & {
42
- $alignContent?: import("@pushwoosh/kit-helpers/styled-helpers").AlignContentValue | undefined;
43
- $alignItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue | undefined;
44
- $gap?: import("@pushwoosh/kit-helpers/styled-helpers").StrNum | undefined;
45
- $justifyContent?: import("@pushwoosh/kit-helpers/styled-helpers").JustifyContentValue | undefined;
42
+ $alignContent?: import("@pushwoosh/kit-helpers/styled-helpers").AlignContentValue;
43
+ $alignItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue;
44
+ $gap?: import("@pushwoosh/kit-helpers/styled-helpers").StrNum;
45
+ $justifyContent?: import("@pushwoosh/kit-helpers/styled-helpers").JustifyContentValue;
46
46
  } & {
47
- $gridAutoFlow?: "row" | "column" | "dense" | "row dense" | "column dense" | undefined;
48
- $justifyItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue | undefined;
49
- $placeItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue | undefined;
47
+ $gridAutoFlow?: "row" | "column" | "dense" | "row dense" | "column dense";
48
+ $justifyItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue;
49
+ $placeItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue;
50
50
  } & {
51
51
  $gridAutoFlow: string;
52
52
  } & {
@@ -56,14 +56,14 @@ export declare const PlayButton: import("styled-components").StyledComponent<"di
56
56
  $inset: number;
57
57
  }, "$gridAutoFlow" | "$inset" | "$position" | "$alignItems" | "$justifyContent">;
58
58
  export declare const PlayGlyph: import("styled-components").StyledComponent<"div", any, import("@pushwoosh/kit-helpers/styled-helpers").CommonBoxProps & {
59
- $alignContent?: import("@pushwoosh/kit-helpers/styled-helpers").AlignContentValue | undefined;
60
- $alignItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue | undefined;
61
- $gap?: import("@pushwoosh/kit-helpers/styled-helpers").StrNum | undefined;
62
- $justifyContent?: import("@pushwoosh/kit-helpers/styled-helpers").JustifyContentValue | undefined;
59
+ $alignContent?: import("@pushwoosh/kit-helpers/styled-helpers").AlignContentValue;
60
+ $alignItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue;
61
+ $gap?: import("@pushwoosh/kit-helpers/styled-helpers").StrNum;
62
+ $justifyContent?: import("@pushwoosh/kit-helpers/styled-helpers").JustifyContentValue;
63
63
  } & {
64
- $gridAutoFlow?: "row" | "column" | "dense" | "row dense" | "column dense" | undefined;
65
- $justifyItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue | undefined;
66
- $placeItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue | undefined;
64
+ $gridAutoFlow?: "row" | "column" | "dense" | "row dense" | "column dense";
65
+ $justifyItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue;
66
+ $placeItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue;
67
67
  } & {
68
68
  $gridAutoFlow: string;
69
69
  } & {
@@ -75,14 +75,14 @@ export declare const PlayGlyph: import("styled-components").StyledComponent<"div
75
75
  $bgColor: "rgba(255, 255, 255, 0.85)";
76
76
  }, "$gridAutoFlow" | "$bgColor" | "$borderRadius" | "$height" | "$width" | "$alignItems" | "$justifyContent">;
77
77
  export declare const MediaOverlay: import("styled-components").StyledComponent<"div", any, import("@pushwoosh/kit-helpers/styled-helpers").CommonBoxProps & {
78
- $alignContent?: import("@pushwoosh/kit-helpers/styled-helpers").AlignContentValue | undefined;
79
- $alignItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue | undefined;
80
- $gap?: import("@pushwoosh/kit-helpers/styled-helpers").StrNum | undefined;
81
- $justifyContent?: import("@pushwoosh/kit-helpers/styled-helpers").JustifyContentValue | undefined;
78
+ $alignContent?: import("@pushwoosh/kit-helpers/styled-helpers").AlignContentValue;
79
+ $alignItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue;
80
+ $gap?: import("@pushwoosh/kit-helpers/styled-helpers").StrNum;
81
+ $justifyContent?: import("@pushwoosh/kit-helpers/styled-helpers").JustifyContentValue;
82
82
  } & {
83
- $gridAutoFlow?: "row" | "column" | "dense" | "row dense" | "column dense" | undefined;
84
- $justifyItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue | undefined;
85
- $placeItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue | undefined;
83
+ $gridAutoFlow?: "row" | "column" | "dense" | "row dense" | "column dense";
84
+ $justifyItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue;
85
+ $placeItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue;
86
86
  } & {
87
87
  $gridAutoFlow: string;
88
88
  } & {
@@ -95,23 +95,23 @@ export declare const MediaOverlay: import("styled-components").StyledComponent<"
95
95
  };
96
96
  }, "$gridAutoFlow" | "$padding" | "$alignItems">;
97
97
  export declare const MediaDuration: import("styled-components").StyledComponent<"span", any, {
98
- $color?: string | undefined;
99
- $uppercase?: boolean | undefined;
100
- $ellipsis?: boolean | undefined;
101
- $variant?: import("@pushwoosh/kit-typography").TypographyVariant | undefined;
98
+ $color?: string;
99
+ $uppercase?: boolean;
100
+ $ellipsis?: boolean;
101
+ $variant?: import("@pushwoosh/kit-typography").TypographyVariant;
102
102
  } & {
103
103
  $variant: "footnote";
104
104
  $color: "#FFFFFF";
105
105
  }, "$color" | "$variant">;
106
106
  export declare const DocumentBox: import("styled-components").StyledComponent<"div", any, import("@pushwoosh/kit-helpers/styled-helpers").CommonBoxProps & {
107
- $alignContent?: import("@pushwoosh/kit-helpers/styled-helpers").AlignContentValue | undefined;
108
- $alignItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue | undefined;
109
- $gap?: import("@pushwoosh/kit-helpers/styled-helpers").StrNum | undefined;
110
- $justifyContent?: import("@pushwoosh/kit-helpers/styled-helpers").JustifyContentValue | undefined;
107
+ $alignContent?: import("@pushwoosh/kit-helpers/styled-helpers").AlignContentValue;
108
+ $alignItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue;
109
+ $gap?: import("@pushwoosh/kit-helpers/styled-helpers").StrNum;
110
+ $justifyContent?: import("@pushwoosh/kit-helpers/styled-helpers").JustifyContentValue;
111
111
  } & {
112
- $gridAutoFlow?: "row" | "column" | "dense" | "row dense" | "column dense" | undefined;
113
- $justifyItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue | undefined;
114
- $placeItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue | undefined;
112
+ $gridAutoFlow?: "row" | "column" | "dense" | "row dense" | "column dense";
113
+ $justifyItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue;
114
+ $placeItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue;
115
115
  } & {
116
116
  $gridAutoFlow: string;
117
117
  } & {
@@ -121,14 +121,14 @@ export declare const DocumentBox: import("styled-components").StyledComponent<"d
121
121
  }, "$gridAutoFlow" | "$bgColor" | "$borderRadius" | "$width">;
122
122
  export declare const DocumentThumbnail: import("styled-components").StyledComponent<"img", any, {}, never>;
123
123
  export declare const DocumentGlyph: import("styled-components").StyledComponent<"div", any, import("@pushwoosh/kit-helpers/styled-helpers").CommonBoxProps & {
124
- $alignContent?: import("@pushwoosh/kit-helpers/styled-helpers").AlignContentValue | undefined;
125
- $alignItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue | undefined;
126
- $gap?: import("@pushwoosh/kit-helpers/styled-helpers").StrNum | undefined;
127
- $justifyContent?: import("@pushwoosh/kit-helpers/styled-helpers").JustifyContentValue | undefined;
128
- } & {
129
- $gridAutoFlow?: "row" | "column" | "dense" | "row dense" | "column dense" | undefined;
130
- $justifyItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue | undefined;
131
- $placeItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue | undefined;
124
+ $alignContent?: import("@pushwoosh/kit-helpers/styled-helpers").AlignContentValue;
125
+ $alignItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue;
126
+ $gap?: import("@pushwoosh/kit-helpers/styled-helpers").StrNum;
127
+ $justifyContent?: import("@pushwoosh/kit-helpers/styled-helpers").JustifyContentValue;
128
+ } & {
129
+ $gridAutoFlow?: "row" | "column" | "dense" | "row dense" | "column dense";
130
+ $justifyItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue;
131
+ $placeItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue;
132
132
  } & {
133
133
  $gridAutoFlow: string;
134
134
  }, "$gridAutoFlow">;
@@ -1,6 +1,6 @@
1
1
  export declare const MessageText: import("styled-components").StyledComponent<"span", any, {
2
- $color?: string | undefined;
3
- $uppercase?: boolean | undefined;
4
- $ellipsis?: boolean | undefined;
5
- $variant?: import("@pushwoosh/kit-typography").TypographyVariant | undefined;
2
+ $color?: string;
3
+ $uppercase?: boolean;
4
+ $ellipsis?: boolean;
5
+ $variant?: import("@pushwoosh/kit-typography").TypographyVariant;
6
6
  }, never>;
@@ -1,13 +1,13 @@
1
1
  import { Color, ShapeRadius } from '@pushwoosh/kit-constants';
2
2
  export declare const Backdrop: import("styled-components").StyledComponent<"div", any, import("@pushwoosh/kit-helpers/styled-helpers").CommonBoxProps & {
3
- $alignContent?: import("@pushwoosh/kit-helpers/styled-helpers").AlignContentValue | undefined;
4
- $alignItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue | undefined;
5
- $gap?: import("@pushwoosh/kit-helpers/styled-helpers").StrNum | undefined;
6
- $justifyContent?: import("@pushwoosh/kit-helpers/styled-helpers").JustifyContentValue | undefined;
3
+ $alignContent?: import("@pushwoosh/kit-helpers/styled-helpers").AlignContentValue;
4
+ $alignItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue;
5
+ $gap?: import("@pushwoosh/kit-helpers/styled-helpers").StrNum;
6
+ $justifyContent?: import("@pushwoosh/kit-helpers/styled-helpers").JustifyContentValue;
7
7
  } & {
8
- $gridAutoFlow?: "row" | "column" | "dense" | "row dense" | "column dense" | undefined;
9
- $justifyItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue | undefined;
10
- $placeItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue | undefined;
8
+ $gridAutoFlow?: "row" | "column" | "dense" | "row dense" | "column dense";
9
+ $justifyItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue;
10
+ $placeItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue;
11
11
  } & {
12
12
  $gridAutoFlow: string;
13
13
  } & {
@@ -19,14 +19,14 @@ export declare const Backdrop: import("styled-components").StyledComponent<"div"
19
19
  $width: number;
20
20
  }, "$gridAutoFlow" | "$bgColor" | "$borderRadius" | "$padding" | "$width" | "$alignContent" | "$justifyItems">;
21
21
  export declare const Card: import("styled-components").StyledComponent<"div", any, import("@pushwoosh/kit-helpers/styled-helpers").CommonBoxProps & {
22
- $alignContent?: import("@pushwoosh/kit-helpers/styled-helpers").AlignContentValue | undefined;
23
- $alignItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue | undefined;
24
- $gap?: import("@pushwoosh/kit-helpers/styled-helpers").StrNum | undefined;
25
- $justifyContent?: import("@pushwoosh/kit-helpers/styled-helpers").JustifyContentValue | undefined;
22
+ $alignContent?: import("@pushwoosh/kit-helpers/styled-helpers").AlignContentValue;
23
+ $alignItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue;
24
+ $gap?: import("@pushwoosh/kit-helpers/styled-helpers").StrNum;
25
+ $justifyContent?: import("@pushwoosh/kit-helpers/styled-helpers").JustifyContentValue;
26
26
  } & {
27
- $gridAutoFlow?: "row" | "column" | "dense" | "row dense" | "column dense" | undefined;
28
- $justifyItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue | undefined;
29
- $placeItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue | undefined;
27
+ $gridAutoFlow?: "row" | "column" | "dense" | "row dense" | "column dense";
28
+ $justifyItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue;
29
+ $placeItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue;
30
30
  } & {
31
31
  $gridAutoFlow: string;
32
32
  } & {
@@ -39,20 +39,20 @@ export declare const Card: import("styled-components").StyledComponent<"div", an
39
39
  $width: number;
40
40
  }, "$gridAutoFlow" | "$bgColor" | "$border" | "$borderRadius" | "$padding" | "$width" | "$alignContent" | "$gap">;
41
41
  export declare const PreviewText: import("styled-components").StyledComponent<"span", any, {
42
- $color?: string | undefined;
43
- $uppercase?: boolean | undefined;
44
- $ellipsis?: boolean | undefined;
45
- $variant?: import("@pushwoosh/kit-typography").TypographyVariant | undefined;
42
+ $color?: string;
43
+ $uppercase?: boolean;
44
+ $ellipsis?: boolean;
45
+ $variant?: import("@pushwoosh/kit-typography").TypographyVariant;
46
46
  }, never>;
47
47
  export declare const AppBar: import("styled-components").StyledComponent<"div", any, import("@pushwoosh/kit-helpers/styled-helpers").CommonBoxProps & {
48
- $alignContent?: import("@pushwoosh/kit-helpers/styled-helpers").AlignContentValue | undefined;
49
- $alignItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue | undefined;
50
- $gap?: import("@pushwoosh/kit-helpers/styled-helpers").StrNum | undefined;
51
- $justifyContent?: import("@pushwoosh/kit-helpers/styled-helpers").JustifyContentValue | undefined;
48
+ $alignContent?: import("@pushwoosh/kit-helpers/styled-helpers").AlignContentValue;
49
+ $alignItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue;
50
+ $gap?: import("@pushwoosh/kit-helpers/styled-helpers").StrNum;
51
+ $justifyContent?: import("@pushwoosh/kit-helpers/styled-helpers").JustifyContentValue;
52
52
  } & {
53
- $gridAutoFlow?: "row" | "column" | "dense" | "row dense" | "column dense" | undefined;
54
- $justifyItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue | undefined;
55
- $placeItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue | undefined;
53
+ $gridAutoFlow?: "row" | "column" | "dense" | "row dense" | "column dense";
54
+ $justifyItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue;
55
+ $placeItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue;
56
56
  } & {
57
57
  $gridAutoFlow: string;
58
58
  } & {
@@ -65,23 +65,23 @@ export declare const AppBar: import("styled-components").StyledComponent<"div",
65
65
  };
66
66
  }, "$gridAutoFlow" | "$padding" | "$alignItems" | "$gap" | "$justifyContent">;
67
67
  export declare const AppName: import("styled-components").StyledComponent<"span", any, {
68
- $color?: string | undefined;
69
- $uppercase?: boolean | undefined;
70
- $ellipsis?: boolean | undefined;
71
- $variant?: import("@pushwoosh/kit-typography").TypographyVariant | undefined;
68
+ $color?: string;
69
+ $uppercase?: boolean;
70
+ $ellipsis?: boolean;
71
+ $variant?: import("@pushwoosh/kit-typography").TypographyVariant;
72
72
  } & {
73
73
  $color: Color;
74
74
  $ellipsis: boolean;
75
75
  }, "$color" | "$ellipsis">;
76
76
  export declare const MissedRow: import("styled-components").StyledComponent<"div", any, import("@pushwoosh/kit-helpers/styled-helpers").CommonBoxProps & {
77
- $alignContent?: import("@pushwoosh/kit-helpers/styled-helpers").AlignContentValue | undefined;
78
- $alignItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue | undefined;
79
- $gap?: import("@pushwoosh/kit-helpers/styled-helpers").StrNum | undefined;
80
- $justifyContent?: import("@pushwoosh/kit-helpers/styled-helpers").JustifyContentValue | undefined;
77
+ $alignContent?: import("@pushwoosh/kit-helpers/styled-helpers").AlignContentValue;
78
+ $alignItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue;
79
+ $gap?: import("@pushwoosh/kit-helpers/styled-helpers").StrNum;
80
+ $justifyContent?: import("@pushwoosh/kit-helpers/styled-helpers").JustifyContentValue;
81
81
  } & {
82
- $gridAutoFlow?: "row" | "column" | "dense" | "row dense" | "column dense" | undefined;
83
- $justifyItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue | undefined;
84
- $placeItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue | undefined;
82
+ $gridAutoFlow?: "row" | "column" | "dense" | "row dense" | "column dense";
83
+ $justifyItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue;
84
+ $placeItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue;
85
85
  } & {
86
86
  $sizes: import("@pushwoosh/kit-helpers/styled-helpers").StrNum;
87
87
  } & {
@@ -90,14 +90,14 @@ export declare const MissedRow: import("styled-components").StyledComponent<"div
90
90
  $sizes: string;
91
91
  }, "$alignItems" | "$gap" | "$sizes">;
92
92
  export declare const MissedGlyph: import("styled-components").StyledComponent<"div", any, import("@pushwoosh/kit-helpers/styled-helpers").CommonBoxProps & {
93
- $alignContent?: import("@pushwoosh/kit-helpers/styled-helpers").AlignContentValue | undefined;
94
- $alignItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue | undefined;
95
- $gap?: import("@pushwoosh/kit-helpers/styled-helpers").StrNum | undefined;
96
- $justifyContent?: import("@pushwoosh/kit-helpers/styled-helpers").JustifyContentValue | undefined;
93
+ $alignContent?: import("@pushwoosh/kit-helpers/styled-helpers").AlignContentValue;
94
+ $alignItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue;
95
+ $gap?: import("@pushwoosh/kit-helpers/styled-helpers").StrNum;
96
+ $justifyContent?: import("@pushwoosh/kit-helpers/styled-helpers").JustifyContentValue;
97
97
  } & {
98
- $gridAutoFlow?: "row" | "column" | "dense" | "row dense" | "column dense" | undefined;
99
- $justifyItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue | undefined;
100
- $placeItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue | undefined;
98
+ $gridAutoFlow?: "row" | "column" | "dense" | "row dense" | "column dense";
99
+ $justifyItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue;
100
+ $placeItems?: import("@pushwoosh/kit-helpers/styled-helpers").ItemAlignmentValue;
101
101
  } & {
102
102
  $gridAutoFlow: string;
103
103
  } & {
@@ -109,19 +109,19 @@ export declare const MissedGlyph: import("styled-components").StyledComponent<"d
109
109
  $height: number;
110
110
  }, "$gridAutoFlow" | "$bgColor" | "$borderRadius" | "$height" | "$width" | "$alignItems" | "$justifyContent">;
111
111
  export declare const MissedTitle: import("styled-components").StyledComponent<"span", any, {
112
- $color?: string | undefined;
113
- $uppercase?: boolean | undefined;
114
- $ellipsis?: boolean | undefined;
115
- $variant?: import("@pushwoosh/kit-typography").TypographyVariant | undefined;
112
+ $color?: string;
113
+ $uppercase?: boolean;
114
+ $ellipsis?: boolean;
115
+ $variant?: import("@pushwoosh/kit-typography").TypographyVariant;
116
116
  } & {
117
117
  $color: Color;
118
118
  $ellipsis: boolean;
119
119
  }, "$color" | "$ellipsis">;
120
120
  export declare const MissedHint: import("styled-components").StyledComponent<"span", any, {
121
- $color?: string | undefined;
122
- $uppercase?: boolean | undefined;
123
- $ellipsis?: boolean | undefined;
124
- $variant?: import("@pushwoosh/kit-typography").TypographyVariant | undefined;
121
+ $color?: string;
122
+ $uppercase?: boolean;
123
+ $ellipsis?: boolean;
124
+ $variant?: import("@pushwoosh/kit-typography").TypographyVariant;
125
125
  } & {
126
126
  $color: Color;
127
127
  }, "$color">;
@@ -1,6 +1,7 @@
1
- import { canonicalizeTimezone, findTimezoneOption, formatTimezoneLabel, formatTimezoneOffset, getTimezoneOffsetSafe, listTimezones, resolveTimezoneOption } from '../timezones';
1
+ import { canonicalizeTimezone, findTimezoneOption, formatTimezoneLabel, formatTimezoneOffset, formatTimezoneShort, getTimezoneOffsetSafe, listTimezones, resolveTimezoneOption } from '../timezones';
2
2
  const winter = new Date('2026-01-15T12:00:00Z');
3
3
  const melbourneDst = new Date('2026-10-10T12:00:00Z');
4
+ const melbourneStandard = new Date('2026-06-15T12:00:00Z');
4
5
  describe('formatTimezoneOffset', () => {
5
6
  it('renders sign, hours and minutes', () => {
6
7
  expect(formatTimezoneOffset(300)).toBe('GMT+05:00');
@@ -9,6 +10,20 @@ describe('formatTimezoneOffset', () => {
9
10
  expect(formatTimezoneOffset(0)).toBe('GMT+00:00');
10
11
  });
11
12
  });
13
+ describe('formatTimezoneShort', () => {
14
+ it('renders the bare offset the calendar badge shows', () => {
15
+ expect(formatTimezoneShort('Asia/Almaty', winter)).toBe('GMT+05:00');
16
+ expect(formatTimezoneShort('Asia/Kolkata', winter)).toBe('GMT+05:30');
17
+ expect(formatTimezoneShort('UTC', winter)).toBe('GMT+00:00');
18
+ });
19
+ it('follows DST at the given instant', () => {
20
+ expect(formatTimezoneShort('Australia/Melbourne', melbourneStandard)).toBe('GMT+10:00');
21
+ expect(formatTimezoneShort('Australia/Melbourne', melbourneDst)).toBe('GMT+11:00');
22
+ });
23
+ it('keeps an unknown zone readable', () => {
24
+ expect(formatTimezoneShort('Not/AZone', winter)).toBe('Not/AZone');
25
+ });
26
+ });
12
27
  describe('formatTimezoneLabel', () => {
13
28
  it('uses the current tzdata: Kazakhstan is UTC+5 since 2024', () => {
14
29
  expect(formatTimezoneLabel('Asia/Almaty', winter)).toBe('(GMT+05:00) Asia/Almaty');
@@ -13,6 +13,8 @@ export declare function getTimezoneOffsetSafe(timezone: string, at?: Date): numb
13
13
  export declare function formatTimezoneOffset(minutes: number): string;
14
14
  /** The shared picker label, `(GMT+05:00) Asia/Almaty` at instant `at`; a zone the engine doesn't know is labelled by its bare name. */
15
15
  export declare function formatTimezoneLabel(timezone: string, at?: Date): string;
16
+ /** Compact badge for a zone, `GMT+05:00`; a zone the engine doesn't know is shown by its bare name. */
17
+ export declare function formatTimezoneShort(timezone: string, at?: Date): string;
16
18
  /** Option for any stored zone name — aliases, `Etc/GMT±N`, POSIX abbreviations — kept verbatim as the value. */
17
19
  export declare function resolveTimezoneOption(timezone: string, at?: Date): TimezoneOption;
18
20
  /** Zones the browser knows plus `UTC` and every non-empty `include` value, sorted by offset at `at` then by name. Pass the stored value as `include` so an old alias stays selectable and is re-saved unchanged. */
@@ -35,6 +35,11 @@ export function formatTimezoneLabel(timezone, at = new Date()) {
35
35
  const offset = getTimezoneOffsetSafe(timezone, at);
36
36
  return offset === null ? timezone : `(${formatTimezoneOffset(offset)}) ${timezone}`;
37
37
  }
38
+ /** Compact badge for a zone, `GMT+05:00`; a zone the engine doesn't know is shown by its bare name. */
39
+ export function formatTimezoneShort(timezone, at = new Date()) {
40
+ const offset = getTimezoneOffsetSafe(timezone, at);
41
+ return offset === null ? timezone : formatTimezoneOffset(offset);
42
+ }
38
43
  /** Option for any stored zone name — aliases, `Etc/GMT±N`, POSIX abbreviations — kept verbatim as the value. */
39
44
  export function resolveTimezoneOption(timezone, at = new Date()) {
40
45
  return {
package/package.json CHANGED
@@ -1,45 +1,34 @@
1
1
  {
2
2
  "name": "@pushwoosh/dumb-components",
3
- "version": "1.1.236",
3
+ "version": "1.1.238",
4
4
  "description": "React components to build Pushwoosh products",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
7
7
  "types": "index.d.ts",
8
8
  "sideEffects": false,
9
9
  "publishConfig": {
10
- "access": "public"
10
+ "access": "public",
11
+ "directory": "dist"
11
12
  },
12
- "scripts": {
13
- "start": "npm --prefix ./storybook run storybook",
14
- "build": "pushwoosh-engine lib:build",
15
- "check": "npm run check:lint && npm run check:types",
16
- "check:lint": "echo \"Run check:lint\" && eslint src",
17
- "check:lint-fix": "echo \"Run check:lint\" && eslint src --fix",
18
- "check:types": "echo \"Run check:types\" && pushwoosh-engine lib:check-types",
19
- "test": "jest"
20
- },
21
- "pre-commit": "check",
22
13
  "engines": {
23
- "node": ">= 22",
24
- "npm": ">= 7"
14
+ "node": ">= 24"
25
15
  },
26
16
  "devDependencies": {
27
- "@pushwoosh/frontend-builder-engine": "^3.1.0",
28
17
  "@svgr/webpack": "^8.1.0",
18
+ "@testing-library/dom": "^10.4.2",
29
19
  "@testing-library/jest-dom": "^6.9.1",
30
20
  "@testing-library/react": "^16.3.0",
31
21
  "@types/jest": "^30.0.0",
32
22
  "@types/lodash": "^4.17.13",
33
- "@types/react": "^18.2.69",
34
- "@types/react-dom": "^18.2.22",
23
+ "@types/react": "^18.3.31",
24
+ "@types/react-dom": "^18.3.7",
35
25
  "@types/react-transition-group": "^4.4.12",
36
- "@types/styled-components": "^5.1.36",
26
+ "@types/styled-components": "^5.1.34",
37
27
  "glob": "^11.0.3",
38
28
  "jest": "^30.2.0",
39
29
  "jest-environment-jsdom": "^30.2.0",
40
- "pre-commit": "^1.2.2",
41
- "react": "^18.2.0",
42
- "react-dom": "^18.2.0",
30
+ "react": "^18.3.1",
31
+ "react-dom": "^18.3.1",
43
32
  "styled-components": "^5.3.11",
44
33
  "ts-jest": "^29.4.6"
45
34
  },
@@ -47,16 +36,19 @@
47
36
  "@codemirror/lang-html": "^6.4.9",
48
37
  "@codemirror/lang-json": "^6.0.1",
49
38
  "@codemirror/lang-liquid": "^6.2.2",
39
+ "@codemirror/language": "^6.12.4",
40
+ "@codemirror/view": "^6.43.11",
50
41
  "@floating-ui/react-dom": "^2.1.2",
51
42
  "@lezer/highlight": "^1.2.1",
52
- "@pushwoosh/kit-constants": "^1.9.0",
53
- "@pushwoosh/kit-helpers": "^4.11.0",
43
+ "@pushwoosh/kit-constants": "^1.12.3",
44
+ "@pushwoosh/kit-helpers": "^4.12.5",
54
45
  "@pushwoosh/kit-icons": "^2.1.16",
55
- "@pushwoosh/kit-typography": "^1.7.5",
46
+ "@pushwoosh/kit-typography": "^1.8.4",
56
47
  "@tippyjs/react": "^4.2.6",
57
48
  "@uiw/codemirror-themes": "^4.23.8",
58
49
  "@uiw/react-codemirror": "^4.23.8",
59
50
  "emoji-mart": "^5.6.0",
51
+ "es-toolkit": "^1.52.0",
60
52
  "liquidjs": "^10.18.0",
61
53
  "lodash": "^4.17.23",
62
54
  "polished": "^4.3.1",
@@ -64,11 +56,20 @@
64
56
  "react-transition-group": "^4.4.5",
65
57
  "slate": "^0.126.0",
66
58
  "slate-history": "^0.113.1",
67
- "slate-react": "^0.126.0"
59
+ "slate-react": "^0.126.0",
60
+ "tippy.js": "^6.3.7"
68
61
  },
69
62
  "peerDependencies": {
70
63
  "react": "^16.14.0 || ^18.3.1",
71
64
  "react-dom": "^16.14.0 || ^18.3.1",
72
65
  "styled-components": "^5.3.3 || ^6.0.0"
66
+ },
67
+ "scripts": {
68
+ "build": "pushwoosh-engine lib:build",
69
+ "check": "pnpm run check:lint && pnpm run check:types",
70
+ "check:lint": "echo \"Run check:lint\" && eslint src",
71
+ "check:lint-fix": "echo \"Run check:lint\" && eslint src --fix",
72
+ "check:types": "echo \"Run check:types\" && pushwoosh-engine lib:check-types",
73
+ "test": "jest"
73
74
  }
74
- }
75
+ }
@@ -1,2 +0,0 @@
1
- export declare function groupTimezonesByOffset(at?: Date): [number, string[]][];
2
- export declare function formatTimezoneShort(timezone: string): string;
@@ -1,47 +0,0 @@
1
- import { formatTwoDigitNumber, getTimezoneOffset } from './helpers';
2
- function getAllTimeZones() {
3
- return Intl.supportedValuesOf('timeZone');
4
- }
5
- function formatTimezoneOffset(minutes) {
6
- const minutesAbs = Math.abs(minutes);
7
- const hours = Math.floor(minutesAbs / 60);
8
- const mins = minutesAbs % 60;
9
- const sign = minutes < 0 ? '-' : '+';
10
- if (mins === 0) {
11
- return `UTC${sign}${hours}`;
12
- } else {
13
- return `UTC${sign}${hours}:${formatTwoDigitNumber(mins)}`;
14
- }
15
- }
16
- export function groupTimezonesByOffset(at = new Date()) {
17
- const zones = getAllTimeZones();
18
- const groups = new Map();
19
- for (const tz of zones) {
20
- try {
21
- const diff = getTimezoneOffset(tz, at);
22
- const arr = groups.get(diff);
23
- if (arr) {
24
- arr.push(tz);
25
- } else {
26
- groups.set(diff, [tz]);
27
- }
28
- } catch (e) {
29
- console.warn(`Cannot get timezone info for "${tz}"`, e);
30
- }
31
- }
32
- const result = [];
33
- for (const [diff, list] of groups) {
34
- list.sort((a, b) => a.localeCompare(b));
35
- result.push([diff, list]);
36
- }
37
- result.sort((a, b) => a[0] - b[0]);
38
- return result;
39
- }
40
- export function formatTimezoneShort(timezone) {
41
- const offsetMinutes = getTimezoneOffset(timezone, new Date());
42
- const formattedOffset = formatTimezoneOffset(offsetMinutes);
43
- if (formattedOffset === 'UTC+0' || formattedOffset === 'UTC-0') {
44
- return 'UTC';
45
- }
46
- return formattedOffset;
47
- }