@tipp/ui 1.2.5 → 1.2.7
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/atoms/heading.cjs +2 -2
- package/dist/atoms/heading.cjs.map +1 -1
- package/dist/atoms/heading.d.cts +1 -1
- package/dist/atoms/heading.d.ts +1 -1
- package/dist/atoms/heading.js +1 -1
- package/dist/atoms/index.cjs +2 -2
- package/dist/atoms/index.cjs.map +1 -1
- package/dist/atoms/index.js +1 -1
- package/dist/chunk-ADJNYQL4.js +97 -0
- package/dist/chunk-ADJNYQL4.js.map +1 -0
- package/dist/chunk-CBIWAPI3.js +130 -0
- package/dist/chunk-CBIWAPI3.js.map +1 -0
- package/dist/chunk-DRMYFBAV.js +37 -0
- package/dist/chunk-DRMYFBAV.js.map +1 -0
- package/dist/chunk-EBDP6HUI.js +97 -0
- package/dist/chunk-EBDP6HUI.js.map +1 -0
- package/dist/chunk-HCN4TB55.js +340 -0
- package/dist/chunk-HCN4TB55.js.map +1 -0
- package/dist/chunk-IDUOBDMG.js +130 -0
- package/dist/chunk-IDUOBDMG.js.map +1 -0
- package/dist/chunk-P4RHWPFR.js +37 -0
- package/dist/chunk-P4RHWPFR.js.map +1 -0
- package/dist/chunk-QNASXACS.js +169 -0
- package/dist/chunk-QNASXACS.js.map +1 -0
- package/dist/chunk-Z4UWDJXZ.js +340 -0
- package/dist/chunk-Z4UWDJXZ.js.map +1 -0
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +16 -16
- package/dist/molecules/date-picker/index.cjs +4 -4
- package/dist/molecules/date-picker/index.cjs.map +1 -1
- package/dist/molecules/date-picker/index.js +2 -2
- package/dist/molecules/expand-table/index.js +3 -3
- package/dist/molecules/expand-table/row.js +1 -1
- package/dist/molecules/index.cjs +4 -4
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.js +10 -10
- package/dist/molecules/navigation.js +1 -1
- package/dist/molecules/tag-selector.js +1 -1
- package/package.json +1 -1
- package/src/atoms/heading.tsx +3 -3
- package/src/molecules/date-picker/index.tsx +2 -2
package/src/atoms/heading.tsx
CHANGED
|
@@ -7,21 +7,21 @@ import { useMemo } from 'react';
|
|
|
7
7
|
export { Heading as RadixHeading } from '@radix-ui/themes';
|
|
8
8
|
|
|
9
9
|
export type HeadingProps = RadixHeadingProps & {
|
|
10
|
-
variant?: '
|
|
10
|
+
variant?: 'heading1' | 'heading2' | 'heading3' | 'heading4';
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export function Heading(props: HeadingProps): React.ReactElement {
|
|
14
14
|
const { size, children, variant, ...rest } = props;
|
|
15
15
|
const radixSize = useMemo<RadixHeadingProps['size']>(() => {
|
|
16
16
|
switch (variant) {
|
|
17
|
-
case 'subtitle1':
|
|
18
|
-
return '4';
|
|
19
17
|
case 'heading1':
|
|
20
18
|
return '7';
|
|
21
19
|
case 'heading2':
|
|
22
20
|
return '6';
|
|
23
21
|
case 'heading3':
|
|
24
22
|
return '5';
|
|
23
|
+
case 'heading4':
|
|
24
|
+
return '4';
|
|
25
25
|
default:
|
|
26
26
|
return size;
|
|
27
27
|
}
|
|
@@ -71,10 +71,10 @@ const renderCustomHeader: ReactDatePickerProps['renderCustomHeader'] = (
|
|
|
71
71
|
<ChevronLeftIcon />
|
|
72
72
|
</IconButton>
|
|
73
73
|
<Flex gap="3">
|
|
74
|
-
<Heading variant="
|
|
74
|
+
<Heading variant="heading4" weight="regular">
|
|
75
75
|
{year}년
|
|
76
76
|
</Heading>
|
|
77
|
-
<Heading variant="
|
|
77
|
+
<Heading variant="heading4" weight="regular">
|
|
78
78
|
{month + 1}월
|
|
79
79
|
</Heading>
|
|
80
80
|
</Flex>
|