@remember-web/primitive 0.2.7 → 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.
Files changed (70) hide show
  1. package/dist/src/Badge/style.cjs.js +1 -1
  2. package/dist/src/Badge/style.cjs.js.map +1 -1
  3. package/dist/src/Badge/style.d.ts.map +1 -1
  4. package/dist/src/Badge/style.esm.js +1 -1
  5. package/dist/src/Badge/style.esm.js.map +1 -1
  6. package/dist/src/Buttons/Button/const.cjs.js +4 -4
  7. package/dist/src/Buttons/Button/const.cjs.js.map +1 -1
  8. package/dist/src/Buttons/Button/const.d.ts +4 -4
  9. package/dist/src/Buttons/Button/const.esm.js +4 -4
  10. package/dist/src/Buttons/Button/const.esm.js.map +1 -1
  11. package/dist/src/Control/BaseToggle/index.cjs.js +1 -1
  12. package/dist/src/Control/BaseToggle/index.cjs.js.map +1 -1
  13. package/dist/src/Control/BaseToggle/index.esm.js +1 -1
  14. package/dist/src/Control/BaseToggle/index.esm.js.map +1 -1
  15. package/dist/src/Floating/DropdownMenu/styles.cjs.js +3 -3
  16. package/dist/src/Floating/DropdownMenu/styles.cjs.js.map +1 -1
  17. package/dist/src/Floating/DropdownMenu/styles.d.ts +1 -1
  18. package/dist/src/Floating/DropdownMenu/styles.d.ts.map +1 -1
  19. package/dist/src/Floating/DropdownMenu/styles.esm.js +3 -3
  20. package/dist/src/Floating/DropdownMenu/styles.esm.js.map +1 -1
  21. package/dist/src/Floating/Tooltip/styles.cjs.js +2 -2
  22. package/dist/src/Floating/Tooltip/styles.cjs.js.map +1 -1
  23. package/dist/src/Floating/Tooltip/styles.d.ts +1 -1
  24. package/dist/src/Floating/Tooltip/styles.d.ts.map +1 -1
  25. package/dist/src/Floating/Tooltip/styles.esm.js +2 -2
  26. package/dist/src/Floating/Tooltip/styles.esm.js.map +1 -1
  27. package/dist/src/Inputs/Select/NativeSelect/styles.cjs.js +1 -1
  28. package/dist/src/Inputs/Select/NativeSelect/styles.cjs.js.map +1 -1
  29. package/dist/src/Inputs/Select/NativeSelect/styles.esm.js +1 -1
  30. package/dist/src/Inputs/Select/NativeSelect/styles.esm.js.map +1 -1
  31. package/dist/src/Inputs/Select/styles.cjs.js +2 -2
  32. package/dist/src/Inputs/Select/styles.cjs.js.map +1 -1
  33. package/dist/src/Inputs/Select/styles.esm.js +2 -2
  34. package/dist/src/Inputs/Select/styles.esm.js.map +1 -1
  35. package/dist/src/Inputs/TextInput/styles.cjs.js +4 -4
  36. package/dist/src/Inputs/TextInput/styles.cjs.js.map +1 -1
  37. package/dist/src/Inputs/TextInput/styles.esm.js +4 -4
  38. package/dist/src/Inputs/TextInput/styles.esm.js.map +1 -1
  39. package/dist/src/Logos/RememberServiceLogo/index.cjs.js +11 -5
  40. package/dist/src/Logos/RememberServiceLogo/index.cjs.js.map +1 -1
  41. package/dist/src/Logos/RememberServiceLogo/index.d.ts.map +1 -1
  42. package/dist/src/Logos/RememberServiceLogo/index.esm.js +10 -4
  43. package/dist/src/Logos/RememberServiceLogo/index.esm.js.map +1 -1
  44. package/dist/src/Logos/RememberServiceLogo/style.cjs.js +2 -2
  45. package/dist/src/Logos/RememberServiceLogo/style.cjs.js.map +1 -1
  46. package/dist/src/Logos/RememberServiceLogo/style.d.ts.map +1 -1
  47. package/dist/src/Logos/RememberServiceLogo/style.esm.js +3 -3
  48. package/dist/src/Logos/RememberServiceLogo/style.esm.js.map +1 -1
  49. package/dist/src/Modals/Dialog/styles.cjs.js +2 -2
  50. package/dist/src/Modals/Dialog/styles.cjs.js.map +1 -1
  51. package/dist/src/Modals/Dialog/styles.esm.js +2 -2
  52. package/dist/src/Modals/Dialog/styles.esm.js.map +1 -1
  53. package/dist/src/Paginations/styles.cjs.js +3 -3
  54. package/dist/src/Paginations/styles.cjs.js.map +1 -1
  55. package/dist/src/Paginations/styles.esm.js +3 -3
  56. package/dist/src/Paginations/styles.esm.js.map +1 -1
  57. package/package.json +3 -3
  58. package/src/Badge/style.tsx +1 -2
  59. package/src/Buttons/Button/const.ts +4 -4
  60. package/src/Common/Typography/Typography.stories.tsx +7 -7
  61. package/src/Control/BaseToggle/index.tsx +1 -1
  62. package/src/Floating/DropdownMenu/styles.tsx +12 -7
  63. package/src/Floating/Tooltip/styles.ts +9 -13
  64. package/src/Inputs/Select/NativeSelect/styles.ts +1 -1
  65. package/src/Inputs/Select/styles.ts +2 -2
  66. package/src/Inputs/TextInput/styles.ts +4 -4
  67. package/src/Logos/RememberServiceLogo/index.tsx +6 -4
  68. package/src/Logos/RememberServiceLogo/style.ts +1 -7
  69. package/src/Modals/Dialog/styles.ts +2 -2
  70. package/src/Paginations/styles.ts +3 -3
@@ -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: 'Body1',
21
+ typography: 'UIBody2',
22
22
  },
23
23
  small: {
24
24
  padding: '4px 8px',
25
- typography: 'Body2',
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<{$zIndex?: CSSProperties['zIndex']}>`
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)};
@@ -16,7 +16,7 @@ export const StyledSelect = styled.select<{
16
16
  }>`
17
17
  all: unset;
18
18
 
19
- ${getTypographyStyles('Body1_M')}
19
+ ${getTypographyStyles('UIBody2')}
20
20
  border: 1px solid ${contents300};
21
21
  border-radius: 4px;
22
22
  padding: 10px 36px 10px 12px;
@@ -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('Body1_M')}
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('Headline4_B')}
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('Body1_M')}
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('Headline4_B')}
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('Body2_M')}
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('Body1_M')}
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
- <b>{label}</b>
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('Headline4_B')}
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('Body1_M')}
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('Body1_M')}
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('Body1_B')}
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('Body1_M')}
58
+ ${getTypographyStyles('UIBody3')}
59
59
  display: grid;
60
60
  place-items: center;
61
61