@elliemae/ds-form 3.16.0-next.2 → 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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/Radio/DSRadio.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\n/* eslint-disable react/no-unknown-property */\nimport React, { useRef } from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\n/* eslint-disable react/no-unknown-property */\nimport React, { useRef } from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-props-helpers';\nimport { convertPropToCssClassName } from '@elliemae/ds-classnames';\nimport { Circle } from './Circle';\n\ninterface DSRadioT {\n [x: string]: unknown;\n innerRef?: React.MutableRefObject<HTMLInputElement>;\n containerProps?: { [x: string]: unknown };\n className?: string;\n style?: React.CSSProperties;\n labelText?: string;\n htmlFor?: string;\n hasError?: boolean;\n readOnly?: boolean;\n disabled?: boolean;\n checked?: boolean;\n value?: string;\n name?: string;\n onKeyDown?: React.KeyboardEventHandler<HTMLSpanElement>;\n onChange?: React.ChangeEventHandler<HTMLInputElement>;\n children?: React.ReactNode | React.ReactNode[];\n tabIndex?: number;\n}\n\nconst DSRadio = ({\n containerProps,\n className,\n style,\n labelText,\n htmlFor,\n hasError,\n readOnly,\n disabled,\n checked,\n value,\n name,\n onChange,\n children,\n tabIndex,\n innerRef,\n ...otherProps\n}: DSRadioT) => {\n // this will be solved when we move to styled components...\n // eslint-disable-next-line @typescript-eslint/unbound-method\n const { cssClassName, classNameElement } = convertPropToCssClassName('form-element-radio', className, {\n hasError,\n readOnly,\n disabled,\n });\n const checkRef = useRef<HTMLInputElement | null>(null);\n return (\n <div {...containerProps} className={cssClassName}>\n <label className={classNameElement('label')} htmlFor={htmlFor}>\n <input\n {...otherProps}\n ref={checkRef}\n aria-disabled={disabled}\n checked={disabled ? false : checked}\n className={classNameElement('input')}\n disabled={disabled}\n name={name}\n onChange={(e) => {\n if (!readOnly && !disabled) {\n onChange(e);\n }\n }}\n readOnly={readOnly}\n tabIndex={-1}\n type=\"radio\"\n value={value}\n />\n <span\n ref={innerRef}\n aria-checked={checked}\n aria-disabled={disabled}\n className={classNameElement('input-button')}\n onKeyDown={(e) => {\n // really really bad pattern...\n // overwriting the target to point to the hidden input because the focus is on the span and not on the input...\n // we will solve this with a v2 of this when we move to controlled + styled components...\n e.target = checkRef.current;\n if (disabled) return;\n if (e.key === 'Enter' || e.keyCode === 32) {\n onChange(e);\n } else if (otherProps.onKeyDown) {\n otherProps.onKeyDown(e);\n }\n }}\n role=\"radio\"\n style={style}\n tabIndex={disabled ? -1 : tabIndex}\n // value={value} // should be unused?\n >\n <Circle checked={checked} />\n </span>\n <span className={classNameElement('label-text')}>{labelText}</span>\n </label>\n {children && <div className={classNameElement('radio-children')}>{children}</div>}\n </div>\n );\n};\n\nDSRadio.defaultProps = {\n containerProps: {},\n className: '',\n hasError: false,\n readOnly: false,\n disabled: false,\n checked: false,\n name: '',\n onChange: () => null,\n children: null,\n tabIndex: 0,\n};\n\nconst radioProps = {\n /** Injected props to wrapper element of component */\n containerProps: PropTypes.object.description('Injected props to wrapper element of component'),\n /** css class prop */\n className: PropTypes.string.description('css class prop'),\n /** name property to manage form */\n name: PropTypes.string.description('name property to manage form'),\n /**\n * Displayable label for the radio\n */\n labelText: PropTypes.string.description('Displayable label for the radio'),\n /** HTMLFOR property to manage form */\n htmlFor: PropTypes.element.description('HTMLFOR property to manage form'),\n /**\n * Whether the radio has error or not\n */\n hasError: PropTypes.bool.description('Whether the radio has error or not'),\n /**\n * Whether the radio is read only or not\n */\n readOnly: PropTypes.bool.description('Whether the radio is read only or not'),\n /**\n * Whether the radio is disabled or not\n */\n disabled: PropTypes.bool.description('Whether the radio is disabled or not'),\n /**\n * Whether the radio is checked or not\n */\n checked: PropTypes.bool.description('Whether the radio is checked or not'),\n /**\n * Value that takes the checkbox if it is checked\n */\n value: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.object]).description(\n 'Value that takes the checkbox if it is checked',\n ).isRequired,\n /**\n * Allows a function that is triggered once the radio changes\n */\n onChange: PropTypes.func.description('Allows a function that is triggered once the radio changes'),\n /**\n * Optional, if you want a checkbox customized\n */\n children: PropTypes.node.description('Optional, if you want a checkbox customized'),\n /** HTML tabindex to manage focus */\n tabIndex: PropTypes.number.description('HTML tabindex to manage focus'),\n /** style override object */\n style: PropTypes.object.description('style override object'),\n};\n\nDSRadio.propTypes = radioProps;\nDSRadio.displayName = 'DSRadio';\nconst DSRadioWithSchema = describe(DSRadio);\nDSRadioWithSchema.propTypes = radioProps;\n\nexport { DSRadio, DSRadioWithSchema };\n\nexport default DSRadio;\n"],
|
|
5
5
|
"mappings": "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",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import React2 from "react";
|
|
4
|
-
import { describe } from "@elliemae/ds-
|
|
4
|
+
import { describe } from "@elliemae/ds-props-helpers";
|
|
5
5
|
import { GroupItem, Group } from "@elliemae/ds-shared";
|
|
6
6
|
import { DSFormItemLayout } from "../FormItem";
|
|
7
7
|
import { DSRadio } from "../Radio";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/RadioGroup/DSRadioGroup.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { describe } from '@elliemae/ds-
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { GroupItem, Group } from '@elliemae/ds-shared';\nimport { DSFormItemLayout } from '../FormItem';\nimport { DSRadio } from '../Radio';\nimport { props as rprops } from './props';\nimport { defaultProps } from './defaultProps';\n\nconst emClassPrefix = 'em-ds';\nconst baseClass = `${emClassPrefix}-radio-group`;\n\nconst RadioItem = (props) => (\n <GroupItem\n render={(context) => (\n <DSRadio\n {...props}\n checked={context.activeValue === props.value}\n disabled={context.disabled || props.disabled}\n onChange={context.onChange}\n />\n )}\n />\n);\n\nconst DSRadioGroup = ({\n containerProps,\n onChange,\n activeValue,\n children,\n orientation,\n disabled,\n truncateText,\n labelProps,\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} onChange={onChange}>\n <div\n data-testid=\"ds-radiogroup\"\n {...(labelProps && labelProps.labelText ? {} : containerProps)}\n className={`${baseClass} ${baseClass}--${orientation}`}\n role=\"group\"\n >\n {React.Children.map(\n children,\n (child, index) => (\n <RadioItem\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\nDSRadioGroup.propTypes = rprops;\nDSRadioGroup.defaultProps = defaultProps;\nDSRadioGroup.displayName = 'DSRadioGroup';\nconst DSRadioGroupWithSchema = describe(DSRadioGroup);\nDSRadioGroupWithSchema.propTypes = rprops;\n\nexport { DSRadioGroup, DSRadioGroupWithSchema };\n\nexport default DSRadioGroup;\n"],
|
|
5
5
|
"mappings": "AAAA,YAAY,WAAW;ACcjB;AAdN,OAAOA,YAAW;AAClB,SAAS,gBAAgB;AACzB,SAAS,WAAW,aAAa;AACjC,SAAS,wBAAwB;AACjC,SAAS,eAAe;AACxB,SAAS,SAAS,cAAc;AAChC,SAAS,oBAAoB;AAE7B,MAAM,gBAAgB;AACtB,MAAM,YAAY,GAAG;AAErB,MAAM,YAAY,CAAC,UACjB;AAAA,EAAC;AAAA;AAAA,IACC,QAAQ,CAAC,YACP;AAAA,MAAC;AAAA;AAAA,QACE,GAAG;AAAA,QACJ,SAAS,QAAQ,gBAAgB,MAAM;AAAA,QACvC,UAAU,QAAQ,YAAY,MAAM;AAAA,QACpC,UAAU,QAAQ;AAAA;AAAA,IACpB;AAAA;AAEJ;AAGF,MAAM,eAAe,CAAC;AAAA,EACpB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,QAAM,YAAY,CAAC;AACnB,QAAM,QAAQA,OAAM,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,oBAAC,SAAM,aAA0B,UAAoB,UACnD;AAAA,IAAC;AAAA;AAAA,MACC,eAAY;AAAA,MACX,GAAI,cAAc,WAAW,YAAY,CAAC,IAAI;AAAA,MAC/C,WAAW,GAAG,aAAa,cAAc;AAAA,MACzC,MAAK;AAAA,MAEJ,UAAAA,OAAM,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,oBAAC,SAAI,WAAW,GAAG,sCAAuC,GAAG,gBAAgB,MAAK,SAChF,8BAAC,oBAAkB,GAAG,YAAY,gBAAgB,OAAO,UAAoB,cAA4B,GAC3G;AAAA,EAEJ;AACA,SAAO;AACT;AAEA,aAAa,YAAY;AACzB,aAAa,eAAe;AAC5B,aAAa,cAAc;AAC3B,MAAM,yBAAyB,SAAS,YAAY;AACpD,uBAAuB,YAAY;AAInC,IAAO,uBAAQ;",
|
|
6
6
|
"names": ["React"]
|
|
7
7
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { PropTypes } from "@elliemae/ds-
|
|
2
|
+
import { PropTypes } from "@elliemae/ds-props-helpers";
|
|
3
3
|
import { orientation as radioGroupOrientation } from "@elliemae/ds-shared";
|
|
4
4
|
const props = {
|
|
5
5
|
containerProps: PropTypes.object.description("Inject props to component wrapper"),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/RadioGroup/props.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { PropTypes } from '@elliemae/ds-
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { PropTypes } from '@elliemae/ds-props-helpers';\nimport { orientation as radioGroupOrientation } from '@elliemae/ds-shared';\n\nexport const props = {\n /** Inject props to component wrapper */\n containerProps: PropTypes.object.description('Inject props to component wrapper'),\n /**\n * Allows a function that is triggered once the radio group changes\n */\n onChange: PropTypes.func.description('Allows a function that is triggered once the radio group changes'),\n /**\n * Selected default active value\n */\n activeValue: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).description('Selected default active value'),\n /**\n * Radio group items to show of type DSRadio\n */\n children: PropTypes.arrayOf(PropTypes.element).isRequired.description('Radio group items to show of type DSRadio'),\n /**\n * ['horizontal', 'vertical']\n */\n orientation: PropTypes.oneOf(radioGroupOrientation).description(\"['horizontal', 'vertical']\"),\n /**\n * Whether the radio group is disabled or not\n */\n disabled: PropTypes.bool.description(''),\n labelProps: PropTypes.shape({\n feedbackMessage: PropTypes.string,\n labelText: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),\n required: PropTypes.bool,\n }).description('Whether the radio group is disabled or not'),\n};\n"],
|
|
5
5
|
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,iBAAiB;AAC1B,SAAS,eAAe,6BAA6B;AAE9C,MAAM,QAAQ;AAAA,EAEnB,gBAAgB,UAAU,OAAO,YAAY,mCAAmC;AAAA,EAIhF,UAAU,UAAU,KAAK,YAAY,kEAAkE;AAAA,EAIvG,aAAa,UAAU,UAAU,CAAC,UAAU,QAAQ,UAAU,MAAM,CAAC,EAAE,YAAY,+BAA+B;AAAA,EAIlH,UAAU,UAAU,QAAQ,UAAU,OAAO,EAAE,WAAW,YAAY,2CAA2C;AAAA,EAIjH,aAAa,UAAU,MAAM,qBAAqB,EAAE,YAAY,4BAA4B;AAAA,EAI5F,UAAU,UAAU,KAAK,YAAY,EAAE;AAAA,EACvC,YAAY,UAAU,MAAM;AAAA,IAC1B,iBAAiB,UAAU;AAAA,IAC3B,WAAW,UAAU,UAAU,CAAC,UAAU,QAAQ,UAAU,OAAO,CAAC;AAAA,IACpE,UAAU,UAAU;AAAA,EACtB,CAAC,EAAE,YAAY,4CAA4C;AAC7D;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import { PropTypes, describe } from "@elliemae/ds-
|
|
3
|
+
import { PropTypes, describe } from "@elliemae/ds-props-helpers";
|
|
4
4
|
import { DSInput } from "../Input";
|
|
5
5
|
import { TimeInputImpl } from "./TimeInputImpl";
|
|
6
6
|
const DSTimeInput = ({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/TimeInput/DSTimeInput.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-props-helpers';\nimport { DSInput } from '../Input';\nimport { TimeInputImpl } from './TimeInputImpl';\n\nconst DSTimeInput = ({\n containerProps = {},\n innerRef,\n className = '',\n style = {},\n onChange = () => null,\n format,\n value = '',\n clearable = false,\n disabled = false,\n ariaLabel = 'Time input',\n}) => (\n <DSInput\n className={className}\n clearable={clearable}\n containerProps={containerProps}\n customInputType={({ onChange: inputOnChange, ...restInputProps }) => (\n <TimeInputImpl\n aria-label={ariaLabel}\n disabled={disabled}\n format={format}\n onChange={(time) => inputOnChange(time)}\n {...restInputProps}\n style={style}\n />\n )}\n disabled={disabled}\n innerRef={innerRef}\n isShowElipsisActive={false}\n onChange={onChange}\n onClear={() => onChange(null)}\n value={value}\n />\n);\n\nDSTimeInput.defaultProps = {\n format: 'hh:mm:ss',\n disabled: false,\n clearable: true,\n};\n\nconst props = {\n /** Injected props to wrapper element of component */\n containerProps: PropTypes.object.description('Injected props to wrapper element of component'),\n /**\n * Allows a function that is triggered once the time input changes\n */\n onChange: PropTypes.func.description('Allows a function that is triggered once the time input changes'),\n /** a11y aria label */\n 'aria-label': PropTypes.string.description('a11y aria label'),\n /** style object for time input wrapper */\n style: PropTypes.object.description('style object for time input wrapper'),\n /** inner ref for time inpot wrapper */\n innerRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({ current: PropTypes.any })]).description(\n 'inner ref for time input wrapper',\n ),\n /** class for time input */\n className: PropTypes.string.description('class for time input'),\n /**\n * Valid time format\n */\n format: PropTypes.string.description('Valid time format'),\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 time input is clearable or not\n */\n clearable: PropTypes.bool.description('Whether the time input is clearable or not'),\n /**\n * Whether the time input is disabled or not\n */\n disabled: PropTypes.bool.description('Whether the time input is disabled or not'),\n /**\n * Aria label\n */\n ariaLabel: PropTypes.string.description('Aria label'),\n};\n\nDSTimeInput.propTypes = props;\nDSTimeInput.displayName = 'DSTimeInput';\nconst DSTimeInputWithSchema = describe(DSTimeInput);\nDSTimeInputWithSchema.propTypes = props;\n\nexport { TimeInputImpl, DSTimeInputWithSchema, DSTimeInput };\n\nexport default DSTimeInput;\n"],
|
|
5
5
|
"mappings": "AAAA,YAAY,WAAW;ACsBjB;AArBN,SAAS,WAAW,gBAAgB;AACpC,SAAS,eAAe;AACxB,SAAS,qBAAqB;AAE9B,MAAM,cAAc,CAAC;AAAA,EACnB,iBAAiB,CAAC;AAAA,EAClB;AAAA,EACA,YAAY;AAAA,EACZ,QAAQ,CAAC;AAAA,EACT,WAAW,MAAM;AAAA,EACjB;AAAA,EACA,QAAQ;AAAA,EACR,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,YAAY;AACd,MACE;AAAA,EAAC;AAAA;AAAA,IACC;AAAA,IACA;AAAA,IACA;AAAA,IACA,iBAAiB,CAAC,EAAE,UAAU,kBAAkB,eAAe,MAC7D;AAAA,MAAC;AAAA;AAAA,QACC,cAAY;AAAA,QACZ;AAAA,QACA;AAAA,QACA,UAAU,CAAC,SAAS,cAAc,IAAI;AAAA,QACrC,GAAG;AAAA,QACJ;AAAA;AAAA,IACF;AAAA,IAEF;AAAA,IACA;AAAA,IACA,qBAAqB;AAAA,IACrB;AAAA,IACA,SAAS,MAAM,SAAS,IAAI;AAAA,IAC5B;AAAA;AACF;AAGF,YAAY,eAAe;AAAA,EACzB,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,WAAW;AACb;AAEA,MAAM,QAAQ;AAAA,EAEZ,gBAAgB,UAAU,OAAO,YAAY,gDAAgD;AAAA,EAI7F,UAAU,UAAU,KAAK,YAAY,iEAAiE;AAAA,EAEtG,cAAc,UAAU,OAAO,YAAY,iBAAiB;AAAA,EAE5D,OAAO,UAAU,OAAO,YAAY,qCAAqC;AAAA,EAEzE,UAAU,UAAU,UAAU,CAAC,UAAU,MAAM,UAAU,MAAM,EAAE,SAAS,UAAU,IAAI,CAAC,CAAC,CAAC,EAAE;AAAA,IAC3F;AAAA,EACF;AAAA,EAEA,WAAW,UAAU,OAAO,YAAY,sBAAsB;AAAA,EAI9D,QAAQ,UAAU,OAAO,YAAY,mBAAmB;AAAA,EAIxD,OAAO,UAAU,OAAO,YAAY,iDAAiD;AAAA,EAIrF,WAAW,UAAU,KAAK,YAAY,4CAA4C;AAAA,EAIlF,UAAU,UAAU,KAAK,YAAY,2CAA2C;AAAA,EAIhF,WAAW,UAAU,OAAO,YAAY,YAAY;AACtD;AAEA,YAAY,YAAY;AACxB,YAAY,cAAc;AAC1B,MAAM,wBAAwB,SAAS,WAAW;AAClD,sBAAsB,YAAY;AAIlC,IAAO,sBAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import { PropTypes, describe } from "@elliemae/ds-
|
|
3
|
+
import { PropTypes, describe } from "@elliemae/ds-props-helpers";
|
|
4
4
|
import { DSToggleImpl } from "./DSToggleImpl";
|
|
5
5
|
import { dsBasicSizes } from "@elliemae/ds-shared";
|
|
6
6
|
const DSToggle = ({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/Toggle/DSToggle.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { PropTypes, describe } from '@elliemae/ds-props-helpers';\nimport { DSToggleImpl } from './DSToggleImpl';\nimport { dsBasicSizes } from '@elliemae/ds-shared';\n\nconst DSToggle = ({\n containerProps,\n hasError,\n readOnly,\n disabled,\n checked,\n labelOn,\n labelOff,\n name,\n value,\n size,\n ...otherProps\n}) => (\n <DSToggleImpl\n {...otherProps}\n checked={checked}\n containerProps={containerProps}\n disabled={disabled}\n hasError={hasError}\n labelOff={labelOff}\n labelOn={labelOn}\n name={name}\n readOnly={readOnly}\n size={size}\n value={value}\n />\n);\n\nDSToggle.defaultProps = {\n labelOn: 'ON',\n labelOff: 'OFF',\n size: 's',\n hasError: false,\n readOnly: false,\n disabled: false,\n checked: undefined,\n};\n\nconst props = {\n /**\n * Set of Properties attached to the main container\n */\n containerProps: PropTypes.shape({}).description('Set of Properties attached to the main container'),\n /**\n * Whether the toggle has error or not\n */\n hasError: PropTypes.bool.description('Whether the toggle has error or not'),\n /**\n * Whether the toggle is read only or not\n */\n readOnly: PropTypes.bool.description('Whether the toggle is read only or not'),\n /**\n * Whether the toggle is disabled or not\n */\n disabled: PropTypes.bool.description('Whether the toggle is disabled or not'),\n /**\n * Whether the toggle is checked or not\n */\n checked: PropTypes.bool.description('Whether the toggle is checked or not'),\n /**\n * Allows a function that is triggered once the toggle changes\n */\n onChange: PropTypes.func.description('Allows a function that is triggered once the toggle changes'),\n /**\n * Label to show when the toggle is ON\n */\n labelOn: PropTypes.string.description('Label to show when the toggle is ON'),\n /**\n * Label to show when the toggle is OFF\n */\n labelOff: PropTypes.string.description('Label to show when the toggle is OFF'),\n /**\n * Default value once the component is initialized\n */\n value: PropTypes.string.description('Default value once the component is initialized'),\n /**\n * ['s', 'm', 'l']\n */\n size: PropTypes.oneOf(dsBasicSizes).description(\"['s', 'm', 'l']\"),\n /**\n * Input name\n */\n name: PropTypes.string.description('Input name'),\n};\n\nDSToggle.propTypes = props;\nDSToggle.displayName = 'DSToggle';\nconst DSToggleWithSchema = describe(DSToggle);\n\nDSToggleWithSchema.propTypes = props;\n\nexport default DSToggle;\n\nexport { DSToggleWithSchema, DSToggle };\n"],
|
|
5
5
|
"mappings": "AAAA,YAAY,WAAW;ACkBrB;AAjBF,SAAS,WAAW,gBAAgB;AACpC,SAAS,oBAAoB;AAC7B,SAAS,oBAAoB;AAE7B,MAAM,WAAW,CAAC;AAAA,EAChB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,KACG;AACL,MACE;AAAA,EAAC;AAAA;AAAA,IACE,GAAG;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AACF;AAGF,SAAS,eAAe;AAAA,EACtB,SAAS;AAAA,EACT,UAAU;AAAA,EACV,MAAM;AAAA,EACN,UAAU;AAAA,EACV,UAAU;AAAA,EACV,UAAU;AAAA,EACV,SAAS;AACX;AAEA,MAAM,QAAQ;AAAA,EAIZ,gBAAgB,UAAU,MAAM,CAAC,CAAC,EAAE,YAAY,kDAAkD;AAAA,EAIlG,UAAU,UAAU,KAAK,YAAY,qCAAqC;AAAA,EAI1E,UAAU,UAAU,KAAK,YAAY,wCAAwC;AAAA,EAI7E,UAAU,UAAU,KAAK,YAAY,uCAAuC;AAAA,EAI5E,SAAS,UAAU,KAAK,YAAY,sCAAsC;AAAA,EAI1E,UAAU,UAAU,KAAK,YAAY,6DAA6D;AAAA,EAIlG,SAAS,UAAU,OAAO,YAAY,qCAAqC;AAAA,EAI3E,UAAU,UAAU,OAAO,YAAY,sCAAsC;AAAA,EAI7E,OAAO,UAAU,OAAO,YAAY,iDAAiD;AAAA,EAIrF,MAAM,UAAU,MAAM,YAAY,EAAE,YAAY,iBAAiB;AAAA,EAIjE,MAAM,UAAU,OAAO,YAAY,YAAY;AACjD;AAEA,SAAS,YAAY;AACrB,SAAS,cAAc;AACvB,MAAM,qBAAqB,SAAS,QAAQ;AAE5C,mBAAmB,YAAY;AAE/B,IAAO,mBAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -10,12 +10,12 @@ declare const DSCheckboxGroup: {
|
|
|
10
10
|
containerProps: any;
|
|
11
11
|
}): JSX.Element;
|
|
12
12
|
propTypes: {
|
|
13
|
-
onChange: import("@elliemae/ds-
|
|
14
|
-
activeValue: import("@elliemae/ds-
|
|
15
|
-
children: import("@elliemae/ds-
|
|
16
|
-
disabled: import("@elliemae/ds-
|
|
17
|
-
orientation: import("@elliemae/ds-
|
|
18
|
-
labelProps: import("@elliemae/ds-
|
|
13
|
+
onChange: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
14
|
+
activeValue: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
15
|
+
children: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
16
|
+
disabled: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
17
|
+
orientation: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
18
|
+
labelProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
19
19
|
};
|
|
20
20
|
defaultProps: {
|
|
21
21
|
onChange: () => null;
|
|
@@ -33,7 +33,7 @@ declare const DSCheckboxGroup: {
|
|
|
33
33
|
};
|
|
34
34
|
displayName: string;
|
|
35
35
|
};
|
|
36
|
-
declare const DSCheckboxGroupWithSchema: import("@elliemae/ds-
|
|
36
|
+
declare const DSCheckboxGroupWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").DocumentedReactComponent<{
|
|
37
37
|
onChange: any;
|
|
38
38
|
activeValue: any;
|
|
39
39
|
children: any;
|
|
@@ -2,25 +2,25 @@ export declare const props: {
|
|
|
2
2
|
/**
|
|
3
3
|
* Allows a function that is triggered once the checkbox group changes
|
|
4
4
|
*/
|
|
5
|
-
onChange: import("@elliemae/ds-
|
|
5
|
+
onChange: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
6
6
|
/**
|
|
7
7
|
* Default active value
|
|
8
8
|
*/
|
|
9
|
-
activeValue: import("@elliemae/ds-
|
|
9
|
+
activeValue: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
10
10
|
/**
|
|
11
11
|
* Checkbox group items to show of type DSCheckbox
|
|
12
12
|
*/
|
|
13
|
-
children: import("@elliemae/ds-
|
|
13
|
+
children: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
14
14
|
/**
|
|
15
15
|
* Whether the checkbox group is disabled or not
|
|
16
16
|
*/
|
|
17
|
-
disabled: import("@elliemae/ds-
|
|
17
|
+
disabled: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
18
18
|
/**
|
|
19
19
|
* ['horizontal', 'vertical']
|
|
20
20
|
*/
|
|
21
|
-
orientation: import("@elliemae/ds-
|
|
21
|
+
orientation: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
22
22
|
/**
|
|
23
23
|
* label props
|
|
24
24
|
*/
|
|
25
|
-
labelProps: import("@elliemae/ds-
|
|
25
|
+
labelProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
26
26
|
};
|
|
@@ -20,22 +20,22 @@ declare const DSDateInput: {
|
|
|
20
20
|
INTERNAL_V2_NO_MUTATION: any;
|
|
21
21
|
}): JSX.Element;
|
|
22
22
|
propTypes: {
|
|
23
|
-
containerProps: import("@elliemae/ds-
|
|
24
|
-
innerRef: import("@elliemae/ds-
|
|
25
|
-
className: import("@elliemae/ds-
|
|
26
|
-
style: import("@elliemae/ds-
|
|
27
|
-
onBlur: import("@elliemae/ds-
|
|
28
|
-
onFocus: import("@elliemae/ds-
|
|
29
|
-
onClear: import("@elliemae/ds-
|
|
30
|
-
onKeyDown: import("@elliemae/ds-
|
|
31
|
-
onChange: import("@elliemae/ds-
|
|
32
|
-
onError: import("@elliemae/ds-
|
|
33
|
-
format: import("@elliemae/ds-
|
|
34
|
-
value: import("@elliemae/ds-
|
|
35
|
-
clearable: import("@elliemae/ds-
|
|
36
|
-
disabled: import("@elliemae/ds-
|
|
37
|
-
yearMaxRange: import("@elliemae/ds-
|
|
38
|
-
yearMinRange: import("@elliemae/ds-
|
|
23
|
+
containerProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
24
|
+
innerRef: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
25
|
+
className: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
26
|
+
style: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
27
|
+
onBlur: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
28
|
+
onFocus: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
29
|
+
onClear: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
30
|
+
onKeyDown: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
31
|
+
onChange: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
32
|
+
onError: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
33
|
+
format: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
34
|
+
value: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
35
|
+
clearable: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
36
|
+
disabled: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
37
|
+
yearMaxRange: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
38
|
+
yearMinRange: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
39
39
|
};
|
|
40
40
|
defaultProps: {
|
|
41
41
|
className: string;
|
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
export declare const props: {
|
|
2
2
|
/** props injected to date input wrapper node */
|
|
3
|
-
containerProps: import("@elliemae/ds-
|
|
3
|
+
containerProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
4
4
|
/** inner ref for input wrapper */
|
|
5
|
-
innerRef: import("@elliemae/ds-
|
|
5
|
+
innerRef: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
6
6
|
/** class for input */
|
|
7
|
-
className: import("@elliemae/ds-
|
|
7
|
+
className: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
8
8
|
/**
|
|
9
9
|
* Set style for the date input
|
|
10
10
|
*/
|
|
11
|
-
style: import("@elliemae/ds-
|
|
11
|
+
style: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
12
12
|
/**
|
|
13
13
|
* Triggers the onBlur when focus moves out of date input
|
|
14
14
|
*/
|
|
15
|
-
onBlur: import("@elliemae/ds-
|
|
15
|
+
onBlur: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
16
16
|
/**
|
|
17
17
|
* Triggers the onFocus when the component gets the focus
|
|
18
18
|
*/
|
|
19
|
-
onFocus: import("@elliemae/ds-
|
|
19
|
+
onFocus: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
20
20
|
/**
|
|
21
21
|
* Triggers the onClear
|
|
22
22
|
*/
|
|
23
|
-
onClear: import("@elliemae/ds-
|
|
23
|
+
onClear: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
24
24
|
/**
|
|
25
25
|
* Triggers the onKeyDown
|
|
26
26
|
*/
|
|
27
|
-
onKeyDown: import("@elliemae/ds-
|
|
27
|
+
onKeyDown: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
28
28
|
/**
|
|
29
29
|
* Allows a function that is triggered once the date input changes
|
|
30
30
|
*/
|
|
31
|
-
onChange: import("@elliemae/ds-
|
|
31
|
+
onChange: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
32
32
|
/**
|
|
33
33
|
* Triggers the onError once one input date is wrong
|
|
34
34
|
*/
|
|
35
|
-
onError: import("@elliemae/ds-
|
|
35
|
+
onError: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
36
36
|
/**
|
|
37
37
|
* Format type for date input
|
|
38
38
|
*/
|
|
39
|
-
format: import("@elliemae/ds-
|
|
39
|
+
format: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
40
40
|
/**
|
|
41
41
|
* Default value once the component is initialized
|
|
42
42
|
*/
|
|
43
|
-
value: import("@elliemae/ds-
|
|
43
|
+
value: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
44
44
|
/**
|
|
45
45
|
* Whether the date input is clearable or not
|
|
46
46
|
*/
|
|
47
|
-
clearable: import("@elliemae/ds-
|
|
47
|
+
clearable: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
48
48
|
/**
|
|
49
49
|
* Whether the date input is disabled or not
|
|
50
50
|
*/
|
|
51
|
-
disabled: import("@elliemae/ds-
|
|
51
|
+
disabled: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
52
52
|
/**
|
|
53
53
|
* Max year that can be accepted by the date input
|
|
54
54
|
*/
|
|
55
|
-
yearMaxRange: import("@elliemae/ds-
|
|
55
|
+
yearMaxRange: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
56
56
|
/**
|
|
57
57
|
* Min year that can be accepted by the date input
|
|
58
58
|
*/
|
|
59
|
-
yearMinRange: import("@elliemae/ds-
|
|
59
|
+
yearMinRange: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
60
60
|
};
|
|
@@ -24,20 +24,20 @@ declare const DSDateInputV2: {
|
|
|
24
24
|
containerProps: {};
|
|
25
25
|
};
|
|
26
26
|
propTypes: {
|
|
27
|
-
containerProps: import("@elliemae/ds-
|
|
28
|
-
onBlur: import("@elliemae/ds-
|
|
29
|
-
onFocus: import("@elliemae/ds-
|
|
30
|
-
onKeyDown: import("@elliemae/ds-
|
|
31
|
-
onChange: import("@elliemae/ds-
|
|
32
|
-
onDateChange: import("@elliemae/ds-
|
|
33
|
-
onError: import("@elliemae/ds-
|
|
34
|
-
value: import("@elliemae/ds-
|
|
35
|
-
disabled: import("@elliemae/ds-
|
|
36
|
-
tabIndex: import("@elliemae/ds-
|
|
27
|
+
containerProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
28
|
+
onBlur: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
29
|
+
onFocus: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
30
|
+
onKeyDown: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
31
|
+
onChange: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
32
|
+
onDateChange: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
33
|
+
onError: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
34
|
+
value: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
35
|
+
disabled: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
36
|
+
tabIndex: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
37
37
|
};
|
|
38
38
|
displayName: string;
|
|
39
39
|
};
|
|
40
|
-
declare const DSDateInputV2WithSchema: import("@elliemae/ds-
|
|
40
|
+
declare const DSDateInputV2WithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").DocumentedReactComponent<{
|
|
41
41
|
onFocus: any;
|
|
42
42
|
onBlur: any;
|
|
43
43
|
onChange: any;
|
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
export declare const props: {
|
|
2
2
|
/** Props to inject to date input wrapper */
|
|
3
|
-
containerProps: import("@elliemae/ds-
|
|
3
|
+
containerProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
4
4
|
/**
|
|
5
5
|
* Triggers the onBlur when focus moves out of date input
|
|
6
6
|
*/
|
|
7
|
-
onBlur: import("@elliemae/ds-
|
|
7
|
+
onBlur: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
8
8
|
/**
|
|
9
9
|
* Triggers the onFocus when the component gets the focus
|
|
10
10
|
*/
|
|
11
|
-
onFocus: import("@elliemae/ds-
|
|
11
|
+
onFocus: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
12
12
|
/**
|
|
13
13
|
* Triggers the onKeyDown
|
|
14
14
|
*/
|
|
15
|
-
onKeyDown: import("@elliemae/ds-
|
|
15
|
+
onKeyDown: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
16
16
|
/**
|
|
17
17
|
* Allows a function that is triggered once the date input changes
|
|
18
18
|
*/
|
|
19
|
-
onChange: import("@elliemae/ds-
|
|
19
|
+
onChange: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
20
20
|
/**
|
|
21
21
|
* Triggers when the date is completely set and only once you have blurred the
|
|
22
22
|
* corresponding input. For example if you are editing the day and the year and month
|
|
23
23
|
* are already set, once you completely set the day it will trigger.
|
|
24
24
|
*/
|
|
25
|
-
onDateChange: import("@elliemae/ds-
|
|
25
|
+
onDateChange: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
26
26
|
/**
|
|
27
27
|
* Triggers the onError once one input date is wrong
|
|
28
28
|
*/
|
|
29
|
-
onError: import("@elliemae/ds-
|
|
29
|
+
onError: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
30
30
|
/**
|
|
31
31
|
* Default value once the component is initialized MMDDYYYY
|
|
32
32
|
*/
|
|
33
|
-
value: import("@elliemae/ds-
|
|
33
|
+
value: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
34
34
|
/**
|
|
35
35
|
* Whether the date input is disabled or not
|
|
36
36
|
*/
|
|
37
|
-
disabled: import("@elliemae/ds-
|
|
37
|
+
disabled: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
38
38
|
/**
|
|
39
39
|
* tab index
|
|
40
40
|
*/
|
|
41
|
-
tabIndex: import("@elliemae/ds-
|
|
41
|
+
tabIndex: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
42
42
|
};
|
|
43
43
|
export declare const defaultProps: {
|
|
44
44
|
onFocus: (...args: any[]) => void;
|
|
@@ -43,45 +43,45 @@ declare const DSFormItemLayout: {
|
|
|
43
43
|
containerProps: any;
|
|
44
44
|
}): JSX.Element;
|
|
45
45
|
propTypes: {
|
|
46
|
-
containerProps: import("@elliemae/ds-
|
|
47
|
-
disableTooltip: import("@elliemae/ds-
|
|
48
|
-
leftLabel: import("@elliemae/ds-
|
|
49
|
-
floatingLabel: import("@elliemae/ds-
|
|
50
|
-
id: import("@elliemae/ds-
|
|
51
|
-
name: import("@elliemae/ds-
|
|
52
|
-
value: import("@elliemae/ds-
|
|
53
|
-
inputComponent: import("@elliemae/ds-
|
|
54
|
-
isShowElipsisActive: import("@elliemae/ds-
|
|
55
|
-
labelComponent: import("@elliemae/ds-
|
|
56
|
-
feedbackComponent: import("@elliemae/ds-
|
|
57
|
-
labelText: import("@elliemae/ds-
|
|
58
|
-
hasError: import("@elliemae/ds-
|
|
59
|
-
fitContent: import("@elliemae/ds-
|
|
60
|
-
validationState: import("@elliemae/ds-
|
|
61
|
-
validationMessage: import("@elliemae/ds-
|
|
62
|
-
feedbackMessage: import("@elliemae/ds-
|
|
63
|
-
readOnly: import("@elliemae/ds-
|
|
64
|
-
focused: import("@elliemae/ds-
|
|
65
|
-
type: import("@elliemae/ds-
|
|
66
|
-
autoFocus: import("@elliemae/ds-
|
|
67
|
-
disabled: import("@elliemae/ds-
|
|
68
|
-
onChange: import("@elliemae/ds-
|
|
69
|
-
onBlur: import("@elliemae/ds-
|
|
70
|
-
extraInputProps: import("@elliemae/ds-
|
|
71
|
-
extraContent: import("@elliemae/ds-
|
|
72
|
-
leftAddon: import("@elliemae/ds-
|
|
73
|
-
rightAddon: import("@elliemae/ds-
|
|
74
|
-
required: import("@elliemae/ds-
|
|
75
|
-
optional: import("@elliemae/ds-
|
|
76
|
-
onFocus: import("@elliemae/ds-
|
|
77
|
-
onPaste: import("@elliemae/ds-
|
|
78
|
-
truncateText: import("@elliemae/ds-
|
|
79
|
-
onKeyUp: import("@elliemae/ds-
|
|
80
|
-
mask: import("@elliemae/ds-
|
|
81
|
-
useSubfix: import("@elliemae/ds-
|
|
82
|
-
suffix: import("@elliemae/ds-
|
|
83
|
-
variant: import("@elliemae/ds-
|
|
84
|
-
withHighlight: import("@elliemae/ds-
|
|
46
|
+
containerProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
47
|
+
disableTooltip: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
48
|
+
leftLabel: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
49
|
+
floatingLabel: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
50
|
+
id: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
51
|
+
name: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
52
|
+
value: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
53
|
+
inputComponent: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
54
|
+
isShowElipsisActive: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
55
|
+
labelComponent: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
56
|
+
feedbackComponent: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
57
|
+
labelText: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
58
|
+
hasError: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
59
|
+
fitContent: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
60
|
+
validationState: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
61
|
+
validationMessage: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
62
|
+
feedbackMessage: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
63
|
+
readOnly: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
64
|
+
focused: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
65
|
+
type: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
66
|
+
autoFocus: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
67
|
+
disabled: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
68
|
+
onChange: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
69
|
+
onBlur: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
70
|
+
extraInputProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
71
|
+
extraContent: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
72
|
+
leftAddon: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
73
|
+
rightAddon: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
74
|
+
required: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
75
|
+
optional: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
76
|
+
onFocus: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
77
|
+
onPaste: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
78
|
+
truncateText: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
79
|
+
onKeyUp: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
80
|
+
mask: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
81
|
+
useSubfix: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
82
|
+
suffix: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
83
|
+
variant: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
84
|
+
withHighlight: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
85
85
|
};
|
|
86
86
|
defaultProps: {
|
|
87
87
|
leftLabel: boolean;
|
|
@@ -136,7 +136,7 @@ declare const DSFormItemLayout: {
|
|
|
136
136
|
};
|
|
137
137
|
displayName: string;
|
|
138
138
|
};
|
|
139
|
-
declare const DSFormItemLayoutWithSchema: import("@elliemae/ds-
|
|
139
|
+
declare const DSFormItemLayoutWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").DocumentedReactComponent<{
|
|
140
140
|
[x: string]: any;
|
|
141
141
|
leftLabel: any;
|
|
142
142
|
floatingLabel: any;
|
|
@@ -5,13 +5,13 @@ declare const DSError: {
|
|
|
5
5
|
}): JSX.Element | null;
|
|
6
6
|
propTypes: {
|
|
7
7
|
/** error state */
|
|
8
|
-
hasError: import("@elliemae/ds-
|
|
8
|
+
hasError: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
9
9
|
/** error label text */
|
|
10
|
-
errorText: import("@elliemae/ds-
|
|
10
|
+
errorText: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
|
|
11
11
|
};
|
|
12
12
|
displayName: string;
|
|
13
13
|
};
|
|
14
|
-
declare const DSErrorWithSchema: import("@elliemae/ds-
|
|
14
|
+
declare const DSErrorWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").DocumentedReactComponent<{
|
|
15
15
|
hasError?: boolean | undefined;
|
|
16
16
|
errorText?: string | undefined;
|
|
17
17
|
}>;
|