@elliemae/ds-form-layout-blocks 1.60.0 → 2.0.0-alpha.12
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/form-layout-block-item/DSFormLayoutBlockItem.js +30 -35
- package/cjs/form-layout-block-item/index.d.js +0 -1
- package/cjs/form-layout-block-item/index.js +3 -10
- package/cjs/form-layout-block-item/propTypes.js +1 -2
- package/cjs/form-layout-block-item/styles.js +55 -34
- package/cjs/form-layout-checkbox-group/DSFormLayoutCheckboxGroup.js +14 -17
- package/cjs/form-layout-checkbox-group/config/useValidateProps.js +6 -9
- package/cjs/form-layout-checkbox-group/defaultProps.js +1 -2
- package/cjs/form-layout-checkbox-group/index.d.js +0 -1
- package/cjs/form-layout-checkbox-group/index.js +3 -13
- package/cjs/form-layout-checkbox-group/propTypes.js +1 -2
- package/cjs/form-layout-checkbox-group/styles.js +26 -15
- package/cjs/index.d.js +0 -1
- package/cjs/index.js +6 -19
- package/esm/form-layout-block-item/DSFormLayoutBlockItem.js +27 -32
- package/esm/form-layout-block-item/index.d.js +0 -1
- package/esm/form-layout-block-item/index.js +0 -7
- package/esm/form-layout-block-item/propTypes.js +1 -2
- package/esm/form-layout-block-item/styles.js +55 -34
- package/esm/form-layout-checkbox-group/DSFormLayoutCheckboxGroup.js +7 -10
- package/esm/form-layout-checkbox-group/config/useValidateProps.js +5 -7
- package/esm/form-layout-checkbox-group/defaultProps.js +1 -2
- package/esm/form-layout-checkbox-group/index.d.js +0 -1
- package/esm/form-layout-checkbox-group/index.js +0 -10
- package/esm/form-layout-checkbox-group/propTypes.js +1 -2
- package/esm/form-layout-checkbox-group/styles.js +26 -15
- package/esm/index.d.js +0 -1
- package/esm/index.js +0 -13
- package/package.json +69 -11
- package/types/form-layout-block-item/DSFormLayoutBlockItem.d.ts +77 -0
- package/types/form-layout-block-item/index.d.d.ts +35 -0
- package/types/form-layout-block-item/index.d.ts +1 -0
- package/types/form-layout-block-item/propTypes.d.ts +66 -0
- package/types/form-layout-block-item/styles.d.ts +6 -0
- package/types/form-layout-checkbox-group/DSFormLayoutCheckboxGroup.d.ts +20 -0
- package/types/form-layout-checkbox-group/config/useValidateProps.d.ts +2 -0
- package/types/form-layout-checkbox-group/defaultProps.d.ts +3 -0
- package/types/form-layout-checkbox-group/index.d.d.ts +10 -0
- package/types/form-layout-checkbox-group/index.d.ts +1 -0
- package/types/form-layout-checkbox-group/propTypes.d.ts +9 -0
- package/types/form-layout-checkbox-group/styles.d.ts +2 -0
- package/types/index.d.ts +2 -0
- package/cjs/form-layout-block-item/DSFormLayoutBlockItem.js.map +0 -1
- package/cjs/form-layout-block-item/index.d.js.map +0 -1
- package/cjs/form-layout-block-item/index.js.map +0 -1
- package/cjs/form-layout-block-item/propTypes.js.map +0 -1
- package/cjs/form-layout-block-item/styles.js.map +0 -1
- package/cjs/form-layout-checkbox-group/DSFormLayoutCheckboxGroup.js.map +0 -1
- package/cjs/form-layout-checkbox-group/config/useValidateProps.js.map +0 -1
- package/cjs/form-layout-checkbox-group/defaultProps.js.map +0 -1
- package/cjs/form-layout-checkbox-group/index.d.js.map +0 -1
- package/cjs/form-layout-checkbox-group/index.js.map +0 -1
- package/cjs/form-layout-checkbox-group/propTypes.js.map +0 -1
- package/cjs/form-layout-checkbox-group/styles.js.map +0 -1
- package/cjs/index.d.js.map +0 -1
- package/cjs/index.js.map +0 -1
- package/esm/form-layout-block-item/DSFormLayoutBlockItem.js.map +0 -1
- package/esm/form-layout-block-item/index.d.js.map +0 -1
- package/esm/form-layout-block-item/index.js.map +0 -1
- package/esm/form-layout-block-item/propTypes.js.map +0 -1
- package/esm/form-layout-block-item/styles.js.map +0 -1
- package/esm/form-layout-checkbox-group/DSFormLayoutCheckboxGroup.js.map +0 -1
- package/esm/form-layout-checkbox-group/config/useValidateProps.js.map +0 -1
- package/esm/form-layout-checkbox-group/defaultProps.js.map +0 -1
- package/esm/form-layout-checkbox-group/index.d.js.map +0 -1
- package/esm/form-layout-checkbox-group/index.js.map +0 -1
- package/esm/form-layout-checkbox-group/propTypes.js.map +0 -1
- package/esm/form-layout-checkbox-group/styles.js.map +0 -1
- package/esm/index.d.js.map +0 -1
- package/esm/index.js.map +0 -1
- package/form-layout-block-item/DSFormLayoutBlockItem/package.json +0 -10
- package/form-layout-block-item/package.json +0 -10
- package/form-layout-block-item/propTypes/package.json +0 -10
- package/form-layout-block-item/styles/package.json +0 -10
- package/form-layout-checkbox-group/DSFormLayoutCheckboxGroup/package.json +0 -10
- package/form-layout-checkbox-group/config/useValidateProps/package.json +0 -10
- package/form-layout-checkbox-group/defaultProps/package.json +0 -10
- package/form-layout-checkbox-group/package.json +0 -10
- package/form-layout-checkbox-group/propTypes/package.json +0 -10
- package/form-layout-checkbox-group/styles/package.json +0 -10
|
@@ -1,59 +1,80 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
const StyledContainer = /*#__PURE__*/styled.div.withConfig({
|
|
4
4
|
componentId: "sc-196zgtg-0"
|
|
5
|
-
})(["position:relative;padding:0;margin:0;display:grid;", " ", ";", " align-items:center;", ""],
|
|
6
|
-
|
|
5
|
+
})(["position:relative;padding:0;margin:0;display:grid;", " ", ";", " align-items:center;", ""], _ref => {
|
|
6
|
+
let {
|
|
7
|
+
fitContent
|
|
8
|
+
} = _ref;
|
|
7
9
|
return fitContent ? 'width: fit-content;' : undefined;
|
|
8
|
-
},
|
|
9
|
-
|
|
10
|
+
}, _ref2 => {
|
|
11
|
+
let {
|
|
12
|
+
isGroup
|
|
13
|
+
} = _ref2;
|
|
10
14
|
return isGroup ? 'border: none' : '';
|
|
11
|
-
},
|
|
12
|
-
|
|
13
|
-
|
|
15
|
+
}, _ref3 => {
|
|
16
|
+
let {
|
|
17
|
+
leftLabel,
|
|
18
|
+
hideLabel
|
|
19
|
+
} = _ref3;
|
|
14
20
|
return leftLabel && !hideLabel ? 'grid-template-columns: max-content auto;' : undefined;
|
|
15
|
-
},
|
|
16
|
-
|
|
17
|
-
|
|
21
|
+
}, _ref4 => {
|
|
22
|
+
let {
|
|
23
|
+
theme,
|
|
24
|
+
withHighlight
|
|
25
|
+
} = _ref4;
|
|
18
26
|
return withHighlight ? "\n &::after {\n position: absolute;\n content: '';\n left: -".concat(theme.space.xxs, ";\n top: -").concat(theme.space.xxxs, ";\n z-index: -1;\n width: calc(100% + ").concat(theme.space.xs, ");\n height: calc(100% + ").concat(theme.space.xxs, ");\n background-color: #FEFBEE;\n border : 1px solid #8F6326;\n border-radius : 4px;\n box-shadow: 0 1px 3px 0 rgba(0,0,0,0.35);\n }\n &:hover, \n &:focus-within {\n &::after {\n position: absolute;\n content: '';\n left: -").concat(theme.space.xxs, ";\n top: -").concat(theme.space.xxxs, ";\n z-index: -1;\n width: calc(100% + ").concat(theme.space.xs, ");\n height: calc(100% + ").concat(theme.space.xxs, ");\n background-color: #FFF9D3;\n border : 1px solid #8F6326;\n border-radius : 4px;\n box-shadow: 0 6px 10px 0 rgba(0,0,0,0.30);\n }\n }\n ") : undefined;
|
|
19
27
|
});
|
|
20
|
-
|
|
28
|
+
const StyledLabel = /*#__PURE__*/styled.label.withConfig({
|
|
21
29
|
componentId: "sc-196zgtg-1"
|
|
22
|
-
})(["display:flex;", " ", ""],
|
|
23
|
-
|
|
24
|
-
|
|
30
|
+
})(["display:flex;", " ", ""], _ref5 => {
|
|
31
|
+
let {
|
|
32
|
+
theme,
|
|
33
|
+
leftLabel
|
|
34
|
+
} = _ref5;
|
|
25
35
|
return leftLabel ? "padding-right: ".concat(theme.space.xxs, ";") : undefined;
|
|
26
|
-
},
|
|
27
|
-
|
|
36
|
+
}, _ref6 => {
|
|
37
|
+
let {
|
|
38
|
+
hideLabel
|
|
39
|
+
} = _ref6;
|
|
28
40
|
return hideLabel ? "position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border: 0;\n " : undefined;
|
|
29
41
|
});
|
|
30
|
-
|
|
42
|
+
const StyledMessage = /*#__PURE__*/styled.div.withConfig({
|
|
31
43
|
componentId: "sc-196zgtg-2"
|
|
32
|
-
})(["font-size:", ";font-style:italic;text-align:right;line-height:15px;height:15px;overflow:hidden;text-overflow:ellipsis;color:", ";", ""],
|
|
33
|
-
|
|
44
|
+
})(["font-size:", ";font-style:italic;text-align:right;line-height:15px;height:15px;overflow:hidden;text-overflow:ellipsis;color:", ";", ""], _ref7 => {
|
|
45
|
+
let {
|
|
46
|
+
theme
|
|
47
|
+
} = _ref7;
|
|
34
48
|
return theme.fontSizes.microText[200];
|
|
35
|
-
},
|
|
36
|
-
|
|
37
|
-
|
|
49
|
+
}, _ref8 => {
|
|
50
|
+
let {
|
|
51
|
+
theme,
|
|
52
|
+
hasError
|
|
53
|
+
} = _ref8;
|
|
38
54
|
return hasError ? theme.colors.danger[900] : theme.colors.neutral[500];
|
|
39
|
-
},
|
|
40
|
-
|
|
41
|
-
|
|
55
|
+
}, _ref9 => {
|
|
56
|
+
let {
|
|
57
|
+
leftLabel,
|
|
58
|
+
hideLabel
|
|
59
|
+
} = _ref9;
|
|
42
60
|
return leftLabel && !hideLabel ? 'grid-column: 1/3;' : undefined;
|
|
43
61
|
});
|
|
44
|
-
|
|
62
|
+
const StyledMark = /*#__PURE__*/styled.span.withConfig({
|
|
45
63
|
componentId: "sc-196zgtg-3"
|
|
46
|
-
})(["width:6px;height:6px;border-radius:50%;margin-left:", ";", ""],
|
|
47
|
-
|
|
64
|
+
})(["width:6px;height:6px;border-radius:50%;margin-left:", ";", ""], _ref10 => {
|
|
65
|
+
let {
|
|
66
|
+
theme
|
|
67
|
+
} = _ref10;
|
|
48
68
|
return theme.space.xxxs;
|
|
49
|
-
},
|
|
50
|
-
|
|
51
|
-
|
|
69
|
+
}, _ref11 => {
|
|
70
|
+
let {
|
|
71
|
+
theme,
|
|
72
|
+
required
|
|
73
|
+
} = _ref11;
|
|
52
74
|
return required ? "\n background-color: ".concat(theme.colors.danger[900], ";\n ") : "\n border: 1px solid ".concat(theme.colors.brand[600], ";\n ");
|
|
53
75
|
});
|
|
54
|
-
|
|
76
|
+
const ScreenReaderOnly = /*#__PURE__*/styled.div.withConfig({
|
|
55
77
|
componentId: "sc-196zgtg-4"
|
|
56
78
|
})(["clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px;"]);
|
|
57
79
|
|
|
58
80
|
export { ScreenReaderOnly, StyledContainer, StyledLabel, StyledMark, StyledMessage };
|
|
59
|
-
//# sourceMappingURL=styles.js.map
|
|
@@ -1,24 +1,21 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
|
+
import 'react';
|
|
2
3
|
import { describe } from 'react-desc';
|
|
3
4
|
import { useMemoMergePropsWithDefault } from '@elliemae/ds-props-helpers';
|
|
4
5
|
import { propTypes } from './propTypes.js';
|
|
5
6
|
import { StyledContainer } from './styles.js';
|
|
6
7
|
import { defaultProps } from './defaultProps.js';
|
|
7
8
|
import { useValidateProps } from './config/useValidateProps.js';
|
|
8
|
-
import 'styled-components';
|
|
9
|
-
import '@babel/runtime/helpers/esm/typeof';
|
|
10
9
|
|
|
11
|
-
|
|
10
|
+
const DSFormLayoutCheckboxGroup = props => {
|
|
12
11
|
useValidateProps(props);
|
|
13
|
-
|
|
14
|
-
return /*#__PURE__*/
|
|
12
|
+
const propsWithDefault = useMemoMergePropsWithDefault(props, defaultProps);
|
|
13
|
+
return /*#__PURE__*/_jsx(StyledContainer, {
|
|
15
14
|
direction: propsWithDefault.direction
|
|
16
|
-
}, propsWithDefault.children);
|
|
15
|
+
}, void 0, propsWithDefault.children);
|
|
17
16
|
};
|
|
18
17
|
|
|
19
|
-
|
|
20
|
-
var DSFormLayoutCheckboxGroupWithSchema = describe(DSFormLayoutCheckboxGroup);
|
|
18
|
+
const DSFormLayoutCheckboxGroupWithSchema = describe(DSFormLayoutCheckboxGroup);
|
|
21
19
|
DSFormLayoutCheckboxGroupWithSchema.propTypes = propTypes;
|
|
22
20
|
|
|
23
21
|
export { DSFormLayoutCheckboxGroup, DSFormLayoutCheckboxGroupWithSchema };
|
|
24
|
-
//# sourceMappingURL=DSFormLayoutCheckboxGroup.js.map
|
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
import _typeof from '@babel/runtime/helpers/esm/typeof';
|
|
2
1
|
import React from 'react';
|
|
3
2
|
|
|
4
|
-
|
|
3
|
+
const getVariableType = arg => {
|
|
5
4
|
if (Array.isArray(arg)) return 'array';
|
|
6
5
|
if (arg === null) return 'null';
|
|
7
6
|
if (arg === undefined) return 'undefined';
|
|
8
|
-
return
|
|
7
|
+
return typeof arg;
|
|
9
8
|
};
|
|
10
9
|
|
|
11
|
-
|
|
10
|
+
const throwCheckboxGroupDirectionError = invalidProp => {
|
|
12
11
|
throw new Error("You are trying to pass a not valid \"direction\" property value for a checkbox group, please provide a valid type.\n\n Received: ".concat(invalidProp, " (").concat(getVariableType(invalidProp), ")\n Expected: \"horizontal\" or \"vertical\" (string)\n "));
|
|
13
12
|
};
|
|
14
13
|
|
|
15
|
-
|
|
14
|
+
const throwCheckboxGroupChildrenError = () => {
|
|
16
15
|
throw new Error("You are trying to use a checkbox group without any React children, please provide at least one children to use.\n \n Received: (null)\n Expected: React children\n ");
|
|
17
16
|
};
|
|
18
17
|
|
|
19
|
-
|
|
18
|
+
const useValidateProps = props => {
|
|
20
19
|
if (props.direction !== undefined && props.direction !== 'vertical' && props.direction !== 'horizontal') {
|
|
21
20
|
throwCheckboxGroupDirectionError(props.direction);
|
|
22
21
|
}
|
|
@@ -27,4 +26,3 @@ var useValidateProps = function useValidateProps(props) {
|
|
|
27
26
|
};
|
|
28
27
|
|
|
29
28
|
export { useValidateProps };
|
|
30
|
-
//# sourceMappingURL=useValidateProps.js.map
|
|
@@ -1,11 +1 @@
|
|
|
1
1
|
export { DSFormLayoutCheckboxGroup, DSFormLayoutCheckboxGroupWithSchema } from './DSFormLayoutCheckboxGroup.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import 'react-desc';
|
|
4
|
-
import '@elliemae/ds-props-helpers';
|
|
5
|
-
import './propTypes.js';
|
|
6
|
-
import './styles.js';
|
|
7
|
-
import 'styled-components';
|
|
8
|
-
import './defaultProps.js';
|
|
9
|
-
import './config/useValidateProps.js';
|
|
10
|
-
import '@babel/runtime/helpers/esm/typeof';
|
|
11
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { PropTypes } from 'react-desc';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
const propTypes = {
|
|
4
4
|
direction: PropTypes.oneOf(['horizontal', 'vertical']).description('Set direction for the checkbox group.')
|
|
5
5
|
};
|
|
6
6
|
|
|
7
7
|
export { propTypes };
|
|
8
|
-
//# sourceMappingURL=propTypes.js.map
|
|
@@ -1,27 +1,38 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
const StyledContainer = /*#__PURE__*/styled.div.withConfig({
|
|
4
4
|
componentId: "sc-1wopk9q-0"
|
|
5
|
-
})(["display:inline-flex;flex-wrap:wrap;flex-direction:", ";margin-left:", ";margin-right:", ";margin-top:", ";& div{padding:0;margin-bottom:", ";}& div:not(:last-child){margin-right:", ";}"],
|
|
6
|
-
|
|
5
|
+
})(["display:inline-flex;flex-wrap:wrap;flex-direction:", ";margin-left:", ";margin-right:", ";margin-top:", ";& div{padding:0;margin-bottom:", ";}& div:not(:last-child){margin-right:", ";}"], _ref => {
|
|
6
|
+
let {
|
|
7
|
+
direction
|
|
8
|
+
} = _ref;
|
|
7
9
|
return direction === 'horizontal' ? 'row' : 'column';
|
|
8
|
-
},
|
|
9
|
-
|
|
10
|
+
}, _ref2 => {
|
|
11
|
+
let {
|
|
12
|
+
theme
|
|
13
|
+
} = _ref2;
|
|
10
14
|
return theme.space.xs;
|
|
11
|
-
},
|
|
12
|
-
|
|
15
|
+
}, _ref3 => {
|
|
16
|
+
let {
|
|
17
|
+
theme
|
|
18
|
+
} = _ref3;
|
|
13
19
|
return theme.space.xs;
|
|
14
|
-
},
|
|
15
|
-
|
|
20
|
+
}, _ref4 => {
|
|
21
|
+
let {
|
|
22
|
+
theme
|
|
23
|
+
} = _ref4;
|
|
16
24
|
return theme.space.xxs;
|
|
17
|
-
},
|
|
18
|
-
|
|
25
|
+
}, _ref5 => {
|
|
26
|
+
let {
|
|
27
|
+
theme
|
|
28
|
+
} = _ref5;
|
|
19
29
|
return theme.space.xxs;
|
|
20
|
-
},
|
|
21
|
-
|
|
22
|
-
|
|
30
|
+
}, _ref6 => {
|
|
31
|
+
let {
|
|
32
|
+
theme,
|
|
33
|
+
direction
|
|
34
|
+
} = _ref6;
|
|
23
35
|
return direction === 'horizontal' ? theme.space.s : '0';
|
|
24
36
|
});
|
|
25
37
|
|
|
26
38
|
export { StyledContainer };
|
|
27
|
-
//# sourceMappingURL=styles.js.map
|
package/esm/index.d.js
CHANGED
package/esm/index.js
CHANGED
|
@@ -1,15 +1,2 @@
|
|
|
1
1
|
export { DSFormLayoutBlockItem, DSFormLayoutBlockItemWithSchema } from './form-layout-block-item/DSFormLayoutBlockItem.js';
|
|
2
2
|
export { DSFormLayoutCheckboxGroup, DSFormLayoutCheckboxGroupWithSchema } from './form-layout-checkbox-group/DSFormLayoutCheckboxGroup.js';
|
|
3
|
-
import 'react';
|
|
4
|
-
import 'react-desc';
|
|
5
|
-
import 'uid';
|
|
6
|
-
import './form-layout-block-item/propTypes.js';
|
|
7
|
-
import './form-layout-block-item/styles.js';
|
|
8
|
-
import 'styled-components';
|
|
9
|
-
import '@elliemae/ds-props-helpers';
|
|
10
|
-
import './form-layout-checkbox-group/propTypes.js';
|
|
11
|
-
import './form-layout-checkbox-group/styles.js';
|
|
12
|
-
import './form-layout-checkbox-group/defaultProps.js';
|
|
13
|
-
import './form-layout-checkbox-group/config/useValidateProps.js';
|
|
14
|
-
import '@babel/runtime/helpers/esm/typeof';
|
|
15
|
-
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,14 +1,70 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-form-layout-blocks",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-alpha.12",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"description": "
|
|
6
|
-
"module": "esm/index.js",
|
|
7
|
-
"main": "cjs/index.js",
|
|
5
|
+
"description": "ICE MT - Dimsum - Form Layout",
|
|
6
|
+
"module": "./esm/index.js",
|
|
7
|
+
"main": "./cjs/index.js",
|
|
8
|
+
"types": "./types/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./esm/index.js",
|
|
12
|
+
"require": "./cjs/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./form-layout-checkbox-group/styles": {
|
|
15
|
+
"import": "./esm/form-layout-checkbox-group/styles.js",
|
|
16
|
+
"require": "./cjs/form-layout-checkbox-group/styles.js"
|
|
17
|
+
},
|
|
18
|
+
"./form-layout-checkbox-group/propTypes": {
|
|
19
|
+
"import": "./esm/form-layout-checkbox-group/propTypes.js",
|
|
20
|
+
"require": "./cjs/form-layout-checkbox-group/propTypes.js"
|
|
21
|
+
},
|
|
22
|
+
"./form-layout-checkbox-group": {
|
|
23
|
+
"import": "./esm/form-layout-checkbox-group/index.js",
|
|
24
|
+
"require": "./cjs/form-layout-checkbox-group/index.js"
|
|
25
|
+
},
|
|
26
|
+
"./form-layout-checkbox-group/DSFormLayoutCheckboxGroup": {
|
|
27
|
+
"import": "./esm/form-layout-checkbox-group/DSFormLayoutCheckboxGroup.js",
|
|
28
|
+
"require": "./cjs/form-layout-checkbox-group/DSFormLayoutCheckboxGroup.js"
|
|
29
|
+
},
|
|
30
|
+
"./form-layout-checkbox-group/defaultProps": {
|
|
31
|
+
"import": "./esm/form-layout-checkbox-group/defaultProps.js",
|
|
32
|
+
"require": "./cjs/form-layout-checkbox-group/defaultProps.js"
|
|
33
|
+
},
|
|
34
|
+
"./form-layout-checkbox-group/config/useValidateProps": {
|
|
35
|
+
"import": "./esm/form-layout-checkbox-group/config/useValidateProps.js",
|
|
36
|
+
"require": "./cjs/form-layout-checkbox-group/config/useValidateProps.js"
|
|
37
|
+
},
|
|
38
|
+
"./form-layout-block-item/styles": {
|
|
39
|
+
"import": "./esm/form-layout-block-item/styles.js",
|
|
40
|
+
"require": "./cjs/form-layout-block-item/styles.js"
|
|
41
|
+
},
|
|
42
|
+
"./form-layout-block-item/propTypes": {
|
|
43
|
+
"import": "./esm/form-layout-block-item/propTypes.js",
|
|
44
|
+
"require": "./cjs/form-layout-block-item/propTypes.js"
|
|
45
|
+
},
|
|
46
|
+
"./form-layout-block-item": {
|
|
47
|
+
"import": "./esm/form-layout-block-item/index.js",
|
|
48
|
+
"require": "./cjs/form-layout-block-item/index.js"
|
|
49
|
+
},
|
|
50
|
+
"./form-layout-block-item/DSFormLayoutBlockItem": {
|
|
51
|
+
"import": "./esm/form-layout-block-item/DSFormLayoutBlockItem.js",
|
|
52
|
+
"require": "./cjs/form-layout-block-item/DSFormLayoutBlockItem.js"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
8
55
|
"sideEffects": [
|
|
9
56
|
"*.css",
|
|
10
57
|
"*.scss"
|
|
11
58
|
],
|
|
59
|
+
"repository": {
|
|
60
|
+
"type": "git",
|
|
61
|
+
"url": "https://git.elliemae.io/platform-ui/dimsum.git"
|
|
62
|
+
},
|
|
63
|
+
"engines": {
|
|
64
|
+
"npm": ">=7",
|
|
65
|
+
"node": ">=14"
|
|
66
|
+
},
|
|
67
|
+
"author": "ICE MT",
|
|
12
68
|
"scripts": {
|
|
13
69
|
"dev": "cross-env NODE_ENV=development && node ../../scripts/build/build.js -w",
|
|
14
70
|
"prebuild": "exit 0",
|
|
@@ -16,19 +72,21 @@
|
|
|
16
72
|
"build": "node ../../scripts/build/build.js"
|
|
17
73
|
},
|
|
18
74
|
"dependencies": {
|
|
19
|
-
"@elliemae/ds-props-helpers": "
|
|
20
|
-
"react-desc": "
|
|
75
|
+
"@elliemae/ds-props-helpers": "2.0.0-alpha.12",
|
|
76
|
+
"react-desc": "~4.1.3",
|
|
77
|
+
"uid": "~2.0.0"
|
|
21
78
|
},
|
|
22
79
|
"devDependencies": {
|
|
23
|
-
"styled-components": "~5.3.
|
|
80
|
+
"styled-components": "~5.3.3"
|
|
24
81
|
},
|
|
25
82
|
"peerDependencies": {
|
|
26
|
-
"react": "
|
|
27
|
-
"react-dom": "^17.0.
|
|
28
|
-
"styled-components": "^5.3.
|
|
83
|
+
"react": "~17.0.2",
|
|
84
|
+
"react-dom": "^17.0.2",
|
|
85
|
+
"styled-components": "^5.3.3"
|
|
29
86
|
},
|
|
30
87
|
"publishConfig": {
|
|
31
88
|
"access": "public",
|
|
32
|
-
"directory": "dist"
|
|
89
|
+
"directory": "dist",
|
|
90
|
+
"generateSubmodules": true
|
|
33
91
|
}
|
|
34
92
|
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
import type { DSFormLayoutBlockItemPropsT as Props } from './index.d';
|
|
4
|
+
declare const DSFormLayoutBlockItem: {
|
|
5
|
+
(props: Props): JSX.Element;
|
|
6
|
+
propTypes: {
|
|
7
|
+
children: any;
|
|
8
|
+
label: any;
|
|
9
|
+
inputID: any;
|
|
10
|
+
feedbackMessage: {
|
|
11
|
+
defaultValue<T = unknown>(arg: T): {
|
|
12
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
13
|
+
};
|
|
14
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
15
|
+
};
|
|
16
|
+
validationMessage: {
|
|
17
|
+
defaultValue<T = unknown>(arg: T): {
|
|
18
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
19
|
+
};
|
|
20
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
21
|
+
};
|
|
22
|
+
hasError: {
|
|
23
|
+
defaultValue<T = unknown>(arg: T): {
|
|
24
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
25
|
+
};
|
|
26
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
27
|
+
};
|
|
28
|
+
required: {
|
|
29
|
+
defaultValue<T = unknown>(arg: T): {
|
|
30
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
31
|
+
};
|
|
32
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
33
|
+
};
|
|
34
|
+
optional: {
|
|
35
|
+
defaultValue<T = unknown>(arg: T): {
|
|
36
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
37
|
+
};
|
|
38
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
39
|
+
};
|
|
40
|
+
fitContent: {
|
|
41
|
+
defaultValue<T = unknown>(arg: T): {
|
|
42
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
43
|
+
};
|
|
44
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
45
|
+
};
|
|
46
|
+
leftLabel: {
|
|
47
|
+
defaultValue<T = unknown>(arg: T): {
|
|
48
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
49
|
+
};
|
|
50
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
51
|
+
};
|
|
52
|
+
hideLabel: {
|
|
53
|
+
defaultValue<T = unknown>(arg: T): {
|
|
54
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
55
|
+
};
|
|
56
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
57
|
+
};
|
|
58
|
+
withHighlight: {
|
|
59
|
+
defaultValue<T = unknown>(arg: T): {
|
|
60
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
61
|
+
};
|
|
62
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
63
|
+
};
|
|
64
|
+
isGroup: {
|
|
65
|
+
defaultValue<T = unknown>(arg: T): {
|
|
66
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
67
|
+
};
|
|
68
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
declare const DSFormLayoutBlockItemWithSchema: {
|
|
73
|
+
(props?: Props | undefined): JSX.Element;
|
|
74
|
+
propTypes: unknown;
|
|
75
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
76
|
+
};
|
|
77
|
+
export { DSFormLayoutBlockItem, DSFormLayoutBlockItemWithSchema };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface DSFormLayoutBlockItemPropsT {
|
|
3
|
+
children: JSX.Element;
|
|
4
|
+
label: string;
|
|
5
|
+
inputID: string;
|
|
6
|
+
validationMessage?: string;
|
|
7
|
+
feedbackMessage?: string;
|
|
8
|
+
hasError?: boolean;
|
|
9
|
+
leftLabel?: boolean;
|
|
10
|
+
required?: boolean;
|
|
11
|
+
fitContent?: boolean;
|
|
12
|
+
optional?: boolean;
|
|
13
|
+
hideLabel?: boolean;
|
|
14
|
+
withHighlight?: boolean;
|
|
15
|
+
isGroup?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface DSFormLayoutBlockItemStyledMessageT {
|
|
18
|
+
hasError?: boolean;
|
|
19
|
+
leftLabel?: boolean;
|
|
20
|
+
hideLabel?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export interface DSFormLayoutBlockItemStyledContainerT {
|
|
23
|
+
leftLabel?: boolean;
|
|
24
|
+
fitContent?: boolean;
|
|
25
|
+
hideLabel?: boolean;
|
|
26
|
+
withHighlight?: boolean;
|
|
27
|
+
isGroup?: boolean;
|
|
28
|
+
}
|
|
29
|
+
export interface DSFormLayoutBlockItemStyledLabelT {
|
|
30
|
+
leftLabel?: boolean;
|
|
31
|
+
hideLabel?: boolean;
|
|
32
|
+
}
|
|
33
|
+
export interface DSFormLayoutBlockItemStyledMarkT {
|
|
34
|
+
required?: boolean;
|
|
35
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DSFormLayoutBlockItem';
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
export declare const propTypes: {
|
|
3
|
+
children: any;
|
|
4
|
+
label: any;
|
|
5
|
+
inputID: any;
|
|
6
|
+
feedbackMessage: {
|
|
7
|
+
defaultValue<T = unknown>(arg: T): {
|
|
8
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
9
|
+
};
|
|
10
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
11
|
+
};
|
|
12
|
+
validationMessage: {
|
|
13
|
+
defaultValue<T = unknown>(arg: T): {
|
|
14
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
15
|
+
};
|
|
16
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
17
|
+
};
|
|
18
|
+
hasError: {
|
|
19
|
+
defaultValue<T = unknown>(arg: T): {
|
|
20
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
21
|
+
};
|
|
22
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
23
|
+
};
|
|
24
|
+
required: {
|
|
25
|
+
defaultValue<T = unknown>(arg: T): {
|
|
26
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
27
|
+
};
|
|
28
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
29
|
+
};
|
|
30
|
+
optional: {
|
|
31
|
+
defaultValue<T = unknown>(arg: T): {
|
|
32
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
33
|
+
};
|
|
34
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
35
|
+
};
|
|
36
|
+
fitContent: {
|
|
37
|
+
defaultValue<T = unknown>(arg: T): {
|
|
38
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
39
|
+
};
|
|
40
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
41
|
+
};
|
|
42
|
+
leftLabel: {
|
|
43
|
+
defaultValue<T = unknown>(arg: T): {
|
|
44
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
45
|
+
};
|
|
46
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
47
|
+
};
|
|
48
|
+
hideLabel: {
|
|
49
|
+
defaultValue<T = unknown>(arg: T): {
|
|
50
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
51
|
+
};
|
|
52
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
53
|
+
};
|
|
54
|
+
withHighlight: {
|
|
55
|
+
defaultValue<T = unknown>(arg: T): {
|
|
56
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
57
|
+
};
|
|
58
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
59
|
+
};
|
|
60
|
+
isGroup: {
|
|
61
|
+
defaultValue<T = unknown>(arg: T): {
|
|
62
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
63
|
+
};
|
|
64
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { DSFormLayoutBlockItemStyledContainerT, DSFormLayoutBlockItemStyledLabelT, DSFormLayoutBlockItemStyledMessageT, DSFormLayoutBlockItemStyledMarkT } from './index.d';
|
|
2
|
+
export declare const StyledContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, DSFormLayoutBlockItemStyledContainerT, never>;
|
|
3
|
+
export declare const StyledLabel: import("styled-components").StyledComponent<"label", import("styled-components").DefaultTheme, DSFormLayoutBlockItemStyledLabelT, never>;
|
|
4
|
+
export declare const StyledMessage: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, DSFormLayoutBlockItemStyledMessageT, never>;
|
|
5
|
+
export declare const StyledMark: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, DSFormLayoutBlockItemStyledMarkT, never>;
|
|
6
|
+
export declare const ScreenReaderOnly: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
import type { DSControlledCheckboxGroupT } from './index.d';
|
|
4
|
+
declare const DSFormLayoutCheckboxGroup: {
|
|
5
|
+
(props: DSControlledCheckboxGroupT): JSX.Element;
|
|
6
|
+
propTypes: {
|
|
7
|
+
direction: {
|
|
8
|
+
defaultValue<T = unknown>(arg: T): {
|
|
9
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
10
|
+
};
|
|
11
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
declare const DSFormLayoutCheckboxGroupWithSchema: {
|
|
16
|
+
(props?: DSControlledCheckboxGroupT | undefined): JSX.Element;
|
|
17
|
+
propTypes: unknown;
|
|
18
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
19
|
+
};
|
|
20
|
+
export { DSFormLayoutCheckboxGroup, DSFormLayoutCheckboxGroupWithSchema };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare type DirectionsT = 'horizontal' | 'vertical';
|
|
3
|
+
export interface DSControlledCheckboxGroupT {
|
|
4
|
+
direction: DirectionsT;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export interface DSControlledCheckboxGroupStyledContainerT {
|
|
8
|
+
direction: DirectionsT;
|
|
9
|
+
}
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DSFormLayoutCheckboxGroup';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
export declare const propTypes: {
|
|
3
|
+
direction: {
|
|
4
|
+
defaultValue<T = unknown>(arg: T): {
|
|
5
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
6
|
+
};
|
|
7
|
+
isRequired: import("react-desc").PropTypesDescValidator;
|
|
8
|
+
};
|
|
9
|
+
};
|