@soul-refiner/design-system 0.2.117 → 0.2.119

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.
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ export interface CalendarDateProps {
3
+ monthAbbreviation: string;
4
+ date: number;
5
+ dayOfWeek?: string;
6
+ startTime?: string;
7
+ endTime?: string;
8
+ }
9
+ export declare const CalendarDate: ({ monthAbbreviation, date, dayOfWeek, startTime, endTime, }: CalendarDateProps) => React.JSX.Element;
@@ -0,0 +1,38 @@
1
+ 'use client';
2
+ import React from 'react';
3
+ import styled from 'styled-components';
4
+ import { H, P } from '../../atoms/typography';
5
+ export const CalendarDate = ({ monthAbbreviation, date, dayOfWeek, startTime, endTime, }) => {
6
+ return (React.createElement(Container, null,
7
+ React.createElement(CalendarContainer, null,
8
+ React.createElement(MonthContainer, null,
9
+ React.createElement(H.Seven, { "$color": "white", "$textAlign": "center", sx: "font-weight: 600;" }, monthAbbreviation)),
10
+ React.createElement(DateContainer, null,
11
+ React.createElement(H.One, { "$textAlign": "center", sx: "font-weight: 600;" }, date))),
12
+ dayOfWeek && startTime && endTime && (React.createElement(TimeContainer, null,
13
+ React.createElement(P, { as: "span", "$color": "red-5" }, `${dayOfWeek}, ${startTime} -> ${endTime}`)))));
14
+ };
15
+ const Container = styled.div `
16
+ display: flex;
17
+ flex-direction: column;
18
+ align-items: center;
19
+ `;
20
+ const CalendarContainer = styled.div `
21
+ display: flex;
22
+ flex-direction: column;
23
+ width: 120px;
24
+ `;
25
+ const MonthContainer = styled.div `
26
+ padding: 8px 16px;
27
+ background-color: var(--color-red-5);
28
+ border-radius: 16px 16px 0 0;
29
+ `;
30
+ const DateContainer = styled.div `
31
+ padding: 8px 16px;
32
+ background-color: white;
33
+ border-radius: 0 0 16px 16px;
34
+ box-shadow: var(--elevation-3);
35
+ `;
36
+ const TimeContainer = styled.div `
37
+ margin-top: 16px;
38
+ `;
@@ -0,0 +1,2 @@
1
+ export { CalendarDate } from './calendar_date';
2
+ export type { CalendarDateProps } from './calendar_date';
@@ -0,0 +1 @@
1
+ export { CalendarDate } from './calendar_date';
@@ -14,3 +14,5 @@ export { Portal } from './portal';
14
14
  export type { PortalProps } from './portal';
15
15
  export { Post } from './post';
16
16
  export type { PostProps } from './post';
17
+ export { CalendarDate } from './calendar_date';
18
+ export type { CalendarDateProps } from './calendar_date';
@@ -6,3 +6,4 @@ export { Message } from './message';
6
6
  export { Modal } from './modal';
7
7
  export { Portal } from './portal';
8
8
  export { Post } from './post';
9
+ export { CalendarDate } from './calendar_date';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soul-refiner/design-system",
3
- "version": "0.2.117",
3
+ "version": "0.2.119",
4
4
  "main": "dist/index.js",
5
5
  "license": "MIT",
6
6
  "publishConfig": {