@innovaccer/design-system 2.41.0 → 2.41.1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,40 @@
1
+ ## 2.41.1 (2024-08-21)
2
+
3
+ ### Highlights
4
+
5
+ - feat(verificationCodeInput): add onchange prop in verificationInputCode component (e8b45e85)
6
+ - chore: upgrade js-beautify package version (e8159526)
7
+
8
+ ### Breaking changes
9
+
10
+ NA
11
+
12
+ ### Migration guide
13
+
14
+ NA
15
+
16
+ ### Deprecations
17
+
18
+ NA
19
+
20
+ ### Features
21
+
22
+ - feat(verificationCodeInput): add onchange prop in verificationInputCode component (e8b45e85)
23
+
24
+ ### Fixes
25
+
26
+ NA
27
+
28
+ ### Improvements
29
+
30
+ - chore: upgrade js-beautify package version (e8159526)
31
+
32
+ ### Documentation
33
+
34
+ NA
35
+
36
+ ---
37
+
1
38
  ## 2.41.0 (2024-08-13)
2
39
 
3
40
  ### Highlights
@@ -1832,8 +1832,8 @@
1832
1832
  "affectsGlobalScope": false
1833
1833
  },
1834
1834
  "../../core/components/molecules/verificationCodeInput/VerificationCodeInput.tsx": {
1835
- "version": "017bb3f06276c2ea6ddcdf9dff92a2e01a4b122c1a4ef220ff515d844f6fb7dd",
1836
- "signature": "7f4cc1c56e5e7e1ae48398355423c9e2841e3a188b68ca9228099fd41a14ca15",
1835
+ "version": "4fdaac19534b683ea8548d9780dd749dc8d58fe17c45b4e492d1981667e65fa0",
1836
+ "signature": "04de6378622ed68c6936504fcac290ceac84286a56fcb00b8da1d27af86158cb",
1837
1837
  "affectsGlobalScope": false
1838
1838
  },
1839
1839
  "../../core/components/molecules/verificationCodeInput/index.tsx": {
@@ -4,6 +4,7 @@ interface VerificationProps extends BaseProps {
4
4
  fields?: number;
5
5
  type?: 'text' | 'number' | 'password';
6
6
  onComplete?: (value: string) => void;
7
+ onChange?: (value: string) => void;
7
8
  }
8
9
  export declare type VerificationCodeInputProps = VerificationProps & Omit<InputProps, 'name' | 'type' | 'defaultValue' | 'size' | 'icon' | 'inlineLabel' | 'autoComplete' | 'onChange' | 'onClear' | 'info' | 'min' | 'max' | 'minLength' | 'maxLength' | 'actionIcon'>;
9
10
  declare const VerificationCodeInput: {
package/dist/index.esm.js CHANGED
@@ -1,8 +1,8 @@
1
1
 
2
2
  /**
3
- * Generated on: 1723535863638
3
+ * Generated on: 1724239960546
4
4
  * Package: @innovaccer/design-system
5
- * Version: v2.41.0
5
+ * Version: v2.41.1
6
6
  * License: MIT
7
7
  * Docs: https://mds.innovaccer.com
8
8
  */
@@ -22619,7 +22619,7 @@ FileList.defaultProps = {
22619
22619
  };
22620
22620
  FileList.displayName = 'FileList';
22621
22621
 
22622
- var _excluded$t = ["type", "fields", "placeholder", "autoFocus", "onComplete", "onFocus", "onBlur", "className", "value"];
22622
+ var _excluded$t = ["type", "fields", "placeholder", "autoFocus", "onComplete", "onChange", "onFocus", "onBlur", "className", "value"];
22623
22623
  var KEY_CODE = {
22624
22624
  backspace: 'Backspace',
22625
22625
  left: 'ArrowLeft',
@@ -22640,6 +22640,7 @@ var VerificationCodeInput = function VerificationCodeInput(props) {
22640
22640
  _props$autoFocus = props.autoFocus,
22641
22641
  autoFocus = _props$autoFocus === void 0 ? true : _props$autoFocus,
22642
22642
  onComplete = props.onComplete,
22643
+ onChange = props.onChange,
22643
22644
  onFocus = props.onFocus,
22644
22645
  onBlur = props.onBlur,
22645
22646
  className = props.className;
@@ -22677,10 +22678,9 @@ var VerificationCodeInput = function VerificationCodeInput(props) {
22677
22678
  }, []);
22678
22679
  useEffect$2(function () {
22679
22680
  var completeValue = values.join('');
22680
-
22681
- if (onComplete && completeValue.length === fields) {
22682
- onComplete(completeValue);
22683
- }
22681
+ var isComplete = completeValue.length === fields;
22682
+ isComplete && (onComplete === null || onComplete === void 0 ? void 0 : onComplete(completeValue));
22683
+ onChange === null || onChange === void 0 ? void 0 : onChange(completeValue);
22684
22684
  }, [values]);
22685
22685
 
22686
22686
  var onChangeHandler = function onChangeHandler(e) {
@@ -31498,6 +31498,6 @@ AIResponse.Button = ChatButton;
31498
31498
  AIResponse.ActionBar = ChatActionBar;
31499
31499
  AIResponse.Body = ChatBody;
31500
31500
 
31501
- var version = "2.41.0";
31501
+ var version = "2.41.1";
31502
31502
 
31503
31503
  export { AIButton, AIChip, AIIconButton, AIResponse, ActionCard, Avatar, AvatarGroup, AvatarSelection, Backdrop, Badge, Breadcrumbs, Button, Calendar, Caption, Card, CardBody, CardFooter, CardHeader, CardSubdued, ChatMessage, Checkbox, Chip, ChipGroup, ChipInput, ChoiceList, Collapsible, Column, Combobox, DatePicker, DateRangePicker, Dialog, Divider, Dropdown, Dropzone, EditableChipInput, EditableDropdown, EditableInput, EmptyState, FileList, FileUploader, FileUploaderList, FullscreenModal, Grid, GridCell, Heading, HelpText, HorizontalNav, Icon, InlineMessage, Input, X as InputMask, KeyValuePair, Label, Legend, Link, LinkButton, List, Listbox, Menu, Message, MetaList, MetricInput, Modal, ModalBody, ModalDescription, ModalFooter, ModalHeader, MultiSlider, Navigation, OutsideClick, PageHeader, Pagination, Paragraph, Pills, Placeholder, PlaceholderImage, PlaceholderParagraph, Popover, ProgressBar, ProgressRing, Radio, RangeSlider, Row, Sara, SaraSparkle, Select, SelectionCard, Sidesheet, Slider, Spinner, StatusHint, Stepper, Subheading, Switch, Tab, Table, Tabs, TabsWrapper, Text, TextField, Textarea, TimePicker, Toast, Tooltip, index as Utils, VerificationCodeInput, VerticalNav, version };
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
 
2
2
  /**
3
- * Generated on: 1723535863894
3
+ * Generated on: 1724239960796
4
4
  * Package: @innovaccer/design-system
5
- * Version: v2.41.0
5
+ * Version: v2.41.1
6
6
  * License: MIT
7
7
  * Docs: https://mds.innovaccer.com
8
8
  */
@@ -16879,11 +16879,12 @@
16879
16879
  _d = props.autoFocus,
16880
16880
  autoFocus = _d === void 0 ? true : _d,
16881
16881
  onComplete = props.onComplete,
16882
+ onChange = props.onChange,
16882
16883
  onFocus = props.onFocus,
16883
16884
  onBlur = props.onBlur,
16884
16885
  className = props.className;
16885
16886
  props.value;
16886
- var rest = __rest(props, ["type", "fields", "placeholder", "autoFocus", "onComplete", "onFocus", "onBlur", "className", "value"]);
16887
+ var rest = __rest(props, ["type", "fields", "placeholder", "autoFocus", "onComplete", "onChange", "onFocus", "onBlur", "className", "value"]);
16887
16888
 
16888
16889
  var initialValues = React.useMemo(function () {
16889
16890
  if (props.value && props.value.length) {
@@ -16912,10 +16913,9 @@
16912
16913
  }, []);
16913
16914
  React.useEffect(function () {
16914
16915
  var completeValue = values.join('');
16915
-
16916
- if (onComplete && completeValue.length === fields) {
16917
- onComplete(completeValue);
16918
- }
16916
+ var isComplete = completeValue.length === fields;
16917
+ isComplete && (onComplete === null || onComplete === void 0 ? void 0 : onComplete(completeValue));
16918
+ onChange === null || onChange === void 0 ? void 0 : onChange(completeValue);
16919
16919
  }, [values]);
16920
16920
 
16921
16921
  var onChangeHandler = function onChangeHandler(e) {
@@ -25635,7 +25635,7 @@
25635
25635
  AIResponse.ActionBar = ChatActionBar;
25636
25636
  AIResponse.Body = ChatBody;
25637
25637
 
25638
- var version = "2.41.0";
25638
+ var version = "2.41.1";
25639
25639
 
25640
25640
  exports.AIButton = AIButton;
25641
25641
  exports.AIChip = AIChip;