Skip to content

Commit

Permalink
feat(fix,-test): fixed some config, added a text for testing config
Browse files Browse the repository at this point in the history
  • Loading branch information
leonlai257 committed Jan 19, 2024
1 parent 789abc4 commit eed6089
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@sidan-lab/sidan-ui",
"description": "UI library from SIDAN Lab",
"version": "0.0.2",
"version": "0.0.3",
"license": "Apache-2.0",
"main": "dist/cjs/index.js",
"module": "dist/mjs/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/atoms/input.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { styled } from '../styles';

export const InputField = styled('input', {
export const Input = styled('input', {
boxShadow: 'none',
borderStyle: 'none',
border: '1px solid',
Expand Down
1 change: 0 additions & 1 deletion src/atoms/text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { styled } from '../styles';
export const Text = styled('div', {
my: 'auto',
textAlign: 'center',
fontFamily: '$primary',
whiteSpace: 'nowrap',

variants: {
Expand Down
46 changes: 46 additions & 0 deletions src/atoms/textConfig.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import { styled } from '../styles';

export const TextConfig = styled('div', {
my: 'auto',
textAlign: 'center',
whiteSpace: 'nowrap',
color: '$primary',

variants: {
responsive: {
welcome: {
text: ['24px', '24px', '40px', '64px'],
fontWeight: 700,
},
title: {
text: ['16px', '20px', '24px'],
fontWeight: 700,
},
description: {
text: ['12px', '12px', '14px', '18px'],
},
},
style: {
warning: {
text: ['14px'],
fontWeight: 400,
color: '#FF9800',
},
info: {
text: ['14px'],
fontWeight: 400,
color: '#2196F3',
},
danger: {
text: ['14px'],
fontWeight: 400,
color: '#F44336',
},
success: {
text: ['14px'],
fontWeight: 400,
color: '#04AA6D',
},
},
},
});

0 comments on commit eed6089

Please sign in to comment.