@elliemae/ds-form-layout-blocks 2.3.1 → 3.0.0-alpha.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.
Files changed (98) hide show
  1. package/dist/cjs/form-layout-block-item/DSFormLayoutBlockItem.js +89 -0
  2. package/dist/cjs/form-layout-block-item/DSFormLayoutBlockItem.js.map +7 -0
  3. package/dist/cjs/form-layout-block-item/index.d.js +27 -0
  4. package/dist/cjs/form-layout-block-item/index.d.js.map +7 -0
  5. package/dist/cjs/form-layout-block-item/index.js +28 -0
  6. package/dist/cjs/form-layout-block-item/index.js.map +7 -0
  7. package/dist/cjs/form-layout-block-item/propTypes.js +50 -0
  8. package/dist/cjs/form-layout-block-item/propTypes.js.map +7 -0
  9. package/dist/cjs/form-layout-block-item/styles.js +125 -0
  10. package/dist/cjs/form-layout-block-item/styles.js.map +7 -0
  11. package/dist/cjs/form-layout-checkbox-group/DSFormLayoutCheckboxGroup.js +52 -0
  12. package/dist/cjs/form-layout-checkbox-group/DSFormLayoutCheckboxGroup.js.map +7 -0
  13. package/dist/cjs/form-layout-checkbox-group/config/useValidateProps.js +66 -0
  14. package/dist/cjs/form-layout-checkbox-group/config/useValidateProps.js.map +7 -0
  15. package/dist/cjs/form-layout-checkbox-group/defaultProps.js +37 -0
  16. package/dist/cjs/form-layout-checkbox-group/defaultProps.js.map +7 -0
  17. package/dist/cjs/form-layout-checkbox-group/index.d.js +27 -0
  18. package/dist/cjs/form-layout-checkbox-group/index.d.js.map +7 -0
  19. package/dist/cjs/form-layout-checkbox-group/index.js +28 -0
  20. package/dist/cjs/form-layout-checkbox-group/index.js.map +7 -0
  21. package/dist/cjs/form-layout-checkbox-group/propTypes.js +38 -0
  22. package/dist/cjs/form-layout-checkbox-group/propTypes.js.map +7 -0
  23. package/dist/cjs/form-layout-checkbox-group/styles.js +50 -0
  24. package/dist/cjs/form-layout-checkbox-group/styles.js.map +7 -0
  25. package/dist/cjs/index.d.js +29 -0
  26. package/dist/cjs/index.d.js.map +7 -0
  27. package/dist/cjs/index.js +29 -0
  28. package/dist/cjs/index.js.map +7 -0
  29. package/dist/esm/form-layout-block-item/DSFormLayoutBlockItem.js +60 -0
  30. package/dist/esm/form-layout-block-item/DSFormLayoutBlockItem.js.map +7 -0
  31. package/dist/esm/form-layout-block-item/index.d.js +2 -0
  32. package/dist/esm/form-layout-block-item/index.d.js.map +7 -0
  33. package/dist/esm/form-layout-block-item/index.js +3 -0
  34. package/dist/esm/form-layout-block-item/index.js.map +7 -0
  35. package/dist/esm/form-layout-block-item/propTypes.js +21 -0
  36. package/dist/esm/form-layout-block-item/propTypes.js.map +7 -0
  37. package/dist/esm/form-layout-block-item/styles.js +96 -0
  38. package/dist/esm/form-layout-block-item/styles.js.map +7 -0
  39. package/dist/esm/form-layout-checkbox-group/DSFormLayoutCheckboxGroup.js +23 -0
  40. package/dist/esm/form-layout-checkbox-group/DSFormLayoutCheckboxGroup.js.map +7 -0
  41. package/dist/esm/form-layout-checkbox-group/config/useValidateProps.js +37 -0
  42. package/dist/esm/form-layout-checkbox-group/config/useValidateProps.js.map +7 -0
  43. package/dist/esm/form-layout-checkbox-group/defaultProps.js +8 -0
  44. package/dist/esm/form-layout-checkbox-group/defaultProps.js.map +7 -0
  45. package/dist/esm/form-layout-checkbox-group/index.d.js +2 -0
  46. package/dist/esm/form-layout-checkbox-group/index.d.js.map +7 -0
  47. package/dist/esm/form-layout-checkbox-group/index.js +3 -0
  48. package/dist/esm/form-layout-checkbox-group/index.js.map +7 -0
  49. package/dist/esm/form-layout-checkbox-group/propTypes.js +9 -0
  50. package/dist/esm/form-layout-checkbox-group/propTypes.js.map +7 -0
  51. package/dist/esm/form-layout-checkbox-group/styles.js +21 -0
  52. package/dist/esm/form-layout-checkbox-group/styles.js.map +7 -0
  53. package/dist/esm/index.d.js +4 -0
  54. package/dist/esm/index.d.js.map +7 -0
  55. package/dist/esm/index.js +4 -0
  56. package/dist/esm/index.js.map +7 -0
  57. package/package.json +45 -36
  58. package/cjs/form-layout-block-item/DSFormLayoutBlockItem.js +0 -67
  59. package/cjs/form-layout-block-item/index.d.js +0 -2
  60. package/cjs/form-layout-block-item/index.js +0 -10
  61. package/cjs/form-layout-block-item/propTypes.js +0 -23
  62. package/cjs/form-layout-block-item/styles.js +0 -92
  63. package/cjs/form-layout-checkbox-group/DSFormLayoutCheckboxGroup.js +0 -30
  64. package/cjs/form-layout-checkbox-group/config/useValidateProps.js +0 -36
  65. package/cjs/form-layout-checkbox-group/defaultProps.js +0 -9
  66. package/cjs/form-layout-checkbox-group/index.d.js +0 -2
  67. package/cjs/form-layout-checkbox-group/index.js +0 -10
  68. package/cjs/form-layout-checkbox-group/propTypes.js +0 -11
  69. package/cjs/form-layout-checkbox-group/styles.js +0 -46
  70. package/cjs/index.d.js +0 -2
  71. package/cjs/index.js +0 -13
  72. package/esm/form-layout-block-item/DSFormLayoutBlockItem.js +0 -58
  73. package/esm/form-layout-block-item/index.d.js +0 -1
  74. package/esm/form-layout-block-item/index.js +0 -1
  75. package/esm/form-layout-block-item/propTypes.js +0 -19
  76. package/esm/form-layout-block-item/styles.js +0 -80
  77. package/esm/form-layout-checkbox-group/DSFormLayoutCheckboxGroup.js +0 -21
  78. package/esm/form-layout-checkbox-group/config/useValidateProps.js +0 -28
  79. package/esm/form-layout-checkbox-group/defaultProps.js +0 -5
  80. package/esm/form-layout-checkbox-group/index.d.js +0 -1
  81. package/esm/form-layout-checkbox-group/index.js +0 -1
  82. package/esm/form-layout-checkbox-group/propTypes.js +0 -7
  83. package/esm/form-layout-checkbox-group/styles.js +0 -38
  84. package/esm/index.d.js +0 -1
  85. package/esm/index.js +0 -2
  86. package/types/form-layout-block-item/DSFormLayoutBlockItem.d.ts +0 -77
  87. package/types/form-layout-block-item/index.d.d.ts +0 -35
  88. package/types/form-layout-block-item/index.d.ts +0 -1
  89. package/types/form-layout-block-item/propTypes.d.ts +0 -66
  90. package/types/form-layout-block-item/styles.d.ts +0 -6
  91. package/types/form-layout-checkbox-group/DSFormLayoutCheckboxGroup.d.ts +0 -20
  92. package/types/form-layout-checkbox-group/config/useValidateProps.d.ts +0 -2
  93. package/types/form-layout-checkbox-group/defaultProps.d.ts +0 -3
  94. package/types/form-layout-checkbox-group/index.d.d.ts +0 -10
  95. package/types/form-layout-checkbox-group/index.d.ts +0 -1
  96. package/types/form-layout-checkbox-group/propTypes.d.ts +0 -9
  97. package/types/form-layout-checkbox-group/styles.d.ts +0 -2
  98. package/types/index.d.ts +0 -2
@@ -1,19 +0,0 @@
1
- import { PropTypes } from 'react-desc';
2
-
3
- const propTypes = {
4
- children: PropTypes.node.isRequired.description('Input component. '),
5
- label: PropTypes.string.isRequired.description('Label property for the input component. This property is required for accesibility purposes.'),
6
- inputID: PropTypes.string.isRequired.description("String that matches the input component's id. This property is required for accesibility purposes."),
7
- feedbackMessage: PropTypes.string.description('Feedback message to show below the input component.'),
8
- validationMessage: PropTypes.string.description('Validation message to show below the input component. It requires hasError property set to true to be visible.'),
9
- hasError: PropTypes.bool.description('Helper boolean property for the validation message.'),
10
- required: PropTypes.bool.description('Adds required extra styling.'),
11
- optional: PropTypes.bool.description('Adds optional extra styling.'),
12
- fitContent: PropTypes.bool.description('Set the width of the layout to the input component.'),
13
- leftLabel: PropTypes.bool.description('Adds the label at the left of the input component.'),
14
- hideLabel: PropTypes.bool.description('Hides the input label. It still requires label and labelFor property for accesibility purposes'),
15
- withHighlight: PropTypes.bool.description('Adds highlight extra styling. It requires extra spacing, please check withHighlight explanation tab.'),
16
- isGroup: PropTypes.bool.description('Sets the HTML elements as fieldset and legend. This should be used when you want to group more than one input.')
17
- };
18
-
19
- export { propTypes };
@@ -1,80 +0,0 @@
1
- import styled from 'styled-components';
2
-
3
- const StyledContainer = /*#__PURE__*/styled.div.withConfig({
4
- componentId: "sc-196zgtg-0"
5
- })(["position:relative;padding:0;margin:0;display:grid;", " ", ";", " align-items:center;", ""], _ref => {
6
- let {
7
- fitContent
8
- } = _ref;
9
- return fitContent ? 'width: fit-content;' : undefined;
10
- }, _ref2 => {
11
- let {
12
- isGroup
13
- } = _ref2;
14
- return isGroup ? 'border: none' : '';
15
- }, _ref3 => {
16
- let {
17
- leftLabel,
18
- hideLabel
19
- } = _ref3;
20
- return leftLabel && !hideLabel ? 'grid-template-columns: max-content auto;' : undefined;
21
- }, _ref4 => {
22
- let {
23
- theme,
24
- withHighlight
25
- } = _ref4;
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 : 2px solid #8F6326;\n border-radius : 4px;\n box-shadow: 0 6px 10px 0 rgba(0,0,0,0.30);\n }\n }\n ") : undefined;
27
- });
28
- const StyledLabel = /*#__PURE__*/styled.label.withConfig({
29
- componentId: "sc-196zgtg-1"
30
- })(["display:flex;", " ", ""], _ref5 => {
31
- let {
32
- theme,
33
- leftLabel
34
- } = _ref5;
35
- return leftLabel ? "padding-right: ".concat(theme.space.xxs, ";") : undefined;
36
- }, _ref6 => {
37
- let {
38
- hideLabel
39
- } = _ref6;
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;
41
- });
42
- const StyledMessage = /*#__PURE__*/styled.div.withConfig({
43
- componentId: "sc-196zgtg-2"
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;
48
- return theme.fontSizes.microText[200];
49
- }, _ref8 => {
50
- let {
51
- theme,
52
- hasError
53
- } = _ref8;
54
- return hasError ? theme.colors.danger[900] : theme.colors.neutral[500];
55
- }, _ref9 => {
56
- let {
57
- leftLabel,
58
- hideLabel
59
- } = _ref9;
60
- return leftLabel && !hideLabel ? 'grid-column: 1/3;' : undefined;
61
- });
62
- const StyledMark = /*#__PURE__*/styled.span.withConfig({
63
- componentId: "sc-196zgtg-3"
64
- })(["width:6px;height:6px;border-radius:50%;margin-left:", ";", ""], _ref10 => {
65
- let {
66
- theme
67
- } = _ref10;
68
- return theme.space.xxxs;
69
- }, _ref11 => {
70
- let {
71
- theme,
72
- required
73
- } = _ref11;
74
- return required ? "\n background-color: ".concat(theme.colors.danger[900], ";\n ") : "\n border: 1px solid ".concat(theme.colors.brand[600], ";\n ");
75
- });
76
- const ScreenReaderOnly = /*#__PURE__*/styled.div.withConfig({
77
- componentId: "sc-196zgtg-4"
78
- })(["clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px;"]);
79
-
80
- export { ScreenReaderOnly, StyledContainer, StyledLabel, StyledMark, StyledMessage };
@@ -1,21 +0,0 @@
1
- import _jsx from '@babel/runtime/helpers/esm/jsx';
2
- import 'react';
3
- import { describe } from 'react-desc';
4
- import { useMemoMergePropsWithDefault } from '@elliemae/ds-props-helpers';
5
- import { propTypes } from './propTypes.js';
6
- import { StyledContainer } from './styles.js';
7
- import { defaultProps } from './defaultProps.js';
8
- import { useValidateProps } from './config/useValidateProps.js';
9
-
10
- const DSFormLayoutCheckboxGroup = props => {
11
- useValidateProps(props);
12
- const propsWithDefault = useMemoMergePropsWithDefault(props, defaultProps);
13
- return /*#__PURE__*/_jsx(StyledContainer, {
14
- direction: propsWithDefault.direction
15
- }, void 0, propsWithDefault.children);
16
- };
17
-
18
- const DSFormLayoutCheckboxGroupWithSchema = describe(DSFormLayoutCheckboxGroup);
19
- DSFormLayoutCheckboxGroupWithSchema.propTypes = propTypes;
20
-
21
- export { DSFormLayoutCheckboxGroup, DSFormLayoutCheckboxGroupWithSchema };
@@ -1,28 +0,0 @@
1
- import React from 'react';
2
-
3
- const getVariableType = arg => {
4
- if (Array.isArray(arg)) return 'array';
5
- if (arg === null) return 'null';
6
- if (arg === undefined) return 'undefined';
7
- return typeof arg;
8
- };
9
-
10
- const throwCheckboxGroupDirectionError = invalidProp => {
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 "));
12
- };
13
-
14
- const throwCheckboxGroupChildrenError = () => {
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 ");
16
- };
17
-
18
- const useValidateProps = props => {
19
- if (props.direction !== undefined && props.direction !== 'vertical' && props.direction !== 'horizontal') {
20
- throwCheckboxGroupDirectionError(props.direction);
21
- }
22
-
23
- if (!React.Children.count(props.children)) {
24
- throwCheckboxGroupChildrenError();
25
- }
26
- };
27
-
28
- export { useValidateProps };
@@ -1,5 +0,0 @@
1
- const defaultProps = {
2
- direction: 'horizontal'
3
- };
4
-
5
- export { defaultProps };
@@ -1 +0,0 @@
1
- export { DSFormLayoutCheckboxGroup, DSFormLayoutCheckboxGroupWithSchema } from './DSFormLayoutCheckboxGroup.js';
@@ -1,7 +0,0 @@
1
- import { PropTypes } from 'react-desc';
2
-
3
- const propTypes = {
4
- direction: PropTypes.oneOf(['horizontal', 'vertical']).description('Set direction for the checkbox group.')
5
- };
6
-
7
- export { propTypes };
@@ -1,38 +0,0 @@
1
- import styled from 'styled-components';
2
-
3
- const StyledContainer = /*#__PURE__*/styled.div.withConfig({
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:", ";}"], _ref => {
6
- let {
7
- direction
8
- } = _ref;
9
- return direction === 'horizontal' ? 'row' : 'column';
10
- }, _ref2 => {
11
- let {
12
- theme
13
- } = _ref2;
14
- return theme.space.xs;
15
- }, _ref3 => {
16
- let {
17
- theme
18
- } = _ref3;
19
- return theme.space.xs;
20
- }, _ref4 => {
21
- let {
22
- theme
23
- } = _ref4;
24
- return theme.space.xxs;
25
- }, _ref5 => {
26
- let {
27
- theme
28
- } = _ref5;
29
- return theme.space.xxs;
30
- }, _ref6 => {
31
- let {
32
- theme,
33
- direction
34
- } = _ref6;
35
- return direction === 'horizontal' ? theme.space.s : '0';
36
- });
37
-
38
- export { StyledContainer };
package/esm/index.d.js DELETED
@@ -1 +0,0 @@
1
-
package/esm/index.js DELETED
@@ -1,2 +0,0 @@
1
- export { DSFormLayoutBlockItem, DSFormLayoutBlockItemWithSchema } from './form-layout-block-item/DSFormLayoutBlockItem.js';
2
- export { DSFormLayoutCheckboxGroup, DSFormLayoutCheckboxGroupWithSchema } from './form-layout-checkbox-group/DSFormLayoutCheckboxGroup.js';
@@ -1,77 +0,0 @@
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(arg: import("react-desc").ReactDescPossibleDefaultValues): {
12
- deprecated: import("react-desc").PropTypesDescValidator;
13
- };
14
- isRequired: import("react-desc").PropTypesDescValue;
15
- };
16
- validationMessage: {
17
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
18
- deprecated: import("react-desc").PropTypesDescValidator;
19
- };
20
- isRequired: import("react-desc").PropTypesDescValue;
21
- };
22
- hasError: {
23
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
24
- deprecated: import("react-desc").PropTypesDescValidator;
25
- };
26
- isRequired: import("react-desc").PropTypesDescValue;
27
- };
28
- required: {
29
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
30
- deprecated: import("react-desc").PropTypesDescValidator;
31
- };
32
- isRequired: import("react-desc").PropTypesDescValue;
33
- };
34
- optional: {
35
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
36
- deprecated: import("react-desc").PropTypesDescValidator;
37
- };
38
- isRequired: import("react-desc").PropTypesDescValue;
39
- };
40
- fitContent: {
41
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
42
- deprecated: import("react-desc").PropTypesDescValidator;
43
- };
44
- isRequired: import("react-desc").PropTypesDescValue;
45
- };
46
- leftLabel: {
47
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
48
- deprecated: import("react-desc").PropTypesDescValidator;
49
- };
50
- isRequired: import("react-desc").PropTypesDescValue;
51
- };
52
- hideLabel: {
53
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
54
- deprecated: import("react-desc").PropTypesDescValidator;
55
- };
56
- isRequired: import("react-desc").PropTypesDescValue;
57
- };
58
- withHighlight: {
59
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
60
- deprecated: import("react-desc").PropTypesDescValidator;
61
- };
62
- isRequired: import("react-desc").PropTypesDescValue;
63
- };
64
- isGroup: {
65
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
66
- deprecated: import("react-desc").PropTypesDescValidator;
67
- };
68
- isRequired: import("react-desc").PropTypesDescValue;
69
- };
70
- };
71
- };
72
- declare const DSFormLayoutBlockItemWithSchema: {
73
- (props?: unknown): JSX.Element;
74
- propTypes: unknown;
75
- toTypescript: () => import("react-desc").TypescriptSchema;
76
- };
77
- export { DSFormLayoutBlockItem, DSFormLayoutBlockItemWithSchema };
@@ -1,35 +0,0 @@
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
- }
@@ -1 +0,0 @@
1
- export * from './DSFormLayoutBlockItem';
@@ -1,66 +0,0 @@
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(arg: import("react-desc").ReactDescPossibleDefaultValues): {
8
- deprecated: import("react-desc").PropTypesDescValidator;
9
- };
10
- isRequired: import("react-desc").PropTypesDescValue;
11
- };
12
- validationMessage: {
13
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
14
- deprecated: import("react-desc").PropTypesDescValidator;
15
- };
16
- isRequired: import("react-desc").PropTypesDescValue;
17
- };
18
- hasError: {
19
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
20
- deprecated: import("react-desc").PropTypesDescValidator;
21
- };
22
- isRequired: import("react-desc").PropTypesDescValue;
23
- };
24
- required: {
25
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
26
- deprecated: import("react-desc").PropTypesDescValidator;
27
- };
28
- isRequired: import("react-desc").PropTypesDescValue;
29
- };
30
- optional: {
31
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
32
- deprecated: import("react-desc").PropTypesDescValidator;
33
- };
34
- isRequired: import("react-desc").PropTypesDescValue;
35
- };
36
- fitContent: {
37
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
38
- deprecated: import("react-desc").PropTypesDescValidator;
39
- };
40
- isRequired: import("react-desc").PropTypesDescValue;
41
- };
42
- leftLabel: {
43
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
44
- deprecated: import("react-desc").PropTypesDescValidator;
45
- };
46
- isRequired: import("react-desc").PropTypesDescValue;
47
- };
48
- hideLabel: {
49
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
50
- deprecated: import("react-desc").PropTypesDescValidator;
51
- };
52
- isRequired: import("react-desc").PropTypesDescValue;
53
- };
54
- withHighlight: {
55
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
56
- deprecated: import("react-desc").PropTypesDescValidator;
57
- };
58
- isRequired: import("react-desc").PropTypesDescValue;
59
- };
60
- isGroup: {
61
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
62
- deprecated: import("react-desc").PropTypesDescValidator;
63
- };
64
- isRequired: import("react-desc").PropTypesDescValue;
65
- };
66
- };
@@ -1,6 +0,0 @@
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>;
@@ -1,20 +0,0 @@
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(arg: import("react-desc").ReactDescPossibleDefaultValues): {
9
- deprecated: import("react-desc").PropTypesDescValidator;
10
- };
11
- isRequired: import("react-desc").PropTypesDescValue;
12
- };
13
- };
14
- };
15
- declare const DSFormLayoutCheckboxGroupWithSchema: {
16
- (props?: unknown): JSX.Element;
17
- propTypes: unknown;
18
- toTypescript: () => import("react-desc").TypescriptSchema;
19
- };
20
- export { DSFormLayoutCheckboxGroup, DSFormLayoutCheckboxGroupWithSchema };
@@ -1,2 +0,0 @@
1
- import type { DSControlledCheckboxGroupT } from '../index.d';
2
- export declare const useValidateProps: (props: DSControlledCheckboxGroupT) => void;
@@ -1,3 +0,0 @@
1
- export declare const defaultProps: {
2
- direction: string;
3
- };
@@ -1,10 +0,0 @@
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 {};
@@ -1 +0,0 @@
1
- export * from './DSFormLayoutCheckboxGroup';
@@ -1,9 +0,0 @@
1
- /// <reference path="../../../../../shared/typings/react-desc.d.ts" />
2
- export declare const propTypes: {
3
- direction: {
4
- defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
5
- deprecated: import("react-desc").PropTypesDescValidator;
6
- };
7
- isRequired: import("react-desc").PropTypesDescValue;
8
- };
9
- };
@@ -1,2 +0,0 @@
1
- import type { DSControlledCheckboxGroupStyledContainerT } from './index.d';
2
- export declare const StyledContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, DSControlledCheckboxGroupStyledContainerT, never>;
package/types/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from './form-layout-block-item';
2
- export * from './form-layout-checkbox-group';