@elliemae/ds-form 3.1.0-next.2 → 3.1.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.
Files changed (145) hide show
  1. package/dist/cjs/CheckboxGroup/DSCheckboxGroup.js +2 -2
  2. package/dist/cjs/CheckboxGroup/DSCheckboxGroup.js.map +2 -2
  3. package/dist/cjs/CheckboxGroup/props.js +12 -12
  4. package/dist/cjs/CheckboxGroup/props.js.map +2 -2
  5. package/dist/cjs/ComboBoxFreeSolo/components/MultiValueLabel.js +3 -3
  6. package/dist/cjs/ComboBoxFreeSolo/components/MultiValueLabel.js.map +2 -2
  7. package/dist/cjs/ComboBoxFreeSolo/components/MultiValueRemove.js +2 -2
  8. package/dist/cjs/ComboBoxFreeSolo/components/MultiValueRemove.js.map +2 -2
  9. package/dist/cjs/ComboBoxFreeSolo/components/SingleValueRemove.js +2 -2
  10. package/dist/cjs/ComboBoxFreeSolo/components/SingleValueRemove.js.map +2 -2
  11. package/dist/cjs/DateInput/DSDateInput.js +1 -2
  12. package/dist/cjs/DateInput/DSDateInput.js.map +2 -2
  13. package/dist/cjs/DateInput/props.js +19 -19
  14. package/dist/cjs/DateInput/props.js.map +2 -2
  15. package/dist/cjs/DateInputV2/components/DSDateInput.js +2 -2
  16. package/dist/cjs/DateInputV2/components/DSDateInput.js.map +2 -2
  17. package/dist/cjs/DateInputV2/components/props.js +13 -13
  18. package/dist/cjs/DateInputV2/components/props.js.map +2 -2
  19. package/dist/cjs/DateInputV2/components/styled.js +5 -5
  20. package/dist/cjs/DateInputV2/components/styled.js.map +2 -2
  21. package/dist/cjs/FormItem/DSFormItemLayout.js +1 -2
  22. package/dist/cjs/FormItem/DSFormItemLayout.js.map +2 -2
  23. package/dist/cjs/FormItem/Error/DSError.js +4 -4
  24. package/dist/cjs/FormItem/Error/DSError.js.map +2 -2
  25. package/dist/cjs/FormItem/Suffix/Suffix.js +4 -4
  26. package/dist/cjs/FormItem/Suffix/Suffix.js.map +2 -2
  27. package/dist/cjs/FormItem/props.js +42 -42
  28. package/dist/cjs/FormItem/props.js.map +2 -2
  29. package/dist/cjs/InputGroup/DSInputGroup.js +2 -2
  30. package/dist/cjs/InputGroup/DSInputGroup.js.map +2 -2
  31. package/dist/cjs/InputGroup/props.js +10 -10
  32. package/dist/cjs/InputGroup/props.js.map +2 -2
  33. package/dist/cjs/InputMask/DSInputMask.js +2 -2
  34. package/dist/cjs/InputMask/DSInputMask.js.map +2 -2
  35. package/dist/cjs/InputMask/mask_types/DateInputMask.js +34 -34
  36. package/dist/cjs/InputMask/mask_types/DateInputMask.js.map +2 -2
  37. package/dist/cjs/InputMask/mask_types/DateTimeInputMask.js +34 -34
  38. package/dist/cjs/InputMask/mask_types/DateTimeInputMask.js.map +2 -2
  39. package/dist/cjs/InputMask/mask_types/DictionaryInputMask.js +37 -37
  40. package/dist/cjs/InputMask/mask_types/DictionaryInputMask.js.map +2 -2
  41. package/dist/cjs/InputMask/mask_types/NumberInputMask.js +46 -46
  42. package/dist/cjs/InputMask/mask_types/NumberInputMask.js.map +2 -2
  43. package/dist/cjs/InputMask/mask_types/PhoneInputMask.js +34 -34
  44. package/dist/cjs/InputMask/mask_types/PhoneInputMask.js.map +2 -2
  45. package/dist/cjs/InputMask/mask_types/PhoneInternationalInputMask.js +34 -34
  46. package/dist/cjs/InputMask/mask_types/PhoneInternationalInputMask.js.map +2 -2
  47. package/dist/cjs/InputMask/mask_types/SsnInputMask.js +34 -34
  48. package/dist/cjs/InputMask/mask_types/SsnInputMask.js.map +2 -2
  49. package/dist/cjs/InputMask/mask_types/UsZipCodeInputMask.js +34 -34
  50. package/dist/cjs/InputMask/mask_types/UsZipCodeInputMask.js.map +2 -2
  51. package/dist/cjs/InputMask/mask_types/ZipCodeSearchInputMask.js +34 -34
  52. package/dist/cjs/InputMask/mask_types/ZipCodeSearchInputMask.js.map +2 -2
  53. package/dist/cjs/InputMask/props.js +36 -36
  54. package/dist/cjs/InputMask/props.js.map +2 -2
  55. package/dist/cjs/InputProtected/DSInputProtected.js +2 -2
  56. package/dist/cjs/InputProtected/DSInputProtected.js.map +2 -2
  57. package/dist/cjs/InputProtected/props.js +11 -11
  58. package/dist/cjs/InputProtected/props.js.map +2 -2
  59. package/dist/cjs/LargeInputText/DSLargeInputText.js +2 -2
  60. package/dist/cjs/LargeInputText/DSLargeInputText.js.map +2 -2
  61. package/dist/cjs/LargeInputText/props.js +28 -28
  62. package/dist/cjs/LargeInputText/props.js.map +2 -2
  63. package/dist/cjs/Radio/DSRadio.js +16 -16
  64. package/dist/cjs/Radio/DSRadio.js.map +2 -2
  65. package/dist/cjs/RadioGroup/DSRadioGroup.js +2 -2
  66. package/dist/cjs/RadioGroup/DSRadioGroup.js.map +2 -2
  67. package/dist/cjs/RadioGroup/props.js +11 -11
  68. package/dist/cjs/RadioGroup/props.js.map +2 -2
  69. package/dist/cjs/TimeInput/DSTimeInput.js +15 -15
  70. package/dist/cjs/TimeInput/DSTimeInput.js.map +2 -2
  71. package/dist/cjs/Toggle/DSToggle.js +13 -13
  72. package/dist/cjs/Toggle/DSToggle.js.map +2 -2
  73. package/dist/esm/CheckboxGroup/DSCheckboxGroup.js +1 -1
  74. package/dist/esm/CheckboxGroup/DSCheckboxGroup.js.map +1 -1
  75. package/dist/esm/CheckboxGroup/props.js +4 -4
  76. package/dist/esm/CheckboxGroup/props.js.map +2 -2
  77. package/dist/esm/ComboBoxFreeSolo/components/MultiValueLabel.js +1 -1
  78. package/dist/esm/ComboBoxFreeSolo/components/MultiValueLabel.js.map +1 -1
  79. package/dist/esm/ComboBoxFreeSolo/components/MultiValueRemove.js +1 -1
  80. package/dist/esm/ComboBoxFreeSolo/components/MultiValueRemove.js.map +1 -1
  81. package/dist/esm/ComboBoxFreeSolo/components/SingleValueRemove.js +1 -1
  82. package/dist/esm/ComboBoxFreeSolo/components/SingleValueRemove.js.map +1 -1
  83. package/dist/esm/DateInput/DSDateInput.js +1 -2
  84. package/dist/esm/DateInput/DSDateInput.js.map +2 -2
  85. package/dist/esm/DateInput/props.js +1 -1
  86. package/dist/esm/DateInput/props.js.map +1 -1
  87. package/dist/esm/DateInputV2/components/DSDateInput.js +1 -1
  88. package/dist/esm/DateInputV2/components/DSDateInput.js.map +1 -1
  89. package/dist/esm/DateInputV2/components/props.js +1 -1
  90. package/dist/esm/DateInputV2/components/props.js.map +1 -1
  91. package/dist/esm/DateInputV2/components/styled.js +1 -1
  92. package/dist/esm/DateInputV2/components/styled.js.map +1 -1
  93. package/dist/esm/FormItem/DSFormItemLayout.js +1 -2
  94. package/dist/esm/FormItem/DSFormItemLayout.js.map +2 -2
  95. package/dist/esm/FormItem/Error/DSError.js +1 -1
  96. package/dist/esm/FormItem/Error/DSError.js.map +1 -1
  97. package/dist/esm/FormItem/Suffix/Suffix.js +1 -1
  98. package/dist/esm/FormItem/Suffix/Suffix.js.map +1 -1
  99. package/dist/esm/FormItem/props.js +1 -1
  100. package/dist/esm/FormItem/props.js.map +1 -1
  101. package/dist/esm/InputGroup/DSInputGroup.js +1 -1
  102. package/dist/esm/InputGroup/DSInputGroup.js.map +1 -1
  103. package/dist/esm/InputGroup/props.js +1 -1
  104. package/dist/esm/InputGroup/props.js.map +1 -1
  105. package/dist/esm/InputMask/DSInputMask.js +1 -1
  106. package/dist/esm/InputMask/DSInputMask.js.map +1 -1
  107. package/dist/esm/InputMask/mask_types/DateInputMask.js +1 -1
  108. package/dist/esm/InputMask/mask_types/DateInputMask.js.map +1 -1
  109. package/dist/esm/InputMask/mask_types/DateTimeInputMask.js +1 -1
  110. package/dist/esm/InputMask/mask_types/DateTimeInputMask.js.map +1 -1
  111. package/dist/esm/InputMask/mask_types/DictionaryInputMask.js +1 -1
  112. package/dist/esm/InputMask/mask_types/DictionaryInputMask.js.map +1 -1
  113. package/dist/esm/InputMask/mask_types/NumberInputMask.js +1 -1
  114. package/dist/esm/InputMask/mask_types/NumberInputMask.js.map +1 -1
  115. package/dist/esm/InputMask/mask_types/PhoneInputMask.js +1 -1
  116. package/dist/esm/InputMask/mask_types/PhoneInputMask.js.map +1 -1
  117. package/dist/esm/InputMask/mask_types/PhoneInternationalInputMask.js +1 -1
  118. package/dist/esm/InputMask/mask_types/PhoneInternationalInputMask.js.map +1 -1
  119. package/dist/esm/InputMask/mask_types/SsnInputMask.js +1 -1
  120. package/dist/esm/InputMask/mask_types/SsnInputMask.js.map +1 -1
  121. package/dist/esm/InputMask/mask_types/UsZipCodeInputMask.js +1 -1
  122. package/dist/esm/InputMask/mask_types/UsZipCodeInputMask.js.map +1 -1
  123. package/dist/esm/InputMask/mask_types/ZipCodeSearchInputMask.js +1 -1
  124. package/dist/esm/InputMask/mask_types/ZipCodeSearchInputMask.js.map +1 -1
  125. package/dist/esm/InputMask/props.js +1 -1
  126. package/dist/esm/InputMask/props.js.map +1 -1
  127. package/dist/esm/InputProtected/DSInputProtected.js +1 -1
  128. package/dist/esm/InputProtected/DSInputProtected.js.map +1 -1
  129. package/dist/esm/InputProtected/props.js +1 -1
  130. package/dist/esm/InputProtected/props.js.map +1 -1
  131. package/dist/esm/LargeInputText/DSLargeInputText.js +1 -1
  132. package/dist/esm/LargeInputText/DSLargeInputText.js.map +1 -1
  133. package/dist/esm/LargeInputText/props.js +1 -1
  134. package/dist/esm/LargeInputText/props.js.map +1 -1
  135. package/dist/esm/Radio/DSRadio.js +1 -1
  136. package/dist/esm/Radio/DSRadio.js.map +1 -1
  137. package/dist/esm/RadioGroup/DSRadioGroup.js +1 -1
  138. package/dist/esm/RadioGroup/DSRadioGroup.js.map +1 -1
  139. package/dist/esm/RadioGroup/props.js +1 -1
  140. package/dist/esm/RadioGroup/props.js.map +1 -1
  141. package/dist/esm/TimeInput/DSTimeInput.js +1 -1
  142. package/dist/esm/TimeInput/DSTimeInput.js.map +1 -1
  143. package/dist/esm/Toggle/DSToggle.js +1 -1
  144. package/dist/esm/Toggle/DSToggle.js.map +1 -1
  145. package/package.json +22 -21
@@ -44,7 +44,7 @@ module.exports = __toCommonJS(DSCheckboxGroup_exports);
44
44
  var React = __toESM(require("react"));
45
45
  var import_react = __toESM(require("react"));
46
46
  var import_prop_types = __toESM(require("prop-types"));
47
- var import_react_desc = require("react-desc");
47
+ var import_ds_utilities = require("@elliemae/ds-utilities");
48
48
  var import_ds_shared = require("@elliemae/ds-shared");
49
49
  var import_FormItem = require("../FormItem");
50
50
  var import_Checkbox = require("../Checkbox");
@@ -117,7 +117,7 @@ const noop = () => null;
117
117
  DSCheckboxGroup.propTypes = import_props.props;
118
118
  DSCheckboxGroup.defaultProps = import_defaultProps.defaultProps;
119
119
  DSCheckboxGroup.displayName = "DSCheckboxGroup";
120
- const DSCheckboxGroupWithSchema = (0, import_react_desc.describe)(DSCheckboxGroup);
120
+ const DSCheckboxGroupWithSchema = (0, import_ds_utilities.describe)(DSCheckboxGroup);
121
121
  DSCheckboxGroupWithSchema.propTypes = import_props.props;
122
122
  CheckboxItem.propTypes = {
123
123
  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 'react-desc';\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={\n context.activeValue && context.activeValue.indexOf(props.value) !== -1\n }\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\n activeValue={activeValue}\n disabled={disabled}\n multiple\n onChange={onChange}\n >\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\n className={`${baseClass}-form-item-layout-wrapper`}\n {...containerProps}\n role=\"group\"\n >\n <DSFormItemLayout\n {...labelProps}\n inputComponent={group}\n onChange={onChange}\n truncateText={truncateText}\n />\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;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,IAEC,UAAU,CAAC,MAAM;AACf,gBAAU,KAAK,CAAC;AAAA,IAClB;AAAA,IACA,WAAW,CAAC,MAAM,UAAU,GAAG,KAAK;AAAA,IACtC,GAEF,IACF,CACF,CACF;AAGF,MAAI,cAAc,WAAW,WAAW;AACtC,WACE,mDAAC;AAAA,MACC,WAAW,GAAG;AAAA,OACV,iBAFL;AAAA,MAGC,MAAK;AAAA,QAEL,mDAAC,mEACK,aADL;AAAA,MAEC,gBAAgB;AAAA,MAChB;AAAA,MACA;AAAA,MACF,CACF;AAAA,EAEJ;AACA,SAAO;AACT;AAEA,MAAM,OAAO,MAAM;AAEnB,gBAAgB,YAAY;AAC5B,gBAAgB,eAAe;AAC/B,gBAAgB,cAAc;AAC9B,MAAM,4BAA4B,gCAAS,eAAe;AAC1D,0BAA0B,YAAY;AAEtC,aAAa,YAAY;AAAA,EACvB,SAAS,0BAAU;AAAA,EACnB,UAAU,0BAAU;AAAA,EACpB,UAAU,0BAAU;AACtB;AAEA,aAAa,eAAe;AAAA,EAC1B,SAAS;AAAA,EACT,UAAU;AAAA,EACV,UAAU;AACZ;",
4
+ "sourcesContent": ["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { describe } from '@elliemae/ds-utilities';\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={\n context.activeValue && context.activeValue.indexOf(props.value) !== -1\n }\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\n activeValue={activeValue}\n disabled={disabled}\n multiple\n onChange={onChange}\n >\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\n className={`${baseClass}-form-item-layout-wrapper`}\n {...containerProps}\n role=\"group\"\n >\n <DSFormItemLayout\n {...labelProps}\n inputComponent={group}\n onChange={onChange}\n truncateText={truncateText}\n />\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;ADAvB,mBAAkB;AA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C,MAAM;AACf,gBAAU,KAAK,CAAC;AAAA,IAClB;AAAA,IACA,WAAW,CAAC,MAAM,UAAU,GAAG,KAAK;AAAA,IACtC,GAEF,IACF,CACF,CACF;AAGF,MAAI,cAAc,WAAW,WAAW;AACtC,WACE,mDAAC;AAAA,MACC,WAAW,GAAG;AAAA,OACV,iBAFL;AAAA,MAGC,MAAK;AAAA,QAEL,mDAAC,mEACK,aADL;AAAA,MAEC,gBAAgB;AAAA,MAChB;AAAA,MACA;AAAA,MACF,CACF;AAAA,EAEJ;AACA,SAAO;AACT;AAEA,MAAM,OAAO,MAAM;AAEnB,gBAAgB,YAAY;AAC5B,gBAAgB,eAAe;AAC/B,gBAAgB,cAAc;AAC9B,MAAM,4BAA4B,kCAAS,eAAe;AAC1D,0BAA0B,YAAY;AAEtC,aAAa,YAAY;AAAA,EACvB,SAAS,0BAAU;AAAA,EACnB,UAAU,0BAAU;AAAA,EACpB,UAAU,0BAAU;AACtB;AAEA,aAAa,eAAe;AAAA,EAC1B,SAAS;AAAA,EACT,UAAU;AAAA,EACV,UAAU;AACZ;",
6
6
  "names": []
7
7
  }
@@ -24,21 +24,21 @@ __export(props_exports, {
24
24
  });
25
25
  module.exports = __toCommonJS(props_exports);
26
26
  var React = __toESM(require("react"));
27
- var import_react_desc = require("react-desc");
27
+ var import_ds_utilities = require("@elliemae/ds-utilities");
28
28
  var import_Checkbox = require("../Checkbox");
29
29
  var import_ds_shared = require("@elliemae/ds-shared");
30
30
  const props = {
31
- onChange: import_react_desc.PropTypes.func.description("Allows a function that is triggered once the checkbox group changes"),
32
- activeValue: import_react_desc.PropTypes.oneOfType([import_react_desc.PropTypes.string, import_react_desc.PropTypes.number, import_react_desc.PropTypes.array]).description("Default active value"),
33
- children: import_react_desc.PropTypes.arrayOf(import_react_desc.PropTypes.shape({
34
- type: import_Checkbox.DSCheckbox
31
+ onChange: import_ds_utilities.PropTypes.func.description("Allows a function that is triggered once the checkbox group changes"),
32
+ activeValue: import_ds_utilities.PropTypes.oneOfType([import_ds_utilities.PropTypes.string, import_ds_utilities.PropTypes.number, import_ds_utilities.PropTypes.array]).description("Default active value"),
33
+ children: import_ds_utilities.PropTypes.arrayOf(import_ds_utilities.PropTypes.shape({
34
+ type: import_ds_utilities.PropTypes.oneOf([import_Checkbox.DSCheckbox])
35
35
  })).description("Checkbox group items to show of type DSCheckbox"),
36
- disabled: import_react_desc.PropTypes.bool.description("Whether the checkbox group is disabled or not"),
37
- orientation: import_react_desc.PropTypes.oneOf(import_ds_shared.orientation).description("['horizontal', 'vertical']"),
38
- labelProps: import_react_desc.PropTypes.objectOf(import_react_desc.PropTypes.shape({
39
- feedbackMessage: import_react_desc.PropTypes.string,
40
- labelText: import_react_desc.PropTypes.oneOfType([import_react_desc.PropTypes.string, import_react_desc.PropTypes.element]),
41
- required: import_react_desc.PropTypes.bool
42
- })).description("label props")
36
+ disabled: import_ds_utilities.PropTypes.bool.description("Whether the checkbox group is disabled or not"),
37
+ orientation: import_ds_utilities.PropTypes.oneOf(import_ds_shared.orientation).description("['horizontal', 'vertical']"),
38
+ labelProps: import_ds_utilities.PropTypes.shape({
39
+ feedbackMessage: import_ds_utilities.PropTypes.string,
40
+ labelText: import_ds_utilities.PropTypes.oneOfType([import_ds_utilities.PropTypes.string, import_ds_utilities.PropTypes.element]),
41
+ required: import_ds_utilities.PropTypes.bool
42
+ }).description("label props")
43
43
  };
44
44
  //# 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 'react-desc';\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: 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.objectOf(\n PropTypes.shape({\n feedbackMessage: PropTypes.string,\n labelText: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),\n required: PropTypes.bool,\n }),\n ).description('label props'),\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,wBAA0B;AAC1B,sBAA2B;AAC3B,uBAAwD;AAEjD,MAAM,QAAQ;AAAA,EAInB,UAAU,4BAAU,KAAK,YAAY,qEAAqE;AAAA,EAI1G,aAAa,4BAAU,UAAU,CAAC,4BAAU,QAAQ,4BAAU,QAAQ,4BAAU,KAAK,CAAC,EAAE,YACtF,sBACF;AAAA,EAIA,UAAU,4BAAU,QAClB,4BAAU,MAAM;AAAA,IACd,MAAM;AAAA,EACR,CAAC,CACH,EAAE,YAAY,iDAAiD;AAAA,EAI/D,UAAU,4BAAU,KAAK,YAAY,+CAA+C;AAAA,EAIpF,aAAa,4BAAU,MAAM,4BAAwB,EAAE,YAAY,4BAA4B;AAAA,EAI/F,YAAY,4BAAU,SACpB,4BAAU,MAAM;AAAA,IACd,iBAAiB,4BAAU;AAAA,IAC3B,WAAW,4BAAU,UAAU,CAAC,4BAAU,QAAQ,4BAAU,OAAO,CAAC;AAAA,IACpE,UAAU,4BAAU;AAAA,EACtB,CAAC,CACH,EAAE,YAAY,aAAa;AAC7B;",
4
+ "sourcesContent": ["import { PropTypes } from '@elliemae/ds-utilities';\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,0BAA0B;AAC1B,sBAA2B;AAC3B,uBAAwD;AAEjD,MAAM,QAAQ;AAAA,EAInB,UAAU,8BAAU,KAAK,YAAY,qEAAqE;AAAA,EAI1G,aAAa,8BAAU,UAAU,CAAC,8BAAU,QAAQ,8BAAU,QAAQ,8BAAU,KAAK,CAAC,EAAE,YACtF,sBACF;AAAA,EAIA,UAAU,8BAAU,QAClB,8BAAU,MAAM;AAAA,IACd,MAAM,8BAAU,MAAM,CAAC,0BAAU,CAAC;AAAA,EACpC,CAAC,CACH,EAAE,YAAY,iDAAiD;AAAA,EAI/D,UAAU,8BAAU,KAAK,YAAY,+CAA+C;AAAA,EAIpF,aAAa,8BAAU,MAAM,4BAAwB,EAAE,YAAY,4BAA4B;AAAA,EAI/F,YAAY,8BAAU,MAAM;AAAA,IAC1B,iBAAiB,8BAAU;AAAA,IAC3B,WAAW,8BAAU,UAAU,CAAC,8BAAU,QAAQ,8BAAU,OAAO,CAAC;AAAA,IACpE,UAAU,8BAAU;AAAA,EACtB,CAAC,EAAE,YAAY,aAAa;AAC9B;",
6
6
  "names": []
7
7
  }
@@ -25,8 +25,8 @@ __export(MultiValueLabel_exports, {
25
25
  module.exports = __toCommonJS(MultiValueLabel_exports);
26
26
  var React = __toESM(require("react"));
27
27
  var import_react = __toESM(require("react"));
28
- var import_styled_components = __toESM(require("styled-components"));
29
- const RemovablePillWrapper = import_styled_components.default.div`
28
+ var import_ds_system = require("@elliemae/ds-system");
29
+ const RemovablePillWrapper = import_ds_system.styled.div`
30
30
  display: flex;
31
31
  align-items: center;
32
32
  outline: none;
@@ -42,7 +42,7 @@ const RemovablePillWrapper = import_styled_components.default.div`
42
42
  border-bottom-right-radius: ${(props) => props.theme.fontSizes.value[600]};
43
43
  }
44
44
  `;
45
- const PillLabel = import_styled_components.default.span`
45
+ const PillLabel = import_ds_system.styled.span`
46
46
  margin: 0 4px;
47
47
  color: ${(props) => props.theme.colors.neutral[800]};
48
48
  white-space: nowrap;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/ComboBoxFreeSolo/components/MultiValueLabel.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["/* eslint-disable react/prop-types */\nimport React from 'react';\nimport styled from 'styled-components';\n\nconst RemovablePillWrapper = styled.div`\n display: flex;\n align-items: center;\n outline: none;\n height: ${(props) => props.theme.space.xs};\n max-width: 90%;\n margin: 0;\n padding: 0 4px;\n background-color: ${(props) => props.theme.colors.brand[200]};\n border-top-left-radius: ${(props) => props.theme.fontSizes.value[600]};\n border-bottom-left-radius: ${(props) => props.theme.fontSizes.value[600]};\n & + div {\n border-top-right-radius: ${(props) => props.theme.fontSizes.value[600]};\n border-bottom-right-radius: ${(props) => props.theme.fontSizes.value[600]};\n }\n`;\n\nconst PillLabel = styled.span`\n margin: 0 4px;\n color: ${(props) => props.theme.colors.neutral[800]};\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n`;\n\nconst RemovablePill = ({ label, clear }) => (\n <>\n <RemovablePillWrapper data-testid=\"pill-wrapper\">\n <PillLabel>{label}</PillLabel>\n </RemovablePillWrapper>\n {clear}\n </>\n);\n\nconst MultiValueLabel = ({ children, clear }) => (\n <RemovablePill label={children} clear={clear} />\n);\n\nexport { MultiValueLabel };\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,mBAAkB;AAClB,+BAAmB;AAEnB,MAAM,uBAAuB,iCAAO;AAAA;AAAA;AAAA;AAAA,YAIxB,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA;AAAA;AAAA;AAAA,sBAInB,CAAC,UAAU,MAAM,MAAM,OAAO,MAAM;AAAA,4BAC9B,CAAC,UAAU,MAAM,MAAM,UAAU,MAAM;AAAA,+BACpC,CAAC,UAAU,MAAM,MAAM,UAAU,MAAM;AAAA;AAAA,+BAEvC,CAAC,UAAU,MAAM,MAAM,UAAU,MAAM;AAAA,kCACpC,CAAC,UAAU,MAAM,MAAM,UAAU,MAAM;AAAA;AAAA;AAIzE,MAAM,YAAY,iCAAO;AAAA;AAAA,WAEd,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ;AAAA;AAAA;AAAA;AAAA;AAMjD,MAAM,gBAAgB,CAAC,EAAE,OAAO,YAC9B,wFACE,mDAAC;AAAA,EAAqB,eAAY;AAAA,GAChC,mDAAC,iBAAW,KAAM,CACpB,GACC,KACH;AAGF,MAAM,kBAAkB,CAAC,EAAE,UAAU,YACnC,mDAAC;AAAA,EAAc,OAAO;AAAA,EAAU;AAAA,CAAc;",
4
+ "sourcesContent": ["/* eslint-disable react/prop-types */\nimport React from 'react';\nimport { styled } from '@elliemae/ds-system';\n\nconst RemovablePillWrapper = styled.div`\n display: flex;\n align-items: center;\n outline: none;\n height: ${(props) => props.theme.space.xs};\n max-width: 90%;\n margin: 0;\n padding: 0 4px;\n background-color: ${(props) => props.theme.colors.brand[200]};\n border-top-left-radius: ${(props) => props.theme.fontSizes.value[600]};\n border-bottom-left-radius: ${(props) => props.theme.fontSizes.value[600]};\n & + div {\n border-top-right-radius: ${(props) => props.theme.fontSizes.value[600]};\n border-bottom-right-radius: ${(props) => props.theme.fontSizes.value[600]};\n }\n`;\n\nconst PillLabel = styled.span`\n margin: 0 4px;\n color: ${(props) => props.theme.colors.neutral[800]};\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n`;\n\nconst RemovablePill = ({ label, clear }) => (\n <>\n <RemovablePillWrapper data-testid=\"pill-wrapper\">\n <PillLabel>{label}</PillLabel>\n </RemovablePillWrapper>\n {clear}\n </>\n);\n\nconst MultiValueLabel = ({ children, clear }) => (\n <RemovablePill label={children} clear={clear} />\n);\n\nexport { MultiValueLabel };\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,mBAAkB;AAClB,uBAAuB;AAEvB,MAAM,uBAAuB,wBAAO;AAAA;AAAA;AAAA;AAAA,YAIxB,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA;AAAA;AAAA;AAAA,sBAInB,CAAC,UAAU,MAAM,MAAM,OAAO,MAAM;AAAA,4BAC9B,CAAC,UAAU,MAAM,MAAM,UAAU,MAAM;AAAA,+BACpC,CAAC,UAAU,MAAM,MAAM,UAAU,MAAM;AAAA;AAAA,+BAEvC,CAAC,UAAU,MAAM,MAAM,UAAU,MAAM;AAAA,kCACpC,CAAC,UAAU,MAAM,MAAM,UAAU,MAAM;AAAA;AAAA;AAIzE,MAAM,YAAY,wBAAO;AAAA;AAAA,WAEd,CAAC,UAAU,MAAM,MAAM,OAAO,QAAQ;AAAA;AAAA;AAAA;AAAA;AAMjD,MAAM,gBAAgB,CAAC,EAAE,OAAO,YAC9B,wFACE,mDAAC;AAAA,EAAqB,eAAY;AAAA,GAChC,mDAAC,iBAAW,KAAM,CACpB,GACC,KACH;AAGF,MAAM,kBAAkB,CAAC,EAAE,UAAU,YACnC,mDAAC;AAAA,EAAc,OAAO;AAAA,EAAU;AAAA,CAAc;",
6
6
  "names": []
7
7
  }
@@ -42,10 +42,10 @@ __export(MultiValueRemove_exports, {
42
42
  module.exports = __toCommonJS(MultiValueRemove_exports);
43
43
  var React = __toESM(require("react"));
44
44
  var import_react = __toESM(require("react"));
45
- var import_styled_components = __toESM(require("styled-components"));
45
+ var import_ds_system = require("@elliemae/ds-system");
46
46
  var import_react_select = require("react-select");
47
47
  var import_ds_icons = require("@elliemae/ds-icons");
48
- const PillCloseAddon = import_styled_components.default.div`
48
+ const PillCloseAddon = import_ds_system.styled.div`
49
49
  cursor: pointer;
50
50
  height: ${(props) => props.theme.space.xs};
51
51
  & > span {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/ComboBoxFreeSolo/components/MultiValueRemove.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import React from 'react';\nimport styled from 'styled-components';\nimport { components } from 'react-select';\nimport { CloseXsmall } from '@elliemae/ds-icons';\n\nconst PillCloseAddon = styled.div`\n cursor: pointer;\n height: ${(props) => props.theme.space.xs};\n & > span {\n height: auto;\n }\n`;\n\nconst MultiValueRemove = (props) => (\n <components.MultiValueRemove {...props}>\n <PillCloseAddon>\n <CloseXsmall />\n </PillCloseAddon>\n </components.MultiValueRemove>\n);\n\nMultiValueRemove.style = (base) => ({\n ...base,\n paddingLeft: 0,\n height: '100%',\n ':hover': {\n backgroundColor: '#EBF6FF',\n },\n});\n\nexport { MultiValueRemove };\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkB;AAClB,+BAAmB;AACnB,0BAA2B;AAC3B,sBAA4B;AAE5B,MAAM,iBAAiB,iCAAO;AAAA;AAAA,YAElB,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA;AAAA;AAAA;AAAA;AAMzC,MAAM,mBAAmB,CAAC,UACxB,mDAAC,+BAAW,kBAAX,mBAAgC,QAC/B,mDAAC,sBACC,mDAAC,iCAAY,CACf,CACF;AAGF,iBAAiB,QAAQ,CAAC,SAAU,iCAC/B,OAD+B;AAAA,EAElC,aAAa;AAAA,EACb,QAAQ;AAAA,EACR,UAAU;AAAA,IACR,iBAAiB;AAAA,EACnB;AACF;",
4
+ "sourcesContent": ["import React from 'react';\nimport { styled } from '@elliemae/ds-system';\nimport { components } from 'react-select';\nimport { CloseXsmall } from '@elliemae/ds-icons';\n\nconst PillCloseAddon = styled.div`\n cursor: pointer;\n height: ${(props) => props.theme.space.xs};\n & > span {\n height: auto;\n }\n`;\n\nconst MultiValueRemove = (props) => (\n <components.MultiValueRemove {...props}>\n <PillCloseAddon>\n <CloseXsmall />\n </PillCloseAddon>\n </components.MultiValueRemove>\n);\n\nMultiValueRemove.style = (base) => ({\n ...base,\n paddingLeft: 0,\n height: '100%',\n ':hover': {\n backgroundColor: '#EBF6FF',\n },\n});\n\nexport { MultiValueRemove };\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkB;AAClB,uBAAuB;AACvB,0BAA2B;AAC3B,sBAA4B;AAE5B,MAAM,iBAAiB,wBAAO;AAAA;AAAA,YAElB,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA;AAAA;AAAA;AAAA;AAMzC,MAAM,mBAAmB,CAAC,UACxB,mDAAC,+BAAW,kBAAX,mBAAgC,QAC/B,mDAAC,sBACC,mDAAC,iCAAY,CACf,CACF;AAGF,iBAAiB,QAAQ,CAAC,SAAU,iCAC/B,OAD+B;AAAA,EAElC,aAAa;AAAA,EACb,QAAQ;AAAA,EACR,UAAU;AAAA,IACR,iBAAiB;AAAA,EACnB;AACF;",
6
6
  "names": []
7
7
  }
@@ -43,10 +43,10 @@ module.exports = __toCommonJS(SingleValueRemove_exports);
43
43
  var React = __toESM(require("react"));
44
44
  var import_react = __toESM(require("react"));
45
45
  var import_react_select = require("react-select");
46
- var import_styled_components = __toESM(require("styled-components"));
46
+ var import_ds_system = require("@elliemae/ds-system");
47
47
  var import_ds_icons = require("@elliemae/ds-icons");
48
48
  var import_ds_button = require("@elliemae/ds-button");
49
- const StyledButton = (0, import_styled_components.default)(import_ds_button.DSButton)`
49
+ const StyledButton = (0, import_ds_system.styled)(import_ds_button.DSButton)`
50
50
  padding-right: 8px;
51
51
  width: 1.16rem !important;
52
52
  height: auto;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/ComboBoxFreeSolo/components/SingleValueRemove.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import React from 'react';\nimport { components } from 'react-select';\nimport styled from 'styled-components';\nimport { CloseXsmall } from '@elliemae/ds-icons';\nimport { DSButton } from '@elliemae/ds-button';\n\nconst StyledButton = styled(DSButton)`\n padding-right: 8px;\n width: 1.16rem !important;\n height: auto;\n z-index: 10;\n color: '#000';\n`;\n\nconst SingleValueRemove = (props) => {\n // eslint-disable-next-line react/prop-types\n const { clearValue } = props;\n\n return (\n <components.ClearIndicator {...props}>\n <StyledButton\n {...props}\n data-testid=\"free-solo-pill-clear-btn\"\n aria-label=\"clear-indicator\"\n buttonType=\"text\"\n className=\"clear-indicator\"\n icon={<CloseXsmall fill=\"#000\" />}\n onClick={() => clearValue()}\n />\n </components.ClearIndicator>\n );\n};\n\nSingleValueRemove.style = (base) => ({\n ...base,\n padding: 0,\n height: '16px',\n backgroundColor: '#EBF6FF',\n ':hover': {\n backgroundColor: '#EBF6FF',\n },\n});\n\nexport { SingleValueRemove };\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkB;AAClB,0BAA2B;AAC3B,+BAAmB;AACnB,sBAA4B;AAC5B,uBAAyB;AAEzB,MAAM,eAAe,sCAAO,yBAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQpC,MAAM,oBAAoB,CAAC,UAAU;AAEnC,QAAM,EAAE,eAAe;AAEvB,SACE,mDAAC,+BAAW,gBAAX,mBAA8B,QAC7B,mDAAC,+CACK,QADL;AAAA,IAEC,eAAY;AAAA,IACZ,cAAW;AAAA,IACX,YAAW;AAAA,IACX,WAAU;AAAA,IACV,MAAM,mDAAC;AAAA,MAAY,MAAK;AAAA,KAAO;AAAA,IAC/B,SAAS,MAAM,WAAW;AAAA,IAC5B,CACF;AAEJ;AAEA,kBAAkB,QAAQ,CAAC,SAAU,iCAChC,OADgC;AAAA,EAEnC,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,iBAAiB;AAAA,EACjB,UAAU;AAAA,IACR,iBAAiB;AAAA,EACnB;AACF;",
4
+ "sourcesContent": ["import React from 'react';\nimport { components } from 'react-select';\nimport { styled } from '@elliemae/ds-system';\nimport { CloseXsmall } from '@elliemae/ds-icons';\nimport { DSButton } from '@elliemae/ds-button';\n\nconst StyledButton = styled(DSButton)`\n padding-right: 8px;\n width: 1.16rem !important;\n height: auto;\n z-index: 10;\n color: '#000';\n`;\n\nconst SingleValueRemove = (props) => {\n // eslint-disable-next-line react/prop-types\n const { clearValue } = props;\n\n return (\n <components.ClearIndicator {...props}>\n <StyledButton\n {...props}\n data-testid=\"free-solo-pill-clear-btn\"\n aria-label=\"clear-indicator\"\n buttonType=\"text\"\n className=\"clear-indicator\"\n icon={<CloseXsmall fill=\"#000\" />}\n onClick={() => clearValue()}\n />\n </components.ClearIndicator>\n );\n};\n\nSingleValueRemove.style = (base) => ({\n ...base,\n padding: 0,\n height: '16px',\n backgroundColor: '#EBF6FF',\n ':hover': {\n backgroundColor: '#EBF6FF',\n },\n});\n\nexport { SingleValueRemove };\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkB;AAClB,0BAA2B;AAC3B,uBAAuB;AACvB,sBAA4B;AAC5B,uBAAyB;AAEzB,MAAM,eAAe,6BAAO,yBAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQpC,MAAM,oBAAoB,CAAC,UAAU;AAEnC,QAAM,EAAE,eAAe;AAEvB,SACE,mDAAC,+BAAW,gBAAX,mBAA8B,QAC7B,mDAAC,+CACK,QADL;AAAA,IAEC,eAAY;AAAA,IACZ,cAAW;AAAA,IACX,YAAW;AAAA,IACX,WAAU;AAAA,IACV,MAAM,mDAAC;AAAA,MAAY,MAAK;AAAA,KAAO;AAAA,IAC/B,SAAS,MAAM,WAAW;AAAA,IAC5B,CACF;AAEJ;AAEA,kBAAkB,QAAQ,CAAC,SAAU,iCAChC,OADgC;AAAA,EAEnC,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,iBAAiB;AAAA,EACjB,UAAU;AAAA,IACR,iBAAiB;AAAA,EACnB;AACF;",
6
6
  "names": []
7
7
  }
@@ -57,7 +57,6 @@ __export(DSDateInput_exports, {
57
57
  module.exports = __toCommonJS(DSDateInput_exports);
58
58
  var React = __toESM(require("react"));
59
59
  var import_react = __toESM(require("react"));
60
- var import_react_desc = require("react-desc");
61
60
  var import_ds_utilities = require("@elliemae/ds-utilities");
62
61
  var import_Input = require("../Input");
63
62
  var import_DateInputImpl = require("./components/DateInputImpl");
@@ -132,7 +131,7 @@ const DSDateInput = ({
132
131
  DSDateInput.propTypes = import_props.props;
133
132
  DSDateInput.defaultProps = import_defaultProps.defaultProps;
134
133
  DSDateInput.displayName = "DSDateInput";
135
- const DSDateInputWithSchema = (0, import_react_desc.describe)(DSDateInput).deprecated("use DateInputV2 instead");
134
+ const DSDateInputWithSchema = (0, import_ds_utilities.describe)(DSDateInput).deprecated("use DateInputV2 instead");
136
135
  DSDateInputWithSchema.propTypes = import_props.props;
137
136
  var DSDateInput_default = DSDateInput;
138
137
  //# 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 { describe } from 'react-desc';\nimport { runAll } from '@elliemae/ds-utilities';\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;ADCvB,mBAAwD;AACxD,wBAAyB;AACzB,0BAAuB;AACvB,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;AAAA,MACI;AACJ,QAAM,CAAC,WAAW,gBAAgB,2BAAS,KAAK;AAEhD,8BAAU,MAAM;AACd,QAAI,OAAO;AACT,mBAAa,KAAK;AAAA,IACpB;AAAA,EACF,GAAG,CAAC,KAAK,CAAC;AAEV,QAAM,gBAAgB,8BAAY,MAAM;AACtC,oCAAO,SAAS,aAAa,EAAE,CAAC;AAAA,EAClC,GAAG,CAAC,OAAO,CAAC;AAEZ,QAAM,gBAAgB,8BAAY,CAAC,GAAG,MAAM,mBAAmB;AAC7D,mBAAe,GAAG,IAAI;AAAA,EACxB,GAAG,CAAC,CAAC;AAEL,QAAM,iBAAiB,8BAAY,CAAC,MAAM,kBAAkB;AAC1D,iBAAa,IAAI;AACjB,kBAAc,IAAI;AAAA,EACpB,GAAG,CAAC,CAAC;AAEL,SACE,mDAAC;AAAA,IACC,WAAW,GAAG;AAAA,IACd;AAAA,IACA;AAAA,IACA,iBAAiB,CAAC,OAA2E;AAA3E,mBAAE,YAAU,eAAe,WAAW,mBAAtC,IAAyD,2BAAzD,IAAyD,CAAvD,YAAyB;AAC3C,gEAAC;AAAA,QACC;AAAA,QACA;AAAA,QACA;AAAA,QACA,UAAU,CAAC,SAAS,eAAe,MAAM,aAAa;AAAA,QACtD;AAAA,QACA,WAAW,CAAC,GAAG,SAAS,cAAc,GAAG,MAAM,cAAc;AAAA,QAC7D,OAAO;AAAA,SACH,iBARL;AAAA,QASC;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACF;AAAA;AAAA,IAEF,gBAAgB;AAAA,IAChB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,SAAS;AAAA,IACT,OAAO;AAAA,GACT;AAEJ;AAEA,YAAY,YAAY;AACxB,YAAY,eAAe;AAC3B,YAAY,cAAc;AAC1B,MAAM,wBAAwB,gCAAS,WAAW,EAAE,WAAW,yBAAyB;AACxF,sBAAsB,YAAY;AAIlC,IAAO,sBAAQ;",
4
+ "sourcesContent": ["/* eslint-disable max-lines */\nimport React, { useState, useCallback, useEffect } from 'react';\nimport { describe, runAll } from '@elliemae/ds-utilities';\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 };\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AM,aAAa;AAAA,QACtD;AAAA,QACA,WAAW,CAAC,GAAG,SAAS,cAAc,GAAG,MAAM,cAAc;AAAA,QAC7D,OAAO;AAAA,SACH,iBARL;AAAA,QASC;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACF;AAAA;AAAA,IAEF,gBAAgB;AAAA,IAChB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,SAAS;AAAA,IACT,OAAO;AAAA,GACT;AAEJ;AAEA,YAAY,YAAY;AACxB,YAAY,eAAe;AAC3B,YAAY,cAAc;AAC1B,MAAM,wBAAwB,kCAAS,WAAW,EAAE,WAAW,yBAAyB;AACxF,sBAAsB,YAAY;AAIlC,IAAO,sBAAQ;",
6
6
  "names": []
7
7
  }
@@ -24,26 +24,26 @@ __export(props_exports, {
24
24
  });
25
25
  module.exports = __toCommonJS(props_exports);
26
26
  var React = __toESM(require("react"));
27
- var import_react_desc = require("react-desc");
27
+ var import_ds_utilities = require("@elliemae/ds-utilities");
28
28
  const props = {
29
- containerProps: import_react_desc.PropTypes.object.description("props injected to date input wrapper node"),
30
- innerRef: import_react_desc.PropTypes.oneOfType([
31
- import_react_desc.PropTypes.func,
32
- import_react_desc.PropTypes.shape({ current: import_react_desc.PropTypes.any })
29
+ containerProps: import_ds_utilities.PropTypes.object.description("props injected to date input wrapper node"),
30
+ innerRef: import_ds_utilities.PropTypes.oneOfType([
31
+ import_ds_utilities.PropTypes.func,
32
+ import_ds_utilities.PropTypes.shape({ current: import_ds_utilities.PropTypes.any })
33
33
  ]).description("inner ref for input wrapper"),
34
- className: import_react_desc.PropTypes.string.description("class for input"),
35
- style: import_react_desc.PropTypes.object.description("Set style for the date input"),
36
- onBlur: import_react_desc.PropTypes.func.description("Triggers the onBlur when focus moves out of date input"),
37
- onFocus: import_react_desc.PropTypes.func.description("Triggers the onFocus when the component gets the focus"),
38
- onClear: import_react_desc.PropTypes.func.description("Triggers the onClear"),
39
- onKeyDown: import_react_desc.PropTypes.func.description("Triggers the onKeyDown"),
40
- onChange: import_react_desc.PropTypes.func.description("Allows a function that is triggered once the date input changes"),
41
- onError: import_react_desc.PropTypes.func.description("Triggers the onError once one input date is wrong"),
42
- format: import_react_desc.PropTypes.string.description("Format type for date input"),
43
- value: import_react_desc.PropTypes.string.description("Default value once the component is initialized"),
44
- clearable: import_react_desc.PropTypes.bool.description("Whether the date input is clearable or not"),
45
- disabled: import_react_desc.PropTypes.bool.description("Whether the date input is disabled or not"),
46
- yearMaxRange: import_react_desc.PropTypes.number.description("Max year that can be accepted by the date input"),
47
- yearMinRange: import_react_desc.PropTypes.number.description("Min year that can be accepted by the date input")
34
+ className: import_ds_utilities.PropTypes.string.description("class for input"),
35
+ style: import_ds_utilities.PropTypes.object.description("Set style for the date input"),
36
+ onBlur: import_ds_utilities.PropTypes.func.description("Triggers the onBlur when focus moves out of date input"),
37
+ onFocus: import_ds_utilities.PropTypes.func.description("Triggers the onFocus when the component gets the focus"),
38
+ onClear: import_ds_utilities.PropTypes.func.description("Triggers the onClear"),
39
+ onKeyDown: import_ds_utilities.PropTypes.func.description("Triggers the onKeyDown"),
40
+ onChange: import_ds_utilities.PropTypes.func.description("Allows a function that is triggered once the date input changes"),
41
+ onError: import_ds_utilities.PropTypes.func.description("Triggers the onError once one input date is wrong"),
42
+ format: import_ds_utilities.PropTypes.string.description("Format type for date input"),
43
+ value: import_ds_utilities.PropTypes.string.description("Default value once the component is initialized"),
44
+ clearable: import_ds_utilities.PropTypes.bool.description("Whether the date input is clearable or not"),
45
+ disabled: import_ds_utilities.PropTypes.bool.description("Whether the date input is disabled or not"),
46
+ yearMaxRange: import_ds_utilities.PropTypes.number.description("Max year that can be accepted by the date input"),
47
+ yearMinRange: import_ds_utilities.PropTypes.number.description("Min year that can be accepted by the date input")
48
48
  };
49
49
  //# 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 'react-desc';\n\nexport const props = {\n /** props injected to date input wrapper node */\n containerProps: PropTypes.object.description(\n 'props injected to date input wrapper node',\n ),\n /** inner ref for input wrapper */\n innerRef: PropTypes.oneOfType([\n PropTypes.func,\n PropTypes.shape({ current: PropTypes.any }),\n ]).description('inner ref for input wrapper'),\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(\n 'Triggers the onBlur when focus moves out of date input',\n ),\n /**\n * Triggers the onFocus when the component gets the focus\n */\n onFocus: PropTypes.func.description(\n 'Triggers the onFocus when the component gets the focus',\n ),\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(\n 'Allows a function that is triggered once the date input changes',\n ),\n /**\n * Triggers the onError once one input date is wrong\n */\n onError: PropTypes.func.description(\n 'Triggers the onError once one input date is wrong',\n ),\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(\n 'Default value once the component is initialized',\n ),\n /**\n * Whether the date input is clearable or not\n */\n clearable: PropTypes.bool.description(\n 'Whether the date input is clearable or not',\n ),\n /**\n * Whether the date input is disabled or not\n */\n disabled: PropTypes.bool.description(\n 'Whether the date input is disabled or not',\n ),\n /**\n * Max year that can be accepted by the date input\n */\n yearMaxRange: PropTypes.number.description(\n 'Max year that can be accepted by the date input',\n ),\n /**\n * Min year that can be accepted by the date input\n */\n yearMinRange: PropTypes.number.description(\n 'Min year that can be accepted by the date input',\n ),\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,wBAA0B;AAEnB,MAAM,QAAQ;AAAA,EAEnB,gBAAgB,4BAAU,OAAO,YAC/B,2CACF;AAAA,EAEA,UAAU,4BAAU,UAAU;AAAA,IAC5B,4BAAU;AAAA,IACV,4BAAU,MAAM,EAAE,SAAS,4BAAU,IAAI,CAAC;AAAA,EAC5C,CAAC,EAAE,YAAY,6BAA6B;AAAA,EAE5C,WAAW,4BAAU,OAAO,YAAY,iBAAiB;AAAA,EAIzD,OAAO,4BAAU,OAAO,YAAY,8BAA8B;AAAA,EAIlE,QAAQ,4BAAU,KAAK,YACrB,wDACF;AAAA,EAIA,SAAS,4BAAU,KAAK,YACtB,wDACF;AAAA,EAIA,SAAS,4BAAU,KAAK,YAAY,sBAAsB;AAAA,EAI1D,WAAW,4BAAU,KAAK,YAAY,wBAAwB;AAAA,EAI9D,UAAU,4BAAU,KAAK,YACvB,iEACF;AAAA,EAIA,SAAS,4BAAU,KAAK,YACtB,mDACF;AAAA,EAIA,QAAQ,4BAAU,OAAO,YAAY,4BAA4B;AAAA,EAIjE,OAAO,4BAAU,OAAO,YACtB,iDACF;AAAA,EAIA,WAAW,4BAAU,KAAK,YACxB,4CACF;AAAA,EAIA,UAAU,4BAAU,KAAK,YACvB,2CACF;AAAA,EAIA,cAAc,4BAAU,OAAO,YAC7B,iDACF;AAAA,EAIA,cAAc,4BAAU,OAAO,YAC7B,iDACF;AACF;",
4
+ "sourcesContent": ["import { PropTypes } from '@elliemae/ds-utilities';\n\nexport const props = {\n /** props injected to date input wrapper node */\n containerProps: PropTypes.object.description(\n 'props injected to date input wrapper node',\n ),\n /** inner ref for input wrapper */\n innerRef: PropTypes.oneOfType([\n PropTypes.func,\n PropTypes.shape({ current: PropTypes.any }),\n ]).description('inner ref for input wrapper'),\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(\n 'Triggers the onBlur when focus moves out of date input',\n ),\n /**\n * Triggers the onFocus when the component gets the focus\n */\n onFocus: PropTypes.func.description(\n 'Triggers the onFocus when the component gets the focus',\n ),\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(\n 'Allows a function that is triggered once the date input changes',\n ),\n /**\n * Triggers the onError once one input date is wrong\n */\n onError: PropTypes.func.description(\n 'Triggers the onError once one input date is wrong',\n ),\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(\n 'Default value once the component is initialized',\n ),\n /**\n * Whether the date input is clearable or not\n */\n clearable: PropTypes.bool.description(\n 'Whether the date input is clearable or not',\n ),\n /**\n * Whether the date input is disabled or not\n */\n disabled: PropTypes.bool.description(\n 'Whether the date input is disabled or not',\n ),\n /**\n * Max year that can be accepted by the date input\n */\n yearMaxRange: PropTypes.number.description(\n 'Max year that can be accepted by the date input',\n ),\n /**\n * Min year that can be accepted by the date input\n */\n yearMinRange: PropTypes.number.description(\n 'Min year that can be accepted by the date input',\n ),\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,0BAA0B;AAEnB,MAAM,QAAQ;AAAA,EAEnB,gBAAgB,8BAAU,OAAO,YAC/B,2CACF;AAAA,EAEA,UAAU,8BAAU,UAAU;AAAA,IAC5B,8BAAU;AAAA,IACV,8BAAU,MAAM,EAAE,SAAS,8BAAU,IAAI,CAAC;AAAA,EAC5C,CAAC,EAAE,YAAY,6BAA6B;AAAA,EAE5C,WAAW,8BAAU,OAAO,YAAY,iBAAiB;AAAA,EAIzD,OAAO,8BAAU,OAAO,YAAY,8BAA8B;AAAA,EAIlE,QAAQ,8BAAU,KAAK,YACrB,wDACF;AAAA,EAIA,SAAS,8BAAU,KAAK,YACtB,wDACF;AAAA,EAIA,SAAS,8BAAU,KAAK,YAAY,sBAAsB;AAAA,EAI1D,WAAW,8BAAU,KAAK,YAAY,wBAAwB;AAAA,EAI9D,UAAU,8BAAU,KAAK,YACvB,iEACF;AAAA,EAIA,SAAS,8BAAU,KAAK,YACtB,mDACF;AAAA,EAIA,QAAQ,8BAAU,OAAO,YAAY,4BAA4B;AAAA,EAIjE,OAAO,8BAAU,OAAO,YACtB,iDACF;AAAA,EAIA,WAAW,8BAAU,KAAK,YACxB,4CACF;AAAA,EAIA,UAAU,8BAAU,KAAK,YACvB,2CACF;AAAA,EAIA,cAAc,8BAAU,OAAO,YAC7B,iDACF;AAAA,EAIA,cAAc,8BAAU,OAAO,YAC7B,iDACF;AACF;",
6
6
  "names": []
7
7
  }
@@ -27,7 +27,7 @@ __export(DSDateInput_exports, {
27
27
  module.exports = __toCommonJS(DSDateInput_exports);
28
28
  var React = __toESM(require("react"));
29
29
  var import_react = __toESM(require("react"));
30
- var import_react_desc = require("react-desc");
30
+ var import_ds_utilities = require("@elliemae/ds-utilities");
31
31
  var import_Input = require("../../Input");
32
32
  var import_DateInputs = require("./DateInputs");
33
33
  var import_props = require("./props");
@@ -68,7 +68,7 @@ const DSDateInputV2 = ({
68
68
  DSDateInputV2.defaultProps = import_props.defaultProps;
69
69
  DSDateInputV2.propTypes = import_props.props;
70
70
  DSDateInputV2.displayName = "DSDateInputV2";
71
- const DSDateInputV2WithSchema = (0, import_react_desc.describe)(DSDateInputV2);
71
+ const DSDateInputV2WithSchema = (0, import_ds_utilities.describe)(DSDateInputV2);
72
72
  DSDateInputV2WithSchema.propTypes = import_props.props;
73
73
  var DSDateInput_default = DSDateInputV2;
74
74
  //# 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 'react-desc';\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;ADAvB,mBAAkB;AAClB,wBAAyB;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;AAAA,MAEA,mDAAC;AAAA,EACC;AAAA,EACA;AAAA,EACA,iBAAiB,CAAC,EAAE,UAAU,SAC5B,mDAAC;AAAA,IACC;AAAA,IACA,UAAU;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA,IACA,iBAAiB;AAAA,IACjB;AAAA,IACA,MAAM;AAAA,IACN;AAAA,GACF;AAAA,EAEF,gBAAgB;AAAA,EAChB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,CACF;AAGF,cAAc,eAAe;AAE7B,cAAc,YAAY;AAC1B,cAAc,cAAc;AAC5B,MAAM,0BAA0B,gCAAS,aAAa;AACtD,wBAAwB,YAAY;AAGpC,IAAO,sBAAQ;",
4
+ "sourcesContent": ["import React from 'react';\nimport { describe } from '@elliemae/ds-utilities';\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;ADAvB,mBAAkB;AAClB,0BAAyB;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;AAAA,MAEA,mDAAC;AAAA,EACC;AAAA,EACA;AAAA,EACA,iBAAiB,CAAC,EAAE,UAAU,SAC5B,mDAAC;AAAA,IACC;AAAA,IACA,UAAU;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA,IACA,iBAAiB;AAAA,IACjB;AAAA,IACA,MAAM;AAAA,IACN;AAAA,GACF;AAAA,EAEF,gBAAgB;AAAA,EAChB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,CACF;AAGF,cAAc,eAAe;AAE7B,cAAc,YAAY;AAC1B,cAAc,cAAc;AAC5B,MAAM,0BAA0B,kCAAS,aAAa;AACtD,wBAAwB,YAAY;AAGpC,IAAO,sBAAQ;",
6
6
  "names": []
7
7
  }
@@ -25,21 +25,21 @@ __export(props_exports, {
25
25
  });
26
26
  module.exports = __toCommonJS(props_exports);
27
27
  var React = __toESM(require("react"));
28
- var import_react_desc = require("react-desc");
28
+ var import_ds_utilities = require("@elliemae/ds-utilities");
29
29
  var import_lodash = require("lodash");
30
30
  const props = {
31
- containerProps: import_react_desc.PropTypes.object.description("Props to inject to date input wrapper"),
32
- onBlur: import_react_desc.PropTypes.func.description("Triggers the onBlur when focus moves out of date input"),
33
- onFocus: import_react_desc.PropTypes.func.description("Triggers the onFocus when the component gets the focus"),
34
- onKeyDown: import_react_desc.PropTypes.func.description("Triggers the onKeyDown"),
35
- onChange: import_react_desc.PropTypes.func.description("Allows a function that is triggered once the date input changes"),
36
- onDateChange: import_react_desc.PropTypes.func.description(" 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."),
37
- onError: import_react_desc.PropTypes.func.description("Triggers the onError once one input date is wrong"),
38
- value: import_react_desc.PropTypes.string.description("Default value once the component is initialized MMDDYYYY"),
39
- disabled: import_react_desc.PropTypes.bool.description("Whether the date input is disabled or not"),
40
- tabIndex: import_react_desc.PropTypes.oneOfType([
41
- import_react_desc.PropTypes.number,
42
- import_react_desc.PropTypes.string
31
+ containerProps: import_ds_utilities.PropTypes.object.description("Props to inject to date input wrapper"),
32
+ onBlur: import_ds_utilities.PropTypes.func.description("Triggers the onBlur when focus moves out of date input"),
33
+ onFocus: import_ds_utilities.PropTypes.func.description("Triggers the onFocus when the component gets the focus"),
34
+ onKeyDown: import_ds_utilities.PropTypes.func.description("Triggers the onKeyDown"),
35
+ onChange: import_ds_utilities.PropTypes.func.description("Allows a function that is triggered once the date input changes"),
36
+ onDateChange: import_ds_utilities.PropTypes.func.description(" 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."),
37
+ onError: import_ds_utilities.PropTypes.func.description("Triggers the onError once one input date is wrong"),
38
+ value: import_ds_utilities.PropTypes.string.description("Default value once the component is initialized MMDDYYYY"),
39
+ disabled: import_ds_utilities.PropTypes.bool.description("Whether the date input is disabled or not"),
40
+ tabIndex: import_ds_utilities.PropTypes.oneOfType([
41
+ import_ds_utilities.PropTypes.number,
42
+ import_ds_utilities.PropTypes.string
43
43
  ]).description("tab index")
44
44
  };
45
45
  const defaultProps = {
@@ -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 'react-desc';\nimport { noop } from 'lodash';\n\nexport const props = {\n /** Props to inject to date input wrapper */\n containerProps: PropTypes.object.description(\n 'Props to inject to date input wrapper',\n ),\n /**\n * Triggers the onBlur when focus moves out of date input\n */\n onBlur: PropTypes.func.description(\n 'Triggers the onBlur when focus moves out of date input',\n ),\n /**\n * Triggers the onFocus when the component gets the focus\n */\n onFocus: PropTypes.func.description(\n 'Triggers the onFocus when the component gets the focus',\n ),\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(\n 'Allows a function that is triggered once the date input changes',\n ),\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(\n 'Triggers the onError once one input date is wrong',\n ),\n /**\n * Default value once the component is initialized MMDDYYYY\n */\n value: PropTypes.string.description(\n 'Default value once the component is initialized MMDDYYYY',\n ),\n /**\n * Whether the date input is disabled or not\n */\n disabled: PropTypes.bool.description(\n 'Whether the date input is disabled or not',\n ),\n /**\n * tab index\n */\n tabIndex: PropTypes.oneOfType([\n PropTypes.number,\n PropTypes.string,\n ]).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,wBAA0B;AAC1B,oBAAqB;AAEd,MAAM,QAAQ;AAAA,EAEnB,gBAAgB,4BAAU,OAAO,YAC/B,uCACF;AAAA,EAIA,QAAQ,4BAAU,KAAK,YACrB,wDACF;AAAA,EAIA,SAAS,4BAAU,KAAK,YACtB,wDACF;AAAA,EAIA,WAAW,4BAAU,KAAK,YAAY,wBAAwB;AAAA,EAI9D,UAAU,4BAAU,KAAK,YACvB,iEACF;AAAA,EAMA,cAAc,4BAAU,KAAK,YAC3B,oOACF;AAAA,EAIA,SAAS,4BAAU,KAAK,YACtB,mDACF;AAAA,EAIA,OAAO,4BAAU,OAAO,YACtB,0DACF;AAAA,EAIA,UAAU,4BAAU,KAAK,YACvB,2CACF;AAAA,EAIA,UAAU,4BAAU,UAAU;AAAA,IAC5B,4BAAU;AAAA,IACV,4BAAU;AAAA,EACZ,CAAC,EAAE,YAAY,WAAW;AAC5B;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;",
4
+ "sourcesContent": ["import { PropTypes } from '@elliemae/ds-utilities';\nimport { noop } from 'lodash';\n\nexport const props = {\n /** Props to inject to date input wrapper */\n containerProps: PropTypes.object.description(\n 'Props to inject to date input wrapper',\n ),\n /**\n * Triggers the onBlur when focus moves out of date input\n */\n onBlur: PropTypes.func.description(\n 'Triggers the onBlur when focus moves out of date input',\n ),\n /**\n * Triggers the onFocus when the component gets the focus\n */\n onFocus: PropTypes.func.description(\n 'Triggers the onFocus when the component gets the focus',\n ),\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(\n 'Allows a function that is triggered once the date input changes',\n ),\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(\n 'Triggers the onError once one input date is wrong',\n ),\n /**\n * Default value once the component is initialized MMDDYYYY\n */\n value: PropTypes.string.description(\n 'Default value once the component is initialized MMDDYYYY',\n ),\n /**\n * Whether the date input is disabled or not\n */\n disabled: PropTypes.bool.description(\n 'Whether the date input is disabled or not',\n ),\n /**\n * tab index\n */\n tabIndex: PropTypes.oneOfType([\n PropTypes.number,\n PropTypes.string,\n ]).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,0BAA0B;AAC1B,oBAAqB;AAEd,MAAM,QAAQ;AAAA,EAEnB,gBAAgB,8BAAU,OAAO,YAC/B,uCACF;AAAA,EAIA,QAAQ,8BAAU,KAAK,YACrB,wDACF;AAAA,EAIA,SAAS,8BAAU,KAAK,YACtB,wDACF;AAAA,EAIA,WAAW,8BAAU,KAAK,YAAY,wBAAwB;AAAA,EAI9D,UAAU,8BAAU,KAAK,YACvB,iEACF;AAAA,EAMA,cAAc,8BAAU,KAAK,YAC3B,oOACF;AAAA,EAIA,SAAS,8BAAU,KAAK,YACtB,mDACF;AAAA,EAIA,OAAO,8BAAU,OAAO,YACtB,0DACF;AAAA,EAIA,UAAU,8BAAU,KAAK,YACvB,2CACF;AAAA,EAIA,UAAU,8BAAU,UAAU;AAAA,IAC5B,8BAAU;AAAA,IACV,8BAAU;AAAA,EACZ,CAAC,EAAE,YAAY,WAAW;AAC5B;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
  }
@@ -27,14 +27,14 @@ __export(styled_exports, {
27
27
  });
28
28
  module.exports = __toCommonJS(styled_exports);
29
29
  var React = __toESM(require("react"));
30
- var import_styled_components = __toESM(require("styled-components"));
30
+ var import_ds_system = require("@elliemae/ds-system");
31
31
  var import_ds_grid = require("@elliemae/ds-grid");
32
- const DateInputFluidContainer = (0, import_styled_components.default)(import_ds_grid.Grid)`
32
+ const DateInputFluidContainer = (0, import_ds_system.styled)(import_ds_grid.Grid)`
33
33
  width: 100%;
34
34
  height: 100%;
35
35
  align-items: center;
36
36
  `;
37
- const DateInputWrapper = (0, import_styled_components.default)(import_ds_grid.Grid)`
37
+ const DateInputWrapper = (0, import_ds_system.styled)(import_ds_grid.Grid)`
38
38
  align-items: center;
39
39
  align-content: center;
40
40
  ${({ disabled, theme }) => disabled ? `
@@ -49,7 +49,7 @@ const DateInputWrapper = (0, import_styled_components.default)(import_ds_grid.Gr
49
49
  border-color: transparent;
50
50
  }
51
51
  `;
52
- const DateInputInput = import_styled_components.default.input`
52
+ const DateInputInput = import_ds_system.styled.input`
53
53
  outline: none;
54
54
  border: none;
55
55
  border-radius: 0;
@@ -85,7 +85,7 @@ const DateInputInput = import_styled_components.default.input`
85
85
  background: transparent;
86
86
  }
87
87
  `;
88
- const DateInputDivider = import_styled_components.default.div`
88
+ const DateInputDivider = import_ds_system.styled.div`
89
89
  padding: 1px;
90
90
  text-align: center;
91
91
  `;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/DateInputV2/components/styled.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import styled from 'styled-components';\nimport { Grid } from '@elliemae/ds-grid';\n\n\nexport const DateInputFluidContainer = styled(Grid)`\n width: 100%;\n height: 100%;\n align-items: center;\n`;\n\nexport const DateInputWrapper = styled(Grid)`\n align-items: center;\n align-content: center;\n ${({ disabled, theme }) =>\n disabled\n ? `\n background: ${theme.colors.neutral[100]};\n color: ${theme.colors.neutral[500]};\n `\n : ''}\n width: 102px;\n\n &:focus {\n outline-style: none;\n box-shadow: none;\n border-color: transparent;\n }\n`;\n\nexport const DateInputInput = styled.input`\n outline: none;\n border: none;\n border-radius: 0;\n width: ${(props) => (props.size === 'l' ? '38px' : '25px')};\n height: ${(props) => props.theme.space.xs};\n ${({ disabled, theme }) =>\n disabled\n ? `\n background: ${theme.colors.neutral[100]};\n color: ${theme.colors.neutral[500]};\n `\n : ''}\n padding-left: 4px;\n padding-right: 0px;\n &::placeholder {\n font-size: 95%;\n font-style: italic;\n }\n :-moz-placeholder {\n font-size: 95%;\n font-style: italic;\n }\n\n ::-moz-placeholder {\n font-size: 95%;\n font-style: italic;\n }\n &:focus {\n background: ${({ theme }) => theme.colors.brand['300']};\n background-clip: content-box;\n }\n ::-moz-selection {\n background: transparent;\n }\n ::selection {\n background: transparent;\n }\n`;\n\nexport const DateInputDivider = styled.div`\n padding: 1px;\n text-align: center;\n`;\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,+BAAmB;AACnB,qBAAqB;AAGd,MAAM,0BAA0B,sCAAO,mBAAI;AAAA;AAAA;AAAA;AAAA;AAM3C,MAAM,mBAAmB,sCAAO,mBAAI;AAAA;AAAA;AAAA,IAGvC,CAAC,EAAE,UAAU,YACb,WACI;AAAA,kBACU,MAAM,OAAO,QAAQ;AAAA,aAC1B,MAAM,OAAO,QAAQ;AAAA,QAE1B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUD,MAAM,iBAAiB,iCAAO;AAAA;AAAA;AAAA;AAAA,WAI1B,CAAC,UAAW,MAAM,SAAS,MAAM,SAAS;AAAA,YACzC,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA,IACrC,CAAC,EAAE,UAAU,YACb,WACI;AAAA,gBACQ,MAAM,OAAO,QAAQ;AAAA,WAC1B,MAAM,OAAO,QAAQ;AAAA,MAExB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAiBU,CAAC,EAAE,YAAY,MAAM,OAAO,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAW7C,MAAM,mBAAmB,iCAAO;AAAA;AAAA;AAAA;",
4
+ "sourcesContent": ["import { styled } from '@elliemae/ds-system';\nimport { Grid } from '@elliemae/ds-grid';\n\n\nexport const DateInputFluidContainer = styled(Grid)`\n width: 100%;\n height: 100%;\n align-items: center;\n`;\n\nexport const DateInputWrapper = styled(Grid)`\n align-items: center;\n align-content: center;\n ${({ disabled, theme }) =>\n disabled\n ? `\n background: ${theme.colors.neutral[100]};\n color: ${theme.colors.neutral[500]};\n `\n : ''}\n width: 102px;\n\n &:focus {\n outline-style: none;\n box-shadow: none;\n border-color: transparent;\n }\n`;\n\nexport const DateInputInput = styled.input`\n outline: none;\n border: none;\n border-radius: 0;\n width: ${(props) => (props.size === 'l' ? '38px' : '25px')};\n height: ${(props) => props.theme.space.xs};\n ${({ disabled, theme }) =>\n disabled\n ? `\n background: ${theme.colors.neutral[100]};\n color: ${theme.colors.neutral[500]};\n `\n : ''}\n padding-left: 4px;\n padding-right: 0px;\n &::placeholder {\n font-size: 95%;\n font-style: italic;\n }\n :-moz-placeholder {\n font-size: 95%;\n font-style: italic;\n }\n\n ::-moz-placeholder {\n font-size: 95%;\n font-style: italic;\n }\n &:focus {\n background: ${({ theme }) => theme.colors.brand['300']};\n background-clip: content-box;\n }\n ::-moz-selection {\n background: transparent;\n }\n ::selection {\n background: transparent;\n }\n`;\n\nexport const DateInputDivider = styled.div`\n padding: 1px;\n text-align: center;\n`;\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,uBAAuB;AACvB,qBAAqB;AAGd,MAAM,0BAA0B,6BAAO,mBAAI;AAAA;AAAA;AAAA;AAAA;AAM3C,MAAM,mBAAmB,6BAAO,mBAAI;AAAA;AAAA;AAAA,IAGvC,CAAC,EAAE,UAAU,YACb,WACI;AAAA,kBACU,MAAM,OAAO,QAAQ;AAAA,aAC1B,MAAM,OAAO,QAAQ;AAAA,QAE1B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUD,MAAM,iBAAiB,wBAAO;AAAA;AAAA;AAAA;AAAA,WAI1B,CAAC,UAAW,MAAM,SAAS,MAAM,SAAS;AAAA,YACzC,CAAC,UAAU,MAAM,MAAM,MAAM;AAAA,IACrC,CAAC,EAAE,UAAU,YACb,WACI;AAAA,gBACQ,MAAM,OAAO,QAAQ;AAAA,WAC1B,MAAM,OAAO,QAAQ;AAAA,MAExB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAiBU,CAAC,EAAE,YAAY,MAAM,OAAO,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAW7C,MAAM,mBAAmB,wBAAO;AAAA;AAAA;AAAA;",
6
6
  "names": []
7
7
  }
@@ -58,7 +58,6 @@ __export(DSFormItemLayout_exports, {
58
58
  module.exports = __toCommonJS(DSFormItemLayout_exports);
59
59
  var React = __toESM(require("react"));
60
60
  var import_react = __toESM(require("react"));
61
- var import_react_desc = require("react-desc");
62
61
  var import_ds_classnames = require("@elliemae/ds-classnames");
63
62
  var import_ds_utilities = require("@elliemae/ds-utilities");
64
63
  var import_ds_shared = require("@elliemae/ds-shared");
@@ -243,7 +242,7 @@ const DSFormItemLayout = (_a) => {
243
242
  DSFormItemLayout.propTypes = import_props.props;
244
243
  DSFormItemLayout.defaultProps = import_defaultProps.defaultProps;
245
244
  DSFormItemLayout.displayName = "DSFormItemLayout";
246
- const DSFormItemLayoutWithSchema = (0, import_react_desc.describe)(DSFormItemLayout);
245
+ const DSFormItemLayoutWithSchema = (0, import_ds_utilities.describe)(DSFormItemLayout);
247
246
  DSFormItemLayoutWithSchema.propTypes = import_props.props;
248
247
  var DSFormItemLayout_default = DSFormItemLayout;
249
248
  //# 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 { describe } from 'react-desc';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport { getComponentFromProps } from '@elliemae/ds-utilities';\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": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADEvB,mBAAkB;AAClB,wBAAyB;AACzB,2BAAkC;AAClC,0BAAsC;AACtC,uBAAsB;AACtB,wBAA6B;AAC7B,gCAAqC;AACrC,qBAAwB;AACxB,mBAAsB;AACtB,0BAA6B;AAC7B,sBAAyC;AACzC,oBAA0D;AAK1D,MAAM,YAAY;AAElB,MAAM,UAAU,4CAAkB,KAAK,EAAE,WAAW,MAAM,CAAC,EAAE,WAAW,SAAS,YAAY,oBAAqB;AAAA,EAChH,mBAAmB;AAAA,EACnB,eAAe;AAAA,GACd,UAAU;AAAA,EACX,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AAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,KACI,iBAEJ,mDAAC,0BACE,gBACA,YACH,GACA,mDAAC;AAAA,IAAkB;AAAA,IAAoB,MAAM,mBAAmB,WAAW,oBAAoB;AAAA,GAAiB,CAClH;AAEJ;AAEA,iBAAiB,YAAY;AAC7B,iBAAiB,eAAe;AAChC,iBAAiB,cAAc;AAC/B,MAAM,6BAA6B,gCAAS,gBAAgB;AAC5D,2BAA2B,YAAY;AAEvC,IAAO,2BAAQ;",
4
+ "sourcesContent": ["/* eslint-disable complexity */\n/* eslint-disable max-lines */\nimport React from 'react';\nimport { aggregatedClasses } from '@elliemae/ds-classnames';\nimport { describe, getComponentFromProps } from '@elliemae/ds-utilities';\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": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADEvB,mBAAkB;AAClB,2BAAkC;AAClC,0BAAgD;AAChD,uBAAsB;AACtB,wBAA6B;AAC7B,gCAAqC;AACrC,qBAAwB;AACxB,mBAAsB;AACtB,0BAA6B;AAC7B,sBAAyC;AACzC,oBAA0D;AAK1D,MAAM,YAAY;AAElB,MAAM,UAAU,4CAAkB,KAAK,EAAE,WAAW,MAAM,CAAC,EAAE,WAAW,SAAS,YAAY,oBAAqB;AAAA,EAChH,mBAAmB;AAAA,EACnB,eAAe;AAAA,GACd,UAAU;AAAA,EACX,kBAAkB;AACpB,EAAE;AAEF,MAAM,iBAAiB,4CAAkB,KAAK,EAAE,GAAG,mBAAmB;AACtE,MAAM,sBAAsB,4CAAkB,UAAU,EAAE,GAAG,mB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B,WAAW,oBAAoB;AAAA,GAAiB,CAClH;AAEJ;AAEA,iBAAiB,YAAY;AAC7B,iBAAiB,eAAe;AAChC,iBAAiB,cAAc;AAC/B,MAAM,6BAA6B,kCAAS,gBAAgB;AAC5D,2BAA2B,YAAY;AAEvC,IAAO,2BAAQ;",
6
6
  "names": []
7
7
  }
@@ -27,7 +27,7 @@ __export(DSError_exports, {
27
27
  module.exports = __toCommonJS(DSError_exports);
28
28
  var React = __toESM(require("react"));
29
29
  var import_react = __toESM(require("react"));
30
- var import_react_desc = require("react-desc");
30
+ var import_ds_utilities = require("@elliemae/ds-utilities");
31
31
  const DSError = ({ hasError = false, errorText = "Error" }) => {
32
32
  if (!hasError)
33
33
  return null;
@@ -36,12 +36,12 @@ const DSError = ({ hasError = false, errorText = "Error" }) => {
36
36
  }, errorText);
37
37
  };
38
38
  const props = {
39
- hasError: import_react_desc.PropTypes.bool.description("error state"),
40
- errorText: import_react_desc.PropTypes.string.description("error label text")
39
+ hasError: import_ds_utilities.PropTypes.bool.description("error state"),
40
+ errorText: import_ds_utilities.PropTypes.string.description("error label text")
41
41
  };
42
42
  DSError.propTypes = props;
43
43
  DSError.displayName = "DSError";
44
- const DSErrorWithSchema = (0, import_react_desc.describe)(DSError);
44
+ const DSErrorWithSchema = (0, import_ds_utilities.describe)(DSError);
45
45
  DSErrorWithSchema.propTypes = props;
46
46
  var DSError_default = DSError;
47
47
  //# sourceMappingURL=DSError.js.map