@elliemae/ds-form 2.0.2 → 2.1.0-rc.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.
- package/cjs/Checkbox/DSCheckbox.js +2 -2
- package/cjs/MenuItem/components/Section/styled.js +2 -2
- package/cjs/MenuItem/components/Separator/styled.js +2 -2
- package/cjs/MenuItem/components/SubmenuItem/index.js +1 -1
- package/cjs/MenuItem/components/styled.js +4 -9
- package/cjs/Radio/DSRadio.js +9 -4
- package/esm/Checkbox/DSCheckbox.js +2 -2
- package/esm/MenuItem/components/Section/styled.js +2 -2
- package/esm/MenuItem/components/Separator/styled.js +2 -2
- package/esm/MenuItem/components/SubmenuItem/index.js +1 -1
- package/esm/MenuItem/components/styled.js +5 -9
- package/esm/Radio/DSRadio.js +9 -4
- package/package.json +23 -23
- package/types/Checkbox/DSCheckbox.d.ts +36 -47
- package/types/Checkbox/props.d.ts +14 -14
- package/types/CheckboxGroup/DSCheckboxGroup.d.ts +12 -12
- package/types/CheckboxGroup/props.d.ts +12 -12
- package/types/ComboBox/v3/ComboBox.d.ts +2 -2
- package/types/ComboBox/v3/propTypes.d.ts +2 -2
- package/types/DateInput/DSDateInput.d.ts +32 -32
- package/types/DateInput/props.d.ts +64 -32
- package/types/DateInputV2/components/DSDateInput.d.ts +20 -20
- package/types/DateInputV2/components/props.d.ts +20 -20
- package/types/FloatingLabelInput/DSFloatingLabelInput.d.ts +38 -38
- package/types/FormItem/DSFormItemLayout.d.ts +112 -112
- package/types/FormItem/Error/DSError.d.ts +4 -4
- package/types/FormItem/defaultProps.d.ts +38 -38
- package/types/FormItem/props.d.ts +74 -74
- package/types/InputGroup/DSInputGroup.d.ts +14 -14
- package/types/InputGroup/props.d.ts +14 -14
- package/types/InputMask/DSInputMask.d.ts +54 -54
- package/types/InputMask/props.d.ts +54 -54
- package/types/InputProtected/DSInputProtected.d.ts +12 -12
- package/types/InputProtected/props.d.ts +12 -12
- package/types/LargeInputText/DSLargeInputText.d.ts +54 -54
- package/types/LargeInputText/props.d.ts +54 -54
- package/types/MenuItem/components/SubmenuItem/styled.d.ts +1 -1
- package/types/MenuItem/components/styled.d.ts +5 -3
- package/types/MenuItem/props.d.ts +3 -3
- package/types/Radio/DSRadio.d.ts +56 -46
- package/types/RadioGroup/DSRadioGroup.d.ts +12 -12
- package/types/RadioGroup/props.d.ts +12 -12
- package/types/SearchBox/DSSearchBox.d.ts +40 -40
- package/types/SearchBox/NavSearchBox.d.ts +24 -7
- package/types/SearchBox/SButton.d.ts +4 -4
- package/types/SearchBox/props.d.ts +44 -44
- package/types/TextBox/DSTextBox.d.ts +38 -38
- package/types/TimeInput/DSTimeInput.d.ts +22 -22
- package/types/Toggle/DSToggle.d.ts +22 -22
|
@@ -15,10 +15,10 @@ var reactDesc = require('react-desc');
|
|
|
15
15
|
var uid = require('uid');
|
|
16
16
|
var dsClassnames = require('@elliemae/ds-classnames');
|
|
17
17
|
var dsUtilities = require('@elliemae/ds-utilities');
|
|
18
|
+
var propTypes = require('@elliemae/ds-shared/prop-types');
|
|
18
19
|
var CheckMark = require('./elements/CheckMark.js');
|
|
19
20
|
var defaultProps = require('./defaultProps.js');
|
|
20
21
|
var props = require('./props.js');
|
|
21
|
-
var propTypes = require('@elliemae/ds-shared/prop-types');
|
|
22
22
|
var jsxRuntime = require('react/jsx-runtime');
|
|
23
23
|
|
|
24
24
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -93,7 +93,7 @@ function Checkbox(_ref) {
|
|
|
93
93
|
id: "".concat(instanceUID, "-").concat(labelText),
|
|
94
94
|
onClick: handleClick,
|
|
95
95
|
ref: checkRef,
|
|
96
|
-
checked: checked,
|
|
96
|
+
checked: !!checked,
|
|
97
97
|
disabled: disabled,
|
|
98
98
|
name: name,
|
|
99
99
|
readOnly: readOnly,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var styled = require('styled-components');
|
|
6
|
-
var
|
|
6
|
+
var styledComponents = require('@xstyled/styled-components');
|
|
7
7
|
|
|
8
8
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
9
|
|
|
@@ -14,7 +14,7 @@ const StyledGroupLabel = /*#__PURE__*/styled__default["default"].span.withConfig
|
|
|
14
14
|
})(["font-family:12px;color:", ";"], props => props.theme.colors.neutral[500]);
|
|
15
15
|
const StyledSectionWrapper = /*#__PURE__*/styled__default["default"].li.withConfig({
|
|
16
16
|
componentId: "sc-6xya9j-1"
|
|
17
|
-
})(["", " ", " list-style:none;padding:0px 16px;height:24px;display:flex;align-items:center;"],
|
|
17
|
+
})(["", " ", " ", " list-style:none;padding:0px 16px;height:24px;display:flex;align-items:center;"], styledComponents.position, styledComponents.layout, styledComponents.sizing);
|
|
18
18
|
|
|
19
19
|
exports.StyledGroupLabel = StyledGroupLabel;
|
|
20
20
|
exports.StyledSectionWrapper = StyledSectionWrapper;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var styled = require('styled-components');
|
|
6
|
-
var
|
|
6
|
+
var styledComponents = require('@xstyled/styled-components');
|
|
7
7
|
|
|
8
8
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
9
|
|
|
@@ -14,7 +14,7 @@ const StyledSeparator = /*#__PURE__*/styled__default["default"].hr.withConfig({
|
|
|
14
14
|
})(["border:0;border-top:1px solid #697489;margin:4px 0px;padding:0;"]);
|
|
15
15
|
const StyledSeparatorWrapper = /*#__PURE__*/styled__default["default"].li.withConfig({
|
|
16
16
|
componentId: "sc-1xat2d9-1"
|
|
17
|
-
})(["list-style:none;padding:0px 16px;", " ", ""],
|
|
17
|
+
})(["list-style:none;padding:0px 16px;", " ", " ", ""], styledComponents.position, styledComponents.layout, styledComponents.sizing);
|
|
18
18
|
|
|
19
19
|
exports.StyledSeparator = StyledSeparator;
|
|
20
20
|
exports.StyledSeparatorWrapper = StyledSeparatorWrapper;
|
|
@@ -101,7 +101,7 @@ const SubmenuItem = props$1 => {
|
|
|
101
101
|
onClickOutside: onClickOutside,
|
|
102
102
|
customOffset: [0, 1],
|
|
103
103
|
wrapperStyles: _objectSpread(_objectSpread({}, wrapperStyles), {}, {
|
|
104
|
-
|
|
104
|
+
w: '100%'
|
|
105
105
|
}),
|
|
106
106
|
minWidth: minWidth,
|
|
107
107
|
maxHeight: maxHeight
|
|
@@ -2,24 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var _taggedTemplateLiteral = require('@babel/runtime/helpers/taggedTemplateLiteral');
|
|
6
5
|
var styled = require('styled-components');
|
|
7
|
-
var
|
|
8
|
-
var styledSystem = require('styled-system');
|
|
6
|
+
var styledComponents = require('@xstyled/styled-components');
|
|
9
7
|
|
|
10
8
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
9
|
|
|
12
|
-
var _taggedTemplateLiteral__default = /*#__PURE__*/_interopDefaultLegacy(_taggedTemplateLiteral);
|
|
13
10
|
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
14
11
|
|
|
15
|
-
var _templateObject, _templateObject2;
|
|
16
|
-
|
|
17
12
|
const borderOutside = function (color) {
|
|
18
13
|
let width = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
19
|
-
return
|
|
14
|
+
return styled.css([":after{display:block;content:' ';position:absolute;top:0;left:0;right:0;bottom:0;border:", "px solid ", ";pointer-events:none;z-index:7;}"], width, color);
|
|
20
15
|
};
|
|
21
16
|
|
|
22
|
-
const disabledOption = () =>
|
|
17
|
+
const disabledOption = () => styled.css(["cursor:not-allowed;*{cursor:not-allowed;}"]);
|
|
23
18
|
|
|
24
19
|
const activeBorderCss = props => borderOutside(props.theme.colors.brand[500]);
|
|
25
20
|
|
|
@@ -27,7 +22,7 @@ const focusBorderCss = props => borderOutside(props.theme.colors.brand[700], 2);
|
|
|
27
22
|
|
|
28
23
|
const StyledGlobalMenuItemWrapper = /*#__PURE__*/styled__default["default"].li.withConfig({
|
|
29
24
|
componentId: "sc-jyoobd-0"
|
|
30
|
-
})(["cursor:pointer;height:32px;padding-left:16px;padding-right:16px;display:grid;align-items:center;list-style:none;position:relative;", " ", " ", ";background-color:", ";&:hover{background-color:", ";}"],
|
|
25
|
+
})(["cursor:pointer;height:32px;padding-left:16px;padding-right:16px;display:grid;align-items:center;list-style:none;position:relative;", " ", " ", " ", " ", ";background-color:", ";&:hover{background-color:", ";}"], styledComponents.position, styledComponents.layout, styledComponents.sizing, styledComponents.space, props => {
|
|
31
26
|
if (props.disabled) return disabledOption();
|
|
32
27
|
if (props.isFocus) return focusBorderCss(props);
|
|
33
28
|
if (props.isActive) return activeBorderCss(props);
|
package/cjs/Radio/DSRadio.js
CHANGED
|
@@ -47,6 +47,8 @@ const DSRadio = _ref => {
|
|
|
47
47
|
} = _ref,
|
|
48
48
|
otherProps = _objectWithoutProperties__default["default"](_ref, _excluded);
|
|
49
49
|
|
|
50
|
+
// this will be solved when we move to styled components...
|
|
51
|
+
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
50
52
|
const {
|
|
51
53
|
cssClassName,
|
|
52
54
|
classNameElement
|
|
@@ -83,6 +85,9 @@ const DSRadio = _ref => {
|
|
|
83
85
|
"aria-disabled": disabled,
|
|
84
86
|
className: classNameElement('input-button'),
|
|
85
87
|
onKeyDown: e => {
|
|
88
|
+
// really really bad pattern...
|
|
89
|
+
// overwriting the target to point to the hidden input because the focus is on the span and not on the input...
|
|
90
|
+
// we will solve this with a v2 of this when we move to controlled + styled components...
|
|
86
91
|
e.target = checkRef.current;
|
|
87
92
|
if (disabled) return;
|
|
88
93
|
|
|
@@ -94,8 +99,8 @@ const DSRadio = _ref => {
|
|
|
94
99
|
},
|
|
95
100
|
role: "radio",
|
|
96
101
|
style: style,
|
|
97
|
-
tabIndex: disabled ? -1 : tabIndex
|
|
98
|
-
|
|
102
|
+
tabIndex: disabled ? -1 : tabIndex // value={value} // should be unused?
|
|
103
|
+
,
|
|
99
104
|
children: /*#__PURE__*/_jsx__default["default"](Circle, {
|
|
100
105
|
checked: checked
|
|
101
106
|
})
|
|
@@ -160,7 +165,7 @@ const radioProps = {
|
|
|
160
165
|
/**
|
|
161
166
|
* Value that takes the checkbox if it is checked
|
|
162
167
|
*/
|
|
163
|
-
value: reactDesc.PropTypes.oneOfType([reactDesc.PropTypes.string, reactDesc.PropTypes.number, reactDesc.PropTypes.object]).
|
|
168
|
+
value: reactDesc.PropTypes.oneOfType([reactDesc.PropTypes.string, reactDesc.PropTypes.number, reactDesc.PropTypes.object]).description('Value that takes the checkbox if it is checked').isRequired,
|
|
164
169
|
|
|
165
170
|
/**
|
|
166
171
|
* Allows a function that is triggered once the radio changes
|
|
@@ -178,7 +183,7 @@ const radioProps = {
|
|
|
178
183
|
/** style override object */
|
|
179
184
|
style: reactDesc.PropTypes.number.description('style override object')
|
|
180
185
|
};
|
|
181
|
-
const DSRadioWithSchema = reactDesc.describe(DSRadio)
|
|
186
|
+
const DSRadioWithSchema = reactDesc.describe(DSRadio);
|
|
182
187
|
DSRadioWithSchema.propTypes = radioProps;
|
|
183
188
|
|
|
184
189
|
exports.DSRadioWithSchema = DSRadioWithSchema;
|
|
@@ -11,10 +11,10 @@ import { describe } from 'react-desc';
|
|
|
11
11
|
import { uid } from 'uid';
|
|
12
12
|
import { convertPropToCssClassName } from '@elliemae/ds-classnames';
|
|
13
13
|
import { cx } from '@elliemae/ds-utilities';
|
|
14
|
+
export { CHECKBOX_VARIANT } from '@elliemae/ds-shared/prop-types';
|
|
14
15
|
import CheckMark from './elements/CheckMark.js';
|
|
15
16
|
import { defaultProps } from './defaultProps.js';
|
|
16
17
|
import { checkboxProps } from './props.js';
|
|
17
|
-
export { CHECKBOX_VARIANT } from '@elliemae/ds-shared/prop-types';
|
|
18
18
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
19
19
|
|
|
20
20
|
const _excluded = ["className", "onChange", "checked", "innerRef", "onKeyDown", "readOnly", "value", "disabled", "style", "variant", "tabIndex", "name", "onMouseEnter", "onMouseLeave", "instanceUID", "labelText"],
|
|
@@ -83,7 +83,7 @@ function Checkbox(_ref) {
|
|
|
83
83
|
id: "".concat(instanceUID, "-").concat(labelText),
|
|
84
84
|
onClick: handleClick,
|
|
85
85
|
ref: checkRef,
|
|
86
|
-
checked: checked,
|
|
86
|
+
checked: !!checked,
|
|
87
87
|
disabled: disabled,
|
|
88
88
|
name: name,
|
|
89
89
|
readOnly: readOnly,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
|
-
import { position, layout } from 'styled-
|
|
2
|
+
import { position, layout, sizing } from '@xstyled/styled-components';
|
|
3
3
|
|
|
4
4
|
const StyledGroupLabel = /*#__PURE__*/styled.span.withConfig({
|
|
5
5
|
componentId: "sc-6xya9j-0"
|
|
6
6
|
})(["font-family:12px;color:", ";"], props => props.theme.colors.neutral[500]);
|
|
7
7
|
const StyledSectionWrapper = /*#__PURE__*/styled.li.withConfig({
|
|
8
8
|
componentId: "sc-6xya9j-1"
|
|
9
|
-
})(["", " ", " list-style:none;padding:0px 16px;height:24px;display:flex;align-items:center;"], position, layout);
|
|
9
|
+
})(["", " ", " ", " list-style:none;padding:0px 16px;height:24px;display:flex;align-items:center;"], position, layout, sizing);
|
|
10
10
|
|
|
11
11
|
export { StyledGroupLabel, StyledSectionWrapper };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
|
-
import { position, layout } from 'styled-
|
|
2
|
+
import { position, layout, sizing } from '@xstyled/styled-components';
|
|
3
3
|
|
|
4
4
|
const StyledSeparator = /*#__PURE__*/styled.hr.withConfig({
|
|
5
5
|
componentId: "sc-1xat2d9-0"
|
|
6
6
|
})(["border:0;border-top:1px solid #697489;margin:4px 0px;padding:0;"]);
|
|
7
7
|
const StyledSeparatorWrapper = /*#__PURE__*/styled.li.withConfig({
|
|
8
8
|
componentId: "sc-1xat2d9-1"
|
|
9
|
-
})(["list-style:none;padding:0px 16px;", " ", ""], position, layout);
|
|
9
|
+
})(["list-style:none;padding:0px 16px;", " ", " ", ""], position, layout, sizing);
|
|
10
10
|
|
|
11
11
|
export { StyledSeparator, StyledSeparatorWrapper };
|
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { css } from '@elliemae/ds-system';
|
|
4
|
-
import { position, layout } from 'styled-system';
|
|
5
|
-
|
|
6
|
-
var _templateObject, _templateObject2;
|
|
1
|
+
import styled, { css } from 'styled-components';
|
|
2
|
+
import { position, layout, sizing, space } from '@xstyled/styled-components';
|
|
7
3
|
|
|
8
4
|
const borderOutside = function (color) {
|
|
9
5
|
let width = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
10
|
-
return css(
|
|
6
|
+
return css([":after{display:block;content:' ';position:absolute;top:0;left:0;right:0;bottom:0;border:", "px solid ", ";pointer-events:none;z-index:7;}"], width, color);
|
|
11
7
|
};
|
|
12
8
|
|
|
13
|
-
const disabledOption = () => css(
|
|
9
|
+
const disabledOption = () => css(["cursor:not-allowed;*{cursor:not-allowed;}"]);
|
|
14
10
|
|
|
15
11
|
const activeBorderCss = props => borderOutside(props.theme.colors.brand[500]);
|
|
16
12
|
|
|
@@ -18,7 +14,7 @@ const focusBorderCss = props => borderOutside(props.theme.colors.brand[700], 2);
|
|
|
18
14
|
|
|
19
15
|
const StyledGlobalMenuItemWrapper = /*#__PURE__*/styled.li.withConfig({
|
|
20
16
|
componentId: "sc-jyoobd-0"
|
|
21
|
-
})(["cursor:pointer;height:32px;padding-left:16px;padding-right:16px;display:grid;align-items:center;list-style:none;position:relative;", " ", " ", ";background-color:", ";&:hover{background-color:", ";}"], position, layout, props => {
|
|
17
|
+
})(["cursor:pointer;height:32px;padding-left:16px;padding-right:16px;display:grid;align-items:center;list-style:none;position:relative;", " ", " ", " ", " ", ";background-color:", ";&:hover{background-color:", ";}"], position, layout, sizing, space, props => {
|
|
22
18
|
if (props.disabled) return disabledOption();
|
|
23
19
|
if (props.isFocus) return focusBorderCss(props);
|
|
24
20
|
if (props.isActive) return activeBorderCss(props);
|
package/esm/Radio/DSRadio.js
CHANGED
|
@@ -37,6 +37,8 @@ const DSRadio = _ref => {
|
|
|
37
37
|
} = _ref,
|
|
38
38
|
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
39
39
|
|
|
40
|
+
// this will be solved when we move to styled components...
|
|
41
|
+
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
40
42
|
const {
|
|
41
43
|
cssClassName,
|
|
42
44
|
classNameElement
|
|
@@ -73,6 +75,9 @@ const DSRadio = _ref => {
|
|
|
73
75
|
"aria-disabled": disabled,
|
|
74
76
|
className: classNameElement('input-button'),
|
|
75
77
|
onKeyDown: e => {
|
|
78
|
+
// really really bad pattern...
|
|
79
|
+
// overwriting the target to point to the hidden input because the focus is on the span and not on the input...
|
|
80
|
+
// we will solve this with a v2 of this when we move to controlled + styled components...
|
|
76
81
|
e.target = checkRef.current;
|
|
77
82
|
if (disabled) return;
|
|
78
83
|
|
|
@@ -84,8 +89,8 @@ const DSRadio = _ref => {
|
|
|
84
89
|
},
|
|
85
90
|
role: "radio",
|
|
86
91
|
style: style,
|
|
87
|
-
tabIndex: disabled ? -1 : tabIndex
|
|
88
|
-
|
|
92
|
+
tabIndex: disabled ? -1 : tabIndex // value={value} // should be unused?
|
|
93
|
+
,
|
|
89
94
|
children: /*#__PURE__*/_jsx(Circle, {
|
|
90
95
|
checked: checked
|
|
91
96
|
})
|
|
@@ -150,7 +155,7 @@ const radioProps = {
|
|
|
150
155
|
/**
|
|
151
156
|
* Value that takes the checkbox if it is checked
|
|
152
157
|
*/
|
|
153
|
-
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.object]).
|
|
158
|
+
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.object]).description('Value that takes the checkbox if it is checked').isRequired,
|
|
154
159
|
|
|
155
160
|
/**
|
|
156
161
|
* Allows a function that is triggered once the radio changes
|
|
@@ -168,7 +173,7 @@ const radioProps = {
|
|
|
168
173
|
/** style override object */
|
|
169
174
|
style: PropTypes.number.description('style override object')
|
|
170
175
|
};
|
|
171
|
-
const DSRadioWithSchema = describe(DSRadio)
|
|
176
|
+
const DSRadioWithSchema = describe(DSRadio);
|
|
172
177
|
DSRadioWithSchema.propTypes = radioProps;
|
|
173
178
|
|
|
174
179
|
export { DSRadioWithSchema, DSRadio as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-form",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.1.0-rc.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Form",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -932,28 +932,28 @@
|
|
|
932
932
|
"build": "node ../../scripts/build/build.js"
|
|
933
933
|
},
|
|
934
934
|
"dependencies": {
|
|
935
|
-
"@elliemae/ds-button": "2.0.
|
|
936
|
-
"@elliemae/ds-circular-progress-indicator": "2.0.
|
|
937
|
-
"@elliemae/ds-classnames": "2.0.
|
|
938
|
-
"@elliemae/ds-controlled-form": "2.0.
|
|
939
|
-
"@elliemae/ds-dropdownmenu": "2.0.
|
|
940
|
-
"@elliemae/ds-form": "2.0.
|
|
941
|
-
"@elliemae/ds-grid": "2.0.
|
|
942
|
-
"@elliemae/ds-icon": "2.0.
|
|
943
|
-
"@elliemae/ds-icons": "2.0.
|
|
944
|
-
"@elliemae/ds-menu": "2.0.
|
|
945
|
-
"@elliemae/ds-overlay": "2.0.
|
|
946
|
-
"@elliemae/ds-pills": "2.0.
|
|
947
|
-
"@elliemae/ds-popper": "2.0.
|
|
948
|
-
"@elliemae/ds-popperjs": "2.0.
|
|
949
|
-
"@elliemae/ds-props-helpers": "2.0.
|
|
950
|
-
"@elliemae/ds-separator": "2.0.
|
|
951
|
-
"@elliemae/ds-shared": "2.0.
|
|
952
|
-
"@elliemae/ds-system": "2.0.
|
|
953
|
-
"@elliemae/ds-text-wrapper": "2.0.
|
|
954
|
-
"@elliemae/ds-tooltip": "2.0.
|
|
955
|
-
"@elliemae/ds-truncated-tooltip-text": "2.0.
|
|
956
|
-
"@elliemae/ds-utilities": "2.0.
|
|
935
|
+
"@elliemae/ds-button": "2.1.0-rc.3",
|
|
936
|
+
"@elliemae/ds-circular-progress-indicator": "2.1.0-rc.3",
|
|
937
|
+
"@elliemae/ds-classnames": "2.1.0-rc.3",
|
|
938
|
+
"@elliemae/ds-controlled-form": "2.1.0-rc.3",
|
|
939
|
+
"@elliemae/ds-dropdownmenu": "2.1.0-rc.3",
|
|
940
|
+
"@elliemae/ds-form": "2.1.0-rc.3",
|
|
941
|
+
"@elliemae/ds-grid": "2.1.0-rc.3",
|
|
942
|
+
"@elliemae/ds-icon": "2.1.0-rc.3",
|
|
943
|
+
"@elliemae/ds-icons": "2.1.0-rc.3",
|
|
944
|
+
"@elliemae/ds-menu": "2.1.0-rc.3",
|
|
945
|
+
"@elliemae/ds-overlay": "2.1.0-rc.3",
|
|
946
|
+
"@elliemae/ds-pills": "2.1.0-rc.3",
|
|
947
|
+
"@elliemae/ds-popper": "2.1.0-rc.3",
|
|
948
|
+
"@elliemae/ds-popperjs": "2.1.0-rc.3",
|
|
949
|
+
"@elliemae/ds-props-helpers": "2.1.0-rc.3",
|
|
950
|
+
"@elliemae/ds-separator": "2.1.0-rc.3",
|
|
951
|
+
"@elliemae/ds-shared": "2.1.0-rc.3",
|
|
952
|
+
"@elliemae/ds-system": "2.1.0-rc.3",
|
|
953
|
+
"@elliemae/ds-text-wrapper": "2.1.0-rc.3",
|
|
954
|
+
"@elliemae/ds-tooltip": "2.1.0-rc.3",
|
|
955
|
+
"@elliemae/ds-truncated-tooltip-text": "2.1.0-rc.3",
|
|
956
|
+
"@elliemae/ds-utilities": "2.1.0-rc.3",
|
|
957
957
|
"memoize-one": "~5.1.1",
|
|
958
958
|
"moment": "~2.29.1",
|
|
959
959
|
"prop-types": "~15.7.2",
|
|
@@ -1,41 +1,45 @@
|
|
|
1
1
|
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
-
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import { CHECKBOX_VARIANT } from '@elliemae/ds-shared/prop-types';
|
|
4
|
+
interface DSCheckboxPropsT {
|
|
5
|
+
[x: string]: unknown;
|
|
6
|
+
labelText?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
htmlFor?: string;
|
|
9
|
+
name?: string;
|
|
10
|
+
value?: string | number;
|
|
11
|
+
hasError?: boolean;
|
|
12
|
+
readOnly?: boolean;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
checked?: boolean | 'mixed';
|
|
15
|
+
onChange?: () => void;
|
|
16
|
+
onMouseEnter?: React.MouseEventHandler<HTMLSpanElement>;
|
|
17
|
+
onMouseLeave?: React.MouseEventHandler<HTMLSpanElement>;
|
|
18
|
+
variant?: typeof CHECKBOX_VARIANT;
|
|
19
|
+
children?: React.ReactNode | React.ReactNode[];
|
|
20
|
+
containerProps?: unknown;
|
|
21
|
+
innerRef?: unknown;
|
|
22
|
+
}
|
|
4
23
|
declare const DSCheckbox: {
|
|
5
|
-
({ labelText, className, htmlFor, hasError, readOnly, disabled, checked, onChange, variant, children, containerProps, innerRef, name, ...otherProps }:
|
|
6
|
-
[x: string]: any;
|
|
7
|
-
labelText?: undefined;
|
|
8
|
-
className?: undefined;
|
|
9
|
-
htmlFor?: undefined;
|
|
10
|
-
hasError: any;
|
|
11
|
-
readOnly: any;
|
|
12
|
-
disabled: any;
|
|
13
|
-
checked: any;
|
|
14
|
-
onChange: any;
|
|
15
|
-
variant: any;
|
|
16
|
-
children: any;
|
|
17
|
-
containerProps: any;
|
|
18
|
-
innerRef: any;
|
|
19
|
-
name: any;
|
|
20
|
-
}): JSX.Element;
|
|
24
|
+
({ labelText, className, htmlFor, hasError, readOnly, disabled, checked, onChange, variant, children, containerProps, innerRef, name, ...otherProps }: DSCheckboxPropsT): JSX.Element;
|
|
21
25
|
propTypes: {
|
|
22
26
|
containerProps: {
|
|
23
|
-
defaultValue
|
|
27
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
24
28
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
25
29
|
};
|
|
26
|
-
isRequired: import("react-desc").
|
|
30
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
27
31
|
};
|
|
28
32
|
labelText: {
|
|
29
|
-
defaultValue
|
|
33
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
30
34
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
31
35
|
};
|
|
32
|
-
isRequired: import("react-desc").
|
|
36
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
33
37
|
};
|
|
34
38
|
htmlFor: {
|
|
35
|
-
defaultValue
|
|
39
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
36
40
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
37
41
|
};
|
|
38
|
-
isRequired: import("react-desc").
|
|
42
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
39
43
|
};
|
|
40
44
|
hasError: {
|
|
41
45
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
@@ -50,31 +54,31 @@ declare const DSCheckbox: {
|
|
|
50
54
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
51
55
|
};
|
|
52
56
|
value: {
|
|
53
|
-
defaultValue
|
|
57
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
54
58
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
55
59
|
};
|
|
56
|
-
isRequired: import("react-desc").
|
|
60
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
57
61
|
};
|
|
58
62
|
variant: {
|
|
59
63
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
60
64
|
};
|
|
61
65
|
children: {
|
|
62
|
-
defaultValue
|
|
66
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
63
67
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
64
68
|
};
|
|
65
|
-
isRequired: import("react-desc").
|
|
69
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
66
70
|
};
|
|
67
71
|
onChange: {
|
|
68
|
-
defaultValue
|
|
72
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
69
73
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
70
74
|
};
|
|
71
|
-
isRequired: import("react-desc").
|
|
75
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
72
76
|
};
|
|
73
77
|
name: {
|
|
74
|
-
defaultValue
|
|
78
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
75
79
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
76
80
|
};
|
|
77
|
-
isRequired: import("react-desc").
|
|
81
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
78
82
|
};
|
|
79
83
|
};
|
|
80
84
|
defaultProps: {
|
|
@@ -90,22 +94,7 @@ declare const DSCheckbox: {
|
|
|
90
94
|
};
|
|
91
95
|
};
|
|
92
96
|
declare const CheckboxWithSchema: {
|
|
93
|
-
(props?:
|
|
94
|
-
[x: string]: any;
|
|
95
|
-
labelText?: undefined;
|
|
96
|
-
className?: undefined;
|
|
97
|
-
htmlFor?: undefined;
|
|
98
|
-
hasError: any;
|
|
99
|
-
readOnly: any;
|
|
100
|
-
disabled: any;
|
|
101
|
-
checked: any;
|
|
102
|
-
onChange: any;
|
|
103
|
-
variant: any;
|
|
104
|
-
children: any;
|
|
105
|
-
containerProps: any;
|
|
106
|
-
innerRef: any;
|
|
107
|
-
name: any;
|
|
108
|
-
} | undefined): JSX.Element;
|
|
97
|
+
(props?: DSCheckboxPropsT | undefined): JSX.Element;
|
|
109
98
|
propTypes: unknown;
|
|
110
99
|
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
111
100
|
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
2
2
|
export declare const checkboxProps: {
|
|
3
3
|
containerProps: {
|
|
4
|
-
defaultValue
|
|
4
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
5
5
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
6
6
|
};
|
|
7
|
-
isRequired: import("react-desc").
|
|
7
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
8
8
|
};
|
|
9
9
|
labelText: {
|
|
10
|
-
defaultValue
|
|
10
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
11
11
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
12
12
|
};
|
|
13
|
-
isRequired: import("react-desc").
|
|
13
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
14
14
|
};
|
|
15
15
|
htmlFor: {
|
|
16
|
-
defaultValue
|
|
16
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
17
17
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
18
18
|
};
|
|
19
|
-
isRequired: import("react-desc").
|
|
19
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
20
20
|
};
|
|
21
21
|
hasError: {
|
|
22
22
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
@@ -31,30 +31,30 @@ export declare const checkboxProps: {
|
|
|
31
31
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
32
32
|
};
|
|
33
33
|
value: {
|
|
34
|
-
defaultValue
|
|
34
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
35
35
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
36
36
|
};
|
|
37
|
-
isRequired: import("react-desc").
|
|
37
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
38
38
|
};
|
|
39
39
|
variant: {
|
|
40
40
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
41
41
|
};
|
|
42
42
|
children: {
|
|
43
|
-
defaultValue
|
|
43
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
44
44
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
45
45
|
};
|
|
46
|
-
isRequired: import("react-desc").
|
|
46
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
47
47
|
};
|
|
48
48
|
onChange: {
|
|
49
|
-
defaultValue
|
|
49
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
50
50
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
51
51
|
};
|
|
52
|
-
isRequired: import("react-desc").
|
|
52
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
53
53
|
};
|
|
54
54
|
name: {
|
|
55
|
-
defaultValue
|
|
55
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
56
56
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
57
57
|
};
|
|
58
|
-
isRequired: import("react-desc").
|
|
58
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
59
59
|
};
|
|
60
60
|
};
|
|
@@ -13,40 +13,40 @@ declare const DSCheckboxGroup: {
|
|
|
13
13
|
}): JSX.Element;
|
|
14
14
|
propTypes: {
|
|
15
15
|
onChange: {
|
|
16
|
-
defaultValue
|
|
16
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
17
17
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
18
18
|
};
|
|
19
|
-
isRequired: import("react-desc").
|
|
19
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
20
20
|
};
|
|
21
21
|
activeValue: {
|
|
22
|
-
defaultValue
|
|
22
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
23
23
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
24
24
|
};
|
|
25
|
-
isRequired: import("react-desc").
|
|
25
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
26
26
|
};
|
|
27
27
|
children: {
|
|
28
|
-
defaultValue
|
|
28
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
29
29
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
30
30
|
};
|
|
31
|
-
isRequired: import("react-desc").
|
|
31
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
32
32
|
};
|
|
33
33
|
disabled: {
|
|
34
|
-
defaultValue
|
|
34
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
35
35
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
36
36
|
};
|
|
37
|
-
isRequired: import("react-desc").
|
|
37
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
38
38
|
};
|
|
39
39
|
orientation: {
|
|
40
|
-
defaultValue
|
|
40
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
41
41
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
42
42
|
};
|
|
43
|
-
isRequired: import("react-desc").
|
|
43
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
44
44
|
};
|
|
45
45
|
labelProps: {
|
|
46
|
-
defaultValue
|
|
46
|
+
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
47
47
|
deprecated: import("react-desc").PropTypesDescValidator;
|
|
48
48
|
};
|
|
49
|
-
isRequired: import("react-desc").
|
|
49
|
+
isRequired: import("react-desc").PropTypesDescValue;
|
|
50
50
|
};
|
|
51
51
|
};
|
|
52
52
|
defaultProps: {
|