@elliemae/ds-form 3.16.0-next.1 → 3.16.0-next.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/dist/cjs/CheckboxGroup/DSCheckboxGroup.js +2 -2
- package/dist/cjs/CheckboxGroup/DSCheckboxGroup.js.map +2 -2
- package/dist/cjs/CheckboxGroup/props.js +12 -12
- package/dist/cjs/CheckboxGroup/props.js.map +2 -2
- package/dist/cjs/DateInput/DSDateInput.js +2 -1
- package/dist/cjs/DateInput/DSDateInput.js.map +2 -2
- package/dist/cjs/DateInput/props.js +17 -17
- package/dist/cjs/DateInput/props.js.map +2 -2
- package/dist/cjs/DateInputV2/components/DSDateInput.js +2 -2
- package/dist/cjs/DateInputV2/components/DSDateInput.js.map +2 -2
- package/dist/cjs/DateInputV2/components/props.js +11 -11
- package/dist/cjs/DateInputV2/components/props.js.map +2 -2
- package/dist/cjs/FormItem/DSFormItemLayout.js +2 -1
- package/dist/cjs/FormItem/DSFormItemLayout.js.map +2 -2
- package/dist/cjs/FormItem/Error/DSError.js +4 -4
- package/dist/cjs/FormItem/Error/DSError.js.map +2 -2
- package/dist/cjs/FormItem/props.js +44 -44
- package/dist/cjs/FormItem/props.js.map +2 -2
- package/dist/cjs/InputGroup/DSInputGroup.js +2 -2
- package/dist/cjs/InputGroup/DSInputGroup.js.map +2 -2
- package/dist/cjs/InputGroup/props.js +8 -8
- package/dist/cjs/InputGroup/props.js.map +2 -2
- package/dist/cjs/InputMask/DSInputMask.js +2 -2
- package/dist/cjs/InputMask/DSInputMask.js.map +2 -2
- package/dist/cjs/InputMask/mask_types/DateInputMask.js.map +1 -1
- package/dist/cjs/InputMask/mask_types/DateTimeInputMask.js.map +1 -1
- package/dist/cjs/InputMask/mask_types/DictionaryInputMask.js.map +1 -1
- package/dist/cjs/InputMask/mask_types/NumberInputMask.js.map +1 -1
- package/dist/cjs/InputMask/mask_types/PhoneInputMask.js.map +2 -2
- package/dist/cjs/InputMask/mask_types/PhoneInternationalInputMask.js.map +1 -1
- package/dist/cjs/InputMask/mask_types/SsnInputMask.js.map +1 -1
- package/dist/cjs/InputMask/mask_types/UsZipCodeInputMask.js.map +1 -1
- package/dist/cjs/InputMask/mask_types/ZipCodeSearchInputMask.js.map +1 -1
- package/dist/cjs/InputMask/props.js +31 -31
- package/dist/cjs/InputMask/props.js.map +2 -2
- package/dist/cjs/InputProtected/DSInputProtected.js +2 -2
- package/dist/cjs/InputProtected/DSInputProtected.js.map +2 -2
- package/dist/cjs/InputProtected/props.js +9 -9
- package/dist/cjs/InputProtected/props.js.map +2 -2
- package/dist/cjs/LargeInputText/DSLargeInputText.js +2 -2
- package/dist/cjs/LargeInputText/DSLargeInputText.js.map +2 -2
- package/dist/cjs/LargeInputText/props.js +28 -28
- package/dist/cjs/LargeInputText/props.js.map +2 -2
- package/dist/cjs/Radio/DSRadio.js +16 -16
- package/dist/cjs/Radio/DSRadio.js.map +2 -2
- package/dist/cjs/RadioGroup/DSRadioGroup.js +2 -2
- package/dist/cjs/RadioGroup/DSRadioGroup.js.map +2 -2
- package/dist/cjs/RadioGroup/props.js +11 -11
- package/dist/cjs/RadioGroup/props.js.map +2 -2
- package/dist/cjs/TimeInput/DSTimeInput.js +13 -13
- package/dist/cjs/TimeInput/DSTimeInput.js.map +2 -2
- package/dist/cjs/Toggle/DSToggle.js +13 -13
- package/dist/cjs/Toggle/DSToggle.js.map +2 -2
- package/dist/esm/CheckboxGroup/DSCheckboxGroup.js +1 -1
- package/dist/esm/CheckboxGroup/DSCheckboxGroup.js.map +1 -1
- package/dist/esm/CheckboxGroup/props.js +1 -1
- package/dist/esm/CheckboxGroup/props.js.map +1 -1
- package/dist/esm/DateInput/DSDateInput.js +2 -1
- package/dist/esm/DateInput/DSDateInput.js.map +2 -2
- package/dist/esm/DateInput/props.js +1 -1
- package/dist/esm/DateInput/props.js.map +1 -1
- package/dist/esm/DateInputV2/components/DSDateInput.js +1 -1
- package/dist/esm/DateInputV2/components/DSDateInput.js.map +1 -1
- package/dist/esm/DateInputV2/components/props.js +1 -1
- package/dist/esm/DateInputV2/components/props.js.map +1 -1
- package/dist/esm/FormItem/DSFormItemLayout.js +2 -1
- package/dist/esm/FormItem/DSFormItemLayout.js.map +2 -2
- package/dist/esm/FormItem/Error/DSError.js +1 -1
- package/dist/esm/FormItem/Error/DSError.js.map +1 -1
- package/dist/esm/FormItem/props.js +1 -1
- package/dist/esm/FormItem/props.js.map +1 -1
- package/dist/esm/InputGroup/DSInputGroup.js +1 -1
- package/dist/esm/InputGroup/DSInputGroup.js.map +1 -1
- package/dist/esm/InputGroup/props.js +1 -1
- package/dist/esm/InputGroup/props.js.map +1 -1
- package/dist/esm/InputMask/DSInputMask.js +1 -1
- package/dist/esm/InputMask/DSInputMask.js.map +1 -1
- package/dist/esm/InputMask/mask_types/DateInputMask.js.map +1 -1
- package/dist/esm/InputMask/mask_types/DateTimeInputMask.js.map +1 -1
- package/dist/esm/InputMask/mask_types/DictionaryInputMask.js.map +1 -1
- package/dist/esm/InputMask/mask_types/NumberInputMask.js.map +1 -1
- package/dist/esm/InputMask/mask_types/PhoneInputMask.js.map +2 -2
- package/dist/esm/InputMask/mask_types/PhoneInternationalInputMask.js.map +1 -1
- package/dist/esm/InputMask/mask_types/SsnInputMask.js.map +1 -1
- package/dist/esm/InputMask/mask_types/UsZipCodeInputMask.js.map +1 -1
- package/dist/esm/InputMask/mask_types/ZipCodeSearchInputMask.js.map +1 -1
- package/dist/esm/InputMask/props.js +1 -1
- package/dist/esm/InputMask/props.js.map +1 -1
- package/dist/esm/InputProtected/DSInputProtected.js +1 -1
- package/dist/esm/InputProtected/DSInputProtected.js.map +1 -1
- package/dist/esm/InputProtected/props.js +1 -1
- package/dist/esm/InputProtected/props.js.map +1 -1
- package/dist/esm/LargeInputText/DSLargeInputText.js +1 -1
- package/dist/esm/LargeInputText/DSLargeInputText.js.map +1 -1
- package/dist/esm/LargeInputText/props.js +1 -1
- package/dist/esm/LargeInputText/props.js.map +1 -1
- package/dist/esm/Radio/DSRadio.js +1 -1
- package/dist/esm/Radio/DSRadio.js.map +1 -1
- package/dist/esm/RadioGroup/DSRadioGroup.js +1 -1
- package/dist/esm/RadioGroup/DSRadioGroup.js.map +1 -1
- package/dist/esm/RadioGroup/props.js +1 -1
- package/dist/esm/RadioGroup/props.js.map +1 -1
- package/dist/esm/TimeInput/DSTimeInput.js +1 -1
- package/dist/esm/TimeInput/DSTimeInput.js.map +1 -1
- package/dist/esm/Toggle/DSToggle.js +1 -1
- package/dist/esm/Toggle/DSToggle.js.map +1 -1
- package/dist/types/CheckboxGroup/DSCheckboxGroup.d.ts +7 -7
- package/dist/types/CheckboxGroup/props.d.ts +6 -6
- package/dist/types/DateInput/DSDateInput.d.ts +16 -16
- package/dist/types/DateInput/props.d.ts +16 -16
- package/dist/types/DateInputV2/components/DSDateInput.d.ts +11 -11
- package/dist/types/DateInputV2/components/props.d.ts +10 -10
- package/dist/types/FormItem/DSFormItemLayout.d.ts +40 -40
- package/dist/types/FormItem/Error/DSError.d.ts +3 -3
- package/dist/types/FormItem/props.d.ts +39 -39
- package/dist/types/InputGroup/DSInputGroup.d.ts +8 -8
- package/dist/types/InputGroup/props.d.ts +7 -7
- package/dist/types/InputMask/DSInputMask.d.ts +31 -31
- package/dist/types/InputMask/props.d.ts +30 -30
- package/dist/types/InputProtected/DSInputProtected.d.ts +9 -9
- package/dist/types/InputProtected/props.d.ts +8 -8
- package/dist/types/LargeInputText/DSLargeInputText.d.ts +28 -28
- package/dist/types/LargeInputText/props.d.ts +27 -27
- package/dist/types/Radio/DSRadio.d.ts +15 -15
- package/dist/types/RadioGroup/DSRadioGroup.d.ts +8 -8
- package/dist/types/RadioGroup/props.d.ts +7 -7
- package/dist/types/TimeInput/DSTimeInput.d.ts +12 -12
- package/dist/types/Toggle/DSToggle.d.ts +12 -12
- package/package.json +14 -13
|
@@ -32,7 +32,7 @@ var React = __toESM(require("react"));
|
|
|
32
32
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
33
33
|
var import_react = __toESM(require("react"));
|
|
34
34
|
var import_prop_types = __toESM(require("prop-types"));
|
|
35
|
-
var
|
|
35
|
+
var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
|
|
36
36
|
var import_ds_shared = require("@elliemae/ds-shared");
|
|
37
37
|
var import_FormItem = require("../FormItem");
|
|
38
38
|
var import_Checkbox = require("../Checkbox");
|
|
@@ -111,7 +111,7 @@ const noop = () => null;
|
|
|
111
111
|
DSCheckboxGroup.propTypes = import_props.props;
|
|
112
112
|
DSCheckboxGroup.defaultProps = import_defaultProps.defaultProps;
|
|
113
113
|
DSCheckboxGroup.displayName = "DSCheckboxGroup";
|
|
114
|
-
const DSCheckboxGroupWithSchema = (0,
|
|
114
|
+
const DSCheckboxGroupWithSchema = (0, import_ds_props_helpers.describe)(DSCheckboxGroup);
|
|
115
115
|
DSCheckboxGroupWithSchema.propTypes = import_props.props;
|
|
116
116
|
CheckboxItem.propTypes = {
|
|
117
117
|
checked: import_prop_types.default.bool,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/CheckboxGroup/DSCheckboxGroup.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { describe } from '@elliemae/ds-
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADgBjB;AAhBN,mBAAkB;AAClB,wBAAsB;AACtB,
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { GroupItem, Group } from '@elliemae/ds-shared';\nimport { DSFormItemLayout } from '../FormItem';\nimport { DSCheckbox } from '../Checkbox';\nimport { props as cprops } from './props';\nimport { defaultProps } from './defaultProps';\n\n// todo: replace that for aggregatedClasses\nconst emClassPrefix = 'em-ds';\nconst baseClass = `${emClassPrefix}-checkbox-group`;\n\nconst CheckboxItem = (props) => (\n <GroupItem\n render={(context) => (\n <DSCheckbox\n {...props}\n checked={context.activeValue && context.activeValue.indexOf(props.value) !== -1}\n disabled={context.disabled || props.disabled}\n onChange={context.onChange}\n />\n )}\n />\n);\n\nconst DSCheckboxGroup = ({\n onChange,\n activeValue,\n children,\n disabled,\n orientation,\n truncateText,\n labelProps,\n containerProps,\n}) => {\n const checkRefs = [];\n const count = React.Children.count(children);\n const onKeyDown = (e, index) => {\n if (e.key === 'ArrowLeft' || e.key === 'ArrowUp') {\n if (index === 0) checkRefs[count - 1].focus();\n else checkRefs[index - 1].focus();\n }\n if (e.key === 'ArrowRight' || e.key === 'ArrowDown') {\n if (index === count - 1) checkRefs[0].focus();\n else checkRefs[index + 1].focus();\n }\n };\n const group = (\n <Group activeValue={activeValue} disabled={disabled} multiple onChange={onChange}>\n <div\n className={`${baseClass} ${baseClass}--${orientation}`}\n {...(labelProps && labelProps.labelText ? {} : containerProps)}\n role=\"group\"\n >\n {React.Children.map(\n children,\n (child, index) => (\n <CheckboxItem\n {...child.props}\n innerRef={(t) => {\n checkRefs.push(t);\n }}\n onKeyDown={(e) => onKeyDown(e, index)}\n />\n ),\n null,\n )}\n </div>\n </Group>\n );\n\n if (labelProps && labelProps.labelText) {\n return (\n <div className={`${baseClass}-form-item-layout-wrapper`} {...containerProps} role=\"group\">\n <DSFormItemLayout {...labelProps} inputComponent={group} onChange={onChange} truncateText={truncateText} />\n </div>\n );\n }\n return group;\n};\n\nconst noop = () => null;\n\nDSCheckboxGroup.propTypes = cprops;\nDSCheckboxGroup.defaultProps = defaultProps;\nDSCheckboxGroup.displayName = 'DSCheckboxGroup';\nconst DSCheckboxGroupWithSchema = describe(DSCheckboxGroup);\nDSCheckboxGroupWithSchema.propTypes = cprops;\n\nCheckboxItem.propTypes = {\n checked: PropTypes.bool,\n disabled: PropTypes.bool,\n onChange: PropTypes.func,\n};\n\nCheckboxItem.defaultProps = {\n checked: false,\n disabled: false,\n onChange: noop,\n};\n\nexport { DSCheckboxGroup, DSCheckboxGroupWithSchema };\n// export default DSCheckboxGroup;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADgBjB;AAhBN,mBAAkB;AAClB,wBAAsB;AACtB,8BAAyB;AACzB,uBAAiC;AACjC,sBAAiC;AACjC,sBAA2B;AAC3B,mBAAgC;AAChC,0BAA6B;AAG7B,MAAM,gBAAgB;AACtB,MAAM,YAAY,GAAG;AAErB,MAAM,eAAe,CAAC,UACpB;AAAA,EAAC;AAAA;AAAA,IACC,QAAQ,CAAC,YACP;AAAA,MAAC;AAAA;AAAA,QACE,GAAG;AAAA,QACJ,SAAS,QAAQ,eAAe,QAAQ,YAAY,QAAQ,MAAM,KAAK,MAAM;AAAA,QAC7E,UAAU,QAAQ,YAAY,MAAM;AAAA,QACpC,UAAU,QAAQ;AAAA;AAAA,IACpB;AAAA;AAEJ;AAGF,MAAM,kBAAkB,CAAC;AAAA,EACvB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,QAAM,YAAY,CAAC;AACnB,QAAM,QAAQ,aAAAA,QAAM,SAAS,MAAM,QAAQ;AAC3C,QAAM,YAAY,CAAC,GAAG,UAAU;AAC9B,QAAI,EAAE,QAAQ,eAAe,EAAE,QAAQ,WAAW;AAChD,UAAI,UAAU;AAAG,kBAAU,QAAQ,GAAG,MAAM;AAAA;AACvC,kBAAU,QAAQ,GAAG,MAAM;AAAA,IAClC;AACA,QAAI,EAAE,QAAQ,gBAAgB,EAAE,QAAQ,aAAa;AACnD,UAAI,UAAU,QAAQ;AAAG,kBAAU,GAAG,MAAM;AAAA;AACvC,kBAAU,QAAQ,GAAG,MAAM;AAAA,IAClC;AAAA,EACF;AACA,QAAM,QACJ,4CAAC,0BAAM,aAA0B,UAAoB,UAAQ,MAAC,UAC5D;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,GAAG,aAAa,cAAc;AAAA,MACxC,GAAI,cAAc,WAAW,YAAY,CAAC,IAAI;AAAA,MAC/C,MAAK;AAAA,MAEJ,uBAAAA,QAAM,SAAS;AAAA,QACd;AAAA,QACA,CAAC,OAAO,UACN;AAAA,UAAC;AAAA;AAAA,YACE,GAAG,MAAM;AAAA,YACV,UAAU,CAAC,MAAM;AACf,wBAAU,KAAK,CAAC;AAAA,YAClB;AAAA,YACA,WAAW,CAAC,MAAM,UAAU,GAAG,KAAK;AAAA;AAAA,QACtC;AAAA,QAEF;AAAA,MACF;AAAA;AAAA,EACF,GACF;AAGF,MAAI,cAAc,WAAW,WAAW;AACtC,WACE,4CAAC,SAAI,WAAW,GAAG,sCAAuC,GAAG,gBAAgB,MAAK,SAChF,sDAAC,oCAAkB,GAAG,YAAY,gBAAgB,OAAO,UAAoB,cAA4B,GAC3G;AAAA,EAEJ;AACA,SAAO;AACT;AAEA,MAAM,OAAO,MAAM;AAEnB,gBAAgB,YAAY,aAAAC;AAC5B,gBAAgB,eAAe;AAC/B,gBAAgB,cAAc;AAC9B,MAAM,gCAA4B,kCAAS,eAAe;AAC1D,0BAA0B,YAAY,aAAAA;AAEtC,aAAa,YAAY;AAAA,EACvB,SAAS,kBAAAC,QAAU;AAAA,EACnB,UAAU,kBAAAA,QAAU;AAAA,EACpB,UAAU,kBAAAA,QAAU;AACtB;AAEA,aAAa,eAAe;AAAA,EAC1B,SAAS;AAAA,EACT,UAAU;AAAA,EACV,UAAU;AACZ;",
|
|
6
6
|
"names": ["React", "cprops", "PropTypes"]
|
|
7
7
|
}
|
|
@@ -28,25 +28,25 @@ __export(props_exports, {
|
|
|
28
28
|
});
|
|
29
29
|
module.exports = __toCommonJS(props_exports);
|
|
30
30
|
var React = __toESM(require("react"));
|
|
31
|
-
var
|
|
31
|
+
var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
|
|
32
32
|
var import_Checkbox = require("../Checkbox");
|
|
33
33
|
var import_ds_shared = require("@elliemae/ds-shared");
|
|
34
34
|
const props = {
|
|
35
|
-
onChange:
|
|
36
|
-
activeValue:
|
|
35
|
+
onChange: import_ds_props_helpers.PropTypes.func.description("Allows a function that is triggered once the checkbox group changes"),
|
|
36
|
+
activeValue: import_ds_props_helpers.PropTypes.oneOfType([import_ds_props_helpers.PropTypes.string, import_ds_props_helpers.PropTypes.number, import_ds_props_helpers.PropTypes.array]).description(
|
|
37
37
|
"Default active value"
|
|
38
38
|
),
|
|
39
|
-
children:
|
|
40
|
-
|
|
41
|
-
type:
|
|
39
|
+
children: import_ds_props_helpers.PropTypes.arrayOf(
|
|
40
|
+
import_ds_props_helpers.PropTypes.shape({
|
|
41
|
+
type: import_ds_props_helpers.PropTypes.oneOf([import_Checkbox.DSCheckbox])
|
|
42
42
|
})
|
|
43
43
|
).description("Checkbox group items to show of type DSCheckbox"),
|
|
44
|
-
disabled:
|
|
45
|
-
orientation:
|
|
46
|
-
labelProps:
|
|
47
|
-
feedbackMessage:
|
|
48
|
-
labelText:
|
|
49
|
-
required:
|
|
44
|
+
disabled: import_ds_props_helpers.PropTypes.bool.description("Whether the checkbox group is disabled or not"),
|
|
45
|
+
orientation: import_ds_props_helpers.PropTypes.oneOf(import_ds_shared.orientation).description("['horizontal', 'vertical']"),
|
|
46
|
+
labelProps: import_ds_props_helpers.PropTypes.shape({
|
|
47
|
+
feedbackMessage: import_ds_props_helpers.PropTypes.string,
|
|
48
|
+
labelText: import_ds_props_helpers.PropTypes.oneOfType([import_ds_props_helpers.PropTypes.string, import_ds_props_helpers.PropTypes.element]),
|
|
49
|
+
required: import_ds_props_helpers.PropTypes.bool
|
|
50
50
|
}).description("label props")
|
|
51
51
|
};
|
|
52
52
|
//# sourceMappingURL=props.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/CheckboxGroup/props.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import { PropTypes } from '@elliemae/ds-
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,
|
|
4
|
+
"sourcesContent": ["import { PropTypes } from '@elliemae/ds-props-helpers';\nimport { DSCheckbox } from '../Checkbox';\nimport { orientation as checkboxGroupOrientation } from '@elliemae/ds-shared';\n\nexport const props = {\n /**\n * Allows a function that is triggered once the checkbox group changes\n */\n onChange: PropTypes.func.description('Allows a function that is triggered once the checkbox group changes'),\n /**\n * Default active value\n */\n activeValue: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.array]).description(\n 'Default active value',\n ),\n /**\n * Checkbox group items to show of type DSCheckbox\n */\n children: PropTypes.arrayOf(\n PropTypes.shape({\n type: PropTypes.oneOf([DSCheckbox]),\n }),\n ).description('Checkbox group items to show of type DSCheckbox'),\n /**\n * Whether the checkbox group is disabled or not\n */\n disabled: PropTypes.bool.description('Whether the checkbox group is disabled or not'),\n /**\n * ['horizontal', 'vertical']\n */\n orientation: PropTypes.oneOf(checkboxGroupOrientation).description(\"['horizontal', 'vertical']\"),\n /**\n * label props\n */\n labelProps: PropTypes.shape({\n feedbackMessage: PropTypes.string,\n labelText: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),\n required: PropTypes.bool,\n }).description('label props'),\n};\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,8BAA0B;AAC1B,sBAA2B;AAC3B,uBAAwD;AAEjD,MAAM,QAAQ;AAAA,EAInB,UAAU,kCAAU,KAAK,YAAY,qEAAqE;AAAA,EAI1G,aAAa,kCAAU,UAAU,CAAC,kCAAU,QAAQ,kCAAU,QAAQ,kCAAU,KAAK,CAAC,EAAE;AAAA,IACtF;AAAA,EACF;AAAA,EAIA,UAAU,kCAAU;AAAA,IAClB,kCAAU,MAAM;AAAA,MACd,MAAM,kCAAU,MAAM,CAAC,0BAAU,CAAC;AAAA,IACpC,CAAC;AAAA,EACH,EAAE,YAAY,iDAAiD;AAAA,EAI/D,UAAU,kCAAU,KAAK,YAAY,+CAA+C;AAAA,EAIpF,aAAa,kCAAU,MAAM,iBAAAA,WAAwB,EAAE,YAAY,4BAA4B;AAAA,EAI/F,YAAY,kCAAU,MAAM;AAAA,IAC1B,iBAAiB,kCAAU;AAAA,IAC3B,WAAW,kCAAU,UAAU,CAAC,kCAAU,QAAQ,kCAAU,OAAO,CAAC;AAAA,IACpE,UAAU,kCAAU;AAAA,EACtB,CAAC,EAAE,YAAY,aAAa;AAC9B;",
|
|
6
6
|
"names": ["checkboxGroupOrientation"]
|
|
7
7
|
}
|
|
@@ -34,6 +34,7 @@ var React = __toESM(require("react"));
|
|
|
34
34
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
35
|
var import_react = require("react");
|
|
36
36
|
var import_ds_utilities = require("@elliemae/ds-utilities");
|
|
37
|
+
var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
|
|
37
38
|
var import_Input = require("../Input");
|
|
38
39
|
var import_DateInputImpl = require("./components/DateInputImpl");
|
|
39
40
|
var import_props = require("./props");
|
|
@@ -110,7 +111,7 @@ const DSDateInput = ({
|
|
|
110
111
|
DSDateInput.propTypes = import_props.props;
|
|
111
112
|
DSDateInput.defaultProps = import_defaultProps.defaultProps;
|
|
112
113
|
DSDateInput.displayName = "DSDateInput";
|
|
113
|
-
const DSDateInputWithSchema = (0,
|
|
114
|
+
const DSDateInputWithSchema = (0, import_ds_props_helpers.describe)(DSDateInput).deprecated("use DateInputV2 instead");
|
|
114
115
|
DSDateInputWithSchema.propTypes = import_props.props;
|
|
115
116
|
var DSDateInput_default = DSDateInput;
|
|
116
117
|
//# sourceMappingURL=DSDateInput.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/DateInput/DSDateInput.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["/* eslint-disable max-lines */\nimport React, { useState, useCallback, useEffect } from 'react';\nimport {
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;
|
|
4
|
+
"sourcesContent": ["/* eslint-disable max-lines */\nimport React, { useState, useCallback, useEffect } from 'react';\nimport { runAll } from '@elliemae/ds-utilities';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { DSInput } from '../Input';\nimport { DateInputImpl } from './components/DateInputImpl';\nimport { props } from './props';\nimport { defaultProps } from './defaultProps';\n\nconst DSDateInput = ({\n innerRef,\n className,\n style,\n onFocus,\n onBlur,\n onClear,\n onChange,\n onKeyDown,\n onError,\n format,\n value,\n clearable,\n disabled,\n yearMaxRange,\n yearMinRange,\n containerProps,\n // TODO remove and keep `true` behavior ( PUI-4141 )\n INTERNAL_V2_NO_MUTATION,\n}) => {\n const [valueDate, setValueDate] = useState(value);\n\n useEffect(() => {\n if (value) {\n setValueDate(value);\n }\n }, [value]);\n\n const handleOnClear = useCallback(() => {\n runAll(onClear, setValueDate(''));\n }, [onClear]);\n\n const handleKeyDown = useCallback((e, date, inputOnKeyDown) => {\n inputOnKeyDown(e, date);\n }, []);\n\n const handleOnChange = useCallback((date, inputOnChange) => {\n setValueDate(date);\n inputOnChange(date);\n }, []);\n\n return (\n <DSInput\n className={`${className} input-date-input `}\n clearable={clearable}\n containerProps={containerProps}\n customInputType={({ onChange: inputOnChange, onKeyDown: inputOnKeyDown, ...restInputProps }) => (\n <DateInputImpl\n INTERNAL_V2_NO_MUTATION={INTERNAL_V2_NO_MUTATION}\n disabled={disabled}\n format={format}\n onChange={(date) => handleOnChange(date, inputOnChange)}\n onError={onError}\n onKeyDown={(e, date) => handleKeyDown(e, date, inputOnKeyDown)}\n value={valueDate}\n {...restInputProps}\n style={style}\n yearMaxRange={yearMaxRange}\n yearMinRange={yearMinRange}\n onFocus={onFocus}\n />\n )}\n disableTooltip={false}\n disabled={disabled}\n innerRef={innerRef}\n onBlur={onBlur}\n onChange={onChange}\n onKeyDown={onKeyDown}\n onClear={handleOnClear}\n value={valueDate}\n />\n );\n};\n\nDSDateInput.propTypes = props;\nDSDateInput.defaultProps = defaultProps;\nDSDateInput.displayName = 'DSDateInput';\nconst DSDateInputWithSchema = describe(DSDateInput).deprecated('use DateInputV2 instead');\nDSDateInputWithSchema.propTypes = props;\n\nexport { DateInputImpl, DSDateInputWithSchema, DSDateInput };\n\nexport default DSDateInput;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADwDf;AAvDR,mBAAwD;AACxD,0BAAuB;AACvB,8BAAyB;AACzB,mBAAwB;AACxB,2BAA8B;AAC9B,mBAAsB;AACtB,0BAA6B;AAE7B,MAAM,cAAc,CAAC;AAAA,EACnB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAEA;AACF,MAAM;AACJ,QAAM,CAAC,WAAW,YAAY,QAAI,uBAAS,KAAK;AAEhD,8BAAU,MAAM;AACd,QAAI,OAAO;AACT,mBAAa,KAAK;AAAA,IACpB;AAAA,EACF,GAAG,CAAC,KAAK,CAAC;AAEV,QAAM,oBAAgB,0BAAY,MAAM;AACtC,oCAAO,SAAS,aAAa,EAAE,CAAC;AAAA,EAClC,GAAG,CAAC,OAAO,CAAC;AAEZ,QAAM,oBAAgB,0BAAY,CAAC,GAAG,MAAM,mBAAmB;AAC7D,mBAAe,GAAG,IAAI;AAAA,EACxB,GAAG,CAAC,CAAC;AAEL,QAAM,qBAAiB,0BAAY,CAAC,MAAM,kBAAkB;AAC1D,iBAAa,IAAI;AACjB,kBAAc,IAAI;AAAA,EACpB,GAAG,CAAC,CAAC;AAEL,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,GAAG;AAAA,MACd;AAAA,MACA;AAAA,MACA,iBAAiB,CAAC,EAAE,UAAU,eAAe,WAAW,mBAAmB,eAAe,MACxF;AAAA,QAAC;AAAA;AAAA,UACC;AAAA,UACA;AAAA,UACA;AAAA,UACA,UAAU,CAAC,SAAS,eAAe,MAAM,aAAa;AAAA,UACtD;AAAA,UACA,WAAW,CAAC,GAAG,SAAS,cAAc,GAAG,MAAM,cAAc;AAAA,UAC7D,OAAO;AAAA,UACN,GAAG;AAAA,UACJ;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA;AAAA,MACF;AAAA,MAEF,gBAAgB;AAAA,MAChB;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,SAAS;AAAA,MACT,OAAO;AAAA;AAAA,EACT;AAEJ;AAEA,YAAY,YAAY;AACxB,YAAY,eAAe;AAC3B,YAAY,cAAc;AAC1B,MAAM,4BAAwB,kCAAS,WAAW,EAAE,WAAW,yBAAyB;AACxF,sBAAsB,YAAY;AAIlC,IAAO,sBAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -28,25 +28,25 @@ __export(props_exports, {
|
|
|
28
28
|
});
|
|
29
29
|
module.exports = __toCommonJS(props_exports);
|
|
30
30
|
var React = __toESM(require("react"));
|
|
31
|
-
var
|
|
31
|
+
var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
|
|
32
32
|
const props = {
|
|
33
|
-
containerProps:
|
|
34
|
-
innerRef:
|
|
33
|
+
containerProps: import_ds_props_helpers.PropTypes.object.description("props injected to date input wrapper node"),
|
|
34
|
+
innerRef: import_ds_props_helpers.PropTypes.oneOfType([import_ds_props_helpers.PropTypes.func, import_ds_props_helpers.PropTypes.shape({ current: import_ds_props_helpers.PropTypes.any })]).description(
|
|
35
35
|
"inner ref for input wrapper"
|
|
36
36
|
),
|
|
37
|
-
className:
|
|
38
|
-
style:
|
|
39
|
-
onBlur:
|
|
40
|
-
onFocus:
|
|
41
|
-
onClear:
|
|
42
|
-
onKeyDown:
|
|
43
|
-
onChange:
|
|
44
|
-
onError:
|
|
45
|
-
format:
|
|
46
|
-
value:
|
|
47
|
-
clearable:
|
|
48
|
-
disabled:
|
|
49
|
-
yearMaxRange:
|
|
50
|
-
yearMinRange:
|
|
37
|
+
className: import_ds_props_helpers.PropTypes.string.description("class for input"),
|
|
38
|
+
style: import_ds_props_helpers.PropTypes.object.description("Set style for the date input"),
|
|
39
|
+
onBlur: import_ds_props_helpers.PropTypes.func.description("Triggers the onBlur when focus moves out of date input"),
|
|
40
|
+
onFocus: import_ds_props_helpers.PropTypes.func.description("Triggers the onFocus when the component gets the focus"),
|
|
41
|
+
onClear: import_ds_props_helpers.PropTypes.func.description("Triggers the onClear"),
|
|
42
|
+
onKeyDown: import_ds_props_helpers.PropTypes.func.description("Triggers the onKeyDown"),
|
|
43
|
+
onChange: import_ds_props_helpers.PropTypes.func.description("Allows a function that is triggered once the date input changes"),
|
|
44
|
+
onError: import_ds_props_helpers.PropTypes.func.description("Triggers the onError once one input date is wrong"),
|
|
45
|
+
format: import_ds_props_helpers.PropTypes.string.description("Format type for date input"),
|
|
46
|
+
value: import_ds_props_helpers.PropTypes.string.description("Default value once the component is initialized"),
|
|
47
|
+
clearable: import_ds_props_helpers.PropTypes.bool.description("Whether the date input is clearable or not"),
|
|
48
|
+
disabled: import_ds_props_helpers.PropTypes.bool.description("Whether the date input is disabled or not"),
|
|
49
|
+
yearMaxRange: import_ds_props_helpers.PropTypes.number.description("Max year that can be accepted by the date input"),
|
|
50
|
+
yearMinRange: import_ds_props_helpers.PropTypes.number.description("Min year that can be accepted by the date input")
|
|
51
51
|
};
|
|
52
52
|
//# sourceMappingURL=props.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/DateInput/props.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import { PropTypes } from '@elliemae/ds-
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,
|
|
4
|
+
"sourcesContent": ["import { PropTypes } from '@elliemae/ds-props-helpers';\n\nexport const props = {\n /** props injected to date input wrapper node */\n containerProps: PropTypes.object.description('props injected to date input wrapper node'),\n /** inner ref for input wrapper */\n innerRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({ current: PropTypes.any })]).description(\n 'inner ref for input wrapper',\n ),\n /** class for input */\n className: PropTypes.string.description('class for input'),\n /**\n * Set style for the date input\n */\n style: PropTypes.object.description('Set style for the date input'),\n /**\n * Triggers the onBlur when focus moves out of date input\n */\n onBlur: PropTypes.func.description('Triggers the onBlur when focus moves out of date input'),\n /**\n * Triggers the onFocus when the component gets the focus\n */\n onFocus: PropTypes.func.description('Triggers the onFocus when the component gets the focus'),\n /**\n * Triggers the onClear\n */\n onClear: PropTypes.func.description('Triggers the onClear'),\n /**\n * Triggers the onKeyDown\n */\n onKeyDown: PropTypes.func.description('Triggers the onKeyDown'),\n /**\n * Allows a function that is triggered once the date input changes\n */\n onChange: PropTypes.func.description('Allows a function that is triggered once the date input changes'),\n /**\n * Triggers the onError once one input date is wrong\n */\n onError: PropTypes.func.description('Triggers the onError once one input date is wrong'),\n /**\n * Format type for date input\n */\n format: PropTypes.string.description('Format type for date input'),\n /**\n * Default value once the component is initialized\n */\n value: PropTypes.string.description('Default value once the component is initialized'),\n /**\n * Whether the date input is clearable or not\n */\n clearable: PropTypes.bool.description('Whether the date input is clearable or not'),\n /**\n * Whether the date input is disabled or not\n */\n disabled: PropTypes.bool.description('Whether the date input is disabled or not'),\n /**\n * Max year that can be accepted by the date input\n */\n yearMaxRange: PropTypes.number.description('Max year that can be accepted by the date input'),\n /**\n * Min year that can be accepted by the date input\n */\n yearMinRange: PropTypes.number.description('Min year that can be accepted by the date input'),\n};\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,8BAA0B;AAEnB,MAAM,QAAQ;AAAA,EAEnB,gBAAgB,kCAAU,OAAO,YAAY,2CAA2C;AAAA,EAExF,UAAU,kCAAU,UAAU,CAAC,kCAAU,MAAM,kCAAU,MAAM,EAAE,SAAS,kCAAU,IAAI,CAAC,CAAC,CAAC,EAAE;AAAA,IAC3F;AAAA,EACF;AAAA,EAEA,WAAW,kCAAU,OAAO,YAAY,iBAAiB;AAAA,EAIzD,OAAO,kCAAU,OAAO,YAAY,8BAA8B;AAAA,EAIlE,QAAQ,kCAAU,KAAK,YAAY,wDAAwD;AAAA,EAI3F,SAAS,kCAAU,KAAK,YAAY,wDAAwD;AAAA,EAI5F,SAAS,kCAAU,KAAK,YAAY,sBAAsB;AAAA,EAI1D,WAAW,kCAAU,KAAK,YAAY,wBAAwB;AAAA,EAI9D,UAAU,kCAAU,KAAK,YAAY,iEAAiE;AAAA,EAItG,SAAS,kCAAU,KAAK,YAAY,mDAAmD;AAAA,EAIvF,QAAQ,kCAAU,OAAO,YAAY,4BAA4B;AAAA,EAIjE,OAAO,kCAAU,OAAO,YAAY,iDAAiD;AAAA,EAIrF,WAAW,kCAAU,KAAK,YAAY,4CAA4C;AAAA,EAIlF,UAAU,kCAAU,KAAK,YAAY,2CAA2C;AAAA,EAIhF,cAAc,kCAAU,OAAO,YAAY,iDAAiD;AAAA,EAI5F,cAAc,kCAAU,OAAO,YAAY,iDAAiD;AAC9F;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -31,7 +31,7 @@ __export(DSDateInput_exports, {
|
|
|
31
31
|
module.exports = __toCommonJS(DSDateInput_exports);
|
|
32
32
|
var React = __toESM(require("react"));
|
|
33
33
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
34
|
-
var
|
|
34
|
+
var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
|
|
35
35
|
var import_Input = require("../../Input");
|
|
36
36
|
var import_DateInputs = require("./DateInputs");
|
|
37
37
|
var import_props = require("./props");
|
|
@@ -78,7 +78,7 @@ const DSDateInputV2 = ({
|
|
|
78
78
|
DSDateInputV2.defaultProps = import_props.defaultProps;
|
|
79
79
|
DSDateInputV2.propTypes = import_props.props;
|
|
80
80
|
DSDateInputV2.displayName = "DSDateInputV2";
|
|
81
|
-
const DSDateInputV2WithSchema = (0,
|
|
81
|
+
const DSDateInputV2WithSchema = (0, import_ds_props_helpers.describe)(DSDateInputV2);
|
|
82
82
|
DSDateInputV2WithSchema.propTypes = import_props.props;
|
|
83
83
|
var DSDateInput_default = DSDateInputV2;
|
|
84
84
|
//# sourceMappingURL=DSDateInput.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/DateInputV2/components/DSDateInput.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport { describe } from '@elliemae/ds-
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADuBjB;AAtBN,
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { DSInput } from '../../Input';\nimport { DateInputs } from './DateInputs';\nimport { props, defaultProps } from './props';\n\nconst DSDateInputV2 = ({\n onFocus,\n onBlur,\n onChange,\n onDateChange,\n onKeyDown,\n onError,\n value,\n disabled,\n containerProps,\n tabIndex,\n innerRef,\n}) => (\n <DSInput\n innerRef={innerRef}\n containerProps={containerProps}\n customInputType={({ innerRef: ir }) => (\n <DateInputs\n disabled={disabled}\n innerRef={ir}\n onBlur={onBlur}\n onChange={onChange}\n onDateChange={onDateChange}\n onCustomKeyDown={onKeyDown}\n onError={onError}\n time={value}\n tabIndex={tabIndex}\n />\n )}\n disableTooltip={false}\n disabled={disabled}\n onBlur={onBlur}\n onFocus={onFocus}\n onKeyDown={onKeyDown}\n value={value}\n tabIndex={tabIndex}\n />\n);\n\nDSDateInputV2.defaultProps = defaultProps;\n\nDSDateInputV2.propTypes = props;\nDSDateInputV2.displayName = 'DSDateInputV2';\nconst DSDateInputV2WithSchema = describe(DSDateInputV2);\nDSDateInputV2WithSchema.propTypes = props;\n\nexport { DSDateInputV2, DSDateInputV2WithSchema };\nexport default DSDateInputV2;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADuBjB;AAtBN,8BAAyB;AACzB,mBAAwB;AACxB,wBAA2B;AAC3B,mBAAoC;AAEpC,MAAM,gBAAgB,CAAC;AAAA,EACrB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MACE;AAAA,EAAC;AAAA;AAAA,IACC;AAAA,IACA;AAAA,IACA,iBAAiB,CAAC,EAAE,UAAU,GAAG,MAC/B;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,UAAU;AAAA,QACV;AAAA,QACA;AAAA,QACA;AAAA,QACA,iBAAiB;AAAA,QACjB;AAAA,QACA,MAAM;AAAA,QACN;AAAA;AAAA,IACF;AAAA,IAEF,gBAAgB;AAAA,IAChB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AACF;AAGF,cAAc,eAAe;AAE7B,cAAc,YAAY;AAC1B,cAAc,cAAc;AAC5B,MAAM,8BAA0B,kCAAS,aAAa;AACtD,wBAAwB,YAAY;AAGpC,IAAO,sBAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -29,21 +29,21 @@ __export(props_exports, {
|
|
|
29
29
|
});
|
|
30
30
|
module.exports = __toCommonJS(props_exports);
|
|
31
31
|
var React = __toESM(require("react"));
|
|
32
|
-
var
|
|
32
|
+
var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
|
|
33
33
|
var import_lodash = require("lodash");
|
|
34
34
|
const props = {
|
|
35
|
-
containerProps:
|
|
36
|
-
onBlur:
|
|
37
|
-
onFocus:
|
|
38
|
-
onKeyDown:
|
|
39
|
-
onChange:
|
|
40
|
-
onDateChange:
|
|
35
|
+
containerProps: import_ds_props_helpers.PropTypes.object.description("Props to inject to date input wrapper"),
|
|
36
|
+
onBlur: import_ds_props_helpers.PropTypes.func.description("Triggers the onBlur when focus moves out of date input"),
|
|
37
|
+
onFocus: import_ds_props_helpers.PropTypes.func.description("Triggers the onFocus when the component gets the focus"),
|
|
38
|
+
onKeyDown: import_ds_props_helpers.PropTypes.func.description("Triggers the onKeyDown"),
|
|
39
|
+
onChange: import_ds_props_helpers.PropTypes.func.description("Allows a function that is triggered once the date input changes"),
|
|
40
|
+
onDateChange: import_ds_props_helpers.PropTypes.func.description(
|
|
41
41
|
" Triggers when the date is completely set and only once you have blurred the corresponding input. For example if you are editing the day and the year and month are already set, once you completely set the day it will trigger."
|
|
42
42
|
),
|
|
43
|
-
onError:
|
|
44
|
-
value:
|
|
45
|
-
disabled:
|
|
46
|
-
tabIndex:
|
|
43
|
+
onError: import_ds_props_helpers.PropTypes.func.description("Triggers the onError once one input date is wrong"),
|
|
44
|
+
value: import_ds_props_helpers.PropTypes.string.description("Default value once the component is initialized MMDDYYYY"),
|
|
45
|
+
disabled: import_ds_props_helpers.PropTypes.bool.description("Whether the date input is disabled or not"),
|
|
46
|
+
tabIndex: import_ds_props_helpers.PropTypes.oneOfType([import_ds_props_helpers.PropTypes.number, import_ds_props_helpers.PropTypes.string]).description("tab index")
|
|
47
47
|
};
|
|
48
48
|
const defaultProps = {
|
|
49
49
|
onFocus: import_lodash.noop,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/DateInputV2/components/props.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import { PropTypes } from '@elliemae/ds-
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,
|
|
4
|
+
"sourcesContent": ["import { PropTypes } from '@elliemae/ds-props-helpers';\nimport { noop } from 'lodash';\n\nexport const props = {\n /** Props to inject to date input wrapper */\n containerProps: PropTypes.object.description('Props to inject to date input wrapper'),\n /**\n * Triggers the onBlur when focus moves out of date input\n */\n onBlur: PropTypes.func.description('Triggers the onBlur when focus moves out of date input'),\n /**\n * Triggers the onFocus when the component gets the focus\n */\n onFocus: PropTypes.func.description('Triggers the onFocus when the component gets the focus'),\n /**\n * Triggers the onKeyDown\n */\n onKeyDown: PropTypes.func.description('Triggers the onKeyDown'),\n /**\n * Allows a function that is triggered once the date input changes\n */\n onChange: PropTypes.func.description('Allows a function that is triggered once the date input changes'),\n /**\n * Triggers when the date is completely set and only once you have blurred the\n * corresponding input. For example if you are editing the day and the year and month\n * are already set, once you completely set the day it will trigger.\n */\n onDateChange: PropTypes.func.description(\n ' Triggers when the date is completely set and only once you have blurred the corresponding input. For example if you are editing the day and the year and month are already set, once you completely set the day it will trigger.',\n ),\n /**\n * Triggers the onError once one input date is wrong\n */\n onError: PropTypes.func.description('Triggers the onError once one input date is wrong'),\n /**\n * Default value once the component is initialized MMDDYYYY\n */\n value: PropTypes.string.description('Default value once the component is initialized MMDDYYYY'),\n /**\n * Whether the date input is disabled or not\n */\n disabled: PropTypes.bool.description('Whether the date input is disabled or not'),\n /**\n * tab index\n */\n tabIndex: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).description('tab index'),\n};\n\nexport const defaultProps = {\n onFocus: noop,\n onBlur: noop,\n onChange: noop,\n onDateChange: noop,\n onKeyDown: noop,\n onError: noop,\n value: '',\n disabled: false,\n containerProps: {},\n};\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,8BAA0B;AAC1B,oBAAqB;AAEd,MAAM,QAAQ;AAAA,EAEnB,gBAAgB,kCAAU,OAAO,YAAY,uCAAuC;AAAA,EAIpF,QAAQ,kCAAU,KAAK,YAAY,wDAAwD;AAAA,EAI3F,SAAS,kCAAU,KAAK,YAAY,wDAAwD;AAAA,EAI5F,WAAW,kCAAU,KAAK,YAAY,wBAAwB;AAAA,EAI9D,UAAU,kCAAU,KAAK,YAAY,iEAAiE;AAAA,EAMtG,cAAc,kCAAU,KAAK;AAAA,IAC3B;AAAA,EACF;AAAA,EAIA,SAAS,kCAAU,KAAK,YAAY,mDAAmD;AAAA,EAIvF,OAAO,kCAAU,OAAO,YAAY,0DAA0D;AAAA,EAI9F,UAAU,kCAAU,KAAK,YAAY,2CAA2C;AAAA,EAIhF,UAAU,kCAAU,UAAU,CAAC,kCAAU,QAAQ,kCAAU,MAAM,CAAC,EAAE,YAAY,WAAW;AAC7F;AAEO,MAAM,eAAe;AAAA,EAC1B,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,cAAc;AAAA,EACd,WAAW;AAAA,EACX,SAAS;AAAA,EACT,OAAO;AAAA,EACP,UAAU;AAAA,EACV,gBAAgB,CAAC;AACnB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -35,6 +35,7 @@ var React = __toESM(require("react"));
|
|
|
35
35
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
36
36
|
var import_ds_classnames = require("@elliemae/ds-classnames");
|
|
37
37
|
var import_ds_utilities = require("@elliemae/ds-utilities");
|
|
38
|
+
var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
|
|
38
39
|
var import_ds_shared = require("@elliemae/ds-shared");
|
|
39
40
|
var import_InputGroup = require("../InputGroup");
|
|
40
41
|
var import_FloatingLabelInput = require("../FloatingLabelInput");
|
|
@@ -212,7 +213,7 @@ const DSFormItemLayout = ({
|
|
|
212
213
|
DSFormItemLayout.propTypes = import_props.props;
|
|
213
214
|
DSFormItemLayout.defaultProps = import_defaultProps.defaultProps;
|
|
214
215
|
DSFormItemLayout.displayName = "DSFormItemLayout";
|
|
215
|
-
const DSFormItemLayoutWithSchema = (0,
|
|
216
|
+
const DSFormItemLayoutWithSchema = (0, import_ds_props_helpers.describe)(DSFormItemLayout);
|
|
216
217
|
DSFormItemLayoutWithSchema.propTypes = import_props.props;
|
|
217
218
|
var DSFormItemLayout_default = DSFormItemLayout;
|
|
218
219
|
//# sourceMappingURL=DSFormItemLayout.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/FormItem/DSFormItemLayout.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["/* eslint-disable complexity */\n/* eslint-disable max-lines */\nimport React from 'react';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport {
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;
|
|
4
|
+
"sourcesContent": ["/* eslint-disable complexity */\n/* eslint-disable max-lines */\nimport React from 'react';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport { getComponentFromProps } from '@elliemae/ds-utilities';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { Group } from '@elliemae/ds-shared';\nimport { DSInputGroup } from '../InputGroup';\nimport { DSFloatingLabelInput } from '../FloatingLabelInput';\nimport { DSError } from './Error/DSError';\nimport { props } from './props';\nimport { defaultProps } from './defaultProps';\nimport { FORMITEM_LAYOUT_VARIANTS } from './variants';\nimport { Suffix, SuffixInputWrapper, SuffixWrapper } from './Suffix/Suffix';\n// import { maskTypes } from '../InputMask/MaskTypes';\n\nexport { DSError, FORMITEM_LAYOUT_VARIANTS };\n\nconst blockName = 'form-item';\n\nconst Wrapper = aggregatedClasses('div')(blockName, null, ({ leftLabel, variant, fitContent, withHighlight }) => ({\n 'with-left-label': leftLabel,\n 'fit-content': fitContent,\n [variant]: variant,\n 'with-highlight': withHighlight,\n}));\n\nconst WrapperContent = aggregatedClasses('div')(`${blockName}-content`);\nconst WrapperContentGroup = aggregatedClasses('fieldset')(`${blockName}-content`);\n\nconst DSFormItemLayout = ({\n leftLabel,\n floatingLabel,\n name,\n id,\n value,\n inputComponent: InputComponent,\n labelComponent: LabelComponent,\n feedbackComponent: FeedbackComponent,\n labelText,\n truncateText,\n hasError,\n // orientation = 'vertical', // one of [ vertical, horizontal ]\n validationState, // one of [ success, error, warning ]\n validationMessage,\n feedbackMessage,\n readOnly,\n focused,\n type,\n autoFocus,\n disabled,\n onChange,\n onBlur,\n onFocus,\n onPaste,\n onKeyUp,\n extraInputProps,\n extraContent,\n leftAddon,\n rightAddon,\n required,\n optional,\n mask,\n useSubfix,\n suffix,\n variant,\n fitContent,\n withHighlight,\n containerProps,\n ...rest\n}) => {\n const isGroup = InputComponent.type === (<Group />).type;\n const floatingLabelOverride = floatingLabel === 'UNSAFE';\n const WrapperContentComp = !isGroup ? WrapperContent : WrapperContentGroup;\n\n // group the input props to not duplicate it inside the specific inputComponent (floating or not)\n const inputProps = {\n ...extraInputProps,\n disabled,\n hasError: hasError || validationState === 'error',\n id,\n name,\n type,\n autoFocus,\n onBlur,\n onChange,\n onFocus,\n onPaste,\n onKeyUp,\n readOnly,\n value,\n mask,\n useSubfix,\n variant,\n required,\n ...rest,\n };\n\n const renderInput = (Input) =>\n leftAddon || rightAddon ? (\n <DSInputGroup leftAddon={leftAddon} rightAddon={rightAddon} variant={variant}>\n {Input}\n </DSInputGroup>\n ) : (\n Input\n );\n\n const renderFloating = (\n <DSFloatingLabelInput\n {...inputProps}\n extraInputProps={extraInputProps}\n focused={focused}\n inputComponent={InputComponent}\n labelComponent={LabelComponent}\n labelText={labelText}\n optional={optional}\n required={required}\n variant={variant}\n />\n );\n\n const InputWithLabel = floatingLabelOverride ? (\n renderInput(renderFloating)\n ) : (\n <>\n <LabelComponent\n htmlFor={id || name}\n label={labelText}\n optional={optional}\n required={required}\n isGroup={isGroup}\n truncateText={truncateText}\n />\n {renderInput(getComponentFromProps(InputComponent, inputProps))}\n </>\n );\n\n if (suffix) {\n return (\n <Wrapper\n classProps={{\n disabled,\n readOnly,\n hasError,\n leftLabel,\n variant,\n fitContent,\n withHighlight,\n }}\n {...containerProps}\n >\n <SuffixWrapper className=\"suffix-wrapper\">\n <SuffixInputWrapper className=\"suffix-input-wrapper\">\n <WrapperContentComp>\n {InputWithLabel}\n {extraContent}\n </WrapperContentComp>\n <FeedbackComponent\n hasError={hasError}\n text={validationState || hasError ? validationMessage : feedbackMessage}\n />\n </SuffixInputWrapper>\n <Suffix\n className=\"suffix-label\"\n label={!!labelText}\n withFeedback={Boolean(validationMessage || feedbackMessage)}\n >\n {suffix}\n </Suffix>\n </SuffixWrapper>\n </Wrapper>\n );\n }\n\n return (\n <Wrapper\n classProps={{\n disabled,\n readOnly,\n hasError,\n leftLabel,\n variant,\n fitContent,\n withHighlight,\n }}\n {...containerProps}\n >\n <WrapperContentComp>\n {InputWithLabel}\n {extraContent}\n </WrapperContentComp>\n <FeedbackComponent hasError={hasError} text={validationState || hasError ? validationMessage : feedbackMessage} />\n </Wrapper>\n );\n};\n\nDSFormItemLayout.propTypes = props;\nDSFormItemLayout.defaultProps = defaultProps;\nDSFormItemLayout.displayName = 'DSFormItemLayout';\nconst DSFormItemLayoutWithSchema = describe(DSFormItemLayout);\nDSFormItemLayoutWithSchema.propTypes = props;\n\nexport default DSFormItemLayout;\nexport { DSFormItemLayoutWithSchema, DSFormItemLayout };\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -31,19 +31,19 @@ __export(DSError_exports, {
|
|
|
31
31
|
module.exports = __toCommonJS(DSError_exports);
|
|
32
32
|
var React = __toESM(require("react"));
|
|
33
33
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
34
|
-
var
|
|
34
|
+
var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
|
|
35
35
|
const DSError = ({ hasError = false, errorText = "Error" }) => {
|
|
36
36
|
if (!hasError)
|
|
37
37
|
return null;
|
|
38
38
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "em-ds-error", children: errorText });
|
|
39
39
|
};
|
|
40
40
|
const props = {
|
|
41
|
-
hasError:
|
|
42
|
-
errorText:
|
|
41
|
+
hasError: import_ds_props_helpers.PropTypes.bool.description("error state"),
|
|
42
|
+
errorText: import_ds_props_helpers.PropTypes.string.description("error label text")
|
|
43
43
|
};
|
|
44
44
|
DSError.propTypes = props;
|
|
45
45
|
DSError.displayName = "DSError";
|
|
46
|
-
const DSErrorWithSchema = (0,
|
|
46
|
+
const DSErrorWithSchema = (0, import_ds_props_helpers.describe)(DSError);
|
|
47
47
|
DSErrorWithSchema.propTypes = props;
|
|
48
48
|
var DSError_default = DSError;
|
|
49
49
|
//# sourceMappingURL=DSError.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/FormItem/Error/DSError.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADKd;AAJT,
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-props-helpers';\n\nconst DSError = ({ hasError = false, errorText = 'Error' }) => {\n if (!hasError) return null;\n return <div className=\"em-ds-error\">{errorText}</div>;\n};\n\nconst props = {\n /** error state */\n hasError: PropTypes.bool.description('error state'),\n /** error label text */\n errorText: PropTypes.string.description('error label text'),\n};\n\nDSError.propTypes = props;\nDSError.displayName = 'DSError';\nconst DSErrorWithSchema = describe(DSError);\n\nDSErrorWithSchema.propTypes = props;\n\nexport default DSError;\nexport { DSErrorWithSchema, DSError };\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADKd;AAJT,8BAAoC;AAEpC,MAAM,UAAU,CAAC,EAAE,WAAW,OAAO,YAAY,QAAQ,MAAM;AAC7D,MAAI,CAAC;AAAU,WAAO;AACtB,SAAO,4CAAC,SAAI,WAAU,eAAe,qBAAU;AACjD;AAEA,MAAM,QAAQ;AAAA,EAEZ,UAAU,kCAAU,KAAK,YAAY,aAAa;AAAA,EAElD,WAAW,kCAAU,OAAO,YAAY,kBAAkB;AAC5D;AAEA,QAAQ,YAAY;AACpB,QAAQ,cAAc;AACtB,MAAM,wBAAoB,kCAAS,OAAO;AAE1C,kBAAkB,YAAY;AAE9B,IAAO,kBAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -28,56 +28,56 @@ __export(props_exports, {
|
|
|
28
28
|
});
|
|
29
29
|
module.exports = __toCommonJS(props_exports);
|
|
30
30
|
var React = __toESM(require("react"));
|
|
31
|
-
var
|
|
31
|
+
var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
|
|
32
32
|
var import_variants = require("./variants");
|
|
33
33
|
const props = {
|
|
34
|
-
containerProps:
|
|
35
|
-
disableTooltip:
|
|
36
|
-
leftLabel:
|
|
37
|
-
floatingLabel:
|
|
38
|
-
id:
|
|
39
|
-
name:
|
|
40
|
-
value:
|
|
34
|
+
containerProps: import_ds_props_helpers.PropTypes.object.description("props to inject to form item layout wrapper"),
|
|
35
|
+
disableTooltip: import_ds_props_helpers.PropTypes.bool.description("Whether to show a tooltip or not when text does not fit").defaultValue(true),
|
|
36
|
+
leftLabel: import_ds_props_helpers.PropTypes.bool.description("position label on the left"),
|
|
37
|
+
floatingLabel: import_ds_props_helpers.PropTypes.bool.description("turn on floating label"),
|
|
38
|
+
id: import_ds_props_helpers.PropTypes.string.description("id for form item layout"),
|
|
39
|
+
name: import_ds_props_helpers.PropTypes.string.description("html name prop for form tags"),
|
|
40
|
+
value: import_ds_props_helpers.PropTypes.oneOfType([import_ds_props_helpers.PropTypes.string, import_ds_props_helpers.PropTypes.number, import_ds_props_helpers.PropTypes.object]).description(
|
|
41
41
|
"form item layout element value"
|
|
42
42
|
),
|
|
43
|
-
inputComponent:
|
|
44
|
-
isShowElipsisActive:
|
|
45
|
-
labelComponent:
|
|
46
|
-
feedbackComponent:
|
|
47
|
-
labelText:
|
|
48
|
-
hasError:
|
|
49
|
-
fitContent:
|
|
43
|
+
inputComponent: import_ds_props_helpers.PropTypes.oneOfType([import_ds_props_helpers.PropTypes.func, import_ds_props_helpers.PropTypes.element]).description("Any input component"),
|
|
44
|
+
isShowElipsisActive: import_ds_props_helpers.PropTypes.bool.description("Wheter to enable the ellipsis and tooltip functionality or not").defaultValue(true),
|
|
45
|
+
labelComponent: import_ds_props_helpers.PropTypes.func.description("Label component"),
|
|
46
|
+
feedbackComponent: import_ds_props_helpers.PropTypes.func.description("feedback component to embed on form item"),
|
|
47
|
+
labelText: import_ds_props_helpers.PropTypes.oneOfType([import_ds_props_helpers.PropTypes.string, import_ds_props_helpers.PropTypes.element]).description("label text"),
|
|
48
|
+
hasError: import_ds_props_helpers.PropTypes.bool.description("error state"),
|
|
49
|
+
fitContent: import_ds_props_helpers.PropTypes.bool.description(
|
|
50
50
|
"Adds fit content css property to the main container, making the layout width adapt to the input component"
|
|
51
51
|
),
|
|
52
|
-
validationState:
|
|
53
|
-
validationMessage:
|
|
54
|
-
feedbackMessage:
|
|
55
|
-
readOnly:
|
|
56
|
-
focused:
|
|
57
|
-
type:
|
|
58
|
-
autoFocus:
|
|
59
|
-
disabled:
|
|
60
|
-
onChange:
|
|
61
|
-
onBlur:
|
|
62
|
-
extraInputProps:
|
|
63
|
-
extraContent:
|
|
64
|
-
leftAddon:
|
|
65
|
-
rightAddon:
|
|
66
|
-
required:
|
|
67
|
-
optional:
|
|
68
|
-
onFocus:
|
|
69
|
-
onPaste:
|
|
70
|
-
truncateText:
|
|
71
|
-
onKeyUp:
|
|
72
|
-
mask:
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
52
|
+
validationState: import_ds_props_helpers.PropTypes.oneOf(["success", "error", "warning"]).description("validation state"),
|
|
53
|
+
validationMessage: import_ds_props_helpers.PropTypes.string.description("validation message"),
|
|
54
|
+
feedbackMessage: import_ds_props_helpers.PropTypes.string.description("feedback message"),
|
|
55
|
+
readOnly: import_ds_props_helpers.PropTypes.bool.description("read only form item"),
|
|
56
|
+
focused: import_ds_props_helpers.PropTypes.bool.description("focused state"),
|
|
57
|
+
type: import_ds_props_helpers.PropTypes.string.description("input type"),
|
|
58
|
+
autoFocus: import_ds_props_helpers.PropTypes.bool.description("auto focus input"),
|
|
59
|
+
disabled: import_ds_props_helpers.PropTypes.bool.description("disabled state"),
|
|
60
|
+
onChange: import_ds_props_helpers.PropTypes.func.description("on change handler"),
|
|
61
|
+
onBlur: import_ds_props_helpers.PropTypes.func.description("on blur handler"),
|
|
62
|
+
extraInputProps: import_ds_props_helpers.PropTypes.object.description("extra input props to inject"),
|
|
63
|
+
extraContent: import_ds_props_helpers.PropTypes.element.description("extra content"),
|
|
64
|
+
leftAddon: import_ds_props_helpers.PropTypes.element.description("left addon for form item"),
|
|
65
|
+
rightAddon: import_ds_props_helpers.PropTypes.element.description("right addon for form item"),
|
|
66
|
+
required: import_ds_props_helpers.PropTypes.bool.description("add required mark"),
|
|
67
|
+
optional: import_ds_props_helpers.PropTypes.bool.description("add optional mark"),
|
|
68
|
+
onFocus: import_ds_props_helpers.PropTypes.func.description("on focus handler"),
|
|
69
|
+
onPaste: import_ds_props_helpers.PropTypes.func.description("on paste handler"),
|
|
70
|
+
truncateText: import_ds_props_helpers.PropTypes.bool.description("add truncation and ellipsis"),
|
|
71
|
+
onKeyUp: import_ds_props_helpers.PropTypes.func.description("on key up event handler"),
|
|
72
|
+
mask: import_ds_props_helpers.PropTypes.oneOfType([
|
|
73
|
+
import_ds_props_helpers.PropTypes.string,
|
|
74
|
+
import_ds_props_helpers.PropTypes.func,
|
|
75
|
+
import_ds_props_helpers.PropTypes.object,
|
|
76
|
+
import_ds_props_helpers.PropTypes.array
|
|
77
77
|
]).description("mask for input mask component"),
|
|
78
|
-
useSubfix:
|
|
79
|
-
suffix:
|
|
80
|
-
variant:
|
|
78
|
+
useSubfix: import_ds_props_helpers.PropTypes.string.description("add suffix to input"),
|
|
79
|
+
suffix: import_ds_props_helpers.PropTypes.string.description("suffix for input"),
|
|
80
|
+
variant: import_ds_props_helpers.PropTypes.oneOf([
|
|
81
81
|
import_variants.FORMITEM_LAYOUT_VARIANTS.DEFAULT,
|
|
82
82
|
import_variants.FORMITEM_LAYOUT_VARIANTS.FOCUS,
|
|
83
83
|
import_variants.FORMITEM_LAYOUT_VARIANTS.ACTIVE,
|
|
@@ -85,6 +85,6 @@ const props = {
|
|
|
85
85
|
import_variants.FORMITEM_LAYOUT_VARIANTS.READ_ONLY,
|
|
86
86
|
import_variants.FORMITEM_LAYOUT_VARIANTS.OPTIONAL
|
|
87
87
|
]).description("form item layout type"),
|
|
88
|
-
withHighlight:
|
|
88
|
+
withHighlight: import_ds_props_helpers.PropTypes.bool.description("adds highlight style to the input component")
|
|
89
89
|
};
|
|
90
90
|
//# sourceMappingURL=props.js.map
|