@pushwoosh/dumb-components 1.0.2 → 1.0.4
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/Button/colors.js +1 -1
- package/Button/styles.js +3 -3
- package/DropdownMenu/components/DropdownMenuContainer/DropdownMenuContainer.js +1 -1
- package/DropdownMenu/components/DropdownMenuItemCheckbox/DropdownMenuItemCheckbox.d.ts +1 -1
- package/DropdownMenu/components/DropdownMenuItemCheckbox/DropdownMenuItemCheckbox.js +1 -1
- package/Spinner/Spinner.js +6 -3
- package/package.json +3 -3
package/Button/colors.js
CHANGED
|
@@ -123,7 +123,7 @@ export function createColors(buttonColors) {
|
|
|
123
123
|
if ($isOpen) {
|
|
124
124
|
return Color.MAIN;
|
|
125
125
|
}
|
|
126
|
-
return $isDisabled ? disabled.color : base.
|
|
126
|
+
return $isDisabled ? disabled.color : base.borderColor;
|
|
127
127
|
}, disabled.color, disabled.bgColor, disabled.borderColor, ({
|
|
128
128
|
$isOpen
|
|
129
129
|
}) => $isOpen ? '' : hoverCss /* sc-custom "display: none;" */, hover.color, hover.bgColor, hover.borderColor);
|
package/Button/styles.js
CHANGED
|
@@ -30,7 +30,7 @@ const dangerGhostColors = createColors(colors.danger.ghost);
|
|
|
30
30
|
export const ButtonBoxDangerGhostCompact = styled(ButtonBox).withConfig({
|
|
31
31
|
displayName: "ButtonBoxDangerGhostCompact",
|
|
32
32
|
componentId: "sc-qltvdl-4"
|
|
33
|
-
})(["height:16px;padding:0;font-size:", ";font-weight:", ";text-transform:uppercase;& ", "{padding:0;}
|
|
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
34
|
export const ButtonBoxDangerGhostField = styled(ButtonBox).withConfig({
|
|
35
35
|
displayName: "ButtonBoxDangerGhostField",
|
|
36
36
|
componentId: "sc-qltvdl-5"
|
|
@@ -60,7 +60,7 @@ const primaryGhostColors = createColors(colors.primary.ghost);
|
|
|
60
60
|
export const ButtonBoxPrimaryGhostCompact = styled(ButtonBox).withConfig({
|
|
61
61
|
displayName: "ButtonBoxPrimaryGhostCompact",
|
|
62
62
|
componentId: "sc-qltvdl-10"
|
|
63
|
-
})(["height:16px;padding:0;font-size:", ";font-weight:", ";text-transform:uppercase;& ", "{padding:0;}
|
|
63
|
+
})(["height:16px;padding:0;font-size:", ";font-weight:", ";text-transform:uppercase;& ", "{padding:0;}", ";--primary-ghost-hover-bg-color:transparent;"], FontSize.SMALL, FontWeight.BOLD, /* sc-selector */ButtonContent, /* sc-custom "display: none;" */primaryGhostColors);
|
|
64
64
|
export const ButtonBoxPrimaryGhostField = styled(ButtonBox).withConfig({
|
|
65
65
|
displayName: "ButtonBoxPrimaryGhostField",
|
|
66
66
|
componentId: "sc-qltvdl-11"
|
|
@@ -70,7 +70,7 @@ const secondaryGhostColors = createColors(colors.secondary.ghost);
|
|
|
70
70
|
export const ButtonBoxSecondaryGhostCompact = styled(ButtonBox).withConfig({
|
|
71
71
|
displayName: "ButtonBoxSecondaryGhostCompact",
|
|
72
72
|
componentId: "sc-qltvdl-12"
|
|
73
|
-
})(["height:16px;padding:0;font-size:", ";font-weight:", ";text-transform:uppercase;& ", "{padding:0;}
|
|
73
|
+
})(["height:16px;padding:0;font-size:", ";font-weight:", ";text-transform:uppercase;& ", "{padding:0;}", ";--secondary-ghost-base-color:", ";--secondary-ghost-hover-bg-color:transparent;"], FontSize.SMALL, FontWeight.BOLD, /* sc-selector */ButtonContent, /* sc-custom "display: none;" */secondaryGhostColors, Color.SOFT);
|
|
74
74
|
export const ButtonBoxSecondaryGhostField = styled(ButtonBox).withConfig({
|
|
75
75
|
displayName: "ButtonBoxSecondaryGhostField",
|
|
76
76
|
componentId: "sc-qltvdl-13"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useLayoutEffect, useRef } from 'react';
|
|
2
|
-
import { useOnClickOutside, useElementWidth } from '@pushwoosh/kit-hooks';
|
|
3
2
|
import { DropdownIcon as Icon } from '@pushwoosh/kit-icons';
|
|
3
|
+
import { useOnClickOutside, useElementWidth } from '../../../hooks';
|
|
4
4
|
import { useDropdownMenuContext } from '../DropdownMenu';
|
|
5
5
|
import { DropdownMenuContainerButtonMap } from './maps';
|
|
6
6
|
import { DropdownMenuContainerBox, DropdownMenuContainerChevron, DropdownMenuContainerIcon, DropdownMenuContainerPortal, DropdownMenuContainerTitle, DropdownMenuContainerWindow } from './styles';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Checkbox } from '@pushwoosh/kit-checkbox';
|
|
3
2
|
import { DropdownMenuItemCheckboxBox } from './styles';
|
|
3
|
+
import { Checkbox } from '../../../Checkbox';
|
|
4
4
|
export function DropdownMenuItemCheckbox(props) {
|
|
5
5
|
return React.createElement(DropdownMenuItemCheckboxBox, null, React.createElement(Checkbox, {
|
|
6
6
|
color: "main",
|
package/Spinner/Spinner.js
CHANGED
|
@@ -7,8 +7,8 @@ export function Spinner(props) {
|
|
|
7
7
|
size,
|
|
8
8
|
...rest
|
|
9
9
|
} = props;
|
|
10
|
-
const
|
|
11
|
-
if (!
|
|
10
|
+
const icon = AssetsMap[size];
|
|
11
|
+
if (!icon) {
|
|
12
12
|
console.error(`[Spinner]: incorrect size: ${size}!`);
|
|
13
13
|
return null;
|
|
14
14
|
}
|
|
@@ -16,5 +16,8 @@ export function Spinner(props) {
|
|
|
16
16
|
...rest,
|
|
17
17
|
size: size,
|
|
18
18
|
ref: boxRef
|
|
19
|
-
}, React.createElement(SpinnerAnimate, null, React.createElement(
|
|
19
|
+
}, React.createElement(SpinnerAnimate, null, React.createElement("img", {
|
|
20
|
+
src: icon,
|
|
21
|
+
alt: `${size} spinner`
|
|
22
|
+
})));
|
|
20
23
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pushwoosh/dumb-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "React components to build Pushwoosh products",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.js",
|
|
@@ -16,9 +16,8 @@
|
|
|
16
16
|
},
|
|
17
17
|
"pre-commit": "check",
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@pushwoosh/frontend-builder-engine": "^1.0.
|
|
19
|
+
"@pushwoosh/frontend-builder-engine": "^1.0.12",
|
|
20
20
|
"@pushwoosh/kit-constants": "^1.6.7",
|
|
21
|
-
"@pushwoosh/kit-dropdown-menu": "^1.6.8",
|
|
22
21
|
"@types/lodash": "^4.17.13",
|
|
23
22
|
"@types/react": "^18.2.69",
|
|
24
23
|
"@types/react-dom": "^18.2.22",
|
|
@@ -43,6 +42,7 @@
|
|
|
43
42
|
"@pushwoosh/kit-helpers": "^4.6.2",
|
|
44
43
|
"@pushwoosh/kit-icons": "^2.1.1",
|
|
45
44
|
"@pushwoosh/kit-typography": "^1.7.1",
|
|
45
|
+
"@tippyjs/react": "^4.2.6",
|
|
46
46
|
"liquidjs": "^10.18.0",
|
|
47
47
|
"lodash": "^4.17.21",
|
|
48
48
|
"polished": "^4.3.1",
|