@hitachivantara/uikit-react-core 3.66.2 → 3.67.0

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 (85) hide show
  1. package/dist/BaseInput/BaseInput.js +6 -1
  2. package/dist/BaseInput/BaseInput.js.map +1 -1
  3. package/dist/BaseInput/styles.js +3 -0
  4. package/dist/BaseInput/styles.js.map +1 -1
  5. package/dist/FilterGroup/FilterGroup.d.ts +3 -3
  6. package/dist/Forms/FormElement/index.d.ts +4 -0
  7. package/dist/Forms/FormElement/index.js +14 -0
  8. package/dist/Forms/FormElement/index.js.map +1 -1
  9. package/dist/Slider/Slider.d.ts +185 -0
  10. package/dist/Slider/Slider.js +803 -0
  11. package/dist/Slider/Slider.js.map +1 -0
  12. package/dist/Slider/SliderInput/SliderInput.js +194 -0
  13. package/dist/Slider/SliderInput/SliderInput.js.map +1 -0
  14. package/dist/Slider/SliderInput/index.d.ts +1 -0
  15. package/dist/Slider/SliderInput/index.js +16 -0
  16. package/dist/Slider/SliderInput/index.js.map +1 -0
  17. package/dist/Slider/SliderInput/styles.js +24 -0
  18. package/dist/Slider/SliderInput/styles.js.map +1 -0
  19. package/dist/Slider/index.d.ts +2 -0
  20. package/dist/Slider/index.js +16 -0
  21. package/dist/Slider/index.js.map +1 -0
  22. package/dist/Slider/styles.js +238 -0
  23. package/dist/Slider/styles.js.map +1 -0
  24. package/dist/Slider/utils.js +413 -0
  25. package/dist/Slider/utils.js.map +1 -0
  26. package/dist/index.d.ts +3 -0
  27. package/dist/index.js +9 -0
  28. package/dist/index.js.map +1 -1
  29. package/dist/legacy/BaseInput/BaseInput.js +6 -1
  30. package/dist/legacy/BaseInput/BaseInput.js.map +1 -1
  31. package/dist/legacy/BaseInput/styles.js +3 -0
  32. package/dist/legacy/BaseInput/styles.js.map +1 -1
  33. package/dist/legacy/FilterGroup/FilterGroup.d.ts +3 -3
  34. package/dist/legacy/Forms/FormElement/index.d.ts +4 -0
  35. package/dist/legacy/Forms/FormElement/index.js +1 -0
  36. package/dist/legacy/Forms/FormElement/index.js.map +1 -1
  37. package/dist/legacy/Slider/Slider.d.ts +185 -0
  38. package/dist/legacy/Slider/Slider.js +752 -0
  39. package/dist/legacy/Slider/Slider.js.map +1 -0
  40. package/dist/legacy/Slider/SliderInput/SliderInput.js +151 -0
  41. package/dist/legacy/Slider/SliderInput/SliderInput.js.map +1 -0
  42. package/dist/legacy/Slider/SliderInput/index.d.ts +1 -0
  43. package/dist/legacy/Slider/SliderInput/index.js +2 -0
  44. package/dist/legacy/Slider/SliderInput/index.js.map +1 -0
  45. package/dist/legacy/Slider/SliderInput/styles.js +16 -0
  46. package/dist/legacy/Slider/SliderInput/styles.js.map +1 -0
  47. package/dist/legacy/Slider/index.d.ts +2 -0
  48. package/dist/legacy/Slider/index.js +2 -0
  49. package/dist/legacy/Slider/index.js.map +1 -0
  50. package/dist/legacy/Slider/styles.js +221 -0
  51. package/dist/legacy/Slider/styles.js.map +1 -0
  52. package/dist/legacy/Slider/utils.js +347 -0
  53. package/dist/legacy/Slider/utils.js.map +1 -0
  54. package/dist/legacy/index.d.ts +3 -0
  55. package/dist/legacy/index.js +1 -0
  56. package/dist/legacy/index.js.map +1 -1
  57. package/dist/modern/BaseInput/BaseInput.js +6 -1
  58. package/dist/modern/BaseInput/BaseInput.js.map +1 -1
  59. package/dist/modern/BaseInput/styles.js +3 -0
  60. package/dist/modern/BaseInput/styles.js.map +1 -1
  61. package/dist/modern/FilterGroup/FilterGroup.d.ts +3 -3
  62. package/dist/modern/Forms/FormElement/index.d.ts +4 -0
  63. package/dist/modern/Forms/FormElement/index.js +1 -0
  64. package/dist/modern/Forms/FormElement/index.js.map +1 -1
  65. package/dist/modern/Slider/Slider.d.ts +185 -0
  66. package/dist/modern/Slider/Slider.js +689 -0
  67. package/dist/modern/Slider/Slider.js.map +1 -0
  68. package/dist/modern/Slider/SliderInput/SliderInput.js +129 -0
  69. package/dist/modern/Slider/SliderInput/SliderInput.js.map +1 -0
  70. package/dist/modern/Slider/SliderInput/index.d.ts +1 -0
  71. package/dist/modern/Slider/SliderInput/index.js +2 -0
  72. package/dist/modern/Slider/SliderInput/index.js.map +1 -0
  73. package/dist/modern/Slider/SliderInput/styles.js +16 -0
  74. package/dist/modern/Slider/SliderInput/styles.js.map +1 -0
  75. package/dist/modern/Slider/index.d.ts +2 -0
  76. package/dist/modern/Slider/index.js +2 -0
  77. package/dist/modern/Slider/index.js.map +1 -0
  78. package/dist/modern/Slider/styles.js +214 -0
  79. package/dist/modern/Slider/styles.js.map +1 -0
  80. package/dist/modern/Slider/utils.js +302 -0
  81. package/dist/modern/Slider/utils.js.map +1 -0
  82. package/dist/modern/index.d.ts +3 -0
  83. package/dist/modern/index.js +1 -0
  84. package/dist/modern/index.js.map +1 -1
  85. package/package.json +4 -2
@@ -1 +1 @@
1
- {"version":3,"file":"BaseInput.js","names":["React","useContext","PropTypes","clsx","Input","withStyles","refType","styles","HvFormElementContext","HvFormElementDescriptorsContext","buildFormElementPropsFromContext","buildAriaPropsFromContext","HvBaseInput","props","classes","className","id","name","value","defaultValue","required","readOnly","disabled","onChange","type","placeholder","multiline","resizable","invalid","inputRef","inputProps","others","formElementContext","formElementProps","localInvalid","status","formElementDescriptorsContext","ariaProps","onChangeHandler","event","target","root","inputRoot","focused","inputRootFocused","inputRootDisabled","inputRootMultiline","input","inputResizable","inputBorderContainer","formElementType","propTypes","string","shape","isRequired","bool","func","instanceOf","Object"],"sources":["../../../src/BaseInput/BaseInput.js"],"sourcesContent":["import React, { useContext } from \"react\";\nimport PropTypes from \"prop-types\";\nimport clsx from \"clsx\";\nimport { Input, withStyles } from \"@material-ui/core\";\nimport { refType } from \"../utils\";\nimport styles from \"./styles\";\n\nimport {\n HvFormElementContext,\n HvFormElementDescriptorsContext,\n buildFormElementPropsFromContext,\n buildAriaPropsFromContext,\n} from \"../Forms/FormElement\";\n\n/**\n * An Input component that only posses the most basic functionalities.\n * It should be used alongside the other form elements to construct a proper accessible form.\n */\nconst HvBaseInput = (props) => {\n const {\n classes,\n className = \"\",\n\n id,\n name,\n\n value,\n defaultValue,\n\n required,\n readOnly,\n disabled,\n\n onChange,\n\n type = \"text\",\n\n placeholder,\n\n multiline = false,\n resizable = false,\n invalid = false,\n\n inputRef,\n inputProps = {},\n\n ...others\n } = props;\n\n const formElementContext = useContext(HvFormElementContext);\n const formElementProps = buildFormElementPropsFromContext(props, formElementContext);\n\n const localInvalid = invalid || formElementProps.status === \"invalid\";\n\n const formElementDescriptorsContext = useContext(HvFormElementDescriptorsContext);\n const ariaProps = buildAriaPropsFromContext(\n inputProps,\n formElementDescriptorsContext,\n localInvalid,\n id\n );\n\n const onChangeHandler = (event) => {\n onChange?.(event, event.target.value);\n };\n\n return (\n <div\n className={clsx(classes.root, className, {\n [classes.disabled]: formElementProps.disabled,\n [classes.invalid]: localInvalid,\n [classes.resizable]: multiline && resizable,\n [classes.readOnly]: readOnly,\n })}\n >\n <Input\n id={id}\n name={formElementProps.name}\n value={value}\n defaultValue={defaultValue}\n type={type}\n placeholder={placeholder}\n readOnly={formElementProps.readOnly}\n disabled={formElementProps.disabled}\n onChange={onChangeHandler}\n classes={{\n root: classes.inputRoot,\n focused: classes.inputRootFocused,\n disabled: classes.inputRootDisabled,\n multiline: classes.inputRootMultiline,\n input: clsx(classes.input, {\n [classes.inputResizable]: !formElementProps.disabled && resizable,\n }),\n }}\n inputProps={{\n // avoid the required attribute at the root node\n required: formElementProps.required,\n ...inputProps,\n ...ariaProps,\n }}\n inputRef={inputRef}\n multiline={multiline}\n rows={10}\n {...others}\n />\n {!multiline && <div role=\"presentation\" className={classes.inputBorderContainer} />}\n </div>\n );\n};\n\nHvBaseInput.formElementType = \"input\";\n\nHvBaseInput.propTypes = {\n /**\n * Class names to be applied.\n */\n className: PropTypes.string,\n /**\n * A Jss Object used to override or extend the component styles applied.\n */\n classes: PropTypes.shape({\n /**\n * Styles applied to the root container of the input.\n */\n root: PropTypes.string,\n /**\n * Styles applied to the root container of the input when it is disabled.\n */\n disabled: PropTypes.string,\n /**\n * Styles applied to the root container of the input when it is invalid.\n */\n invalid: PropTypes.string,\n /**\n * Styles applied to the root container of the input when it is resizable.\n */\n resizable: PropTypes.string,\n\n /**\n * Styles applied to input root which is the input that encloses all the other elements.\n */\n inputRoot: PropTypes.string,\n /**\n * Styles applied to input root when it is focused.\n */\n inputRootFocused: PropTypes.string,\n /**\n * Styles applied to input html element when it is disabled.\n */\n inputRootDisabled: PropTypes.string,\n /**\n * Styles applied to input html element when it is multiline mode.\n */\n inputRootMultiline: PropTypes.string,\n\n /**\n * Styles applied to input html element.\n */\n input: PropTypes.string,\n /**\n * Styles applied to input html element when it is resizable.\n */\n inputResizable: PropTypes.string,\n\n /**\n * Styles applied to the container of the border element.\n */\n inputBorderContainer: PropTypes.string,\n /**\n * Styles applied to the container of the border element, when in read only mode.\n */\n readOnly: PropTypes.string,\n }).isRequired,\n\n /**\n * Id to be applied to the root node.\n */\n id: PropTypes.string,\n /**\n * The input name.\n */\n name: PropTypes.string,\n\n /**\n * The value of the input, when controlled.\n */\n value: PropTypes.string,\n /**\n * The initial value of the input, when uncontrolled.\n */\n defaultValue: PropTypes.string,\n\n /**\n * If `true` the input is disabled.\n */\n disabled: PropTypes.bool,\n /**\n * Indicates that the input is not editable.\n */\n readOnly: PropTypes.bool,\n /**\n * If true, the input element will be required.\n */\n required: PropTypes.bool,\n\n /**\n * The function that will be executed onChange, allows modification of the input,\n * it receives the value. If a new value should be presented it must returned it.\n */\n onChange: PropTypes.func,\n\n /**\n * The input type.\n */\n type: PropTypes.string,\n\n /**\n * Label inside the input used to help user.\n */\n placeholder: PropTypes.string,\n\n /**\n * If true, a textarea element will be rendered.\n */\n multiline: PropTypes.bool,\n /**\n * If true and multiline is also true the textarea element will be resizable.\n */\n resizable: PropTypes.bool,\n /**\n * Denotes if the input is in an invalid state.\n */\n invalid: PropTypes.bool,\n\n /**\n * Attributes applied to the input element.\n */\n inputProps: PropTypes.instanceOf(Object),\n /**\n * Allows passing a ref to the underlying input\n */\n inputRef: refType,\n};\n\nexport default withStyles(styles, { name: \"HvBaseInput\" })(HvBaseInput);\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,IAAgBC,UAAhB,QAAkC,OAAlC;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,IAAP,MAAiB,MAAjB;AACA,SAASC,KAAT,EAAgBC,UAAhB,QAAkC,mBAAlC;AACA,SAASC,OAAT,QAAwB,UAAxB;AACA,OAAOC,MAAP,MAAmB,UAAnB;AAEA,SACEC,oBADF,EAEEC,+BAFF,EAGEC,gCAHF,EAIEC,yBAJF,QAKO,sBALP;AAOA;AACA;AACA;AACA;;AACA,IAAMC,WAAW,GAAG,SAAdA,WAAc,CAACC,KAAD,EAAW;EAC7B,IACEC,OADF,GA4BID,KA5BJ,CACEC,OADF;EAAA,uBA4BID,KA5BJ,CAEEE,SAFF;EAAA,IAEEA,SAFF,iCAEc,EAFd;EAAA,IAIEC,EAJF,GA4BIH,KA5BJ,CAIEG,EAJF;EAAA,IAKEC,IALF,GA4BIJ,KA5BJ,CAKEI,IALF;EAAA,IAOEC,KAPF,GA4BIL,KA5BJ,CAOEK,KAPF;EAAA,IAQEC,YARF,GA4BIN,KA5BJ,CAQEM,YARF;EAAA,IAUEC,QAVF,GA4BIP,KA5BJ,CAUEO,QAVF;EAAA,IAWEC,QAXF,GA4BIR,KA5BJ,CAWEQ,QAXF;EAAA,IAYEC,QAZF,GA4BIT,KA5BJ,CAYES,QAZF;EAAA,IAcEC,QAdF,GA4BIV,KA5BJ,CAcEU,QAdF;EAAA,kBA4BIV,KA5BJ,CAgBEW,IAhBF;EAAA,IAgBEA,IAhBF,4BAgBS,MAhBT;EAAA,IAkBEC,WAlBF,GA4BIZ,KA5BJ,CAkBEY,WAlBF;EAAA,uBA4BIZ,KA5BJ,CAoBEa,SApBF;EAAA,IAoBEA,SApBF,iCAoBc,KApBd;EAAA,uBA4BIb,KA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S,EAAExB,SAAS,CAACqD,IAhHC;;EAiHtB;AACF;AACA;EACE5B,SAAS,EAAEzB,SAAS,CAACqD,IApHC;;EAqHtB;AACF;AACA;EACE3B,OAAO,EAAE1B,SAAS,CAACqD,IAxHG;;EA0HtB;AACF;AACA;EACEzB,UAAU,EAAE5B,SAAS,CAACuD,UAAV,CAAqBC,MAArB,CA7HU;;EA8HtB;AACF;AACA;EACE7B,QAAQ,EAAEvB;AAjIY,CAAxB;AAoIA,eAAeD,UAAU,CAACE,MAAD,EAAS;EAAEU,IAAI,EAAE;AAAR,CAAT,CAAV,CAA4CL,WAA5C,CAAf"}
1
+ {"version":3,"file":"BaseInput.js","names":["React","useContext","PropTypes","clsx","Input","withStyles","refType","styles","HvFormElementContext","HvFormElementDescriptorsContext","buildFormElementPropsFromContext","buildAriaPropsFromContext","HvBaseInput","props","classes","className","id","name","value","defaultValue","required","readOnly","disabled","onChange","type","placeholder","multiline","resizable","invalid","inputRef","inputProps","others","formElementContext","formElementProps","localInvalid","status","formElementDescriptorsContext","ariaProps","onChangeHandler","event","target","root","inputRoot","focused","inputRootFocused","inputRootDisabled","inputRootMultiline","input","inputResizable","inputDisabled","inputBorderContainer","formElementType","propTypes","string","shape","isRequired","bool","func","instanceOf","Object"],"sources":["../../../src/BaseInput/BaseInput.js"],"sourcesContent":["import React, { useContext } from \"react\";\nimport PropTypes from \"prop-types\";\nimport clsx from \"clsx\";\nimport { Input, withStyles } from \"@material-ui/core\";\nimport { refType } from \"../utils\";\nimport styles from \"./styles\";\n\nimport {\n HvFormElementContext,\n HvFormElementDescriptorsContext,\n buildFormElementPropsFromContext,\n buildAriaPropsFromContext,\n} from \"../Forms/FormElement\";\n\n/**\n * An Input component that only posses the most basic functionalities.\n * It should be used alongside the other form elements to construct a proper accessible form.\n */\nconst HvBaseInput = (props) => {\n const {\n classes,\n className = \"\",\n\n id,\n name,\n\n value,\n defaultValue,\n\n required,\n readOnly,\n disabled,\n\n onChange,\n\n type = \"text\",\n\n placeholder,\n\n multiline = false,\n resizable = false,\n invalid = false,\n\n inputRef,\n inputProps = {},\n\n ...others\n } = props;\n\n const formElementContext = useContext(HvFormElementContext);\n const formElementProps = buildFormElementPropsFromContext(props, formElementContext);\n\n const localInvalid = invalid || formElementProps.status === \"invalid\";\n\n const formElementDescriptorsContext = useContext(HvFormElementDescriptorsContext);\n const ariaProps = buildAriaPropsFromContext(\n inputProps,\n formElementDescriptorsContext,\n localInvalid,\n id\n );\n\n const onChangeHandler = (event) => {\n onChange?.(event, event.target.value);\n };\n\n return (\n <div\n className={clsx(classes.root, className, {\n [classes.disabled]: formElementProps.disabled,\n [classes.invalid]: localInvalid,\n [classes.resizable]: multiline && resizable,\n [classes.readOnly]: readOnly,\n })}\n >\n <Input\n id={id}\n name={formElementProps.name}\n value={value}\n defaultValue={defaultValue}\n type={type}\n placeholder={placeholder}\n readOnly={formElementProps.readOnly}\n disabled={formElementProps.disabled}\n onChange={onChangeHandler}\n classes={{\n root: classes.inputRoot,\n focused: classes.inputRootFocused,\n disabled: classes.inputRootDisabled,\n multiline: classes.inputRootMultiline,\n input: clsx(classes.input, {\n [classes.inputResizable]: !formElementProps.disabled && resizable,\n [classes.inputDisabled]: disabled,\n }),\n }}\n inputProps={{\n // avoid the required attribute at the root node\n required: formElementProps.required,\n ...inputProps,\n ...ariaProps,\n }}\n inputRef={inputRef}\n multiline={multiline}\n rows={10}\n {...others}\n />\n {!multiline && <div role=\"presentation\" className={classes.inputBorderContainer} />}\n </div>\n );\n};\n\nHvBaseInput.formElementType = \"input\";\n\nHvBaseInput.propTypes = {\n /**\n * Class names to be applied.\n */\n className: PropTypes.string,\n /**\n * A Jss Object used to override or extend the component styles applied.\n */\n classes: PropTypes.shape({\n /**\n * Styles applied to the root container of the input.\n */\n root: PropTypes.string,\n /**\n * Styles applied to the root container of the input when it is disabled.\n */\n disabled: PropTypes.string,\n /**\n * Styles applied to the root container of the input when it is invalid.\n */\n invalid: PropTypes.string,\n /**\n * Styles applied to the root container of the input when it is resizable.\n */\n resizable: PropTypes.string,\n\n /**\n * Styles applied to input root which is the input that encloses all the other elements.\n */\n inputRoot: PropTypes.string,\n /**\n * Styles applied to input root when it is focused.\n */\n inputRootFocused: PropTypes.string,\n /**\n * Styles applied to input html element when it is disabled.\n */\n inputRootDisabled: PropTypes.string,\n /**\n * Styles applied to input html element when it is multiline mode.\n */\n inputRootMultiline: PropTypes.string,\n\n /**\n * Styles applied to input html element.\n */\n input: PropTypes.string,\n /**\n * Styles applied to input html element when is disabled.\n */\n inputDisabled: PropTypes.string,\n /**\n * Styles applied to input html element when it is resizable.\n */\n inputResizable: PropTypes.string,\n\n /**\n * Styles applied to the container of the border element.\n */\n inputBorderContainer: PropTypes.string,\n /**\n * Styles applied to the container of the border element, when in read only mode.\n */\n readOnly: PropTypes.string,\n }).isRequired,\n\n /**\n * Id to be applied to the root node.\n */\n id: PropTypes.string,\n /**\n * The input name.\n */\n name: PropTypes.string,\n\n /**\n * The value of the input, when controlled.\n */\n value: PropTypes.string,\n /**\n * The initial value of the input, when uncontrolled.\n */\n defaultValue: PropTypes.string,\n\n /**\n * If `true` the input is disabled.\n */\n disabled: PropTypes.bool,\n /**\n * Indicates that the input is not editable.\n */\n readOnly: PropTypes.bool,\n /**\n * If true, the input element will be required.\n */\n required: PropTypes.bool,\n\n /**\n * The function that will be executed onChange, allows modification of the input,\n * it receives the value. If a new value should be presented it must returned it.\n */\n onChange: PropTypes.func,\n\n /**\n * The input type.\n */\n type: PropTypes.string,\n\n /**\n * Label inside the input used to help user.\n */\n placeholder: PropTypes.string,\n\n /**\n * If true, a textarea element will be rendered.\n */\n multiline: PropTypes.bool,\n /**\n * If true and multiline is also true the textarea element will be resizable.\n */\n resizable: PropTypes.bool,\n /**\n * Denotes if the input is in an invalid state.\n */\n invalid: PropTypes.bool,\n\n /**\n * Attributes applied to the input element.\n */\n inputProps: PropTypes.instanceOf(Object),\n /**\n * Allows passing a ref to the underlying input\n */\n inputRef: refType,\n};\n\nexport default withSt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ACmD,MA/GD;;EAiHtB;AACF;AACA;EACE3B,SAAS,EAAExB,SAAS,CAACsD,IApHC;;EAqHtB;AACF;AACA;EACE7B,SAAS,EAAEzB,SAAS,CAACsD,IAxHC;;EAyHtB;AACF;AACA;EACE5B,OAAO,EAAE1B,SAAS,CAACsD,IA5HG;;EA8HtB;AACF;AACA;EACE1B,UAAU,EAAE5B,SAAS,CAACwD,UAAV,CAAqBC,MAArB,CAjIU;;EAkItB;AACF;AACA;EACE9B,QAAQ,EAAEvB;AArIY,CAAxB;AAwIA,eAAeD,UAAU,CAACE,MAAD,EAAS;EAAEU,IAAI,EAAE;AAAR,CAAT,CAAV,CAA4CL,WAA5C,CAAf"}
@@ -185,6 +185,9 @@ var styles = function styles(theme) {
185
185
  width: "initial",
186
186
  flexGrow: 1
187
187
  }),
188
+ inputDisabled: {
189
+ color: theme.hv.palette.atmosphere.atmo5
190
+ },
188
191
  inputResizable: {
189
192
  resize: "both",
190
193
  width: "100%"
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","names":["outlineStyles","styles","theme","root","display","width","position","overflow","border","hv","palette","accent","acce1","backgroundColor","resizable","readOnly","disabled","atmosphere","atmo4","atmo3","invalid","semantic","sema4","inputRoot","margin","borderRadius","atmo1","inputRootFocused","background","inputRootDisabled","cursor","inputRootMultiline","padding","height","minHeight","marginLeft","marginRight","input","spacing","xs","typography","normalText","textOverflow","outline","placeholderText","opacity","flexGrow","inputResizable","resize","inputBorderContainer","top","left","color"],"sources":["../../../src/BaseInput/styles.js"],"sourcesContent":["import { outlineStyles } from \"../Focus/styles\";\n\nconst styles = (theme) => ({\n root: {\n display: \"inline-block\",\n width: \"100%\",\n position: \"relative\",\n \"& $inputRootMultiline\": {\n overflow: \"auto\",\n border: \"none\",\n },\n \"&:hover $inputRootMultiline\": {\n \"& $input\": {\n border: `1px solid ${theme.hv.palette.accent.acce1}`,\n },\n },\n \"&:hover $inputBorderContainer\": {\n backgroundColor: theme.hv.palette.accent.acce1,\n },\n \"&:focus-within $inputBorderContainer\": {\n backgroundColor: theme.hv.palette.accent.acce1,\n },\n // IE fallback code (using focus-within-polyfill)\n \"&.focus-within $inputBorderContainer\": {\n backgroundColor: theme.hv.palette.accent.acce1,\n },\n \"&:focus-within $inputRootMultiline\": {\n \"& $input\": {\n border: `1px solid ${theme.hv.palette.accent.acce1}`,\n },\n },\n // IE fallback code (using focus-within-polyfill)\n \"&.focus-within $inputRootMultiline\": {\n \"& $input\": {\n border: `1px solid ${theme.hv.palette.accent.acce1}`,\n },\n },\n },\n resizable: {\n width: \"auto\",\n },\n readOnly: {\n \"& $inputBorderContainer\": {\n backgroundColor: \"transparent\",\n },\n \"&:hover $inputBorderContainer\": {\n backgroundColor: \"transparent\",\n },\n \"&:focus-within $inputBorderContainer\": {\n backgroundColor: \"transparent\",\n },\n\n // multiline\n \"& $inputRootMultiline\": {\n \"& $input\": {\n border: \"1px solid transparent\",\n },\n },\n \"&:hover $inputRootMultiline\": {\n \"& $input\": {\n border: \"1px solid transparent\",\n },\n },\n \"&:focus-within $inputRootMultiline\": {\n \"& $input\": {\n border: \"1px solid transparent\",\n },\n },\n },\n disabled: {\n \"& $inputBorderContainer\": {\n backgroundColor: theme.hv.palette.atmosphere.atmo4,\n },\n \"&:hover $inputBorderContainer\": {\n backgroundColor: theme.hv.palette.atmosphere.atmo4,\n },\n \"& $inputRootMultiline\": {\n \"& $input\": {\n backgroundColor: theme.hv.palette.atmosphere.atmo3,\n border: `1px solid ${theme.hv.palette.atmosphere.atmo4}`,\n },\n },\n \"&:hover $inputRootMultiline\": {\n \"& $input\": {\n backgroundColor: theme.hv.palette.atmosphere.atmo3,\n border: `1px solid ${theme.hv.palette.atmosphere.atmo4}`,\n },\n },\n },\n invalid: {\n \"&:not($disabled)\": {\n \"& $inputBorderContainer\": {\n backgroundColor: theme.hv.palette.semantic.sema4,\n },\n \"&:hover $inputBorderContainer\": {\n backgroundColor: theme.hv.palette.semantic.sema4,\n },\n \"& $inputRootMultiline\": {\n \"& $input\": {\n border: `1px solid ${theme.hv.palette.semantic.sema4}`,\n },\n },\n \"&:hover $inputRootMultiline\": {\n \"& $input\": {\n border: `1px solid ${theme.hv.palette.semantic.sema4}`,\n },\n },\n \"&:focus-within $inputRootMultiline\": {\n \"& $input\": {\n border: `1px solid ${theme.hv.palette.semantic.sema4}`,\n },\n },\n // IE fallback code (using focus-within-polyfill)\n \"&.focus-within $inputRootMultiline\": {\n \"& $input\": {\n border: `1px solid ${theme.hv.palette.semantic.sema4}`,\n },\n },\n },\n },\n\n inputRoot: {\n margin: 0,\n width: \"100%\",\n borderRadius: \"2px\",\n backgroundColor: theme.hv.palette.atmosphere.atmo1,\n },\n inputRootFocused: {\n background: theme.hv.palette.atmosphere.atmo1,\n ...outlineStyles,\n \"&:hover\": {\n background: theme.hv.palette.atmosphere.atmo1,\n },\n },\n inputRootDisabled: {\n background: theme.hv.palette.atmosphere.atmo3,\n \"&:hover\": {\n background: theme.hv.palette.atmosphere.atmo3,\n cursor: \"not-allowed\",\n },\n cursor: \"not-allowed\",\n },\n inputRootMultiline: {\n padding: 0,\n backgroundColor: \"transparent\",\n \"& $input\": {\n border: `1px solid ${theme.hv.palette.atmosphere.atmo4}`,\n borderRadius: \"2px\",\n backgroundColor: theme.hv.palette.atmosphere.atmo1,\n height: \"auto\",\n minHeight: \"21px\",\n padding: \"5px 10px\",\n overflow: \"auto\",\n marginLeft: \"0px\",\n marginRight: \"0px\",\n },\n },\n\n input: {\n height: \"21px\",\n marginLeft: theme.hv.spacing.xs,\n marginRight: theme.hv.spacing.xs,\n padding: \"6px 0 5px\",\n ...theme.hv.typography.normalText,\n overflow: \"hidden\",\n textOverflow: \"ellipsis\",\n outline: \"none\",\n \"&::placeholder\": {\n ...theme.hv.typography.placeholderText,\n opacity: 1,\n },\n \"&::-ms-clear\": {\n display: \"none\",\n },\n width: \"initial\",\n flexGrow: 1,\n },\n inputResizable: {\n resize: \"both\",\n width: \"100%\",\n },\n\n inputBorderContainer: {\n position: \"absolute\",\n width: \"calc(100% - 4px)\",\n height: \"1px\",\n top: \"31px\",\n left: \"2px\",\n backgroundColor: theme.hv.palette.atmosphere.atmo4,\n },\n\n \"@global\": {\n \"input:-webkit-autofill\": {\n \"-webkit-box-shadow\": `0 0 0px 1000px ${theme.hv.palette.atmosphere.atmo1} inset`,\n \"-webkit-text-fill-color\": theme.hv.typography.normalText.color,\n },\n },\n});\n\nexport default styles;\n"],"mappings":";;;;;;;;;;;;;AAAA,SAASA,aAAT,QAA8B,iBAA9B;;AAEA,IAAMC,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD;EAAA,OAAY;IACzBC,IAAI,EAAE;MACJC,OAAO,EAAE,cADL;MAEJC,KAAK,EAAE,MAFH;MAGJC,QAAQ,EAAE,UAHN;MAIJ,yBAAyB;QACvBC,QAAQ,EAAE,MADa;QAEvBC,MAAM,EAAE;MAFe,CAJrB;MAQJ,+BAA+B;QAC7B,YAAY;UACVA,MAAM,sBAAeN,KAAK,CAACO,EAAN,CAASC,OAAT,CAAiBC,MAAjB,CAAwBC,KAAvC;QADI;MADiB,CAR3B;MAaJ,iCAAiC;QAC/BC,eAAe,EAAEX,KAAK,CAACO,EAAN,CAASC,OAAT,CAAiBC,MAAjB,CAAwBC;MADV,CAb7B;MAgBJ,wCAAwC;QACtCC,eAAe,EAAEX,KAAK,CAACO,EAAN,CAASC,OAAT,CAAiBC,MAAjB,CAAwBC;MADH,CAhBpC;MAmBJ;MACA,wCAAwC;QACtCC,eAAe,EAAEX,KAAK,CAACO,EAAN,CAASC,OAAT,CAAiBC,MAAjB,CAAwBC;MADH,CApBpC;MAuBJ,sCAAsC;QACpC,YAAY;UACVJ,MAAM,sBAAeN,KAAK,CAACO,EAAN,CAASC,OAAT,CAAiBC,MAAjB,CAAwBC,KAAvC;QADI;MADwB,CAvBlC;MA4BJ;MACA,sCAAsC;QACpC,YAAY;UACVJ,MAAM,sBAAeN,KAAK,CAACO,EAAN,CAASC,OAAT,CAAiBC,MAAjB,CAA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M,EAAE,KAHY;MAIpBiB,GAAG,EAAE,MAJe;MAKpBC,IAAI,EAAE,KALc;MAMpBtC,eAAe,EAAEX,KAAK,CAACO,EAAN,CAASC,OAAT,CAAiBO,UAAjB,CAA4BC;IANzB,CApLG;IA6LzB,WAAW;MACT,0BAA0B;QACxB,+CAAwChB,KAAK,CAACO,EAAN,CAASC,OAAT,CAAiBO,UAAjB,CAA4BS,KAApE,WADwB;QAExB,2BAA2BxB,KAAK,CAACO,EAAN,CAAS+B,UAAT,CAAoBC,UAApB,CAA+BW;MAFlC;IADjB;EA7Lc,CAAZ;AAAA,CAAf;;AAqMA,eAAenD,MAAf"}
1
+ {"version":3,"file":"styles.js","names":["outlineStyles","styles","theme","root","display","width","position","overflow","border","hv","palette","accent","acce1","backgroundColor","resizable","readOnly","disabled","atmosphere","atmo4","atmo3","invalid","semantic","sema4","inputRoot","margin","borderRadius","atmo1","inputRootFocused","background","inputRootDisabled","cursor","inputRootMultiline","padding","height","minHeight","marginLeft","marginRight","input","spacing","xs","typography","normalText","textOverflow","outline","placeholderText","opacity","flexGrow","inputDisabled","color","atmo5","inputResizable","resize","inputBorderContainer","top","left"],"sources":["../../../src/BaseInput/styles.js"],"sourcesContent":["import { outlineStyles } from \"../Focus/styles\";\n\nconst styles = (theme) => ({\n root: {\n display: \"inline-block\",\n width: \"100%\",\n position: \"relative\",\n \"& $inputRootMultiline\": {\n overflow: \"auto\",\n border: \"none\",\n },\n \"&:hover $inputRootMultiline\": {\n \"& $input\": {\n border: `1px solid ${theme.hv.palette.accent.acce1}`,\n },\n },\n \"&:hover $inputBorderContainer\": {\n backgroundColor: theme.hv.palette.accent.acce1,\n },\n \"&:focus-within $inputBorderContainer\": {\n backgroundColor: theme.hv.palette.accent.acce1,\n },\n // IE fallback code (using focus-within-polyfill)\n \"&.focus-within $inputBorderContainer\": {\n backgroundColor: theme.hv.palette.accent.acce1,\n },\n \"&:focus-within $inputRootMultiline\": {\n \"& $input\": {\n border: `1px solid ${theme.hv.palette.accent.acce1}`,\n },\n },\n // IE fallback code (using focus-within-polyfill)\n \"&.focus-within $inputRootMultiline\": {\n \"& $input\": {\n border: `1px solid ${theme.hv.palette.accent.acce1}`,\n },\n },\n },\n resizable: {\n width: \"auto\",\n },\n readOnly: {\n \"& $inputBorderContainer\": {\n backgroundColor: \"transparent\",\n },\n \"&:hover $inputBorderContainer\": {\n backgroundColor: \"transparent\",\n },\n \"&:focus-within $inputBorderContainer\": {\n backgroundColor: \"transparent\",\n },\n\n // multiline\n \"& $inputRootMultiline\": {\n \"& $input\": {\n border: \"1px solid transparent\",\n },\n },\n \"&:hover $inputRootMultiline\": {\n \"& $input\": {\n border: \"1px solid transparent\",\n },\n },\n \"&:focus-within $inputRootMultiline\": {\n \"& $input\": {\n border: \"1px solid transparent\",\n },\n },\n },\n disabled: {\n \"& $inputBorderContainer\": {\n backgroundColor: theme.hv.palette.atmosphere.atmo4,\n },\n \"&:hover $inputBorderContainer\": {\n backgroundColor: theme.hv.palette.atmosphere.atmo4,\n },\n \"& $inputRootMultiline\": {\n \"& $input\": {\n backgroundColor: theme.hv.palette.atmosphere.atmo3,\n border: `1px solid ${theme.hv.palette.atmosphere.atmo4}`,\n },\n },\n \"&:hover $inputRootMultiline\": {\n \"& $input\": {\n backgroundColor: theme.hv.palette.atmosphere.atmo3,\n border: `1px solid ${theme.hv.palette.atmosphere.atmo4}`,\n },\n },\n },\n invalid: {\n \"&:not($disabled)\": {\n \"& $inputBorderContainer\": {\n backgroundColor: theme.hv.palette.semantic.sema4,\n },\n \"&:hover $inputBorderContainer\": {\n backgroundColor: theme.hv.palette.semantic.sema4,\n },\n \"& $inputRootMultiline\": {\n \"& $input\": {\n border: `1px solid ${theme.hv.palette.semantic.sema4}`,\n },\n },\n \"&:hover $inputRootMultiline\": {\n \"& $input\": {\n border: `1px solid ${theme.hv.palette.semantic.sema4}`,\n },\n },\n \"&:focus-within $inputRootMultiline\": {\n \"& $input\": {\n border: `1px solid ${theme.hv.palette.semantic.sema4}`,\n },\n },\n // IE fallback code (using focus-within-polyfill)\n \"&.focus-within $inputRootMultiline\": {\n \"& $input\": {\n border: `1px solid ${theme.hv.palette.semantic.sema4}`,\n },\n },\n },\n },\n\n inputRoot: {\n margin: 0,\n width: \"100%\",\n borderRadius: \"2px\",\n backgroundColor: theme.hv.palette.atmosphere.atmo1,\n },\n inputRootFocused: {\n background: theme.hv.palette.atmosphere.atmo1,\n ...outlineStyles,\n \"&:hover\": {\n background: theme.hv.palette.atmosphere.atmo1,\n },\n },\n inputRootDisabled: {\n background: theme.hv.palette.atmosphere.atmo3,\n \"&:hover\": {\n background: theme.hv.palette.atmosphere.atmo3,\n cursor: \"not-allowed\",\n },\n cursor: \"not-allowed\",\n },\n inputRootMultiline: {\n padding: 0,\n backgroundColor: \"transparent\",\n \"& $input\": {\n border: `1px solid ${theme.hv.palette.atmosphere.atmo4}`,\n borderRadius: \"2px\",\n backgroundColor: theme.hv.palette.atmosphere.atmo1,\n height: \"auto\",\n minHeight: \"21px\",\n padding: \"5px 10px\",\n overflow: \"auto\",\n marginLeft: \"0px\",\n marginRight: \"0px\",\n },\n },\n\n input: {\n height: \"21px\",\n marginLeft: theme.hv.spacing.xs,\n marginRight: theme.hv.spacing.xs,\n padding: \"6px 0 5px\",\n ...theme.hv.typography.normalText,\n overflow: \"hidden\",\n textOverflow: \"ellipsis\",\n outline: \"none\",\n \"&::placeholder\": {\n ...theme.hv.typography.placeholderText,\n opacity: 1,\n },\n \"&::-ms-clear\": {\n display: \"none\",\n },\n width: \"initial\",\n flexGrow: 1,\n },\n inputDisabled: {\n color: theme.hv.palette.atmosphere.atmo5,\n },\n inputResizable: {\n resize: \"both\",\n width: \"100%\",\n },\n\n inputBorderContainer: {\n position: \"absolute\",\n width: \"calc(100% - 4px)\",\n height: \"1px\",\n top: \"31px\",\n left: \"2px\",\n backgroundColor: theme.hv.palette.atmosphere.atmo4,\n },\n\n \"@global\": {\n \"input:-webkit-autofill\": {\n \"-webkit-box-shadow\": `0 0 0px 1000px ${theme.hv.palette.atmosphere.atmo1} inset`,\n \"-webkit-text-fill-color\": theme.hv.typography.normalText.color,\n },\n },\n});\n\nexport default styles;\n"],"mappings":";;;;;;;;;;;;;AAAA,SAASA,aAAT,QAA8B,iBAA9B;;AAEA,IAAMC,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD;EAAA,OAAY;IACzBC,IAAI,EAAE;MACJC,OAAO,EAAE,cADL;MAEJC,KAAK,EAAE,MAFH;MAGJC,QAAQ,EAAE,UAHN;MAIJ,yBAAyB;QACvBC,QAAQ,EAAE,MADa;QAEvBC,MAAM,EAAE;MAFe,CAJrB;MAQJ,+BAA+B;QAC7B,YAAY;UACVA,MAAM,sBAAeN,KAAK,CAACO,EAAN,CAASC,OAAT,CAAiBC,MAAjB,CAAwBC,KAAvC;QADI;MADiB,CAR3B;MAaJ,iCAAiC;QAC/BC,eAAe,EAAEX,KAAK,CAACO,EAAN,CAASC,OAAT,CAAiBC,MAAjB,CAAwBC;MADV,CAb7B;MAgBJ,wCAAwC;QACtCC,eAAe,EAAEX,KAAK,CAACO,EAAN,CAASC,OAAT,CAAiBC,MAAjB,CAAwBC;MADH,CAhBpC;MAmBJ;MACA,wCAAwC;QACtCC,eAAe,EAAEX,KAAK,CAACO,EAAN,CAASC,OAAT,CAAiBC,MAAjB,CAAwBC;MADH,CApBpC;MAuBJ,sCAAsC;QACpC,YAAY;UACVJ,MAAM,sBAAeN,KAAK,CAACO,EAAN,CAASC,OAAT,CAAiBC,MAAjB,CAAwBC,KAAvC;QADI;MADwB,CAvBlC;MA4BJ;MACA,sCAAsC;QACpC,YAAY;UACVJ,MAAM,sBAAeN,KAAK,CAACO,EAAN,CAASC,OAAT,CAAiBC,MAAjB,CAAwBC,KAAvC;QADI;MADwB;IA7BlC,CADmB;IAoCzBE,SAAS,EAAE;MACTT,KAAK,EAAE;IADE,CApCc;IAuCzBU,QAAQ,EAAE;MACR,2BAA2B;QACzBF,eAAe,EAAE;MADQ,CADnB;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KpBC,IAAI,EAAE,KALc;MAMpBzC,eAAe,EAAEX,KAAK,CAACO,EAAN,CAASC,OAAT,CAAiBO,UAAjB,CAA4BC;IANzB,CAvLG;IAgMzB,WAAW;MACT,0BAA0B;QACxB,+CAAwChB,KAAK,CAACO,EAAN,CAASC,OAAT,CAAiBO,UAAjB,CAA4BS,KAApE,WADwB;QAExB,2BAA2BxB,KAAK,CAACO,EAAN,CAAS+B,UAAT,CAAoBC,UAApB,CAA+BO;MAFlC;IADjB;EAhMc,CAAZ;AAAA,CAAf;;AAwMA,eAAe/C,MAAf"}
@@ -8,16 +8,16 @@ interface FilterValue {
8
8
  }
9
9
 
10
10
  export interface HvFilterGroupProps
11
- extends StandardProps<HvFormElementProps, HvFilterGroupClassKey> {
11
+ extends StandardProps<HvFormElementProps, HvFilterGroupClassKey, "defaultValue"> {
12
12
  /**
13
13
  * The callback fired when the cancel button is clicked.
14
14
  */
15
- onCancel: (event: Event) => void;
15
+ onCancel?: (event: Event) => void;
16
16
 
17
17
  /**
18
18
  * The callback fired when the clear filters button is clicked.
19
19
  */
20
- onClear: (event: Event) => void;
20
+ onClear?: (event: Event) => void;
21
21
 
22
22
  /**
23
23
  * The callback fired when the value changes.
@@ -1,3 +1,7 @@
1
1
  export { default } from "./FormElement";
2
2
  export * from "./FormElement";
3
3
  export * from "./context/FormElementContext";
4
+ export * from "./context/FormElementValueContext";
5
+ export * from "./context/FormElementDescriptorsContext";
6
+ export * from "./utils/FormUtils";
7
+ export * from "./validationStates";
@@ -3,4 +3,5 @@ export * from "./context/FormElementContext";
3
3
  export * from "./context/FormElementValueContext";
4
4
  export * from "./context/FormElementDescriptorsContext";
5
5
  export * from "./utils/FormUtils";
6
+ export * from "./validationStates";
6
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["default"],"sources":["../../../../src/Forms/FormElement/index.js"],"sourcesContent":["export { default } from \"./FormElement\";\nexport * from \"./context/FormElementContext\";\nexport * from \"./context/FormElementValueContext\";\nexport * from \"./context/FormElementDescriptorsContext\";\nexport * from \"./utils/FormUtils\";\n"],"mappings":"AAAA,SAASA,OAAT,QAAwB,eAAxB;AACA,cAAc,8BAAd;AACA,cAAc,mCAAd;AACA,cAAc,yCAAd;AACA,cAAc,mBAAd"}
1
+ {"version":3,"file":"index.js","names":["default"],"sources":["../../../../src/Forms/FormElement/index.js"],"sourcesContent":["export { default } from \"./FormElement\";\nexport * from \"./context/FormElementContext\";\nexport * from \"./context/FormElementValueContext\";\nexport * from \"./context/FormElementDescriptorsContext\";\nexport * from \"./utils/FormUtils\";\nexport * from \"./validationStates\";\n"],"mappings":"AAAA,SAASA,OAAT,QAAwB,eAAxB;AACA,cAAc,8BAAd;AACA,cAAc,mCAAd;AACA,cAAc,yCAAd;AACA,cAAc,mBAAd;AACA,cAAc,oBAAd"}
@@ -0,0 +1,185 @@
1
+ import * as React from "react";
2
+ import { StandardProps } from "@material-ui/core";
3
+ import { SliderProps, RangeProps } from "rc-slider";
4
+ import { HvFormStatus } from "../Forms/FormElement";
5
+ import { HvInputProps } from "..";
6
+
7
+ export interface KnobProperty {
8
+ color?: string;
9
+ defaultValue?: number;
10
+ hidden?: boolean;
11
+ fixed?: boolean;
12
+ hoverColor?: string;
13
+ trackColor?: string;
14
+ dragColor?: string;
15
+ }
16
+
17
+ export interface MarkProperty {
18
+ position?: number;
19
+ label?: string;
20
+ }
21
+
22
+ export type HvSliderClassKey =
23
+ | "root"
24
+ | "rootRange"
25
+ | "labelContainer"
26
+ | "label"
27
+ | "handleContainer"
28
+ | "sliderRoot"
29
+ | "trackDragging"
30
+ | "rootDisabled"
31
+ | "trackStandBy"
32
+ | "error"
33
+ | "handleHiddenContainer"
34
+ | "handleContainerDisabled"
35
+ | "labelIncluded"
36
+ | "onlyInput"
37
+ | "dot"
38
+ | "rail"
39
+ | "knobInner"
40
+ | "knobOuter"
41
+ | "knobHidden"
42
+ | "knobHiddenLast"
43
+ | "track"
44
+ | "mark"
45
+ | "sliderTooltip"
46
+ | "sliderContainer";
47
+
48
+ export interface HvSliderProps
49
+ extends StandardProps<React.HTMLAttributes<HTMLDivElement>, HvSliderClassKey, "onChange"> {
50
+ /**
51
+ * The label of the slider element.
52
+ *
53
+ * The form element must be labeled for accessibility reasons.
54
+ * If not provided, an aria-label or aria-labelledby must be provided instead.
55
+ */
56
+ label?: React.ReactNode;
57
+
58
+ /**
59
+ * The status of the slider element.
60
+ *
61
+ * Valid is correct, invalid is incorrect and standBy means no validations have run.
62
+ *
63
+ * When uncontrolled and unspecified it will default to "standBy" and change to either "valid"
64
+ * or "invalid" after any change to the state.
65
+ */
66
+ status?: HvFormStatus;
67
+ /**
68
+ * The error message to show when `status` is "invalid".
69
+ */
70
+ statusMessage?: React.ReactNode;
71
+
72
+ /**
73
+ * Whether the slider is disabled.
74
+ */
75
+ disabled?: boolean;
76
+
77
+ /**
78
+ * The object created by material to apply to the component.
79
+ */
80
+ theme?: any;
81
+
82
+ /**
83
+ * Name of the form element.
84
+ *
85
+ * Part of a name/value pair, should be the name property of the undelying native input.
86
+ */
87
+ name?: string;
88
+
89
+ /**
90
+ * The values array to apply to the component
91
+ */
92
+ values?: number[];
93
+
94
+ /**
95
+ * The default values array to apply to the component
96
+ */
97
+ defaultValues?: number[];
98
+
99
+ /**
100
+ * The object used to set the knob properties,
101
+ * for every item in the array a new knob will be created.
102
+ */
103
+ knobProperties?: KnobProperty[];
104
+
105
+ /**
106
+ * The object used to set the mark properties individually.
107
+ */
108
+ markProperties?: MarkProperty[];
109
+
110
+ /**
111
+ * the function executed before a change will occur in the slider.
112
+ */
113
+ onBeforeChange?: (value: number[]) => any;
114
+
115
+ /**
116
+ * the function executed while a change is occurring in the slider.
117
+ */
118
+ onChange?: (value: number[]) => any;
119
+
120
+ /**
121
+ * the function executed after a change ocurred in the slider.
122
+ */
123
+ onAfterChange?: (value: number[]) => any;
124
+
125
+ /**
126
+ * the separation in points between marks.
127
+ * example: if 10 divisions and a markstep of 2 there will be 5 marks.
128
+ */
129
+ markStep?: number;
130
+
131
+ /**
132
+ * how many subdivisions there are in the slider.
133
+ */
134
+ divisionQuantity?: number;
135
+
136
+ /**
137
+ * the value of the first point in the slider from left to right.
138
+ */
139
+ minPointValue?: number;
140
+
141
+ /**
142
+ * the value of the last point in the slider from left to right.
143
+ */
144
+ maxPointValue?: number;
145
+
146
+ /**
147
+ * the nax number of decimals if no format function is applied
148
+ */
149
+ markDigits?: number;
150
+
151
+ /**
152
+ * a formatting function used to add format to the marks in the track,
153
+ * the function receives the mark text
154
+ */
155
+ formatMark?: (label: React.ReactNode | string) => React.ReactNode | string;
156
+
157
+ /**
158
+ * a formatting function used to add format to the tooltip in the track,
159
+ * the function receives the mark text
160
+ */
161
+ formatTooltip?: (label: React.ReactNode | string) => React.ReactNode | string;
162
+ /**
163
+ * if `true` the input that controls the slider is hidden.
164
+ */
165
+ hideInput?: boolean;
166
+
167
+ /**
168
+ * if `true` the knobs can't have the same value, if `false` knobs can have the same value.
169
+ */
170
+ noOverlap?: boolean;
171
+ /**
172
+ * Attributes applied to the input element.
173
+ */
174
+ inputProps?: HvInputProps[];
175
+ /**
176
+ * Attributes applied to the knob element.
177
+ */
178
+ knobProps?: React.HTMLAttributes<HTMLDivElement>[];
179
+ /**
180
+ * Attributes applied to the input element.
181
+ */
182
+ sliderProps?: RangeProps | SliderProps;
183
+ }
184
+
185
+ export default function HvSlider(props: HvSliderProps): JSX.Element | null;