@dxc-technology/halstack-react 0.0.0-4dc6bb3 → 0.0.0-4dc980c
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.
- package/HalstackContext.js +7 -8
- package/checkbox/Checkbox.d.ts +2 -2
- package/checkbox/Checkbox.js +16 -15
- package/checkbox/Checkbox.stories.tsx +79 -59
- package/checkbox/types.d.ts +4 -0
- package/common/variables.js +19 -15
- package/date-input/Calendar.d.ts +4 -0
- package/date-input/Calendar.js +258 -0
- package/date-input/DateInput.js +77 -222
- package/date-input/DateInput.stories.tsx +30 -17
- package/date-input/DateInput.test.js +411 -138
- package/date-input/DatePicker.d.ts +4 -0
- package/date-input/DatePicker.js +160 -0
- package/date-input/YearPicker.d.ts +4 -0
- package/date-input/YearPicker.js +115 -0
- package/date-input/types.d.ts +53 -0
- package/dropdown/Dropdown.js +32 -29
- package/dropdown/Dropdown.test.js +17 -22
- package/file-input/FileInput.d.ts +2 -2
- package/file-input/FileInput.js +177 -219
- package/file-input/FileInput.stories.tsx +38 -10
- package/file-input/FileInput.test.js +53 -12
- package/file-input/FileItem.d.ts +4 -14
- package/file-input/FileItem.js +38 -63
- package/file-input/types.d.ts +17 -0
- package/flex/Flex.d.ts +1 -1
- package/flex/Flex.js +31 -19
- package/flex/types.d.ts +14 -3
- package/link/Link.js +1 -1
- package/number-input/NumberInput.test.js +42 -6
- package/package.json +7 -12
- package/paginator/Paginator.js +2 -2
- package/paginator/Paginator.test.js +1 -1
- package/quick-nav/QuickNav.js +3 -1
- package/quick-nav/QuickNav.stories.tsx +67 -25
- package/radio-group/RadioGroup.js +9 -5
- package/radio-group/RadioGroup.test.js +116 -59
- package/resultsetTable/Icons.d.ts +7 -0
- package/resultsetTable/Icons.js +51 -0
- package/resultsetTable/ResultsetTable.js +48 -107
- package/resultsetTable/ResultsetTable.stories.tsx +50 -25
- package/resultsetTable/ResultsetTable.test.js +23 -41
- package/resultsetTable/types.d.ts +2 -2
- package/select/Select.js +1 -0
- package/select/Select.stories.tsx +2 -5
- package/select/Select.test.js +267 -209
- package/slider/Slider.d.ts +2 -2
- package/slider/Slider.js +9 -8
- package/slider/types.d.ts +4 -0
- package/spinner/Spinner.js +2 -2
- package/switch/Switch.d.ts +3 -3
- package/switch/Switch.js +5 -4
- package/switch/types.d.ts +6 -1
- package/table/Table.js +1 -1
- package/table/Table.test.js +1 -1
- package/tabs/Tabs.js +3 -3
- package/tabs/Tabs.stories.tsx +0 -1
- package/text-input/TextInput.js +9 -5
- package/text-input/TextInput.test.js +558 -648
- package/common/RequiredComponent.js +0 -32
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxc-technology/halstack-react",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-4dc980c",
|
|
4
4
|
"description": "DXC Halstack React components library",
|
|
5
5
|
"repository": "dxc-technology/halstack-react",
|
|
6
6
|
"homepage": "https://developer.dxc.com/halstack",
|
|
@@ -18,24 +18,17 @@
|
|
|
18
18
|
"styled-components": "^5.0.1"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@date-io/dayjs": "^1.3.9",
|
|
22
|
-
"@material-ui/core": "4.11.1",
|
|
23
|
-
"@material-ui/icons": "4.4.3",
|
|
24
|
-
"@material-ui/lab": "4.0.0-alpha.17",
|
|
25
|
-
"@material-ui/pickers": "3.2.2",
|
|
26
|
-
"@material-ui/styles": "4.0.2",
|
|
27
21
|
"@radix-ui/react-popover": "0.1.6",
|
|
28
22
|
"@types/styled-components": "^5.1.24",
|
|
29
23
|
"@types/uuid": "^8.3.4",
|
|
30
24
|
"color": "^3.1.3",
|
|
31
25
|
"dayjs": "^1.11.1",
|
|
32
|
-
"prop-types": "^15.7.2",
|
|
33
26
|
"rgb-hex": "^3.0.0",
|
|
34
27
|
"slugify": "^1.6.5",
|
|
35
28
|
"uuid": "^8.3.2"
|
|
36
29
|
},
|
|
37
30
|
"scripts": {
|
|
38
|
-
"test": "jest",
|
|
31
|
+
"test": "jest --env=jsdom",
|
|
39
32
|
"test:watch": "npm test -- --watch --coverage",
|
|
40
33
|
"build": "babel src --extensions .js,.jsx,.ts,.tsx --out-dir ../dist --copy-files --verbose && node ../scripts/build/copy-package.js && tsc ",
|
|
41
34
|
"build:watch": "babel src --watch --extensions .js,.jsx,.ts,.tsx --out-dir ../dist --copy-files --verbose",
|
|
@@ -57,7 +50,7 @@
|
|
|
57
50
|
"@storybook/react": "^6.4.9",
|
|
58
51
|
"@storybook/testing-library": "0.0.7",
|
|
59
52
|
"@testing-library/react": "^13.0.0",
|
|
60
|
-
"@testing-library/user-event": "^
|
|
53
|
+
"@testing-library/user-event": "^13.0.0",
|
|
61
54
|
"@types/react": "^18.0.18",
|
|
62
55
|
"babel-jest": "^24.8.0",
|
|
63
56
|
"babel-loader": "^8.0.6",
|
|
@@ -72,7 +65,8 @@
|
|
|
72
65
|
"eslint-plugin-react-hooks": "^4.2.0",
|
|
73
66
|
"eslint-plugin-storybook": "^0.5.5",
|
|
74
67
|
"identity-obj-proxy": "^3.0.0",
|
|
75
|
-
"jest": "^
|
|
68
|
+
"jest": "^29.2.2",
|
|
69
|
+
"jest-environment-jsdom": "^29.3.1",
|
|
76
70
|
"react": "^18.x",
|
|
77
71
|
"react-dom": "^18.x",
|
|
78
72
|
"react-test-renderer": "^16.8.6",
|
|
@@ -84,7 +78,8 @@
|
|
|
84
78
|
"moduleNameMapper": {
|
|
85
79
|
"\\.(css|less|scss|sass)$": "identity-obj-proxy",
|
|
86
80
|
"\\.(svg)$": "<rootDir>/test/mocks/svgMock.js",
|
|
87
|
-
"\\.(png)$": "<rootDir>/test/mocks/pngMock.js"
|
|
81
|
+
"\\.(png)$": "<rootDir>/test/mocks/pngMock.js",
|
|
82
|
+
"^uuid$": "uuid"
|
|
88
83
|
}
|
|
89
84
|
}
|
|
90
85
|
}
|
package/paginator/Paginator.js
CHANGED
|
@@ -153,7 +153,7 @@ var ItemsPageContainer = _styledComponents["default"].span(_templateObject3 || (
|
|
|
153
153
|
|
|
154
154
|
var ItemsLabel = _styledComponents["default"].span(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["\n margin-right: 0.5rem;\n"])));
|
|
155
155
|
|
|
156
|
-
var GoToLabel = _styledComponents["default"].span(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["\n margin-right: 0.5rem;\n margin-left:
|
|
156
|
+
var GoToLabel = _styledComponents["default"].span(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["\n margin-right: 0.5rem;\n margin-left: 0.5rem;\n"])));
|
|
157
157
|
|
|
158
158
|
var TotalItemsContainer = _styledComponents["default"].span(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2["default"])(["\n margin-right: ", ";\n margin-left: ", ";\n"])), function (props) {
|
|
159
159
|
return props.theme.totalItemsContainerMarginRight;
|
|
@@ -163,7 +163,7 @@ var TotalItemsContainer = _styledComponents["default"].span(_templateObject6 ||
|
|
|
163
163
|
|
|
164
164
|
var LabelsContainer = _styledComponents["default"].div(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n gap: 0.5rem;\n width: 100%;\n justify-content: flex-end;\n align-items: center;\n"])));
|
|
165
165
|
|
|
166
|
-
var PageToSelectContainer = _styledComponents["default"].span(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n align-items: center;\n\n label {\n height: 0px;\n }\n label + .MuiInput-formControl {\n margin-top: 0px;\n }\n"])));
|
|
166
|
+
var PageToSelectContainer = _styledComponents["default"].span(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n align-items: center;\n margin-right: 0.5rem;\n\n label {\n height: 0px;\n }\n label + .MuiInput-formControl {\n margin-top: 0px;\n }\n"])));
|
|
167
167
|
|
|
168
168
|
var TextContainer = _styledComponents["default"].span(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2["default"])([""])));
|
|
169
169
|
|
|
@@ -77,7 +77,7 @@ describe("Paginator component tests", function () {
|
|
|
77
77
|
})),
|
|
78
78
|
getByText = _render3.getByText;
|
|
79
79
|
|
|
80
|
-
expect(getByText("Items per page")).toBeTruthy();
|
|
80
|
+
expect(getByText("Items per page:")).toBeTruthy();
|
|
81
81
|
});
|
|
82
82
|
test("Paginator renders with itemsPerPageOptions", function () {
|
|
83
83
|
var _render4 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_Paginator["default"], {
|
package/quick-nav/QuickNav.js
CHANGED
|
@@ -65,7 +65,9 @@ var DxcQuickNav = function DxcQuickNav(_ref) {
|
|
|
65
65
|
}, /*#__PURE__*/_react["default"].createElement(_Inset["default"], {
|
|
66
66
|
horizontal: "0.5rem"
|
|
67
67
|
}, /*#__PURE__*/_react["default"].createElement(_Typography["default"], null, /*#__PURE__*/_react["default"].createElement(Link, {
|
|
68
|
-
href: "#".concat((0, _slugify["default"])(
|
|
68
|
+
href: "#".concat((0, _slugify["default"])(link === null || link === void 0 ? void 0 : link.label, {
|
|
69
|
+
lower: true
|
|
70
|
+
}), "-").concat((0, _slugify["default"])(sublink === null || sublink === void 0 ? void 0 : sublink.label, {
|
|
69
71
|
lower: true
|
|
70
72
|
}))
|
|
71
73
|
}, sublink === null || sublink === void 0 ? void 0 : sublink.label))));
|
|
@@ -14,28 +14,19 @@ export default {
|
|
|
14
14
|
const defaultLinks = [
|
|
15
15
|
{
|
|
16
16
|
label: "Overview",
|
|
17
|
-
id: "overview",
|
|
18
17
|
},
|
|
19
18
|
{
|
|
20
19
|
label: "Principles",
|
|
21
|
-
|
|
22
|
-
links: [
|
|
23
|
-
{ label: "Color", id: "color" },
|
|
24
|
-
{ label: "Spacing", id: "spacing" },
|
|
25
|
-
{ label: "Typography", id: "typography" },
|
|
26
|
-
],
|
|
20
|
+
links: [{ label: "Color" }, { label: "Spacing" }, { label: "Typography" }],
|
|
27
21
|
},
|
|
28
22
|
{
|
|
29
23
|
label: "Components",
|
|
30
|
-
id: "components",
|
|
31
24
|
links: [
|
|
32
25
|
{
|
|
33
26
|
label: "Accordion",
|
|
34
|
-
id: "accordion",
|
|
35
27
|
},
|
|
36
28
|
{
|
|
37
29
|
label: "Button",
|
|
38
|
-
id: "button",
|
|
39
30
|
},
|
|
40
31
|
],
|
|
41
32
|
},
|
|
@@ -44,30 +35,36 @@ const defaultLinks = [
|
|
|
44
35
|
const links = [
|
|
45
36
|
{
|
|
46
37
|
label: "Overview",
|
|
47
|
-
id: "overview",
|
|
48
38
|
links: [
|
|
49
39
|
{
|
|
50
40
|
label: "Introduction",
|
|
51
|
-
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
label: "Components",
|
|
46
|
+
links: [
|
|
47
|
+
{
|
|
48
|
+
label: "Introduction",
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
label: "Accordion",
|
|
52
52
|
},
|
|
53
53
|
],
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
56
|
label: "Principles very very very very very very very very long",
|
|
57
|
-
id: "principles",
|
|
58
57
|
links: [
|
|
59
|
-
{ label: "Color very very very very very very very very long"
|
|
60
|
-
{ label: "Spacingveryveryveryveryveryveryveryverylong"
|
|
61
|
-
{ label: "Typography"
|
|
58
|
+
{ label: "Color very very very very very very very very long" },
|
|
59
|
+
{ label: "Spacingveryveryveryveryveryveryveryverylong" },
|
|
60
|
+
{ label: "Typography" },
|
|
62
61
|
],
|
|
63
62
|
},
|
|
64
63
|
{
|
|
65
64
|
label: "Componentsveryveryveryveryveryveryveryverylong",
|
|
66
|
-
id: "components",
|
|
67
65
|
links: [
|
|
68
66
|
{
|
|
69
67
|
label: "Accordion",
|
|
70
|
-
id: "accordion",
|
|
71
68
|
},
|
|
72
69
|
],
|
|
73
70
|
},
|
|
@@ -123,7 +120,7 @@ export const Chromatic = () => (
|
|
|
123
120
|
open source design system for insurance products and digital experiences. Our system provides all the
|
|
124
121
|
tools and resources needed to create superior, beautiful but above all, functional user experiences.
|
|
125
122
|
</DxcParagraph>
|
|
126
|
-
<Content id="introduction">
|
|
123
|
+
<Content id="overview-introduction">
|
|
127
124
|
<DxcHeading level={2} text="Introduction" margin={{ top: "xsmall", bottom: "xsmall" }} />
|
|
128
125
|
<DxcParagraph>
|
|
129
126
|
Design principles Halstack design principles are the fundamental part of DXC Technology's approach to
|
|
@@ -158,9 +155,54 @@ export const Chromatic = () => (
|
|
|
158
155
|
</DxcParagraph>
|
|
159
156
|
</Content>
|
|
160
157
|
</Content>
|
|
161
|
-
<Content id="
|
|
158
|
+
<Content id="components">
|
|
159
|
+
<DxcHeading level={1} text="Components" margin={{ top: "small", bottom: "xsmall" }} />
|
|
160
|
+
<Content id="components-introduction">
|
|
161
|
+
<DxcHeading level={2} text="Introduction" margin={{ top: "xsmall", bottom: "xsmall" }} />
|
|
162
|
+
<DxcParagraph>
|
|
163
|
+
Design principles Halstack design principles are the fundamental part of DXC Technology's approach to
|
|
164
|
+
provide guidance for development teams in order to deliver delightful and consistent user experiences to
|
|
165
|
+
our customers: Balance Consistency Visual hierarchy All our components, design tokens, accessibility
|
|
166
|
+
guidelines, responsive design techniques, and layout proposals have been carefully curated by DXC design
|
|
167
|
+
and engineering teams with the objective of creating a unique visual language and ecosystem for our
|
|
168
|
+
applications. This is the DXC way of creating User Experiences. Open Source Halstack is an open source
|
|
169
|
+
design system, this means that we work towards DXC Technology bussines needs, but it is open for anyone
|
|
170
|
+
to use and contribute back to. We are charmed to receive external contributions to help us find bugs,
|
|
171
|
+
design new features, or help us improve the project documentation. If you're interested, definitely
|
|
172
|
+
check out our contribution guidelines.Design principles Halstack design principles are the fundamental
|
|
173
|
+
part of DXC Technology's approach to provide guidance for development teams in order to deliver
|
|
174
|
+
delightful and consistent user experiences to our customers: Balance Consistency Visual hierarchy All
|
|
175
|
+
our components, design tokens, accessibility guidelines, responsive design techniques, and layout
|
|
176
|
+
proposals have been carefully curated by DXC design and engineering teams with the objective of creating
|
|
177
|
+
a unique visual language and ecosystem for our applications. This is the DXC way of creating User
|
|
178
|
+
Experiences. Open Source Halstack is an open source design system, this means that we work towards DXC
|
|
179
|
+
Technology bussines needs, but it is open for anyone to use and contribute back to. We are charmed to
|
|
180
|
+
receive external contributions to help us find bugs, design new features, or help us improve the project
|
|
181
|
+
documentation. If you're interested, definitely check out our contribution guidelines.Design principles
|
|
182
|
+
Halstack design principles are the fundamental part of DXC Technology's approach to provide guidance for
|
|
183
|
+
development teams in order to deliver delightful and consistent user experiences to our customers:
|
|
184
|
+
Balance Consistency Visual hierarchy All our components, design tokens, accessibility guidelines,
|
|
185
|
+
responsive design techniques, and layout proposals have been carefully curated by DXC design and
|
|
186
|
+
engineering teams with the objective of creating a unique visual language and ecosystem for our
|
|
187
|
+
applications. This is the DXC way of creating User Experiences. Open Source Halstack is an open source
|
|
188
|
+
design system, this means that we work towards DXC Technology bussines needs, but it is open for anyone
|
|
189
|
+
to use and contribute back to. We are charmed to receive external contributions to help us find bugs,
|
|
190
|
+
design new features, or help us improve the project documentation. If you're interested, definitely
|
|
191
|
+
check out our contribution guidelines.
|
|
192
|
+
</DxcParagraph>
|
|
193
|
+
</Content>
|
|
194
|
+
<Content id="components-accordion">
|
|
195
|
+
<DxcHeading level={2} text="Accordion" margin={{ top: "xsmall", bottom: "xsmall" }} />
|
|
196
|
+
<DxcParagraph>
|
|
197
|
+
Accordions are used to group similar content and hide or show it depending on user needs or preferences.
|
|
198
|
+
Accordions give users more granular control over the interface and help digest content in stages, rather
|
|
199
|
+
than all at once.
|
|
200
|
+
</DxcParagraph>
|
|
201
|
+
</Content>
|
|
202
|
+
</Content>
|
|
203
|
+
<Content id="principles-very-very-very-very-very-very-very-very-long">
|
|
162
204
|
<DxcHeading level={1} text="Principles" margin={{ top: "small", bottom: "xsmall" }} />
|
|
163
|
-
<Content id="color">
|
|
205
|
+
<Content id="principles-very-very-very-very-very-very-very-very-long-color-very-very-very-very-very-very-very-very-long">
|
|
164
206
|
<DxcHeading level={2} text="Color" margin={{ top: "xsmall", bottom: "xsmall" }} />
|
|
165
207
|
<DxcParagraph>
|
|
166
208
|
The color palette is an essential asset as a communication resource of our design system. Halstack color
|
|
@@ -197,7 +239,7 @@ export const Chromatic = () => (
|
|
|
197
239
|
role-based color palettes and must not be used outside this context.
|
|
198
240
|
</DxcParagraph>
|
|
199
241
|
</Content>
|
|
200
|
-
<Content id="
|
|
242
|
+
<Content id="principles-very-very-very-very-very-very-very-very-long-spacingveryveryveryveryveryveryveryverylong">
|
|
201
243
|
<DxcHeading level={2} text="Spacing" margin={{ top: "xsmall", bottom: "xsmall" }} />
|
|
202
244
|
<DxcParagraph>
|
|
203
245
|
In the search of consistent alignment between the elements we provide a spacing scale based on a root
|
|
@@ -219,7 +261,7 @@ export const Chromatic = () => (
|
|
|
219
261
|
easily multiplied, they provide flexible and consistent, yet distinct enough, steps between them.
|
|
220
262
|
</DxcParagraph>
|
|
221
263
|
</Content>
|
|
222
|
-
<Content id="typography">
|
|
264
|
+
<Content id="principles-very-very-very-very-very-very-very-very-long-typography">
|
|
223
265
|
<DxcHeading level={2} text="Typography" margin={{ top: "xsmall", bottom: "xsmall" }} />
|
|
224
266
|
<DxcParagraph>
|
|
225
267
|
Our selected typography helps in structuring our user's experience based on the visual impact that it
|
|
@@ -256,9 +298,9 @@ export const Chromatic = () => (
|
|
|
256
298
|
</DxcParagraph>
|
|
257
299
|
</Content>
|
|
258
300
|
</Content>
|
|
259
|
-
<Content id="
|
|
301
|
+
<Content id="componentsveryveryveryveryveryveryveryverylong">
|
|
260
302
|
<DxcHeading level={1} text="Components" margin={{ top: "small", bottom: "xsmall" }} />
|
|
261
|
-
<Content id="accordion">
|
|
303
|
+
<Content id="componentsveryveryveryveryveryveryveryverylong-accordion">
|
|
262
304
|
<DxcHeading level={2} text="Accordion" margin={{ top: "xsmall", bottom: "xsmall" }} />
|
|
263
305
|
<DxcParagraph>
|
|
264
306
|
Accordions are used to group similar content and hide or show it depending on user needs or preferences.
|
|
@@ -27,7 +27,7 @@ var _useTranslatedLabels = _interopRequireDefault(require("../useTranslatedLabel
|
|
|
27
27
|
|
|
28
28
|
var _Radio = _interopRequireDefault(require("./Radio"));
|
|
29
29
|
|
|
30
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
|
|
30
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
|
|
31
31
|
|
|
32
32
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
33
33
|
|
|
@@ -198,10 +198,12 @@ var DxcRadioGroup = /*#__PURE__*/_react["default"].forwardRef(function (_ref, re
|
|
|
198
198
|
"aria-required": !disabled && !readonly && !optional,
|
|
199
199
|
"aria-readonly": readonly,
|
|
200
200
|
"aria-orientation": stacking === "column" ? "vertical" : "horizontal"
|
|
201
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
202
|
-
type: "hidden",
|
|
201
|
+
}, /*#__PURE__*/_react["default"].createElement(ValueInput, {
|
|
203
202
|
name: name,
|
|
204
|
-
|
|
203
|
+
disabled: disabled,
|
|
204
|
+
value: (_ref2 = value !== null && value !== void 0 ? value : innerValue) !== null && _ref2 !== void 0 ? _ref2 : "",
|
|
205
|
+
readOnly: true,
|
|
206
|
+
"aria-hidden": "true"
|
|
205
207
|
}), innerOptions.map(function (option, index) {
|
|
206
208
|
return /*#__PURE__*/_react["default"].createElement(_Radio["default"], {
|
|
207
209
|
key: "radio-".concat(index),
|
|
@@ -269,7 +271,9 @@ var RadioGroup = _styledComponents["default"].div(_templateObject5 || (_template
|
|
|
269
271
|
return props.theme.groupHorizontalGutter;
|
|
270
272
|
});
|
|
271
273
|
|
|
272
|
-
var
|
|
274
|
+
var ValueInput = _styledComponents["default"].input(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2["default"])(["\n display: none;\n"])));
|
|
275
|
+
|
|
276
|
+
var Error = _styledComponents["default"].span(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2["default"])(["\n min-height: 1.5em;\n color: ", ";\n font-family: ", ";\n font-size: 0.75rem;\n font-weight: 400;\n line-height: 1.5em;\n margin-top: 0.5rem;\n"])), function (props) {
|
|
273
277
|
return props.theme.errorMessageColor;
|
|
274
278
|
}, function (props) {
|
|
275
279
|
return props.theme.fontFamily;
|