@pushwoosh/dumb-components 2.12.2 → 3.0.1

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 (177) hide show
  1. package/Alert/styles.d.ts +6 -14
  2. package/Banner/maps.d.ts +2 -6
  3. package/Banner/styles.d.ts +2 -6
  4. package/Button/maps.d.ts +12 -36
  5. package/Button/styles.d.ts +12 -36
  6. package/Calendar/CalendarMonth/styles.d.ts +2 -6
  7. package/Calendar/CalendarMonthSlider/styles.d.ts +5 -9
  8. package/CodeEditor/styles.d.ts +3 -7
  9. package/Drawer/components/Drawer/styles.d.ts +2 -2
  10. package/Drawer/components/DrawerDocs/styles.d.ts +1 -3
  11. package/DropdownMenu/components/DropdownMenuSection/styles.d.ts +3 -7
  12. package/DropdownMenu/shared/styles.d.ts +3 -7
  13. package/EmailTemplatePreview/components/NoEmailTemplatePreview/styles.d.ts +6 -14
  14. package/EnhancedInput/styles.d.ts +2 -6
  15. package/ExportResult/styles.d.ts +9 -21
  16. package/FieldBox/styles.d.ts +7 -15
  17. package/FrequencyCapping/styles.d.ts +6 -14
  18. package/GetStartedPage/styles.d.ts +1 -3
  19. package/InboxPreview/components/InboxCellCarousel/styles.d.ts +9 -21
  20. package/InboxPreview/styles.d.ts +7 -17
  21. package/InputFile/styles.d.ts +1 -3
  22. package/Modal/components/Modal/styles.d.ts +2 -2
  23. package/Modal/components/ModalContent/styles.d.ts +9 -21
  24. package/Modal/components/ModalTitle/styles.d.ts +3 -7
  25. package/NativeRichMediaPreview/components/NativeRichMediaRewardPanel/styles.d.ts +3 -7
  26. package/NativeRichMediaPreview/components/NativeRichMediaThemeChip/styles.d.ts +1 -3
  27. package/NativeRichMediaPreview/components/NativeRichMediaTitle/styles.d.ts +3 -7
  28. package/NativeRichMediaPreview/views/NativeRichMediaModalView/styles.d.ts +2 -6
  29. package/NativeRichMediaPreview/views/NativeRichMediaScratchcardView/styles.d.ts +2 -6
  30. package/NativeRichMediaPreview/views/NativeRichMediaSpinwheelView/styles.d.ts +2 -6
  31. package/NotificationInbox/styles.d.ts +21 -51
  32. package/Pagination/styles.d.ts +2 -6
  33. package/ProgressBar/styles.d.ts +1 -3
  34. package/PushPreview/styles.d.ts +7 -15
  35. package/Radio/styles.d.ts +3 -7
  36. package/RadioCard/styles.d.ts +7 -15
  37. package/RichMessageEditor/slate/styles.d.ts +2 -4
  38. package/RichMessageEditor/styles.d.ts +7 -15
  39. package/RichmediaPreview/styles.d.ts +3 -7
  40. package/SendRate/styles.d.ts +6 -14
  41. package/Switch/styles.d.ts +2 -2
  42. package/Tabs/components/TabBarScrollableFrame/styles.d.ts +1 -3
  43. package/Tooltip/styles.d.ts +3 -7
  44. package/Tooltip/useTooltipPosition.d.ts +1 -1
  45. package/WhatsAppPreview/components/WhatsAppAttachment/styles.d.ts +46 -102
  46. package/WhatsAppPreview/components/WhatsAppMessageContent/styles.d.ts +3 -7
  47. package/WhatsAppPreview/styles.d.ts +40 -92
  48. package/index.d.ts +0 -1
  49. package/index.js +0 -1
  50. package/package.json +6 -6
  51. package/shared/dropdownField/styles.d.ts +2 -2
  52. package/DateTimePicker/components/AutosizeInput/AutosizeInput.d.ts +0 -3
  53. package/DateTimePicker/components/AutosizeInput/AutosizeInput.js +0 -39
  54. package/DateTimePicker/components/AutosizeInput/index.d.ts +0 -1
  55. package/DateTimePicker/components/AutosizeInput/index.js +0 -1
  56. package/DateTimePicker/components/AutosizeInput/styles.d.ts +0 -3
  57. package/DateTimePicker/components/AutosizeInput/styles.js +0 -5
  58. package/DateTimePicker/components/AutosizeInput/types.d.ts +0 -10
  59. package/DateTimePicker/components/AutosizeInput/types.js +0 -1
  60. package/DateTimePicker/components/DatePicker/DatePicker.d.ts +0 -8
  61. package/DateTimePicker/components/DatePicker/DatePicker.js +0 -65
  62. package/DateTimePicker/components/DatePicker/index.d.ts +0 -1
  63. package/DateTimePicker/components/DatePicker/index.js +0 -1
  64. package/DateTimePicker/components/DatePicker/types.d.ts +0 -20
  65. package/DateTimePicker/components/DatePicker/types.js +0 -1
  66. package/DateTimePicker/components/DatePickerField/DatePickerField.d.ts +0 -8
  67. package/DateTimePicker/components/DatePickerField/DatePickerField.js +0 -86
  68. package/DateTimePicker/components/DatePickerField/index.d.ts +0 -1
  69. package/DateTimePicker/components/DatePickerField/index.js +0 -1
  70. package/DateTimePicker/components/DatePickerField/types.d.ts +0 -20
  71. package/DateTimePicker/components/DatePickerField/types.js +0 -1
  72. package/DateTimePicker/components/DateTimePicker/DateTimePicker.d.ts +0 -8
  73. package/DateTimePicker/components/DateTimePicker/DateTimePicker.js +0 -64
  74. package/DateTimePicker/components/DateTimePicker/index.d.ts +0 -1
  75. package/DateTimePicker/components/DateTimePicker/index.js +0 -1
  76. package/DateTimePicker/components/DateTimePicker/types.d.ts +0 -13
  77. package/DateTimePicker/components/DateTimePicker/types.js +0 -1
  78. package/DateTimePicker/components/DateTimePickerField/DateTimePickerField.d.ts +0 -8
  79. package/DateTimePicker/components/DateTimePickerField/DateTimePickerField.js +0 -91
  80. package/DateTimePicker/components/DateTimePickerField/helpers.d.ts +0 -8
  81. package/DateTimePicker/components/DateTimePickerField/helpers.js +0 -13
  82. package/DateTimePicker/components/DateTimePickerField/index.d.ts +0 -1
  83. package/DateTimePicker/components/DateTimePickerField/index.js +0 -1
  84. package/DateTimePicker/components/DateTimePickerField/types.d.ts +0 -20
  85. package/DateTimePicker/components/DateTimePickerField/types.js +0 -1
  86. package/DateTimePicker/components/DecadeView/DecadeView.d.ts +0 -3
  87. package/DateTimePicker/components/DecadeView/DecadeView.js +0 -35
  88. package/DateTimePicker/components/DecadeView/index.d.ts +0 -1
  89. package/DateTimePicker/components/DecadeView/index.js +0 -1
  90. package/DateTimePicker/components/DecadeView/types.d.ts +0 -6
  91. package/DateTimePicker/components/DecadeView/types.js +0 -1
  92. package/DateTimePicker/components/Input/Input.d.ts +0 -3
  93. package/DateTimePicker/components/Input/Input.js +0 -17
  94. package/DateTimePicker/components/Input/index.d.ts +0 -1
  95. package/DateTimePicker/components/Input/index.js +0 -1
  96. package/DateTimePicker/components/Input/styles.d.ts +0 -3
  97. package/DateTimePicker/components/Input/styles.js +0 -6
  98. package/DateTimePicker/components/Input/types.d.ts +0 -11
  99. package/DateTimePicker/components/Input/types.js +0 -1
  100. package/DateTimePicker/components/Month/Month.d.ts +0 -3
  101. package/DateTimePicker/components/Month/Month.js +0 -78
  102. package/DateTimePicker/components/Month/index.d.ts +0 -1
  103. package/DateTimePicker/components/Month/index.js +0 -1
  104. package/DateTimePicker/components/Month/types.d.ts +0 -8
  105. package/DateTimePicker/components/Month/types.js +0 -1
  106. package/DateTimePicker/components/MonthView/MonthView.d.ts +0 -3
  107. package/DateTimePicker/components/MonthView/MonthView.js +0 -41
  108. package/DateTimePicker/components/MonthView/index.d.ts +0 -1
  109. package/DateTimePicker/components/MonthView/index.js +0 -1
  110. package/DateTimePicker/components/MonthView/types.d.ts +0 -11
  111. package/DateTimePicker/components/MonthView/types.js +0 -1
  112. package/DateTimePicker/components/NumberPicker/NumberPicker.d.ts +0 -3
  113. package/DateTimePicker/components/NumberPicker/NumberPicker.js +0 -133
  114. package/DateTimePicker/components/NumberPicker/helpers.d.ts +0 -2
  115. package/DateTimePicker/components/NumberPicker/helpers.js +0 -5
  116. package/DateTimePicker/components/NumberPicker/index.d.ts +0 -1
  117. package/DateTimePicker/components/NumberPicker/index.js +0 -1
  118. package/DateTimePicker/components/NumberPicker/styles.d.ts +0 -3
  119. package/DateTimePicker/components/NumberPicker/styles.js +0 -6
  120. package/DateTimePicker/components/NumberPicker/types.d.ts +0 -13
  121. package/DateTimePicker/components/NumberPicker/types.js +0 -1
  122. package/DateTimePicker/components/PickerPlate/PickerPlate.d.ts +0 -3
  123. package/DateTimePicker/components/PickerPlate/PickerPlate.js +0 -27
  124. package/DateTimePicker/components/PickerPlate/index.d.ts +0 -1
  125. package/DateTimePicker/components/PickerPlate/index.js +0 -1
  126. package/DateTimePicker/components/PickerPlate/styles.d.ts +0 -17
  127. package/DateTimePicker/components/PickerPlate/styles.js +0 -9
  128. package/DateTimePicker/components/PickerPlate/types.d.ts +0 -7
  129. package/DateTimePicker/components/PickerPlate/types.js +0 -1
  130. package/DateTimePicker/components/YearView/YearView.d.ts +0 -3
  131. package/DateTimePicker/components/YearView/YearView.js +0 -36
  132. package/DateTimePicker/components/YearView/index.d.ts +0 -1
  133. package/DateTimePicker/components/YearView/index.js +0 -1
  134. package/DateTimePicker/components/YearView/types.d.ts +0 -6
  135. package/DateTimePicker/components/YearView/types.js +0 -1
  136. package/DateTimePicker/constants.d.ts +0 -5
  137. package/DateTimePicker/constants.js +0 -9
  138. package/DateTimePicker/helpers.d.ts +0 -13
  139. package/DateTimePicker/helpers.js +0 -81
  140. package/DateTimePicker/index.d.ts +0 -8
  141. package/DateTimePicker/index.js +0 -8
  142. package/DateTimePicker/polyglot/index.d.ts +0 -2
  143. package/DateTimePicker/polyglot/index.js +0 -33
  144. package/DateTimePicker/polyglot/messages_ar.d.ts +0 -3
  145. package/DateTimePicker/polyglot/messages_ar.js +0 -11
  146. package/DateTimePicker/polyglot/messages_bn.d.ts +0 -3
  147. package/DateTimePicker/polyglot/messages_bn.js +0 -11
  148. package/DateTimePicker/polyglot/messages_de.d.ts +0 -3
  149. package/DateTimePicker/polyglot/messages_de.js +0 -11
  150. package/DateTimePicker/polyglot/messages_en.d.ts +0 -3
  151. package/DateTimePicker/polyglot/messages_en.js +0 -11
  152. package/DateTimePicker/polyglot/messages_es.d.ts +0 -3
  153. package/DateTimePicker/polyglot/messages_es.js +0 -11
  154. package/DateTimePicker/polyglot/messages_fr.d.ts +0 -3
  155. package/DateTimePicker/polyglot/messages_fr.js +0 -11
  156. package/DateTimePicker/polyglot/messages_he.d.ts +0 -3
  157. package/DateTimePicker/polyglot/messages_he.js +0 -11
  158. package/DateTimePicker/polyglot/messages_hi.d.ts +0 -3
  159. package/DateTimePicker/polyglot/messages_hi.js +0 -11
  160. package/DateTimePicker/polyglot/messages_ja.d.ts +0 -3
  161. package/DateTimePicker/polyglot/messages_ja.js +0 -11
  162. package/DateTimePicker/polyglot/messages_ko.d.ts +0 -3
  163. package/DateTimePicker/polyglot/messages_ko.js +0 -11
  164. package/DateTimePicker/polyglot/messages_pt.d.ts +0 -3
  165. package/DateTimePicker/polyglot/messages_pt.js +0 -11
  166. package/DateTimePicker/polyglot/messages_ru.d.ts +0 -3
  167. package/DateTimePicker/polyglot/messages_ru.js +0 -11
  168. package/DateTimePicker/polyglot/messages_th.d.ts +0 -3
  169. package/DateTimePicker/polyglot/messages_th.js +0 -11
  170. package/DateTimePicker/polyglot/messages_zh.d.ts +0 -3
  171. package/DateTimePicker/polyglot/messages_zh.js +0 -11
  172. package/DateTimePicker/polyglot/types.d.ts +0 -12
  173. package/DateTimePicker/polyglot/types.js +0 -1
  174. package/DateTimePicker/styles.d.ts +0 -371
  175. package/DateTimePicker/styles.js +0 -66
  176. package/DateTimePicker/types.d.ts +0 -11
  177. package/DateTimePicker/types.js +0 -1
@@ -1,66 +0,0 @@
1
- import styled, { css } from 'styled-components';
2
- import { Color, ShapeRadius, FontSize, FontWeight, LineHeight, Shadow } from '@pushwoosh/kit-constants';
3
- import { Horizontal } from '@pushwoosh/kit-helpers';
4
- const disabled = css(["border:1px solid ", ";background:linear-gradient( to top left,rgba(0,0,0,0) 0%,rgba(0,0,0,0) calc(50% - 0.8px),", " 50%,rgba(0,0,0,0) calc(50% + 0.8px),rgba(0,0,0,0) 100% );opacity:0.8;pointer-events:none;"], Color.FORM, Color.FORM);
5
- const CalendarCellBaseStyled = styled.div.withConfig({
6
- displayName: "CalendarCellBaseStyled",
7
- componentId: "sc-t3ruuk-0"
8
- })(["display:flex;justify-content:center;align-items:center;"]);
9
- export const CellBox = styled(CalendarCellBaseStyled).withConfig({
10
- displayName: "CellBox",
11
- componentId: "sc-t3ruuk-1"
12
- })(["height:", ";color:", ";background-color:", ";border-radius:", ";opacity:", ";outline:", ";cursor:pointer;", " &:hover{background-color:", ";}"], ({
13
- $height
14
- }) => $height || '32px', ({
15
- $isActive
16
- }) => $isActive ? Color.CLEAR : Color.MAIN, ({
17
- $isActive
18
- }) => $isActive ? Color.BRIGHT : Color.CLEAR, ShapeRadius.CONTROL, ({
19
- $secondary
20
- }) => $secondary ? 0.8 : 1, ({
21
- $isActive,
22
- $secondActive
23
- }) => $secondActive && !$isActive ? '1px solid #00a2ff5a' : 'none', ({
24
- $isDisabled
25
- }) => $isDisabled && disabled, ({
26
- $isActive
27
- }) => $isActive ? Color.BRIGHT_HOVER : Color.SOFT_LIGHT);
28
- export const DayHeader = styled(CalendarCellBaseStyled).withConfig({
29
- displayName: "DayHeader",
30
- componentId: "sc-t3ruuk-2"
31
- })(["height:32px;color:", ";font-weight:", ";font-size:", ";line-height:", ";"], Color.LOCKED, FontWeight.REGULAR, FontSize.SMALL, LineHeight.SMALL);
32
- export const DateInfo = styled.div.withConfig({
33
- displayName: "DateInfo",
34
- componentId: "sc-t3ruuk-3"
35
- })(["display:flex;align-items:center;height:24px;color:", ";background:", ";padding:2px 8px;font-weight:", ";font-size:", ";line-height:", ";border-radius:", ";cursor:pointer;"], Color.MAIN, Color.SOFT_LIGHT, FontWeight.MEDIUM, FontSize.SMALL, LineHeight.SMALL, ShapeRadius.CONTROL);
36
- export const RoundedBlock = styled(Horizontal).attrs({
37
- $alignItems: 'center',
38
- $padding: '0 12px'
39
- }).withConfig({
40
- displayName: "RoundedBlock",
41
- componentId: "sc-t3ruuk-4"
42
- })(["display:inline-grid;height:36px;border-radius:", ";"], ShapeRadius.CONTROL);
43
- export const InputFrame = styled(RoundedBlock).withConfig({
44
- displayName: "InputFrame",
45
- componentId: "sc-t3ruuk-5"
46
- })(["position:relative;color:", ";border:1px solid ", ";box-sizing:border-box;cursor:pointer;&:focus-within{border-color:", ";}& > input{color:#4b5057;height:34px;border:none;padding:0;outline:none;line-height:140%;}"], ({
47
- $empty
48
- }) => $empty ? Color.BRIGHT : Color.MAIN, ({
49
- $error
50
- }) => $error ? '#ff0000' : Color.FORM, Color.BRIGHT);
51
- export const SingleInputFrame = styled(InputFrame).withConfig({
52
- displayName: "SingleInputFrame",
53
- componentId: "sc-t3ruuk-6"
54
- })(["grid-template-columns:", ";padding-right:0;background-color:", ";pointer-events:", ";& > div:last-of-type{height:34px;padding-left:1px;background-color:", ";border-radius:0 ", " ", " 0;& > div{display:flex;justify-content:center;align-items:center;color:", ";background-color:", ";cursor:pointer;&:hover > *{transform:scale(1.3);}&:first-of-type{border-top-right-radius:", ";}&:last-of-type{border-bottom-right-radius:", ";}}}"], ({
55
- $hasHint
56
- }) => $hasHint ? '1fr max-content 21px' : '1fr 21px', ({
57
- $isDisabled
58
- }) => $isDisabled ? Color.FROZEN : Color.CLEAR, ({
59
- $isDisabled
60
- }) => $isDisabled ? 'none' : 'auto', Color.FORM, ShapeRadius.CONTROL, ShapeRadius.CONTROL, Color.MAIN, Color.FROZEN, ShapeRadius.CONTROL, ShapeRadius.CONTROL);
61
- export const CalendarBox = styled.div.withConfig({
62
- displayName: "CalendarBox",
63
- componentId: "sc-t3ruuk-7"
64
- })(["width:282px;background-color:", ";padding:16px;border:1px solid ", ";border-radius:", ";box-shadow:", ";box-sizing:border-box;pointer-events:", ";z-index:1;"], Color.CLEAR, Color.FORM, ShapeRadius.CONTROL, Shadow.REGULAR, ({
65
- $disabled
66
- }) => $disabled ? 'none' : 'auto');
@@ -1,11 +0,0 @@
1
- /** Granularity unit used by the (deprecated) date/time picker internals. */
2
- export type Period = 'year' | 'month' | 'day' | 'hour' | 'minute' | 'second';
3
- /** A value with optional min/max bounds for the (deprecated) date/time picker internals. */
4
- export type RangeOptions = {
5
- /** The current date value. */
6
- value: Date;
7
- /** Earliest selectable date. */
8
- minDate?: Date | string;
9
- /** Latest selectable date. */
10
- maxDate?: Date | string;
11
- };
@@ -1 +0,0 @@
1
- export {};