@remember-web/primitive 0.2.6 → 0.2.8
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/dist/src/Avatars/Avatar/index.cjs.js.map +1 -1
- package/dist/src/Avatars/Avatar/index.d.ts.map +1 -1
- package/dist/src/Avatars/Avatar/index.esm.js.map +1 -1
- package/dist/src/Badge/style.cjs.js +1 -1
- package/dist/src/Badge/style.cjs.js.map +1 -1
- package/dist/src/Badge/style.d.ts.map +1 -1
- package/dist/src/Badge/style.esm.js +1 -1
- package/dist/src/Badge/style.esm.js.map +1 -1
- package/dist/src/Buttons/Button/const.cjs.js +4 -4
- package/dist/src/Buttons/Button/const.cjs.js.map +1 -1
- package/dist/src/Buttons/Button/const.d.ts +4 -4
- package/dist/src/Buttons/Button/const.esm.js +4 -4
- package/dist/src/Buttons/Button/const.esm.js.map +1 -1
- package/dist/src/Control/BaseToggle/index.cjs.js +1 -1
- package/dist/src/Control/BaseToggle/index.cjs.js.map +1 -1
- package/dist/src/Control/BaseToggle/index.esm.js +1 -1
- package/dist/src/Control/BaseToggle/index.esm.js.map +1 -1
- package/dist/src/Floating/DropdownMenu/styles.cjs.js +3 -3
- package/dist/src/Floating/DropdownMenu/styles.cjs.js.map +1 -1
- package/dist/src/Floating/DropdownMenu/styles.d.ts +1 -1
- package/dist/src/Floating/DropdownMenu/styles.d.ts.map +1 -1
- package/dist/src/Floating/DropdownMenu/styles.esm.js +3 -3
- package/dist/src/Floating/DropdownMenu/styles.esm.js.map +1 -1
- package/dist/src/Floating/Tooltip/styles.cjs.js +2 -2
- package/dist/src/Floating/Tooltip/styles.cjs.js.map +1 -1
- package/dist/src/Floating/Tooltip/styles.d.ts +1 -1
- package/dist/src/Floating/Tooltip/styles.d.ts.map +1 -1
- package/dist/src/Floating/Tooltip/styles.esm.js +2 -2
- package/dist/src/Floating/Tooltip/styles.esm.js.map +1 -1
- package/dist/src/Inputs/Select/NativeSelect/styles.cjs.js +1 -1
- package/dist/src/Inputs/Select/NativeSelect/styles.cjs.js.map +1 -1
- package/dist/src/Inputs/Select/NativeSelect/styles.esm.js +1 -1
- package/dist/src/Inputs/Select/NativeSelect/styles.esm.js.map +1 -1
- package/dist/src/Inputs/Select/styles.cjs.js +2 -2
- package/dist/src/Inputs/Select/styles.cjs.js.map +1 -1
- package/dist/src/Inputs/Select/styles.esm.js +2 -2
- package/dist/src/Inputs/Select/styles.esm.js.map +1 -1
- package/dist/src/Inputs/TextInput/styles.cjs.js +4 -4
- package/dist/src/Inputs/TextInput/styles.cjs.js.map +1 -1
- package/dist/src/Inputs/TextInput/styles.esm.js +4 -4
- package/dist/src/Inputs/TextInput/styles.esm.js.map +1 -1
- package/dist/src/Logos/RememberServiceLogo/index.cjs.js +11 -5
- package/dist/src/Logos/RememberServiceLogo/index.cjs.js.map +1 -1
- package/dist/src/Logos/RememberServiceLogo/index.d.ts.map +1 -1
- package/dist/src/Logos/RememberServiceLogo/index.esm.js +10 -4
- package/dist/src/Logos/RememberServiceLogo/index.esm.js.map +1 -1
- package/dist/src/Logos/RememberServiceLogo/style.cjs.js +2 -2
- package/dist/src/Logos/RememberServiceLogo/style.cjs.js.map +1 -1
- package/dist/src/Logos/RememberServiceLogo/style.d.ts.map +1 -1
- package/dist/src/Logos/RememberServiceLogo/style.esm.js +3 -3
- package/dist/src/Logos/RememberServiceLogo/style.esm.js.map +1 -1
- package/dist/src/Modals/Dialog/styles.cjs.js +2 -2
- package/dist/src/Modals/Dialog/styles.cjs.js.map +1 -1
- package/dist/src/Modals/Dialog/styles.esm.js +2 -2
- package/dist/src/Modals/Dialog/styles.esm.js.map +1 -1
- package/dist/src/Paginations/styles.cjs.js +3 -3
- package/dist/src/Paginations/styles.cjs.js.map +1 -1
- package/dist/src/Paginations/styles.esm.js +3 -3
- package/dist/src/Paginations/styles.esm.js.map +1 -1
- package/package.json +3 -3
- package/src/Avatars/Avatar/index.tsx +1 -0
- package/src/Badge/style.tsx +1 -2
- package/src/Buttons/Button/const.ts +4 -4
- package/src/Common/Typography/Typography.stories.tsx +7 -7
- package/src/Control/BaseToggle/index.tsx +1 -1
- package/src/Floating/DropdownMenu/styles.tsx +12 -7
- package/src/Floating/Tooltip/styles.ts +9 -13
- package/src/Inputs/Select/NativeSelect/styles.ts +1 -1
- package/src/Inputs/Select/styles.ts +2 -2
- package/src/Inputs/TextInput/styles.ts +4 -4
- package/src/Logos/RememberServiceLogo/index.tsx +6 -4
- package/src/Logos/RememberServiceLogo/style.ts +1 -7
- package/src/Modals/Dialog/styles.ts +2 -2
- package/src/Paginations/styles.ts +3 -3
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
getTypographyStyles,
|
|
7
7
|
} from '@remember-web/mixin';
|
|
8
8
|
import type { ConvertTransientProps } from '@remember-web/shared';
|
|
9
|
-
import styled, { css, CSSProperties } from 'styled-components';
|
|
9
|
+
import styled, { css, type CSSProperties } from 'styled-components';
|
|
10
10
|
|
|
11
11
|
import { StyledPopoverContent } from '../Popover/styles';
|
|
12
12
|
|
|
@@ -15,7 +15,7 @@ export const dropdownMenuItemCSS = css`
|
|
|
15
15
|
align-items: center;
|
|
16
16
|
padding: 8px 12px;
|
|
17
17
|
|
|
18
|
-
${getTypographyStyles('
|
|
18
|
+
${getTypographyStyles('UIBody2')};
|
|
19
19
|
color: ${contents000};
|
|
20
20
|
transition: background-color 0.07s;
|
|
21
21
|
border-radius: unset;
|
|
@@ -35,7 +35,7 @@ export const DropdownMenuItemDisabledCSS = css`
|
|
|
35
35
|
|
|
36
36
|
export const StyledDropdownMenuSectionTitle = styled.span`
|
|
37
37
|
${dropdownMenuItemCSS};
|
|
38
|
-
${getTypographyStyles('
|
|
38
|
+
${getTypographyStyles('Caption1')};
|
|
39
39
|
color: ${contents200};
|
|
40
40
|
`;
|
|
41
41
|
|
|
@@ -58,6 +58,10 @@ export const getDropdownMenuItemCss = ({
|
|
|
58
58
|
css`
|
|
59
59
|
font-weight: ${$active ? 600 : 400};
|
|
60
60
|
|
|
61
|
+
&:hover{
|
|
62
|
+
font-weight: 600;
|
|
63
|
+
}
|
|
64
|
+
|
|
61
65
|
&:focus-visible {
|
|
62
66
|
outline: none;
|
|
63
67
|
}
|
|
@@ -73,12 +77,13 @@ export const StyledDropdownMenuItem = styled.div.attrs<DropdownMenuItemProps>(
|
|
|
73
77
|
})
|
|
74
78
|
)<StyledDropdownMenuItemProps>(getDropdownMenuItemCss);
|
|
75
79
|
|
|
76
|
-
|
|
77
|
-
|
|
80
|
+
export const StyledDropdownMenuContentWrapper = styled.div<{
|
|
81
|
+
$zIndex?: CSSProperties['zIndex'];
|
|
82
|
+
}>`
|
|
78
83
|
[data-radix-popper-content-wrapper]{
|
|
79
|
-
${({$zIndex}) => $zIndex && css` z-index: ${$zIndex} !important; `}
|
|
84
|
+
${({ $zIndex }) => $zIndex && css` z-index: ${$zIndex} !important; `}
|
|
80
85
|
}
|
|
81
|
-
|
|
86
|
+
`;
|
|
82
87
|
|
|
83
88
|
export const StyledDropdownMenuSection = styled.div``;
|
|
84
89
|
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
} from '@remember-web/mixin';
|
|
10
10
|
import styled, { css, keyframes } from 'styled-components';
|
|
11
11
|
|
|
12
|
+
import type { CSSProperties } from 'react';
|
|
12
13
|
import type { TooltipSize, TooltipTextAlign } from './types';
|
|
13
|
-
import { CSSProperties } from 'react';
|
|
14
14
|
|
|
15
15
|
const TOOLTIP_CONTENT_CONSTANTS: Record<
|
|
16
16
|
TooltipSize,
|
|
@@ -18,11 +18,11 @@ const TOOLTIP_CONTENT_CONSTANTS: Record<
|
|
|
18
18
|
> = {
|
|
19
19
|
large: {
|
|
20
20
|
padding: '8px 12px',
|
|
21
|
-
typography: '
|
|
21
|
+
typography: 'UIBody2',
|
|
22
22
|
},
|
|
23
23
|
small: {
|
|
24
24
|
padding: '4px 8px',
|
|
25
|
-
typography: '
|
|
25
|
+
typography: 'UIBody3',
|
|
26
26
|
},
|
|
27
27
|
};
|
|
28
28
|
|
|
@@ -43,11 +43,13 @@ export const TooltipTriggerWrapper = styled.div`
|
|
|
43
43
|
}
|
|
44
44
|
`;
|
|
45
45
|
|
|
46
|
-
export const TooltipContentWrapper = styled.div<{
|
|
46
|
+
export const TooltipContentWrapper = styled.div<{
|
|
47
|
+
$zIndex?: CSSProperties['zIndex'];
|
|
48
|
+
}>`
|
|
47
49
|
[data-radix-popper-content-wrapper]{
|
|
48
|
-
${({$zIndex}) => $zIndex && css` z-index: ${$zIndex} !important; `}
|
|
50
|
+
${({ $zIndex }) => $zIndex && css` z-index: ${$zIndex} !important; `}
|
|
49
51
|
}
|
|
50
|
-
|
|
52
|
+
`;
|
|
51
53
|
|
|
52
54
|
export const TooltipContent = styled(RadixTooltip.Content)<{
|
|
53
55
|
$size: TooltipSize;
|
|
@@ -65,13 +67,7 @@ export const TooltipContent = styled(RadixTooltip.Content)<{
|
|
|
65
67
|
will-change: opacity;
|
|
66
68
|
animation: ${fadeIn} 200ms forwards;
|
|
67
69
|
gap: 4px;
|
|
68
|
-
${({
|
|
69
|
-
$size,
|
|
70
|
-
$maxWidth,
|
|
71
|
-
$backgroundColor,
|
|
72
|
-
$contentColor,
|
|
73
|
-
$textAlign,
|
|
74
|
-
}) => [
|
|
70
|
+
${({ $size, $maxWidth, $backgroundColor, $contentColor, $textAlign }) => [
|
|
75
71
|
css`
|
|
76
72
|
padding: ${TOOLTIP_CONTENT_CONSTANTS[$size].padding};
|
|
77
73
|
${getTypographyStyles(TOOLTIP_CONTENT_CONSTANTS[$size].typography)};
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
import styled from 'styled-components';
|
|
12
12
|
|
|
13
13
|
export const SelectContainer = styled.div<{ $width?: number | string }>`
|
|
14
|
-
${getTypographyStyles('
|
|
14
|
+
${getTypographyStyles('UIBody2')}
|
|
15
15
|
color: ${contents000};
|
|
16
16
|
width: ${({ $width }) => {
|
|
17
17
|
if (!$width) {
|
|
@@ -39,7 +39,7 @@ export const SelectContainer = styled.div<{ $width?: number | string }>`
|
|
|
39
39
|
`;
|
|
40
40
|
|
|
41
41
|
export const SelectLabel = styled.label`
|
|
42
|
-
${getTypographyStyles('
|
|
42
|
+
${getTypographyStyles('SubTitle1')}
|
|
43
43
|
display: block;
|
|
44
44
|
margin-bottom: 12px;
|
|
45
45
|
display: flex;
|
|
@@ -62,7 +62,7 @@ export const InputDecorator = styled.div`
|
|
|
62
62
|
`;
|
|
63
63
|
|
|
64
64
|
export const InputInner = styled.input`
|
|
65
|
-
${getTypographyStyles('
|
|
65
|
+
${getTypographyStyles('UIBody2')}
|
|
66
66
|
color: ${contents000};
|
|
67
67
|
|
|
68
68
|
display: block;
|
|
@@ -86,7 +86,7 @@ export const InputInner = styled.input`
|
|
|
86
86
|
`;
|
|
87
87
|
|
|
88
88
|
export const InputLabel = styled.label`
|
|
89
|
-
${getTypographyStyles('
|
|
89
|
+
${getTypographyStyles('SubTitle1')}
|
|
90
90
|
display: block;
|
|
91
91
|
margin-bottom: 12px;
|
|
92
92
|
display: flex;
|
|
@@ -100,14 +100,14 @@ export const InputLabel = styled.label`
|
|
|
100
100
|
`;
|
|
101
101
|
|
|
102
102
|
export const InputError = styled.div`
|
|
103
|
-
${getTypographyStyles('
|
|
103
|
+
${getTypographyStyles('Caption1')}
|
|
104
104
|
color: ${roleRed};
|
|
105
105
|
|
|
106
106
|
margin-top: 8px;
|
|
107
107
|
`;
|
|
108
108
|
|
|
109
109
|
export const InputHintText = styled.span<{ textColor?: ColorVariable }>`
|
|
110
|
-
${getTypographyStyles('
|
|
110
|
+
${getTypographyStyles('UIBody2')}
|
|
111
111
|
color: ${({ textColor }) => textColor};
|
|
112
112
|
white-space: nowrap;
|
|
113
113
|
`;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { GetStyledComponentProps } from '@remember-web/shared';
|
|
2
2
|
|
|
3
|
-
import { Divider } from '@/Common';
|
|
3
|
+
import { Divider, Flex, Typography } from '@/Common';
|
|
4
4
|
import type { RememberLogoProps } from '@/Logos/types';
|
|
5
5
|
|
|
6
6
|
import { RememberLogo } from '../RememberLogo';
|
|
@@ -22,10 +22,12 @@ export const RememberServiceLogo = <As,>({
|
|
|
22
22
|
<StyledServiceLogoRoot $color={color} {...props}>
|
|
23
23
|
<RememberLogo color={color} />
|
|
24
24
|
{label && (
|
|
25
|
-
|
|
25
|
+
<Flex gap={8}>
|
|
26
26
|
<Divider decorative orientation="vertical" style={{ height: '15px' }} />
|
|
27
|
-
<
|
|
28
|
-
|
|
27
|
+
<Typography variant="SubTitle1" style={{ lineHeight: 1 }}>
|
|
28
|
+
{label}
|
|
29
|
+
</Typography>
|
|
30
|
+
</Flex>
|
|
29
31
|
)}
|
|
30
32
|
</StyledServiceLogoRoot>
|
|
31
33
|
);
|
|
@@ -7,12 +7,6 @@ export const StyledServiceLogoRoot = styled.a<{ $color?: string }>`
|
|
|
7
7
|
color: ${({ $color = contents000 }) => $color};
|
|
8
8
|
|
|
9
9
|
display: flex;
|
|
10
|
-
align-items: end;
|
|
10
|
+
align-items: flex-end;
|
|
11
11
|
gap: 8px;
|
|
12
|
-
|
|
13
|
-
> b {
|
|
14
|
-
${getTypographyStyles('Title2')};
|
|
15
|
-
text-decoration: none;
|
|
16
|
-
line-height: 16px;
|
|
17
|
-
}
|
|
18
12
|
`;
|
|
@@ -66,7 +66,7 @@ export const IconButton = styled.button`
|
|
|
66
66
|
`;
|
|
67
67
|
|
|
68
68
|
export const DialogTitle = styled(DialogPrimitive.Title)`
|
|
69
|
-
${getTypographyStyles('
|
|
69
|
+
${getTypographyStyles('SubTitle1')}
|
|
70
70
|
|
|
71
71
|
color: ${contents000};
|
|
72
72
|
margin: 0;
|
|
@@ -75,7 +75,7 @@ export const DialogTitle = styled(DialogPrimitive.Title)`
|
|
|
75
75
|
`;
|
|
76
76
|
|
|
77
77
|
export const DialogDescription = styled(DialogPrimitive.Description)`
|
|
78
|
-
${getTypographyStyles('
|
|
78
|
+
${getTypographyStyles('UIBody3')}
|
|
79
79
|
|
|
80
80
|
color: ${contents100};
|
|
81
81
|
margin: 4px 0 24px;
|
|
@@ -30,7 +30,7 @@ export const PaginationContainer = styled.nav`
|
|
|
30
30
|
export const CompactPaginationContainer = styled.div`
|
|
31
31
|
all: unset;
|
|
32
32
|
|
|
33
|
-
${getTypographyStyles('
|
|
33
|
+
${getTypographyStyles('UIBody3')}
|
|
34
34
|
gap: 16px;
|
|
35
35
|
display: flex;
|
|
36
36
|
align-items: center;
|
|
@@ -39,7 +39,7 @@ export const CompactPaginationContainer = styled.div`
|
|
|
39
39
|
`;
|
|
40
40
|
|
|
41
41
|
export const CurrentPage = styled.span`
|
|
42
|
-
${getTypographyStyles('
|
|
42
|
+
${getTypographyStyles('SubTitle2')}
|
|
43
43
|
`;
|
|
44
44
|
|
|
45
45
|
export const Pages = styled.ul`
|
|
@@ -55,7 +55,7 @@ const DefaultButton = styled.button.attrs({ type: 'button' })`
|
|
|
55
55
|
appearance: none;
|
|
56
56
|
box-sizing: border-box;
|
|
57
57
|
|
|
58
|
-
${getTypographyStyles('
|
|
58
|
+
${getTypographyStyles('UIBody3')}
|
|
59
59
|
display: grid;
|
|
60
60
|
place-items: center;
|
|
61
61
|
|