pixel-react 1.5.1 → 1.5.2

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.
@@ -51,7 +51,7 @@
51
51
  background: var(--option-card-bg-color);
52
52
  overflow: hidden;
53
53
  min-height: 32px;
54
- min-width: 112px;
54
+ min-width: 110px;
55
55
  width: max-content;
56
56
  border-radius: 4px;
57
57
  &--primary{
@@ -77,7 +77,7 @@
77
77
  border-radius: 3px;
78
78
  display: flex;
79
79
  align-items: center;
80
- padding: 8px;
80
+ padding: 4px;
81
81
  gap: 8px;
82
82
  &:hover {
83
83
  background-color: var(--hover-color);
@@ -31,6 +31,7 @@ const Option = ({ option, onClick }: OptionProps) => (
31
31
  )}
32
32
  <Typography
33
33
  as="label"
34
+ lineHeight='18px'
34
35
  color={option.icon === 'delete' ? 'var(--delete-text-color)' : ''}
35
36
  >
36
37
  {option.label}
@@ -2,6 +2,8 @@ import type { Meta, StoryObj } from '@storybook/react';
2
2
  import RadioGroup from './RadioGroup';
3
3
  import { useState } from 'react';
4
4
  import Icon from '../Icon';
5
+ import React from 'react';
6
+ import { Option } from '../MultiSelect/MultiSelectTypes';
5
7
 
6
8
  const meta: Meta<typeof RadioGroup> = {
7
9
  title: 'Components/RadioGroup',
@@ -16,7 +16,7 @@
16
16
  color: var(--tooltip-text-color);
17
17
  text-align: center;
18
18
  border-radius: 5px;
19
- padding: 6px 12px;
19
+ padding: 4px 8px;
20
20
  opacity: 0;
21
21
  z-index: 10000;
22
22
 
@@ -1,6 +1,7 @@
1
1
  import { Meta, StoryObj } from '@storybook/react';
2
2
  import Tooltip from './Tooltip';
3
3
  import Icon from '../Icon';
4
+ import React from 'react';
4
5
 
5
6
  const meta: Meta<typeof Tooltip> = {
6
7
  title: 'Components/Tooltip',
@@ -20,7 +21,7 @@ export const Default: Story = {
20
21
  args: {
21
22
  title: 'Default',
22
23
  placement: 'bottom',
23
- children: 'Hover on me to check tooltip',
24
+ children: <Icon name="delete" hoverEffect={true} />,
24
25
  },
25
26
  };
26
27
 
@@ -88,9 +89,9 @@ export const BottomEnd: Story = {
88
89
  };
89
90
  export const TooltipWithIcon: Story = {
90
91
  args: {
91
- title: <Icon name="logo" />,
92
+ title: 'icon',
92
93
  placement: 'bottom',
93
- children: 'Hover on me to check jsx',
94
+ children: <Icon name="delete" />,
94
95
  },
95
96
  };
96
97
 
@@ -39,11 +39,11 @@ const Tooltip: React.FC<TooltipProps> = ({
39
39
  const currentTheme = themeContext?.currentTheme;
40
40
  const styles: Position = {
41
41
  left: {
42
- top: posY,
42
+ top: posY- 1,
43
43
  left: posX - titleWidth - 5,
44
44
  },
45
45
  right: {
46
- top: posY,
46
+ top: posY -1,
47
47
  left: fromRight + 5,
48
48
  },
49
49
  top: {