@redocly/theme 0.7.1 → 0.7.2

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.
@@ -29,7 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.Comment = void 0;
30
30
  const React = __importStar(require("react"));
31
31
  const styled_components_1 = __importDefault(require("styled-components"));
32
- const _theme_1 = require("../index.js");
32
+ const Button_1 = require("../Button/Button");
33
33
  const Comment = ({ settings, onSubmit }) => {
34
34
  const { label, submitText } = settings || {};
35
35
  const [text, setText] = React.useState('');
@@ -70,7 +70,7 @@ const TextArea = styled_components_1.default.textarea `
70
70
  margin: 0 0 10px 0;
71
71
  padding: 10px;
72
72
  `;
73
- const SendButton = (0, styled_components_1.default)(_theme_1.Button).attrs(() => ({
73
+ const SendButton = (0, styled_components_1.default)(Button_1.Button).attrs(() => ({
74
74
  color: 'primary',
75
75
  })) `
76
76
  width: 100px;
@@ -29,7 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.Reasons = void 0;
30
30
  const React = __importStar(require("react"));
31
31
  const styled_components_1 = __importDefault(require("styled-components"));
32
- const _theme_1 = require("../index.js");
32
+ const Button_1 = require("../Button/Button");
33
33
  const Reasons = ({ settings, onSubmit }) => {
34
34
  const { label, multi, buttonText, items = [] } = settings;
35
35
  const [checkedState, setCheckedState] = React.useState(new Array(items.length).fill(false));
@@ -62,7 +62,7 @@ const Wrapper = styled_components_1.default.div `
62
62
  const Label = styled_components_1.default.h3 `
63
63
  margin-right: 15px;
64
64
  `;
65
- const SendButton = (0, styled_components_1.default)(_theme_1.Button).attrs(() => ({
65
+ const SendButton = (0, styled_components_1.default)(Button_1.Button).attrs(() => ({
66
66
  color: 'primary',
67
67
  })) `
68
68
  width: 100px;
@@ -30,7 +30,7 @@ exports.Sentiment = void 0;
30
30
  const React = __importStar(require("react"));
31
31
  const styled_components_1 = __importDefault(require("styled-components"));
32
32
  const Feedback_1 = require("../Feedback");
33
- const Thumbs_1 = require("./Thumbs");
33
+ const Thumbs_1 = require("../Feedback/Thumbs");
34
34
  const Sentiment = ({ settings, onSubmit }) => {
35
35
  const { label, submitText, comment: commentSettings, reasons: reasonsSettings } = settings || {};
36
36
  const [score, setScore] = React.useState(0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/theme",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "description": "Shared UI components lib",
5
5
  "author": "team@redocly.com",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import styled from 'styled-components';
3
- import { Button } from '@theme';
4
3
 
4
+ import { Button } from '@theme/Button/Button';
5
5
  import type { CommentProps } from '@theme/Feedback';
6
6
 
7
7
  export const Comment = ({ settings, onSubmit }: CommentProps): JSX.Element => {
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import styled from 'styled-components';
3
- import { Button } from '@theme';
4
3
 
4
+ import { Button } from '@theme/Button/Button';
5
5
  import type { ReasonsProps } from '@theme/Feedback';
6
6
 
7
7
  export const Reasons = ({ settings, onSubmit }: ReasonsProps): JSX.Element => {
@@ -3,8 +3,7 @@ import styled from 'styled-components';
3
3
 
4
4
  import type { SentimentProps, ReasonsProps } from '@theme/Feedback';
5
5
  import { Comment, Reasons } from '@theme/Feedback';
6
-
7
- import { ThumbUp, ThumbDown } from './Thumbs';
6
+ import { ThumbUp, ThumbDown } from '@theme/Feedback/Thumbs';
8
7
 
9
8
  export const Sentiment = ({ settings, onSubmit }: SentimentProps): JSX.Element => {
10
9
  const { label, submitText, comment: commentSettings, reasons: reasonsSettings } = settings || {};