@pushwoosh/dumb-components 1.0.3 → 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 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.bgColor;
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;}& ", " + ", "{padding:0 0 0 ", ";}", ";--danger-ghost-hover-bg-color:transparent;"], FontSize.SMALL, FontWeight.BOLD, /* sc-selector */ButtonContent, /* sc-selector */ButtonIcon, /* sc-selector */ButtonContent, Spacing.S1, /* sc-custom "display: none;" */dangerGhostColors);
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;}& ", " + ", "{padding:0 0 0 ", ";}", ";--primary-ghost-hover-bg-color:transparent;"], FontSize.SMALL, FontWeight.BOLD, /* sc-selector */ButtonContent, /* sc-selector */ButtonIcon, /* sc-selector */ButtonContent, Spacing.S1, /* sc-custom "display: none;" */primaryGhostColors);
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"
@@ -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,3 +1,3 @@
1
1
  import { type ReactElement } from 'react';
2
- import { type CheckboxProps } from '@pushwoosh/kit-checkbox';
2
+ import { type CheckboxProps } from '../../../Checkbox';
3
3
  export declare function DropdownMenuItemCheckbox(props: CheckboxProps): ReactElement;
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/dumb-components",
3
- "version": "1.0.3",
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.11",
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",