@tipp/ui 1.6.34 → 1.6.35

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/index.js CHANGED
@@ -29,7 +29,7 @@ import {
29
29
  } from "./chunk-6DZ4VE36.js";
30
30
  import {
31
31
  ReportCard
32
- } from "./chunk-M6RP7E5E.js";
32
+ } from "./chunk-5WRWSILW.js";
33
33
  import {
34
34
  ReservationCard
35
35
  } from "./chunk-5RXSBHAF.js";
@@ -69,9 +69,6 @@ import {
69
69
  import {
70
70
  DatePicker
71
71
  } from "./chunk-CWJ6DC27.js";
72
- import {
73
- LearningPost
74
- } from "./chunk-USAO24JU.js";
75
72
  import {
76
73
  Navigation
77
74
  } from "./chunk-ZLRO6VGF.js";
@@ -114,6 +111,9 @@ import {
114
111
  import {
115
112
  GhostPost
116
113
  } from "./chunk-MRSCXF6Z.js";
114
+ import {
115
+ LearningPost
116
+ } from "./chunk-USAO24JU.js";
117
117
  import {
118
118
  ThemeProvider
119
119
  } from "./chunk-FX7FMZ2U.js";
@@ -10,9 +10,6 @@ import {
10
10
  import {
11
11
  DatePicker
12
12
  } from "../chunk-CWJ6DC27.js";
13
- import {
14
- LearningPost
15
- } from "../chunk-USAO24JU.js";
16
13
  import {
17
14
  Navigation
18
15
  } from "../chunk-ZLRO6VGF.js";
@@ -45,6 +42,9 @@ import {
45
42
  import {
46
43
  GhostPost
47
44
  } from "../chunk-MRSCXF6Z.js";
45
+ import {
46
+ LearningPost
47
+ } from "../chunk-USAO24JU.js";
48
48
  import "../chunk-FX7FMZ2U.js";
49
49
  import "../chunk-A6W2ZWYA.js";
50
50
  import "../chunk-4JBL5FRI.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tipp/ui",
3
- "version": "1.6.34",
3
+ "version": "1.6.35",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "exports": {
@@ -1,5 +1,5 @@
1
1
  import React, { useCallback } from 'react';
2
- import { Button, Card, Flex, Heading } from '@/atoms';
2
+ import { Box, Button, Card, Flex, Heading, Typo } from '@/atoms';
3
3
  import type { Attachment } from '@/molecules';
4
4
  import { DownloadIcon } from '@/icon';
5
5
 
@@ -8,10 +8,11 @@ export interface ReportCardProps {
8
8
  title?: string;
9
9
  file?: File;
10
10
  status?: React.ReactNode;
11
+ subtitle?: string;
11
12
  }
12
13
 
13
14
  export function ReportCard(props: ReportCardProps): React.ReactElement {
14
- const { title, file, status } = props;
15
+ const { title, file, status, subtitle } = props;
15
16
 
16
17
  const onClickDownload = useCallback(() => {
17
18
  if (!file) return;
@@ -44,7 +45,10 @@ export function ReportCard(props: ReportCardProps): React.ReactElement {
44
45
  gapY="2"
45
46
  justify="between"
46
47
  >
47
- <Heading variant="heading4">{title}</Heading>
48
+ <Box>
49
+ <Heading variant="heading4">{title}</Heading>
50
+ {subtitle ? <Typo color="gray">{subtitle}</Typo> : null}
51
+ </Box>
48
52
  <Button key={file?.url} onClick={onClickDownload} variant="surface">
49
53
  <Flex gap="2" width="100%">
50
54
  <DownloadIcon />