@innovaccer/design-system 2.19.0 → 2.21.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 +99 -0
- package/css/dist/MaterialSymbolsOutlined.ttf +0 -0
- package/css/dist/MaterialSymbolsRounded.ttf +0 -0
- package/css/dist/index.css +94 -87
- package/css/dist/index.css.map +1 -1
- package/css/gulpfile.js +7 -11
- package/css/material-design-icons/iconfont/MaterialSymbolsOutlined.ttf +0 -0
- package/css/material-design-icons/iconfont/MaterialSymbolsRounded.ttf +0 -0
- package/css/material-design-icons/iconfont/material-icons.css +10 -88
- package/css/src/components/actionCard.css +40 -0
- package/css/src/components/calendar.css +33 -0
- package/css/src/components/chipInput.css +9 -0
- package/dist/.lib/tsconfig.type.tsbuildinfo +101 -48
- package/dist/core/common.type.d.ts +6 -0
- package/dist/core/components/atoms/_chip/index.d.ts +2 -0
- package/dist/core/components/atoms/actionCard/ActionCard.d.ts +13 -0
- package/dist/core/components/atoms/actionCard/index.d.ts +2 -0
- package/dist/core/components/atoms/button/Button.d.ts +3 -1
- package/dist/core/components/atoms/chip/Chip.d.ts +2 -0
- package/dist/core/components/atoms/dropdown/DropdownButton.d.ts +2 -0
- package/dist/core/components/atoms/dropdown/option/index.d.ts +2 -1
- package/dist/core/components/atoms/icon/Icon.d.ts +7 -0
- package/dist/core/components/atoms/icon/utils.d.ts +7 -0
- package/dist/core/components/atoms/input/Input.d.ts +2 -1
- package/dist/core/components/atoms/input/actionButton/ActionButton.d.ts +3 -1
- package/dist/core/components/atoms/linkButton/LinkButton.d.ts +2 -0
- package/dist/core/components/atoms/metaList/Meta.d.ts +2 -0
- package/dist/core/components/atoms/metricInput/MetricInput.d.ts +2 -1
- package/dist/core/components/atoms/popperWrapper/PopperWrapper.d.ts +20 -20
- package/dist/core/components/molecules/chipInput/ChipInput.d.ts +2 -0
- package/dist/core/components/molecules/tabs/Tabs.d.ts +2 -0
- package/dist/core/components/organisms/calendar/utility.d.ts +1 -0
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.type.d.ts +1 -0
- package/dist/core/utils/navigationHelper.d.ts +2 -0
- package/dist/index.esm.js +381 -170
- package/dist/index.js +313 -102
- 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/css/dist/MaterialIcons-Regular.ttf +0 -0
- package/css/dist/MaterialIconsOutlined-Regular.otf +0 -0
- package/css/dist/MaterialIconsRound-Regular.otf +0 -0
- package/css/dist/MaterialIconsSharp-Regular.otf +0 -0
- package/css/dist/MaterialIconsTwoTone-Regular.otf +0 -0
- package/css/material-design-icons/iconfont/MaterialIcons-Regular.ttf +0 -0
- package/css/material-design-icons/iconfont/MaterialIconsOutlined-Regular.otf +0 -0
- package/css/material-design-icons/iconfont/MaterialIconsRound-Regular.otf +0 -0
- package/css/material-design-icons/iconfont/MaterialIconsSharp-Regular.otf +0 -0
- package/css/material-design-icons/iconfont/MaterialIconsTwoTone-Regular.otf +0 -0
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* Generated on:
|
|
3
|
+
* Generated on: 1695030042950
|
|
4
4
|
* Package: @innovaccer/design-system
|
|
5
|
-
* Version: v2.
|
|
5
|
+
* Version: v2.21.0
|
|
6
6
|
* License: MIT
|
|
7
7
|
* Docs: https://innovaccer.github.io/design-system
|
|
8
8
|
*/
|
|
@@ -892,7 +892,8 @@
|
|
|
892
892
|
disabled = props.disabled,
|
|
893
893
|
className = props.className;
|
|
894
894
|
props.tooltip;
|
|
895
|
-
var
|
|
895
|
+
var iconVariations = props.iconVariations,
|
|
896
|
+
rest = __rest(props, ["size", "appearance", "iconAlign", "tabIndex", "largeIcon", "type", "children", "icon", "expanded", "selected", "loading", "disabled", "className", "tooltip", "iconVariations"]);
|
|
896
897
|
|
|
897
898
|
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));
|
|
898
899
|
var iconClass = classNames__default["default"]((_b = {}, _b['Button-icon'] = true, _b["Button-icon--" + iconAlign] = children && iconAlign, _b));
|
|
@@ -915,6 +916,7 @@
|
|
|
915
916
|
}, /*#__PURE__*/React__namespace.createElement(Icon, {
|
|
916
917
|
"data-test": "DesignSystem-Button--Icon",
|
|
917
918
|
name: icon,
|
|
919
|
+
variations: iconVariations,
|
|
918
920
|
size: largeIcon && !children ? sizeMapping$3[size] + 4 : sizeMapping$3[size]
|
|
919
921
|
})), children && /*#__PURE__*/React__namespace.createElement("span", {
|
|
920
922
|
className: "Button-text"
|
|
@@ -1154,6 +1156,27 @@
|
|
|
1154
1156
|
return undefined;
|
|
1155
1157
|
}
|
|
1156
1158
|
};
|
|
1159
|
+
var dateComparison = function dateComparison(date, operator, currDate, currMonth, currYear) {
|
|
1160
|
+
var currentDate = new Date(currYear + "-" + currMonth + "-" + currDate);
|
|
1161
|
+
|
|
1162
|
+
if (date) {
|
|
1163
|
+
switch (operator) {
|
|
1164
|
+
case 'less':
|
|
1165
|
+
return date <= currentDate;
|
|
1166
|
+
|
|
1167
|
+
case 'equal':
|
|
1168
|
+
return date.toDateString() === currentDate.toDateString();
|
|
1169
|
+
|
|
1170
|
+
case 'more':
|
|
1171
|
+
return date >= currentDate;
|
|
1172
|
+
|
|
1173
|
+
default:
|
|
1174
|
+
return false;
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
return false;
|
|
1179
|
+
};
|
|
1157
1180
|
|
|
1158
1181
|
var Calendar = function (_super) {
|
|
1159
1182
|
__extends(Calendar, _super);
|
|
@@ -1302,9 +1325,8 @@
|
|
|
1302
1325
|
neighbouringMonthDate = prevMonthDayRange + date;
|
|
1303
1326
|
type = 'prev';
|
|
1304
1327
|
} else if (date > dayRange) {
|
|
1305
|
-
neighbouringMonthIndex = index
|
|
1306
|
-
neighbouringMonthDate = date
|
|
1307
|
-
type = 'next';
|
|
1328
|
+
neighbouringMonthIndex = index;
|
|
1329
|
+
neighbouringMonthDate = date;
|
|
1308
1330
|
} else {
|
|
1309
1331
|
neighbouringMonthIndex = index;
|
|
1310
1332
|
neighbouringMonthDate = date;
|
|
@@ -1563,6 +1585,10 @@
|
|
|
1563
1585
|
'Calendar-value--disabled': disabled,
|
|
1564
1586
|
'Calendar-yearValue': true
|
|
1565
1587
|
}, _a["Calendar-yearValue--" + size] = size, _a['Calendar-value--currDateMonthYear'] = isCurrentYear(), _a));
|
|
1588
|
+
var textClass = classNames__default["default"]({
|
|
1589
|
+
'Calendar-value--currDate': isCurrentYear() && !active,
|
|
1590
|
+
'Calendar-text': true
|
|
1591
|
+
});
|
|
1566
1592
|
var getTextColor = classNames__default["default"]({
|
|
1567
1593
|
inverse: !active && !isCurrentYear() && !disabled,
|
|
1568
1594
|
white: active,
|
|
@@ -1579,7 +1605,7 @@
|
|
|
1579
1605
|
}, /*#__PURE__*/React__namespace.createElement(Text, {
|
|
1580
1606
|
size: size === 'small' ? 'small' : 'regular',
|
|
1581
1607
|
color: getTextColor,
|
|
1582
|
-
className:
|
|
1608
|
+
className: textClass
|
|
1583
1609
|
}, year));
|
|
1584
1610
|
}));
|
|
1585
1611
|
});
|
|
@@ -1631,6 +1657,10 @@
|
|
|
1631
1657
|
primary: isCurrentMonth(),
|
|
1632
1658
|
'inverse-lightest': disabled
|
|
1633
1659
|
});
|
|
1660
|
+
var textClass = classNames__default["default"]({
|
|
1661
|
+
'Calendar-value--currDate': isCurrentMonth() && !active,
|
|
1662
|
+
'Calendar-text': true
|
|
1663
|
+
});
|
|
1634
1664
|
return /*#__PURE__*/React__namespace.createElement("div", {
|
|
1635
1665
|
key: row + "-" + col,
|
|
1636
1666
|
"data-test": "DesignSystem-Calendar--monthValue",
|
|
@@ -1640,7 +1670,7 @@
|
|
|
1640
1670
|
}, /*#__PURE__*/React__namespace.createElement(Text, {
|
|
1641
1671
|
size: size === 'small' ? 'small' : 'regular',
|
|
1642
1672
|
color: getTextColor,
|
|
1643
|
-
className:
|
|
1673
|
+
className: textClass
|
|
1644
1674
|
}, months[month]));
|
|
1645
1675
|
}));
|
|
1646
1676
|
});
|
|
@@ -1809,21 +1839,6 @@
|
|
|
1809
1839
|
var inRange = false;
|
|
1810
1840
|
var inRangeLast = false;
|
|
1811
1841
|
|
|
1812
|
-
if (rangePicker) {
|
|
1813
|
-
startActive = compareDate(startDate, 'equal', yearNavVal, monthNavVal, date);
|
|
1814
|
-
endActive = compareDate(endDate, 'equal', yearNavVal, monthNavVal, date);
|
|
1815
|
-
inRangeLast = compareDate(hoverDate, 'equal', yearNavVal, monthNavVal, date);
|
|
1816
|
-
active = !disabled && (startActive || endActive);
|
|
1817
|
-
|
|
1818
|
-
if (startDate && endDate) {
|
|
1819
|
-
inRange = !disabled && (compareDate(startDate, 'less', yearNavVal, monthNavVal, date) || startActive) && (compareDate(endDate, 'more', yearNavVal, monthNavVal, date) || endActive);
|
|
1820
|
-
} else if (startDate) {
|
|
1821
|
-
inRange = !disabled && (compareDate(hoverDate, 'more', yearNavVal, monthNavVal, date) || inRangeLast) && compareDate(startDate, 'less', yearNavVal, monthNavVal, date);
|
|
1822
|
-
} else if (endDate) {
|
|
1823
|
-
inRange = !disabled && (compareDate(hoverDate, 'less', yearNavVal, monthNavVal, date) || inRangeLast) && compareDate(endDate, 'more', yearNavVal, monthNavVal, date);
|
|
1824
|
-
}
|
|
1825
|
-
}
|
|
1826
|
-
|
|
1827
1842
|
var _b = getDateInfo(startDate),
|
|
1828
1843
|
sYear = _b.year,
|
|
1829
1844
|
sMonth = _b.month,
|
|
@@ -1836,37 +1851,63 @@
|
|
|
1836
1851
|
|
|
1837
1852
|
var isStart = startActive || endDate && inRangeLast && compareDate(hoverDate, 'less', eYear, eMonth, eDate);
|
|
1838
1853
|
var isEnd = endActive || startDate && inRangeLast && compareDate(hoverDate, 'more', sYear, sMonth, sDate);
|
|
1839
|
-
var isRangeError = inRange && inRangeError;
|
|
1840
1854
|
var dateInString = "" + (date <= 0 ? prevMonthDayRange + date : date > dayRange ? date - dayRange : date);
|
|
1841
1855
|
var monthInString = "" + (date <= 0 ? monthNavVal === 0 ? monthNavVal + monthBlock : (monthNavVal - 1) % monthBlock + 1 : date > dayRange ? (monthNavVal + 1) % monthBlock + 1 : monthNavVal + 1);
|
|
1842
1856
|
var yearInString = "" + (date <= 0 && monthNavVal + 1 === 1 ? yearNavVal - 1 : date > dayRange && monthNavVal + 1 === 12 ? yearNavVal + 1 : yearNavVal);
|
|
1843
1857
|
var completeDateString = (monthInString.length === 2 ? monthInString : "0" + monthInString) + "/" + (dateInString.length === 2 ? dateInString : "0" + dateInString) + "/" + yearInString;
|
|
1844
1858
|
var isEventExist = events && _typeof(events) === 'object' && events.hasOwnProperty(completeDateString);
|
|
1859
|
+
|
|
1860
|
+
if (rangePicker) {
|
|
1861
|
+
startActive = compareDate(startDate, 'equal', yearNavVal, monthNavVal, date);
|
|
1862
|
+
endActive = compareDate(endDate, 'equal', yearNavVal, monthNavVal, date);
|
|
1863
|
+
inRangeLast = compareDate(hoverDate, 'equal', yearNavVal, monthNavVal, date);
|
|
1864
|
+
active = !disabled && (startActive || endActive);
|
|
1865
|
+
|
|
1866
|
+
if (startDate && endDate) {
|
|
1867
|
+
inRange = !disabled && (dateComparison(startDate, 'less', dateInString, monthInString, yearInString) && dateComparison(endDate, 'more', dateInString, monthInString, yearInString) || startActive || endActive);
|
|
1868
|
+
} else if (startDate) {
|
|
1869
|
+
inRange = !disabled && (dateComparison(hoverDate, 'more', dateInString, monthInString, yearInString) || inRangeLast) && dateComparison(startDate, 'less', dateInString, monthInString, yearInString);
|
|
1870
|
+
} else if (endDate) {
|
|
1871
|
+
inRange = !disabled && (compareDate(hoverDate, 'less', yearNavVal, monthNavVal, date) || inRangeLast) && compareDate(endDate, 'more', yearNavVal, monthNavVal, date);
|
|
1872
|
+
}
|
|
1873
|
+
}
|
|
1874
|
+
|
|
1875
|
+
var isRangeError = inRange && inRangeError;
|
|
1876
|
+
var isStartActive = startDate && dateComparison(startDate, 'equal', dateInString, monthInString, yearInString);
|
|
1877
|
+
var isEndActive = endDate && dateComparison(endDate, 'equal', dateInString, monthInString, yearInString);
|
|
1878
|
+
var activeDate = startDate && endDate && (isStartActive || isEndActive);
|
|
1879
|
+
var isHoverLast = dateComparison(hoverDate, 'equal', dateInString, monthInString, yearInString) && hoverDate && startDate && hoverDate >= startDate;
|
|
1880
|
+
var isEdgeElement = col === 0 || col === 6;
|
|
1881
|
+
var isValueRange = inRange || rangePicker && (active || activeDate);
|
|
1845
1882
|
var wrapperClass = classNames__default["default"]({
|
|
1846
1883
|
'Calendar-valueWrapper': true,
|
|
1847
|
-
'Calendar-valueWrapper--inRange':
|
|
1884
|
+
'Calendar-valueWrapper--inRange': !isEdgeElement && isValueRange,
|
|
1885
|
+
'Calendar-valueWrapper--inEdgeRange': isValueRange && isEdgeElement,
|
|
1848
1886
|
'Calendar-valueWrapper--inRangeError': isRangeError,
|
|
1849
|
-
'Calendar-valueWrapper--start': isStart && !isEnd,
|
|
1850
|
-
'Calendar-valueWrapper--end': isEnd && !isStart,
|
|
1887
|
+
'Calendar-valueWrapper--start': isStart && !isEnd && col !== 6 || rangePicker && isStartActive && col !== 6,
|
|
1888
|
+
'Calendar-valueWrapper--end': isEnd && !isStart && col !== 0 || rangePicker && isEndActive && col !== 0,
|
|
1851
1889
|
'Calendar-valueWrapper--startEnd': isStart && isEnd,
|
|
1852
|
-
'Calendar-valueWrapper--startError': isStart && isRangeError,
|
|
1853
|
-
'Calendar-valueWrapper--endError': isEnd && isRangeError,
|
|
1854
|
-
'Calendar-valueWrapper--dummy': dummy
|
|
1890
|
+
'Calendar-valueWrapper--startError': isStart && isRangeError || rangePicker && isRangeError && isStartActive,
|
|
1891
|
+
'Calendar-valueWrapper--endError': isEnd && isRangeError || rangePicker && isRangeError && isEndActive,
|
|
1892
|
+
'Calendar-valueWrapper--dummy': dummy,
|
|
1893
|
+
'Calendar-valueWrapper--hoverDate': rangePicker && isHoverLast,
|
|
1894
|
+
'Calendar-valueWrapper--inStartRange': isValueRange && col === 0 && !active && !activeDate,
|
|
1895
|
+
'Calendar-valueWrapper--inEndRange': isValueRange && col === 6 && !active && !activeDate
|
|
1855
1896
|
});
|
|
1856
1897
|
var valueClass = classNames__default["default"]((_a = {
|
|
1857
1898
|
'Calendar-value': true,
|
|
1858
|
-
'Calendar-inRangeValue': !isStart && !isEnd,
|
|
1899
|
+
'Calendar-inRangeValue': !isStart && !isEnd && !active && !activeDate,
|
|
1859
1900
|
'Calendar-value--start': isStart && !isEnd,
|
|
1860
1901
|
'Calendar-value--end': isEnd && !isStart,
|
|
1861
1902
|
'Calendar-value--startError': isStart && isRangeError,
|
|
1862
1903
|
'Calendar-value--endError': isEnd && isRangeError,
|
|
1863
|
-
'Calendar-value--active': active,
|
|
1904
|
+
'Calendar-value--active': active || activeDate,
|
|
1864
1905
|
'Calendar-value--disabled': disabled,
|
|
1865
1906
|
'Calendar-dateValue': true
|
|
1866
|
-
}, _a["Calendar-dateValue--" + size] = size, _a['Calendar-value--currDateMonthYear'] = today(), _a));
|
|
1907
|
+
}, _a["Calendar-dateValue--" + size] = size, _a['Calendar-value--currDateMonthYear'] = today(), _a['Calendar-value--currDate'] = today() && !active && !activeDate, _a));
|
|
1867
1908
|
var getTextColor = classNames__default["default"]({
|
|
1868
|
-
inverse: !active && !today() && !disabled,
|
|
1869
|
-
white: active,
|
|
1909
|
+
inverse: !active && !today() && !disabled && !activeDate,
|
|
1910
|
+
white: active || activeDate,
|
|
1870
1911
|
'primary-lighter': today() && disabled,
|
|
1871
1912
|
primary: today(),
|
|
1872
1913
|
'inverse-lightest': disabled
|
|
@@ -1884,7 +1925,7 @@
|
|
|
1884
1925
|
onMouseOver: onMouseOverHandler(date),
|
|
1885
1926
|
onMouseEnter: onMouseEnterHandler.bind(_this, date, today(), disabled)
|
|
1886
1927
|
}, date), isEventExist && _this.renderEventsIndicator(size, active)), (dummy && date > 0 && index === monthsInView - 1 || dummy && date <= 0 && index === 0) && /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement(Text, {
|
|
1887
|
-
appearance: active ? 'white' : disabled ? 'disabled' : today() ? 'link' : 'default',
|
|
1928
|
+
appearance: active || activeDate ? 'white' : disabled ? 'disabled' : today() ? 'link' : 'default',
|
|
1888
1929
|
size: size === 'small' ? 'small' : 'regular',
|
|
1889
1930
|
"data-test": "DesignSystem-Calendar--dateValue",
|
|
1890
1931
|
className: valueClass,
|
|
@@ -2300,6 +2341,116 @@
|
|
|
2300
2341
|
});
|
|
2301
2342
|
};
|
|
2302
2343
|
|
|
2344
|
+
var getOpticalSize = function getOpticalSize(size) {
|
|
2345
|
+
if (size && size <= 20) {
|
|
2346
|
+
return 20;
|
|
2347
|
+
} else if (size && size >= 48) {
|
|
2348
|
+
return 48;
|
|
2349
|
+
}
|
|
2350
|
+
|
|
2351
|
+
return size;
|
|
2352
|
+
};
|
|
2353
|
+
|
|
2354
|
+
var iconVariantMapper = {
|
|
2355
|
+
more_horiz: {
|
|
2356
|
+
weight: 600,
|
|
2357
|
+
opticalSize: 24
|
|
2358
|
+
},
|
|
2359
|
+
"delete": {
|
|
2360
|
+
fill: 0
|
|
2361
|
+
},
|
|
2362
|
+
radio_button_checked: {
|
|
2363
|
+
fill: 0
|
|
2364
|
+
},
|
|
2365
|
+
radio_button_unchecked: {
|
|
2366
|
+
fill: 0
|
|
2367
|
+
},
|
|
2368
|
+
schedule: {
|
|
2369
|
+
fill: 0
|
|
2370
|
+
},
|
|
2371
|
+
help_outline: {
|
|
2372
|
+
fill: 0
|
|
2373
|
+
},
|
|
2374
|
+
check_circle_outline: {
|
|
2375
|
+
fill: 0
|
|
2376
|
+
},
|
|
2377
|
+
highlight_of: {
|
|
2378
|
+
fill: 0
|
|
2379
|
+
},
|
|
2380
|
+
credit_card: {
|
|
2381
|
+
fill: 0
|
|
2382
|
+
},
|
|
2383
|
+
delete_outline: {
|
|
2384
|
+
fill: 0
|
|
2385
|
+
},
|
|
2386
|
+
bookmark_border: {
|
|
2387
|
+
fill: 0
|
|
2388
|
+
},
|
|
2389
|
+
work_outline: {
|
|
2390
|
+
fill: 0
|
|
2391
|
+
},
|
|
2392
|
+
alarm: {
|
|
2393
|
+
fill: 0
|
|
2394
|
+
},
|
|
2395
|
+
arrow_circle_up: {
|
|
2396
|
+
fill: 0
|
|
2397
|
+
},
|
|
2398
|
+
copyright: {
|
|
2399
|
+
fill: 0
|
|
2400
|
+
},
|
|
2401
|
+
query_builder: {
|
|
2402
|
+
fill: 0
|
|
2403
|
+
},
|
|
2404
|
+
card_membership: {
|
|
2405
|
+
fill: 0
|
|
2406
|
+
},
|
|
2407
|
+
arrow_circle_down: {
|
|
2408
|
+
fill: 0
|
|
2409
|
+
},
|
|
2410
|
+
change_history: {
|
|
2411
|
+
fill: 0
|
|
2412
|
+
},
|
|
2413
|
+
aspect_ratio: {
|
|
2414
|
+
fill: 0
|
|
2415
|
+
},
|
|
2416
|
+
calendar_view_month: {
|
|
2417
|
+
fill: 0
|
|
2418
|
+
},
|
|
2419
|
+
alarm_on: {
|
|
2420
|
+
fill: 0
|
|
2421
|
+
},
|
|
2422
|
+
thumb_down_off_alt: {
|
|
2423
|
+
fill: 0
|
|
2424
|
+
},
|
|
2425
|
+
important_devices: {
|
|
2426
|
+
fill: 0
|
|
2427
|
+
},
|
|
2428
|
+
turned_in_not: {
|
|
2429
|
+
fill: 0
|
|
2430
|
+
},
|
|
2431
|
+
add_circle_outline: {
|
|
2432
|
+
fill: 0
|
|
2433
|
+
},
|
|
2434
|
+
speed: {
|
|
2435
|
+
fill: 0
|
|
2436
|
+
},
|
|
2437
|
+
content_copy: {
|
|
2438
|
+
fill: 0
|
|
2439
|
+
},
|
|
2440
|
+
timelapse: {
|
|
2441
|
+
fill: 0
|
|
2442
|
+
}
|
|
2443
|
+
};
|
|
2444
|
+
var getFontVariation = function getFontVariation(iconName, variations, type, size) {
|
|
2445
|
+
var defaultVariant = {
|
|
2446
|
+
fill: type === 'outlined' ? 0 : 1,
|
|
2447
|
+
weight: 400,
|
|
2448
|
+
grade: 0,
|
|
2449
|
+
opticalSize: getOpticalSize(size)
|
|
2450
|
+
};
|
|
2451
|
+
return __assign(__assign(__assign({}, defaultVariant), iconVariantMapper[iconName]), variations);
|
|
2452
|
+
};
|
|
2453
|
+
|
|
2303
2454
|
var Icon = function Icon(props) {
|
|
2304
2455
|
var _a;
|
|
2305
2456
|
|
|
@@ -2307,17 +2458,18 @@
|
|
|
2307
2458
|
className = props.className,
|
|
2308
2459
|
name = props.name,
|
|
2309
2460
|
size = props.size,
|
|
2310
|
-
children = props.children
|
|
2461
|
+
children = props.children,
|
|
2462
|
+
variations = props.variations;
|
|
2311
2463
|
var accessibilityProps = useAccessibilityProps(props);
|
|
2312
2464
|
var baseProps = extractBaseProps(props);
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2465
|
+
var mapper = {
|
|
2466
|
+
outline: 'outlined',
|
|
2467
|
+
sharp: 'outlined',
|
|
2468
|
+
round: 'rounded',
|
|
2469
|
+
filled: 'rounded',
|
|
2470
|
+
'two-tone': 'rounded'
|
|
2318
2471
|
};
|
|
2319
|
-
|
|
2320
|
-
var type = mapper(props.type);
|
|
2472
|
+
var type = props.type && mapper[props.type] || props.type;
|
|
2321
2473
|
|
|
2322
2474
|
var getIconAppearance = function getIconAppearance(iconColor) {
|
|
2323
2475
|
var x = iconColor.indexOf('_');
|
|
@@ -2325,10 +2477,18 @@
|
|
|
2325
2477
|
};
|
|
2326
2478
|
|
|
2327
2479
|
var color = appearance && appearance.includes('_') ? getIconAppearance(appearance) : appearance;
|
|
2328
|
-
var iconClass = classNames__default["default"]((_a = {}, _a['material-icons'] = true, _a[
|
|
2480
|
+
var iconClass = classNames__default["default"]((_a = {}, _a['material-icons'] = true, _a['material-icons-rounded'] = type === 'rounded', _a['material-icons-outlined'] = type === 'outlined', _a['Icon'] = true, _a["Icon--" + color] = appearance, _a["" + className] = className, _a));
|
|
2481
|
+
|
|
2482
|
+
var _b = getFontVariation(name, variations, type, size),
|
|
2483
|
+
fill = _b.fill,
|
|
2484
|
+
grade = _b.grade,
|
|
2485
|
+
opticalSize = _b.opticalSize,
|
|
2486
|
+
weight = _b.weight;
|
|
2487
|
+
|
|
2329
2488
|
var styles = {
|
|
2330
2489
|
fontSize: size + "px",
|
|
2331
|
-
width: size + "px"
|
|
2490
|
+
width: size + "px",
|
|
2491
|
+
'font-variation-settings': "\"FILL\" " + fill + ", \"wght\" " + weight + ", \"GRAD\" " + grade + ", \"opsz\" " + opticalSize
|
|
2332
2492
|
};
|
|
2333
2493
|
|
|
2334
2494
|
if (children && /*#__PURE__*/React__namespace.isValidElement(children)) {
|
|
@@ -2337,15 +2497,17 @@
|
|
|
2337
2497
|
}), children);
|
|
2338
2498
|
}
|
|
2339
2499
|
|
|
2340
|
-
return /*#__PURE__*/React__namespace.createElement("i", __assign({
|
|
2500
|
+
return /*#__PURE__*/React__namespace.createElement("i", __assign({
|
|
2501
|
+
"data-test": "DesignSystem-Icon"
|
|
2502
|
+
}, baseProps, {
|
|
2341
2503
|
className: iconClass,
|
|
2342
2504
|
style: styles
|
|
2343
|
-
}, accessibilityProps),
|
|
2505
|
+
}, accessibilityProps), name);
|
|
2344
2506
|
};
|
|
2345
2507
|
Icon.displayName = 'Icon';
|
|
2346
2508
|
Icon.defaultProps = {
|
|
2347
2509
|
size: 16,
|
|
2348
|
-
type: '
|
|
2510
|
+
type: 'rounded'
|
|
2349
2511
|
};
|
|
2350
2512
|
|
|
2351
2513
|
var GenericText = function GenericText(_a) {
|
|
@@ -2399,7 +2561,8 @@
|
|
|
2399
2561
|
selected = props.selected,
|
|
2400
2562
|
onClose = props.onClose,
|
|
2401
2563
|
onClick = props.onClick,
|
|
2402
|
-
labelPrefix = props.labelPrefix
|
|
2564
|
+
labelPrefix = props.labelPrefix,
|
|
2565
|
+
iconVariations = props.iconVariations;
|
|
2403
2566
|
var baseProps = extractBaseProps(props);
|
|
2404
2567
|
|
|
2405
2568
|
var iconClass = function iconClass(align) {
|
|
@@ -2457,6 +2620,7 @@
|
|
|
2457
2620
|
}), icon && /*#__PURE__*/React__namespace.createElement(Icon, {
|
|
2458
2621
|
"data-test": "DesignSystem-GenericChip--Icon",
|
|
2459
2622
|
name: icon,
|
|
2623
|
+
variations: iconVariations,
|
|
2460
2624
|
appearance: iconAppearance('left'),
|
|
2461
2625
|
className: iconClass('left')
|
|
2462
2626
|
}), renderLabel(), clearButton && /*#__PURE__*/React__namespace.createElement("div", {
|
|
@@ -2487,7 +2651,8 @@
|
|
|
2487
2651
|
onClick = props.onClick,
|
|
2488
2652
|
name = props.name,
|
|
2489
2653
|
className = props.className,
|
|
2490
|
-
labelPrefix = props.labelPrefix
|
|
2654
|
+
labelPrefix = props.labelPrefix,
|
|
2655
|
+
iconVariations = props.iconVariations;
|
|
2491
2656
|
var baseProps = extractBaseProps(props);
|
|
2492
2657
|
|
|
2493
2658
|
var onCloseHandler = function onCloseHandler() {
|
|
@@ -2509,6 +2674,7 @@
|
|
|
2509
2674
|
label: label,
|
|
2510
2675
|
selected: select,
|
|
2511
2676
|
icon: icon,
|
|
2677
|
+
iconVariations: iconVariations,
|
|
2512
2678
|
clearButton: clearbutton,
|
|
2513
2679
|
disabled: disabled,
|
|
2514
2680
|
className: chipClass,
|
|
@@ -2553,7 +2719,8 @@
|
|
|
2553
2719
|
disabled = item.disabled,
|
|
2554
2720
|
selected = item.selected,
|
|
2555
2721
|
clearButton = item.clearButton,
|
|
2556
|
-
name = item.name
|
|
2722
|
+
name = item.name,
|
|
2723
|
+
iconVariations = item.iconVariations;
|
|
2557
2724
|
return /*#__PURE__*/React__namespace.createElement("span", {
|
|
2558
2725
|
key: ind,
|
|
2559
2726
|
className: "ChipGroup-item"
|
|
@@ -2565,6 +2732,7 @@
|
|
|
2565
2732
|
icon: icon,
|
|
2566
2733
|
disabled: disabled,
|
|
2567
2734
|
clearButton: clearButton,
|
|
2735
|
+
iconVariations: iconVariations,
|
|
2568
2736
|
type: type,
|
|
2569
2737
|
onClick: function onClick() {
|
|
2570
2738
|
return onClickHandler(item);
|
|
@@ -3986,7 +4154,8 @@
|
|
|
3986
4154
|
open = props.open,
|
|
3987
4155
|
inlineLabel = props.inlineLabel,
|
|
3988
4156
|
error = props.error,
|
|
3989
|
-
|
|
4157
|
+
iconVariations = props.iconVariations,
|
|
4158
|
+
rest = __rest(props, ["triggerSize", "placeholder", "menu", "children", "icon", "disabled", "open", "inlineLabel", "error", "iconVariations"]);
|
|
3990
4159
|
|
|
3991
4160
|
var buttonDisabled = disabled ? 'disabled' : 'default';
|
|
3992
4161
|
var trimmedPlaceholder = placeholder.trim();
|
|
@@ -4010,12 +4179,14 @@
|
|
|
4010
4179
|
}, "" + inlineLabel.trim().charAt(0).toUpperCase() + inlineLabel.trim().slice(1)), icon && !inlineLabel && /*#__PURE__*/React__namespace.createElement(Icon, {
|
|
4011
4180
|
appearance: buttonDisabled,
|
|
4012
4181
|
className: "d-flex align-items-center mr-4",
|
|
4013
|
-
name: icon
|
|
4182
|
+
name: icon,
|
|
4183
|
+
variations: iconVariations
|
|
4014
4184
|
}), value && /*#__PURE__*/React__namespace.createElement("span", {
|
|
4015
4185
|
className: textClass
|
|
4016
4186
|
}, value)), /*#__PURE__*/React__namespace.createElement(Icon, {
|
|
4017
4187
|
appearance: buttonDisabled,
|
|
4018
|
-
name: iconName
|
|
4188
|
+
name: iconName,
|
|
4189
|
+
variations: iconVariations
|
|
4019
4190
|
}));
|
|
4020
4191
|
});
|
|
4021
4192
|
DropdownButton.displayName = 'DropdownButton';
|
|
@@ -4141,7 +4312,8 @@
|
|
|
4141
4312
|
dataTest = props.dataTest;
|
|
4142
4313
|
var label = optionData.label,
|
|
4143
4314
|
icon = optionData.icon,
|
|
4144
|
-
disabled = optionData.disabled
|
|
4315
|
+
disabled = optionData.disabled,
|
|
4316
|
+
iconVariations = optionData.iconVariations;
|
|
4145
4317
|
var OptionClass = classNames__default["default"]((_a = {}, _a["" + className] = true, _a['Option--icon'] = icon, _a));
|
|
4146
4318
|
return /*#__PURE__*/React__namespace.createElement("div", {
|
|
4147
4319
|
className: OptionClass,
|
|
@@ -4152,7 +4324,8 @@
|
|
|
4152
4324
|
}, icon && /*#__PURE__*/React__namespace.createElement(Icon, {
|
|
4153
4325
|
className: "Option-icon mr-4",
|
|
4154
4326
|
"data-test": dataTest + "--Icon",
|
|
4155
|
-
name: icon
|
|
4327
|
+
name: icon,
|
|
4328
|
+
variations: iconVariations
|
|
4156
4329
|
}), /*#__PURE__*/React__namespace.createElement("div", {
|
|
4157
4330
|
className: 'Option-label'
|
|
4158
4331
|
}, /*#__PURE__*/React__namespace.createElement(Text, {
|
|
@@ -4558,7 +4731,8 @@
|
|
|
4558
4731
|
error = props.error,
|
|
4559
4732
|
disabled = props.disabled,
|
|
4560
4733
|
inlineLabel = props.inlineLabel,
|
|
4561
|
-
triggerLabel = props.triggerLabel
|
|
4734
|
+
triggerLabel = props.triggerLabel,
|
|
4735
|
+
iconVariations = props.iconVariations;
|
|
4562
4736
|
var CustomTrigger = customTrigger ? customTrigger(triggerLabel ? triggerLabel : placeholder) : /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null);
|
|
4563
4737
|
var NewCustomTrigger = /*#__PURE__*/React__namespace.cloneElement(CustomTrigger, {
|
|
4564
4738
|
tabIndex: 0,
|
|
@@ -4573,7 +4747,8 @@
|
|
|
4573
4747
|
inlineLabel: inlineLabel,
|
|
4574
4748
|
menu: menu,
|
|
4575
4749
|
error: error,
|
|
4576
|
-
ref: dropdownTriggerRef
|
|
4750
|
+
ref: dropdownTriggerRef,
|
|
4751
|
+
iconVariations: iconVariations
|
|
4577
4752
|
}, triggerLabel);
|
|
4578
4753
|
var dropdownStyle = {
|
|
4579
4754
|
maxHeight: maxHeight,
|
|
@@ -5647,36 +5822,20 @@
|
|
|
5647
5822
|
var _a;
|
|
5648
5823
|
|
|
5649
5824
|
var className = props.className,
|
|
5650
|
-
|
|
5651
|
-
|
|
5652
|
-
children = props.children,
|
|
5653
|
-
type = props.type;
|
|
5654
|
-
var accessibilityProps = useAccessibilityProps(props);
|
|
5655
|
-
var baseProps = extractBaseProps(props);
|
|
5656
|
-
var iconClass = classNames__default["default"]((_a = {}, _a['material-icons'] = true, _a["material-icons-" + type] = type && type !== 'filled', _a['ActionButton'] = true, _a["" + className] = className, _a));
|
|
5657
|
-
var styles = {
|
|
5658
|
-
fontSize: size + "px",
|
|
5659
|
-
width: size + "px"
|
|
5660
|
-
};
|
|
5661
|
-
|
|
5662
|
-
if (children && /*#__PURE__*/React__namespace.isValidElement(children)) {
|
|
5663
|
-
return /*#__PURE__*/React__namespace.createElement("span", __assign({}, baseProps, {
|
|
5664
|
-
className: iconClass,
|
|
5665
|
-
"data-test": "DesignSystem-Input-ActionButton"
|
|
5666
|
-
}), children);
|
|
5667
|
-
}
|
|
5825
|
+
iconVariations = props.iconVariations,
|
|
5826
|
+
rest = __rest(props, ["className", "iconVariations"]);
|
|
5668
5827
|
|
|
5669
|
-
|
|
5828
|
+
var iconClass = classNames__default["default"]((_a = {}, _a['ActionButton'] = true, _a["" + className] = className, _a));
|
|
5829
|
+
return /*#__PURE__*/React__namespace.createElement(Icon, __assign({
|
|
5670
5830
|
className: iconClass,
|
|
5671
|
-
|
|
5672
|
-
}, accessibilityProps, {
|
|
5831
|
+
variations: iconVariations,
|
|
5673
5832
|
"data-test": "DesignSystem-Input-ActionButton"
|
|
5674
|
-
}
|
|
5833
|
+
}, rest));
|
|
5675
5834
|
};
|
|
5676
5835
|
ActionButton$1.displayName = 'ActionButton';
|
|
5677
5836
|
ActionButton$1.defaultProps = {
|
|
5678
5837
|
size: 16,
|
|
5679
|
-
type: '
|
|
5838
|
+
type: 'rounded'
|
|
5680
5839
|
};
|
|
5681
5840
|
|
|
5682
5841
|
var sizeMapping$2 = {
|
|
@@ -5713,7 +5872,8 @@
|
|
|
5713
5872
|
autoFocus = props.autoFocus,
|
|
5714
5873
|
disabled = props.disabled,
|
|
5715
5874
|
readOnly = props.readOnly,
|
|
5716
|
-
|
|
5875
|
+
iconVariations = props.iconVariations,
|
|
5876
|
+
rest = __rest(props, ["size", "type", "minWidth", "defaultValue", "name", "placeholder", "value", "icon", "inlineLabel", "required", "error", "info", "onChange", "onClick", "onClear", "onBlur", "onFocus", "onPaste", "actionIcon", "className", "autoFocus", "disabled", "readOnly", "iconVariations"]);
|
|
5717
5877
|
|
|
5718
5878
|
var ref = React__namespace.useRef(null);
|
|
5719
5879
|
|
|
@@ -5769,7 +5929,8 @@
|
|
|
5769
5929
|
className: leftIconClass
|
|
5770
5930
|
}, /*#__PURE__*/React__namespace.createElement(Icon, {
|
|
5771
5931
|
name: icon,
|
|
5772
|
-
size: sizeMapping$2[size]
|
|
5932
|
+
size: sizeMapping$2[size],
|
|
5933
|
+
variations: iconVariations
|
|
5773
5934
|
})), /*#__PURE__*/React__namespace.createElement("input", __assign({
|
|
5774
5935
|
"data-test": "DesignSystem-Input"
|
|
5775
5936
|
}, baseProps, rest, {
|
|
@@ -5861,7 +6022,8 @@
|
|
|
5861
6022
|
_h = props.showActionButton,
|
|
5862
6023
|
showActionButton = _h === void 0 ? true : _h,
|
|
5863
6024
|
onKeyDown = props.onKeyDown,
|
|
5864
|
-
|
|
6025
|
+
iconVariations = props.iconVariations,
|
|
6026
|
+
rest = __rest(props, ["size", "defaultValue", "name", "placeholder", "icon", "prefix", "suffix", "error", "min", "max", "onChange", "onClick", "onBlur", "onFocus", "className", "autoFocus", "disabled", "readOnly", "value", "showActionButton", "onKeyDown", "iconVariations"]);
|
|
5865
6027
|
|
|
5866
6028
|
var ref = React__namespace.useRef(null);
|
|
5867
6029
|
var isUncontrolled = valueProp === undefined;
|
|
@@ -5958,6 +6120,7 @@
|
|
|
5958
6120
|
}, icon && /*#__PURE__*/React__namespace.createElement(Icon, {
|
|
5959
6121
|
"data-test": "DesignSystem-MetricInput--icon",
|
|
5960
6122
|
name: icon,
|
|
6123
|
+
variations: iconVariations,
|
|
5961
6124
|
size: sizeMapping$1[size],
|
|
5962
6125
|
appearance: !value ? 'disabled' : 'subtle',
|
|
5963
6126
|
className: iconClass
|
|
@@ -6698,7 +6861,8 @@
|
|
|
6698
6861
|
var Meta = function Meta(props) {
|
|
6699
6862
|
var label = props.label,
|
|
6700
6863
|
icon = props.icon,
|
|
6701
|
-
size = props.size
|
|
6864
|
+
size = props.size,
|
|
6865
|
+
iconVariations = props.iconVariations;
|
|
6702
6866
|
return /*#__PURE__*/React__namespace.createElement("span", {
|
|
6703
6867
|
"data-test": "DesignSystem-MetaList--Meta",
|
|
6704
6868
|
className: 'Meta'
|
|
@@ -6707,6 +6871,7 @@
|
|
|
6707
6871
|
name: icon,
|
|
6708
6872
|
appearance: "subtle",
|
|
6709
6873
|
className: 'Meta-icon',
|
|
6874
|
+
variations: iconVariations,
|
|
6710
6875
|
size: size === 'regular' ? 16 : 12
|
|
6711
6876
|
}), /*#__PURE__*/React__namespace.createElement(Text, {
|
|
6712
6877
|
size: size,
|
|
@@ -6740,7 +6905,8 @@
|
|
|
6740
6905
|
}), list.map(function (item, ind) {
|
|
6741
6906
|
var _a = item.label,
|
|
6742
6907
|
label = _a === void 0 ? '' : _a,
|
|
6743
|
-
icon = item.icon
|
|
6908
|
+
icon = item.icon,
|
|
6909
|
+
iconVariations = item.iconVariations;
|
|
6744
6910
|
var rightSeperator = ind !== list.length - 1;
|
|
6745
6911
|
return /*#__PURE__*/React__namespace.createElement("span", {
|
|
6746
6912
|
key: ind,
|
|
@@ -6748,7 +6914,8 @@
|
|
|
6748
6914
|
}, /*#__PURE__*/React__namespace.createElement(Meta, {
|
|
6749
6915
|
size: size,
|
|
6750
6916
|
label: label,
|
|
6751
|
-
icon: icon
|
|
6917
|
+
icon: icon,
|
|
6918
|
+
iconVariations: iconVariations
|
|
6752
6919
|
}), rightSeperator && /*#__PURE__*/React__namespace.createElement(Icon, {
|
|
6753
6920
|
"data-test": "DesignSystem-MetaList--rightSeperator",
|
|
6754
6921
|
name: "fiber_manual_record",
|
|
@@ -8480,11 +8647,12 @@
|
|
|
8480
8647
|
ENTER: 'Enter'
|
|
8481
8648
|
};
|
|
8482
8649
|
var ChipInput = function ChipInput(props) {
|
|
8483
|
-
var _a;
|
|
8650
|
+
var _a, _b;
|
|
8484
8651
|
|
|
8485
8652
|
var chipOptions = props.chipOptions,
|
|
8486
8653
|
allowDuplicates = props.allowDuplicates,
|
|
8487
8654
|
disabled = props.disabled,
|
|
8655
|
+
error = props.error,
|
|
8488
8656
|
placeholder = props.placeholder,
|
|
8489
8657
|
defaultValue = props.defaultValue,
|
|
8490
8658
|
value = props.value,
|
|
@@ -8495,13 +8663,13 @@
|
|
|
8495
8663
|
onFocus = props.onFocus;
|
|
8496
8664
|
var inputRef = /*#__PURE__*/React__namespace.createRef();
|
|
8497
8665
|
|
|
8498
|
-
var
|
|
8499
|
-
chips =
|
|
8500
|
-
setChips =
|
|
8666
|
+
var _c = React__namespace.useState(value || defaultValue),
|
|
8667
|
+
chips = _c[0],
|
|
8668
|
+
setChips = _c[1];
|
|
8501
8669
|
|
|
8502
|
-
var
|
|
8503
|
-
inputValue =
|
|
8504
|
-
setInputValue =
|
|
8670
|
+
var _d = React__namespace.useState(''),
|
|
8671
|
+
inputValue = _d[0],
|
|
8672
|
+
setInputValue = _d[1];
|
|
8505
8673
|
|
|
8506
8674
|
var baseProps = extractBaseProps(props);
|
|
8507
8675
|
React__namespace.useEffect(function () {
|
|
@@ -8509,9 +8677,10 @@
|
|
|
8509
8677
|
setChips(value);
|
|
8510
8678
|
}
|
|
8511
8679
|
}, [value]);
|
|
8512
|
-
var
|
|
8680
|
+
var ChipInputBorderClass = classNames__default["default"]((_a = {}, _a['ChipInput-border'] = true, _a['ChipInput-border--error'] = error, _a));
|
|
8681
|
+
var ChipInputClass = classNames__default["default"]((_b = {
|
|
8513
8682
|
ChipInput: true
|
|
8514
|
-
},
|
|
8683
|
+
}, _b['ChipInput--disabled'] = disabled, _b['ChipInput--withChips'] = chips && chips.length > 0, _b['ChipInput--error'] = error, _b), className);
|
|
8515
8684
|
|
|
8516
8685
|
var onUpdateChips = function onUpdateChips(updatedChips) {
|
|
8517
8686
|
if (onChange) onChange(updatedChips);
|
|
@@ -8608,7 +8777,7 @@
|
|
|
8608
8777
|
});
|
|
8609
8778
|
return /*#__PURE__*/React__namespace.createElement("div", {
|
|
8610
8779
|
"data-test": "DesignSystem-ChipInput--Border",
|
|
8611
|
-
className:
|
|
8780
|
+
className: ChipInputBorderClass
|
|
8612
8781
|
}, /*#__PURE__*/React__namespace.createElement("div", __assign({
|
|
8613
8782
|
"data-test": "DesignSystem-ChipInput"
|
|
8614
8783
|
}, baseProps, {
|
|
@@ -8795,7 +8964,8 @@
|
|
|
8795
8964
|
}, menu.icon && /*#__PURE__*/React__namespace.createElement(Icon, {
|
|
8796
8965
|
"data-test": "DesignSystem-VerticalNav--Icon",
|
|
8797
8966
|
className: expanded ? 'mr-4' : '',
|
|
8798
|
-
name: menu.icon
|
|
8967
|
+
name: menu.icon,
|
|
8968
|
+
variations: menu.iconVariations
|
|
8799
8969
|
}), expanded && /*#__PURE__*/React__namespace.createElement(_MenuLabel, {
|
|
8800
8970
|
label: menu.label,
|
|
8801
8971
|
labelColor: itemColor
|
|
@@ -8993,6 +9163,7 @@
|
|
|
8993
9163
|
return /*#__PURE__*/React__namespace.createElement(Icon, {
|
|
8994
9164
|
className: "mr-3 HorizontalNav-animate",
|
|
8995
9165
|
name: menu.icon,
|
|
9166
|
+
variations: menu.iconVariations,
|
|
8996
9167
|
"data-test": "DesignSystem-HorizontalNav--Icon"
|
|
8997
9168
|
});
|
|
8998
9169
|
}
|
|
@@ -11932,7 +12103,8 @@
|
|
|
11932
12103
|
var _b = tab,
|
|
11933
12104
|
count = _b.count,
|
|
11934
12105
|
icon = _b.icon,
|
|
11935
|
-
disabled = _b.disabled
|
|
12106
|
+
disabled = _b.disabled,
|
|
12107
|
+
iconVariations = _b.iconVariations;
|
|
11936
12108
|
|
|
11937
12109
|
if (count !== undefined) {
|
|
11938
12110
|
return /*#__PURE__*/React__namespace.createElement(Pills, {
|
|
@@ -11950,6 +12122,7 @@
|
|
|
11950
12122
|
"data-test": "DesignSystem-Tabs--Icon",
|
|
11951
12123
|
className: "mr-4 " + iconClass,
|
|
11952
12124
|
name: icon,
|
|
12125
|
+
variations: iconVariations,
|
|
11953
12126
|
appearance: iconAppearance
|
|
11954
12127
|
});
|
|
11955
12128
|
}
|
|
@@ -16133,7 +16306,8 @@
|
|
|
16133
16306
|
subtle = props.subtle,
|
|
16134
16307
|
size = props.size,
|
|
16135
16308
|
iconAlign = props.iconAlign,
|
|
16136
|
-
|
|
16309
|
+
iconVariations = props.iconVariations,
|
|
16310
|
+
rest = __rest(props, ["children", "type", "className", "disabled", "tabIndex", "icon", "subtle", "size", "iconAlign", "iconVariations"]);
|
|
16137
16311
|
|
|
16138
16312
|
var buttonClass = classNames__default["default"]((_a = {}, _a['LinkButton'] = true, _a["LinkButton--" + size] = size, _a['LinkButton--default'] = !subtle, _a['LinkButton--subtle'] = subtle, _a["LinkButton--iconAlign-" + iconAlign] = children && iconAlign, _a["" + className] = className, _a));
|
|
16139
16313
|
var iconClass = classNames__default["default"]((_b = {}, _b['LinkButton-icon'] = true, _b["LinkButton-icon--" + iconAlign] = children && iconAlign, _b));
|
|
@@ -16149,6 +16323,7 @@
|
|
|
16149
16323
|
}, /*#__PURE__*/React__namespace.createElement(Icon, {
|
|
16150
16324
|
"data-test": "DesignSystem-LinkButton--Icon",
|
|
16151
16325
|
name: icon,
|
|
16326
|
+
variations: iconVariations,
|
|
16152
16327
|
size: size && sizeMapping[size]
|
|
16153
16328
|
})), children));
|
|
16154
16329
|
});
|
|
@@ -16159,8 +16334,44 @@
|
|
|
16159
16334
|
iconAlign: 'left'
|
|
16160
16335
|
};
|
|
16161
16336
|
|
|
16162
|
-
var
|
|
16337
|
+
var ActionCard = function ActionCard(props) {
|
|
16338
|
+
var _a;
|
|
16339
|
+
|
|
16340
|
+
var children = props.children,
|
|
16341
|
+
disabled = props.disabled,
|
|
16342
|
+
className = props.className,
|
|
16343
|
+
zIndex = props.zIndex,
|
|
16344
|
+
onClick = props.onClick,
|
|
16345
|
+
rest = __rest(props, ["children", "disabled", "className", "zIndex", "onClick"]);
|
|
16346
|
+
|
|
16347
|
+
var classes = classNames__default["default"]((_a = {}, _a['ActionCard'] = true, _a['ActionCard--disabled'] = disabled, _a), className);
|
|
16348
|
+
|
|
16349
|
+
var onKeyDownHandler = function onKeyDownHandler(event) {
|
|
16350
|
+
if (event.key === 'Enter' && onClick) {
|
|
16351
|
+
onClick(event);
|
|
16352
|
+
}
|
|
16353
|
+
};
|
|
16354
|
+
|
|
16355
|
+
return /*#__PURE__*/React__namespace.createElement("div", __assign({
|
|
16356
|
+
tabIndex: disabled ? -1 : 0,
|
|
16357
|
+
role: "link",
|
|
16358
|
+
"data-test": "DesignSystem-ActionCard",
|
|
16359
|
+
className: classes,
|
|
16360
|
+
onClick: onClick,
|
|
16361
|
+
onKeyDown: onKeyDownHandler
|
|
16362
|
+
}, rest), disabled && /*#__PURE__*/React__namespace.createElement("div", {
|
|
16363
|
+
style: {
|
|
16364
|
+
zIndex: zIndex
|
|
16365
|
+
},
|
|
16366
|
+
"data-test": "DesignSystem-ActionCard-Overlay",
|
|
16367
|
+
className: "ActionCard-overlay--disabled"
|
|
16368
|
+
}), children);
|
|
16369
|
+
};
|
|
16370
|
+
ActionCard.displayName = 'ActionCard';
|
|
16371
|
+
|
|
16372
|
+
var version = "2.21.0";
|
|
16163
16373
|
|
|
16374
|
+
exports.ActionCard = ActionCard;
|
|
16164
16375
|
exports.Avatar = Avatar;
|
|
16165
16376
|
exports.AvatarGroup = AvatarGroup;
|
|
16166
16377
|
exports.Backdrop = Backdrop;
|