@nolwenture/formik-jsonschema-form 1.0.0-beta.17 → 1.0.0-beta.19

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.
@@ -36,7 +36,7 @@ exports.SearchableMultiTagSelectFieldBadgeCloseElement = styled_components_1.sty
36
36
  cursor: pointer;
37
37
  margin-left: ${(props) => props.theme.spacing.s};
38
38
  font-size: ${(props) => props.theme.typography.size.small};
39
- align-self: baseline;
39
+ align-self: center;
40
40
  font-family: ${(props) => props.theme.typography.fontFamily.base};
41
41
  `;
42
42
  exports.SearchableMultiTagSelectFieldOptionList = styled_components_1.styled.ul `
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SearchableSelectFieldInputContainer = exports.SearchableSelectFieldClearButton = exports.SearchableSelectFieldInputElement = exports.SearchableSelectFieldNotFound = exports.SearchableSelectFieldListExpand = exports.SearchableSelectFieldListOption = exports.SearchableSelectFieldDropdownContainer = exports.SearchableSelectFieldContainer = void 0;
4
+ const polished_1 = require("polished");
4
5
  const styled_components_1 = require("styled-components");
5
6
  const FieldInput_1 = require("../../components/FieldInput");
6
7
  const styledComponents_1 = require("../SearchableMultiTagSelectField/styledComponents");
@@ -32,18 +33,20 @@ exports.SearchableSelectFieldInputElement = (0, styled_components_1.styled)(Fiel
32
33
  text-overflow: ellipsis;
33
34
  `;
34
35
  exports.SearchableSelectFieldClearButton = styled_components_1.styled.span `
35
- cursor: pointer;
36
- position: absolute;
37
- right: ${(props) => props.theme.spacing.xs};
38
- bottom: 0;
39
- top: 0;
40
- margin: auto;
41
36
  background-color: ${(props) => props.theme.color.palette.neutral[500]};
42
37
  border-radius: ${(props) => props.theme.borderRadius.circle};
38
+ bottom: 0;
39
+ color: ${(props) => (0, polished_1.readableColor)(props.theme.color.palette.neutral[500])};
40
+ cursor: pointer;
41
+ font-size: ${(props) => props.theme.typography.size.small};
42
+ height: 1rem;
43
43
  line-height: 1rem;
44
+ margin: auto;
44
45
  min-width: 1rem;
45
- height: 1rem;
46
+ position: absolute;
47
+ right: ${(props) => props.theme.spacing.xs};
46
48
  text-align: center;
49
+ top: 0;
47
50
  `;
48
51
  exports.SearchableSelectFieldInputContainer = styled_components_1.styled.div `
49
52
  display: flex;
@@ -8,10 +8,11 @@ const styled_components_1 = __importDefault(require("styled-components"));
8
8
  const FieldInput_1 = require("../../components/FieldInput");
9
9
  exports.TextAreaFieldInput = (0, styled_components_1.default)(FieldInput_1.FieldInput) `
10
10
  background-color: ${(props) => props.theme.color.background.input};
11
- width: 100%;
12
- min-height: 5rem;
13
11
  color: ${(props) => props.theme.color.text.default};
12
+ display: inline-block;
14
13
  font-family: ${(props) => props.theme.typography.fontFamily.base};
15
14
  font-size: ${(props) => props.theme.typography.size.base};
15
+ min-height: 5rem;
16
16
  padding: ${(props) => props.theme.spacing.s};
17
+ width: 95%;
17
18
  `;
@@ -33,7 +33,7 @@ export const SearchableMultiTagSelectFieldBadgeCloseElement = styled.span `
33
33
  cursor: pointer;
34
34
  margin-left: ${(props) => props.theme.spacing.s};
35
35
  font-size: ${(props) => props.theme.typography.size.small};
36
- align-self: baseline;
36
+ align-self: center;
37
37
  font-family: ${(props) => props.theme.typography.fontFamily.base};
38
38
  `;
39
39
  export const SearchableMultiTagSelectFieldOptionList = styled.ul `
@@ -1,3 +1,4 @@
1
+ import { readableColor } from "polished";
1
2
  import { styled } from "styled-components";
2
3
  import { FieldInput } from "../../components/FieldInput";
3
4
  import { SearchableMultiTagSelectFieldSearchContainer, SearchableMultiTagSelectFieldOptionList, SearchableMultiTagSelectFieldOptionListItem, } from "../SearchableMultiTagSelectField/styledComponents";
@@ -29,18 +30,20 @@ export const SearchableSelectFieldInputElement = styled(FieldInput) `
29
30
  text-overflow: ellipsis;
30
31
  `;
31
32
  export const SearchableSelectFieldClearButton = styled.span `
32
- cursor: pointer;
33
- position: absolute;
34
- right: ${(props) => props.theme.spacing.xs};
35
- bottom: 0;
36
- top: 0;
37
- margin: auto;
38
33
  background-color: ${(props) => props.theme.color.palette.neutral[500]};
39
34
  border-radius: ${(props) => props.theme.borderRadius.circle};
35
+ bottom: 0;
36
+ color: ${(props) => readableColor(props.theme.color.palette.neutral[500])};
37
+ cursor: pointer;
38
+ font-size: ${(props) => props.theme.typography.size.small};
39
+ height: 1rem;
40
40
  line-height: 1rem;
41
+ margin: auto;
41
42
  min-width: 1rem;
42
- height: 1rem;
43
+ position: absolute;
44
+ right: ${(props) => props.theme.spacing.xs};
43
45
  text-align: center;
46
+ top: 0;
44
47
  `;
45
48
  export const SearchableSelectFieldInputContainer = styled.div `
46
49
  display: flex;
@@ -2,10 +2,11 @@ import styled from "styled-components";
2
2
  import { FieldInput } from "../../components/FieldInput";
3
3
  export const TextAreaFieldInput = styled(FieldInput) `
4
4
  background-color: ${(props) => props.theme.color.background.input};
5
- width: 100%;
6
- min-height: 5rem;
7
5
  color: ${(props) => props.theme.color.text.default};
6
+ display: inline-block;
8
7
  font-family: ${(props) => props.theme.typography.fontFamily.base};
9
8
  font-size: ${(props) => props.theme.typography.size.base};
9
+ min-height: 5rem;
10
10
  padding: ${(props) => props.theme.spacing.s};
11
+ width: 95%;
11
12
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nolwenture/formik-jsonschema-form",
3
- "version": "1.0.0-beta.17",
3
+ "version": "1.0.0-beta.19",
4
4
  "description": "Formik form generation from json schema",
5
5
  "author": "anttivikman <antti.vikman@nolwenture.com>",
6
6
  "contributors": [