@pushwoosh/dumb-components 3.5.0 → 4.0.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.
- package/AccessForbidden/styles.d.ts +1 -0
- package/Badge/styles.js +1 -1
- package/Banner/Banner.js +2 -2
- package/Button/Button.js +17 -6
- package/Button/colors.d.ts +4 -2
- package/Button/colors.js +64 -9
- package/Button/constants.d.ts +21 -0
- package/Button/constants.js +54 -0
- package/Button/styles.d.ts +9 -219
- package/Button/styles.js +23 -80
- package/Button/types.d.ts +9 -3
- package/Calendar/CalendarMonthSlider/styles.js +1 -1
- package/Calendar/CalendarSuperForm/components/CalendarTimeAndTimezoneSection/CalendarTimeAndTimezoneSection.js +3 -2
- package/CardMetric/styles.js +1 -1
- package/CrashScreen/styles.d.ts +1 -0
- package/Drawer/components/DrawerContent/styles.js +1 -1
- package/DropdownMenu/components/DropdownMenuSection/DropdownMenuSection.js +1 -1
- package/EditableField/styles.d.ts +3 -2
- package/EditableField/styles.js +3 -3
- package/ExportResult/styles.d.ts +3 -2
- package/ExportResult/styles.js +2 -2
- package/FieldBox/FieldBox.js +1 -1
- package/InboxPreview/components/InboxCellCarousel/styles.js +1 -1
- package/InboxPreview/components/InboxIOSCell/InboxIOSCell.js +1 -1
- package/InboxPreview/components/InboxWebCell/InboxWebCell.js +1 -1
- package/InboxPreview/constants.js +3 -3
- package/InputFile/styles.js +1 -1
- package/Modal/components/ModalTitle/styles.d.ts +3 -2
- package/Modal/components/ModalTitle/styles.js +2 -2
- package/NativeRichMediaPreview/components/NativeRichMediaRewardPanel/styles.d.ts +2 -2
- package/NativeRichMediaPreview/components/NativeRichMediaRewardPanel/styles.js +1 -1
- package/NativeRichMediaPreview/components/NativeRichMediaTitle/styles.d.ts +2 -2
- package/NativeRichMediaPreview/components/NativeRichMediaTitle/styles.js +1 -1
- package/NotificationInbox/NotificationBar.js +1 -1
- package/NotificationInbox/NotificationInbox.js +5 -5
- package/PageHeader/components/PageHeaderEditable/styles.d.ts +3 -2
- package/PageHeader/components/PageHeaderEditable/styles.js +2 -2
- package/PageHeader/components/PageHeaderError/styles.d.ts +3 -2
- package/PageHeader/components/PageHeaderError/styles.js +2 -2
- package/ProgressBar/styles.d.ts +3 -2
- package/ProgressBar/styles.js +2 -2
- package/RadioCard/RadioCard.js +2 -2
- package/SortButton/styles.js +1 -1
- package/StatisticCard/styles.d.ts +32 -6
- package/StatisticCard/styles.js +6 -4
- package/Tabs/components/TabBar/TabBar.js +2 -2
- package/Tabs/components/TabBase/styles.d.ts +3 -2
- package/Tabs/components/TabBase/styles.js +2 -2
- package/Toast/Toast.js +2 -2
- package/WhatsAppPreview/components/WhatsAppMessageContent/styles.d.ts +2 -2
- package/WhatsAppPreview/styles.d.ts +2 -2
- package/package.json +3 -3
- package/Button/maps.d.ts +0 -240
- package/Button/maps.js +0 -37
package/Button/styles.js
CHANGED
|
@@ -1,22 +1,33 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
import { Color,
|
|
3
|
-
import {
|
|
1
|
+
import styled, { css } from 'styled-components';
|
|
2
|
+
import { Color, ShapeRadius, UnitSize } from '@pushwoosh/kit-constants';
|
|
3
|
+
import { colorStyles } from './colors';
|
|
4
|
+
import { geometryBySizeAndView } from './constants';
|
|
4
5
|
export const ButtonIcon = styled.div.withConfig({
|
|
5
6
|
displayName: "ButtonIcon",
|
|
6
7
|
componentId: "sc-qltvdl-0"
|
|
7
|
-
})(["flex:0 0 auto;"]);
|
|
8
|
+
})(["display:flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:var(--btn-icon-slot);"]);
|
|
8
9
|
export const ButtonContent = styled.div.withConfig({
|
|
9
10
|
displayName: "ButtonContent",
|
|
10
11
|
componentId: "sc-qltvdl-1"
|
|
11
|
-
})(["display:grid;justify-content:start;& > div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}&:first-child{justify-content:center;}
|
|
12
|
+
})(["display:grid;justify-content:start;padding:0 var(--btn-label-padding);& > div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}&:first-child{justify-content:center;}"]);
|
|
12
13
|
export const ButtonSpinner = styled.div.withConfig({
|
|
13
14
|
displayName: "ButtonSpinner",
|
|
14
15
|
componentId: "sc-qltvdl-2"
|
|
15
16
|
})(["position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-wrap:nowrap;align-items:center;justify-content:center;"]);
|
|
17
|
+
function geometryVars(geometry) {
|
|
18
|
+
return css(["--btn-height:", ";--btn-border:", ";--btn-padding:", ";--btn-label-padding:", ";--btn-gap:", ";--btn-icon-slot:", ";font-size:", ";line-height:", ";font-weight:", ";text-transform:", ";"], geometry.height, geometry.border, geometry.padding, geometry.labelPadding, geometry.gap, geometry.iconSlot, geometry.fontSize, geometry.lineHeight, geometry.fontWeight, geometry.textTransform);
|
|
19
|
+
}
|
|
20
|
+
const ghostCompactHitArea = css(["&::before{content:'';position:absolute;inset:calc((var(--btn-height) - ", ") / 2) 0;}"], UnitSize.COMPACT_HEIGHT);
|
|
16
21
|
export const ButtonBox = styled.button.withConfig({
|
|
17
22
|
displayName: "ButtonBox",
|
|
18
23
|
componentId: "sc-qltvdl-3"
|
|
19
|
-
})(["position:relative;display:inline-grid;align-items:center;grid-template-columns:", ";gap:
|
|
24
|
+
})(["", " position:relative;display:inline-grid;align-items:center;grid-template-columns:", ";gap:var(--btn-gap);box-sizing:border-box;height:var(--btn-height);padding:0 calc(var(--btn-padding) - var(--btn-border));appearance:none !important;border-style:solid;border-width:var(--btn-border) var(--btn-border-right,var(--btn-border)) var(--btn-border) var(--btn-border-left,var(--btn-border));border-radius:var(--btn-radius-left,", ") var(--btn-radius-right,", ") var(--btn-radius-right,", ") var(--btn-radius-left,", ");text-decoration:none;cursor:", ";user-select:none;&:hover{text-decoration:none;}&:focus{outline:none;}&:active{pointer-events:", ";}", " & ", "{opacity:", ";}", ""], ({
|
|
25
|
+
$size,
|
|
26
|
+
$view
|
|
27
|
+
}) => geometryVars(geometryBySizeAndView[$size][$view]), props => [props.$hasLeftIcon && 'auto', props.$hasContent && 'minmax(0, 1fr)', props.$hasRightIcon && 'auto'].filter(Boolean).join(' '), ShapeRadius.CONTROL, ShapeRadius.CONTROL, ShapeRadius.CONTROL, ShapeRadius.CONTROL, props => props.$isDisabled || props.$isLoading ? 'not-allowed!important' : 'pointer', props => props.$isDisabled || props.$isLoading ? 'none' : 'auto', ({
|
|
28
|
+
$size,
|
|
29
|
+
$view
|
|
30
|
+
}) => $size === 'compact' && $view === 'ghost' && ghostCompactHitArea, /* sc-selector */ButtonContent, ({
|
|
20
31
|
$hideContent,
|
|
21
32
|
$isLoading
|
|
22
33
|
}) => {
|
|
@@ -24,85 +35,17 @@ export const ButtonBox = styled.button.withConfig({
|
|
|
24
35
|
return 0;
|
|
25
36
|
}
|
|
26
37
|
return $isLoading ? 0.5 : 1;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
componentId: "sc-qltvdl-4"
|
|
33
|
-
})(["height:16px;padding:0;font-size:", ";font-weight:", ";text-transform:uppercase;& ", "{padding:0;}", ";--danger-ghost-hover-bg-color:transparent;"], FontSize.SMALL, FontWeight.BOLD, /* sc-selector */ButtonContent, /* sc-custom "display: none;" */dangerGhostColors);
|
|
34
|
-
export const ButtonBoxDangerGhostField = styled(ButtonBox).withConfig({
|
|
35
|
-
displayName: "ButtonBoxDangerGhostField",
|
|
36
|
-
componentId: "sc-qltvdl-5"
|
|
37
|
-
})(["height:", ";padding:0 calc(6px - 1px);font-weight:", ";", ";"], UnitSize.FIELD_HEIGHT, FontWeight.MEDIUM, /* sc-custom "display: none;" */dangerGhostColors);
|
|
38
|
-
// danger shape --------------
|
|
39
|
-
const dangerShapeColors = createColors(colors.danger.shape);
|
|
40
|
-
export const ButtonBoxDangerShapeCompact = styled(ButtonBox).withConfig({
|
|
41
|
-
displayName: "ButtonBoxDangerShapeCompact",
|
|
42
|
-
componentId: "sc-qltvdl-6"
|
|
43
|
-
})(["height:28px;padding:0 calc(6px - 1px);font-size:", ";line-height:", ";font-weight:", ";text-transform:uppercase;", ";"], FontSize.SMALL, LineHeight.SMALL, FontWeight.BOLD, /* sc-custom "display: none;" */dangerShapeColors);
|
|
44
|
-
export const ButtonBoxDangerShapeField = styled(ButtonBox).withConfig({
|
|
45
|
-
displayName: "ButtonBoxDangerShapeField",
|
|
46
|
-
componentId: "sc-qltvdl-7"
|
|
47
|
-
})(["height:", ";padding:0 calc(6px - 1px);font-weight:", ";", ";"], UnitSize.FIELD_HEIGHT, FontWeight.MEDIUM, /* sc-custom "display: none;" */dangerShapeColors);
|
|
48
|
-
// primary shape --------------
|
|
49
|
-
const primaryShapeColors = createColors(colors.primary.shape);
|
|
50
|
-
export const ButtonBoxPrimaryShapeCompact = styled(ButtonBox).withConfig({
|
|
51
|
-
displayName: "ButtonBoxPrimaryShapeCompact",
|
|
52
|
-
componentId: "sc-qltvdl-8"
|
|
53
|
-
})(["height:28px;padding:0 calc(6px - 1px);font-size:", ";line-height:", ";font-weight:", ";text-transform:uppercase;", ";"], FontSize.SMALL, LineHeight.SMALL, FontWeight.BOLD, /* sc-custom "display: none;" */primaryShapeColors);
|
|
54
|
-
export const ButtonBoxPrimaryShapeField = styled(ButtonBox).withConfig({
|
|
55
|
-
displayName: "ButtonBoxPrimaryShapeField",
|
|
56
|
-
componentId: "sc-qltvdl-9"
|
|
57
|
-
})(["height:", ";padding:0 calc(6px - 1px);font-weight:", ";", ";"], UnitSize.FIELD_HEIGHT, FontWeight.MEDIUM, /* sc-custom "display: none;" */primaryShapeColors);
|
|
58
|
-
// primary ghost --------------
|
|
59
|
-
const primaryGhostColors = createColors(colors.primary.ghost);
|
|
60
|
-
export const ButtonBoxPrimaryGhostCompact = styled(ButtonBox).withConfig({
|
|
61
|
-
displayName: "ButtonBoxPrimaryGhostCompact",
|
|
62
|
-
componentId: "sc-qltvdl-10"
|
|
63
|
-
})(["height:", ";padding:0;font-size:", ";line-height:", ";font-weight:", ";text-transform:uppercase;& ", "{padding:4px 0;}", ";--primary-ghost-hover-bg-color:transparent;"], UnitSize.COMPACT_HEIGHT, FontSize.SMALL, LineHeight.SMALL, FontWeight.BOLD, /* sc-selector */ButtonContent, /* sc-custom "display: none;" */primaryGhostColors);
|
|
64
|
-
export const ButtonBoxPrimaryGhostField = styled(ButtonBox).withConfig({
|
|
65
|
-
displayName: "ButtonBoxPrimaryGhostField",
|
|
66
|
-
componentId: "sc-qltvdl-11"
|
|
67
|
-
})(["height:", ";padding:0 calc(6px - 1px);font-weight:", ";", ";"], UnitSize.FIELD_HEIGHT, FontWeight.MEDIUM, /* sc-custom "display: none;" */primaryGhostColors);
|
|
68
|
-
// secondary ghost --------------
|
|
69
|
-
const secondaryGhostColors = createColors(colors.secondary.ghost);
|
|
70
|
-
export const ButtonBoxSecondaryGhostCompact = styled(ButtonBox).withConfig({
|
|
71
|
-
displayName: "ButtonBoxSecondaryGhostCompact",
|
|
72
|
-
componentId: "sc-qltvdl-12"
|
|
73
|
-
})(["height:", ";padding:0;font-size:", ";line-height:", ";font-weight:", ";text-transform:uppercase;& ", "{padding:4px 0;}", ";--secondary-ghost-base-color:", ";--secondary-ghost-hover-bg-color:transparent;"], UnitSize.COMPACT_HEIGHT, FontSize.SMALL, LineHeight.SMALL, FontWeight.BOLD, /* sc-selector */ButtonContent, /* sc-custom "display: none;" */secondaryGhostColors, Color.SOFT);
|
|
74
|
-
export const ButtonBoxSecondaryGhostField = styled(ButtonBox).withConfig({
|
|
75
|
-
displayName: "ButtonBoxSecondaryGhostField",
|
|
76
|
-
componentId: "sc-qltvdl-13"
|
|
77
|
-
})(["height:", ";padding:0 calc(6px - 1px);font-weight:", ";", ";"], UnitSize.FIELD_HEIGHT, FontWeight.MEDIUM, /* sc-custom "display: none;" */secondaryGhostColors);
|
|
78
|
-
// secondary shape --------------
|
|
79
|
-
const secondaryShapeColors = createColors(colors.secondary.shape);
|
|
80
|
-
export const ButtonBoxSecondaryShapeCompact = styled(ButtonBox).withConfig({
|
|
81
|
-
displayName: "ButtonBoxSecondaryShapeCompact",
|
|
82
|
-
componentId: "sc-qltvdl-14"
|
|
83
|
-
})(["height:28px;padding:0 calc(6px - 1px);font-size:", ";line-height:", ";font-weight:", ";text-transform:uppercase;", ";"], FontSize.SMALL, LineHeight.SMALL, FontWeight.MEDIUM, /* sc-custom "display: none;" */secondaryShapeColors);
|
|
84
|
-
export const ButtonBoxSecondaryShapeField = styled(ButtonBox).withConfig({
|
|
85
|
-
displayName: "ButtonBoxSecondaryShapeField",
|
|
86
|
-
componentId: "sc-qltvdl-15"
|
|
87
|
-
})(["height:", ";padding:0 calc(6px - 1px);font-weight:", ";", ";"], UnitSize.FIELD_HEIGHT, FontWeight.MEDIUM, /* sc-custom "display: none;" */secondaryShapeColors);
|
|
38
|
+
}, ({
|
|
39
|
+
$color,
|
|
40
|
+
$view,
|
|
41
|
+
$size
|
|
42
|
+
}) => colorStyles[$color][$view][$size]);
|
|
88
43
|
export const RemoveButtonBox = styled.button.withConfig({
|
|
89
44
|
displayName: "RemoveButtonBox",
|
|
90
|
-
componentId: "sc-qltvdl-
|
|
45
|
+
componentId: "sc-qltvdl-4"
|
|
91
46
|
})(["width:", ";height:", ";padding:0;appearance:none !important;border:none;background:transparent;cursor:pointer;color:", ";&:hover{color:", ";}&:active{color:", ";}"], UnitSize.ICON_SMALL, UnitSize.ICON_SMALL, Color.PHANTOM, Color.DANGER_HOVER, Color.DANGER_PRESSED);
|
|
92
47
|
ButtonBox.displayName = 'ButtonBox';
|
|
93
48
|
ButtonIcon.displayName = 'ButtonIcon';
|
|
94
49
|
ButtonContent.displayName = 'ButtonContent';
|
|
95
50
|
ButtonSpinner.displayName = 'ButtonSpinner';
|
|
96
|
-
ButtonBoxDangerGhostCompact.displayName = 'ButtonBoxDangerGhostCompact';
|
|
97
|
-
ButtonBoxDangerGhostField.displayName = 'ButtonBoxDangerGhostField';
|
|
98
|
-
ButtonBoxDangerShapeCompact.displayName = 'ButtonBoxDangerShapeCompact';
|
|
99
|
-
ButtonBoxDangerShapeField.displayName = 'ButtonBoxDangerShapeField';
|
|
100
|
-
ButtonBoxPrimaryGhostCompact.displayName = 'ButtonBoxPrimaryGhostCompact';
|
|
101
|
-
ButtonBoxPrimaryGhostField.displayName = 'ButtonBoxPrimaryGhostField';
|
|
102
|
-
ButtonBoxPrimaryShapeCompact.displayName = 'ButtonBoxPrimaryShapeCompact';
|
|
103
|
-
ButtonBoxPrimaryShapeField.displayName = 'ButtonBoxPrimaryShapeField';
|
|
104
|
-
ButtonBoxSecondaryGhostCompact.displayName = 'ButtonBoxSecondaryGhostCompact';
|
|
105
|
-
ButtonBoxSecondaryGhostField.displayName = 'ButtonBoxSecondaryGhostField';
|
|
106
|
-
ButtonBoxSecondaryShapeCompact.displayName = 'ButtonBoxSecondaryShapeCompact';
|
|
107
|
-
ButtonBoxSecondaryShapeField.displayName = 'ButtonBoxSecondaryShapeField';
|
|
108
51
|
RemoveButtonBox.displayName = 'RemoveButtonBox';
|
package/Button/types.d.ts
CHANGED
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
import type { JSX, ReactNode, Ref, ComponentType } from 'react';
|
|
2
|
+
/** Visual intent of a {@link Button}. */
|
|
3
|
+
export type ButtonColor = 'primary' | 'secondary' | 'danger';
|
|
4
|
+
/** Height preset of a {@link Button}. */
|
|
5
|
+
export type ButtonSize = 'field' | 'compact';
|
|
6
|
+
/** Surface style of a {@link Button}. */
|
|
7
|
+
export type ButtonView = 'shape' | 'ghost';
|
|
2
8
|
/** Props shared by every {@link Button} variant, regardless of the rendered element. */
|
|
3
9
|
export type RequiredButtonProps = {
|
|
4
10
|
/** Ref forwarded to the underlying element; prefer the typed `boxRef` on the variant props. */
|
|
5
11
|
readonly boxRef?: any;
|
|
6
12
|
/** Visual intent: `primary` (main action), `secondary` (neutral), `danger` (destructive). */
|
|
7
|
-
readonly color:
|
|
13
|
+
readonly color: ButtonColor;
|
|
8
14
|
/** Height preset: `field` (default, form-line height) or `compact` (denser). */
|
|
9
|
-
readonly size?:
|
|
15
|
+
readonly size?: ButtonSize;
|
|
10
16
|
/** Surface style: `shape` (filled, default) or `ghost` (transparent). */
|
|
11
|
-
readonly view?:
|
|
17
|
+
readonly view?: ButtonView;
|
|
12
18
|
/** Extra CSS class applied to the button element. */
|
|
13
19
|
readonly className?: string;
|
|
14
20
|
/** Disable interaction and render the disabled state. */
|
|
@@ -37,4 +37,4 @@ export const NavButtonRight = styled.div.withConfig({
|
|
|
37
37
|
export const StyledSelect = styled.select.withConfig({
|
|
38
38
|
displayName: "StyledSelect",
|
|
39
39
|
componentId: "sc-1qqlxvi-7"
|
|
40
|
-
})(["appearance:none;background:transparent;border:none;padding:0;height:", ";cursor:pointer;color:", ";font-family:", ";font-size:", ";font-weight:", ";line-height:", ";text-transform:uppercase;&:hover{color:", ";}&:focus{outline:none;}"], UnitSize.COMPACT_HEIGHT, Color.SOFT, FontFamily.MAIN, FontSize.
|
|
40
|
+
})(["appearance:none;background:transparent;border:none;padding:0;height:", ";cursor:pointer;color:", ";font-family:", ";font-size:", ";font-weight:", ";line-height:", ";text-transform:uppercase;&:hover{color:", ";}&:focus{outline:none;}"], UnitSize.COMPACT_HEIGHT, Color.SOFT, FontFamily.MAIN, FontSize.HEADING4, FontWeight.MEDIUM, LineHeight.HEADING4, Color.PRIMARY_HOVER);
|
|
@@ -3,7 +3,7 @@ import { useState } from 'react';
|
|
|
3
3
|
import { Color, ShapeRadius } from '@pushwoosh/kit-constants';
|
|
4
4
|
import { Columns, Horizontal, Vertical } from '@pushwoosh/kit-helpers';
|
|
5
5
|
import { TimeIcon } from '@pushwoosh/kit-icons';
|
|
6
|
-
import {
|
|
6
|
+
import { H4, Text } from '@pushwoosh/kit-typography';
|
|
7
7
|
import { Button } from '../../../../Button';
|
|
8
8
|
import { formatTimezoneShort } from '../../../../helpers/timezones';
|
|
9
9
|
import { extendPeriodStruct, formatTwoDigitNumber } from '../../../helpers';
|
|
@@ -82,7 +82,8 @@ export const CalendarTimeAndTimezoneSection = ({
|
|
|
82
82
|
"$sizes": "1fr max-content",
|
|
83
83
|
"$gap": 8,
|
|
84
84
|
"$alignItems": "center",
|
|
85
|
-
children: [_jsx(
|
|
85
|
+
children: [_jsx(H4, {
|
|
86
|
+
"$textTransform": "uppercase",
|
|
86
87
|
children: _jsx(Lang, {
|
|
87
88
|
message: "DUMB.CALENDAR.TIME_RANGE"
|
|
88
89
|
})
|
package/CardMetric/styles.js
CHANGED
|
@@ -49,7 +49,7 @@ export const CardInfo = styled.div.withConfig({
|
|
|
49
49
|
export const CardMetricValue = styled.div.withConfig({
|
|
50
50
|
displayName: "CardMetricValue",
|
|
51
51
|
componentId: "sc-17snd37-5"
|
|
52
|
-
})(["display:flex;align-items:start;justify-content:start;font-size:", ";font-weight:", ";gap:4px;"], FontSize.
|
|
52
|
+
})(["display:flex;align-items:start;justify-content:start;font-size:", ";font-weight:", ";gap:4px;"], FontSize.DISPLAY, FontWeight.MEDIUM);
|
|
53
53
|
export const CardExtraMetric = styled.div.withConfig({
|
|
54
54
|
displayName: "CardExtraMetric",
|
|
55
55
|
componentId: "sc-17snd37-6"
|
package/CrashScreen/styles.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export declare const IconBox: import("styled-components/dist/types").IStyledComp
|
|
|
8
8
|
export declare const TitleBox: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & {
|
|
9
9
|
readonly boxRef?: import("react").Ref<HTMLHeadingElement>;
|
|
10
10
|
readonly children: import("react").ReactNode;
|
|
11
|
+
readonly $textTransform?: import("react").CSSProperties["textTransform"];
|
|
11
12
|
}, "style"> & {
|
|
12
13
|
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
13
14
|
}> & string & Omit<typeof H1, keyof import("react").Component<any, {}, any>>;
|
|
@@ -9,7 +9,7 @@ export const DrawerHeader = styled.div.withConfig({
|
|
|
9
9
|
export const DrawerTitle = styled.h2.withConfig({
|
|
10
10
|
displayName: "DrawerTitle",
|
|
11
11
|
componentId: "sc-1jmui00-1"
|
|
12
|
-
})(["display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;font-size:", ";font-weight:", ";line-height:", ";letter-spacing:0;margin:0;"], FontSize.
|
|
12
|
+
})(["display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;font-size:", ";font-weight:", ";line-height:", ";letter-spacing:0;margin:0;"], FontSize.HEADING1, FontWeight.BOLD, LineHeight.HEADING1);
|
|
13
13
|
/** Scrollable main content area of a {@link Drawer}. */
|
|
14
14
|
export const DrawerBody = styled.div.withConfig({
|
|
15
15
|
displayName: "DrawerBody",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { H4 } from '@pushwoosh/kit-typography';
|
|
2
2
|
export declare const FieldBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
3
3
|
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
4
4
|
}, {
|
|
@@ -7,9 +7,10 @@ export declare const FieldBox: import("styled-components/dist/types").IStyledCom
|
|
|
7
7
|
export declare const TitleBox: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & {
|
|
8
8
|
readonly boxRef?: import("react").Ref<HTMLHeadingElement>;
|
|
9
9
|
readonly children: import("react").ReactNode;
|
|
10
|
+
readonly $textTransform?: import("react").CSSProperties["textTransform"];
|
|
10
11
|
}, "style"> & {
|
|
11
12
|
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
12
|
-
}> & string & Omit<typeof
|
|
13
|
+
}> & string & Omit<typeof H4, keyof import("react").Component<any, {}, any>>;
|
|
13
14
|
export declare const ButtonsGroup: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
14
15
|
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
15
16
|
}, {
|
package/EditableField/styles.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
import { Color, ShapeRadius, FontSize, LineHeight } from '@pushwoosh/kit-constants';
|
|
3
|
-
import {
|
|
3
|
+
import { H4 } from '@pushwoosh/kit-typography';
|
|
4
4
|
export const FieldBox = styled.div.withConfig({
|
|
5
5
|
displayName: "FieldBox",
|
|
6
6
|
componentId: "sc-qxboek-0"
|
|
@@ -13,10 +13,10 @@ export const FieldBox = styled.div.withConfig({
|
|
|
13
13
|
}) => $open ? Color.CLEAR : Color.PRIMARY_HOVER, ({
|
|
14
14
|
$open
|
|
15
15
|
}) => $open ? Color.MAIN : 'rgba(153, 201, 255, 0.14)');
|
|
16
|
-
export const TitleBox = styled(
|
|
16
|
+
export const TitleBox = styled(H4).withConfig({
|
|
17
17
|
displayName: "TitleBox",
|
|
18
18
|
componentId: "sc-qxboek-1"
|
|
19
|
-
})(["color:", ";margin-bottom:4px;"], Color.MAIN);
|
|
19
|
+
})(["text-transform:uppercase;color:", ";margin-bottom:4px;"], Color.MAIN);
|
|
20
20
|
export const ButtonsGroup = styled.div.withConfig({
|
|
21
21
|
displayName: "ButtonsGroup",
|
|
22
22
|
componentId: "sc-qxboek-2"
|
package/ExportResult/styles.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { H4 } from '@pushwoosh/kit-typography';
|
|
2
2
|
export declare const MainInfoContainer: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("styled-components").FastOmit<Omit<Omit<import("styled-components").FastOmit<import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
3
3
|
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
4
4
|
}, import("@pushwoosh/kit-helpers/styled-helpers").CommonBoxProps & {
|
|
@@ -48,9 +48,10 @@ export declare const MainInfoContainer: import("styled-components/dist/types").I
|
|
|
48
48
|
export declare const Title: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & {
|
|
49
49
|
readonly boxRef?: import("react").Ref<HTMLHeadingElement>;
|
|
50
50
|
readonly children: import("react").ReactNode;
|
|
51
|
+
readonly $textTransform?: import("react").CSSProperties["textTransform"];
|
|
51
52
|
}, "style"> & {
|
|
52
53
|
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
53
|
-
}> & string & Omit<typeof
|
|
54
|
+
}> & string & Omit<typeof H4, keyof import("react").Component<any, {}, any>>;
|
|
54
55
|
export declare const Subtitle: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
55
56
|
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
56
57
|
}> & string;
|
package/ExportResult/styles.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
2
|
import { Color, FontSize, ShapeRadius } from '@pushwoosh/kit-constants';
|
|
3
3
|
import { Horizontal, Vertical } from '@pushwoosh/kit-helpers';
|
|
4
|
-
import {
|
|
4
|
+
import { H4 } from '@pushwoosh/kit-typography';
|
|
5
5
|
const colorMixin = css(["color:", ";background:", ";"], ({
|
|
6
6
|
$type
|
|
7
7
|
}) => {
|
|
@@ -57,7 +57,7 @@ export const MainInfoContainer = styled(Vertical).withConfig({
|
|
|
57
57
|
displayName: "MainInfoContainer",
|
|
58
58
|
componentId: "sc-1vfe25t-0"
|
|
59
59
|
})(["flex:1;overflow:hidden;"]);
|
|
60
|
-
export const Title = styled(
|
|
60
|
+
export const Title = styled(H4).withConfig({
|
|
61
61
|
displayName: "Title",
|
|
62
62
|
componentId: "sc-1vfe25t-1"
|
|
63
63
|
})(["font-size:", ";text-transform:uppercase;"], FontSize.SMALL);
|
package/FieldBox/FieldBox.js
CHANGED
|
@@ -11,7 +11,7 @@ export const CarouselViewport = styled(Vertical).attrs({
|
|
|
11
11
|
})(["cursor:pointer;"]);
|
|
12
12
|
export const SlideCaption = styled(ClampText).attrs({
|
|
13
13
|
$color: Color.CLEAR,
|
|
14
|
-
$variant: '
|
|
14
|
+
$variant: 'h4'
|
|
15
15
|
}).withConfig({
|
|
16
16
|
displayName: "SlideCaption",
|
|
17
17
|
componentId: "sc-1fw4dgw-1"
|
|
@@ -18,16 +18,16 @@ export const INBOX_AVATAR = {
|
|
|
18
18
|
ios: {
|
|
19
19
|
size: 30,
|
|
20
20
|
radius: '50%',
|
|
21
|
-
initialVariant: '
|
|
21
|
+
initialVariant: 'h4'
|
|
22
22
|
},
|
|
23
23
|
android: {
|
|
24
24
|
size: 40,
|
|
25
25
|
radius: ShapeRadius.SECTION,
|
|
26
|
-
initialVariant: '
|
|
26
|
+
initialVariant: 'h3'
|
|
27
27
|
},
|
|
28
28
|
web: {
|
|
29
29
|
size: 52,
|
|
30
30
|
radius: ShapeRadius.SECTION,
|
|
31
|
-
initialVariant: '
|
|
31
|
+
initialVariant: 'h2'
|
|
32
32
|
}
|
|
33
33
|
};
|
package/InputFile/styles.js
CHANGED
|
@@ -11,7 +11,7 @@ export const InputFileButtonStyled = styled.div.withConfig({
|
|
|
11
11
|
export const InputFileInputStyled = styled.input.withConfig({
|
|
12
12
|
displayName: "InputFileInputStyled",
|
|
13
13
|
componentId: "sc-8mwin7-2"
|
|
14
|
-
})(["width:100%;height:36px;padding:0 16px;color:#555;font-size:", ";font-family:", ";line-height:1.4;background:", ";border:1px solid ", ";border-radius:4px;box-sizing:border-box;outline:none;caret-color:", ";&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{appearance:none;}&:focus{border-color:", ";}"], FontSize.
|
|
14
|
+
})(["width:100%;height:36px;padding:0 16px;color:#555;font-size:", ";font-family:", ";line-height:1.4;background:", ";border:1px solid ", ";border-radius:4px;box-sizing:border-box;outline:none;caret-color:", ";&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{appearance:none;}&:focus{border-color:", ";}"], FontSize.HEADING3, FontFamily.MAIN, Color.CLEAR, ({
|
|
15
15
|
color
|
|
16
16
|
}) => color, Color.BRIGHT, Color.BRIGHT);
|
|
17
17
|
export const InputFileInputHiddenStyled = styled(InputFileInputStyled).withConfig({
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { H2 } from '@pushwoosh/kit-typography';
|
|
2
2
|
export declare const ModalTitleBox: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & {
|
|
3
3
|
readonly boxRef?: import("react").Ref<HTMLHeadingElement>;
|
|
4
4
|
readonly children: import("react").ReactNode;
|
|
5
|
+
readonly $textTransform?: import("react").CSSProperties["textTransform"];
|
|
5
6
|
}, "style"> & {
|
|
6
7
|
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
7
|
-
}> & string & Omit<typeof
|
|
8
|
+
}> & string & Omit<typeof H2, keyof import("react").Component<any, {}, any>>;
|
|
8
9
|
export declare const ModalTitleText: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "style"> & {
|
|
9
10
|
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
10
11
|
}> & string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
import { FlexContainer } from '@pushwoosh/kit-helpers';
|
|
3
|
-
import {
|
|
3
|
+
import { H2 } from '@pushwoosh/kit-typography';
|
|
4
4
|
const TITLE_GAP = '8px';
|
|
5
5
|
const CLOSE_BOX_SIZE = 24;
|
|
6
|
-
export const ModalTitleBox = styled(
|
|
6
|
+
export const ModalTitleBox = styled(H2).withConfig({
|
|
7
7
|
displayName: "ModalTitleBox",
|
|
8
8
|
componentId: "sc-8qbijb-0"
|
|
9
9
|
})(["display:flex;align-items:center;gap:", ";"], TITLE_GAP);
|
|
@@ -22,7 +22,7 @@ export declare const CodeText: import("styled-components/dist/types").IStyledCom
|
|
|
22
22
|
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | (import("react").CSSProperties & {
|
|
23
23
|
[key: `--${string}`]: string | number | undefined;
|
|
24
24
|
}) | undefined;
|
|
25
|
-
}, "children" | "key" | "slot" | "style" | "title" | "ref" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "$color" | "$variant" | "as" | "forwardedAs" | "$
|
|
25
|
+
}, "children" | "key" | "slot" | "style" | "title" | "ref" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "$color" | "$variant" | "as" | "forwardedAs" | "$textTransform" | "$textAlign" | "$ellipsis"> & Partial<Pick<Omit<import("styled-components").FastOmit<import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "style"> & {
|
|
26
26
|
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
27
27
|
}, {
|
|
28
28
|
$color?: string;
|
|
@@ -37,6 +37,6 @@ export declare const CodeText: import("styled-components/dist/types").IStyledCom
|
|
|
37
37
|
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | (import("react").CSSProperties & {
|
|
38
38
|
[key: `--${string}`]: string | number | undefined;
|
|
39
39
|
}) | undefined;
|
|
40
|
-
}, "children" | "key" | "slot" | "style" | "title" | "ref" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "$color" | "$variant" | "as" | "forwardedAs" | "$
|
|
40
|
+
}, "children" | "key" | "slot" | "style" | "title" | "ref" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "$color" | "$variant" | "as" | "forwardedAs" | "$textTransform" | "$textAlign" | "$ellipsis">>> & string;
|
|
41
41
|
export declare const RewardTitle: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("../NativeRichMediaTitle").NativeRichMediaTitleProps, "children" | "className" | "$color" | "$size" | "$textAlign" | "$clamp" | "$marginTop" | "$truncate"> & Partial<Pick<import("../NativeRichMediaTitle").NativeRichMediaTitleProps, "children" | "className" | "$color" | "$size" | "$textAlign" | "$clamp" | "$marginTop" | "$truncate">>> & string & Omit<typeof NativeRichMediaTitle, keyof import("react").Component<any, {}, any>>;
|
|
42
42
|
export declare const RewardMessage: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("../NativeRichMediaText").NativeRichMediaTextProps, "children" | "className" | "$color" | "$clamp" | "$marginTop" | "$align"> & Partial<Pick<import("../NativeRichMediaText").NativeRichMediaTextProps, "children" | "className" | "$color" | "$clamp" | "$marginTop" | "$align">>> & string & Omit<typeof NativeRichMediaText, keyof import("react").Component<any, {}, any>>;
|
|
@@ -13,7 +13,7 @@ export const CodeBox = styled.div.withConfig({
|
|
|
13
13
|
$marginTop
|
|
14
14
|
}) => $marginTop !== undefined ? `margin-top: ${$marginTop}px;` : '');
|
|
15
15
|
export const CodeText = styled(Text).attrs({
|
|
16
|
-
$variant: '
|
|
16
|
+
$variant: 'h2'
|
|
17
17
|
}).withConfig({
|
|
18
18
|
displayName: "CodeText",
|
|
19
19
|
componentId: "sc-z83bc4-1"
|