@agility/plenum-ui 1.3.40 → 1.3.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.esm.js CHANGED
@@ -12419,7 +12419,7 @@ var InputCounter = function (_a) {
12419
12419
  var defaultStyles = "border py-2 px-3 rounded text-sm leading-5 font-normal w-full border-gray-300 shadow-sm";
12420
12420
  /** Base input field component */
12421
12421
  var BaseField = function (_a, ref) {
12422
- var onFocus = _a.onFocus, onBlur = _a.onBlur, id = _a.id, name = _a.name, type = _a.type, value = _a.value, defaultValue = _a.defaultValue, isDisabled = _a.isDisabled, isReadonly = _a.isReadonly, _b = _a.maxLength, maxLength = _b === void 0 ? 100 : _b, placeholder = _a.placeholder, _c = _a.className, className = _c === void 0 ? defaultStyles : _c, onChange = _a.onChange, onValueChange = _a.onValueChange;
12422
+ var onFocus = _a.onFocus, onBlur = _a.onBlur, id = _a.id, name = _a.name, type = _a.type, value = _a.value, defaultValue = _a.defaultValue, isDisabled = _a.isDisabled, isReadonly = _a.isReadonly, maxLength = _a.maxLength, placeholder = _a.placeholder, _b = _a.className, className = _b === void 0 ? defaultStyles : _b, onChange = _a.onChange, onValueChange = _a.onValueChange;
12423
12423
  var handleChange = function (e) {
12424
12424
  var targetValue = e.currentTarget.value;
12425
12425
  onChange && onChange(targetValue);
@@ -12539,9 +12539,9 @@ var InputCta = function (_a) {
12539
12539
  };
12540
12540
 
12541
12541
  var TextInputAddon = function (_a, ref) {
12542
- var label = _a.label, isFocused = _a.isFocused, isError = _a.isError, id = _a.id, name = _a.name, isRequired = _a.isRequired, type = _a.type, defaultValue = _a.defaultValue, isDisabled = _a.isDisabled, message = _a.message, isShowCounter = _a.isShowCounter, _b = _a.maxLength, maxLength = _b === void 0 ? 100 : _b, placeholder = _a.placeholder, leadIcon = _a.leadIcon, trailIcon = _a.trailIcon, inlineIcon = _a.inlineIcon, inlineTrailingIcon = _a.inlineTrailingIcon, trailLabel = _a.trailLabel, leadLabel = _a.leadLabel, _c = _a.clearCta, clearCta = _c === void 0 ? "none" : _c, onChange = _a.onChange, onCtaClick = _a.onCtaClick, externalValue = _a.value, className = _a.className;
12543
- var _d = useState(Boolean(isFocused)), isFocus = _d[0], setIsFocus = _d[1];
12544
- var _e = useState(defaultValue || ""), value = _e[0], setValue = _e[1];
12542
+ var label = _a.label, isFocused = _a.isFocused, isError = _a.isError, id = _a.id, name = _a.name, isRequired = _a.isRequired, type = _a.type, defaultValue = _a.defaultValue, isDisabled = _a.isDisabled, message = _a.message, isShowCounter = _a.isShowCounter, maxLength = _a.maxLength, placeholder = _a.placeholder, leadIcon = _a.leadIcon, trailIcon = _a.trailIcon, inlineIcon = _a.inlineIcon, inlineTrailingIcon = _a.inlineTrailingIcon, trailLabel = _a.trailLabel, leadLabel = _a.leadLabel, _b = _a.clearCta, clearCta = _b === void 0 ? "none" : _b, onChange = _a.onChange, onCtaClick = _a.onCtaClick, externalValue = _a.value, className = _a.className;
12543
+ var _c = useState(Boolean(isFocused)), isFocus = _c[0], setIsFocus = _c[1];
12544
+ var _d = useState(defaultValue || ""), value = _d[0], setValue = _d[1];
12545
12545
  var inputRef = useRef(null);
12546
12546
  var uniqueID = useId();
12547
12547
  if (!id)
@@ -12629,9 +12629,9 @@ var InputSelect = function (_a) {
12629
12629
  };
12630
12630
 
12631
12631
  var TextInputSelect = function (_a) {
12632
- var label = _a.label, isFocused = _a.isFocused, isError = _a.isError, id = _a.id, name = _a.name, isRequired = _a.isRequired, type = _a.type, defaultValue = _a.defaultValue, isDisabled = _a.isDisabled, message = _a.message, isShowCounter = _a.isShowCounter, _b = _a.maxLength, maxLength = _b === void 0 ? 100 : _b, placeholder = _a.placeholder, inputOptions = _a.inputOptions, _c = _a.selectLocation, selectLocation = _c === void 0 ? "right" : _c, prefix = _a.prefix, onChange = _a.onChange, onSelectOption = _a.onSelectOption, externalValue = _a.value;
12633
- var _d = useState(Boolean(isFocused)), isFocus = _d[0], setIsFocus = _d[1];
12634
- var _e = useState(defaultValue || ""), value = _e[0], setValue = _e[1];
12632
+ var label = _a.label, isFocused = _a.isFocused, isError = _a.isError, id = _a.id, name = _a.name, isRequired = _a.isRequired, type = _a.type, defaultValue = _a.defaultValue, isDisabled = _a.isDisabled, message = _a.message, isShowCounter = _a.isShowCounter, maxLength = _a.maxLength, placeholder = _a.placeholder, inputOptions = _a.inputOptions, _b = _a.selectLocation, selectLocation = _b === void 0 ? "right" : _b, prefix = _a.prefix, onChange = _a.onChange, onSelectOption = _a.onSelectOption, externalValue = _a.value;
12633
+ var _c = useState(Boolean(isFocused)), isFocus = _c[0], setIsFocus = _c[1];
12634
+ var _d = useState(defaultValue || ""), value = _d[0], setValue = _d[1];
12635
12635
  var inputRef = useRef(null);
12636
12636
  var uniqueID = useId();
12637
12637
  if (!id)
@@ -12728,9 +12728,9 @@ var Radio = function (_a) {
12728
12728
  };
12729
12729
 
12730
12730
  var Textarea = function (_a, ref) {
12731
- var id = _a.id, name = _a.name, label = _a.label, isError = _a.isError, isRequired = _a.isRequired, isDisabled = _a.isDisabled, defaultValue = _a.defaultValue, message = _a.message, isShowCounter = _a.isShowCounter, _b = _a.maxLength, maxLength = _b === void 0 ? 500 : _b, _c = _a.rows, rows = _c === void 0 ? 4 : _c, onChange = _a.onChange, externalValue = _a.value, placeholder = _a.placeholder, className = _a.className;
12731
+ var id = _a.id, name = _a.name, label = _a.label, isError = _a.isError, isRequired = _a.isRequired, isDisabled = _a.isDisabled, defaultValue = _a.defaultValue, message = _a.message, isShowCounter = _a.isShowCounter, maxLength = _a.maxLength, _b = _a.rows, rows = _b === void 0 ? 4 : _b, onChange = _a.onChange, externalValue = _a.value, placeholder = _a.placeholder, className = _a.className;
12732
12732
  var uniqueID = useId();
12733
- var _d = useState(externalValue || defaultValue || ""), value = _d[0], setValue = _d[1];
12733
+ var _c = useState(externalValue || defaultValue || ""), value = _c[0], setValue = _c[1];
12734
12734
  var handleOnchange = function (e) {
12735
12735
  var targetValue = e.currentTarget.value;
12736
12736
  typeof onChange === "function" && onChange(targetValue);
package/lib/index.js CHANGED
@@ -12445,7 +12445,7 @@ var InputCounter = function (_a) {
12445
12445
  var defaultStyles = "border py-2 px-3 rounded text-sm leading-5 font-normal w-full border-gray-300 shadow-sm";
12446
12446
  /** Base input field component */
12447
12447
  var BaseField = function (_a, ref) {
12448
- var onFocus = _a.onFocus, onBlur = _a.onBlur, id = _a.id, name = _a.name, type = _a.type, value = _a.value, defaultValue = _a.defaultValue, isDisabled = _a.isDisabled, isReadonly = _a.isReadonly, _b = _a.maxLength, maxLength = _b === void 0 ? 100 : _b, placeholder = _a.placeholder, _c = _a.className, className = _c === void 0 ? defaultStyles : _c, onChange = _a.onChange, onValueChange = _a.onValueChange;
12448
+ var onFocus = _a.onFocus, onBlur = _a.onBlur, id = _a.id, name = _a.name, type = _a.type, value = _a.value, defaultValue = _a.defaultValue, isDisabled = _a.isDisabled, isReadonly = _a.isReadonly, maxLength = _a.maxLength, placeholder = _a.placeholder, _b = _a.className, className = _b === void 0 ? defaultStyles : _b, onChange = _a.onChange, onValueChange = _a.onValueChange;
12449
12449
  var handleChange = function (e) {
12450
12450
  var targetValue = e.currentTarget.value;
12451
12451
  onChange && onChange(targetValue);
@@ -12565,9 +12565,9 @@ var InputCta = function (_a) {
12565
12565
  };
12566
12566
 
12567
12567
  var TextInputAddon = function (_a, ref) {
12568
- var label = _a.label, isFocused = _a.isFocused, isError = _a.isError, id = _a.id, name = _a.name, isRequired = _a.isRequired, type = _a.type, defaultValue = _a.defaultValue, isDisabled = _a.isDisabled, message = _a.message, isShowCounter = _a.isShowCounter, _b = _a.maxLength, maxLength = _b === void 0 ? 100 : _b, placeholder = _a.placeholder, leadIcon = _a.leadIcon, trailIcon = _a.trailIcon, inlineIcon = _a.inlineIcon, inlineTrailingIcon = _a.inlineTrailingIcon, trailLabel = _a.trailLabel, leadLabel = _a.leadLabel, _c = _a.clearCta, clearCta = _c === void 0 ? "none" : _c, onChange = _a.onChange, onCtaClick = _a.onCtaClick, externalValue = _a.value, className = _a.className;
12569
- var _d = React.useState(Boolean(isFocused)), isFocus = _d[0], setIsFocus = _d[1];
12570
- var _e = React.useState(defaultValue || ""), value = _e[0], setValue = _e[1];
12568
+ var label = _a.label, isFocused = _a.isFocused, isError = _a.isError, id = _a.id, name = _a.name, isRequired = _a.isRequired, type = _a.type, defaultValue = _a.defaultValue, isDisabled = _a.isDisabled, message = _a.message, isShowCounter = _a.isShowCounter, maxLength = _a.maxLength, placeholder = _a.placeholder, leadIcon = _a.leadIcon, trailIcon = _a.trailIcon, inlineIcon = _a.inlineIcon, inlineTrailingIcon = _a.inlineTrailingIcon, trailLabel = _a.trailLabel, leadLabel = _a.leadLabel, _b = _a.clearCta, clearCta = _b === void 0 ? "none" : _b, onChange = _a.onChange, onCtaClick = _a.onCtaClick, externalValue = _a.value, className = _a.className;
12569
+ var _c = React.useState(Boolean(isFocused)), isFocus = _c[0], setIsFocus = _c[1];
12570
+ var _d = React.useState(defaultValue || ""), value = _d[0], setValue = _d[1];
12571
12571
  var inputRef = React.useRef(null);
12572
12572
  var uniqueID = useId();
12573
12573
  if (!id)
@@ -12655,9 +12655,9 @@ var InputSelect = function (_a) {
12655
12655
  };
12656
12656
 
12657
12657
  var TextInputSelect = function (_a) {
12658
- var label = _a.label, isFocused = _a.isFocused, isError = _a.isError, id = _a.id, name = _a.name, isRequired = _a.isRequired, type = _a.type, defaultValue = _a.defaultValue, isDisabled = _a.isDisabled, message = _a.message, isShowCounter = _a.isShowCounter, _b = _a.maxLength, maxLength = _b === void 0 ? 100 : _b, placeholder = _a.placeholder, inputOptions = _a.inputOptions, _c = _a.selectLocation, selectLocation = _c === void 0 ? "right" : _c, prefix = _a.prefix, onChange = _a.onChange, onSelectOption = _a.onSelectOption, externalValue = _a.value;
12659
- var _d = React.useState(Boolean(isFocused)), isFocus = _d[0], setIsFocus = _d[1];
12660
- var _e = React.useState(defaultValue || ""), value = _e[0], setValue = _e[1];
12658
+ var label = _a.label, isFocused = _a.isFocused, isError = _a.isError, id = _a.id, name = _a.name, isRequired = _a.isRequired, type = _a.type, defaultValue = _a.defaultValue, isDisabled = _a.isDisabled, message = _a.message, isShowCounter = _a.isShowCounter, maxLength = _a.maxLength, placeholder = _a.placeholder, inputOptions = _a.inputOptions, _b = _a.selectLocation, selectLocation = _b === void 0 ? "right" : _b, prefix = _a.prefix, onChange = _a.onChange, onSelectOption = _a.onSelectOption, externalValue = _a.value;
12659
+ var _c = React.useState(Boolean(isFocused)), isFocus = _c[0], setIsFocus = _c[1];
12660
+ var _d = React.useState(defaultValue || ""), value = _d[0], setValue = _d[1];
12661
12661
  var inputRef = React.useRef(null);
12662
12662
  var uniqueID = useId();
12663
12663
  if (!id)
@@ -12754,9 +12754,9 @@ var Radio = function (_a) {
12754
12754
  };
12755
12755
 
12756
12756
  var Textarea = function (_a, ref) {
12757
- var id = _a.id, name = _a.name, label = _a.label, isError = _a.isError, isRequired = _a.isRequired, isDisabled = _a.isDisabled, defaultValue = _a.defaultValue, message = _a.message, isShowCounter = _a.isShowCounter, _b = _a.maxLength, maxLength = _b === void 0 ? 500 : _b, _c = _a.rows, rows = _c === void 0 ? 4 : _c, onChange = _a.onChange, externalValue = _a.value, placeholder = _a.placeholder, className = _a.className;
12757
+ var id = _a.id, name = _a.name, label = _a.label, isError = _a.isError, isRequired = _a.isRequired, isDisabled = _a.isDisabled, defaultValue = _a.defaultValue, message = _a.message, isShowCounter = _a.isShowCounter, maxLength = _a.maxLength, _b = _a.rows, rows = _b === void 0 ? 4 : _b, onChange = _a.onChange, externalValue = _a.value, placeholder = _a.placeholder, className = _a.className;
12758
12758
  var uniqueID = useId();
12759
- var _d = React.useState(externalValue || defaultValue || ""), value = _d[0], setValue = _d[1];
12759
+ var _c = React.useState(externalValue || defaultValue || ""), value = _c[0], setValue = _c[1];
12760
12760
  var handleOnchange = function (e) {
12761
12761
  var targetValue = e.currentTarget.value;
12762
12762
  typeof onChange === "function" && onChange(targetValue);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agility/plenum-ui",
3
- "version": "1.3.40",
3
+ "version": "1.3.41",
4
4
  "description": "Components that are part of the Agility CMS design system.",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.esm.js",