@soul-refiner/design-system 0.1.34 → 0.1.36
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/common/styles.d.ts +1 -1
- package/dist/components/actions/button/button.js +2 -1
- package/dist/components/actions/dropdown/dropdown.js +1 -0
- package/dist/components/actions/rate/rate.js +1 -0
- package/dist/components/actions/switch/switch.js +1 -0
- package/dist/components/actions/toggle/toggle.js +1 -0
- package/dist/components/actions/upload/upload.d.ts +1 -1
- package/dist/components/actions/upload/upload.js +2 -1
- package/dist/components/atoms/box/box.js +1 -0
- package/dist/components/atoms/colors/colors.js +1 -0
- package/dist/components/atoms/typography/display.js +1 -0
- package/dist/components/atoms/typography/heading.js +1 -0
- package/dist/components/atoms/typography/paragraph.js +2 -1
- package/dist/components/atoms/typography/typography.d.ts +1 -1
- package/dist/components/atoms/typography/typography.js +2 -1
- package/dist/components/card/action/action.js +1 -0
- package/dist/components/card/audio/audio.js +1 -0
- package/dist/components/card/card.js +1 -0
- package/dist/components/card/feature/feature.js +1 -0
- package/dist/components/card/person/person.js +1 -0
- package/dist/components/card/price/price.js +1 -0
- package/dist/components/card/regular/regular.js +1 -0
- package/dist/components/card/video/video.js +1 -0
- package/dist/components/card/written/written.js +1 -0
- package/dist/components/editor/editor.js +1 -0
- package/dist/components/feedback/badge/badge.js +1 -0
- package/dist/components/feedback/banner/banner.js +1 -0
- package/dist/components/feedback/chip/chip.js +1 -0
- package/dist/components/feedback/loader/loader.js +1 -0
- package/dist/components/feedback/notification/notification.js +1 -0
- package/dist/components/feedback/progress/progress.js +1 -0
- package/dist/components/feedback/toast/toast.js +1 -0
- package/dist/components/feedback/tooltip/tooltip.js +1 -0
- package/dist/components/iconography/avatar/avatar.js +1 -0
- package/dist/components/iconography/icon/icon.js +1 -0
- package/dist/components/input/checkbox/checkbox.js +1 -0
- package/dist/components/input/date/date.js +1 -0
- package/dist/components/input/filter/filter.js +1 -0
- package/dist/components/input/radio/radio.js +1 -0
- package/dist/components/input/search/search.js +1 -0
- package/dist/components/navigation/breadcrumb/breadcrumb.js +1 -0
- package/dist/components/navigation/tabs/tabs.js +1 -0
- package/dist/components/surfaces/accordion/accordion.js +1 -0
- package/dist/components/surfaces/comment/comment.js +1 -0
- package/dist/components/surfaces/drawer/drawer.js +1 -0
- package/dist/components/surfaces/message/message.js +1 -0
- package/dist/components/surfaces/modal/modal.js +1 -0
- package/dist/components/table/table/table.js +1 -0
- package/package.json +1 -1
- package/src/common/styles.ts +1 -1
- package/src/components/actions/button/button.tsx +3 -1
- package/src/components/actions/dropdown/dropdown.tsx +2 -0
- package/src/components/actions/rate/rate.tsx +2 -0
- package/src/components/actions/switch/switch.tsx +2 -0
- package/src/components/actions/toggle/toggle.tsx +2 -0
- package/src/components/actions/upload/upload.tsx +3 -1
- package/src/components/atoms/box/box.tsx +2 -0
- package/src/components/atoms/colors/colors.tsx +2 -0
- package/src/components/atoms/typography/display.tsx +2 -0
- package/src/components/atoms/typography/heading.tsx +2 -0
- package/src/components/atoms/typography/paragraph.tsx +3 -1
- package/src/components/atoms/typography/typography.tsx +4 -2
- package/src/components/card/action/action.tsx +2 -0
- package/src/components/card/audio/audio.tsx +2 -0
- package/src/components/card/card.tsx +2 -0
- package/src/components/card/feature/feature.tsx +2 -0
- package/src/components/card/person/person.tsx +2 -0
- package/src/components/card/price/price.tsx +2 -0
- package/src/components/card/regular/regular.tsx +2 -0
- package/src/components/card/video/video.tsx +2 -0
- package/src/components/card/written/written.tsx +2 -0
- package/src/components/editor/editor.tsx +2 -0
- package/src/components/feedback/badge/badge.tsx +2 -0
- package/src/components/feedback/banner/banner.tsx +2 -0
- package/src/components/feedback/chip/chip.tsx +2 -0
- package/src/components/feedback/loader/loader.tsx +2 -0
- package/src/components/feedback/notification/notification.tsx +2 -0
- package/src/components/feedback/progress/progress.tsx +2 -0
- package/src/components/feedback/toast/toast.tsx +2 -0
- package/src/components/feedback/tooltip/tooltip.tsx +2 -0
- package/src/components/iconography/avatar/avatar.tsx +2 -0
- package/src/components/iconography/icon/icon.tsx +2 -0
- package/src/components/input/checkbox/checkbox.tsx +2 -0
- package/src/components/input/date/date.tsx +2 -0
- package/src/components/input/filter/filter.tsx +2 -0
- package/src/components/input/radio/radio.tsx +2 -0
- package/src/components/input/search/search.tsx +2 -0
- package/src/components/navigation/breadcrumb/breadcrumb.tsx +2 -0
- package/src/components/navigation/tabs/tabs.tsx +2 -0
- package/src/components/surfaces/accordion/accordion.tsx +2 -0
- package/src/components/surfaces/comment/comment.tsx +2 -0
- package/src/components/surfaces/drawer/drawer.tsx +2 -0
- package/src/components/surfaces/message/message.tsx +2 -0
- package/src/components/surfaces/modal/modal.tsx +2 -0
- package/src/components/table/table/table.tsx +2 -0
package/dist/common/styles.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BackgroundColor, BorderRadius, Color, Elevation, Flex, Margin, Padding, Styleable, TextClamp, TypographyStyle, TypographyWeight } from 'types';
|
|
1
|
+
import { BackgroundColor, BorderRadius, Color, Elevation, Flex, Margin, Padding, Styleable, TextClamp, TypographyStyle, TypographyWeight } from '../types';
|
|
2
2
|
export declare namespace Styles {
|
|
3
3
|
const backgroundColor: import("styled-components").RuleSet<BackgroundColor>;
|
|
4
4
|
const borderRadius: import("styled-components").RuleSet<BorderRadius>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
'use client';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import styled, { css } from 'styled-components';
|
|
3
4
|
import { Styles } from '../../../common';
|
|
4
5
|
import { P } from '../../';
|
|
5
6
|
import { Box } from '../../atoms/box/box';
|
|
6
|
-
import { ChevronDown, ChevronUp } from 'icons';
|
|
7
|
+
import { ChevronDown, ChevronUp } from '../../../icons';
|
|
7
8
|
const LG_ICON_SIZE = 20;
|
|
8
9
|
const LG_ICON_SIZE_WO_CHILDREN = 24;
|
|
9
10
|
const LG_FONT_SIZE = 16;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { COLORS } from 'common';
|
|
2
|
+
import { COLORS } from '../../../common';
|
|
3
3
|
type UploadTypes = 'audio' | 'image' | 'file' | 'video';
|
|
4
4
|
export interface UploadProps extends React.PropsWithChildren {
|
|
5
5
|
background: (typeof COLORS)[number] | string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
'use client';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import styled from 'styled-components';
|
|
3
|
-
import { COLORS } from 'common';
|
|
4
|
+
import { COLORS } from '../../../common';
|
|
4
5
|
import { Box, Button, P } from '../../';
|
|
5
6
|
import { UploadAudio, UploadFile, UploadImage, UploadVideo, } from '../../../icons';
|
|
6
7
|
export const Upload = ({ background = 'hue-blue-3', borderColor = 'hue-blue-2', children, iconColor = 'primary-blue-2', multiple, onDrop, size = 'large', subtext, text, type, }) => {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
'use client';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import styled from 'styled-components';
|
|
3
|
-
import { Styles } from 'common';
|
|
4
|
+
import { Styles } from '../../../common';
|
|
4
5
|
export const P = ({ as = 'p', children, $fontSize = 16, $lineHeight = 24, $textAlign = 'left', ...rest }) => (React.createElement(StyledP, { as: as, "$fontSize": $fontSize, "$lineHeight": $lineHeight, "$textAlign": $textAlign, ...rest }, children));
|
|
5
6
|
const StyledP = styled.p `
|
|
6
7
|
margin: 0px;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Color, Styleable, TextClamp, TypographyStyle, TypographyWeight } from 'types';
|
|
1
|
+
import { Color, Styleable, TextClamp, TypographyStyle, TypographyWeight } from '../../../types';
|
|
2
2
|
export type TypographyProps = Pick<React.HTMLAttributes<HTMLParagraphElement>, 'children' | 'className' | 'dangerouslySetInnerHTML' | 'id' | 'onBlur' | 'onBlurCapture' | 'onClick' | 'onChange' | 'onCopy' | 'onCut' | 'onKeyDown' | 'onKeyDownCapture' | 'onKeyUp' | 'onKeyUpCapture' | 'onMouseDown' | 'onMouseDownCapture' | 'onMouseEnter' | 'onMouseLeave' | 'onMouseOut' | 'onMouseOver'> & {
|
|
3
3
|
value?: string;
|
|
4
4
|
href?: string;
|
package/package.json
CHANGED
package/src/common/styles.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
1
3
|
import React from 'react';
|
|
2
4
|
import styled, { css } from 'styled-components';
|
|
3
5
|
import { Styles } from '../../../common';
|
|
4
6
|
import { P } from '../../';
|
|
5
7
|
import { Box } from '../../atoms/box/box';
|
|
6
|
-
import { ChevronDown, ChevronUp } from 'icons';
|
|
8
|
+
import { ChevronDown, ChevronUp } from '../../../icons';
|
|
7
9
|
|
|
8
10
|
const LG_ICON_SIZE = 20;
|
|
9
11
|
const LG_ICON_SIZE_WO_CHILDREN = 24;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
1
3
|
import React from 'react';
|
|
2
4
|
import styled from 'styled-components';
|
|
3
5
|
import { TypographyProps } from './typography';
|
|
4
|
-
import { Styles } from 'common';
|
|
6
|
+
import { Styles } from '../../../common';
|
|
5
7
|
|
|
6
8
|
export interface CommonProps extends TypographyProps {
|
|
7
9
|
as?: React.ElementType;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
1
3
|
import styled from 'styled-components';
|
|
2
|
-
import { Styles } from 'common';
|
|
4
|
+
import { Styles } from '../../../common';
|
|
3
5
|
import {
|
|
4
6
|
Color,
|
|
5
7
|
Styleable,
|
|
6
8
|
TextClamp,
|
|
7
9
|
TypographyStyle,
|
|
8
10
|
TypographyWeight,
|
|
9
|
-
} from 'types';
|
|
11
|
+
} from '../../../types';
|
|
10
12
|
|
|
11
13
|
export type TypographyProps = Pick<
|
|
12
14
|
React.HTMLAttributes<HTMLParagraphElement>,
|