yootd 0.0.75 → 0.0.77

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,3 +1,5 @@
1
- import { Descriptions as AntDescriptions } from 'antd';
2
- export type { DescriptionsContext, DescriptionsContextProps, DescriptionsItemType, DescriptionsProps, InternalDescriptionsItemType, } from 'antd/es/descriptions';
3
- export declare const Descriptions: typeof AntDescriptions;
1
+ import type { DescriptionsProps as AntDescriptionsProps } from 'antd';
2
+ import { FC } from 'react';
3
+ import './index.scss';
4
+ export type DescriptionsProps = AntDescriptionsProps;
5
+ export declare const Descriptions: FC<DescriptionsProps>;
@@ -1,2 +1,16 @@
1
+ var _excluded = ["className"];
2
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
1
5
  import { Descriptions as AntDescriptions } from 'antd';
2
- export var Descriptions = AntDescriptions;
6
+ import React from 'react';
7
+ import { useBem } from "../hooks/useBem";
8
+ import "./index.scss";
9
+ export var Descriptions = function Descriptions(_ref) {
10
+ var className = _ref.className,
11
+ rest = _objectWithoutProperties(_ref, _excluded);
12
+ var mb = useBem('descriptions');
13
+ return /*#__PURE__*/React.createElement(AntDescriptions, _extends({
14
+ className: "".concat(mb.b('content'), " ").concat(className)
15
+ }, rest));
16
+ };
@@ -0,0 +1,10 @@
1
+ .yot-descriptions{
2
+ &-content{
3
+ .ant-descriptions-item-label{
4
+ color:var(--ant-color-text-secondary);
5
+ }
6
+ .ant-descriptions-item-content{
7
+ color:var(--ant-color-text);
8
+ }
9
+ }
10
+ }
@@ -5,6 +5,7 @@ export interface VideoPlayerRef {
5
5
  pause: () => void;
6
6
  setVideoCurrentTime: (time: number) => void;
7
7
  useFaceExpression: (type: 'emotion' | 'character' | 'anchor' | 'pose', use: boolean) => void;
8
+ currentTime: () => number;
8
9
  }
9
10
  export interface VideoPlayerProps {
10
11
  /**
@@ -176,7 +176,18 @@ export var VideoPlayer = /*#__PURE__*/forwardRef(function (_ref, ref) {
176
176
  pose: false
177
177
  }, type, use);
178
178
  });
179
- }
179
+ },
180
+ currentTime: function (_currentTime) {
181
+ function currentTime() {
182
+ return _currentTime.apply(this, arguments);
183
+ }
184
+ currentTime.toString = function () {
185
+ return _currentTime.toString();
186
+ };
187
+ return currentTime;
188
+ }(function () {
189
+ return currentTime;
190
+ })
180
191
  };
181
192
  });
182
193
  var handleFullScreen = function handleFullScreen() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yootd",
3
- "version": "0.0.75",
3
+ "version": "0.0.77",
4
4
  "description": "A react library developed with dumi",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",