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.
- package/lib/components/AttachmentButton/types.d.ts +2 -0
- package/lib/components/Icon/types.d.ts +1 -1
- package/lib/index.d.ts +3 -1
- package/lib/index.esm.js +28 -22
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +28 -22
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/assets/Themes/BaseTheme.scss +2 -1
- package/src/assets/Themes/DarkTheme.scss +1 -0
- package/src/assets/icons/success.svg +7 -3
- package/src/components/AllProjectsDropdown/AllProjectsDropdown.scss +1 -1
- package/src/components/AppHeader/AppHeader.scss +5 -3
- package/src/components/AppHeader/AppHeader.stories.tsx +35 -4
- package/src/components/AppHeader/AppHeader.tsx +135 -135
- package/src/components/AttachmentButton/AttachmentButton.stories.tsx +2 -0
- package/src/components/AttachmentButton/AttachmentButton.tsx +23 -16
- package/src/components/AttachmentButton/types.ts +2 -0
- package/src/components/Icon/Icon.tsx +2 -1
- package/src/components/Icon/Icons.scss +5 -0
- package/src/components/Icon/types.ts +1 -1
- package/src/components/MenuOption/MenuOption.scss +2 -2
- package/src/components/MenuOption/MenuOption.tsx +1 -0
- package/src/components/RadioGroup/RadioGroup.stories.tsx +2 -0
- package/src/components/Tooltip/Tooltip.scss +1 -1
- package/src/components/Tooltip/Tooltip.stories.tsx +4 -3
- package/src/components/Tooltip/Tooltip.tsx +2 -2
@@ -51,7 +51,7 @@
|
|
51
51
|
background: var(--option-card-bg-color);
|
52
52
|
overflow: hidden;
|
53
53
|
min-height: 32px;
|
54
|
-
min-width:
|
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:
|
80
|
+
padding: 4px;
|
81
81
|
gap: 8px;
|
82
82
|
&:hover {
|
83
83
|
background-color: var(--hover-color);
|
@@ -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',
|
@@ -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:
|
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:
|
92
|
+
title: 'icon',
|
92
93
|
placement: 'bottom',
|
93
|
-
children:
|
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: {
|