@innovaccer/design-system 2.36.1 → 2.36.2

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.
@@ -36,9 +36,9 @@
36
36
  --neem-light: #71c077;
37
37
  --neem-lighter: #a5d8aa;
38
38
  --neem-lightest: #d7efdf;
39
- --night: #2f2f2f;
40
- --night-light: #595959;
41
- --night-lighter: #868686;
39
+ --night: #1f1f1f;
40
+ --night-light: #494949;
41
+ --night-lighter: #707070;
42
42
  --night-lightest: #a6a6a6;
43
43
  --nimbu: #82c91e;
44
44
  --nimbu-dark: #578715;
@@ -1512,8 +1512,8 @@
1512
1512
  "affectsGlobalScope": false
1513
1513
  },
1514
1514
  "../../core/components/atoms/popperWrapper/PopperWrapper.tsx": {
1515
- "version": "a54d196c7466a9a7d275d4b66f53c7bbd73b33d982c636b050937a8e97f2d61b",
1516
- "signature": "ac33238ce724a8b94967a75c9c18e7294a192d81b14d89155a9e4f7869555f20",
1515
+ "version": "eaec4d0fa389911d58336b4caebb09aab0dcdd301fd1a54c5cc7a800b48a5069",
1516
+ "signature": "c033c7d7406e65a875c6b795e28995bc2114b356b1a63e5fc4001cdd3f66de94",
1517
1517
  "affectsGlobalScope": false
1518
1518
  },
1519
1519
  "../../core/components/atoms/popperWrapper/index.tsx": {
@@ -1522,8 +1522,8 @@
1522
1522
  "affectsGlobalScope": false
1523
1523
  },
1524
1524
  "../../core/components/molecules/popover/Popover.tsx": {
1525
- "version": "e96b9a9b31621ea75d8599f955db2345cb0a54a3d535a2dad488244ad38256e8",
1526
- "signature": "e04a21f672c57406bc22c6e8ecd371ffb50c8dc53aff443fb456394b7c015921",
1525
+ "version": "7520516b9e4478f3c363ec772617f35fb53d8edea8573a7ba762aaf673af842c",
1526
+ "signature": "14e4fb9e293784215a9f0f0d029d527115fc0a15aeae30a2b2cf9a8353dffd70",
1527
1527
  "affectsGlobalScope": false
1528
1528
  },
1529
1529
  "../../core/components/molecules/popover/index.tsx": {
@@ -2142,8 +2142,8 @@
2142
2142
  "affectsGlobalScope": false
2143
2143
  },
2144
2144
  "../../core/components/organisms/combobox/Combobox.tsx": {
2145
- "version": "70c40c2cfb7947a88f3d72759d5b2badef17ecf8fc443e1484299e7bc74d527b",
2146
- "signature": "332fb644e1d11536158fb558d6211b47d925f31f9325e3c18f18cc0860354593",
2145
+ "version": "2cc8ee151ad5f8153d272c30ec0d8dbd68bad7521bcd0c54d64d44289456838d",
2146
+ "signature": "4ee79c92ee217845ddd3162f8b55f0ba2f5683c556d04a73cca22241b9819fbf",
2147
2147
  "affectsGlobalScope": false
2148
2148
  },
2149
2149
  "../../core/components/organisms/combobox/index.tsx": {
@@ -2432,7 +2432,7 @@
2432
2432
  "affectsGlobalScope": false
2433
2433
  },
2434
2434
  "../../core/components/css-utilities/designTokens/Data.tsx": {
2435
- "version": "7daabc625d30ee5f1eb3af93302475a838b923bba48625ba44353d47cfc8b914",
2435
+ "version": "4969fd9b9910ed6c8404eacafffff3d9dcfadf2449adf10fead25c66ded1f752",
2436
2436
  "signature": "2583c1f78c1b3d0dfe4ab20b9118007fd35cbc26426964b94c6f8a32844c4dc7",
2437
2437
  "affectsGlobalScope": false
2438
2438
  },
@@ -33,6 +33,7 @@ export interface PopperWrapperProps {
33
33
  x: number;
34
34
  y: number;
35
35
  };
36
+ computeStyles?: object;
36
37
  }
37
38
  interface PopperWrapperState {
38
39
  zIndex?: number;
@@ -30,6 +30,7 @@ export interface PopoverProps extends Pick<PopperWrapperProps, PopperProps>, Bas
30
30
  x: number;
31
31
  y: number;
32
32
  };
33
+ computeStyles?: object;
33
34
  }
34
35
  export declare const Popover: {
35
36
  (props: PopoverProps): JSX.Element;
@@ -7,6 +7,7 @@ export interface ComboboxProps extends BaseProps {
7
7
  multiSelect?: boolean;
8
8
  children: React.ReactNode | ((contextProp: ContextProps) => React.ReactNode);
9
9
  maxHeight?: number;
10
+ minHeight?: number;
10
11
  width?: number;
11
12
  onChange?: (option?: OptionType | OptionType[]) => void;
12
13
  onSearch?: (value?: string) => void;
@@ -24,6 +25,7 @@ export interface ComboboxProps extends BaseProps {
24
25
  iconType?: IconType;
25
26
  size?: ComboboxInputSize;
26
27
  clearButton?: boolean;
28
+ computeStyles?: object;
27
29
  className?: string;
28
30
  }
29
31
  export declare const Combobox: {
package/dist/index.esm.js CHANGED
@@ -1,8 +1,8 @@
1
1
 
2
2
  /**
3
- * Generated on: 1718190836127
3
+ * Generated on: 1718291430139
4
4
  * Package: @innovaccer/design-system
5
- * Version: v2.36.1
5
+ * Version: v2.36.2
6
6
  * License: MIT
7
7
  * Docs: https://mds.innovaccer.com
8
8
  */
@@ -14122,7 +14122,8 @@ var PopperWrapper = /*#__PURE__*/function (_React$Component) {
14122
14122
  appendToBody = _this$props6.appendToBody,
14123
14123
  hide = _this$props6.hide,
14124
14124
  boundaryElement = _this$props6.boundaryElement,
14125
- triggerCoordinates = _this$props6.triggerCoordinates;
14125
+ triggerCoordinates = _this$props6.triggerCoordinates,
14126
+ computeStyles = _this$props6.computeStyles;
14126
14127
  var _this$state2 = this.state,
14127
14128
  animationKeyframe = _this$state2.animationKeyframe,
14128
14129
  isOpen = _this$state2.isOpen;
@@ -14135,7 +14136,8 @@ var PopperWrapper = /*#__PURE__*/function (_React$Component) {
14135
14136
  },
14136
14137
  hide: {
14137
14138
  enabled: hide
14138
- }
14139
+ },
14140
+ computeStyles: computeStyles
14139
14141
  }, triggerCoordinates && {
14140
14142
  offset: {
14141
14143
  offset: "".concat(triggerCoordinates.x, "px, ").concat(triggerCoordinates.y, "px")
@@ -14156,11 +14158,15 @@ var PopperWrapper = /*#__PURE__*/function (_React$Component) {
14156
14158
  },
14157
14159
  hide: {
14158
14160
  enabled: hide
14159
- }
14161
+ },
14162
+ computeStyles: computeStyles
14160
14163
  }
14161
14164
  }, this.getPopperChildren), document.body), isOpen && appendToBody && triggerCoordinates && /*#__PURE__*/ReactDOM.createPortal(coordinatesPopper, document.body), isOpen && !appendToBody && !triggerCoordinates && /*#__PURE__*/React.createElement(Popper, {
14162
14165
  placement: placement,
14163
- innerRef: this.popupRef
14166
+ innerRef: this.popupRef,
14167
+ modifiers: {
14168
+ computeStyles: computeStyles
14169
+ }
14164
14170
  }, this.getPopperChildren));
14165
14171
  }
14166
14172
  }]);
@@ -25493,6 +25499,7 @@ var Combobox = function Combobox(props) {
25493
25499
  multiSelect = props.multiSelect,
25494
25500
  className = props.className,
25495
25501
  maxHeight = props.maxHeight,
25502
+ minHeight = props.minHeight,
25496
25503
  width = props.width,
25497
25504
  value = props.value,
25498
25505
  placeholder = props.placeholder,
@@ -25508,7 +25515,8 @@ var Combobox = function Combobox(props) {
25508
25515
  clearButton = props.clearButton,
25509
25516
  onSearch = props.onSearch,
25510
25517
  onKeyDown = props.onKeyDown,
25511
- onKeyUp = props.onKeyUp;
25518
+ onKeyUp = props.onKeyUp,
25519
+ computeStyles = props.computeStyles;
25512
25520
 
25513
25521
  var _React$useState = React.useState(),
25514
25522
  _React$useState2 = _slicedToArray(_React$useState, 2),
@@ -25568,6 +25576,16 @@ var Combobox = function Combobox(props) {
25568
25576
 
25569
25577
  var inputTriggerRef = React.useRef();
25570
25578
  var popoverId = "DesignSystem-Combobox--Popover-".concat(uidGenerator());
25579
+ var defaultPopoverStyle = {
25580
+ fn: function fn(data) {
25581
+ return _objectSpread2(_objectSpread2({}, data), {}, {
25582
+ styles: _objectSpread2(_objectSpread2({}, data.styles), {}, {
25583
+ position: 'fixed'
25584
+ })
25585
+ });
25586
+ }
25587
+ };
25588
+ var popoverComputeStyle = computeStyles !== null && computeStyles !== void 0 ? computeStyles : defaultPopoverStyle;
25571
25589
  React.useEffect(function () {
25572
25590
  var _triggerRef$current;
25573
25591
 
@@ -25577,6 +25595,7 @@ var Combobox = function Combobox(props) {
25577
25595
  };
25578
25596
  var wrapperStyle = {
25579
25597
  maxHeight: maxHeight || 'var(--spacing-9)',
25598
+ minHeight: minHeight,
25580
25599
  overflowY: 'auto',
25581
25600
  boxSizing: 'border-box'
25582
25601
  };
@@ -25688,7 +25707,8 @@ var Combobox = function Combobox(props) {
25688
25707
  triggerClass: "d-block",
25689
25708
  customStyle: popoverStyle,
25690
25709
  onToggle: onToggleHandler,
25691
- trigger: /*#__PURE__*/React.createElement(ComboboxTrigger, triggerProps)
25710
+ trigger: /*#__PURE__*/React.createElement(ComboboxTrigger, triggerProps),
25711
+ computeStyles: popoverComputeStyle
25692
25712
  }, /*#__PURE__*/React.createElement("div", {
25693
25713
  style: wrapperStyle,
25694
25714
  ref: listRef,
@@ -26850,7 +26870,7 @@ Menu.defaultProps = {
26850
26870
  position: 'bottom-start'
26851
26871
  };
26852
26872
 
26853
- var img$4 = "data:image/svg+xml,%3csvg width='26' height='26' viewBox='0 0 26 26' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M10 0C10 5.52285 5.52285 10 0 10C5.52285 10 10 14.4772 10 20C10 14.4772 14.4772 10 20 10C14.4772 10 10 5.52285 10 0ZM20 14C20 17.3137 17.3137 20 14 20C17.3137 20 20 22.6863 20 26C20 22.6863 22.6863 20 26 20C22.6863 20 20 17.3137 20 14Z' fill='%232F2F2F'/%3e%3c/svg%3e";
26873
+ var img$4 = "data:image/svg+xml,%3csvg width='26' height='26' viewBox='0 0 26 26' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M10 0C10 5.52285 5.52285 10 0 10C5.52285 10 10 14.4772 10 20C10 14.4772 14.4772 10 20 10C14.4772 10 10 5.52285 10 0ZM20 14C20 17.3137 17.3137 20 14 20C17.3137 20 20 22.6863 20 26C20 22.6863 22.6863 20 26 20C22.6863 20 20 17.3137 20 14Z' fill='%231f1f1f'/%3e%3c/svg%3e";
26854
26874
 
26855
26875
  var img$3 = "data:image/svg+xml,%3csvg width='26' height='26' viewBox='0 0 26 26' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M10 0C10 5.52285 5.52285 10 0 10C5.52285 10 10 14.4772 10 20C10 14.4772 14.4772 10 20 10C14.4772 10 10 5.52285 10 0ZM20 14C20 17.3137 17.3137 20 14 20C17.3137 20 20 22.6863 20 26C20 22.6863 22.6863 20 26 20C22.6863 20 20 17.3137 20 14Z' fill='%23A6A6A6'/%3e%3c/svg%3e";
26856
26876
 
@@ -31261,6 +31281,6 @@ AIResponse.Button = ChatButton;
31261
31281
  AIResponse.ActionBar = ChatActionBar;
31262
31282
  AIResponse.Body = ChatBody;
31263
31283
 
31264
- var version = "2.36.1";
31284
+ var version = "2.36.2";
31265
31285
 
31266
31286
  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, 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$1 as 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: 1718190836374
3
+ * Generated on: 1718291430401
4
4
  * Package: @innovaccer/design-system
5
- * Version: v2.36.1
5
+ * Version: v2.36.2
6
6
  * License: MIT
7
7
  * Docs: https://mds.innovaccer.com
8
8
  */
@@ -8796,7 +8796,8 @@
8796
8796
  appendToBody = _a.appendToBody,
8797
8797
  hide = _a.hide,
8798
8798
  boundaryElement = _a.boundaryElement,
8799
- triggerCoordinates = _a.triggerCoordinates;
8799
+ triggerCoordinates = _a.triggerCoordinates,
8800
+ computeStyles = _a.computeStyles;
8800
8801
  var _b = this.state,
8801
8802
  animationKeyframe = _b.animationKeyframe,
8802
8803
  isOpen = _b.isOpen;
@@ -8809,7 +8810,8 @@
8809
8810
  },
8810
8811
  hide: {
8811
8812
  enabled: hide
8812
- }
8813
+ },
8814
+ computeStyles: computeStyles
8813
8815
  }, triggerCoordinates && {
8814
8816
  offset: {
8815
8817
  offset: triggerCoordinates.x + "px, " + triggerCoordinates.y + "px"
@@ -8830,11 +8832,15 @@
8830
8832
  },
8831
8833
  hide: {
8832
8834
  enabled: hide
8833
- }
8835
+ },
8836
+ computeStyles: computeStyles
8834
8837
  }
8835
8838
  }, this.getPopperChildren), document.body), isOpen && appendToBody && triggerCoordinates && /*#__PURE__*/ReactDOM__namespace.createPortal(coordinatesPopper, document.body), isOpen && !appendToBody && !triggerCoordinates && /*#__PURE__*/React__namespace.createElement(reactPopper.Popper, {
8836
8839
  placement: placement,
8837
- innerRef: this.popupRef
8840
+ innerRef: this.popupRef,
8841
+ modifiers: {
8842
+ computeStyles: computeStyles
8843
+ }
8838
8844
  }, this.getPopperChildren));
8839
8845
  };
8840
8846
 
@@ -19671,6 +19677,7 @@
19671
19677
  multiSelect = props.multiSelect,
19672
19678
  className = props.className,
19673
19679
  maxHeight = props.maxHeight,
19680
+ minHeight = props.minHeight,
19674
19681
  width = props.width,
19675
19682
  value = props.value,
19676
19683
  placeholder = props.placeholder,
@@ -19686,7 +19693,8 @@
19686
19693
  clearButton = props.clearButton,
19687
19694
  onSearch = props.onSearch,
19688
19695
  onKeyDown = props.onKeyDown,
19689
- onKeyUp = props.onKeyUp;
19696
+ onKeyUp = props.onKeyUp,
19697
+ computeStyles = props.computeStyles;
19690
19698
 
19691
19699
  var _a = React__namespace.useState(),
19692
19700
  popoverStyle = _a[0],
@@ -19736,6 +19744,16 @@
19736
19744
 
19737
19745
  var inputTriggerRef = React__namespace.useRef();
19738
19746
  var popoverId = "DesignSystem-Combobox--Popover-" + uidGenerator();
19747
+ var defaultPopoverStyle = {
19748
+ fn: function fn(data) {
19749
+ return __assign$1(__assign$1({}, data), {
19750
+ styles: __assign$1(__assign$1({}, data.styles), {
19751
+ position: 'fixed'
19752
+ })
19753
+ });
19754
+ }
19755
+ };
19756
+ var popoverComputeStyle = computeStyles !== null && computeStyles !== void 0 ? computeStyles : defaultPopoverStyle;
19739
19757
  React__namespace.useEffect(function () {
19740
19758
  var _a;
19741
19759
 
@@ -19745,6 +19763,7 @@
19745
19763
  };
19746
19764
  var wrapperStyle = {
19747
19765
  maxHeight: maxHeight || 'var(--spacing-9)',
19766
+ minHeight: minHeight,
19748
19767
  overflowY: 'auto',
19749
19768
  boxSizing: 'border-box'
19750
19769
  };
@@ -19856,7 +19875,8 @@
19856
19875
  triggerClass: "d-block",
19857
19876
  customStyle: popoverStyle,
19858
19877
  onToggle: onToggleHandler,
19859
- trigger: /*#__PURE__*/React__namespace.createElement(ComboboxTrigger, __assign$1({}, triggerProps))
19878
+ trigger: /*#__PURE__*/React__namespace.createElement(ComboboxTrigger, __assign$1({}, triggerProps)),
19879
+ computeStyles: popoverComputeStyle
19860
19880
  }, /*#__PURE__*/React__namespace.createElement("div", {
19861
19881
  style: wrapperStyle,
19862
19882
  ref: listRef,
@@ -20989,7 +21009,7 @@
20989
21009
  position: 'bottom-start'
20990
21010
  };
20991
21011
 
20992
- var img$4 = "data:image/svg+xml,%3csvg width='26' height='26' viewBox='0 0 26 26' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M10 0C10 5.52285 5.52285 10 0 10C5.52285 10 10 14.4772 10 20C10 14.4772 14.4772 10 20 10C14.4772 10 10 5.52285 10 0ZM20 14C20 17.3137 17.3137 20 14 20C17.3137 20 20 22.6863 20 26C20 22.6863 22.6863 20 26 20C22.6863 20 20 17.3137 20 14Z' fill='%232F2F2F'/%3e%3c/svg%3e";
21012
+ var img$4 = "data:image/svg+xml,%3csvg width='26' height='26' viewBox='0 0 26 26' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M10 0C10 5.52285 5.52285 10 0 10C5.52285 10 10 14.4772 10 20C10 14.4772 14.4772 10 20 10C14.4772 10 10 5.52285 10 0ZM20 14C20 17.3137 17.3137 20 14 20C17.3137 20 20 22.6863 20 26C20 22.6863 22.6863 20 26 20C22.6863 20 20 17.3137 20 14Z' fill='%231f1f1f'/%3e%3c/svg%3e";
20993
21013
 
20994
21014
  var img$3 = "data:image/svg+xml,%3csvg width='26' height='26' viewBox='0 0 26 26' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M10 0C10 5.52285 5.52285 10 0 10C5.52285 10 10 14.4772 10 20C10 14.4772 14.4772 10 20 10C14.4772 10 10 5.52285 10 0ZM20 14C20 17.3137 17.3137 20 14 20C17.3137 20 20 22.6863 20 26C20 22.6863 22.6863 20 26 20C22.6863 20 20 17.3137 20 14Z' fill='%23A6A6A6'/%3e%3c/svg%3e";
20995
21015
 
@@ -25391,7 +25411,7 @@
25391
25411
  AIResponse.ActionBar = ChatActionBar;
25392
25412
  AIResponse.Body = ChatBody;
25393
25413
 
25394
- var version = "2.36.1";
25414
+ var version = "2.36.2";
25395
25415
 
25396
25416
  exports.AIButton = AIButton;
25397
25417
  exports.AIChip = AIChip;