@innovaccer/design-system 2.42.0 → 2.43.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 +40 -0
- package/css/dist/index.css +10 -2
- package/css/dist/index.css.map +1 -1
- package/css/src/components/button.css +10 -2
- package/dist/.lib/tsconfig.type.tsbuildinfo +2 -2
- package/dist/index.esm.js +8 -7
- package/dist/index.js +8 -7
- 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
|
@@ -37,6 +37,14 @@
|
|
|
37
37
|
flex-direction: row-reverse;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
.Button-regularIcon--left {
|
|
41
|
+
margin-left: calc(-1 * var(--spacing-s));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.Button-regularIcon--right {
|
|
45
|
+
margin-right: calc(-1 * var(--spacing-s));
|
|
46
|
+
}
|
|
47
|
+
|
|
40
48
|
.Button--tiny {
|
|
41
49
|
height: var(--spacing-xl);
|
|
42
50
|
padding-right: var(--spacing);
|
|
@@ -91,11 +99,11 @@
|
|
|
91
99
|
}
|
|
92
100
|
|
|
93
101
|
.Button-icon--left {
|
|
94
|
-
margin-right: var(--spacing);
|
|
102
|
+
margin-right: var(--spacing-0-75);
|
|
95
103
|
}
|
|
96
104
|
|
|
97
105
|
.Button-icon--right {
|
|
98
|
-
margin-left: var(--spacing);
|
|
106
|
+
margin-left: var(--spacing-0-75);
|
|
99
107
|
}
|
|
100
108
|
|
|
101
109
|
.Button--tiny .Button-icon--left {
|
|
@@ -372,7 +372,7 @@
|
|
|
372
372
|
"affectsGlobalScope": false
|
|
373
373
|
},
|
|
374
374
|
"../../core/components/atoms/button/Button.tsx": {
|
|
375
|
-
"version": "
|
|
375
|
+
"version": "bd0e7548839db7b786026f2adaf7b51d1713e97bed5a4ea0dd6d8b13d3ff5428",
|
|
376
376
|
"signature": "73688651a3897a5a1f335acbca13a426de1a343f9a17191058c97dd9e13e18e2",
|
|
377
377
|
"affectsGlobalScope": false
|
|
378
378
|
},
|
|
@@ -1512,7 +1512,7 @@
|
|
|
1512
1512
|
"affectsGlobalScope": false
|
|
1513
1513
|
},
|
|
1514
1514
|
"../../core/components/atoms/popperWrapper/PopperWrapper.tsx": {
|
|
1515
|
-
"version": "
|
|
1515
|
+
"version": "7f9c1f0a4c312c13d99b2cd75b97c0acdeb5b0a5328f832a4f5712d3411b6bf7",
|
|
1516
1516
|
"signature": "628ff675983c4d23491d6fa4977965d580e92701e42cbb5ec7423a065880c6eb",
|
|
1517
1517
|
"affectsGlobalScope": false
|
|
1518
1518
|
},
|
package/dist/index.esm.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* Generated on:
|
|
3
|
+
* Generated on: 1726042613851
|
|
4
4
|
* Package: @innovaccer/design-system
|
|
5
|
-
* Version: v2.
|
|
5
|
+
* Version: v2.43.0
|
|
6
6
|
* License: MIT
|
|
7
7
|
* Docs: https://mds.innovaccer.com
|
|
8
8
|
*/
|
|
@@ -1413,7 +1413,7 @@ var ButtonElement = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
1413
1413
|
rest = _objectWithoutProperties(props, _excluded$16);
|
|
1414
1414
|
|
|
1415
1415
|
var buttonClass = classnames((_classNames = {}, _defineProperty$1(_classNames, 'Button', true), _defineProperty$1(_classNames, 'Button--expanded', expanded), _defineProperty$1(_classNames, "Button--".concat(size), size), _defineProperty$1(_classNames, "Button--".concat(size, "Square"), !children), _defineProperty$1(_classNames, "Button--".concat(appearance), appearance), _defineProperty$1(_classNames, 'Button--selected', selected && (appearance === 'basic' || appearance === 'transparent')), _defineProperty$1(_classNames, "Button--iconAlign-".concat(iconAlign), children && iconAlign), _defineProperty$1(_classNames, "".concat(className), className), _classNames));
|
|
1416
|
-
var iconClass = classnames((_classNames2 = {}, _defineProperty$1(_classNames2, 'Button-icon', true), _defineProperty$1(_classNames2, "Button-icon--".concat(iconAlign), children && iconAlign), _classNames2));
|
|
1416
|
+
var iconClass = classnames((_classNames2 = {}, _defineProperty$1(_classNames2, 'Button-icon', true), _defineProperty$1(_classNames2, "Button-icon--".concat(iconAlign), children && iconAlign), _defineProperty$1(_classNames2, "Button-regularIcon--".concat(iconAlign), children && iconAlign && size === 'regular' && !expanded), _classNames2));
|
|
1417
1417
|
return /*#__PURE__*/React.createElement("button", _extends$2({
|
|
1418
1418
|
"data-test": "DesignSystem-Button",
|
|
1419
1419
|
ref: ref,
|
|
@@ -1429,7 +1429,8 @@ var ButtonElement = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
1429
1429
|
}), /*#__PURE__*/React.createElement(Text, {
|
|
1430
1430
|
className: "Button-text Button-text--hidden"
|
|
1431
1431
|
}, children || '')) : /*#__PURE__*/React.createElement(React.Fragment, null, icon && /*#__PURE__*/React.createElement("div", {
|
|
1432
|
-
className: iconClass
|
|
1432
|
+
className: iconClass,
|
|
1433
|
+
"data-test": "DesignSystem-Button--Icon-Wrapper"
|
|
1433
1434
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
1434
1435
|
"data-test": "DesignSystem-Button--Icon",
|
|
1435
1436
|
name: icon,
|
|
@@ -14031,12 +14032,12 @@ var PopperWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
14031
14032
|
var shouldPopoverClose = function shouldPopoverClose(clicked) {
|
|
14032
14033
|
var popover = _this3.popupRef.current;
|
|
14033
14034
|
var container = document.body;
|
|
14034
|
-
var popoverIndex = parseInt(window.getComputedStyle(popover).zIndex);
|
|
14035
|
+
var popoverIndex = popover && parseInt(window.getComputedStyle(popover).zIndex);
|
|
14035
14036
|
var clickInsideLayer = false;
|
|
14036
14037
|
var shouldClose = false;
|
|
14037
14038
|
var openedLayers = container.querySelectorAll('[data-opened="true"]');
|
|
14038
14039
|
openedLayers.forEach(function (layer) {
|
|
14039
|
-
if (layer.contains(clicked)) {
|
|
14040
|
+
if (layer && layer.contains(clicked)) {
|
|
14040
14041
|
clickInsideLayer = true;
|
|
14041
14042
|
var clickedIndex = parseInt(window.getComputedStyle(layer).zIndex);
|
|
14042
14043
|
|
|
@@ -31505,6 +31506,6 @@ AIResponse.Button = ChatButton;
|
|
|
31505
31506
|
AIResponse.ActionBar = ChatActionBar;
|
|
31506
31507
|
AIResponse.Body = ChatBody;
|
|
31507
31508
|
|
|
31508
|
-
var version = "2.
|
|
31509
|
+
var version = "2.43.0";
|
|
31509
31510
|
|
|
31510
31511
|
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:
|
|
3
|
+
* Generated on: 1726042614109
|
|
4
4
|
* Package: @innovaccer/design-system
|
|
5
|
-
* Version: v2.
|
|
5
|
+
* Version: v2.43.0
|
|
6
6
|
* License: MIT
|
|
7
7
|
* Docs: https://mds.innovaccer.com
|
|
8
8
|
*/
|
|
@@ -1047,7 +1047,7 @@
|
|
|
1047
1047
|
rest = __rest(props, ["size", "appearance", "iconAlign", "tabIndex", "largeIcon", "type", "children", "icon", "expanded", "selected", "loading", "disabled", "className", "tooltip", "iconType"]);
|
|
1048
1048
|
|
|
1049
1049
|
var buttonClass = classNames__default["default"]((_a = {}, _a['Button'] = true, _a['Button--expanded'] = expanded, _a["Button--" + size] = size, _a["Button--" + size + "Square"] = !children, _a["Button--" + appearance] = appearance, _a['Button--selected'] = selected && (appearance === 'basic' || appearance === 'transparent'), _a["Button--iconAlign-" + iconAlign] = children && iconAlign, _a["" + className] = className, _a));
|
|
1050
|
-
var iconClass = classNames__default["default"]((_b = {}, _b['Button-icon'] = true, _b["Button-icon--" + iconAlign] = children && iconAlign, _b));
|
|
1050
|
+
var iconClass = classNames__default["default"]((_b = {}, _b['Button-icon'] = true, _b["Button-icon--" + iconAlign] = children && iconAlign, _b["Button-regularIcon--" + iconAlign] = children && iconAlign && size === 'regular' && !expanded, _b));
|
|
1051
1051
|
return /*#__PURE__*/React__namespace.createElement("button", __assign$1({
|
|
1052
1052
|
"data-test": "DesignSystem-Button",
|
|
1053
1053
|
ref: ref,
|
|
@@ -1063,7 +1063,8 @@
|
|
|
1063
1063
|
}), /*#__PURE__*/React__namespace.createElement(Text, {
|
|
1064
1064
|
className: "Button-text Button-text--hidden"
|
|
1065
1065
|
}, children || '')) : /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, icon && /*#__PURE__*/React__namespace.createElement("div", {
|
|
1066
|
-
className: iconClass
|
|
1066
|
+
className: iconClass,
|
|
1067
|
+
"data-test": "DesignSystem-Button--Icon-Wrapper"
|
|
1067
1068
|
}, /*#__PURE__*/React__namespace.createElement(Icon, {
|
|
1068
1069
|
"data-test": "DesignSystem-Button--Icon",
|
|
1069
1070
|
name: icon,
|
|
@@ -8701,12 +8702,12 @@
|
|
|
8701
8702
|
var shouldPopoverClose = function shouldPopoverClose(clicked) {
|
|
8702
8703
|
var popover = _this.popupRef.current;
|
|
8703
8704
|
var container = document.body;
|
|
8704
|
-
var popoverIndex = parseInt(window.getComputedStyle(popover).zIndex);
|
|
8705
|
+
var popoverIndex = popover && parseInt(window.getComputedStyle(popover).zIndex);
|
|
8705
8706
|
var clickInsideLayer = false;
|
|
8706
8707
|
var shouldClose = false;
|
|
8707
8708
|
var openedLayers = container.querySelectorAll('[data-opened="true"]');
|
|
8708
8709
|
openedLayers.forEach(function (layer) {
|
|
8709
|
-
if (layer.contains(clicked)) {
|
|
8710
|
+
if (layer && layer.contains(clicked)) {
|
|
8710
8711
|
clickInsideLayer = true;
|
|
8711
8712
|
var clickedIndex = parseInt(window.getComputedStyle(layer).zIndex);
|
|
8712
8713
|
|
|
@@ -25641,7 +25642,7 @@
|
|
|
25641
25642
|
AIResponse.ActionBar = ChatActionBar;
|
|
25642
25643
|
AIResponse.Body = ChatBody;
|
|
25643
25644
|
|
|
25644
|
-
var version = "2.
|
|
25645
|
+
var version = "2.43.0";
|
|
25645
25646
|
|
|
25646
25647
|
exports.AIButton = AIButton;
|
|
25647
25648
|
exports.AIChip = AIChip;
|