widenarrow-ui 1.0.39 → 1.0.41
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/lib/components/Button/Button.types.d.ts +1 -1
- package/lib/components/Checkbox/Checkbox.stories.d.ts +1 -0
- package/lib/components/Checkbox/Checkbox.types.d.ts +4 -2
- package/lib/components/SortableTable/SortableTable.types.d.ts +1 -0
- package/lib/index.css +1 -1
- package/lib/index.d.ts +6 -3
- package/lib/index.esm.css +1 -1
- package/lib/index.esm.js +18 -17
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +18 -17
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/assets/svg/classification.tsx +0 -1
- package/src/assets/svg/dashboardEdit.tsx +1 -1
- package/src/assets/svg/sendList.tsx +13 -1
- package/src/components/Button/Button.tsx +5 -5
- package/src/components/Button/Button.types.ts +1 -1
- package/src/components/Checkbox/Checkbox.module.scss +4 -0
- package/src/components/Checkbox/Checkbox.stories.tsx +9 -0
- package/src/components/Checkbox/Checkbox.tsx +6 -2
- package/src/components/Checkbox/Checkbox.types.ts +4 -2
- package/src/components/DropDown/DropDown.module.scss +1 -0
- package/src/components/SortableTable/SortableTable.module.scss +4 -0
- package/src/components/SortableTable/SortableTable.tsx +3 -2
- package/src/components/SortableTable/SortableTable.types.ts +1 -0
package/lib/index.esm.js
CHANGED
|
@@ -768,7 +768,7 @@ var Icon$2n = function (_a) {
|
|
|
768
768
|
|
|
769
769
|
var Icon$2m = function (_a) {
|
|
770
770
|
var className = _a.className;
|
|
771
|
-
return (
|
|
771
|
+
return (jsx("svg", __assign({ className: className, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "24px", height: "24px" }, { children: jsx("path", { d: "M6.5 5A1.5 1.5 0 1 0 8 6.5A1.5 1.5 0 0 0 6.5 5M6.5 5A1.5 1.5 0 1 0 8 6.5A1.5 1.5 0 0 0 6.5 5M21.41 11.58L12.41 2.58A2 2 0 0 0 11 2H4A2 2 0 0 0 2 4V11A2 2 0 0 0 2.59 12.42L3 12.82A5.62 5.62 0 0 1 5.08 12.08L4 11V4H11L20 13L13 20L11.92 18.92A5.57 5.57 0 0 1 11.18 21L11.59 21.41A2 2 0 0 0 13 22A2 2 0 0 0 14.41 21.41L21.41 14.41A2 2 0 0 0 22 13A2 2 0 0 0 21.41 11.58M6.5 5A1.5 1.5 0 1 0 8 6.5A1.5 1.5 0 0 0 6.5 5M10 19H7V22H5V19H2V17H5V14H7V17H10Z" }) })));
|
|
772
772
|
};
|
|
773
773
|
|
|
774
774
|
var Icon$2l = function (_a) {
|
|
@@ -833,7 +833,7 @@ var Icon$2a = function (_a) {
|
|
|
833
833
|
|
|
834
834
|
var Icon$29 = function (_a) {
|
|
835
835
|
var className = _a.className;
|
|
836
|
-
return (jsx("svg", __assign({ className: className, xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "
|
|
836
|
+
return (jsx("svg", __assign({ className: className, xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "-2 -2 24 24" }, { children: jsx("path", { d: "M2.5 2.5H9.16667V9.16667H2.5V2.5ZM10.8333 2.5H17.5V9.16667H10.8333V2.5ZM2.5 10.8333H9.16667V17.5H2.5V10.8333ZM13.3333 10.8333H15V13.3333H17.5V15H15V17.5H13.3333V15H10.8333V13.3333H13.3333V10.8333ZM12.5 4.16667V7.5H15.8333V4.16667H12.5ZM4.16667 4.16667V7.5H7.5V4.16667H4.16667ZM4.16667 12.5V15.8333H7.5V12.5H4.16667Z" }) })));
|
|
837
837
|
};
|
|
838
838
|
|
|
839
839
|
var Icon$28 = function (_a) {
|
|
@@ -1333,7 +1333,7 @@ var Icon$C = function (_a) {
|
|
|
1333
1333
|
|
|
1334
1334
|
var Icon$B = function (_a) {
|
|
1335
1335
|
var className = _a.className;
|
|
1336
|
-
return (jsxs("svg", __assign({ className: className, xmlns: "http://www.w3.org/2000/svg", fill: "none", width: "
|
|
1336
|
+
return (jsxs("svg", __assign({ className: className, xmlns: "http://www.w3.org/2000/svg", fill: "none", width: "24px", height: "24px", viewBox: "-2 -2 28 26" }, { children: [jsx("path", { fillRule: "evenodd", d: "M2.087 15.35V16H8v2H0v-2.65c0-1.03.532-2.01 1.45-2.53A13.867 13.867 0 0 1 8 11.004v2.064c-1.88.173-4.088.672-5.485 1.472-.261.15-.428.47-.428.81ZM9.391 11c-.162-.014-.495-.008-.762-.004-.111.002-.21.004-.281.004h-.033H9.39Z", clipRule: "evenodd" }), jsx("path", { d: "M8.348 10c2.306 0 4.174-1.79 4.174-4s-1.868-4-4.174-4-4.174 1.79-4.174 4 1.868 4 4.174 4Zm0-6c1.148 0 2.087.9 2.087 2s-.94 2-2.087 2C7.2 8 6.26 7.1 6.26 6S7.2 4 8.348 4ZM22.6 11H11.4c-.77 0-1.393.619-1.393 1.375L10 20.625c0 .756.63 1.375 1.4 1.375h11.2c.77 0 1.4-.619 1.4-1.375v-8.25c0-.756-.63-1.375-1.4-1.375Zm0 2.75L17 17.188l-5.6-3.438v-1.375l5.6 3.438 5.6-3.438v1.375Z" }), jsx("path", { fillRule: "evenodd", d: "M12.26 9.598a4.309 4.309 0 0 0 1.827.402c2.306 0 4.174-1.79 4.174-4s-1.868-4-4.174-4c-.655 0-1.275.144-1.826.402 1.39.649 2.348 2.016 2.348 3.598 0 1.582-.958 2.95-2.348 3.598Z", clipRule: "evenodd" })] })));
|
|
1337
1337
|
};
|
|
1338
1338
|
|
|
1339
1339
|
var Icon$A = function (_a) {
|
|
@@ -2039,7 +2039,7 @@ var styles$j = {"body":"Button-module_AK7AMO","container":"Button-module_0j8mdA"
|
|
|
2039
2039
|
var s$j = classNames.bind(styles$j);
|
|
2040
2040
|
var Button = memo(function (_a) {
|
|
2041
2041
|
var _b, _c;
|
|
2042
|
-
var className = _a.className, id = _a.id, style = _a.style, _d = _a.type, type = _d === void 0 ? HierarchyTypes.PRIMARY : _d, _e = _a.size, size = _e === void 0 ? SizeTypes.MEDIUM : _e, text = _a.text, toolTip = _a.toolTip, icon = _a.icon, iconSize = _a.iconSize,
|
|
2042
|
+
var className = _a.className, id = _a.id, style = _a.style, _d = _a.type, type = _d === void 0 ? HierarchyTypes.PRIMARY : _d, _e = _a.size, size = _e === void 0 ? SizeTypes.MEDIUM : _e, text = _a.text, toolTip = _a.toolTip, icon = _a.icon, iconSize = _a.iconSize, withIconRight = _a.withIconRight, rotateIconByDegree = _a.rotateIconByDegree, withEllipsis = _a.withEllipsis, onClickCallback = _a.onClickCallback, loading = _a.loading, disabled = _a.disabled, children = _a.children, autoFocus = _a.autoFocus, ariaLabel = _a.ariaLabel, tabIndex = _a.tabIndex;
|
|
2043
2043
|
var mergedClassNames = s$j('container', (_b = {
|
|
2044
2044
|
container_primary: type === HierarchyTypes.PRIMARY,
|
|
2045
2045
|
container_secondary: type === HierarchyTypes.SECONDARY,
|
|
@@ -2065,11 +2065,11 @@ var Button = memo(function (_a) {
|
|
|
2065
2065
|
}
|
|
2066
2066
|
return jsx(Icon, { icon: icon, size: iconSize || SizeTypes.MEDIUM, className: s$j('icon'), rotateIconByDegree: rotateIconByDegree });
|
|
2067
2067
|
};
|
|
2068
|
-
var getInnerMarkup = function () { return (jsxs("div", __assign({ className: s$j('inner') }, { children: [icon &&
|
|
2069
|
-
text_withIconLeft: icon &&
|
|
2070
|
-
text_withIconRight: icon &&
|
|
2068
|
+
var getInnerMarkup = function () { return (jsxs("div", __assign({ className: s$j('inner') }, { children: [icon && !withIconRight ? jsx("div", __assign({ className: s$j('iconContainer') }, { children: getButtonIcon() })) : null, text ? (jsx("span", __assign({ className: s$j('text', {
|
|
2069
|
+
text_withIconLeft: icon && !withIconRight,
|
|
2070
|
+
text_withIconRight: icon && withIconRight,
|
|
2071
2071
|
text_withEllipsis: withEllipsis
|
|
2072
|
-
}) }, { children: text }))) : null, icon &&
|
|
2072
|
+
}) }, { children: text }))) : null, icon && withIconRight ? jsx("div", __assign({ className: s$j('iconContainer') }, { children: getButtonIcon() })) : null] }))); };
|
|
2073
2073
|
var baseAttributes = (_c = {
|
|
2074
2074
|
className: mergedClassNames,
|
|
2075
2075
|
id: id,
|
|
@@ -2089,26 +2089,27 @@ var Button = memo(function (_a) {
|
|
|
2089
2089
|
return buttonMarkup;
|
|
2090
2090
|
});
|
|
2091
2091
|
|
|
2092
|
-
var styles$i = {"body":"Checkbox-module_et5-hi","container":"Checkbox-module_pUY-sk","container_disabled":"Checkbox-module_R-WdsF","container_withHelperText":"Checkbox-module_LXApNe","container_enabled":"Checkbox-module_gWKAcZ","label":"Checkbox-module_JBaRmp","box":"Checkbox-module_KLUVKO","label_withHelperText":"Checkbox-module_YXNy27","label_isBlocked":"Checkbox-module_iDzbdV","label_withWordWrap":"Checkbox-module_sk8jg7","box_isChecked":"Checkbox-module_bQFvLF","box_isIndeterminate":"Checkbox-module_8QNUb3","box_isDisabled":"Checkbox-module_qbmebz","box_isCheckedAndDisabled":"Checkbox-module_QPcUI7","box_isFake":"Checkbox-module_uNeZ8r","input":"Checkbox-module_-039s6","input_disabled":"Checkbox-module_Nt3GpM","icon":"Checkbox-module_VMxEfA","helperText":"Checkbox-module_mkQr-O"};
|
|
2092
|
+
var styles$i = {"body":"Checkbox-module_et5-hi","container":"Checkbox-module_pUY-sk","container_disabled":"Checkbox-module_R-WdsF","container_withHelperText":"Checkbox-module_LXApNe","container_withEllipsis":"Checkbox-module_OMFVzd","container_enabled":"Checkbox-module_gWKAcZ","label":"Checkbox-module_JBaRmp","box":"Checkbox-module_KLUVKO","label_withHelperText":"Checkbox-module_YXNy27","label_isBlocked":"Checkbox-module_iDzbdV","label_withWordWrap":"Checkbox-module_sk8jg7","box_isChecked":"Checkbox-module_bQFvLF","box_isIndeterminate":"Checkbox-module_8QNUb3","box_isDisabled":"Checkbox-module_qbmebz","box_isCheckedAndDisabled":"Checkbox-module_QPcUI7","box_isFake":"Checkbox-module_uNeZ8r","input":"Checkbox-module_-039s6","input_disabled":"Checkbox-module_Nt3GpM","icon":"Checkbox-module_VMxEfA","helperText":"Checkbox-module_mkQr-O"};
|
|
2093
2093
|
|
|
2094
2094
|
var s$i = classNames.bind(styles$i);
|
|
2095
2095
|
var Checkbox = function (_a) {
|
|
2096
2096
|
var _b;
|
|
2097
|
-
var name = _a.name, className = _a.className, label = _a.label, helperText = _a.helperText, onChange = _a.onChange, onChangeFake = _a.onChangeFake, wordWrap = _a.wordWrap, checked = _a.checked, blocked = _a.blocked, indeterminate = _a.indeterminate, disabled = _a.disabled, isFake = _a.isFake, ariaLabel = _a.ariaLabel;
|
|
2097
|
+
var name = _a.name, value = _a.value, className = _a.className, label = _a.label, helperText = _a.helperText, onChange = _a.onChange, onChangeFake = _a.onChangeFake, wordWrap = _a.wordWrap, withEllipsis = _a.withEllipsis, checked = _a.checked, blocked = _a.blocked, indeterminate = _a.indeterminate, disabled = _a.disabled, isFake = _a.isFake, ariaLabel = _a.ariaLabel;
|
|
2098
2098
|
var onClickRealInput = function (event) {
|
|
2099
2099
|
if (!disabled && onChange) {
|
|
2100
|
-
onChange(event);
|
|
2100
|
+
onChange(value || name || '', event);
|
|
2101
2101
|
}
|
|
2102
2102
|
};
|
|
2103
2103
|
var onClickFakeInput = function (event) {
|
|
2104
2104
|
if (!disabled && onChangeFake) {
|
|
2105
|
-
onChangeFake(event);
|
|
2105
|
+
onChangeFake(value || name || '', event);
|
|
2106
2106
|
}
|
|
2107
2107
|
};
|
|
2108
2108
|
return (jsxs("div", __assign({ className: s$i('container', (_b = {
|
|
2109
2109
|
container_enabled: !disabled,
|
|
2110
2110
|
container_disabled: disabled,
|
|
2111
|
-
container_withHelperText: helperText
|
|
2111
|
+
container_withHelperText: helperText,
|
|
2112
|
+
container_withEllipsis: withEllipsis
|
|
2112
2113
|
},
|
|
2113
2114
|
_b[className] = className,
|
|
2114
2115
|
_b)) }, { children: [isFake ? (jsx("div", __assign({ className: s$i('box', {
|
|
@@ -2124,7 +2125,7 @@ var Checkbox = function (_a) {
|
|
|
2124
2125
|
box_isIndeterminate: indeterminate && !checked,
|
|
2125
2126
|
box_isDisabled: disabled,
|
|
2126
2127
|
box_isCheckedAndDisabled: disabled && checked
|
|
2127
|
-
}) }, { children: (checked || indeterminate) && jsx(Icon, { icon: checked ? IconTypes.CHECK : IconTypes.CHECK_INDETERMINATE, className: s$i('icon') }) }))] })), label && (jsxs(Label, __assign({ htmlFor: name, withWordBreak: wordWrap, disabled: disabled, marginBottom: '0', marginTop: '0', className: s$i('label', { label_isBlocked: blocked, label_withWordWrap: wordWrap, label_withHelperText: helperText }) }, { children: [label, helperText ? jsx("span", __assign({ className: s$i('helperText') }, { children: helperText })) : null] })))] })));
|
|
2128
|
+
}) }, { children: (checked || indeterminate) && jsx(Icon, { icon: checked ? IconTypes.CHECK : IconTypes.CHECK_INDETERMINATE, className: s$i('icon') }) }))] })), label && (jsxs(Label, __assign({ htmlFor: name, withWordBreak: wordWrap, disabled: disabled, withEllipsis: withEllipsis, marginBottom: '0', marginTop: '0', className: s$i('label', { label_isBlocked: blocked, label_withWordWrap: wordWrap, label_withHelperText: helperText }) }, { children: [label, helperText ? jsx("span", __assign({ className: s$i('helperText') }, { children: helperText })) : null] })))] })));
|
|
2128
2129
|
};
|
|
2129
2130
|
|
|
2130
2131
|
var styles$h = {"body":"Image-module_R0tivq","container":"Image-module_dYcZ5E","hoverOverlay":"Image-module_RZIW5V","container_withContainer":"Image-module_KohPWB","backgroundImage":"Image-module_c9gqLs","container_withAspectRatio":"Image-module_1OcRcC","image":"Image-module_1pa50f","ar4_1":"Image-module_BLQniT","ar3_1":"Image-module_qHwkv6","ar21_9":"Image-module_mBTxSg","ar16_9":"Image-module_nBLWjn","ar21_13":"Image-module_gxLQIV","ar4_3":"Image-module_qCRFSM","ar1_1":"Image-module_L0IiPU","backgroundImage_sizeContain":"Image-module_U-PVTF","backgroundImage_positionCenter":"Image-module_rSvAOx","backgroundImage_positionTop":"Image-module_MLdHRI","backgroundImage_positionBottom":"Image-module_4efd0J","lazy-image":"Image-module_cR0QR3","lazyloading":"Image-module_yIpGSs","lazyloaded":"Image-module_DFxhJb","hoverOverlayColor_blue":"Image-module_NsN9mb","hoverOverlayColor_lightBlue":"Image-module_2w0ChB","hoverOverlayColor_yellow":"Image-module_DMLlor","hoverOverlayColor_orange":"Image-module_J3iwe9","hoverOverlayColor_green":"Image-module_Ptd1Ve","hoverOverlayColor_red":"Image-module_RtgY-W","hoverOverlayColor_white":"Image-module_CI4wIF","hoverOverlayColor_grey1":"Image-module_XtlHIJ","hoverOverlayColor_grey2":"Image-module_ZqQzaU","hoverOverlayColor_grey3":"Image-module_cO-8NN","hoverOverlayColor_grey4":"Image-module_UIJSnG","hoverOverlayColor_grey5":"Image-module_-yqLQm","hoverOverlayColor_grey6":"Image-module_DLAtSn","hoverOverlayColor_grey7":"Image-module_l8oZVN","hoverOverlayColor_black":"Image-module_Pva4Sh"};
|
|
@@ -2851,7 +2852,7 @@ var MultiActionButton = function (_a) {
|
|
|
2851
2852
|
return buttonMarkup;
|
|
2852
2853
|
};
|
|
2853
2854
|
|
|
2854
|
-
var styles$2 = {"body":"SortableTable-module_255i6l","container":"SortableTable-module_gOksTd","table":"SortableTable-module_dfN-ML","table_loading":"SortableTable-module_7Xgt8Z","headerButton":"SortableTable-module_AadsXB","spinner":"SortableTable-module_w6cEGh","row":"SortableTable-module_XTdF1B","row_notInView":"SortableTable-module_WrgDHR","row_header":"SortableTable-module_kQXB-F","row_stickyHeader":"SortableTable-module_fot04-","cell":"SortableTable-module_BbzTcK","cell_header":"SortableTable-module_8ypAZw","cell_alignCenter":"SortableTable-module_WyBmBy","cell_alignRight":"SortableTable-module_d3tm0o","cellData":"SortableTable-module_NCWDUf","cellData_withEllipsis":"SortableTable-module_linqtd"};
|
|
2855
|
+
var styles$2 = {"body":"SortableTable-module_255i6l","container":"SortableTable-module_gOksTd","container_withMinWidth":"SortableTable-module_zbtuXT","table":"SortableTable-module_dfN-ML","table_loading":"SortableTable-module_7Xgt8Z","headerButton":"SortableTable-module_AadsXB","spinner":"SortableTable-module_w6cEGh","row":"SortableTable-module_XTdF1B","row_notInView":"SortableTable-module_WrgDHR","row_header":"SortableTable-module_kQXB-F","row_stickyHeader":"SortableTable-module_fot04-","cell":"SortableTable-module_BbzTcK","cell_header":"SortableTable-module_8ypAZw","cell_alignCenter":"SortableTable-module_WyBmBy","cell_alignRight":"SortableTable-module_d3tm0o","cellData":"SortableTable-module_NCWDUf","cellData_withEllipsis":"SortableTable-module_linqtd"};
|
|
2855
2856
|
|
|
2856
2857
|
var s$2 = classNames.bind(styles$2);
|
|
2857
2858
|
var SortableTableRow = function (_a) {
|
|
@@ -2865,7 +2866,7 @@ var SortableTableRow = function (_a) {
|
|
|
2865
2866
|
};
|
|
2866
2867
|
var SortableTable = function (_a) {
|
|
2867
2868
|
var _b, _c;
|
|
2868
|
-
var cells = _a.cells, data = _a.data, _d = _a.sortBy, sortBy = _d === void 0 ? [{ keyName: 'name', ascending: true }] : _d, _e = _a.skeletonRows, skeletonRows = _e === void 0 ? 6 : _e, loading = _a.loading, className = _a.className, headerClassName = _a.headerClassName, rowClassName = _a.rowClassName, withStickyHeader = _a.withStickyHeader, withIntersectionObserver = _a.withIntersectionObserver, onSortCallback = _a.onSortCallback;
|
|
2869
|
+
var cells = _a.cells, data = _a.data, _d = _a.sortBy, sortBy = _d === void 0 ? [{ keyName: 'name', ascending: true }] : _d, _e = _a.skeletonRows, skeletonRows = _e === void 0 ? 6 : _e, loading = _a.loading, className = _a.className, headerClassName = _a.headerClassName, rowClassName = _a.rowClassName, withStickyHeader = _a.withStickyHeader, withIntersectionObserver = _a.withIntersectionObserver, minWidth = _a.minWidth, onSortCallback = _a.onSortCallback;
|
|
2869
2870
|
var _f = useState(!is(Function, onSortCallback) ? sortBy : []), sortByLocalState = _f[0], setSortByLocalState = _f[1];
|
|
2870
2871
|
var noData = !loading && isArrayWithContent(data) === false;
|
|
2871
2872
|
var getTableHeaderCell = function (cell) {
|
|
@@ -2937,7 +2938,7 @@ var SortableTable = function (_a) {
|
|
|
2937
2938
|
}
|
|
2938
2939
|
return null;
|
|
2939
2940
|
};
|
|
2940
|
-
return (jsxs("div", __assign({ className: s$2('container', (_b = {}, _b[className] = className, _b)) }, { children: [loading ? jsx(SolidSpinner, { className: s$2('spinner'), type: HierarchyTypes.PRIMARY, size: SizeTypes.MEDIUM }) : null, jsxs("table", __assign({ className: s$2('table', { table_loading: loading }) }, { children: [jsx("thead", { children: jsx("tr", __assign({ className: s$2('row', (_c = { row_header: true, row_stickyHeader: withStickyHeader }, _c[headerClassName] = headerClassName, _c)) }, { children: cells.map(function (cell, i) { return (jsx("th", __assign({ className: s$2('cell', {
|
|
2941
|
+
return (jsxs("div", __assign({ className: s$2('container', (_b = {}, _b[className] = className, _b.container_withMinWidth = !!minWidth, _b)) }, { children: [loading ? jsx(SolidSpinner, { className: s$2('spinner'), type: HierarchyTypes.PRIMARY, size: SizeTypes.MEDIUM }) : null, jsxs("table", __assign({ className: s$2('table', { table_loading: loading }), style: { minWidth: minWidth || 'auto' } }, { children: [jsx("thead", { children: jsx("tr", __assign({ className: s$2('row', (_c = { row_header: true, row_stickyHeader: withStickyHeader }, _c[headerClassName] = headerClassName, _c)) }, { children: cells.map(function (cell, i) { return (jsx("th", __assign({ className: s$2('cell', {
|
|
2941
2942
|
cell_alignRight: cell.alignRight,
|
|
2942
2943
|
cell_alignCenter: cell.alignCenter,
|
|
2943
2944
|
cell_header: true
|