@teamturing/react-kit 2.44.1 → 2.44.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,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import type { TextProps } from '../Text';
3
3
  type Props = {
4
- variant: 'violet' | 'pinkBlue';
4
+ variant?: 'violet' | 'pinkBlue';
5
5
  } & TextProps;
6
6
  declare const GradientText: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<Omit<{
7
7
  ref?: import("react").LegacyRef<HTMLSpanElement> | undefined;
package/dist/index.js CHANGED
@@ -37437,11 +37437,7 @@ var index$5 = Object.assign( /*#__PURE__*/React.forwardRef(FormControl), {
37437
37437
  TooltipIcon: FormControlTooltipIcon
37438
37438
  });
37439
37439
 
37440
- const GradientText = styled__default.default(Text)({
37441
- backgroundClip: 'text',
37442
- WebkitBackgroundClip: 'text',
37443
- WebkitTextFillColor: 'transparent'
37444
- }, ({
37440
+ const GradientText = styled__default.default(Text)(({
37445
37441
  theme
37446
37442
  }) => variant({
37447
37443
  prop: 'variant',
@@ -37453,7 +37449,14 @@ const GradientText = styled__default.default(Text)({
37453
37449
  background: `linear-gradient(${theme.gradients['text/accent/pinkblue']})`
37454
37450
  }
37455
37451
  }
37456
- }));
37452
+ }), {
37453
+ backgroundClip: 'text',
37454
+ WebkitBackgroundClip: 'text',
37455
+ WebkitTextFillColor: 'transparent'
37456
+ });
37457
+ GradientText.defaultProps = {
37458
+ variant: 'violet'
37459
+ };
37457
37460
 
37458
37461
  const IconToggleButton = ({
37459
37462
  icon: Icon,
@@ -3,11 +3,7 @@ import '../../node_modules/styled-system/dist/index.esm.js';
3
3
  import Text from '../Text/index.js';
4
4
  import { variant } from '../../node_modules/@styled-system/variant/dist/index.esm.js';
5
5
 
6
- const GradientText = styled(Text)({
7
- backgroundClip: 'text',
8
- WebkitBackgroundClip: 'text',
9
- WebkitTextFillColor: 'transparent'
10
- }, ({
6
+ const GradientText = styled(Text)(({
11
7
  theme
12
8
  }) => variant({
13
9
  prop: 'variant',
@@ -19,6 +15,13 @@ const GradientText = styled(Text)({
19
15
  background: `linear-gradient(${theme.gradients['text/accent/pinkblue']})`
20
16
  }
21
17
  }
22
- }));
18
+ }), {
19
+ backgroundClip: 'text',
20
+ WebkitBackgroundClip: 'text',
21
+ WebkitTextFillColor: 'transparent'
22
+ });
23
+ GradientText.defaultProps = {
24
+ variant: 'violet'
25
+ };
23
26
 
24
27
  export { GradientText as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamturing/react-kit",
3
- "version": "2.44.1",
3
+ "version": "2.44.3",
4
4
  "description": "React components, hooks for create teamturing web application",
5
5
  "author": "Sungchang Park <psch300@gmail.com> (https://github.com/psch300)",
6
6
  "homepage": "https://github.com/weareteamturing/bombe#readme",
@@ -66,5 +66,5 @@
66
66
  "react-textarea-autosize": "^8.5.3",
67
67
  "styled-system": "^5.1.5"
68
68
  },
69
- "gitHead": "a269e8830701a5a8ed3baaf3c08f07e9b006722c"
69
+ "gitHead": "c10654d1ff666973d217a2fef4383089bd23671c"
70
70
  }