@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.
- package/Alert/styles.d.ts +6 -14
- package/Banner/maps.d.ts +2 -6
- package/Banner/styles.d.ts +2 -6
- package/Button/maps.d.ts +12 -36
- package/Button/styles.d.ts +12 -36
- package/Calendar/CalendarMonth/styles.d.ts +2 -6
- package/Calendar/CalendarMonthSlider/styles.d.ts +5 -9
- package/CodeEditor/styles.d.ts +3 -7
- package/Drawer/components/Drawer/styles.d.ts +2 -2
- package/Drawer/components/DrawerDocs/styles.d.ts +1 -3
- package/DropdownMenu/components/DropdownMenuSection/styles.d.ts +3 -7
- package/DropdownMenu/shared/styles.d.ts +3 -7
- package/EmailTemplatePreview/components/NoEmailTemplatePreview/styles.d.ts +6 -14
- package/EnhancedInput/styles.d.ts +2 -6
- package/ExportResult/styles.d.ts +9 -21
- package/FieldBox/styles.d.ts +7 -15
- package/FrequencyCapping/styles.d.ts +6 -14
- package/GetStartedPage/styles.d.ts +1 -3
- package/InboxPreview/components/InboxCellCarousel/styles.d.ts +9 -21
- package/InboxPreview/styles.d.ts +7 -17
- package/InputFile/styles.d.ts +1 -3
- package/Modal/components/Modal/styles.d.ts +2 -2
- package/Modal/components/ModalContent/styles.d.ts +9 -21
- package/Modal/components/ModalTitle/styles.d.ts +3 -7
- package/NativeRichMediaPreview/components/NativeRichMediaRewardPanel/styles.d.ts +3 -7
- package/NativeRichMediaPreview/components/NativeRichMediaThemeChip/styles.d.ts +1 -3
- package/NativeRichMediaPreview/components/NativeRichMediaTitle/styles.d.ts +3 -7
- package/NativeRichMediaPreview/views/NativeRichMediaModalView/styles.d.ts +2 -6
- package/NativeRichMediaPreview/views/NativeRichMediaScratchcardView/styles.d.ts +2 -6
- package/NativeRichMediaPreview/views/NativeRichMediaSpinwheelView/styles.d.ts +2 -6
- package/NotificationInbox/styles.d.ts +21 -51
- package/Pagination/styles.d.ts +2 -6
- package/ProgressBar/styles.d.ts +1 -3
- package/PushPreview/styles.d.ts +7 -15
- package/Radio/styles.d.ts +3 -7
- package/RadioCard/styles.d.ts +7 -15
- package/RichMessageEditor/slate/styles.d.ts +2 -4
- package/RichMessageEditor/styles.d.ts +7 -15
- package/RichmediaPreview/styles.d.ts +3 -7
- package/SendRate/styles.d.ts +6 -14
- package/Switch/styles.d.ts +2 -2
- package/Tabs/components/TabBarScrollableFrame/styles.d.ts +1 -3
- package/Tooltip/styles.d.ts +3 -7
- package/Tooltip/useTooltipPosition.d.ts +1 -1
- package/WhatsAppPreview/components/WhatsAppAttachment/styles.d.ts +46 -102
- package/WhatsAppPreview/components/WhatsAppMessageContent/styles.d.ts +3 -7
- package/WhatsAppPreview/styles.d.ts +40 -92
- package/index.d.ts +0 -1
- package/index.js +0 -1
- package/package.json +6 -6
- package/shared/dropdownField/styles.d.ts +2 -2
- package/DateTimePicker/components/AutosizeInput/AutosizeInput.d.ts +0 -3
- package/DateTimePicker/components/AutosizeInput/AutosizeInput.js +0 -39
- package/DateTimePicker/components/AutosizeInput/index.d.ts +0 -1
- package/DateTimePicker/components/AutosizeInput/index.js +0 -1
- package/DateTimePicker/components/AutosizeInput/styles.d.ts +0 -3
- package/DateTimePicker/components/AutosizeInput/styles.js +0 -5
- package/DateTimePicker/components/AutosizeInput/types.d.ts +0 -10
- package/DateTimePicker/components/AutosizeInput/types.js +0 -1
- package/DateTimePicker/components/DatePicker/DatePicker.d.ts +0 -8
- package/DateTimePicker/components/DatePicker/DatePicker.js +0 -65
- package/DateTimePicker/components/DatePicker/index.d.ts +0 -1
- package/DateTimePicker/components/DatePicker/index.js +0 -1
- package/DateTimePicker/components/DatePicker/types.d.ts +0 -20
- package/DateTimePicker/components/DatePicker/types.js +0 -1
- package/DateTimePicker/components/DatePickerField/DatePickerField.d.ts +0 -8
- package/DateTimePicker/components/DatePickerField/DatePickerField.js +0 -86
- package/DateTimePicker/components/DatePickerField/index.d.ts +0 -1
- package/DateTimePicker/components/DatePickerField/index.js +0 -1
- package/DateTimePicker/components/DatePickerField/types.d.ts +0 -20
- package/DateTimePicker/components/DatePickerField/types.js +0 -1
- package/DateTimePicker/components/DateTimePicker/DateTimePicker.d.ts +0 -8
- package/DateTimePicker/components/DateTimePicker/DateTimePicker.js +0 -64
- package/DateTimePicker/components/DateTimePicker/index.d.ts +0 -1
- package/DateTimePicker/components/DateTimePicker/index.js +0 -1
- package/DateTimePicker/components/DateTimePicker/types.d.ts +0 -13
- package/DateTimePicker/components/DateTimePicker/types.js +0 -1
- package/DateTimePicker/components/DateTimePickerField/DateTimePickerField.d.ts +0 -8
- package/DateTimePicker/components/DateTimePickerField/DateTimePickerField.js +0 -91
- package/DateTimePicker/components/DateTimePickerField/helpers.d.ts +0 -8
- package/DateTimePicker/components/DateTimePickerField/helpers.js +0 -13
- package/DateTimePicker/components/DateTimePickerField/index.d.ts +0 -1
- package/DateTimePicker/components/DateTimePickerField/index.js +0 -1
- package/DateTimePicker/components/DateTimePickerField/types.d.ts +0 -20
- package/DateTimePicker/components/DateTimePickerField/types.js +0 -1
- package/DateTimePicker/components/DecadeView/DecadeView.d.ts +0 -3
- package/DateTimePicker/components/DecadeView/DecadeView.js +0 -35
- package/DateTimePicker/components/DecadeView/index.d.ts +0 -1
- package/DateTimePicker/components/DecadeView/index.js +0 -1
- package/DateTimePicker/components/DecadeView/types.d.ts +0 -6
- package/DateTimePicker/components/DecadeView/types.js +0 -1
- package/DateTimePicker/components/Input/Input.d.ts +0 -3
- package/DateTimePicker/components/Input/Input.js +0 -17
- package/DateTimePicker/components/Input/index.d.ts +0 -1
- package/DateTimePicker/components/Input/index.js +0 -1
- package/DateTimePicker/components/Input/styles.d.ts +0 -3
- package/DateTimePicker/components/Input/styles.js +0 -6
- package/DateTimePicker/components/Input/types.d.ts +0 -11
- package/DateTimePicker/components/Input/types.js +0 -1
- package/DateTimePicker/components/Month/Month.d.ts +0 -3
- package/DateTimePicker/components/Month/Month.js +0 -78
- package/DateTimePicker/components/Month/index.d.ts +0 -1
- package/DateTimePicker/components/Month/index.js +0 -1
- package/DateTimePicker/components/Month/types.d.ts +0 -8
- package/DateTimePicker/components/Month/types.js +0 -1
- package/DateTimePicker/components/MonthView/MonthView.d.ts +0 -3
- package/DateTimePicker/components/MonthView/MonthView.js +0 -41
- package/DateTimePicker/components/MonthView/index.d.ts +0 -1
- package/DateTimePicker/components/MonthView/index.js +0 -1
- package/DateTimePicker/components/MonthView/types.d.ts +0 -11
- package/DateTimePicker/components/MonthView/types.js +0 -1
- package/DateTimePicker/components/NumberPicker/NumberPicker.d.ts +0 -3
- package/DateTimePicker/components/NumberPicker/NumberPicker.js +0 -133
- package/DateTimePicker/components/NumberPicker/helpers.d.ts +0 -2
- package/DateTimePicker/components/NumberPicker/helpers.js +0 -5
- package/DateTimePicker/components/NumberPicker/index.d.ts +0 -1
- package/DateTimePicker/components/NumberPicker/index.js +0 -1
- package/DateTimePicker/components/NumberPicker/styles.d.ts +0 -3
- package/DateTimePicker/components/NumberPicker/styles.js +0 -6
- package/DateTimePicker/components/NumberPicker/types.d.ts +0 -13
- package/DateTimePicker/components/NumberPicker/types.js +0 -1
- package/DateTimePicker/components/PickerPlate/PickerPlate.d.ts +0 -3
- package/DateTimePicker/components/PickerPlate/PickerPlate.js +0 -27
- package/DateTimePicker/components/PickerPlate/index.d.ts +0 -1
- package/DateTimePicker/components/PickerPlate/index.js +0 -1
- package/DateTimePicker/components/PickerPlate/styles.d.ts +0 -17
- package/DateTimePicker/components/PickerPlate/styles.js +0 -9
- package/DateTimePicker/components/PickerPlate/types.d.ts +0 -7
- package/DateTimePicker/components/PickerPlate/types.js +0 -1
- package/DateTimePicker/components/YearView/YearView.d.ts +0 -3
- package/DateTimePicker/components/YearView/YearView.js +0 -36
- package/DateTimePicker/components/YearView/index.d.ts +0 -1
- package/DateTimePicker/components/YearView/index.js +0 -1
- package/DateTimePicker/components/YearView/types.d.ts +0 -6
- package/DateTimePicker/components/YearView/types.js +0 -1
- package/DateTimePicker/constants.d.ts +0 -5
- package/DateTimePicker/constants.js +0 -9
- package/DateTimePicker/helpers.d.ts +0 -13
- package/DateTimePicker/helpers.js +0 -81
- package/DateTimePicker/index.d.ts +0 -8
- package/DateTimePicker/index.js +0 -8
- package/DateTimePicker/polyglot/index.d.ts +0 -2
- package/DateTimePicker/polyglot/index.js +0 -33
- package/DateTimePicker/polyglot/messages_ar.d.ts +0 -3
- package/DateTimePicker/polyglot/messages_ar.js +0 -11
- package/DateTimePicker/polyglot/messages_bn.d.ts +0 -3
- package/DateTimePicker/polyglot/messages_bn.js +0 -11
- package/DateTimePicker/polyglot/messages_de.d.ts +0 -3
- package/DateTimePicker/polyglot/messages_de.js +0 -11
- package/DateTimePicker/polyglot/messages_en.d.ts +0 -3
- package/DateTimePicker/polyglot/messages_en.js +0 -11
- package/DateTimePicker/polyglot/messages_es.d.ts +0 -3
- package/DateTimePicker/polyglot/messages_es.js +0 -11
- package/DateTimePicker/polyglot/messages_fr.d.ts +0 -3
- package/DateTimePicker/polyglot/messages_fr.js +0 -11
- package/DateTimePicker/polyglot/messages_he.d.ts +0 -3
- package/DateTimePicker/polyglot/messages_he.js +0 -11
- package/DateTimePicker/polyglot/messages_hi.d.ts +0 -3
- package/DateTimePicker/polyglot/messages_hi.js +0 -11
- package/DateTimePicker/polyglot/messages_ja.d.ts +0 -3
- package/DateTimePicker/polyglot/messages_ja.js +0 -11
- package/DateTimePicker/polyglot/messages_ko.d.ts +0 -3
- package/DateTimePicker/polyglot/messages_ko.js +0 -11
- package/DateTimePicker/polyglot/messages_pt.d.ts +0 -3
- package/DateTimePicker/polyglot/messages_pt.js +0 -11
- package/DateTimePicker/polyglot/messages_ru.d.ts +0 -3
- package/DateTimePicker/polyglot/messages_ru.js +0 -11
- package/DateTimePicker/polyglot/messages_th.d.ts +0 -3
- package/DateTimePicker/polyglot/messages_th.js +0 -11
- package/DateTimePicker/polyglot/messages_zh.d.ts +0 -3
- package/DateTimePicker/polyglot/messages_zh.js +0 -11
- package/DateTimePicker/polyglot/types.d.ts +0 -12
- package/DateTimePicker/polyglot/types.js +0 -1
- package/DateTimePicker/styles.d.ts +0 -371
- package/DateTimePicker/styles.js +0 -66
- package/DateTimePicker/types.d.ts +0 -11
- package/DateTimePicker/types.js +0 -1
package/DateTimePicker/styles.js
DELETED
|
@@ -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
|
-
};
|
package/DateTimePicker/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|