Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
2c9897d
feat: 添加主题色
mistyu Jul 8, 2024
253ee16
style: 根据设计规范调整弹窗样式
zgldada Jul 8, 2024
072e6f3
style: 根据设计规范调整弹窗样式
zgldada Jul 8, 2024
6d5946a
feat: 修改包信息
mistyu Jul 8, 2024
e38b49a
feat: 修改包信息
mistyu Jul 8, 2024
873fcab
feat: 主题色版本号
mistyu Jul 8, 2024
6209fb8
feat: Actionsheet 动作面板
zhongze9401 Jul 8, 2024
05d0dc6
feat: 主题色版本号
mistyu Jul 8, 2024
ab09129
Merge pull request #5 from augmn/feature/package-info
wuliLiuyue Jul 8, 2024
a035197
fix: 修改review
zgldada Jul 8, 2024
d415221
fix: 修改review
zgldada Jul 8, 2024
bcb6ff0
fix: 修改review
zgldada Jul 8, 2024
90f98a1
Merge branch 'main' into feature-color
wuliLiuyue Jul 9, 2024
ba19e54
Merge pull request #3 from augmn/feature-color
wuliLiuyue Jul 9, 2024
6f70b10
Merge pull request #6 from augmn/feature-actionsheet
wuliLiuyue Jul 9, 2024
879854b
fix: 还原格式化
zgldada Jul 9, 2024
f880a54
fix: 还原格式化
zgldada Jul 9, 2024
c6e0c87
fix: 还原格式化
zgldada Jul 9, 2024
631c4e3
fix: 还原格式化
zgldada Jul 9, 2024
6fc70fb
fix: 还原格式化
zgldada Jul 9, 2024
f362496
fix: 删除尺寸修改
zgldada Jul 9, 2024
7fd4355
feat: 修改reviw
zgldada Jul 10, 2024
0c16102
feat: 修改reviw
zgldada Jul 10, 2024
a7484c4
feat: 修改reviw
zgldada Jul 10, 2024
102b9de
fix: 修改版本号
zgldada Jul 11, 2024
b7cdc73
fix: 合并主分支
zgldada Jul 11, 2024
1d0002b
fix: 合并主分支
zgldada Jul 11, 2024
a79abac
Merge pull request #9 from augmn/feature-modal
wuliLiuyue Jul 11, 2024
651fca3
feat: 动作面板
zhongze9401 Jul 11, 2024
1f482aa
Merge pull request #10 from augmn/feature-actionsheet
mistyu Jul 11, 2024
4cacce8
feat: 环境变量配置
zhongze9401 Jul 11, 2024
3f108fd
Merge pull request #11 from augmn/feature-actionsheet
wuliLiuyue Jul 11, 2024
cba931a
fix: tag组件开发
zgldada Jul 12, 2024
27f1311
fix: tag组件开发
zgldada Jul 12, 2024
b5c3591
fix: tag组件开发
zgldada Jul 12, 2024
80b1b31
fix: 修改版本号
zgldada Jul 12, 2024
e6e0a1c
fix: tag组件样式调整
zgldada Jul 16, 2024
fde9f76
fix: tag组件样式调整
zgldada Jul 16, 2024
6422ce6
fix: tag组件样式调整
zgldada Jul 16, 2024
8157809
fix: tag组件样式调整
zgldada Jul 16, 2024
b595886
fix: tag组件样式调整
zgldada Jul 16, 2024
cada7d4
fix: tag组件增加定制化
zgldada Jul 16, 2024
83aefe7
fix: tag组件增加定制化
zgldada Jul 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"version-packages:ci": "changeset version && pnpm install --shamefully-hoist --no-frozen-lockfile",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
"release": "pnpm build && pnpm release:only",
"release:only": "changeset publish --registry=https://registry.npmjs.com/",
"release:only": "changeset publish --registry=https://npm.infra.inner.casamiel.cn/",
"test": "pnpm --filter=ossa-demo test",
"checkUIChange": "node ./scripts/checkModifyListAndTest.js",
"prepare": "husky install"
Expand Down
3 changes: 3 additions & 0 deletions packages/ossa-demo/src/assets/style/_variable.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
$--font-color:#666;
$--font-size:14px;

/* Theme Color */
$--color-primay:#AF7357 !default; // 主题色

/* Color */
$--color-red:#DD1A21 !default; // 品牌红
// $--color-logo:#FF142F !default; // 桌面图标亮红色
Expand Down
5 changes: 5 additions & 0 deletions packages/ossa-demo/src/components/color/demo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ function getClassObject() {
}

const initialColorList: ColorListItem[] = [
{
color: "#AF7357",
title: "YXColorPrimary",
desc: "主题色",
},
{
color: "#DD1A21",
title: "YXColorRed",
Expand Down
20 changes: 20 additions & 0 deletions packages/ossa-demo/src/components/tag/demo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,26 @@ export default function Index() {
</View>
</View>
</DemoBlock>
<DemoBlock title='中尺寸'>
<View className='block-section'>
<View className='inline-item'>
<OsTag bgColor='#F7F8F8' color='#3D3D3D' size='middle'>女性蛋糕</OsTag>
</View>
<View className='inline-item'>
<OsTag bgColor='#F7F8F8' border=' 1px solid #AF7357' color='#AF7357' size='middle'>女性蛋糕</OsTag>
</View>
</View>
</DemoBlock>
<DemoBlock title='大尺寸'>
<View className='block-section'>
<View className='inline-item'>
<OsTag color='#3D3D3D' size='large'>整条(12片装)</OsTag>
</View>
<View className='inline-item'>
<OsTag bgColor='#FFF7F1' type='primary' border='1px solid #893F23' color='#893F23' size='large'>整条(12片装)</OsTag>
</View>
</View>
</DemoBlock>
<DemoBlock>
<DemoTable list={listApi}></DemoTable>
</DemoBlock>
Expand Down
3 changes: 3 additions & 0 deletions packages/ossa-doc/docs/color.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ demo_url: 'https://neteaseyanxuan.github.io/OSSA/#/components/color/demo/index'

### scss变量
```scss
/* Theme Color */
$--color-primay: #AF7357 !default; // 主题色

/* Color */
$--color-red:#DD1A21 !default; // 品牌红
$--color-yellow:#F48F18 !default; // 营销色
Expand Down
2 changes: 2 additions & 0 deletions packages/ossa-doc/docs/组件/tag.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ demo_url: 'https://neteaseyanxuan.github.io/OSSA/#/components/tag/demo/index'
|endBgColor|填充渐变结束色,可选|string|-(只支持radius腰圆标签,且与startBgColor配合使用)|
|showArrow|显示向右箭头,可选|boolean|-(只支持radius腰圆标签)|
|customStyle|自定义Style,可选|Object|-|
|size|tag尺寸|,可选|middle|large|-|
|border|边框,可选|string|-


### 方法
Expand Down
4 changes: 2 additions & 2 deletions packages/ossa/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ossaui",
"version": "0.7.4",
"name": "@casamiel/ossaui",
"version": "0.7.4-beta.4",
"description": "",
"main": "dist/index.js",
"module": "dist/index.esm.js",
Expand Down
21 changes: 16 additions & 5 deletions packages/ossa/src/components/modal/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import React from "react";
import { View, Image, Text, Button } from "@tarojs/components";
import { View, Image, Text } from "@tarojs/components";
import classNames from "classnames";
import { OsModalProps } from "../../../types/index";
import getOpenTypeRelatedProps from "../../utils/getOpenTypeRelatedProps";
import { deprecatedProp } from "../../utils";
import Button from "../button";

const closeIconImg =
"https://yanxuan-static.nosdn.127.net/hxm/yanxuan-wap/p/20161201/style/img/icon-normal/modalClose-9d2d6d39f7.png?imageView";
Expand Down Expand Up @@ -108,8 +109,10 @@ export default function Index(props: OsModalProps) {
className={classNames({
["ossa-action-btn"]: true,
["ossa-action-btn--cancel"]: true,
["ossa-action-btn--disabled"]: props.disableCancelBtn,
})}
shape='round'
size={confirmText ? 'normal' : 'block'}
disabled={props.disableConfirmBtn}
onClick={(e) => onClickCancelBtn(props)}
>
{cancelText}
Expand All @@ -120,9 +123,12 @@ export default function Index(props: OsModalProps) {
className={classNames({
["ossa-action-btn"]: true,
["ossa-action-btn--confirm"]: true,
["ossa-action-btn--disabled"]: props.disableConfirmBtn,
})}
openType={confirmOpenType}
type='primary'
shape='round'
size={cancelText ? 'normal' : 'block'}
disabled={props.disableConfirmBtn}
{...openTypeRelatedProps}
onClick={(e) => onClickConfirmBtn(props)}
>
Expand Down Expand Up @@ -158,8 +164,10 @@ export default function Index(props: OsModalProps) {
className={classNames({
["ossa-action-btn"]: true,
["ossa-action-btn--cancel"]: true,
["ossa-action-btn--disabled"]: props.disableCancelBtn,
})}
shape='round'
size={confirmText ? 'normal' : 'block'}
disabled={props.disableCancelBtn}
onClick={(e) => onClickCancelBtn(props)}
>
{cancelText}
Expand All @@ -170,9 +178,12 @@ export default function Index(props: OsModalProps) {
className={classNames({
["ossa-action-btn"]: true,
["ossa-action-btn--confirm"]: true,
["ossa-action-btn--disabled"]: props.disableConfirmBtn,
})}
openType={confirmOpenType}
type='primary'
shape='round'
size={cancelText ? 'normal' : 'block'}
disabled={props.disableConfirmBtn}
{...openTypeRelatedProps}
onClick={(e) => onClickConfirmBtn(props)}
>
Expand Down
11 changes: 11 additions & 0 deletions packages/ossa/src/components/tag/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ function getStyleObj(props: OsTagProps): CSSProperties {
bgColor,
startBgColor,
endBgColor,
border,
} = props;

let _styleObj: CSSProperties = {};
Expand All @@ -29,6 +30,14 @@ function getStyleObj(props: OsTagProps): CSSProperties {
_styleObj["background"] = bgColor;
}

if (border) {
_styleObj["border"] = border;
}

if (color) {
_styleObj["color"] = color;
}

if (startBgColor && endBgColor) {
_styleObj[
"background-image"
Expand All @@ -46,13 +55,15 @@ function getClassObject(props: OsTagProps) {
bgColor,
startBgColor,
endBgColor,
size,
} = props;


const classObject = {
[`ossa-tag--type-${type}`]: TagType[type],
[`ossa-tag--color-${color}`]: TagColor[color],
["ossa-tag--border-none"]: bgColor || startBgColor || endBgColor,
[`ossa-tag--size-${size}`]: size,
};
return classObject;
}
Expand Down
15 changes: 9 additions & 6 deletions packages/ossa/src/style/_variable.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
$--font-color:#666;
$--font-size:14px;

/* Theme Color */
$--color-primay:#AF7357 !default; // 主题色

/* Color */
$--color-red:#DD1A21 !default; // 品牌红
// $--color-logo:#FF142F !default; // 桌面图标亮红色
Expand Down Expand Up @@ -139,9 +142,9 @@ $--fill-color-button-default: transparent !default;
$--fill-color-button-default-active: $--fill-body !default;
$--fill-color-button-default-disabled: $--text-color-disabled !default;

$--fill-color-button-primary: $--color-red !default;
$--fill-color-button-primary: $--color-primay !default;
$--fill-color-button-primary-active: #C6171D !default;
$--fill-color-button-primary-disabled: $--color-red !default;
$--fill-color-button-primary-disabled: $--color-primay !default;

$--fill-color-button-special1: transparent !default;

Expand All @@ -155,15 +158,15 @@ $--border-color-default: $--text-color-secondary !default;
$--border-color-default-active: $--text-color-secondary !default;
$--border-color-default-disabled: transparent !default;

$--border-color-primary: $--color-red !default;
$--border-color-primary: $--color-primay !default;
$--border-color-primary-active: #A22929 !default;
$--border-color-primary-disabled: $--color-red !default;
$--border-color-primary-disabled: $--color-primay !default;

$--border-color-special1: $--color-border-base-1 !default;
$--border-color-special1-active: $--color-red !default;
$--border-color-special1-active: $--color-primay !default;

$--border-color-special2: $--text-color-disabled !default;
$--border-color-special2-active: $--color-red !default;
$--border-color-special2-active: $--color-primay !default;

$--border-color-icon: #979797 !default;
$--border-color-icon-active: #979797 !default;
Expand Down
4 changes: 2 additions & 2 deletions packages/ossa/src/style/components/actionsheet.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ $animation-duration: 200ms;

.ossa-actionsheet__container {
transform: translate(-50%, 0%);
background-color: #F4F4F4
}
}

Expand All @@ -34,9 +35,9 @@ $animation-duration: 200ms;
&__container {
@include absolute-center-bottom();
@include safe-area-inset-bottom();

width: 100%;
background: $--fill-default;
border-radius: 32px 32px 0px 0px;
transform: translate(-50%, 100%);
transition: transform 200ms ease-in;
}
Expand All @@ -47,7 +48,6 @@ $animation-duration: 200ms;
justify-content: flex-end;
align-items: center;
padding: 40px 24px;
@include hairline-bottom();
}

&__title {
Expand Down
32 changes: 13 additions & 19 deletions packages/ossa/src/style/components/modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,40 +44,38 @@ $modal-duration: 200ms;
}

&__title {
font-size: 32px;
font-size: 36px;
font-weight: 500;
line-height: 48px;
display: block;
text-align: center;
}

&__header {
padding-top: 48px;
padding-bottom: 8px;
padding-top: 40px;
padding-left: 32px;
padding-right: 32px;
}

&__content {
padding: 0 60px 48px;
padding: 32px;
color: $--text-color-secondary;
font-size: 28px;
font-weight: $--font-weight-default;
}

&__footer {
@include hairline-top();

margin-bottom: 40px;
padding: 0 32px;
display: flex;
flex-direction: row;
align-items: center;
gap: 26px;

& > .ossa-action-btn {
@include line(1);

color: $--text-color-base;
background-color: $--fill-default;
border: none;
font-size: 28px;
height: 104px;
line-height: 104px;
text-align: center;
box-sizing: border-box;
flex: 1;
Expand All @@ -96,16 +94,12 @@ $modal-duration: 200ms;
border-radius: 0;
}

&:active {
background-color: $--fill-model-btns-active;
}

&.ossa-action-btn--cancel {
color: $--text-color-base;
}

&.ossa-action-btn--confirm {
color: $--color-red;
background: $--fill-body;
&::after {
border: none;
}
}

&.ossa-action-btn--disabled {
Expand Down
Loading