@ntbjs/react-components 2.0.0-rc.11 → 2.0.0-rc.13
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/cjs/components/data/Alert/Alert.js +8 -10
- package/cjs/components/data/Alert/Alert.styled.js +17 -10
- package/cjs/components/data/Badge/Badge.js +13 -13
- package/cjs/components/data/Badge/Badge.styled.js +37 -26
- package/cjs/components/data/Popover/Popover.js +4 -2
- package/cjs/components/data/Tab/Tab.styled.js +6 -1
- package/cjs/components/data/Tabs/Tabs.js +22 -12
- package/cjs/components/data/Tabs/Tabs.styled.js +29 -16
- package/cjs/components/data/Tooltip/Tooltip.js +3 -1
- package/cjs/components/data/VerificationStatusIcon/VerificationStatusIcon.js +6 -6
- package/cjs/components/data/VerificationStatusIcon/VerificationStatusIcon.styled.js +24 -15
- package/cjs/components/inputs/ActionButton/ActionButton.js +5 -3
- package/cjs/components/inputs/ActionButton/ActionButton.styled.js +17 -8
- package/cjs/components/inputs/Button/Button.js +45 -38
- package/cjs/components/inputs/Button/Button.styled.js +84 -38
- package/cjs/components/inputs/Checkbox/Checkbox.js +1 -1
- package/cjs/components/inputs/Checkbox/Checkbox.styled.js +23 -8
- package/cjs/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js +2 -2
- package/cjs/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js +46 -35
- package/cjs/components/inputs/CompactStarRating/CompactStarRating.js +3 -4
- package/cjs/components/inputs/CompactStarRating/CompactStarRating.styled.js +36 -25
- package/cjs/components/inputs/CompactTextInput/CompactTextInput.js +5 -5
- package/cjs/components/inputs/CompactTextInput/CompactTextInput.styled.js +79 -25
- package/cjs/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js +24 -7
- package/cjs/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +1 -1
- package/cjs/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +38 -13
- package/cjs/components/inputs/MultiSelect/MultiSelect.js +5 -48
- package/cjs/components/inputs/MultiSelect/MultiSelect.styled.js +27 -31
- package/cjs/components/inputs/Radio/Radio.styled.js +9 -2
- package/cjs/components/inputs/Switch/Switch.js +1 -1
- package/cjs/components/inputs/Switch/Switch.styled.js +22 -7
- package/cjs/components/inputs/TextArea/TextArea.js +10 -20
- package/cjs/components/inputs/TextArea/TextArea.styled.js +208 -133
- package/cjs/components/inputs/TextInput/TextInput.js +21 -22
- package/cjs/components/inputs/TextInput/TextInput.styled.js +58 -45
- package/cjs/components/layout/InputGroup/InputGroup.styled.js +6 -1
- package/cjs/components/layout/SectionSeparator/SectionSeparator.js +7 -7
- package/cjs/components/layout/SectionSeparator/SectionSeparator.styled.js +12 -5
- package/cjs/components/widgets/AssetAction/AssetAction.js +1 -1
- package/cjs/components/widgets/AssetAction/AssetAction.styled.js +16 -5
- package/cjs/components/widgets/AssetActionsBase/AssetActionsBase.styled.js +6 -1
- package/cjs/components/widgets/AssetGallery/AssetGallery.js +5 -1
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js +9 -6
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +12 -3
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js +7 -4
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +80 -33
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js +1 -1
- package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js +22 -22
- package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +2 -2
- package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js +18 -7
- package/cjs/components/widgets/ContextMenu/ContextMenu.js +2 -1
- package/cjs/components/widgets/ContextMenu/ContextMenu.styled.js +6 -1
- package/cjs/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +4 -4
- package/cjs/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +16 -7
- package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js +6 -1
- package/cjs/components/widgets/InfoCard/InfoCard.js +17 -9
- package/cjs/components/widgets/InfoCard/InfoCard.styled.js +40 -13
- package/cjs/components/widgets/ProgressBar/ProgressBar.js +43 -22
- package/cjs/components/widgets/ProgressBar/ProgressBar.styled.js +78 -22
- package/cjs/components/widgets/SummaryCard/SummaryCard.js +9 -8
- package/cjs/components/widgets/SummaryCard/SummaryCard.styled.js +46 -19
- package/cjs/components/widgets/widgets/index.js +0 -2
- package/cjs/node_modules/@emotion/cache/dist/{emotion-cache.browser.esm.js → emotion-cache.esm.js} +61 -3
- package/cjs/node_modules/@emotion/react/dist/{emotion-element-f0de968e.browser.esm.js → emotion-element-d59e098f.esm.js} +54 -12
- package/cjs/node_modules/@emotion/react/dist/{emotion-react.browser.esm.js → emotion-react.esm.js} +10 -7
- package/cjs/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/{emotion-use-insertion-effect-with-fallbacks.browser.esm.js → emotion-use-insertion-effect-with-fallbacks.esm.js} +3 -1
- package/cjs/node_modules/@emotion/utils/dist/{emotion-utils.browser.esm.js → emotion-utils.esm.js} +12 -3
- package/cjs/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +20 -0
- package/cjs/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +20 -12
- package/cjs/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +1 -1
- package/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js +4 -2
- package/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +9 -8
- package/cjs/node_modules/@restart/hooks/{esm → lib}/useMergedRefs.js +8 -11
- package/cjs/node_modules/@restart/hooks/{esm → lib}/useUpdateEffect.js +2 -4
- package/cjs/node_modules/react/cjs/react.development.js +125 -82
- package/cjs/node_modules/react/cjs/react.production.js +88 -92
- package/cjs/node_modules/react-dom/cjs/react-dom.development.js +1 -1
- package/cjs/node_modules/react-dom/cjs/react-dom.production.js +1 -1
- package/cjs/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +5 -5
- package/cjs/node_modules/react-select/dist/{Select-aab027f3.esm.js → Select-ef7c0426.esm.js} +23 -17
- package/cjs/node_modules/react-select/dist/index-641ee5b8.esm.js +47 -47
- package/cjs/node_modules/react-select/dist/{useCreatable-84008237.esm.js → useCreatable-09aaeb9a.esm.js} +3 -3
- package/cjs/node_modules/use-isomorphic-layout-effect/dist/{use-isomorphic-layout-effect.browser.esm.js → use-isomorphic-layout-effect.esm.js} +4 -1
- package/cjs/styles/utils/colors-export.js +41 -0
- package/cjs/utils/defaultTheme.js +28 -5
- package/esm/components/data/Alert/Alert.js +8 -10
- package/esm/components/data/Alert/Alert.styled.js +17 -10
- package/esm/components/data/Badge/Badge.js +13 -13
- package/esm/components/data/Badge/Badge.styled.js +37 -26
- package/esm/components/data/Popover/Popover.js +4 -2
- package/esm/components/data/Tab/Tab.styled.js +6 -1
- package/esm/components/data/Tabs/Tabs.js +23 -13
- package/esm/components/data/Tabs/Tabs.styled.js +29 -16
- package/esm/components/data/Tooltip/Tooltip.js +3 -1
- package/esm/components/data/VerificationStatusIcon/VerificationStatusIcon.js +6 -6
- package/esm/components/data/VerificationStatusIcon/VerificationStatusIcon.styled.js +24 -15
- package/esm/components/inputs/ActionButton/ActionButton.js +5 -3
- package/esm/components/inputs/ActionButton/ActionButton.styled.js +17 -8
- package/esm/components/inputs/Button/Button.js +45 -38
- package/esm/components/inputs/Button/Button.styled.js +84 -38
- package/esm/components/inputs/Checkbox/Checkbox.js +1 -1
- package/esm/components/inputs/Checkbox/Checkbox.styled.js +23 -8
- package/esm/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js +4 -4
- package/esm/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js +46 -35
- package/esm/components/inputs/CompactStarRating/CompactStarRating.js +3 -4
- package/esm/components/inputs/CompactStarRating/CompactStarRating.styled.js +36 -25
- package/esm/components/inputs/CompactTextInput/CompactTextInput.js +5 -5
- package/esm/components/inputs/CompactTextInput/CompactTextInput.styled.js +79 -25
- package/esm/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js +24 -7
- package/esm/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +1 -1
- package/esm/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +38 -13
- package/esm/components/inputs/MultiSelect/MultiSelect.js +6 -49
- package/esm/components/inputs/MultiSelect/MultiSelect.styled.js +28 -28
- package/esm/components/inputs/Radio/Radio.styled.js +9 -2
- package/esm/components/inputs/Switch/Switch.js +1 -1
- package/esm/components/inputs/Switch/Switch.styled.js +22 -7
- package/esm/components/inputs/TextArea/TextArea.js +10 -20
- package/esm/components/inputs/TextArea/TextArea.styled.js +208 -133
- package/esm/components/inputs/TextInput/TextInput.js +21 -22
- package/esm/components/inputs/TextInput/TextInput.styled.js +58 -45
- package/esm/components/layout/InputGroup/InputGroup.styled.js +6 -1
- package/esm/components/layout/SectionSeparator/SectionSeparator.js +7 -7
- package/esm/components/layout/SectionSeparator/SectionSeparator.styled.js +12 -5
- package/esm/components/widgets/AssetAction/AssetAction.js +1 -1
- package/esm/components/widgets/AssetAction/AssetAction.styled.js +16 -5
- package/esm/components/widgets/AssetActionsBase/AssetActionsBase.styled.js +6 -1
- package/esm/components/widgets/AssetGallery/AssetGallery.js +5 -1
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js +9 -6
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +12 -3
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js +7 -4
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +80 -33
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js +1 -1
- package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js +22 -22
- package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +2 -2
- package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js +18 -7
- package/esm/components/widgets/ContextMenu/ContextMenu.js +2 -1
- package/esm/components/widgets/ContextMenu/ContextMenu.styled.js +6 -1
- package/esm/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +4 -4
- package/esm/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +16 -7
- package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js +6 -1
- package/esm/components/widgets/InfoCard/InfoCard.js +10 -2
- package/esm/components/widgets/InfoCard/InfoCard.styled.js +40 -13
- package/esm/components/widgets/ProgressBar/ProgressBar.js +31 -10
- package/esm/components/widgets/ProgressBar/ProgressBar.styled.js +77 -23
- package/esm/components/widgets/SummaryCard/SummaryCard.js +9 -8
- package/esm/components/widgets/SummaryCard/SummaryCard.styled.js +46 -19
- package/esm/components/widgets/widgets/index.js +0 -1
- package/esm/node_modules/@emotion/cache/dist/{emotion-cache.browser.esm.js → emotion-cache.esm.js} +61 -3
- package/esm/node_modules/@emotion/react/dist/{emotion-element-f0de968e.browser.esm.js → emotion-element-d59e098f.esm.js} +47 -5
- package/esm/node_modules/@emotion/react/dist/{emotion-react.browser.esm.js → emotion-react.esm.js} +3 -3
- package/esm/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/{emotion-use-insertion-effect-with-fallbacks.browser.esm.js → emotion-use-insertion-effect-with-fallbacks.esm.js} +3 -1
- package/esm/node_modules/@emotion/utils/dist/{emotion-utils.browser.esm.js → emotion-utils.esm.js} +12 -3
- package/esm/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +16 -0
- package/esm/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +20 -12
- package/esm/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +4 -4
- package/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js +4 -2
- package/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +9 -8
- package/esm/node_modules/@restart/hooks/{esm → lib}/useMergedRefs.js +8 -11
- package/esm/node_modules/@restart/hooks/{esm → lib}/useUpdateEffect.js +2 -4
- package/esm/node_modules/react/cjs/react.development.js +125 -82
- package/esm/node_modules/react/cjs/react.production.js +88 -92
- package/esm/node_modules/react-dom/cjs/react-dom.development.js +1 -1
- package/esm/node_modules/react-dom/cjs/react-dom.production.js +1 -1
- package/esm/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +3 -3
- package/esm/node_modules/react-select/dist/{Select-aab027f3.esm.js → Select-ef7c0426.esm.js} +12 -6
- package/esm/node_modules/react-select/dist/index-641ee5b8.esm.js +2 -2
- package/esm/node_modules/react-select/dist/{useCreatable-84008237.esm.js → useCreatable-09aaeb9a.esm.js} +1 -1
- package/esm/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js +9 -0
- package/esm/styles/utils/colors-export.js +37 -0
- package/esm/utils/defaultTheme.js +28 -5
- package/package.json +16 -22
- package/styles/utils/colors-export.js +35 -0
- package/cjs/components/widgets/Instructions/Instructions.js +0 -217
- package/cjs/components/widgets/Instructions/Instructions.styled.js +0 -47
- package/cjs/components/widgets/Instructions/widgets/Instructions/index.js +0 -9
- package/cjs/styles/utils/colors.scss.js +0 -11
- package/esm/components/widgets/Instructions/Instructions.js +0 -213
- package/esm/components/widgets/Instructions/Instructions.styled.js +0 -36
- package/esm/components/widgets/Instructions/widgets/Instructions/index.js +0 -1
- package/esm/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js +0 -6
- package/esm/styles/utils/colors.scss.js +0 -7
- package/styles/config.scss +0 -37
- /package/styles/utils/{colors.scss → .colors.scss} +0 -0
|
@@ -19,6 +19,8 @@ let _ = t => t,
|
|
|
19
19
|
_t7,
|
|
20
20
|
_t8,
|
|
21
21
|
_t9,
|
|
22
|
+
_t0,
|
|
23
|
+
_t1,
|
|
22
24
|
_t10,
|
|
23
25
|
_t11,
|
|
24
26
|
_t12,
|
|
@@ -49,11 +51,7 @@ let _ = t => t,
|
|
|
49
51
|
_t37,
|
|
50
52
|
_t38,
|
|
51
53
|
_t39,
|
|
52
|
-
_t40
|
|
53
|
-
_t41,
|
|
54
|
-
_t42,
|
|
55
|
-
_t43,
|
|
56
|
-
_t44;
|
|
54
|
+
_t40;
|
|
57
55
|
const fadeInCheck = styled.keyframes(_t || (_t = _`
|
|
58
56
|
from {
|
|
59
57
|
opacity: 0
|
|
@@ -78,23 +76,17 @@ const activeLabel = styled.css(_t3 || (_t3 = _`
|
|
|
78
76
|
left: 8px !important;
|
|
79
77
|
opacity: 1 !important;
|
|
80
78
|
`));
|
|
81
|
-
const
|
|
82
|
-
$
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
${0}
|
|
89
|
-
`), props => props.theme.themeProp('color', props.theme.getColor('white'), props.theme.getColor('gray-600')), props => props.type === 'error-border' && styled.css(_t5 || (_t5 = _`
|
|
90
|
-
${0}
|
|
91
|
-
`), props.theme.themeProp('color', props.theme.getColor('red-500'), props.theme.getColor('red-500'))), props => props.type === 'warning-border' && styled.css(_t6 || (_t6 = _`
|
|
92
|
-
${0}
|
|
93
|
-
`), props.theme.themeProp('color', props.theme.getColor('orange-500'), props.theme.getColor('orange-500'))), props => props.theme.themeProp('opacity', 0.6, 0.5));
|
|
94
|
-
const TextAreaContainter = styled__default["default"].div.attrs(defaultTheme.applyDefaultTheme)(_t7 || (_t7 = _`
|
|
79
|
+
const shouldForwardProp = prop => {
|
|
80
|
+
return prop !== 'theme' && !prop.startsWith('$');
|
|
81
|
+
};
|
|
82
|
+
const TextAreaContainter = styled__default["default"].div.withConfig({
|
|
83
|
+
shouldForwardProp
|
|
84
|
+
}).attrs(defaultTheme.applyDefaultTheme)(_t4 || (_t4 = _`
|
|
95
85
|
display: flex;
|
|
96
86
|
`));
|
|
97
|
-
const Label = styled__default["default"].label.
|
|
87
|
+
const Label = styled__default["default"].label.withConfig({
|
|
88
|
+
shouldForwardProp
|
|
89
|
+
}).attrs(defaultTheme.applyDefaultTheme)(_t5 || (_t5 = _`
|
|
98
90
|
${0};
|
|
99
91
|
flex-basis: 33.33%;
|
|
100
92
|
font-size: 0.875rem;
|
|
@@ -105,10 +97,12 @@ const Label = styled__default["default"].label.attrs(defaultTheme.applyDefaultTh
|
|
|
105
97
|
align-items: center;
|
|
106
98
|
padding-top: 13px;
|
|
107
99
|
${0}
|
|
108
|
-
`), props => props.theme.themeProp('color', props.theme.getColor('white'), props.theme.getColor('gray-700')), props => props.disabled && styled.css(
|
|
100
|
+
`), props => props.theme.themeProp('color', props.theme.getColor('white'), props.theme.getColor('gray-700')), props => props.disabled && styled.css(_t6 || (_t6 = _`
|
|
109
101
|
cursor: not-allowed;
|
|
110
102
|
`)));
|
|
111
|
-
const InputIconContainer = styled__default["default"].div.
|
|
103
|
+
const InputIconContainer = styled__default["default"].div.withConfig({
|
|
104
|
+
shouldForwardProp
|
|
105
|
+
}).attrs(defaultTheme.applyDefaultTheme)(_t7 || (_t7 = _`
|
|
112
106
|
opacity: 0;
|
|
113
107
|
pointer-events: none;
|
|
114
108
|
border-top-right-radius: 3px;
|
|
@@ -136,27 +130,26 @@ const InputIconContainer = styled__default["default"].div.attrs(defaultTheme.app
|
|
|
136
130
|
|
|
137
131
|
${0}
|
|
138
132
|
}
|
|
139
|
-
`), props => props.theme.themeProp('background-color', props.theme.getColor('gray-900'), props.theme.getColor('gray-300'), '!important'), props => props.disabled && styled.css(
|
|
133
|
+
`), props => props.theme.themeProp('background-color', props.theme.getColor('gray-900'), props.theme.getColor('gray-300'), '!important'), props => props.disabled && styled.css(_t8 || (_t8 = _`
|
|
140
134
|
display: none;
|
|
141
135
|
`)));
|
|
142
|
-
const TextInputField = styled__default["default"].textarea.
|
|
136
|
+
const TextInputField = styled__default["default"].textarea.withConfig({
|
|
137
|
+
shouldForwardProp
|
|
138
|
+
}).attrs(defaultTheme.applyDefaultTheme)(_t9 || (_t9 = _`
|
|
143
139
|
width: 100%;
|
|
144
140
|
font-family: inherit;
|
|
145
141
|
font-size: 0.875rem;
|
|
146
|
-
border-radius:
|
|
142
|
+
border-radius: 3px;
|
|
147
143
|
padding: 5px 10px;
|
|
148
144
|
resize: vertical;
|
|
149
145
|
z-index: 0;
|
|
150
|
-
border-radius: 3px;
|
|
151
146
|
box-sizing: border-box;
|
|
152
147
|
appearance: none;
|
|
153
148
|
border: 1px solid;
|
|
154
|
-
transition:
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
149
|
+
transition:
|
|
150
|
+
height 550ms ease-in-out,
|
|
151
|
+
border-color 350ms,
|
|
152
|
+
background 350ms;
|
|
160
153
|
|
|
161
154
|
${0}
|
|
162
155
|
|
|
@@ -164,32 +157,17 @@ const TextInputField = styled__default["default"].textarea.attrs(defaultTheme.ap
|
|
|
164
157
|
|
|
165
158
|
${0}
|
|
166
159
|
|
|
167
|
-
|
|
168
|
-
${0}
|
|
169
160
|
|
|
170
|
-
|
|
171
161
|
${0}
|
|
172
162
|
|
|
173
163
|
${0}
|
|
174
164
|
|
|
175
|
-
${0}
|
|
176
|
-
|
|
177
|
-
${0}
|
|
178
|
-
|
|
179
165
|
|
|
180
|
-
${0}
|
|
166
|
+
${0}
|
|
181
167
|
|
|
182
|
-
|
|
183
|
-
|
|
184
168
|
${0}
|
|
185
169
|
|
|
186
|
-
${0}
|
|
187
|
-
|
|
188
170
|
${0}
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
${0}
|
|
192
|
-
|
|
193
171
|
|
|
194
172
|
|
|
195
173
|
${0}
|
|
@@ -198,108 +176,199 @@ const TextInputField = styled__default["default"].textarea.attrs(defaultTheme.ap
|
|
|
198
176
|
|
|
199
177
|
${0}
|
|
200
178
|
|
|
201
|
-
|
|
202
|
-
|
|
179
|
+
${0}
|
|
203
180
|
|
|
204
181
|
|
|
205
182
|
&&:hover:not(:focus) {
|
|
206
|
-
${0}
|
|
207
|
-
|
|
208
|
-
${0};
|
|
209
|
-
|
|
210
|
-
${0};
|
|
183
|
+
${0}
|
|
211
184
|
|
|
212
|
-
|
|
213
|
-
${0};
|
|
185
|
+
${0}
|
|
214
186
|
|
|
187
|
+
${0}
|
|
215
188
|
|
|
216
|
-
${0};
|
|
217
|
-
transition: background 350ms;
|
|
218
189
|
& + ${0} {
|
|
219
190
|
opacity: 1;
|
|
220
|
-
${0}
|
|
221
|
-
transition: opacity 350ms;
|
|
191
|
+
${0}
|
|
222
192
|
}
|
|
223
193
|
}
|
|
224
194
|
|
|
225
195
|
&::placeholder {
|
|
226
|
-
|
|
227
|
-
${0}
|
|
228
|
-
|
|
229
|
-
}
|
|
196
|
+
${0}
|
|
230
197
|
|
|
198
|
+
${0}
|
|
231
199
|
|
|
200
|
+
${0}
|
|
201
|
+
}
|
|
232
202
|
|
|
233
|
-
|
|
234
|
-
outline: none;
|
|
203
|
+
&:hover::placeholder {
|
|
235
204
|
${0}
|
|
236
205
|
|
|
237
|
-
${0}
|
|
206
|
+
${0}
|
|
207
|
+
}
|
|
238
208
|
|
|
239
|
-
|
|
240
|
-
${0}
|
|
241
|
-
|
|
209
|
+
&:focus::placeholder {
|
|
242
210
|
${0}
|
|
243
211
|
|
|
212
|
+
${0}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
&&:focus {
|
|
216
|
+
outline: none;
|
|
217
|
+
|
|
218
|
+
${0}
|
|
244
219
|
}
|
|
245
220
|
|
|
246
221
|
&&:not(:hover):not(:focus) {
|
|
247
|
-
${0}
|
|
248
|
-
${0};
|
|
222
|
+
${0}
|
|
249
223
|
|
|
250
|
-
|
|
251
|
-
|
|
224
|
+
${0}
|
|
225
|
+
|
|
226
|
+
${0}
|
|
227
|
+
}
|
|
228
|
+
`), props => props.theme.themeProp('color', props.theme.getColor('gray-100'), props.theme.getColor('gray-900')), props => props.$borderRadius && styled.css(_t0 || (_t0 = _`
|
|
229
|
+
border-radius: ${0}px;
|
|
230
|
+
`), props.$borderRadius), props => {
|
|
231
|
+
if (props.type === 'error') {
|
|
232
|
+
return styled.css(_t1 || (_t1 = _`
|
|
233
|
+
${0}
|
|
234
|
+
${0}
|
|
235
|
+
${0}
|
|
236
|
+
`), props.theme.themeProp('color', 'white', 'black'), props.theme.themeProp('background', '#7f1b1b', '#FBEAE6'), props.theme.themeProp('border-color', '#7f1b1b', '#FBEAE6'));
|
|
237
|
+
} else if (props.type === 'warning') {
|
|
238
|
+
return styled.css(_t10 || (_t10 = _`
|
|
239
|
+
${0}
|
|
240
|
+
${0}
|
|
241
|
+
${0}
|
|
242
|
+
`), props.theme.themeProp('color', 'white', 'black'), props.theme.themeProp('background', '#634E01', '#FFFDE8'), props.theme.themeProp('border-color', '#634E01', '#FFFDE8'));
|
|
243
|
+
} else if (props.type === 'error-border') {
|
|
244
|
+
return styled.css(_t11 || (_t11 = _`
|
|
245
|
+
${0}
|
|
246
|
+
${0}
|
|
247
|
+
${0}
|
|
248
|
+
`), props.theme.themeProp('color', props.theme.getColor('gray-100'), props.theme.getColor('gray-900')), props.theme.themeProp('background', props.theme.getColor('gray-900'), props.theme.getColor('white')), props.theme.themeProp('border-color', props.theme.getColor('red-200'), props.theme.getColor('red-500')));
|
|
249
|
+
} else if (props.type === 'warning-border') {
|
|
250
|
+
return styled.css(_t12 || (_t12 = _`
|
|
251
|
+
${0}
|
|
252
|
+
${0}
|
|
253
|
+
${0}
|
|
254
|
+
`), props.theme.themeProp('color', props.theme.getColor('gray-100'), props.theme.getColor('gray-900')), props.theme.themeProp('background', props.theme.getColor('gray-900'), props.theme.getColor('white')), props.theme.themeProp('border-color', props.theme.getColor('red-200'), props.theme.getColor('orange-500')));
|
|
255
|
+
} else {
|
|
256
|
+
return styled.css(_t13 || (_t13 = _`
|
|
257
|
+
${0}
|
|
258
|
+
${0}
|
|
259
|
+
${0}
|
|
260
|
+
`), props.theme.themeProp('color', props.theme.getColor('gray-100'), props.theme.getColor('gray-900')), props.theme.themeProp('background', props.theme.getColor('gray-900'), props.theme.getColor('white')), props.theme.themeProp('border-color', props.theme.getColor('gray-500'), props.theme.getColor('gray-400')));
|
|
252
261
|
}
|
|
253
|
-
|
|
254
|
-
border-radius: ${0}px;
|
|
255
|
-
`), props.borderRadius), props => props.theme.themeProp('color', 'white', 'black'), props => props.readOnly && styled.css(_t14 || (_t14 = _`
|
|
262
|
+
}, props => props.readOnly && styled.css(_t14 || (_t14 = _`
|
|
256
263
|
cursor: default;
|
|
257
264
|
border-color: transparent !important;
|
|
258
|
-
padding: 12px 10px;
|
|
265
|
+
padding: 12px 10px;
|
|
259
266
|
`)), props => props.disabled && styled.css(_t15 || (_t15 = _`
|
|
260
267
|
cursor: not-allowed;
|
|
261
|
-
`)), props => props
|
|
262
|
-
${0}
|
|
263
|
-
`), props => props.theme.themeProp('border-color', props.theme.getColor('gray-900'), props.theme.getColor('white'))), props => props.type === 'warning' && styled.css(_t17 || (_t17 = _`
|
|
264
|
-
${0}
|
|
268
|
+
`)), props => props.$noBorder && !props.type && styled.css(_t16 || (_t16 = _`
|
|
265
269
|
${0}
|
|
270
|
+
`), props => props.theme.themeProp('border-color', props.theme.getColor('gray-900'), props.theme.getColor('white'))), props => props.$noBorder && props.type === 'warning' && styled.css(_t17 || (_t17 = _`
|
|
266
271
|
${0}
|
|
267
|
-
`), props
|
|
272
|
+
`), props => props.theme.themeProp('border-color', '#634E01', '#FFFDE8')), props => props.$noBorder && props.type === 'error' && styled.css(_t18 || (_t18 = _`
|
|
268
273
|
${0}
|
|
269
|
-
|
|
270
|
-
${0}
|
|
271
|
-
`), props.theme.themeProp('color', 'white', 'black'), props.theme.themeProp('background', '#7f1b1b', '#FBEAE6'), props.theme.themeProp('border-color', '#7f1b1b', '#FBEAE6')), props => props.noBorder && props.type === 'warning' && styled.css(_t19 || (_t19 = _`
|
|
272
|
-
${0}
|
|
273
|
-
`), props => props.theme.themeProp('border-color', '#634E01', '#FFFDE8')), props => props.noBorder && props.type === 'error' && styled.css(_t20 || (_t20 = _`
|
|
274
|
-
${0}
|
|
275
|
-
`), props => props.theme.themeProp('border-color', '#7f1b1b', '#FBEAE6')), props => props.type === 'warning-border' && styled.css(_t21 || (_t21 = _`
|
|
276
|
-
${0}
|
|
277
|
-
`), props.theme.themeProp('border-color', props.theme.getColor('orange-500'), props.theme.getColor('orange-500'))), props => props.type === 'error-border' && styled.css(_t22 || (_t22 = _`
|
|
278
|
-
${0}
|
|
279
|
-
`), props.theme.themeProp('border-color', props.theme.getColor('red-500'), props.theme.getColor('red-500'))), props => props.padding === 'small' && styled.css(_t23 || (_t23 = _`
|
|
274
|
+
`), props => props.theme.themeProp('border-color', '#7f1b1b', '#FBEAE6')), props => props.padding === 'small' && styled.css(_t19 || (_t19 = _`
|
|
280
275
|
padding: 5px 10px;
|
|
281
|
-
`)), props => props.padding === 'medium' && styled.css(
|
|
276
|
+
`)), props => props.padding === 'medium' && styled.css(_t20 || (_t20 = _`
|
|
282
277
|
padding: 13px 15px;
|
|
283
|
-
`)), props => props.padding === 'large' && styled.css(
|
|
278
|
+
`)), props => props.padding === 'large' && styled.css(_t21 || (_t21 = _`
|
|
284
279
|
padding: 15px 55px;
|
|
285
|
-
`)), props => props
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
280
|
+
`)), props => props.$hasIcon && styled.css(_t22 || (_t22 = _`
|
|
281
|
+
padding-left: 55px;
|
|
282
|
+
padding-right: 35px;
|
|
283
|
+
padding-top: 13.5px;
|
|
284
|
+
`)), props => {
|
|
285
|
+
if (props.disabled) {
|
|
286
|
+
return '';
|
|
287
|
+
}
|
|
288
|
+
if (props.readOnly) {
|
|
289
|
+
if (props.type === 'error') {
|
|
290
|
+
return props.theme.themeProp('background', '#7f1b1b', '#FBEAE6');
|
|
291
|
+
} else if (props.type === 'warning') {
|
|
292
|
+
return props.theme.themeProp('background', '#634E01', '#FFFDE8');
|
|
293
|
+
}
|
|
294
|
+
return '';
|
|
295
|
+
}
|
|
296
|
+
if (props.type === 'error') {
|
|
297
|
+
return props.theme.themeProp('background', '#901d1d', '#F7D5D0');
|
|
298
|
+
} else if (props.type === 'warning') {
|
|
299
|
+
return props.theme.themeProp('background', '#806403', '#FFFEBF');
|
|
300
|
+
} else if (!props.disabled) {
|
|
301
|
+
return props.theme.themeProp('background', props.theme.getColor('gray-700'), props.theme.getColor('gray-100'));
|
|
302
|
+
}
|
|
303
|
+
return '';
|
|
304
|
+
}, props => props.$edit && props.theme.themeProp('border-color', props.theme.getColor('gray-700'), props.theme.getColor('gray-100')), props => props.$noBorder && !props.readOnly && props.type !== 'warning' && props.type !== 'error' ? props.theme.themeProp('background', props.theme.getColor('gray-700'), props.theme.getColor('gray-100')) : '', InputIconContainer, props => props.type === 'success' && styled.css(_t23 || (_t23 = _`
|
|
290
305
|
opacity: 0;
|
|
291
|
-
`)),
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
306
|
+
`)), props => props.theme.themeProp('color', props.theme.getColor('gray-300'), props.theme.getColor('gray-600')), props => props.theme.themeProp('opacity', 0.6, 0.5), props => {
|
|
307
|
+
if (props.type === 'warning') {
|
|
308
|
+
return props.theme.themeProp('color', props.theme.getColor('gray-200'), props.theme.getColor('gray-700'));
|
|
309
|
+
} else if (props.type === 'error') {
|
|
310
|
+
return props.theme.themeProp('color', props.theme.getColor('gray-200'), props.theme.getColor('gray-700'));
|
|
311
|
+
}
|
|
312
|
+
return '';
|
|
313
|
+
}, props => props.theme.themeProp('opacity', 0.6, 0.5), props => {
|
|
314
|
+
if (props.type === 'warning') {
|
|
315
|
+
return props.theme.themeProp('color', props.theme.getColor('gray-900'), props.theme.getColor('gray-900'));
|
|
316
|
+
} else if (props.type === 'error') {
|
|
317
|
+
return props.theme.themeProp('color', props.theme.getColor('red-600'), props.theme.getColor('red-600'));
|
|
318
|
+
} else {
|
|
319
|
+
return props.theme.themeProp('color', props.theme.getColor('gray-300'), props.theme.getColor('gray-600'));
|
|
320
|
+
}
|
|
321
|
+
}, props => props.theme.themeProp('opacity', 0.6, 0.5), props => {
|
|
322
|
+
if (props.type === 'warning') {
|
|
323
|
+
return props.theme.themeProp('color', props.theme.getColor('gray-900'), props.theme.getColor('gray-900'));
|
|
324
|
+
} else if (props.type === 'error') {
|
|
325
|
+
return props.theme.themeProp('color', props.theme.getColor('red-600'), props.theme.getColor('red-600'));
|
|
326
|
+
} else {
|
|
327
|
+
return props.theme.themeProp('color', props.theme.getColor('gray-300'), props.theme.getColor('gray-600'));
|
|
328
|
+
}
|
|
329
|
+
}, props => {
|
|
330
|
+
if (props.readOnly) {
|
|
331
|
+
if (props.type === 'error') {
|
|
332
|
+
return props.theme.themeProp('background', '#7f1b1b', '#FBEAE6');
|
|
333
|
+
} else if (props.type === 'warning') {
|
|
334
|
+
return props.theme.themeProp('background', '#634E01', '#FFFDE8');
|
|
335
|
+
}
|
|
336
|
+
return '';
|
|
337
|
+
}
|
|
338
|
+
if (props.type === 'error') {
|
|
339
|
+
return styled.css(_t24 || (_t24 = _`
|
|
340
|
+
${0}
|
|
341
|
+
${0}
|
|
296
342
|
${0}
|
|
343
|
+
`), props.theme.themeProp('border-color', '#D83018', '#D83018'), props.theme.themeProp('background', 'white', 'white'), props.theme.themeProp('color', 'black', 'black'));
|
|
344
|
+
} else if (props.type === 'warning') {
|
|
345
|
+
return styled.css(_t25 || (_t25 = _`
|
|
346
|
+
${0}
|
|
347
|
+
${0}
|
|
297
348
|
${0}
|
|
349
|
+
`), props.theme.themeProp('border-color', '#F4E21E', '#F4E21E'), props.theme.themeProp('background', 'white', 'white'), props.theme.themeProp('color', 'black', 'black'));
|
|
350
|
+
} else {
|
|
351
|
+
return styled.css(_t26 || (_t26 = _`
|
|
352
|
+
${0}
|
|
353
|
+
${0}
|
|
354
|
+
`), props.theme.themeProp('border-color', props.theme.getColor('gray-400'), props.theme.getColor('gray-600')), props.theme.themeProp('background', 'transparent', props.theme.getColor('white')));
|
|
355
|
+
}
|
|
356
|
+
}, props => {
|
|
357
|
+
if (props.$edit) {
|
|
358
|
+
if (props.type === 'error') {
|
|
359
|
+
return props.theme.themeProp('background', '#7f1b1b', '#FEE2E2');
|
|
360
|
+
} else if (props.type === 'warning') {
|
|
361
|
+
return props.theme.themeProp('background', '#634E01', '#FFFDE8');
|
|
362
|
+
} else {
|
|
363
|
+
return props.theme.themeProp('background', 'rgba(39,39,42, 0.7)', 'rgba(244,244,245, 0.3)');
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
}, props => props.$edit && props.theme.themeProp('border-color', 'rgba(39,39,42, 0.7)', 'rgba(228,228,231, 0.3)'), props => props.$noBorder && props.$edit && styled.css(_t27 || (_t27 = _`
|
|
298
367
|
${0}
|
|
299
|
-
`), props => props.theme.themeProp('border-color', '#
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
368
|
+
`), props => props.theme.themeProp('border-color', '#27272A', 'rgba(244,244,245, 0.3)')));
|
|
369
|
+
const TextInputLabel = styled__default["default"].label.withConfig({
|
|
370
|
+
shouldForwardProp
|
|
371
|
+
}).attrs(defaultTheme.applyDefaultTheme)(_t28 || (_t28 = _`
|
|
303
372
|
position: absolute;
|
|
304
373
|
top: 13px;
|
|
305
374
|
left: 11px;
|
|
@@ -310,7 +379,8 @@ const TextInputLabel = styled__default["default"].label.attrs(defaultTheme.apply
|
|
|
310
379
|
|
|
311
380
|
${0};
|
|
312
381
|
|
|
313
|
-
|
|
382
|
+
${0}
|
|
383
|
+
|
|
314
384
|
|
|
315
385
|
${0}
|
|
316
386
|
|
|
@@ -320,14 +390,16 @@ const TextInputLabel = styled__default["default"].label.attrs(defaultTheme.apply
|
|
|
320
390
|
content: "";
|
|
321
391
|
|
|
322
392
|
${0}
|
|
323
|
-
`), props => props.theme.themeProp('color', props.theme.getColor('white'), props.theme.getColor('gray-700')),
|
|
393
|
+
`), props => props.theme.themeProp('color', props.theme.getColor('white'), props.theme.getColor('gray-700')), props => props.theme.themeProp('opacity', 0.6, 0.5), props => props.theme.themeProp('background', `linear-gradient(0deg, ${props.theme.getColor('gray-900')} calc(50% + 1px), transparent 50%)`, `linear-gradient(0deg, ${props.theme.getColor('white')} calc(50% + 1px), transparent 50%)`), props => !props.$inputIsEmpty && styled.css(_t29 || (_t29 = _`
|
|
324
394
|
${0}
|
|
325
|
-
`), activeLabel), props => props
|
|
395
|
+
`), activeLabel), props => props.$hasPlaceholder && styled.css(_t30 || (_t30 = _`
|
|
326
396
|
${0};
|
|
327
|
-
`), activeLabel), props => props
|
|
397
|
+
`), activeLabel), props => props.$hasIcon && styled.css(_t31 || (_t31 = _`
|
|
328
398
|
left: 55px;
|
|
329
399
|
`)));
|
|
330
|
-
const TextInputFieldIcon = styled__default["default"].div.
|
|
400
|
+
const TextInputFieldIcon = styled__default["default"].div.withConfig({
|
|
401
|
+
shouldForwardProp
|
|
402
|
+
}).attrs(defaultTheme.applyDefaultTheme)(_t32 || (_t32 = _`
|
|
331
403
|
position: absolute;
|
|
332
404
|
top: 0;
|
|
333
405
|
left: 0;
|
|
@@ -341,7 +413,9 @@ const TextInputFieldIcon = styled__default["default"].div.attrs(defaultTheme.app
|
|
|
341
413
|
transition: opacity 250ms;
|
|
342
414
|
}
|
|
343
415
|
`));
|
|
344
|
-
const TextInputFieldIconAlert = styled__default["default"].div.
|
|
416
|
+
const TextInputFieldIconAlert = styled__default["default"].div.withConfig({
|
|
417
|
+
shouldForwardProp
|
|
418
|
+
}).attrs(defaultTheme.applyDefaultTheme)(_t33 || (_t33 = _`
|
|
345
419
|
position: absolute;
|
|
346
420
|
top: 2.8px;
|
|
347
421
|
display: flex;
|
|
@@ -354,16 +428,14 @@ const TextInputFieldIconAlert = styled__default["default"].div.attrs(defaultThem
|
|
|
354
428
|
width: 15px;
|
|
355
429
|
}
|
|
356
430
|
`), props => props.type === 'warning' && props.theme.themeProp('color', '#EAB308', '#2F2402'));
|
|
357
|
-
const TextInput = styled__default["default"].div.
|
|
431
|
+
const TextInput = styled__default["default"].div.withConfig({
|
|
432
|
+
shouldForwardProp
|
|
433
|
+
}).attrs(defaultTheme.applyDefaultTheme)(_t34 || (_t34 = _`
|
|
358
434
|
position: relative;
|
|
359
435
|
flex-basis: ${0};
|
|
360
436
|
|
|
361
437
|
${0}
|
|
362
438
|
|
|
363
|
-
${0}
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
439
|
&:focus-within {
|
|
368
440
|
${0} {
|
|
369
441
|
${0};
|
|
@@ -380,17 +452,16 @@ const TextInput = styled__default["default"].div.attrs(defaultTheme.applyDefault
|
|
|
380
452
|
${0};
|
|
381
453
|
${0}
|
|
382
454
|
}
|
|
383
|
-
|
|
384
|
-
`), props => props.$fieldLabel ? '66.66%' : '100%', props => props.readOnly && styled.css(_t38 || (_t38 = _`
|
|
385
|
-
overflow: auto;
|
|
386
|
-
`)), props => props.disabled && styled.css(_t39 || (_t39 = _`
|
|
455
|
+
`), props => props.$fieldLabel ? '66.66%' : '100%', props => props.disabled && styled.css(_t35 || (_t35 = _`
|
|
387
456
|
opacity: 0.5;
|
|
388
457
|
|
|
389
458
|
> * {
|
|
390
459
|
cursor: not-allowed;
|
|
391
460
|
}
|
|
392
461
|
`)), TextInputLabel, activeLabel, TextInputFieldIcon, TextInputField, TextInputLabel, activeLabel, props => props.type === 'error' && props.theme.themeProp('color', props.theme.getColor('red-200'), props.theme.getColor('red-500')));
|
|
393
|
-
const Description = styled__default["default"].div.
|
|
462
|
+
const Description = styled__default["default"].div.withConfig({
|
|
463
|
+
shouldForwardProp
|
|
464
|
+
}).attrs(defaultTheme.applyDefaultTheme)(_t36 || (_t36 = _`
|
|
394
465
|
margin: 8px 0 0 0;
|
|
395
466
|
padding: 0 0.6875rem;
|
|
396
467
|
font-size: 0.75rem;
|
|
@@ -401,12 +472,14 @@ const Description = styled__default["default"].div.attrs(defaultTheme.applyDefau
|
|
|
401
472
|
${0}
|
|
402
473
|
|
|
403
474
|
${0}
|
|
404
|
-
`), props => props.theme.themeProp('color', props.theme.getColor('gray-400'), props.theme.getColor('gray-500')), props => (props.type === 'warning-border' || props.type === 'warning') && styled.css(
|
|
475
|
+
`), props => props.theme.themeProp('color', props.theme.getColor('gray-400'), props.theme.getColor('gray-500')), props => (props.type === 'warning-border' || props.type === 'warning') && styled.css(_t37 || (_t37 = _`
|
|
405
476
|
${0}
|
|
406
|
-
`), props.theme.themeProp('color', props.theme.getColor('red-200'), props.theme.getColor('orange-500'))), props => (props.type === 'error-border' || props.type === 'error') && styled.css(
|
|
477
|
+
`), props.theme.themeProp('color', props.theme.getColor('red-200'), props.theme.getColor('orange-500'))), props => (props.type === 'error-border' || props.type === 'error') && styled.css(_t38 || (_t38 = _`
|
|
407
478
|
${0}
|
|
408
479
|
`), props.theme.themeProp('color', props.theme.getColor('red-200'), props.theme.getColor('red-500'))));
|
|
409
|
-
const SuccessContainer = styled__default["default"].div.
|
|
480
|
+
const SuccessContainer = styled__default["default"].div.withConfig({
|
|
481
|
+
shouldForwardProp
|
|
482
|
+
}).attrs(defaultTheme.applyDefaultTheme)(_t39 || (_t39 = _`
|
|
410
483
|
opacity: 1;
|
|
411
484
|
pointer-events: none;
|
|
412
485
|
opacity: ${0};
|
|
@@ -423,8 +496,10 @@ const SuccessContainer = styled__default["default"].div.attrs(defaultTheme.apply
|
|
|
423
496
|
> svg {
|
|
424
497
|
width: 15px;
|
|
425
498
|
}
|
|
426
|
-
`), props => props
|
|
427
|
-
const SuccessContainerLabel = styled__default["default"].div.
|
|
499
|
+
`), props => props.$fadeIn ? 0 : 1, props => props.$fadeIn ? fadeOutCheck : fadeInCheck, props => props.theme.themeProp('color', props.theme.getColor('gray-300'), props.theme.getColor('gray-500')));
|
|
500
|
+
const SuccessContainerLabel = styled__default["default"].div.withConfig({
|
|
501
|
+
shouldForwardProp
|
|
502
|
+
}).attrs(defaultTheme.applyDefaultTheme)(_t40 || (_t40 = _`
|
|
428
503
|
opacity: 1;
|
|
429
504
|
pointer-events: none;
|
|
430
505
|
opacity: ${0};
|
|
@@ -440,7 +515,7 @@ const SuccessContainerLabel = styled__default["default"].div.attrs(defaultTheme.
|
|
|
440
515
|
> svg {
|
|
441
516
|
width: 13px;
|
|
442
517
|
}
|
|
443
|
-
`), props => props
|
|
518
|
+
`), props => props.$fadeIn ? 0 : 1, props => props.$fadeIn ? fadeOutCheck : fadeInCheck, props => props.theme.themeProp('color', props.theme.getColor('gray-300'), props.theme.getColor('gray-500')));
|
|
444
519
|
|
|
445
520
|
exports.Description = Description;
|
|
446
521
|
exports.InputIconContainer = InputIconContainer;
|
|
@@ -6,7 +6,7 @@ var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHel
|
|
|
6
6
|
var index = require('../../../node_modules/react/index.js');
|
|
7
7
|
var nanoid = require('nanoid');
|
|
8
8
|
var index$2 = require('../../../node_modules/prop-types/index.js');
|
|
9
|
-
var useMergedRefs = require('../../../node_modules/@restart/hooks/
|
|
9
|
+
var useMergedRefs = require('../../../node_modules/@restart/hooks/lib/useMergedRefs.js');
|
|
10
10
|
var lodash = require('lodash');
|
|
11
11
|
var editNote = require('../../../icons/edit-note.svg.js');
|
|
12
12
|
var TextInput_styled = require('./TextInput.styled.js');
|
|
@@ -65,16 +65,16 @@ const TextInput = index["default"].forwardRef(function TextInput(_ref, forwarded
|
|
|
65
65
|
return null;
|
|
66
66
|
}, [description, error, warning]);
|
|
67
67
|
return index["default"].createElement(TextInput_styled.TextInput, {
|
|
68
|
-
error: hasError,
|
|
68
|
+
$error: hasError,
|
|
69
69
|
disabled: disabled,
|
|
70
|
-
warning: hasWarning,
|
|
70
|
+
$warning: hasWarning,
|
|
71
71
|
className: className,
|
|
72
72
|
style: style
|
|
73
73
|
}, typeof icon !== 'undefined' && index["default"].createElement(TextInput_styled.TextInputFieldIcon, null, icon), index["default"].createElement(TextInput_styled.TextInputWrapper, null, typeof (adornments === null || adornments === void 0 ? void 0 : adornments.prefix) === 'string' && adornments.prefix.length > 0 && index["default"].createElement(TextInput_styled.Adornment, {
|
|
74
74
|
htmlFor: `text-input-${uniqueId}`,
|
|
75
|
-
error: hasError,
|
|
76
|
-
warning: hasWarning,
|
|
77
|
-
isPrefix: true,
|
|
75
|
+
$error: hasError,
|
|
76
|
+
$warning: hasWarning,
|
|
77
|
+
$isPrefix: true,
|
|
78
78
|
onClick: () => textInputDomNode.current.focus()
|
|
79
79
|
}, adornments.prefix), index["default"].createElement(TextInput_styled.TextInputField, _rollupPluginBabelHelpers["extends"]({
|
|
80
80
|
ref: textInputRef,
|
|
@@ -85,32 +85,31 @@ const TextInput = index["default"].forwardRef(function TextInput(_ref, forwarded
|
|
|
85
85
|
type: type,
|
|
86
86
|
required: required,
|
|
87
87
|
autoComplete: autoComplete,
|
|
88
|
-
hasIcon: Boolean(icon),
|
|
89
|
-
error: hasError,
|
|
90
|
-
warning: hasWarning,
|
|
88
|
+
$hasIcon: Boolean(icon),
|
|
89
|
+
$error: hasError,
|
|
90
|
+
$warning: hasWarning,
|
|
91
91
|
id: `text-input-${uniqueId}`,
|
|
92
92
|
onChange: onChange,
|
|
93
93
|
onBlur: onBlur,
|
|
94
94
|
readOnly: readOnly,
|
|
95
|
-
noBorder: noBorder
|
|
95
|
+
$noBorder: noBorder
|
|
96
96
|
}, rest)), !readOnly && noBorder && index["default"].createElement(TextInput_styled.InputIconContainer, {
|
|
97
|
-
error:
|
|
98
|
-
warning:
|
|
97
|
+
$error: hasError,
|
|
98
|
+
$warning: hasWarning
|
|
99
99
|
}, index["default"].createElement(editNote.ReactComponent, null)), label && index["default"].createElement(TextInput_styled.TextInputLabel, {
|
|
100
100
|
htmlFor: `text-input-${uniqueId}`,
|
|
101
|
-
hasPlaceholder: Boolean(placeholder),
|
|
102
|
-
hasAdornments: Boolean(typeof (adornments === null || adornments === void 0 ? void 0 : adornments.prefix) === 'string' && adornments.prefix.length > 0 || typeof (adornments === null || adornments === void 0 ? void 0 : adornments.suffix) === 'string' && adornments.suffix.length > 0),
|
|
103
|
-
hasIcon: Boolean(icon),
|
|
104
|
-
error: hasError
|
|
105
|
-
warning: hasWarning
|
|
101
|
+
$hasPlaceholder: Boolean(placeholder),
|
|
102
|
+
$hasAdornments: Boolean(typeof (adornments === null || adornments === void 0 ? void 0 : adornments.prefix) === 'string' && adornments.prefix.length > 0 || typeof (adornments === null || adornments === void 0 ? void 0 : adornments.suffix) === 'string' && adornments.suffix.length > 0),
|
|
103
|
+
$hasIcon: Boolean(icon),
|
|
104
|
+
$error: hasError
|
|
106
105
|
}, label, required && ' *'), typeof (adornments === null || adornments === void 0 ? void 0 : adornments.suffix) === 'string' && adornments.suffix.length > 0 && index["default"].createElement(TextInput_styled.Adornment, {
|
|
107
|
-
error: hasError,
|
|
108
|
-
warning: hasWarning,
|
|
109
|
-
isPrefix: false,
|
|
106
|
+
$error: hasError,
|
|
107
|
+
$warning: hasWarning,
|
|
108
|
+
$isPrefix: false,
|
|
110
109
|
onClick: () => textInputDomNode.current.focus()
|
|
111
110
|
}, adornments.suffix)), typeof descriptionText === 'string' && descriptionText.length > 0 && index["default"].createElement(TextInput_styled.Description, {
|
|
112
|
-
error: hasError,
|
|
113
|
-
warning: hasWarning
|
|
111
|
+
$error: hasError,
|
|
112
|
+
$warning: hasWarning
|
|
114
113
|
}, descriptionText));
|
|
115
114
|
});
|
|
116
115
|
TextInput.defaultProps = {
|