@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
|
@@ -8,6 +8,7 @@ export declare const ImageBox: import("styled-components/dist/types").IStyledCom
|
|
|
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>>;
|
package/Badge/styles.js
CHANGED
|
@@ -10,5 +10,5 @@ export const BadgeBox = styled.div.withConfig({
|
|
|
10
10
|
}) => $isSaturated ? Color.CLEAR : BadgeColorToColorMap[$color], ({
|
|
11
11
|
$isSaturated,
|
|
12
12
|
$color
|
|
13
|
-
}) => $isSaturated ? BadgeColorToColorMap[$color] : BadgeColorToLightColorMap[$color], FontSize.
|
|
13
|
+
}) => $isSaturated ? BadgeColorToColorMap[$color] : BadgeColorToLightColorMap[$color], FontSize.HEADING4, FontFamily.MAIN, FontWeight.MEDIUM, LineHeight.SMALL);
|
|
14
14
|
BadgeBox.displayName = 'BadgeBox';
|
package/Banner/Banner.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState, useCallback } from 'react';
|
|
3
3
|
import { Vertical } from '@pushwoosh/kit-helpers';
|
|
4
4
|
import { CloseIcon } from '@pushwoosh/kit-icons';
|
|
5
|
-
import {
|
|
5
|
+
import { H3 } from '@pushwoosh/kit-typography';
|
|
6
6
|
import { Spinner } from '../Spinner';
|
|
7
7
|
import { BannerPropsToBannerBoxMap, BannerPropsToIconContainerMap, BannerTypeToSpinnerColorMap } from './maps';
|
|
8
8
|
import { ActionButton, BannerContent, BannerSpinner, CloseButton, IconContainer } from './styles';
|
|
@@ -80,7 +80,7 @@ export function Banner(props) {
|
|
|
80
80
|
view: "filled"
|
|
81
81
|
})
|
|
82
82
|
}), _jsxs(BannerContent, {
|
|
83
|
-
children: [hasTitle && _jsx(
|
|
83
|
+
children: [hasTitle && _jsx(H3, {
|
|
84
84
|
children: title
|
|
85
85
|
}), hasChildren && _jsx("div", {
|
|
86
86
|
children: children
|
package/Button/Button.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Spinner } from '../Spinner';
|
|
3
|
-
import {
|
|
4
|
-
import { ButtonIcon, ButtonSpinner, ButtonContent } from './styles';
|
|
3
|
+
import { geometryBySizeAndView, spinnerSizeBySize } from './constants';
|
|
4
|
+
import { ButtonBox, ButtonIcon, ButtonSpinner, ButtonContent } from './styles';
|
|
5
5
|
export function Button(props) {
|
|
6
6
|
const {
|
|
7
7
|
type = 'button',
|
|
@@ -15,22 +15,33 @@ export function Button(props) {
|
|
|
15
15
|
icon,
|
|
16
16
|
rightIcon,
|
|
17
17
|
children,
|
|
18
|
+
onClick,
|
|
18
19
|
...rest
|
|
19
20
|
} = props;
|
|
20
21
|
if (!color) {
|
|
21
22
|
console.error(`[Button]: required prop color "${color}" is not set`);
|
|
22
23
|
return null;
|
|
23
24
|
}
|
|
24
|
-
|
|
25
|
-
if (!ButtonBox) {
|
|
25
|
+
if (!geometryBySizeAndView[size]?.[view]) {
|
|
26
26
|
console.error(`[Button]: cannot render with color "${color}" and size "${size}" and view "${view}"`);
|
|
27
27
|
return null;
|
|
28
28
|
}
|
|
29
29
|
const isShowOverlaySpinner = !!children && !icon && view !== 'ghost' && isLoading;
|
|
30
|
+
const isDisabledNonButton = !!isDisabled && !!rest.as && rest.as !== 'button';
|
|
31
|
+
const handleClick = isDisabledNonButton ? event => {
|
|
32
|
+
event.preventDefault();
|
|
33
|
+
event.stopPropagation();
|
|
34
|
+
} : onClick;
|
|
30
35
|
return _jsxs(ButtonBox, {
|
|
31
36
|
...rest,
|
|
32
37
|
type: type,
|
|
33
38
|
disabled: isDisabled,
|
|
39
|
+
onClick: handleClick,
|
|
40
|
+
"aria-disabled": isDisabledNonButton || undefined,
|
|
41
|
+
tabIndex: isDisabledNonButton ? -1 : rest.tabIndex,
|
|
42
|
+
"$color": color,
|
|
43
|
+
"$view": view,
|
|
44
|
+
"$size": size,
|
|
34
45
|
"$isDisabled": isDisabled,
|
|
35
46
|
"$isLoading": isLoading,
|
|
36
47
|
"$isOpen": isOpen,
|
|
@@ -41,7 +52,7 @@ export function Button(props) {
|
|
|
41
52
|
ref: boxRef,
|
|
42
53
|
children: [icon && _jsx(ButtonIcon, {
|
|
43
54
|
children: isLoading ? _jsx(Spinner, {
|
|
44
|
-
size:
|
|
55
|
+
size: spinnerSizeBySize[size]
|
|
45
56
|
}) : icon
|
|
46
57
|
}), children && _jsx(ButtonContent, {
|
|
47
58
|
children: _jsx("div", {
|
|
@@ -52,7 +63,7 @@ export function Button(props) {
|
|
|
52
63
|
}), isShowOverlaySpinner && _jsx(ButtonSpinner, {
|
|
53
64
|
children: _jsx(Spinner, {
|
|
54
65
|
color: "danger",
|
|
55
|
-
size:
|
|
66
|
+
size: spinnerSizeBySize[size]
|
|
56
67
|
})
|
|
57
68
|
})]
|
|
58
69
|
});
|
package/Button/colors.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ButtonColor, ButtonSize, ButtonView } from './types';
|
|
1
2
|
type Colors = {
|
|
2
3
|
color: string;
|
|
3
4
|
bgColor: string;
|
|
@@ -8,9 +9,10 @@ type ButtonColors = {
|
|
|
8
9
|
disabled: Partial<Colors>;
|
|
9
10
|
hover: Partial<Colors>;
|
|
10
11
|
};
|
|
11
|
-
|
|
12
|
-
export declare function createColors(buttonColors: ButtonColors): import("styled-components").RuleSet<NoInfer<{
|
|
12
|
+
declare function createColors(buttonColors: ButtonColors, opened: Colors): import("styled-components").RuleSet<NoInfer<{
|
|
13
13
|
$isOpen?: boolean;
|
|
14
14
|
$isDisabled?: boolean;
|
|
15
15
|
}>>;
|
|
16
|
+
/** Palette per `color` × `view` × `size`, including the `isOpen` matrix. */
|
|
17
|
+
export declare const colorStyles: Record<ButtonColor, Record<ButtonView, Record<ButtonSize, ReturnType<typeof createColors>>>>;
|
|
16
18
|
export {};
|
package/Button/colors.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { css } from 'styled-components';
|
|
2
2
|
import { Color } from '@pushwoosh/kit-constants';
|
|
3
|
-
|
|
3
|
+
const colors = {
|
|
4
4
|
primary: {
|
|
5
5
|
shape: {
|
|
6
6
|
base: {
|
|
@@ -84,7 +84,33 @@ export const colors = {
|
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
};
|
|
87
|
-
|
|
87
|
+
const openedFilled = {
|
|
88
|
+
color: Color.CLEAR,
|
|
89
|
+
bgColor: Color.MAIN,
|
|
90
|
+
borderColor: Color.MAIN
|
|
91
|
+
};
|
|
92
|
+
const openedText = {
|
|
93
|
+
color: Color.MAIN,
|
|
94
|
+
bgColor: 'transparent',
|
|
95
|
+
borderColor: 'transparent'
|
|
96
|
+
};
|
|
97
|
+
const ghostCompactBaseColor = {
|
|
98
|
+
secondary: `var(--secondary-ghost-base-color, ${Color.SOFT})`
|
|
99
|
+
};
|
|
100
|
+
function toGhostCompact(color, buttonColors) {
|
|
101
|
+
return {
|
|
102
|
+
...buttonColors,
|
|
103
|
+
base: {
|
|
104
|
+
...buttonColors.base,
|
|
105
|
+
color: ghostCompactBaseColor[color] ?? buttonColors.base.color
|
|
106
|
+
},
|
|
107
|
+
hover: {
|
|
108
|
+
...buttonColors.hover,
|
|
109
|
+
bgColor: 'transparent'
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
function createColors(buttonColors, opened) {
|
|
88
114
|
const base = {
|
|
89
115
|
borderColor: 'transparent',
|
|
90
116
|
...buttonColors.base
|
|
@@ -97,13 +123,13 @@ export function createColors(buttonColors) {
|
|
|
97
123
|
...base,
|
|
98
124
|
...buttonColors.hover
|
|
99
125
|
};
|
|
100
|
-
const hoverCss = css(["&:hover:not([disabled]){color:", ";background-color:", ";border-color:", ";}"], hover.color, hover.bgColor, hover.borderColor);
|
|
101
|
-
return css(["color:", ";background-color:", ";border-color:", ";&:disabled{color:", ";background-color:", ";border-color:", ";}", " &:active:not([disabled]){color:", ";background-color:", ";border-color:", ";opacity:0.5;}"], ({
|
|
126
|
+
const hoverCss = css(["&:hover:not([disabled]):not([aria-disabled='true']){color:", ";background-color:", ";border-color:", ";}"], hover.color, hover.bgColor, hover.borderColor);
|
|
127
|
+
return css(["color:", ";background-color:", ";border-color:", ";&:disabled{color:", ";background-color:", ";border-color:", ";}", " &:active:not([disabled]):not([aria-disabled='true']){color:", ";background-color:", ";border-color:", ";opacity:0.5;}"], ({
|
|
102
128
|
$isOpen,
|
|
103
129
|
$isDisabled
|
|
104
130
|
}) => {
|
|
105
131
|
if ($isOpen) {
|
|
106
|
-
return
|
|
132
|
+
return opened.color;
|
|
107
133
|
}
|
|
108
134
|
return $isDisabled ? disabled.color : base.color;
|
|
109
135
|
}, ({
|
|
@@ -111,7 +137,7 @@ export function createColors(buttonColors) {
|
|
|
111
137
|
$isDisabled
|
|
112
138
|
}) => {
|
|
113
139
|
if ($isOpen) {
|
|
114
|
-
return
|
|
140
|
+
return opened.bgColor;
|
|
115
141
|
}
|
|
116
142
|
return $isDisabled ? disabled.bgColor : base.bgColor;
|
|
117
143
|
}, ({
|
|
@@ -119,10 +145,39 @@ export function createColors(buttonColors) {
|
|
|
119
145
|
$isDisabled
|
|
120
146
|
}) => {
|
|
121
147
|
if ($isOpen) {
|
|
122
|
-
return
|
|
148
|
+
return opened.borderColor;
|
|
123
149
|
}
|
|
124
150
|
return $isDisabled ? disabled.borderColor : base.borderColor;
|
|
125
151
|
}, disabled.color, disabled.bgColor, disabled.borderColor, ({
|
|
126
152
|
$isOpen
|
|
127
|
-
}) => $isOpen ? '' : hoverCss
|
|
128
|
-
}
|
|
153
|
+
}) => $isOpen ? '' : hoverCss, hover.color, hover.bgColor, hover.borderColor);
|
|
154
|
+
}
|
|
155
|
+
function createColorsBySize(color, view) {
|
|
156
|
+
const buttonColors = colors[color][view];
|
|
157
|
+
const field = createColors(buttonColors, openedFilled);
|
|
158
|
+
if (view === 'shape') {
|
|
159
|
+
return {
|
|
160
|
+
field,
|
|
161
|
+
compact: field
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
return {
|
|
165
|
+
field,
|
|
166
|
+
compact: createColors(toGhostCompact(color, buttonColors), openedText)
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
/** Palette per `color` × `view` × `size`, including the `isOpen` matrix. */
|
|
170
|
+
export const colorStyles = {
|
|
171
|
+
primary: {
|
|
172
|
+
shape: createColorsBySize('primary', 'shape'),
|
|
173
|
+
ghost: createColorsBySize('primary', 'ghost')
|
|
174
|
+
},
|
|
175
|
+
secondary: {
|
|
176
|
+
shape: createColorsBySize('secondary', 'shape'),
|
|
177
|
+
ghost: createColorsBySize('secondary', 'ghost')
|
|
178
|
+
},
|
|
179
|
+
danger: {
|
|
180
|
+
shape: createColorsBySize('danger', 'shape'),
|
|
181
|
+
ghost: createColorsBySize('danger', 'ghost')
|
|
182
|
+
}
|
|
183
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ButtonSize, ButtonView } from './types';
|
|
2
|
+
/** Geometry and typography resolved from `size` and `view`. */
|
|
3
|
+
export type ButtonGeometry = {
|
|
4
|
+
readonly height: string;
|
|
5
|
+
readonly border: string;
|
|
6
|
+
readonly padding: string;
|
|
7
|
+
readonly labelPadding: string;
|
|
8
|
+
readonly gap: string;
|
|
9
|
+
readonly iconSlot: string;
|
|
10
|
+
readonly fontSize: string;
|
|
11
|
+
readonly lineHeight: number;
|
|
12
|
+
readonly fontWeight: number;
|
|
13
|
+
readonly textTransform: 'none' | 'uppercase';
|
|
14
|
+
};
|
|
15
|
+
/** Geometry per `size` × `view`; colors live in `colors.ts`. */
|
|
16
|
+
export declare const geometryBySizeAndView: Record<ButtonSize, Record<ButtonView, ButtonGeometry>>;
|
|
17
|
+
/** Spinner size used in place of the icon, per button `size`. */
|
|
18
|
+
export declare const spinnerSizeBySize: {
|
|
19
|
+
readonly compact: "small";
|
|
20
|
+
readonly field: "medium";
|
|
21
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { FontSize, FontWeight, LineHeight, UnitSize } from '@pushwoosh/kit-constants';
|
|
2
|
+
const fieldTypography = {
|
|
3
|
+
fontSize: FontSize.REGULAR,
|
|
4
|
+
lineHeight: LineHeight.REGULAR,
|
|
5
|
+
fontWeight: FontWeight.MEDIUM,
|
|
6
|
+
textTransform: 'none'
|
|
7
|
+
};
|
|
8
|
+
const compactTypography = {
|
|
9
|
+
fontSize: FontSize.SMALL,
|
|
10
|
+
lineHeight: LineHeight.SMALL,
|
|
11
|
+
fontWeight: FontWeight.BOLD,
|
|
12
|
+
textTransform: 'uppercase'
|
|
13
|
+
};
|
|
14
|
+
const boxed = {
|
|
15
|
+
border: '1px',
|
|
16
|
+
padding: '6px',
|
|
17
|
+
labelPadding: '6px',
|
|
18
|
+
gap: '0px'
|
|
19
|
+
};
|
|
20
|
+
const fieldBox = {
|
|
21
|
+
...fieldTypography,
|
|
22
|
+
...boxed,
|
|
23
|
+
height: UnitSize.FIELD_HEIGHT,
|
|
24
|
+
iconSlot: UnitSize.ICON_MEDIUM
|
|
25
|
+
};
|
|
26
|
+
/** Geometry per `size` × `view`; colors live in `colors.ts`. */
|
|
27
|
+
export const geometryBySizeAndView = {
|
|
28
|
+
field: {
|
|
29
|
+
shape: fieldBox,
|
|
30
|
+
ghost: fieldBox
|
|
31
|
+
},
|
|
32
|
+
compact: {
|
|
33
|
+
shape: {
|
|
34
|
+
...compactTypography,
|
|
35
|
+
...boxed,
|
|
36
|
+
height: UnitSize.COMPACT_HEIGHT,
|
|
37
|
+
iconSlot: UnitSize.ICON_SMALL
|
|
38
|
+
},
|
|
39
|
+
ghost: {
|
|
40
|
+
...compactTypography,
|
|
41
|
+
height: '16px',
|
|
42
|
+
border: '0px',
|
|
43
|
+
padding: '0px',
|
|
44
|
+
labelPadding: '0px',
|
|
45
|
+
gap: '6px',
|
|
46
|
+
iconSlot: UnitSize.ICON_SMALL
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
/** Spinner size used in place of the icon, per button `size`. */
|
|
51
|
+
export const spinnerSizeBySize = {
|
|
52
|
+
compact: 'small',
|
|
53
|
+
field: 'medium'
|
|
54
|
+
};
|
package/Button/styles.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ButtonColor, ButtonSize, ButtonView } from './types';
|
|
1
2
|
export declare const ButtonIcon: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
2
3
|
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
3
4
|
}> & string;
|
|
@@ -7,110 +8,10 @@ export declare const ButtonContent: import("styled-components/dist/types").IStyl
|
|
|
7
8
|
export declare const ButtonSpinner: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
8
9
|
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
9
10
|
}> & string;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
$
|
|
14
|
-
$isLoading?: boolean;
|
|
15
|
-
$isOpen?: boolean;
|
|
16
|
-
$hideContent?: boolean;
|
|
17
|
-
$hasLeftIcon?: boolean;
|
|
18
|
-
$hasRightIcon?: boolean;
|
|
19
|
-
$hasContent?: boolean;
|
|
20
|
-
}>> & string;
|
|
21
|
-
export declare const ButtonBoxDangerGhostCompact: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("styled-components").FastOmit<import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style"> & {
|
|
22
|
-
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
23
|
-
}, {
|
|
24
|
-
$isDisabled?: boolean;
|
|
25
|
-
$isLoading?: boolean;
|
|
26
|
-
$isOpen?: boolean;
|
|
27
|
-
$hideContent?: boolean;
|
|
28
|
-
$hasLeftIcon?: boolean;
|
|
29
|
-
$hasRightIcon?: boolean;
|
|
30
|
-
$hasContent?: boolean;
|
|
31
|
-
}>, "as" | "forwardedAs"> & {
|
|
32
|
-
as?: import("styled-components").WebTarget | undefined;
|
|
33
|
-
forwardedAs?: import("styled-components").WebTarget | undefined;
|
|
34
|
-
}, "style"> & {
|
|
35
|
-
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | (import("react").CSSProperties & {
|
|
36
|
-
[key: `--${string}`]: string | number | undefined;
|
|
37
|
-
}) | undefined;
|
|
38
|
-
}> & string;
|
|
39
|
-
export declare const ButtonBoxDangerGhostField: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("styled-components").FastOmit<import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style"> & {
|
|
40
|
-
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
41
|
-
}, {
|
|
42
|
-
$isDisabled?: boolean;
|
|
43
|
-
$isLoading?: boolean;
|
|
44
|
-
$isOpen?: boolean;
|
|
45
|
-
$hideContent?: boolean;
|
|
46
|
-
$hasLeftIcon?: boolean;
|
|
47
|
-
$hasRightIcon?: boolean;
|
|
48
|
-
$hasContent?: boolean;
|
|
49
|
-
}>, "as" | "forwardedAs"> & {
|
|
50
|
-
as?: import("styled-components").WebTarget | undefined;
|
|
51
|
-
forwardedAs?: import("styled-components").WebTarget | undefined;
|
|
52
|
-
}, "style"> & {
|
|
53
|
-
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | (import("react").CSSProperties & {
|
|
54
|
-
[key: `--${string}`]: string | number | undefined;
|
|
55
|
-
}) | undefined;
|
|
56
|
-
}> & string;
|
|
57
|
-
export declare const ButtonBoxDangerShapeCompact: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("styled-components").FastOmit<import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style"> & {
|
|
58
|
-
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
59
|
-
}, {
|
|
60
|
-
$isDisabled?: boolean;
|
|
61
|
-
$isLoading?: boolean;
|
|
62
|
-
$isOpen?: boolean;
|
|
63
|
-
$hideContent?: boolean;
|
|
64
|
-
$hasLeftIcon?: boolean;
|
|
65
|
-
$hasRightIcon?: boolean;
|
|
66
|
-
$hasContent?: boolean;
|
|
67
|
-
}>, "as" | "forwardedAs"> & {
|
|
68
|
-
as?: import("styled-components").WebTarget | undefined;
|
|
69
|
-
forwardedAs?: import("styled-components").WebTarget | undefined;
|
|
70
|
-
}, "style"> & {
|
|
71
|
-
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | (import("react").CSSProperties & {
|
|
72
|
-
[key: `--${string}`]: string | number | undefined;
|
|
73
|
-
}) | undefined;
|
|
74
|
-
}> & string;
|
|
75
|
-
export declare const ButtonBoxDangerShapeField: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("styled-components").FastOmit<import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style"> & {
|
|
76
|
-
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
77
|
-
}, {
|
|
78
|
-
$isDisabled?: boolean;
|
|
79
|
-
$isLoading?: boolean;
|
|
80
|
-
$isOpen?: boolean;
|
|
81
|
-
$hideContent?: boolean;
|
|
82
|
-
$hasLeftIcon?: boolean;
|
|
83
|
-
$hasRightIcon?: boolean;
|
|
84
|
-
$hasContent?: boolean;
|
|
85
|
-
}>, "as" | "forwardedAs"> & {
|
|
86
|
-
as?: import("styled-components").WebTarget | undefined;
|
|
87
|
-
forwardedAs?: import("styled-components").WebTarget | undefined;
|
|
88
|
-
}, "style"> & {
|
|
89
|
-
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | (import("react").CSSProperties & {
|
|
90
|
-
[key: `--${string}`]: string | number | undefined;
|
|
91
|
-
}) | undefined;
|
|
92
|
-
}> & string;
|
|
93
|
-
export declare const ButtonBoxPrimaryShapeCompact: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("styled-components").FastOmit<import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style"> & {
|
|
94
|
-
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
95
|
-
}, {
|
|
96
|
-
$isDisabled?: boolean;
|
|
97
|
-
$isLoading?: boolean;
|
|
98
|
-
$isOpen?: boolean;
|
|
99
|
-
$hideContent?: boolean;
|
|
100
|
-
$hasLeftIcon?: boolean;
|
|
101
|
-
$hasRightIcon?: boolean;
|
|
102
|
-
$hasContent?: boolean;
|
|
103
|
-
}>, "as" | "forwardedAs"> & {
|
|
104
|
-
as?: import("styled-components").WebTarget | undefined;
|
|
105
|
-
forwardedAs?: import("styled-components").WebTarget | undefined;
|
|
106
|
-
}, "style"> & {
|
|
107
|
-
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | (import("react").CSSProperties & {
|
|
108
|
-
[key: `--${string}`]: string | number | undefined;
|
|
109
|
-
}) | undefined;
|
|
110
|
-
}> & string;
|
|
111
|
-
export declare const ButtonBoxPrimaryShapeField: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("styled-components").FastOmit<import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style"> & {
|
|
112
|
-
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
113
|
-
}, {
|
|
11
|
+
type ButtonBoxProps = {
|
|
12
|
+
$color: ButtonColor;
|
|
13
|
+
$view: ButtonView;
|
|
14
|
+
$size: ButtonSize;
|
|
114
15
|
$isDisabled?: boolean;
|
|
115
16
|
$isLoading?: boolean;
|
|
116
17
|
$isOpen?: boolean;
|
|
@@ -118,122 +19,11 @@ export declare const ButtonBoxPrimaryShapeField: import("styled-components/dist/
|
|
|
118
19
|
$hasLeftIcon?: boolean;
|
|
119
20
|
$hasRightIcon?: boolean;
|
|
120
21
|
$hasContent?: boolean;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
forwardedAs?: import("styled-components").WebTarget | undefined;
|
|
124
|
-
}, "style"> & {
|
|
125
|
-
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | (import("react").CSSProperties & {
|
|
126
|
-
[key: `--${string}`]: string | number | undefined;
|
|
127
|
-
}) | undefined;
|
|
128
|
-
}> & string;
|
|
129
|
-
export declare const ButtonBoxPrimaryGhostCompact: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("styled-components").FastOmit<import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style"> & {
|
|
130
|
-
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
131
|
-
}, {
|
|
132
|
-
$isDisabled?: boolean;
|
|
133
|
-
$isLoading?: boolean;
|
|
134
|
-
$isOpen?: boolean;
|
|
135
|
-
$hideContent?: boolean;
|
|
136
|
-
$hasLeftIcon?: boolean;
|
|
137
|
-
$hasRightIcon?: boolean;
|
|
138
|
-
$hasContent?: boolean;
|
|
139
|
-
}>, "as" | "forwardedAs"> & {
|
|
140
|
-
as?: import("styled-components").WebTarget | undefined;
|
|
141
|
-
forwardedAs?: import("styled-components").WebTarget | undefined;
|
|
142
|
-
}, "style"> & {
|
|
143
|
-
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | (import("react").CSSProperties & {
|
|
144
|
-
[key: `--${string}`]: string | number | undefined;
|
|
145
|
-
}) | undefined;
|
|
146
|
-
}> & string;
|
|
147
|
-
export declare const ButtonBoxPrimaryGhostField: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("styled-components").FastOmit<import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style"> & {
|
|
148
|
-
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
149
|
-
}, {
|
|
150
|
-
$isDisabled?: boolean;
|
|
151
|
-
$isLoading?: boolean;
|
|
152
|
-
$isOpen?: boolean;
|
|
153
|
-
$hideContent?: boolean;
|
|
154
|
-
$hasLeftIcon?: boolean;
|
|
155
|
-
$hasRightIcon?: boolean;
|
|
156
|
-
$hasContent?: boolean;
|
|
157
|
-
}>, "as" | "forwardedAs"> & {
|
|
158
|
-
as?: import("styled-components").WebTarget | undefined;
|
|
159
|
-
forwardedAs?: import("styled-components").WebTarget | undefined;
|
|
160
|
-
}, "style"> & {
|
|
161
|
-
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | (import("react").CSSProperties & {
|
|
162
|
-
[key: `--${string}`]: string | number | undefined;
|
|
163
|
-
}) | undefined;
|
|
164
|
-
}> & string;
|
|
165
|
-
export declare const ButtonBoxSecondaryGhostCompact: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("styled-components").FastOmit<import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style"> & {
|
|
166
|
-
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
167
|
-
}, {
|
|
168
|
-
$isDisabled?: boolean;
|
|
169
|
-
$isLoading?: boolean;
|
|
170
|
-
$isOpen?: boolean;
|
|
171
|
-
$hideContent?: boolean;
|
|
172
|
-
$hasLeftIcon?: boolean;
|
|
173
|
-
$hasRightIcon?: boolean;
|
|
174
|
-
$hasContent?: boolean;
|
|
175
|
-
}>, "as" | "forwardedAs"> & {
|
|
176
|
-
as?: import("styled-components").WebTarget | undefined;
|
|
177
|
-
forwardedAs?: import("styled-components").WebTarget | undefined;
|
|
178
|
-
}, "style"> & {
|
|
179
|
-
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | (import("react").CSSProperties & {
|
|
180
|
-
[key: `--${string}`]: string | number | undefined;
|
|
181
|
-
}) | undefined;
|
|
182
|
-
}> & string;
|
|
183
|
-
export declare const ButtonBoxSecondaryGhostField: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("styled-components").FastOmit<import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style"> & {
|
|
184
|
-
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
185
|
-
}, {
|
|
186
|
-
$isDisabled?: boolean;
|
|
187
|
-
$isLoading?: boolean;
|
|
188
|
-
$isOpen?: boolean;
|
|
189
|
-
$hideContent?: boolean;
|
|
190
|
-
$hasLeftIcon?: boolean;
|
|
191
|
-
$hasRightIcon?: boolean;
|
|
192
|
-
$hasContent?: boolean;
|
|
193
|
-
}>, "as" | "forwardedAs"> & {
|
|
194
|
-
as?: import("styled-components").WebTarget | undefined;
|
|
195
|
-
forwardedAs?: import("styled-components").WebTarget | undefined;
|
|
196
|
-
}, "style"> & {
|
|
197
|
-
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | (import("react").CSSProperties & {
|
|
198
|
-
[key: `--${string}`]: string | number | undefined;
|
|
199
|
-
}) | undefined;
|
|
200
|
-
}> & string;
|
|
201
|
-
export declare const ButtonBoxSecondaryShapeCompact: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("styled-components").FastOmit<import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style"> & {
|
|
202
|
-
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
203
|
-
}, {
|
|
204
|
-
$isDisabled?: boolean;
|
|
205
|
-
$isLoading?: boolean;
|
|
206
|
-
$isOpen?: boolean;
|
|
207
|
-
$hideContent?: boolean;
|
|
208
|
-
$hasLeftIcon?: boolean;
|
|
209
|
-
$hasRightIcon?: boolean;
|
|
210
|
-
$hasContent?: boolean;
|
|
211
|
-
}>, "as" | "forwardedAs"> & {
|
|
212
|
-
as?: import("styled-components").WebTarget | undefined;
|
|
213
|
-
forwardedAs?: import("styled-components").WebTarget | undefined;
|
|
214
|
-
}, "style"> & {
|
|
215
|
-
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | (import("react").CSSProperties & {
|
|
216
|
-
[key: `--${string}`]: string | number | undefined;
|
|
217
|
-
}) | undefined;
|
|
218
|
-
}> & string;
|
|
219
|
-
export declare const ButtonBoxSecondaryShapeField: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("styled-components").FastOmit<import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style"> & {
|
|
22
|
+
};
|
|
23
|
+
export declare const ButtonBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style"> & {
|
|
220
24
|
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
221
|
-
},
|
|
222
|
-
$isDisabled?: boolean;
|
|
223
|
-
$isLoading?: boolean;
|
|
224
|
-
$isOpen?: boolean;
|
|
225
|
-
$hideContent?: boolean;
|
|
226
|
-
$hasLeftIcon?: boolean;
|
|
227
|
-
$hasRightIcon?: boolean;
|
|
228
|
-
$hasContent?: boolean;
|
|
229
|
-
}>, "as" | "forwardedAs"> & {
|
|
230
|
-
as?: import("styled-components").WebTarget | undefined;
|
|
231
|
-
forwardedAs?: import("styled-components").WebTarget | undefined;
|
|
232
|
-
}, "style"> & {
|
|
233
|
-
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | (import("react").CSSProperties & {
|
|
234
|
-
[key: `--${string}`]: string | number | undefined;
|
|
235
|
-
}) | undefined;
|
|
236
|
-
}> & string;
|
|
25
|
+
}, ButtonBoxProps>> & string;
|
|
237
26
|
export declare const RemoveButtonBox: import("styled-components/dist/types").IStyledComponentBase<"web", Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "style"> & {
|
|
238
27
|
style?: import("react").CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
239
28
|
}> & string;
|
|
29
|
+
export {};
|