@chlp-tech/rpa-ui 0.0.1 → 0.0.3

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.
@@ -1,10 +1,13 @@
1
1
  import React from "react";
2
+ import { DrawerClassNames } from "antd/es/drawer/DrawerPanel";
2
3
  interface DrawerTaskProps {
3
4
  children: React.ReactNode;
4
5
  title: string;
5
6
  open?: boolean;
6
7
  defaultTab?: string;
7
8
  back?: boolean | React.ReactNode;
9
+ classNames?: DrawerClassNames;
10
+ rootClassNames?: string;
8
11
  menu: {
9
12
  items: {
10
13
  label: string;
@@ -94,6 +94,8 @@ var DrawerTask = /*#__PURE__*/forwardRef(function (props, ref) {
94
94
  open: internalOpen,
95
95
  width: props.width || 880,
96
96
  closable: false,
97
+ classNames: props.classNames,
98
+ rootClassName: props.rootClassNames,
97
99
  bodyStyle: {
98
100
  padding: 0
99
101
  }
@@ -9,7 +9,8 @@
9
9
  }
10
10
 
11
11
  &__right {
12
- width: 100%;
12
+ flex: 1;
13
+ min-width: 0;
13
14
  transition: width 0.3s ease-in-out;
14
15
 
15
16
  &__title {
@@ -16,6 +16,7 @@ interface Props {
16
16
  };
17
17
  createTime: string;
18
18
  isNew?: boolean;
19
+ isAd?: boolean;
19
20
  id: string | number;
20
21
  onDelete?: (id: string | number) => void;
21
22
  mediaInfo: {
@@ -6,7 +6,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
6
6
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
7
  import React, { useState } from "react";
8
8
  import { Spin, Space, Image, Dropdown, Popover } from "antd";
9
- import { MediaPlay, TextEllipsis } from "./..";
9
+ import { MediaPlay, TextEllipsis } from "../index";
10
10
  import FB from "./imgs/fb.svg";
11
11
  import INS from "./imgs/ins.svg";
12
12
  import TK from "./imgs/tk.svg";
@@ -172,7 +172,9 @@ var ReleaseVideoCard = function ReleaseVideoCard(props) {
172
172
  className: styles['card__header__status']
173
173
  }, /*#__PURE__*/React.createElement("div", {
174
174
  className: styles['card__header__status__flex']
175
- }, /*#__PURE__*/React.createElement(StatusTag, {
175
+ }, props.isAd && /*#__PURE__*/React.createElement("div", {
176
+ className: styles.tagAd
177
+ }, "\u5E7F\u544A"), /*#__PURE__*/React.createElement(StatusTag, {
176
178
  status: props.status
177
179
  }), /*#__PURE__*/React.createElement("div", {
178
180
  className: styles['card__header__status__desc']
@@ -214,6 +214,18 @@
214
214
  }
215
215
  }
216
216
 
217
+ .tagAd {
218
+ background: #FBDEC1;
219
+ border-radius: 4px;
220
+ font-size: 14px;
221
+ color: #8B3D15;
222
+ padding: 2px 8px;
223
+ display: flex;
224
+ flex-direction: row;
225
+ align-items: center;
226
+ justify-content: center;
227
+ }
228
+
217
229
  .circle_block {
218
230
  padding: 2px 8px;
219
231
  background: rgba(0,0,0,0.5);
@@ -12,7 +12,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
12
12
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
13
  import React, { useImperativeHandle, useState, forwardRef, useEffect, useRef } from "react";
14
14
  import { Row, Col, Checkbox, Popover, Empty, Tooltip } from "antd";
15
- import { MediaPlay } from "./..";
15
+ import { MediaPlay } from "../index";
16
16
  import DeleteSvg from "./delete.svg";
17
17
  import styles from "./index.module.less";
18
18
  var VideoList = /*#__PURE__*/forwardRef(function (_ref, ref) {
package/package.json CHANGED
@@ -1,23 +1,9 @@
1
1
  {
2
2
  "name": "@chlp-tech/rpa-ui",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "rpa-ui",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
- "scripts": {
8
- "start": "npm run dev",
9
- "dev": "dumi dev",
10
- "build": "father build",
11
- "build:watch": "father dev",
12
- "docs:build": "dumi build",
13
- "docs:preview": "dumi preview",
14
- "prepare": "husky install && dumi setup",
15
- "doctor": "father doctor",
16
- "lint": "npm run lint:es && npm run lint:css",
17
- "lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
18
- "lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
19
- "prepublishOnly": "father doctor && npm run build"
20
- },
21
7
  "authors": [],
22
8
  "license": "MIT",
23
9
  "files": [
@@ -79,5 +65,17 @@
79
65
  "dayjs": "^1.11.13",
80
66
  "js-md5": "^0.8.3",
81
67
  "styled-components": "^6.1.12"
68
+ },
69
+ "scripts": {
70
+ "start": "npm run dev",
71
+ "dev": "dumi dev",
72
+ "build": "father build",
73
+ "build:watch": "father dev",
74
+ "docs:build": "dumi build",
75
+ "docs:preview": "dumi preview",
76
+ "doctor": "father doctor",
77
+ "lint": "npm run lint:es && npm run lint:css",
78
+ "lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
79
+ "lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\""
82
80
  }
83
- }
81
+ }