@innovaccer/design-system 2.33.0 → 2.34.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.
- package/CHANGELOG.md +38 -0
- package/dist/.lib/tsconfig.type.tsbuildinfo +8 -7
- package/dist/core/components/organisms/select/SearchInput.d.ts +2 -2
- package/dist/core/components/organisms/select/Select.d.ts +1 -1
- package/dist/core/components/organisms/select/SelectContext.d.ts +1 -1
- package/dist/index.esm.js +26 -12
- package/dist/index.js +22 -12
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.br +0 -0
- package/dist/index.umd.js.gz +0 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,41 @@
|
|
|
1
|
+
## 2.34.0 (2024-05-16)
|
|
2
|
+
|
|
3
|
+
### Highlights
|
|
4
|
+
|
|
5
|
+
- feat(gatsby): migration from v3 to v5 (3a26576d)
|
|
6
|
+
- feat(select): add support for relative width for trigger (f74c8951)
|
|
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(gatsby): migration from v3 to v5 (3a26576d)
|
|
23
|
+
- feat(select): add support for relative width for trigger (f74c8951)
|
|
24
|
+
|
|
25
|
+
### Fixes
|
|
26
|
+
|
|
27
|
+
- fix(select): update argument type of onchange prop for search input (ae61b0e0)
|
|
28
|
+
|
|
29
|
+
### Improvements
|
|
30
|
+
|
|
31
|
+
NA
|
|
32
|
+
|
|
33
|
+
### Documentation
|
|
34
|
+
|
|
35
|
+
NA
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
1
39
|
## 2.33.0 (2024-05-14)
|
|
2
40
|
|
|
3
41
|
### Highlights
|
|
@@ -1842,8 +1842,8 @@
|
|
|
1842
1842
|
"affectsGlobalScope": false
|
|
1843
1843
|
},
|
|
1844
1844
|
"../../core/components/organisms/select/SelectContext.tsx": {
|
|
1845
|
-
"version": "
|
|
1846
|
-
"signature": "
|
|
1845
|
+
"version": "dce3c3ea2ca3e52a586700e32e56d66aa2a0b712e068159a54c9e11aaa9c5efc",
|
|
1846
|
+
"signature": "ca6b294a5ccdce1aeda724341532c6950e85b2f99405ce32885babe2e75ed5cb",
|
|
1847
1847
|
"affectsGlobalScope": false
|
|
1848
1848
|
},
|
|
1849
1849
|
"../../core/components/organisms/select/SelectList.tsx": {
|
|
@@ -1862,13 +1862,13 @@
|
|
|
1862
1862
|
"affectsGlobalScope": false
|
|
1863
1863
|
},
|
|
1864
1864
|
"../../core/components/organisms/select/SelectTrigger.tsx": {
|
|
1865
|
-
"version": "
|
|
1865
|
+
"version": "d7be3231dd47a8b5f67559bc8dadeafcf27fb3b38b259662403bb2f732bb1242",
|
|
1866
1866
|
"signature": "342e41566380c2b501da61c4a9eb07c72385c14f64bb177d4d5744e1e6217919",
|
|
1867
1867
|
"affectsGlobalScope": false
|
|
1868
1868
|
},
|
|
1869
1869
|
"../../core/components/organisms/select/SearchInput.tsx": {
|
|
1870
|
-
"version": "
|
|
1871
|
-
"signature": "
|
|
1870
|
+
"version": "750dcfebc2901103fc62d287f3b34b2b0a2082215d3dd4a90613f588f23b66ce",
|
|
1871
|
+
"signature": "882194d8695e6a44baf52f08ea016ab11c16608f2db8ad8c66e4262a3d5a909c",
|
|
1872
1872
|
"affectsGlobalScope": false
|
|
1873
1873
|
},
|
|
1874
1874
|
"../../core/components/organisms/select/SelectEmptyTemplate.tsx": {
|
|
@@ -1882,8 +1882,8 @@
|
|
|
1882
1882
|
"affectsGlobalScope": false
|
|
1883
1883
|
},
|
|
1884
1884
|
"../../core/components/organisms/select/Select.tsx": {
|
|
1885
|
-
"version": "
|
|
1886
|
-
"signature": "
|
|
1885
|
+
"version": "3be13bfb478cf3779423a730c6f56d816b0e279e48f3cc0c4cd1c16dc4a09aeb",
|
|
1886
|
+
"signature": "7c4b8e05fda14918072776e80e8beeba13c0f4bd91b9072bc72f96cce85c020a",
|
|
1887
1887
|
"affectsGlobalScope": false
|
|
1888
1888
|
},
|
|
1889
1889
|
"../../core/components/organisms/select/index.tsx": {
|
|
@@ -7283,6 +7283,7 @@
|
|
|
7283
7283
|
"../../core/components/organisms/select/SelectTrigger.tsx",
|
|
7284
7284
|
"../../core/components/organisms/select/utils.tsx",
|
|
7285
7285
|
"../../core/index.tsx",
|
|
7286
|
+
"../../core/index.type.tsx",
|
|
7286
7287
|
"../../core/utils/types.tsx",
|
|
7287
7288
|
"../../node_modules/@types/node/util.d.ts",
|
|
7288
7289
|
"../../node_modules/@types/react/index.d.ts"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { InputProps } from "../../../index.type";
|
|
3
|
-
export interface SelectInputProps extends InputProps {
|
|
3
|
+
export interface SelectInputProps extends Omit<InputProps, 'onChange'> {
|
|
4
4
|
onClear?: (e: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>) => void;
|
|
5
|
-
onChange?: (
|
|
5
|
+
onChange?: (value?: string) => void;
|
|
6
6
|
}
|
|
7
7
|
export declare const SearchInput: (props: SelectInputProps) => JSX.Element;
|
|
8
8
|
export default SearchInput;
|
|
@@ -11,7 +11,7 @@ export interface SelectProps extends BaseProps {
|
|
|
11
11
|
multiSelect?: boolean;
|
|
12
12
|
onSelect: (option?: OptionType | OptionType[]) => void;
|
|
13
13
|
children?: React.ReactNode;
|
|
14
|
-
width?: number;
|
|
14
|
+
width?: number | string;
|
|
15
15
|
popoverWidth?: number;
|
|
16
16
|
maxHeight?: number;
|
|
17
17
|
minHeight?: number;
|
|
@@ -10,7 +10,7 @@ export declare type ContextProps = {
|
|
|
10
10
|
onOptionClick?: (option: OptionType | OptionType[]) => void;
|
|
11
11
|
maxHeight?: number;
|
|
12
12
|
minHeight?: number;
|
|
13
|
-
width?: number;
|
|
13
|
+
width?: number | string;
|
|
14
14
|
withSearch?: boolean;
|
|
15
15
|
setWithSearch?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
16
16
|
multiSelect?: boolean;
|
package/dist/index.esm.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* Generated on:
|
|
3
|
+
* Generated on: 1715851595101
|
|
4
4
|
* Package: @innovaccer/design-system
|
|
5
|
-
* Version: v2.
|
|
5
|
+
* Version: v2.34.0
|
|
6
6
|
* License: MIT
|
|
7
7
|
* Docs: https://innovaccer.github.io/design-system
|
|
8
8
|
*/
|
|
@@ -25761,8 +25761,7 @@ var SelectTrigger = function SelectTrigger(props) {
|
|
|
25761
25761
|
setOpenPopover = contextProp.setOpenPopover,
|
|
25762
25762
|
setHighlightFirstItem = contextProp.setHighlightFirstItem,
|
|
25763
25763
|
setHighlightLastItem = contextProp.setHighlightLastItem,
|
|
25764
|
-
triggerRef = contextProp.triggerRef
|
|
25765
|
-
width = contextProp.width;
|
|
25764
|
+
triggerRef = contextProp.triggerRef;
|
|
25766
25765
|
var buttonDisabled = disabled ? 'disabled' : 'default';
|
|
25767
25766
|
var trimmedPlaceholder = placeholder === null || placeholder === void 0 ? void 0 : placeholder.trim();
|
|
25768
25767
|
var displayValue = computeValue(multiSelect, selectValue, setLabel);
|
|
@@ -25789,7 +25788,9 @@ var SelectTrigger = function SelectTrigger(props) {
|
|
|
25789
25788
|
showOnTruncation: true,
|
|
25790
25789
|
showTooltip: !openPopover,
|
|
25791
25790
|
tooltip: value,
|
|
25792
|
-
elementRef: elementRef
|
|
25791
|
+
elementRef: elementRef,
|
|
25792
|
+
className: "w-100",
|
|
25793
|
+
triggerClass: "w-100"
|
|
25793
25794
|
}, /*#__PURE__*/React.createElement("button", _extends$2({
|
|
25794
25795
|
ref: triggerRef,
|
|
25795
25796
|
onKeyDown: function onKeyDown(event) {
|
|
@@ -25798,9 +25799,6 @@ var SelectTrigger = function SelectTrigger(props) {
|
|
|
25798
25799
|
type: "button",
|
|
25799
25800
|
className: buttonClass,
|
|
25800
25801
|
disabled: disabled,
|
|
25801
|
-
style: {
|
|
25802
|
-
maxWidth: width
|
|
25803
|
-
},
|
|
25804
25802
|
tabIndex: 0,
|
|
25805
25803
|
"aria-haspopup": "listbox",
|
|
25806
25804
|
"aria-expanded": openPopover,
|
|
@@ -25991,12 +25989,28 @@ var Select = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
25991
25989
|
highlightLastItem = _React$useState14[0],
|
|
25992
25990
|
setHighlightLastItem = _React$useState14[1];
|
|
25993
25991
|
|
|
25992
|
+
var _React$useState15 = React.useState({
|
|
25993
|
+
width: popoverWidth || width
|
|
25994
|
+
}),
|
|
25995
|
+
_React$useState16 = _slicedToArray(_React$useState15, 2),
|
|
25996
|
+
popoverStyle = _React$useState16[0],
|
|
25997
|
+
setPopoverStyle = _React$useState16[1];
|
|
25998
|
+
|
|
25994
25999
|
var triggerStyle = {
|
|
25995
26000
|
width: width
|
|
25996
26001
|
};
|
|
25997
|
-
|
|
25998
|
-
|
|
25999
|
-
|
|
26002
|
+
React.useEffect(function () {
|
|
26003
|
+
var _triggerRef$current;
|
|
26004
|
+
|
|
26005
|
+
// if popover width is not provided explicitly, apply the trigger width to popover width
|
|
26006
|
+
if (!popoverWidth && (_triggerRef$current = triggerRef.current) !== null && _triggerRef$current !== void 0 && _triggerRef$current.clientWidth) {
|
|
26007
|
+
var _triggerRef$current2;
|
|
26008
|
+
|
|
26009
|
+
setPopoverStyle(_objectSpread2(_objectSpread2({}, popoverStyle), {}, {
|
|
26010
|
+
width: (_triggerRef$current2 = triggerRef.current) === null || _triggerRef$current2 === void 0 ? void 0 : _triggerRef$current2.clientWidth
|
|
26011
|
+
}));
|
|
26012
|
+
}
|
|
26013
|
+
}, []);
|
|
26000
26014
|
React.useImperativeHandle(ref, function () {
|
|
26001
26015
|
return {
|
|
26002
26016
|
setOpen: function setOpen(open) {
|
|
@@ -26589,6 +26603,6 @@ Menu.defaultProps = {
|
|
|
26589
26603
|
position: 'bottom-start'
|
|
26590
26604
|
};
|
|
26591
26605
|
|
|
26592
|
-
var version = "2.
|
|
26606
|
+
var version = "2.34.0";
|
|
26593
26607
|
|
|
26594
26608
|
export { 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, ProgressBar, ProgressRing, Radio, RangeSlider, Row, 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:
|
|
3
|
+
* Generated on: 1715851595353
|
|
4
4
|
* Package: @innovaccer/design-system
|
|
5
|
-
* Version: v2.
|
|
5
|
+
* Version: v2.34.0
|
|
6
6
|
* License: MIT
|
|
7
7
|
* Docs: https://innovaccer.github.io/design-system
|
|
8
8
|
*/
|
|
@@ -19931,8 +19931,7 @@
|
|
|
19931
19931
|
setOpenPopover = contextProp.setOpenPopover,
|
|
19932
19932
|
setHighlightFirstItem = contextProp.setHighlightFirstItem,
|
|
19933
19933
|
setHighlightLastItem = contextProp.setHighlightLastItem,
|
|
19934
|
-
triggerRef = contextProp.triggerRef
|
|
19935
|
-
width = contextProp.width;
|
|
19934
|
+
triggerRef = contextProp.triggerRef;
|
|
19936
19935
|
var buttonDisabled = disabled ? 'disabled' : 'default';
|
|
19937
19936
|
var trimmedPlaceholder = placeholder === null || placeholder === void 0 ? void 0 : placeholder.trim();
|
|
19938
19937
|
var displayValue = computeValue(multiSelect, selectValue, setLabel);
|
|
@@ -19959,7 +19958,9 @@
|
|
|
19959
19958
|
showOnTruncation: true,
|
|
19960
19959
|
showTooltip: !openPopover,
|
|
19961
19960
|
tooltip: value,
|
|
19962
|
-
elementRef: elementRef
|
|
19961
|
+
elementRef: elementRef,
|
|
19962
|
+
className: "w-100",
|
|
19963
|
+
triggerClass: "w-100"
|
|
19963
19964
|
}, /*#__PURE__*/React__namespace.createElement("button", __assign({
|
|
19964
19965
|
ref: triggerRef,
|
|
19965
19966
|
onKeyDown: function onKeyDown(event) {
|
|
@@ -19968,9 +19969,6 @@
|
|
|
19968
19969
|
type: "button",
|
|
19969
19970
|
className: buttonClass,
|
|
19970
19971
|
disabled: disabled,
|
|
19971
|
-
style: {
|
|
19972
|
-
maxWidth: width
|
|
19973
|
-
},
|
|
19974
19972
|
tabIndex: 0,
|
|
19975
19973
|
"aria-haspopup": "listbox",
|
|
19976
19974
|
"aria-expanded": openPopover,
|
|
@@ -20149,12 +20147,24 @@
|
|
|
20149
20147
|
highlightLastItem = _h[0],
|
|
20150
20148
|
setHighlightLastItem = _h[1];
|
|
20151
20149
|
|
|
20150
|
+
var _j = React__namespace.useState({
|
|
20151
|
+
width: popoverWidth || width
|
|
20152
|
+
}),
|
|
20153
|
+
popoverStyle = _j[0],
|
|
20154
|
+
setPopoverStyle = _j[1];
|
|
20155
|
+
|
|
20152
20156
|
var triggerStyle = {
|
|
20153
20157
|
width: width
|
|
20154
20158
|
};
|
|
20155
|
-
|
|
20156
|
-
|
|
20157
|
-
|
|
20159
|
+
React__namespace.useEffect(function () {
|
|
20160
|
+
var _a, _b;
|
|
20161
|
+
|
|
20162
|
+
if (!popoverWidth && ((_a = triggerRef.current) === null || _a === void 0 ? void 0 : _a.clientWidth)) {
|
|
20163
|
+
setPopoverStyle(__assign(__assign({}, popoverStyle), {
|
|
20164
|
+
width: (_b = triggerRef.current) === null || _b === void 0 ? void 0 : _b.clientWidth
|
|
20165
|
+
}));
|
|
20166
|
+
}
|
|
20167
|
+
}, []);
|
|
20158
20168
|
React__namespace.useImperativeHandle(ref, function () {
|
|
20159
20169
|
return {
|
|
20160
20170
|
setOpen: function setOpen(open) {
|
|
@@ -20736,7 +20746,7 @@
|
|
|
20736
20746
|
position: 'bottom-start'
|
|
20737
20747
|
};
|
|
20738
20748
|
|
|
20739
|
-
var version = "2.
|
|
20749
|
+
var version = "2.34.0";
|
|
20740
20750
|
|
|
20741
20751
|
exports.ActionCard = ActionCard;
|
|
20742
20752
|
exports.Avatar = Avatar;
|