@kubit-ui-web/react-components 1.8.1 → 1.8.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.
- package/dist/cjs/components/checkboxWithLabel/checkboxWithLabelControlled.js +3 -0
- package/dist/cjs/components/checkboxWithLabel/checkboxWithLabelControlled.js.map +1 -1
- package/dist/cjs/components/checkboxWithLabel/checkboxWithLabelUncontrolled.js +3 -0
- package/dist/cjs/components/checkboxWithLabel/checkboxWithLabelUncontrolled.js.map +1 -1
- package/dist/cjs/components/confirmationMessage/confirmationMessage.js +3 -0
- package/dist/cjs/components/confirmationMessage/confirmationMessage.js.map +1 -1
- package/dist/cjs/components/cssAnimation/cssAnimation.js +2 -1
- package/dist/cjs/components/cssAnimation/cssAnimation.js.map +1 -1
- package/dist/cjs/components/dataTable/dataTable.js +6 -2
- package/dist/cjs/components/dataTable/dataTable.js.map +1 -1
- package/dist/cjs/components/dataTable/dataTableStandAlone.js +2 -2
- package/dist/cjs/components/dataTable/dataTableStandAlone.js.map +1 -1
- package/dist/cjs/components/dataTable/hooks/index.js +3 -1
- package/dist/cjs/components/dataTable/hooks/index.js.map +1 -1
- package/dist/cjs/components/dataTable/hooks/useDataTableStickyDividers.js +91 -0
- package/dist/cjs/components/dataTable/hooks/useDataTableStickyDividers.js.map +1 -0
- package/dist/cjs/components/dataTable/hooks/useDataTableStickyLeftColumns.js +74 -0
- package/dist/cjs/components/dataTable/hooks/useDataTableStickyLeftColumns.js.map +1 -0
- package/dist/cjs/components/dataTable/hooks/useDataTableStickyRightColumns.js +82 -0
- package/dist/cjs/components/dataTable/hooks/useDataTableStickyRightColumns.js.map +1 -0
- package/dist/cjs/components/elementOrIcon/elementOrIcon.js +2 -3
- package/dist/cjs/components/elementOrIcon/elementOrIcon.js.map +1 -1
- package/dist/cjs/components/elementOrIllustration/elementOrIllustration.js +0 -1
- package/dist/cjs/components/elementOrIllustration/elementOrIllustration.js.map +1 -1
- package/dist/cjs/components/emptyState/emptyState.js +3 -0
- package/dist/cjs/components/emptyState/emptyState.js.map +1 -1
- package/dist/cjs/components/footer/components/footerSection.js +3 -3
- package/dist/cjs/components/footer/components/footerSection.js.map +1 -1
- package/dist/cjs/components/footer/footer.js +3 -0
- package/dist/cjs/components/footer/footer.js.map +1 -1
- package/dist/cjs/components/footer/footer.styled.js +31 -32
- package/dist/cjs/components/footer/footer.styled.js.map +1 -1
- package/dist/cjs/components/footer/footerStandAlone.js +42 -23
- package/dist/cjs/components/footer/footerStandAlone.js.map +1 -1
- package/dist/cjs/components/footer/utils/getOrderConfiguration.js +22 -0
- package/dist/cjs/components/footer/utils/getOrderConfiguration.js.map +1 -0
- package/dist/cjs/components/header/header.js +3 -0
- package/dist/cjs/components/header/header.js.map +1 -1
- package/dist/cjs/components/headerStructure/headerStructure.js +3 -0
- package/dist/cjs/components/headerStructure/headerStructure.js.map +1 -1
- package/dist/cjs/components/icon/icon.js +1 -1
- package/dist/cjs/components/icon/icon.js.map +1 -1
- package/dist/cjs/components/icon/iconHost.js +7 -0
- package/dist/cjs/components/icon/iconHost.js.map +1 -1
- package/dist/cjs/components/icon/iconStandAlone.js +5 -6
- package/dist/cjs/components/icon/iconStandAlone.js.map +1 -1
- package/dist/cjs/components/index.js +25 -19
- package/dist/cjs/components/index.js.map +1 -1
- package/dist/cjs/components/inputDate/hooks/useInputDate.js +0 -6
- package/dist/cjs/components/inputDate/hooks/useInputDate.js.map +1 -1
- package/dist/cjs/components/inputDate/inputDate.js +9 -3
- package/dist/cjs/components/inputDate/inputDate.js.map +1 -1
- package/dist/cjs/components/inputDate/inputDateStandAlone.js +1 -1
- package/dist/cjs/components/inputDate/inputDateStandAlone.js.map +1 -1
- package/dist/cjs/components/lineSeparator/lineSeparator.js.map +1 -1
- package/dist/cjs/components/listOptions/listOptionsStandAlone.js +3 -1
- package/dist/cjs/components/listOptions/listOptionsStandAlone.js.map +1 -1
- package/dist/cjs/components/loader/loader.js +10 -0
- package/dist/cjs/components/loader/loader.js.map +1 -1
- package/dist/cjs/components/loadingState/loadingState.js +3 -0
- package/dist/cjs/components/loadingState/loadingState.js.map +1 -1
- package/dist/cjs/components/mediaProgressBar/mediaProgressBar.styled.js +2 -0
- package/dist/cjs/components/mediaProgressBar/mediaProgressBar.styled.js.map +1 -1
- package/dist/cjs/components/oliveMenu/oliveMenuStandAlone.js +1 -1
- package/dist/cjs/components/oliveMenu/oliveMenuStandAlone.js.map +1 -1
- package/dist/cjs/components/oliveMenu/utils/getAriaControls.js +1 -1
- package/dist/cjs/components/oliveMenu/utils/getAriaControls.js.map +1 -1
- package/dist/cjs/components/operativeLayout/operativeLayout.js +3 -0
- package/dist/cjs/components/operativeLayout/operativeLayout.js.map +1 -1
- package/dist/cjs/components/pill/pill.styled.js +7 -1
- package/dist/cjs/components/pill/pill.styled.js.map +1 -1
- package/dist/cjs/components/pill/pillStandAlone.js +2 -1
- package/dist/cjs/components/pill/pillStandAlone.js.map +1 -1
- package/dist/cjs/components/pillSelector/pillSelectorStandAlone.js +4 -2
- package/dist/cjs/components/pillSelector/pillSelectorStandAlone.js.map +1 -1
- package/dist/cjs/components/portal/portal.js +1 -0
- package/dist/cjs/components/portal/portal.js.map +1 -1
- package/dist/cjs/components/snackbar/snackbarStandAlone.js +5 -2
- package/dist/cjs/components/snackbar/snackbarStandAlone.js.map +1 -1
- package/dist/cjs/components/tableCell/tableCell.styled.js +1 -1
- package/dist/cjs/components/tableV2/hooks/index.js +2 -1
- package/dist/cjs/components/tableV2/hooks/index.js.map +1 -1
- package/dist/cjs/components/tableV2/hooks/useTableStickyLeftColumns.js +72 -0
- package/dist/cjs/components/tableV2/hooks/useTableStickyLeftColumns.js.map +1 -0
- package/dist/cjs/components/tableV2/hooks/useTableStickyRightColumns.js +80 -0
- package/dist/cjs/components/tableV2/hooks/useTableStickyRightColumns.js.map +1 -0
- package/dist/cjs/components/tableV2/table.js +5 -3
- package/dist/cjs/components/tableV2/table.js.map +1 -1
- package/dist/cjs/components/text/textStandAlone.js +1 -1
- package/dist/cjs/components/text/textStandAlone.js.map +1 -1
- package/dist/cjs/components/textCount/textCount.js +1 -0
- package/dist/cjs/components/textCount/textCount.js.map +1 -1
- package/dist/cjs/components/thirdPartyAnimation/thirdPartyAnimation.js +7 -0
- package/dist/cjs/components/thirdPartyAnimation/thirdPartyAnimation.js.map +1 -1
- package/dist/cjs/components/toggleWithLabel/toggleWithLabelControlled.js +3 -0
- package/dist/cjs/components/toggleWithLabel/toggleWithLabelControlled.js.map +1 -1
- package/dist/cjs/components/toggleWithLabel/toggleWithLabelUncontrolled.js +3 -0
- package/dist/cjs/components/toggleWithLabel/toggleWithLabelUncontrolled.js.map +1 -1
- package/dist/esm/components/checkboxWithLabel/checkboxWithLabelControlled.d.ts +3 -0
- package/dist/esm/components/checkboxWithLabel/checkboxWithLabelControlled.js +3 -0
- package/dist/esm/components/checkboxWithLabel/checkboxWithLabelControlled.js.map +1 -1
- package/dist/esm/components/checkboxWithLabel/checkboxWithLabelUncontrolled.d.ts +3 -0
- package/dist/esm/components/checkboxWithLabel/checkboxWithLabelUncontrolled.js +3 -0
- package/dist/esm/components/checkboxWithLabel/checkboxWithLabelUncontrolled.js.map +1 -1
- package/dist/esm/components/confirmationMessage/confirmationMessage.d.ts +3 -0
- package/dist/esm/components/confirmationMessage/confirmationMessage.js +3 -0
- package/dist/esm/components/confirmationMessage/confirmationMessage.js.map +1 -1
- package/dist/esm/components/cssAnimation/cssAnimation.d.ts +2 -1
- package/dist/esm/components/cssAnimation/cssAnimation.js +2 -1
- package/dist/esm/components/cssAnimation/cssAnimation.js.map +1 -1
- package/dist/esm/components/dataTable/dataTable.js +7 -3
- package/dist/esm/components/dataTable/dataTable.js.map +1 -1
- package/dist/esm/components/dataTable/dataTableStandAlone.js +2 -2
- package/dist/esm/components/dataTable/dataTableStandAlone.js.map +1 -1
- package/dist/esm/components/dataTable/hooks/index.d.ts +3 -1
- package/dist/esm/components/dataTable/hooks/index.js +3 -1
- package/dist/esm/components/dataTable/hooks/index.js.map +1 -1
- package/dist/esm/components/dataTable/hooks/useDataTableStickyDividers.d.ts +7 -0
- package/dist/esm/components/dataTable/hooks/useDataTableStickyDividers.js +64 -0
- package/dist/esm/components/dataTable/hooks/useDataTableStickyDividers.js.map +1 -0
- package/dist/esm/components/dataTable/hooks/useDataTableStickyLeftColumns.d.ts +7 -0
- package/dist/esm/components/dataTable/hooks/useDataTableStickyLeftColumns.js +47 -0
- package/dist/esm/components/dataTable/hooks/useDataTableStickyLeftColumns.js.map +1 -0
- package/dist/esm/components/dataTable/hooks/useDataTableStickyRightColumns.d.ts +7 -0
- package/dist/esm/components/dataTable/hooks/useDataTableStickyRightColumns.js +55 -0
- package/dist/esm/components/dataTable/hooks/useDataTableStickyRightColumns.js.map +1 -0
- package/dist/esm/components/dataTable/types/dataTable.d.ts +4 -1
- package/dist/esm/components/elementOrIcon/elementOrIcon.d.ts +2 -3
- package/dist/esm/components/elementOrIcon/elementOrIcon.js +2 -3
- package/dist/esm/components/elementOrIcon/elementOrIcon.js.map +1 -1
- package/dist/esm/components/elementOrIllustration/elementOrIllustration.d.ts +0 -1
- package/dist/esm/components/elementOrIllustration/elementOrIllustration.js +0 -1
- package/dist/esm/components/elementOrIllustration/elementOrIllustration.js.map +1 -1
- package/dist/esm/components/emptyState/emptyState.d.ts +3 -0
- package/dist/esm/components/emptyState/emptyState.js +3 -0
- package/dist/esm/components/emptyState/emptyState.js.map +1 -1
- package/dist/esm/components/footer/components/footerSection.d.ts +9 -2
- package/dist/esm/components/footer/components/footerSection.js +3 -3
- package/dist/esm/components/footer/components/footerSection.js.map +1 -1
- package/dist/esm/components/footer/footer.d.ts +3 -0
- package/dist/esm/components/footer/footer.js +3 -0
- package/dist/esm/components/footer/footer.js.map +1 -1
- package/dist/esm/components/footer/footer.styled.d.ts +7 -3
- package/dist/esm/components/footer/footer.styled.js +30 -31
- package/dist/esm/components/footer/footer.styled.js.map +1 -1
- package/dist/esm/components/footer/footerStandAlone.js +36 -17
- package/dist/esm/components/footer/footerStandAlone.js.map +1 -1
- package/dist/esm/components/footer/types/footer.d.ts +4 -3
- package/dist/esm/components/footer/utils/getOrderConfiguration.d.ts +9 -0
- package/dist/esm/components/footer/utils/getOrderConfiguration.js +18 -0
- package/dist/esm/components/footer/utils/getOrderConfiguration.js.map +1 -0
- package/dist/esm/components/header/header.d.ts +3 -0
- package/dist/esm/components/header/header.js +3 -0
- package/dist/esm/components/header/header.js.map +1 -1
- package/dist/esm/components/headerStructure/headerStructure.d.ts +3 -0
- package/dist/esm/components/headerStructure/headerStructure.js +3 -0
- package/dist/esm/components/headerStructure/headerStructure.js.map +1 -1
- package/dist/esm/components/icon/icon.js +1 -1
- package/dist/esm/components/icon/icon.js.map +1 -1
- package/dist/esm/components/icon/iconHost.d.ts +7 -0
- package/dist/esm/components/icon/iconHost.js +7 -0
- package/dist/esm/components/icon/iconHost.js.map +1 -1
- package/dist/esm/components/icon/iconStandAlone.js +5 -6
- package/dist/esm/components/icon/iconStandAlone.js.map +1 -1
- package/dist/esm/components/icon/types/icon.d.ts +2 -0
- package/dist/esm/components/index.d.ts +25 -19
- package/dist/esm/components/index.js +25 -19
- package/dist/esm/components/index.js.map +1 -1
- package/dist/esm/components/inputDate/hooks/useInputDate.d.ts +0 -1
- package/dist/esm/components/inputDate/hooks/useInputDate.js +0 -6
- package/dist/esm/components/inputDate/hooks/useInputDate.js.map +1 -1
- package/dist/esm/components/inputDate/inputDate.js +9 -3
- package/dist/esm/components/inputDate/inputDate.js.map +1 -1
- package/dist/esm/components/inputDate/inputDateStandAlone.js +1 -1
- package/dist/esm/components/inputDate/inputDateStandAlone.js.map +1 -1
- package/dist/esm/components/lineSeparator/lineSeparator.d.ts +2 -1
- package/dist/esm/components/lineSeparator/lineSeparator.js +2 -1
- package/dist/esm/components/lineSeparator/lineSeparator.js.map +1 -1
- package/dist/esm/components/listOptions/listOptionsStandAlone.js +3 -1
- package/dist/esm/components/listOptions/listOptionsStandAlone.js.map +1 -1
- package/dist/esm/components/loader/loader.d.ts +5 -4
- package/dist/esm/components/loader/loader.js +3 -2
- package/dist/esm/components/loader/loader.js.map +1 -1
- package/dist/esm/components/loadingState/loadingState.d.ts +3 -0
- package/dist/esm/components/loadingState/loadingState.js +3 -0
- package/dist/esm/components/loadingState/loadingState.js.map +1 -1
- package/dist/esm/components/mediaProgressBar/mediaProgressBar.styled.js +2 -0
- package/dist/esm/components/mediaProgressBar/mediaProgressBar.styled.js.map +1 -1
- package/dist/esm/components/oliveMenu/oliveMenuStandAlone.js +1 -1
- package/dist/esm/components/oliveMenu/oliveMenuStandAlone.js.map +1 -1
- package/dist/esm/components/oliveMenu/utils/getAriaControls.js +1 -1
- package/dist/esm/components/oliveMenu/utils/getAriaControls.js.map +1 -1
- package/dist/esm/components/operativeLayout/operativeLayout.d.ts +3 -0
- package/dist/esm/components/operativeLayout/operativeLayout.js +3 -0
- package/dist/esm/components/operativeLayout/operativeLayout.js.map +1 -1
- package/dist/esm/components/pill/pill.styled.d.ts +2 -0
- package/dist/esm/components/pill/pill.styled.js +6 -0
- package/dist/esm/components/pill/pill.styled.js.map +1 -1
- package/dist/esm/components/pill/pillStandAlone.js +3 -2
- package/dist/esm/components/pill/pillStandAlone.js.map +1 -1
- package/dist/esm/components/pill/types/pill.d.ts +5 -0
- package/dist/esm/components/pill/types/pillTheme.d.ts +3 -0
- package/dist/esm/components/pillSelector/pillSelectorStandAlone.js +4 -2
- package/dist/esm/components/pillSelector/pillSelectorStandAlone.js.map +1 -1
- package/dist/esm/components/pillSelector/types/pillSelector.d.ts +8 -1
- package/dist/esm/components/portal/portal.d.ts +1 -0
- package/dist/esm/components/portal/portal.js +1 -0
- package/dist/esm/components/portal/portal.js.map +1 -1
- package/dist/esm/components/snackbar/snackbarStandAlone.js +5 -2
- package/dist/esm/components/snackbar/snackbarStandAlone.js.map +1 -1
- package/dist/esm/components/tableCell/tableCell.styled.js +1 -1
- package/dist/esm/components/tableCell/types/tableCell.d.ts +4 -1
- package/dist/esm/components/tableV2/hooks/index.d.ts +2 -1
- package/dist/esm/components/tableV2/hooks/index.js +2 -1
- package/dist/esm/components/tableV2/hooks/index.js.map +1 -1
- package/dist/esm/components/tableV2/hooks/useTableStickyLeftColumns.d.ts +8 -0
- package/dist/esm/components/tableV2/hooks/useTableStickyLeftColumns.js +45 -0
- package/dist/esm/components/tableV2/hooks/useTableStickyLeftColumns.js.map +1 -0
- package/dist/esm/components/tableV2/hooks/useTableStickyRightColumns.d.ts +8 -0
- package/dist/esm/components/tableV2/hooks/useTableStickyRightColumns.js +53 -0
- package/dist/esm/components/tableV2/hooks/useTableStickyRightColumns.js.map +1 -0
- package/dist/esm/components/tableV2/table.js +6 -4
- package/dist/esm/components/tableV2/table.js.map +1 -1
- package/dist/esm/components/tableV2/types/table.d.ts +1 -0
- package/dist/esm/components/text/textStandAlone.js +1 -1
- package/dist/esm/components/text/textStandAlone.js.map +1 -1
- package/dist/esm/components/textCount/textCount.d.ts +1 -0
- package/dist/esm/components/textCount/textCount.js +1 -0
- package/dist/esm/components/textCount/textCount.js.map +1 -1
- package/dist/esm/components/thirdPartyAnimation/thirdPartyAnimation.d.ts +6 -5
- package/dist/esm/components/thirdPartyAnimation/thirdPartyAnimation.js +4 -3
- package/dist/esm/components/thirdPartyAnimation/thirdPartyAnimation.js.map +1 -1
- package/dist/esm/components/toggleWithLabel/toggleWithLabelControlled.d.ts +3 -0
- package/dist/esm/components/toggleWithLabel/toggleWithLabelControlled.js +3 -0
- package/dist/esm/components/toggleWithLabel/toggleWithLabelControlled.js.map +1 -1
- package/dist/esm/components/toggleWithLabel/toggleWithLabelUncontrolled.d.ts +3 -0
- package/dist/esm/components/toggleWithLabel/toggleWithLabelUncontrolled.js +3 -0
- package/dist/esm/components/toggleWithLabel/toggleWithLabelUncontrolled.js.map +1 -1
- package/package.json +5 -5
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
type UseDataTableStickyRightColumnsParamsType = {
|
|
3
|
+
ref: React.RefObject<HTMLDivElement>;
|
|
4
|
+
};
|
|
5
|
+
type UseDataTableStickyRightColumnsReturnType = object;
|
|
6
|
+
export declare const useDataTableStickyRightColumns: ({ ref, }: UseDataTableStickyRightColumnsParamsType) => UseDataTableStickyRightColumnsReturnType;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { hasHorizontalScroll, hasVerticalScroll } from '../../../utils';
|
|
3
|
+
export const useDataTableStickyRightColumns = ({ ref, }) => {
|
|
4
|
+
React.useEffect(() => {
|
|
5
|
+
const scrollableContainer = ref.current?.querySelector('[data-datatable-scrollable-container]');
|
|
6
|
+
const rightBoxShadowContainer = ref.current?.querySelector('[data-datatable-right-shadow]');
|
|
7
|
+
let resizeObserver;
|
|
8
|
+
if (scrollableContainer instanceof HTMLElement) {
|
|
9
|
+
const handleElementResize = (element) => {
|
|
10
|
+
const _hasHorizontalScroll = hasHorizontalScroll(element);
|
|
11
|
+
// For each row, set the right position of its sticky cells
|
|
12
|
+
const rows = element.querySelectorAll('[data-table-row]');
|
|
13
|
+
// used to calc rightBoxShadowContainer position
|
|
14
|
+
let maxStickyRightWidth = 0;
|
|
15
|
+
rows.forEach(row => {
|
|
16
|
+
if (row instanceof HTMLElement) {
|
|
17
|
+
// Retrieve all the cell with sticky attribute
|
|
18
|
+
const stickyCells = Array.from(
|
|
19
|
+
// deprecated - delete [data-sticky="true"] after boolean is deleted from the sticky type
|
|
20
|
+
row.querySelectorAll('[data-sticky="true"], [data-sticky="right"]')).reverse();
|
|
21
|
+
let right = 0;
|
|
22
|
+
stickyCells.forEach(stickyCell => {
|
|
23
|
+
if (stickyCell instanceof HTMLElement) {
|
|
24
|
+
stickyCell.style.right = _hasHorizontalScroll ? `${right}px` : 'auto';
|
|
25
|
+
right += stickyCell.offsetWidth;
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
maxStickyRightWidth = Math.max(maxStickyRightWidth, right);
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
// Once the sticky position have been added, set the position of the rightBoxShadowContainer
|
|
32
|
+
// This position should be the same as the max width of the sticky cells
|
|
33
|
+
if (rightBoxShadowContainer instanceof HTMLElement) {
|
|
34
|
+
// If vertical scroll, add scroll bar size to maxStickyRightWidth
|
|
35
|
+
const _hasVerticalScroll = hasVerticalScroll(element);
|
|
36
|
+
if (_hasVerticalScroll) {
|
|
37
|
+
const scrollBarSize = element.offsetWidth - element.clientWidth;
|
|
38
|
+
maxStickyRightWidth += scrollBarSize;
|
|
39
|
+
}
|
|
40
|
+
rightBoxShadowContainer.style.right = `${maxStickyRightWidth}px`;
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
handleElementResize(scrollableContainer);
|
|
44
|
+
resizeObserver = new ResizeObserver(() => {
|
|
45
|
+
handleElementResize(scrollableContainer);
|
|
46
|
+
});
|
|
47
|
+
resizeObserver.observe(scrollableContainer);
|
|
48
|
+
}
|
|
49
|
+
return () => {
|
|
50
|
+
resizeObserver?.disconnect();
|
|
51
|
+
};
|
|
52
|
+
}, []);
|
|
53
|
+
return {};
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=useDataTableStickyRightColumns.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDataTableStickyRightColumns.js","sourceRoot":"","sources":["../../../../../src/components/dataTable/hooks/useDataTableStickyRightColumns.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAQjE,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,EAC7C,GAAG,GACsC,EAA4C,EAAE;IACvF,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,MAAM,mBAAmB,GAAG,GAAG,CAAC,OAAO,EAAE,aAAa,CAAC,uCAAuC,CAAC,CAAC;QAChG,MAAM,uBAAu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AAC,CAAC;oBACtD,IAAI,kBAAkB,EAAE,CAAC;wBACvB,MAAM,aAAa,GAAG,OAAO,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;wBAChE,mBAAmB,IAAI,aAAa,CAAC;oBACvC,CAAC;oBACD,uBAAuB,CAAC,KAAK,CAAC,KAAK,GAAG,GAAG,mBAAmB,IAAI,CAAC;gBACnE,CAAC;YACH,CAAC,CAAC;YACF,mBAAmB,CAAC,mBAAmB,CAAC,CAAC;YACzC,cAAc,GAAG,IAAI,cAAc,CAAC,GAAG,EAAE;gBACvC,mBAAmB,CAAC,mBAAmB,CAAC,CAAC;YAC3C,CAAC,CAAC,CAAC;YACH,cAAc,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC;QAC9C,CAAC;QACD,OAAO,GAAG,EAAE;YACV,cAAc,EAAE,UAAU,EAAE,CAAC;QAC/B,CAAC,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,EAAE,CAAC;AACZ,CAAC,CAAC"}
|
|
@@ -38,7 +38,10 @@ export type DataTableColumnType = {
|
|
|
38
38
|
minWidth?: string;
|
|
39
39
|
maxWidth?: string;
|
|
40
40
|
hidden?: boolean;
|
|
41
|
-
|
|
41
|
+
/**
|
|
42
|
+
* @remarks Avoid using boolean values for `sticky`. Prefer specifying 'left' or 'right' to define the sticky side.
|
|
43
|
+
*/
|
|
44
|
+
sticky?: boolean | 'left' | 'right';
|
|
42
45
|
textAlign?: string;
|
|
43
46
|
valueTextAlign?: string;
|
|
44
47
|
valueGetter?: (value: DataTableCellValueType, row: DataTableRowType) => DataTableCellValueType;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { IElementOrIcon } from './types';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* It can be used to display an icon or a component.
|
|
4
|
+
* ElementOrIcon component is a component that can be used to display either an element or an icon.
|
|
5
|
+
* It offers flexibility in rendering either icons or more complex components within a given context.
|
|
7
6
|
* @param {IElementOrIcon} props
|
|
8
7
|
* @returns {JSX.Element}
|
|
9
8
|
* @constructor
|
|
@@ -15,9 +15,8 @@ const ElementOrIconComponent = ({ basic = false, ...props }, ref) => {
|
|
|
15
15
|
return _jsx(_Fragment, { children: element });
|
|
16
16
|
};
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* It can be used to display an icon or a component.
|
|
18
|
+
* ElementOrIcon component is a component that can be used to display either an element or an icon.
|
|
19
|
+
* It offers flexibility in rendering either icons or more complex components within a given context.
|
|
21
20
|
* @param {IElementOrIcon} props
|
|
22
21
|
* @returns {JSX.Element}
|
|
23
22
|
* @constructor
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"elementOrIcon.js","sourceRoot":"","sources":["../../../../src/components/elementOrIcon/elementOrIcon.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,QAAQ,IAAI,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAGpD,MAAM,sBAAsB,GAAG,CAC7B,EAAE,KAAK,GAAG,KAAK,EAAE,GAAG,KAAK,EAAkB,EAC3C,GAAwC,EAC3B,EAAE;IACf,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IAEzC,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO,mBAAK,CAAC;IACf,CAAC;IAED,oBAAoB;IACpB,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;QAChC,OAAO,KAAK,CAAC,CAAC,CAAC,CACb,KAAC,SAAS,OAAK,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,GAAI,CACjD,CAAC,CAAC,CAAC,CACF,KAAC,IAAI,OAAK,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,GAAI,CAC5C,CAAC;IACJ,CAAC;IACD,yBAAyB;IACzB,OAAO,4BAAG,OAAO,GAAI,CAAC;AACxB,CAAC,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"elementOrIcon.js","sourceRoot":"","sources":["../../../../src/components/elementOrIcon/elementOrIcon.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,QAAQ,IAAI,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAGpD,MAAM,sBAAsB,GAAG,CAC7B,EAAE,KAAK,GAAG,KAAK,EAAE,GAAG,KAAK,EAAkB,EAC3C,GAAwC,EAC3B,EAAE;IACf,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IAEzC,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO,mBAAK,CAAC;IACf,CAAC;IAED,oBAAoB;IACpB,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;QAChC,OAAO,KAAK,CAAC,CAAC,CAAC,CACb,KAAC,SAAS,OAAK,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,GAAI,CACjD,CAAC,CAAC,CAAC,CACF,KAAC,IAAI,OAAK,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,GAAI,CAC5C,CAAC;IACJ,CAAC;IACD,yBAAyB;IACzB,OAAO,4BAAG,OAAO,GAAI,CAAC;AACxB,CAAC,CAAC;AAEF;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,CAAC,UAAU,CAAC,sBAAsB,CAAC,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { IElementOrillustration } from './types';
|
|
3
3
|
/**
|
|
4
|
-
* @description
|
|
5
4
|
* ElementOrIllustration component is a component that can be used to display an element or an illustration.
|
|
6
5
|
* It can be used to display an illustration or a component.
|
|
7
6
|
* @param {IElementOrillustration} props
|
|
@@ -14,7 +14,6 @@ const ElementOrIllustrationComponent = (props, ref) => {
|
|
|
14
14
|
return _jsx(_Fragment, { children: element });
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
|
-
* @description
|
|
18
17
|
* ElementOrIllustration component is a component that can be used to display an element or an illustration.
|
|
19
18
|
* It can be used to display an illustration or a component.
|
|
20
19
|
* @param {IElementOrillustration} props
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"elementOrIllustration.js","sourceRoot":"","sources":["../../../../src/components/elementOrIllustration/elementOrIllustration.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/C,MAAM,8BAA8B,GAAG,CACrC,KAA6B,EAC7B,GAA4D,EAC/C,EAAE;IACf,MAAM,EAAE,YAAY,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IAEjD,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO,mBAAK,CAAC;IACf,CAAC;IAED,oBAAoB;IACpB,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;QAChC,OAAO,KAAC,YAAY,OAAK,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,GAAI,CAAC;IACrE,CAAC;IACD,yBAAyB;IACzB,OAAO,4BAAG,OAAO,GAAI,CAAC;AACxB,CAAC,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"elementOrIllustration.js","sourceRoot":"","sources":["../../../../src/components/elementOrIllustration/elementOrIllustration.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/C,MAAM,8BAA8B,GAAG,CACrC,KAA6B,EAC7B,GAA4D,EAC/C,EAAE;IACf,MAAM,EAAE,YAAY,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IAEjD,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO,mBAAK,CAAC;IACf,CAAC;IAED,oBAAoB;IACpB,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;QAChC,OAAO,KAAC,YAAY,OAAK,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,GAAI,CAAC;IACrE,CAAC;IACD,yBAAyB;IACzB,OAAO,4BAAG,OAAO,GAAI,CAAC;AACxB,CAAC,CAAC;AAEF;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,KAAK,CAAC,UAAU,CAAC,8BAA8B,CAAC,CAAC"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { IEmptyState } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated This component has been deprecated and will be removed in the next MAJOR release.
|
|
5
|
+
*/
|
|
3
6
|
declare const EmptyState: <V extends string | unknown>(props: IEmptyState<V> & {
|
|
4
7
|
ref?: React.ForwardedRef<HTMLDivElement> | undefined | null;
|
|
5
8
|
}) => JSX.Element;
|
|
@@ -10,6 +10,9 @@ const EmptyStateComponent = React.forwardRef(({ ctv, ...props }, ref) => {
|
|
|
10
10
|
});
|
|
11
11
|
EmptyStateComponent.displayName = 'EmptyStateComponent';
|
|
12
12
|
const EmptyStateBoundary = (props, ref) => (_jsx(ErrorBoundary, { fallBackComponent: _jsx(FallbackComponent, { children: _jsx(EmptyStateStandAlone, { ...props, ref: ref }) }), children: _jsx(EmptyStateComponent, { ...props, ref: ref }) }));
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated This component has been deprecated and will be removed in the next MAJOR release.
|
|
15
|
+
*/
|
|
13
16
|
const EmptyState = React.forwardRef(EmptyStateBoundary);
|
|
14
17
|
export { EmptyState };
|
|
15
18
|
//# sourceMappingURL=emptyState.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emptyState.js","sourceRoot":"","sources":["../../../../src/components/emptyState/emptyState.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAI9D,MAAM,mBAAmB,GAAG,KAAK,CAAC,UAAU,CAC1C,CACE,EAAE,GAAG,EAAE,GAAG,KAAK,EAAkB,EACjC,GAA0D,EAC7C,EAAE;IACf,MAAM,MAAM,GAAmC,SAAS,CACtD,WAAW,CAAC,WAAW,EACvB,KAAK,CAAC,OAAO,EACb,GAAG,CACJ,CAAC;IAEF,OAAO,KAAC,oBAAoB,OAAK,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,GAAI,CAAC;AACtF,CAAC,CACF,CAAC;AACF,mBAAmB,CAAC,WAAW,GAAG,qBAAqB,CAAC;AAExD,MAAM,kBAAkB,GAAG,CACzB,KAAqB,EACrB,GAA0D,EAC7C,EAAE,CAAC,CAChB,KAAC,aAAa,IACZ,iBAAiB,EACf,KAAC,iBAAiB,cAChB,KAAC,oBAAoB,OAAM,KAA0C,EAAE,GAAG,EAAE,GAAG,GAAI,GACjE,YAGtB,KAAC,mBAAmB,OAAK,KAAK,EAAE,GAAG,EAAE,GAAG,GAAI,GAC9B,CACjB,CAAC;AAEF,MAAM,UAAU,GAAG,KAAK,CA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AU,EAAE,CAAC"}
|
|
@@ -2,9 +2,16 @@ import * as React from 'react';
|
|
|
2
2
|
import { FooterPropsStylesType } from '../types';
|
|
3
3
|
interface IFooterSection {
|
|
4
4
|
styles: FooterPropsStylesType;
|
|
5
|
-
|
|
5
|
+
setVertical?: boolean;
|
|
6
6
|
position: string;
|
|
7
|
-
|
|
7
|
+
orderConfiguration: {
|
|
8
|
+
flexReverse?: boolean;
|
|
9
|
+
reverse?: boolean;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated
|
|
13
|
+
*/
|
|
14
|
+
alignItems?: string;
|
|
8
15
|
children: React.ReactNode[];
|
|
9
16
|
}
|
|
10
17
|
export declare const FooterSection: (props: IFooterSection) => JSX.Element | null;
|
|
@@ -7,12 +7,12 @@ export const FooterSection = (props) => {
|
|
|
7
7
|
}
|
|
8
8
|
const getElementJustify = (position) => {
|
|
9
9
|
const styles = {
|
|
10
|
-
[FooterPositionType.LEFT]: props.
|
|
10
|
+
[FooterPositionType.LEFT]: props.orderConfiguration.reverse ? 'flex-end' : 'flex-start',
|
|
11
11
|
[FooterPositionType.CENTER]: 'center',
|
|
12
|
-
[FooterPositionType.RIGHT]: props.
|
|
12
|
+
[FooterPositionType.RIGHT]: props.orderConfiguration.reverse ? 'flex-start' : 'flex-end',
|
|
13
13
|
};
|
|
14
14
|
return styles[position] || 'center';
|
|
15
15
|
};
|
|
16
|
-
return (_jsx(FooterSectionStyled, { "$
|
|
16
|
+
return (_jsx(FooterSectionStyled, { "$alignItems": props.alignItems, "$flexReverse": props.orderConfiguration.flexReverse, "$justifyContent": getElementJustify(props.position), "$setVertical": props.setVertical, "aria-hidden": !props.children.length, styles: props.styles, children: props.orderConfiguration.reverse ? props.children.reverse() : props.children }));
|
|
17
17
|
};
|
|
18
18
|
//# sourceMappingURL=footerSection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"footerSection.js","sourceRoot":"","sources":["../../../../../src/components/footer/components/footerSection.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAyB,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"footerSection.js","sourceRoot":"","sources":["../../../../../src/components/footer/components/footerSection.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAyB,MAAM,UAAU,CAAC;AAiBrE,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,KAAqB,EAAsB,EAAE;IACzE,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;QAC3B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,iBAAiB,GAAG,CAAC,QAAgB,EAAE,EAAE;QAC7C,MAAM,MAAM,GAAG;YACb,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,YAAY;YACvF,CAAC,kBAAkB,CAAC,MAAM,CAAC,EAAE,QAAQ;YACrC,CAAC,kBAAkB,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,UAAU;SACzF,CAAC;QACF,OAAO,MAAM,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC;IACtC,CAAC,CAAC;IAEF,OAAO,CACL,KAAC,mBAAmB,mBACL,KAAK,CAAC,UAAU,kBACf,KAAK,CAAC,kBAAkB,CAAC,WAAW,qBACjC,iBAAiB,CAAC,KAAK,CAAC,QAAQ,CAAC,kBACpC,KAAK,CAAC,WAAW,iBAClB,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,EACnC,MAAM,EAAE,KAAK,CAAC,MAAM,YAEnB,KAAK,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,GACzD,CACvB,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { IFooter } from './types';
|
|
3
3
|
declare const FooterBoundary: <V extends string | unknown>(props: IFooter<V>, ref: React.ForwardedRef<HTMLElement> | undefined | null) => JSX.Element;
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated This component has been deprecated and will be removed in the next MAJOR release. Will include all this on the CheckBox component
|
|
6
|
+
*/
|
|
4
7
|
declare const Footer: <V extends string | unknown>(props: React.PropsWithChildren<IFooter<V>> & {
|
|
5
8
|
ref?: React.ForwardedRef<HTMLElement> | undefined | null;
|
|
6
9
|
}) => ReturnType<typeof FooterBoundary>;
|
|
@@ -13,6 +13,9 @@ const FooterComponent = React.forwardRef(({ variant, ctv, extraCt, ...props }, r
|
|
|
13
13
|
});
|
|
14
14
|
FooterComponent.displayName = 'FooterComponent';
|
|
15
15
|
const FooterBoundary = (props, ref) => (_jsx(ErrorBoundary, { fallBackComponent: _jsx(FallbackComponent, { children: _jsx(FooterStandAlone, { ...props, ref: ref }) }), children: _jsx(FooterComponent, { ...props, ref: ref }) }));
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated This component has been deprecated and will be removed in the next MAJOR release. Will include all this on the CheckBox component
|
|
18
|
+
*/
|
|
16
19
|
const Footer = React.forwardRef(FooterBoundary);
|
|
17
20
|
export { Footer };
|
|
18
21
|
//# sourceMappingURL=footer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"footer.js","sourceRoot":"","sources":["../../../../src/components/footer/footer.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,M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AAG,EAAE,GAAG,GAAI,GACzD,YAGtB,KAAC,eAAe,OAAK,KAAK,EAAE,GAAG,EAAE,GAAG,GAAI,GAC1B,CACjB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,GAAG,KAAK,CAAC,UAAU,CAAC,cAAc,CAIR,CAAC;AAEvC,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -2,8 +2,12 @@ import { LineSeparatorLinePropsStylesType } from '../lineSeparator';
|
|
|
2
2
|
import { FooterPropsStylesType } from './types';
|
|
3
3
|
type FooterStylesType = {
|
|
4
4
|
styles: FooterPropsStylesType;
|
|
5
|
-
$
|
|
6
|
-
$
|
|
5
|
+
$setVertical?: boolean;
|
|
6
|
+
$flexReverse?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated
|
|
9
|
+
*/
|
|
10
|
+
$alignItems?: string;
|
|
7
11
|
};
|
|
8
12
|
type FooterSectionStyledType = FooterStylesType & {
|
|
9
13
|
$justifyContent: string;
|
|
@@ -11,6 +15,6 @@ type FooterSectionStyledType = FooterStylesType & {
|
|
|
11
15
|
type RootContainerStyledType = FooterStylesType & {
|
|
12
16
|
lineSeparatorLineStyles: LineSeparatorLinePropsStylesType;
|
|
13
17
|
};
|
|
14
|
-
export declare const FooterStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, RootContainerStyledType>> & string;
|
|
15
18
|
export declare const FooterSectionStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, FooterSectionStyledType>> & string;
|
|
19
|
+
export declare const FooterStyled: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, RootContainerStyledType>> & string;
|
|
16
20
|
export {};
|
|
@@ -1,49 +1,48 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
2
|
import { getStyles } from '../../utils';
|
|
3
3
|
import { LineSeparatorPositionType } from '../lineSeparator';
|
|
4
|
-
export const
|
|
5
|
-
${
|
|
6
|
-
${props => getStyles(props.styles?.rootContainer)}
|
|
4
|
+
export const FooterSectionStyled = styled.div `
|
|
5
|
+
${props => getStyles(props.styles?.contentContainer)}
|
|
7
6
|
|
|
8
7
|
display: flex;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
width: 100%;
|
|
9
|
+
${({ $justifyContent, $setVertical, $flexReverse, $alignItems, theme: { MEDIA_QUERIES: { onlyMobile, tabletAndDesktop }, }, }) => css `
|
|
10
|
+
${onlyMobile} {
|
|
11
|
+
flex-direction: ${$flexReverse ? 'column-reverse' : 'column'};
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
${tabletAndDesktop} {
|
|
15
|
+
align-items: ${$alignItems};
|
|
16
|
+
justify-content: ${$setVertical ? 'center' : $justifyContent};
|
|
17
|
+
flex-direction: ${$setVertical
|
|
18
|
+
? $flexReverse
|
|
13
19
|
? 'column-reverse'
|
|
14
20
|
: 'column'
|
|
15
|
-
: $
|
|
21
|
+
: $flexReverse
|
|
16
22
|
? 'row-reverse'
|
|
17
23
|
: 'row'};
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
flex-direction: ${$tabInverse ? 'column-reverse' : 'column'};
|
|
21
|
-
justify-content: center;
|
|
22
|
-
}
|
|
23
|
-
`};
|
|
24
|
+
}
|
|
25
|
+
`};
|
|
24
26
|
`;
|
|
25
|
-
export const
|
|
26
|
-
${
|
|
27
|
+
export const FooterStyled = styled.div `
|
|
28
|
+
${({ lineSeparatorLineStyles }) => lineSeparatorLineStyles?.buildLineStyles?.(LineSeparatorPositionType.TOP)}
|
|
29
|
+
${props => getStyles(props.styles?.rootContainer)}
|
|
27
30
|
|
|
28
31
|
display: flex;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
${
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
${({ $setVertical, $flexReverse, theme: { MEDIA_QUERIES: { onlyMobile, tabletAndDesktop }, }, }) => css `
|
|
33
|
+
${onlyMobile} {
|
|
34
|
+
flex-direction: ${$flexReverse ? 'column-reverse' : 'column'};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
${tabletAndDesktop} {
|
|
38
|
+
flex-direction: ${$setVertical
|
|
39
|
+
? $flexReverse
|
|
35
40
|
? 'column-reverse'
|
|
36
41
|
: 'column'
|
|
37
|
-
: $
|
|
42
|
+
: $flexReverse
|
|
38
43
|
? 'row-reverse'
|
|
39
44
|
: 'row'};
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
${onlyMobile} {
|
|
44
|
-
flex-direction: ${$tabInverse ? 'column-reverse' : 'column'};
|
|
45
|
-
align-items: center;
|
|
46
|
-
}
|
|
47
|
-
`};
|
|
45
|
+
}
|
|
46
|
+
`};
|
|
48
47
|
`;
|
|
49
48
|
//# sourceMappingURL=footer.styled.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"footer.styled.js","sourceRoot":"","sources":["../../../../src/components/footer/footer.styled.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,OAAO,EAAoC,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"footer.styled.js","sourceRoot":"","sources":["../../../../src/components/footer/footer.styled.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,OAAO,EAAoC,yBAAyB,EAAE,MA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AgB;QAClB,CAAC,CAAC,QAAQ;IACZ,CAAC,CAAC,YAAY;QACZ,CAAC,CAAC,aAAa;QACf,CAAC,CAAC,KAAK;;GAEd;CACF,CAAC"}
|
|
@@ -1,18 +1,36 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import * as React from 'react';
|
|
3
|
+
import { DeviceBreakpointsType } from '../../types';
|
|
3
4
|
import { pickAriaProps } from '../../utils/aria/aria';
|
|
4
5
|
// inner components
|
|
5
6
|
import { FooterSection } from './components';
|
|
6
7
|
import { FooterStyled } from './footer.styled';
|
|
7
8
|
import { ContentDirectionType, FooterMobileColumnFlow, FooterPositionType, } from './types';
|
|
9
|
+
import { getOrderConfiguration } from './utils/getOrderConfiguration';
|
|
8
10
|
// simple container tag
|
|
9
11
|
const FOOTER = 'footer';
|
|
10
|
-
const
|
|
12
|
+
const DEFAULT_SORT = {
|
|
13
|
+
column: FooterMobileColumnFlow.DEFAULT,
|
|
14
|
+
firstContent: FooterPositionType.LEFT,
|
|
15
|
+
secondContent: FooterPositionType.CENTER,
|
|
16
|
+
thirdContent: FooterPositionType.RIGHT,
|
|
17
|
+
};
|
|
18
|
+
const FooterStandAloneComponent = ({ orderInverse = [], footerMobileSortConfig = DEFAULT_SORT, ...props }, ref) => {
|
|
11
19
|
if (!props.children) {
|
|
12
20
|
return null;
|
|
13
21
|
}
|
|
14
22
|
const ariaProps = pickAriaProps(props);
|
|
15
23
|
const asFooter = props.simpleContainer ? undefined : FOOTER;
|
|
24
|
+
// START CONTENT: Remove when footerMobileSortConfig is removed
|
|
25
|
+
if (footerMobileSortConfig?.column === FooterMobileColumnFlow.REVERSE) {
|
|
26
|
+
orderInverse.push(DeviceBreakpointsType.MOBILE);
|
|
27
|
+
}
|
|
28
|
+
// END CONTENT
|
|
29
|
+
const setVertical = props.contentDirection === ContentDirectionType.VERTICAL ||
|
|
30
|
+
// START CONTENT: Remove when forceVertical is removed
|
|
31
|
+
props.forceVertical;
|
|
32
|
+
// END CONTENT
|
|
33
|
+
const orderConfiguration = getOrderConfiguration(props.tabInverse || [], orderInverse);
|
|
16
34
|
const renderChildren = (children) => {
|
|
17
35
|
const childrenArray = React.Children.toArray(children);
|
|
18
36
|
const positions = {
|
|
@@ -24,15 +42,19 @@ const FooterStandAloneComponent = ({ ...props }, ref) => {
|
|
|
24
42
|
childrenArray.forEach((child) => {
|
|
25
43
|
let position = child?.props?.['data-position'];
|
|
26
44
|
// START CONTENT: Remove when footerMobileSortConfig is removed
|
|
27
|
-
if (props.
|
|
28
|
-
|
|
29
|
-
|
|
45
|
+
if (footerMobileSortConfig && props.device === DeviceBreakpointsType.MOBILE) {
|
|
46
|
+
const { firstContent, secondContent, thirdContent } = footerMobileSortConfig;
|
|
47
|
+
if (position === firstContent) {
|
|
48
|
+
positions[FooterPositionType.LEFT].push(child);
|
|
49
|
+
return;
|
|
30
50
|
}
|
|
31
|
-
else if (
|
|
32
|
-
|
|
51
|
+
else if (position === secondContent) {
|
|
52
|
+
positions[FooterPositionType.CENTER].push(child);
|
|
53
|
+
return;
|
|
33
54
|
}
|
|
34
|
-
else if (
|
|
35
|
-
|
|
55
|
+
else if (position === thirdContent) {
|
|
56
|
+
positions[FooterPositionType.RIGHT].push(child);
|
|
57
|
+
return;
|
|
36
58
|
}
|
|
37
59
|
}
|
|
38
60
|
// END CONTENT
|
|
@@ -49,16 +71,13 @@ const FooterStandAloneComponent = ({ ...props }, ref) => {
|
|
|
49
71
|
positions[position].push(child);
|
|
50
72
|
}
|
|
51
73
|
});
|
|
52
|
-
const sections = Object.entries(positions).map(([position, children]) => (_jsx(FooterSection, {
|
|
53
|
-
|
|
74
|
+
const sections = Object.entries(positions).map(([position, children]) => (_jsx(FooterSection, { alignItems: props.alignItems, orderConfiguration: {
|
|
75
|
+
flexReverse: orderConfiguration[props.device].flexReverse,
|
|
76
|
+
reverse: orderConfiguration[props.device].reverse,
|
|
77
|
+
}, position: position, setVertical: setVertical, styles: props.styles, children: children }, position)));
|
|
78
|
+
return _jsx(_Fragment, { children: orderConfiguration[props.device].reverse ? sections.reverse() : sections });
|
|
54
79
|
};
|
|
55
|
-
|
|
56
|
-
const forceVertical = props.forceVertical || props.contentDirection === ContentDirectionType.VERTICAL;
|
|
57
|
-
// END CONTENT
|
|
58
|
-
// START CONTENT: Remove when footerMobileSortConfig is removed
|
|
59
|
-
const tabInverse = props.tabInverse || props.footerMobileSortConfig?.column === FooterMobileColumnFlow.REVERSE;
|
|
60
|
-
// END CONTENT
|
|
61
|
-
return (_jsx(FooterStyled, { ...ariaProps, ...props, ref: ref, "$forceVertical": forceVertical, "$tabInverse": tabInverse, as: asFooter, "data-testid": props.dataTestId, lineSeparatorLineStyles: props.lineSeparatorLineStyles, role: props.role, styles: props.styles, children: renderChildren(props.children) }));
|
|
80
|
+
return (_jsx(FooterStyled, { ...ariaProps, ...props, ref: ref, "$flexReverse": orderConfiguration[props.device].flexReverse, "$setVertical": setVertical, as: asFooter, "data-testid": props.dataTestId, lineSeparatorLineStyles: props.lineSeparatorLineStyles, role: props.role, styles: props.styles, children: renderChildren(props.children) }));
|
|
62
81
|
};
|
|
63
82
|
export const FooterStandAlone = React.forwardRef(FooterStandAloneComponent);
|
|
64
83
|
//# sourceMappingURL=footerStandAlone.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"footerStandAlone.js","sourceRoot":"","sources":["../../../../src/components/footer/footerStandAlone.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,mBAAmB;AACnB,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EACL,oBAAoB,EACpB,sBAAsB,EACtB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"footerStandAlone.js","sourceRoot":"","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AC,CAAC;IAEF,OAAO,CACL,KAAC,YAAY,OACP,SAAS,KACT,KAAK,EACT,GAAG,EAAE,GAAG,kBACM,kBAAkB,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,WAAW,kBAC5C,WAAW,EACzB,EAAE,EAAE,QAAQ,iBACC,KAAK,CAAC,UAAU,EAC7B,uBAAuB,EAAE,KAAK,CAAC,uBAAuB,EACtD,IAAI,EAAE,KAAK,CAAC,IAAI,EAChB,MAAM,EAAE,KAAK,CAAC,MAAM,YAEnB,cAAc,CAAC,KAAK,CAAC,QAAQ,CAAC,GAClB,CAChB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,CAAC,UAAU,CAAC,yBAAyB,CAAC,CAAC"}
|
|
@@ -25,13 +25,14 @@ export interface IFooterStandAlone extends FooterAriaAttributes {
|
|
|
25
25
|
role?: ROLES;
|
|
26
26
|
children: IPositionedElement[] | IPositionedElement;
|
|
27
27
|
dataTestId?: string;
|
|
28
|
+
contentDirection?: ContentDirectionType;
|
|
29
|
+
simpleContainer?: boolean;
|
|
28
30
|
/**
|
|
29
31
|
* @deprecated
|
|
30
32
|
*/
|
|
31
|
-
contentDirection?: ContentDirectionType;
|
|
32
|
-
simpleContainer?: boolean;
|
|
33
33
|
forceVertical?: boolean;
|
|
34
|
-
tabInverse?:
|
|
34
|
+
tabInverse?: DeviceBreakpointsType[];
|
|
35
|
+
orderInverse?: DeviceBreakpointsType[];
|
|
35
36
|
/**
|
|
36
37
|
* @deprecated
|
|
37
38
|
*/
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DeviceBreakpointsType } from '../../../types';
|
|
2
|
+
interface Configuration {
|
|
3
|
+
[key: string]: {
|
|
4
|
+
flexReverse: boolean;
|
|
5
|
+
reverse: boolean;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
export declare const getOrderConfiguration: (tabInverse: DeviceBreakpointsType[], orderInverse: DeviceBreakpointsType[]) => Configuration;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DeviceBreakpointsType } from '../../../types';
|
|
2
|
+
export const getOrderConfiguration = (tabInverse, orderInverse) => {
|
|
3
|
+
const breakpoints = [
|
|
4
|
+
DeviceBreakpointsType.MOBILE,
|
|
5
|
+
DeviceBreakpointsType.TABLET,
|
|
6
|
+
DeviceBreakpointsType.DESKTOP,
|
|
7
|
+
];
|
|
8
|
+
const configuration = {};
|
|
9
|
+
breakpoints.forEach(breakpoint => {
|
|
10
|
+
configuration[breakpoint] = {
|
|
11
|
+
flexReverse: tabInverse.includes(breakpoint),
|
|
12
|
+
reverse: (tabInverse.includes(breakpoint) && !orderInverse.includes(breakpoint)) ||
|
|
13
|
+
(orderInverse.includes(breakpoint) && !tabInverse.includes(breakpoint)),
|
|
14
|
+
};
|
|
15
|
+
});
|
|
16
|
+
return configuration;
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=getOrderConfiguration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getOrderConfiguration.js","sourceRoot":"","sources":["../../../../../src/components/footer/utils/getOrderConfiguration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAShD,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACnC,UAAmC,EACnC,YAAqC,EACtB,EAAE;IACjB,MAAM,WAAW,GAAG;QAClB,qBAAqB,CAAC,MAAM;QAC5B,qBAAqB,CAAC,MAAM;QAC5B,qBAAqB,CAAC,OAAO;KAC9B,CAAC;IAEF,MAAM,aAAa,GAAkB,EAAE,CAAC;IAExC,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE;QAC/B,aAAa,CAAC,UAAU,CAAC,GAAG;YAC1B,WAAW,EAAE,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC;YAC5C,OAAO,EACL,CAAC,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;gBACvE,CAAC,YAAY,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;SAC1E,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,OAAO,aAAa,CAAC;AACvB,CAAC,CAAC"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { IHeader } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated This component has been deprecated and will be removed in the next MAJOR release. Will include all this on the NavBar component
|
|
5
|
+
*/
|
|
3
6
|
declare const Header: <V extends string | unknown>(props: IHeader<V> & {
|
|
4
7
|
ref?: React.ForwardedRef<HTMLDivElement> | undefined | null;
|
|
5
8
|
}) => JSX.Element;
|
|
@@ -18,6 +18,9 @@ const HeaderComponent = React.forwardRef(({ variant, ctv, showShadowFrom, ...pro
|
|
|
18
18
|
});
|
|
19
19
|
HeaderComponent.displayName = 'HeaderComponent';
|
|
20
20
|
const HeaderBoundary = (props, ref) => (_jsx(ErrorBoundary, { fallBackComponent: _jsx(FallbackComponent, { children: _jsx(HeaderStandAlone, { ...props, ref: ref }) }), children: _jsx(HeaderComponent, { ...props, ref: ref }) }));
|
|
21
|
+
/**
|
|
22
|
+
* @deprecated This component has been deprecated and will be removed in the next MAJOR release. Will include all this on the NavBar component
|
|
23
|
+
*/
|
|
21
24
|
const Header = React.forwardRef(HeaderBoundary);
|
|
22
25
|
export { Header };
|
|
23
26
|
//# sourceMappingURL=header.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"header.js","sourceRoot":"","sources":["../../../../src/components/header/header.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,S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GAA0D,EAC7C,EAAE,CAAC,CAChB,KAAC,aAAa,IACZ,iBAAiB,EACf,KAAC,iBAAiB,cAChB,KAAC,gBAAgB,OAAM,KAAsC,EAAE,GAAG,EAAE,GAAG,GAAI,GACzD,YAGtB,KAAC,eAAe,OAAK,KAAK,EAAE,GAAG,EAAE,GAAG,GAAI,GAC1B,CACjB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,GAAG,KAAK,CAAC,UAAU,CAAC,cAAc,CAI9B,CAAC;AAEjB,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { IHeaderStructure } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated This component has been deprecated and will be removed in the next MAJOR release. Will include all this on the NavBar component
|
|
5
|
+
*/
|
|
3
6
|
declare const HeaderStructure: <V extends string | unknown>(props: IHeaderStructure<V> & {
|
|
4
7
|
ref?: React.ForwardedRef<HTMLDivElement> | undefined | null;
|
|
5
8
|
}) => React.JSX.Element;
|
|
@@ -13,6 +13,9 @@ const HeaderStructureComponent = React.forwardRef(({ variant, ctv, ...props }, r
|
|
|
13
13
|
});
|
|
14
14
|
HeaderStructureComponent.displayName = 'HeaderStructureComponent';
|
|
15
15
|
const HeaderStructureBoundary = (props, ref) => (_jsx(ErrorBoundary, { fallBackComponent: _jsx(FallbackComponent, { children: _jsx(HeaderStandAlone, { scrolling: false, ...props, ref: ref }) }), children: _jsx(HeaderStructureComponent, { ...props, ref: ref }) }));
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated This component has been deprecated and will be removed in the next MAJOR release. Will include all this on the NavBar component
|
|
18
|
+
*/
|
|
16
19
|
const HeaderStructure = React.forwardRef(HeaderStructureBoundary);
|
|
17
20
|
export { HeaderStructure };
|
|
18
21
|
//# sourceMappingURL=headerStructure.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"headerStructure.js","sourceRoot":"","sources":["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AAG,KAAK,CAAC,UAAU,CAAC,uBAAuB,CAI1C,CAAC;AAEvB,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"headerStructure.js","sourceRoot":"","sources":["../../../../src/components/headerStructure/headerStructure.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAG5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAG/D,MAAM,wBAAwB,GAAG,KAAK,CAAC,UAAU,CAC/C,CACE,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,KAAK,EAAuB,EAC/C,GAA0D,EACvC,EAAE;IACrB,MAAM,MAAM,GAAG,SAAS,CACtB,WAAW,CAAC,gBAAgB,EAC5B,OAAO,EACP,GAAG,CACJ,CAAC;IACF,MAAM,MAAM,GAAG,cAAc,EAAE,CAAC;IAChC,MAAM,MAAM,GAAG,iBAAiB,EAAE,CAAC;IAEnC,OAAO,CACL,KAAC,gBAAgB,OACX,KAAK,EACT,GAAG,EAAE,GAAG,EACR,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,GAAG,CAAC,EACrB,MAAM,EAAE,MAAM,GACd,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AACF,wBAAwB,CAAC,WAAW,GAAG,0BAA0B,CAAC;AAElE,MAAM,uBAAuB,GAAG,CAC9B,KAA0B,EAC1B,GAA0D,EAC7C,EAAE,CAAC,CAChB,KAAC,aAAa,IACZ,iBAAiB,EACf,KAAC,iBAAiB,cAChB,KAAC,gBAAgB,IACf,SAAS,EAAE,KAAK,KACX,KAAsC,EAC3C,GAAG,EAAE,GAAG,GACR,GACgB,YAGtB,KAAC,wBAAwB,OAAK,KAAK,EAAE,GAAG,EAAE,GAAG,GAAI,GACnC,CACjB,CAAC;AAEF;;GAEG;AACH,MAAM,eAAe,GAAG,KAAK,CAAC,UAAU,CAAC,uBAAuB,CAI1C,CAAC;AAEvB,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -15,7 +15,7 @@ const IconBasicComponent = ({ tabIndex = 0, ...props }, ref) => {
|
|
|
15
15
|
return _jsx(_Fragment, {});
|
|
16
16
|
}
|
|
17
17
|
if (props.onClick) {
|
|
18
|
-
return (_jsxs(IconButtonStyled, { ...ariaProps, "$customIconStyles": props.customIconStyles, "$height": props.height, "$width": props.width, "aria-disabled": disabled, "aria-label": props['aria-label'] || altText, "data-testid": iconProps.dataTestId, disabled: disabled, tabIndex: tabIndex, type: ButtonType.BUTTON, onClick: onClick, children: [_jsx(ScreenReaderOnly, { children: screenReaderText }), _jsx(IconStandAlone, { ...iconProps, ref: ref, dataTestId: undefined, linearIcon: isLinearIcon })] }));
|
|
18
|
+
return (_jsxs(IconButtonStyled, { ...ariaProps, "$customIconStyles": props.customIconStyles, "$height": props.height, "$width": props.width, "aria-disabled": disabled, "aria-label": props['aria-label'] || altText, "data-testid": iconProps.dataTestId, disabled: disabled, id: props.id, tabIndex: tabIndex, type: ButtonType.BUTTON, onClick: onClick, children: [_jsx(ScreenReaderOnly, { children: screenReaderText }), _jsx(IconStandAlone, { ...iconProps, ref: ref, dataTestId: undefined, id: undefined, linearIcon: isLinearIcon })] }));
|
|
19
19
|
}
|
|
20
20
|
return _jsx(IconStandAlone, { ...iconProps, ref: ref, altText: altText, linearIcon: isLinearIcon });
|
|
21
21
|
};
|