@arco-iconbox/react-coze 0.0.6 → 0.1.0

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.
@@ -24,7 +24,7 @@ import React, { useContext } from 'react';
24
24
  import { Context } from '../context';
25
25
  function IconCozThinkingDarkComponent(props, ref) {
26
26
  var prefixFromContext = useContext(Context).prefix;
27
- var _a = props.className, className = _a === void 0 ? '' : _a, prefixFromProps = props.prefix, _b = props.width, width = _b === void 0 ? '1em' : _b, _c = props.height, height = _c === void 0 ? '1em' : _c, _d = props.useCurrentColor, useCurrentColor = _d === void 0 ? true : _d, spin = props.spin, rest = __rest(props, ["className", "prefix", "width", "height", "useCurrentColor", "spin"]);
27
+ var _a = props.className, className = _a === void 0 ? '' : _a, prefixFromProps = props.prefix, _b = props.width, width = _b === void 0 ? '1em' : _b, _c = props.height, height = _c === void 0 ? '1em' : _c, _d = props.useCurrentColor, useCurrentColor = _d === void 0 ? false : _d, spin = props.spin, rest = __rest(props, ["className", "prefix", "width", "height", "useCurrentColor", "spin"]);
28
28
  var prefix = prefixFromProps || prefixFromContext || 'font';
29
29
  var loadingKls = spin ? " ".concat(prefix, "-icon-loading") : '';
30
30
  return React.createElement("svg", __assign({ className: "".concat(prefix, "-icon ").concat(prefix, "-icon-coz_thinking_dark").concat(loadingKls, " ").concat(className), width: width, height: height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, rest, { ref: ref }),
@@ -24,7 +24,7 @@ import React, { useContext } from 'react';
24
24
  import { Context } from '../context';
25
25
  function IconCozThinkingLightComponent(props, ref) {
26
26
  var prefixFromContext = useContext(Context).prefix;
27
- var _a = props.className, className = _a === void 0 ? '' : _a, prefixFromProps = props.prefix, _b = props.width, width = _b === void 0 ? '1em' : _b, _c = props.height, height = _c === void 0 ? '1em' : _c, _d = props.useCurrentColor, useCurrentColor = _d === void 0 ? true : _d, spin = props.spin, rest = __rest(props, ["className", "prefix", "width", "height", "useCurrentColor", "spin"]);
27
+ var _a = props.className, className = _a === void 0 ? '' : _a, prefixFromProps = props.prefix, _b = props.width, width = _b === void 0 ? '1em' : _b, _c = props.height, height = _c === void 0 ? '1em' : _c, _d = props.useCurrentColor, useCurrentColor = _d === void 0 ? false : _d, spin = props.spin, rest = __rest(props, ["className", "prefix", "width", "height", "useCurrentColor", "spin"]);
28
28
  var prefix = prefixFromProps || prefixFromContext || 'font';
29
29
  var loadingKls = spin ? " ".concat(prefix, "-icon-loading") : '';
30
30
  return React.createElement("svg", __assign({ className: "".concat(prefix, "-icon ").concat(prefix, "-icon-coz_thinking_light").concat(loadingKls, " ").concat(className), width: width, height: height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, rest, { ref: ref }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arco-iconbox/react-coze",
3
- "version": "0.0.6",
3
+ "version": "0.1.0",
4
4
  "main": "cjs/index.js",
5
5
  "module": "esm/index.js",
6
6
  "license": "ISC",
@@ -4,7 +4,7 @@ import { Context } from '../context';
4
4
 
5
5
  function IconCozThinkingDarkComponent(props: OriginIconProps, ref: ForwardedRef<SVGSVGElement>) {
6
6
  const { prefix: prefixFromContext } = useContext(Context);
7
- const { className = '', prefix: prefixFromProps, width = '1em', height = '1em', useCurrentColor = true, spin, ...rest } = props;
7
+ const { className = '', prefix: prefixFromProps, width = '1em', height = '1em', useCurrentColor = false, spin, ...rest } = props;
8
8
 
9
9
  const prefix = prefixFromProps || prefixFromContext || 'font';
10
10
  const loadingKls = spin ? ` ${prefix}-icon-loading` : '';
@@ -4,7 +4,7 @@ import { Context } from '../context';
4
4
 
5
5
  function IconCozThinkingLightComponent(props: OriginIconProps, ref: ForwardedRef<SVGSVGElement>) {
6
6
  const { prefix: prefixFromContext } = useContext(Context);
7
- const { className = '', prefix: prefixFromProps, width = '1em', height = '1em', useCurrentColor = true, spin, ...rest } = props;
7
+ const { className = '', prefix: prefixFromProps, width = '1em', height = '1em', useCurrentColor = false, spin, ...rest } = props;
8
8
 
9
9
  const prefix = prefixFromProps || prefixFromContext || 'font';
10
10
  const loadingKls = spin ? ` ${prefix}-icon-loading` : '';
@@ -58,7 +58,7 @@ var __rest = (this && this.__rest) || function (s, e) {
58
58
  var context_1 = require("../context");
59
59
  function IconCozThinkingDarkComponent(props, ref) {
60
60
  var prefixFromContext = (0, react_1.useContext)(context_1.Context).prefix;
61
- var _a = props.className, className = _a === void 0 ? '' : _a, prefixFromProps = props.prefix, _b = props.width, width = _b === void 0 ? '1em' : _b, _c = props.height, height = _c === void 0 ? '1em' : _c, _d = props.useCurrentColor, useCurrentColor = _d === void 0 ? true : _d, spin = props.spin, rest = __rest(props, ["className", "prefix", "width", "height", "useCurrentColor", "spin"]);
61
+ var _a = props.className, className = _a === void 0 ? '' : _a, prefixFromProps = props.prefix, _b = props.width, width = _b === void 0 ? '1em' : _b, _c = props.height, height = _c === void 0 ? '1em' : _c, _d = props.useCurrentColor, useCurrentColor = _d === void 0 ? false : _d, spin = props.spin, rest = __rest(props, ["className", "prefix", "width", "height", "useCurrentColor", "spin"]);
62
62
  var prefix = prefixFromProps || prefixFromContext || 'font';
63
63
  var loadingKls = spin ? " ".concat(prefix, "-icon-loading") : '';
64
64
  return react_1.default.createElement("svg", __assign({ className: "".concat(prefix, "-icon ").concat(prefix, "-icon-coz_thinking_dark").concat(loadingKls, " ").concat(className), width: width, height: height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, rest, { ref: ref }),
@@ -58,7 +58,7 @@ var __rest = (this && this.__rest) || function (s, e) {
58
58
  var context_1 = require("../context");
59
59
  function IconCozThinkingLightComponent(props, ref) {
60
60
  var prefixFromContext = (0, react_1.useContext)(context_1.Context).prefix;
61
- var _a = props.className, className = _a === void 0 ? '' : _a, prefixFromProps = props.prefix, _b = props.width, width = _b === void 0 ? '1em' : _b, _c = props.height, height = _c === void 0 ? '1em' : _c, _d = props.useCurrentColor, useCurrentColor = _d === void 0 ? true : _d, spin = props.spin, rest = __rest(props, ["className", "prefix", "width", "height", "useCurrentColor", "spin"]);
61
+ var _a = props.className, className = _a === void 0 ? '' : _a, prefixFromProps = props.prefix, _b = props.width, width = _b === void 0 ? '1em' : _b, _c = props.height, height = _c === void 0 ? '1em' : _c, _d = props.useCurrentColor, useCurrentColor = _d === void 0 ? false : _d, spin = props.spin, rest = __rest(props, ["className", "prefix", "width", "height", "useCurrentColor", "spin"]);
62
62
  var prefix = prefixFromProps || prefixFromContext || 'font';
63
63
  var loadingKls = spin ? " ".concat(prefix, "-icon-loading") : '';
64
64
  return react_1.default.createElement("svg", __assign({ className: "".concat(prefix, "-icon ").concat(prefix, "-icon-coz_thinking_light").concat(loadingKls, " ").concat(className), width: width, height: height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, rest, { ref: ref }),