@tap-payments/os-micro-frontend-shared 0.1.96-test.2 → 0.1.96-test.21

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.
Files changed (136) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +12 -12
  3. package/build/components/ActionMenu/style.d.ts +1 -1
  4. package/build/components/AmountStatusChip/AmountStatusChip.d.ts +9 -0
  5. package/build/components/AmountStatusChip/AmountStatusChip.js +19 -0
  6. package/build/components/AmountStatusChip/index.d.ts +3 -0
  7. package/build/components/AmountStatusChip/index.js +2 -0
  8. package/build/components/AmountStatusChip/style.d.ts +3 -0
  9. package/build/components/AmountStatusChip/style.js +13 -0
  10. package/build/components/AppServices/AppServices.d.ts +10 -5
  11. package/build/components/AppServices/AppServices.js +16 -18
  12. package/build/components/AppServices/ServiceItem.d.ts +2 -4
  13. package/build/components/AppServices/ServiceItem.js +2 -4
  14. package/build/components/AppServicesBar/AppServicesBar.d.ts +22 -0
  15. package/build/components/AppServicesBar/AppServicesBar.js +18 -0
  16. package/build/components/AppServicesBar/index.d.ts +3 -0
  17. package/build/components/AppServicesBar/index.js +3 -0
  18. package/build/components/AppServicesBar/style.d.ts +4 -0
  19. package/build/components/AppServicesBar/style.js +6 -0
  20. package/build/components/AppWindowWrapper/headers/AccountHeader/components/AccountHeaderTitle/AccountHeaderTitle.d.ts +1 -1
  21. package/build/components/AppWindowWrapper/headers/AccountHeader/components/AccountHeaderTitle/AccountHeaderTitle.js +1 -1
  22. package/build/components/AppWindowWrapper/headers/AppWindowHeader/AppWindowHeaderBase.d.ts +1 -1
  23. package/build/components/AppWindowWrapper/headers/AppWindowHeader/AppWindowHeaderBase.js +2 -2
  24. package/build/components/AuthenticationTypeChip/AuthenticationTypeChip.d.ts +9 -0
  25. package/build/components/AuthenticationTypeChip/AuthenticationTypeChip.js +21 -0
  26. package/build/components/AuthenticationTypeChip/constants.d.ts +16 -0
  27. package/build/components/AuthenticationTypeChip/constants.js +13 -0
  28. package/build/components/AuthenticationTypeChip/index.d.ts +3 -0
  29. package/build/components/AuthenticationTypeChip/index.js +2 -0
  30. package/build/components/ColorPicker/ColorPicker.d.ts +4 -1
  31. package/build/components/ColorPicker/ColorPicker.js +10 -43
  32. package/build/components/ColorPicker/ColorPickerPanel.d.ts +7 -0
  33. package/build/components/ColorPicker/ColorPickerPanel.js +41 -0
  34. package/build/components/ColorPicker/ColorSchemeSelect.d.ts +7 -0
  35. package/build/components/ColorPicker/ColorSchemeSelect.js +35 -0
  36. package/build/components/ColorPicker/HexaFields.d.ts +7 -0
  37. package/build/components/ColorPicker/HexaFields.js +79 -0
  38. package/build/components/ColorPicker/RGBAFields.d.ts +7 -0
  39. package/build/components/ColorPicker/RGBAFields.js +25 -0
  40. package/build/components/ColorPicker/style.d.ts +20 -9
  41. package/build/components/ColorPicker/style.js +49 -2
  42. package/build/components/JSONViewer/components/JSONTitleBar/JSONTitleBar.d.ts +1 -1
  43. package/build/components/JSONViewer/components/JSONTitleBar/JSONTitleBar.js +1 -1
  44. package/build/components/ListLayout/ListLayout.d.ts +10 -0
  45. package/build/components/ListLayout/ListLayout.js +20 -0
  46. package/build/components/ListLayout/index.d.ts +2 -0
  47. package/build/components/ListLayout/index.js +2 -0
  48. package/build/components/ListLayout/styles.d.ts +4 -0
  49. package/build/components/ListLayout/styles.js +9 -0
  50. package/build/components/RightLeftExpandingCenterChip/style.js +0 -2
  51. package/build/components/SearchButton/styles.d.ts +1 -1
  52. package/build/components/StatusChip/StatusChip.d.ts +1 -1
  53. package/build/components/StatusChip/StatusChip.js +13 -10
  54. package/build/components/StatusChip/style.d.ts +4 -0
  55. package/build/components/StatusChip/style.js +13 -5
  56. package/build/components/StatusChip/type.d.ts +4 -0
  57. package/build/components/StatusChipWithCopy/StatusChipWithCopy.d.ts +2 -1
  58. package/build/components/StatusChipWithCopy/StatusChipWithCopy.js +2 -2
  59. package/build/components/StatusIcons/AuthorizationAutoIcons/style.js +1 -1
  60. package/build/components/TableCells/CustomCells/ActionCell/constant.d.ts +1 -0
  61. package/build/components/TableCells/CustomCells/ActionCell/constant.js +2 -1
  62. package/build/components/TableCells/CustomCells/ActionCell/hooks/useActionCell.d.ts +1 -1
  63. package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +1 -1
  64. package/build/components/TableCells/CustomCells/ApplicationStatusCell/ApplicationStatusCell.js +4 -4
  65. package/build/components/TableCells/CustomCells/BalanceCell/style.js +1 -1
  66. package/build/components/TableCells/CustomCells/ProductsCell/style.js +1 -1
  67. package/build/components/TableCells/CustomCells/RefundChargeCell/style.js +1 -1
  68. package/build/components/TableCells/CustomCells/RefundStatusCell/style.js +1 -1
  69. package/build/components/TableCells/CustomCells/style.js +1 -1
  70. package/build/components/TableCells/SheetViewCells/PaymentAgreementCell/PaymentAgreementCell.d.ts +13 -0
  71. package/build/components/TableCells/SheetViewCells/PaymentAgreementCell/PaymentAgreementCell.js +26 -0
  72. package/build/components/TableCells/SheetViewCells/PaymentAgreementCell/index.d.ts +1 -0
  73. package/build/components/TableCells/SheetViewCells/PaymentAgreementCell/index.js +1 -0
  74. package/build/components/TableCells/SheetViewCells/index.d.ts +1 -0
  75. package/build/components/TableCells/SheetViewCells/index.js +1 -0
  76. package/build/components/TableCells/index.d.ts +1 -0
  77. package/build/components/TableCells/index.js +1 -0
  78. package/build/components/ToggleView/ToggleView.d.ts +16 -0
  79. package/build/components/ToggleView/ToggleView.js +32 -0
  80. package/build/components/ToggleView/ToggleWrapper.d.ts +4 -0
  81. package/build/components/ToggleView/ToggleWrapper.js +8 -0
  82. package/build/components/ToggleView/index.d.ts +3 -0
  83. package/build/components/ToggleView/index.js +3 -0
  84. package/build/components/ToggleView/style.d.ts +14 -0
  85. package/build/components/ToggleView/style.js +31 -0
  86. package/build/components/ToggleView/types.d.ts +6 -0
  87. package/build/components/ToggleView/types.js +6 -0
  88. package/build/components/Toolbar/style.d.ts +5 -2
  89. package/build/components/Toolbar/style.js +6 -1
  90. package/build/components/VirtualTables/SheetViewVirtualTable/SheetViewVirtualTable.d.ts +1 -1
  91. package/build/components/VirtualTables/SheetViewVirtualTable/SheetViewVirtualTable.js +2 -2
  92. package/build/components/VirtualTables/SheetViewVirtualTable/components/LoadingMainTable.js +2 -0
  93. package/build/components/VirtualTables/SheetViewVirtualTable/components/MainTable.js +5 -1
  94. package/build/components/VirtualTables/SheetViewVirtualTable/components/PinnedColumn.js +5 -1
  95. package/build/components/VirtualTables/SheetViewVirtualTable/components/SheetViewTableLoading.d.ts +1 -4
  96. package/build/components/VirtualTables/SheetViewVirtualTable/components/SheetViewTableLoading.js +39 -7
  97. package/build/components/VirtualTables/VirtualTable/VirtualTable.d.ts +1 -1
  98. package/build/components/VirtualTables/VirtualTable/VirtualTable.js +2 -2
  99. package/build/components/VirtualTables/VirtualTableWithCard/VirtualTableWithCard.d.ts +1 -1
  100. package/build/components/VirtualTables/VirtualTableWithCard/VirtualTableWithCard.js +2 -2
  101. package/build/components/VirtualTables/components/TableRow.js +2 -1
  102. package/build/components/Window/Window.d.ts +2 -1
  103. package/build/components/Window/Window.js +2 -2
  104. package/build/components/Window/style.d.ts +1 -0
  105. package/build/components/Window/style.js +1 -1
  106. package/build/components/index.d.ts +8 -0
  107. package/build/components/index.js +8 -0
  108. package/build/constants/apps.d.ts +41 -0
  109. package/build/constants/apps.js +19 -2
  110. package/build/constants/chips/index.d.ts +1 -0
  111. package/build/constants/chips/index.js +1 -0
  112. package/build/{components/StatusChip/constants.d.ts → constants/chips/statusChips.d.ts} +1 -1
  113. package/build/{components/StatusChip/constants.js → constants/chips/statusChips.js} +1 -1
  114. package/build/constants/index.d.ts +1 -0
  115. package/build/constants/index.js +1 -0
  116. package/build/constants/table/cell/authenticationsTableCellWidth.d.ts +1 -1
  117. package/build/constants/table/cell/authenticationsTableCellWidth.js +1 -1
  118. package/build/constants/table/cell/authorizationTableCellWidth.d.ts +4 -4
  119. package/build/constants/table/cell/authorizationTableCellWidth.js +4 -4
  120. package/build/constants/table/cell/chargeTableCellWidth.d.ts +3 -3
  121. package/build/constants/table/cell/chargeTableCellWidth.js +3 -3
  122. package/build/constants/table/cell/destinationsTableCellWidth.d.ts +3 -3
  123. package/build/constants/table/cell/destinationsTableCellWidth.js +3 -3
  124. package/build/constants/table/cell/merchantsTableCellWidth.d.ts +1 -1
  125. package/build/constants/table/cell/merchantsTableCellWidth.js +1 -1
  126. package/build/constants/table/cell/refundTableCellWidth.d.ts +3 -3
  127. package/build/constants/table/cell/refundTableCellWidth.js +3 -3
  128. package/build/types/apps.d.ts +50 -1
  129. package/build/types/table.d.ts +1 -1
  130. package/build/utils/color.d.ts +11 -0
  131. package/build/utils/color.js +27 -0
  132. package/build/utils/object.d.ts +1 -0
  133. package/build/utils/object.js +4 -3
  134. package/build/utils/table.d.ts +3 -6
  135. package/build/utils/table.js +6 -32
  136. package/package.json +29 -2
@@ -0,0 +1,7 @@
1
+ export type ColorPickerPanelProps = {
2
+ initialValue?: string;
3
+ onCancel: () => void;
4
+ onConfirm: (newValue: string) => void;
5
+ };
6
+ declare const ColorPickerPanel: ({ initialValue, onCancel, onConfirm }: ColorPickerPanelProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default ColorPickerPanel;
@@ -0,0 +1,41 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import { useCallback, useState } from 'react';
14
+ import { useTranslation } from 'react-i18next';
15
+ import { RgbaColorPicker } from 'react-colorful';
16
+ import Stack from '@mui/material/Stack';
17
+ import Divider from '@mui/material/Divider';
18
+ import { hexa2Rgba, rgba2Hexa } from '../../utils/index.js';
19
+ import { CancelButton, ConfirmButton, Footer, StyledColorWidgetWrapper } from './style';
20
+ import ColorSchemeSelect from './ColorSchemeSelect';
21
+ import RGBAFields from './RGBAFields';
22
+ import HexaFields from './HexaFields';
23
+ const ColorPickerPanel = ({ initialValue = '#ffffff', onCancel, onConfirm }) => {
24
+ const [colorScheme, setColorScheme] = useState('RGB');
25
+ const [color, setColor] = useState(() => {
26
+ const _a = hexa2Rgba(initialValue).value, { alpha: a } = _a, rest = __rest(_a, ["alpha"]);
27
+ return Object.assign(Object.assign({}, rest), { a });
28
+ });
29
+ const { t } = useTranslation();
30
+ const handleCancel = useCallback(() => {
31
+ const _a = hexa2Rgba(initialValue).value, { alpha: a } = _a, rest = __rest(_a, ["alpha"]);
32
+ setColor(Object.assign(Object.assign({}, rest), { a }));
33
+ onCancel();
34
+ }, [initialValue, onCancel]);
35
+ const handleConfirm = useCallback(() => {
36
+ const { a: alpha } = color, rest = __rest(color, ["a"]);
37
+ onConfirm(rgba2Hexa(Object.assign(Object.assign({}, rest), { alpha })));
38
+ }, [color, onConfirm]);
39
+ return (_jsxs(StyledColorWidgetWrapper, Object.assign({ className: "color-picker__widget" }, { children: [_jsx(RgbaColorPicker, { color: color, onChange: setColor }), _jsxs(Stack, Object.assign({ mt: 2, spacing: 1, direction: "row" }, { children: [_jsx(ColorSchemeSelect, { scheme: colorScheme, setScheme: setColorScheme }), colorScheme === 'RGB' ? (_jsx(RGBAFields, { value: Object.assign(Object.assign({}, color), { a: Math.round(color.a * 100) }), onChange: (newColor) => setColor(Object.assign(Object.assign({}, newColor), { a: newColor.a / 100 })) })) : (_jsx(HexaFields, { value: Object.assign(Object.assign({}, color), { a: color.a }), onChange: (newColor) => setColor(Object.assign(Object.assign({}, newColor), { a: newColor.a })) }))] })), _jsx(Divider, { sx: { my: '12px' } }), _jsxs(Footer, Object.assign({ className: "color-picker__widget-actions" }, { children: [_jsx(CancelButton, Object.assign({ className: "color-picker__widget-actions__cancel", onClick: handleCancel }, { children: t('cancel') })), _jsx(ConfirmButton, Object.assign({ className: "color-picker__widget-actions__confirm", onClick: handleConfirm }, { children: t('okay') }))] }))] })));
40
+ };
41
+ export default ColorPickerPanel;
@@ -0,0 +1,7 @@
1
+ export type ColorScheme = 'RGB' | 'HEX';
2
+ type ColorSchemeSelectProps = {
3
+ scheme: ColorScheme;
4
+ setScheme: (scheme: ColorScheme) => void;
5
+ };
6
+ declare const ColorSchemeSelect: ({ scheme, setScheme }: ColorSchemeSelectProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default ColorSchemeSelect;
@@ -0,0 +1,35 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import React, { useCallback } from 'react';
3
+ import ClickAwayListener from '@mui/material/ClickAwayListener';
4
+ import Popper from '@mui/material/Popper';
5
+ import Box from '@mui/material/Box';
6
+ import { blackHeadingDownArrow } from '../../constants/index.js';
7
+ import { ColorSchemeButton, ColorSchemeList } from './style';
8
+ import MenuItem from '@mui/material/MenuItem';
9
+ const ColorSchemeSelect = ({ scheme, setScheme }) => {
10
+ const [anchorEl, setAnchorEl] = React.useState(null);
11
+ const open = !!anchorEl;
12
+ const handleToggle = useCallback((event) => {
13
+ setAnchorEl(anchorEl ? null : event.currentTarget);
14
+ }, [anchorEl]);
15
+ const handleClose = useCallback(() => {
16
+ setAnchorEl(null);
17
+ }, []);
18
+ const handleSelect = useCallback((selectedScheme) => {
19
+ handleClose();
20
+ setScheme(selectedScheme);
21
+ }, [handleClose, setScheme]);
22
+ return (_jsxs(_Fragment, { children: [_jsxs(ColorSchemeButton, Object.assign({ component: "button", active: open, onClick: handleToggle }, { children: [scheme, _jsx(Box, { component: "img", sx: { transform: open ? 'rotateZ(180deg)' : 'rotateZ(0)', transition: '200ms transform ease-out' }, src: blackHeadingDownArrow })] })), _jsx(Popper, Object.assign({ anchorEl: anchorEl, open: !!anchorEl, placement: "bottom", disablePortal: true, keepMounted: true, modifiers: [
23
+ {
24
+ name: 'offset',
25
+ options: {
26
+ offset: [0, 4],
27
+ },
28
+ },
29
+ ] }, { children: _jsx(ClickAwayListener, Object.assign({ onClickAway: (event) => {
30
+ if (anchorEl === null || anchorEl === void 0 ? void 0 : anchorEl.contains(event.target))
31
+ return;
32
+ handleClose();
33
+ } }, { children: _jsxs(ColorSchemeList, { children: [_jsx(MenuItem, Object.assign({ onClick: () => handleSelect('RGB') }, { children: "RGB" })), _jsx(MenuItem, Object.assign({ onClick: () => handleSelect('HEX') }, { children: "HEX" }))] }) })) }))] }));
34
+ };
35
+ export default ColorSchemeSelect;
@@ -0,0 +1,7 @@
1
+ import { RgbaColor } from 'react-colorful';
2
+ type HexaFieldsProps = {
3
+ value: RgbaColor;
4
+ onChange: (newValue: RgbaColor) => void;
5
+ };
6
+ declare const HexaFields: ({ value, onChange }: HexaFieldsProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default HexaFields;
@@ -0,0 +1,79 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useEffect, useMemo, useState } from 'react';
3
+ import Color from 'color';
4
+ import { alpha } from '@mui/material/styles';
5
+ import Stack from '@mui/material/Stack';
6
+ import Typography from '@mui/material/Typography';
7
+ import InputAdornment from '@mui/material/InputAdornment';
8
+ import { StyledInput } from './style';
9
+ const HexaFields = ({ value, onChange }) => {
10
+ const colorAsHex = useMemo(() => {
11
+ const color = Color.rgb(value.r, value.g, value.b, value.a);
12
+ return color.hex().replace('#', '');
13
+ }, [value]);
14
+ const [hexInput, setHexInput] = useState(colorAsHex);
15
+ const alphaPercent = Math.round(value.a * 100);
16
+ useEffect(() => {
17
+ const newHex = Color.rgb(value.r, value.g, value.b).hex().replace('#', '');
18
+ setHexInput(newHex);
19
+ }, [value.r, value.g, value.b]);
20
+ const handleHexChange = (event) => {
21
+ let newHex = event.target.value.replace(/[^0-9a-fA-F]/g, '').toUpperCase();
22
+ if (newHex.length > 6)
23
+ newHex = newHex.slice(0, 6);
24
+ setHexInput(newHex);
25
+ };
26
+ const handleHexBlur = () => {
27
+ let formattedValue = hexInput;
28
+ if (formattedValue.length === 3) {
29
+ formattedValue = formattedValue
30
+ .split('')
31
+ .map((ch) => ch + ch)
32
+ .join('');
33
+ setHexInput(formattedValue);
34
+ }
35
+ if (formattedValue.length === 6) {
36
+ try {
37
+ const newColor = Color(`#${formattedValue}`).alpha(value.a);
38
+ onChange({
39
+ r: newColor.red(),
40
+ g: newColor.green(),
41
+ b: newColor.blue(),
42
+ a: newColor.alpha(),
43
+ });
44
+ }
45
+ catch (_a) {
46
+ setHexInput(colorAsHex);
47
+ }
48
+ }
49
+ else {
50
+ setHexInput(colorAsHex);
51
+ }
52
+ };
53
+ const handleAlphaChange = (event) => {
54
+ let num = parseInt(event.target.value, 10);
55
+ if (isNaN(num))
56
+ num = 0;
57
+ if (num < 0)
58
+ num = 0;
59
+ if (num > 100)
60
+ num = 100;
61
+ onChange(Object.assign(Object.assign({}, value), { a: num / 100 }));
62
+ };
63
+ return (_jsxs(Stack, Object.assign({ direction: "row", spacing: 1, alignItems: "flex-start" }, { children: [_jsx(StyledInput, { value: hexInput, onChange: handleHexChange, onBlur: handleHexBlur, placeholder: "FFFFFF", sx: {
64
+ flex: 1.4,
65
+ '& .MuiOutlinedInput-root': {
66
+ pl: 1,
67
+ },
68
+ }, InputProps: {
69
+ startAdornment: (_jsx(InputAdornment, Object.assign({ position: "start", sx: { m: 0 } }, { children: _jsx(Typography, Object.assign({ component: "span", color: (theme) => alpha(theme.palette.text.primary, 0.5), display: "inline-block", fontSize: 12, fontWeight: 500 }, { children: "#" })) }))),
70
+ } }), _jsx(StyledInput, { type: "number", value: alphaPercent, onChange: handleAlphaChange, inputProps: { min: 0, max: 100 }, sx: {
71
+ flex: 0.8,
72
+ '& .MuiOutlinedInput-root': {
73
+ pr: 1,
74
+ },
75
+ }, InputProps: {
76
+ endAdornment: (_jsx(InputAdornment, Object.assign({ position: "end", sx: { m: 0 } }, { children: _jsx(Typography, Object.assign({ component: "span", color: "text.primary", display: "inline-block", fontSize: 12, fontWeight: 500 }, { children: "%" })) }))),
77
+ } })] })));
78
+ };
79
+ export default HexaFields;
@@ -0,0 +1,7 @@
1
+ import { RgbaColor } from 'react-colorful';
2
+ type RGBAFieldsProps = {
3
+ value: RgbaColor;
4
+ onChange: (newValue: RgbaColor) => void;
5
+ };
6
+ declare const RGBAFields: ({ value, onChange }: RGBAFieldsProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default RGBAFields;
@@ -0,0 +1,25 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import Stack from '@mui/material/Stack';
3
+ import Typography from '@mui/material/Typography';
4
+ import InputAdornment from '@mui/material/InputAdornment';
5
+ import { StyledInput } from './style';
6
+ const RGBAFields = ({ value, onChange }) => {
7
+ const handleChange = (key, max) => (event) => {
8
+ let num = parseInt(event.target.value, 10);
9
+ if (isNaN(num))
10
+ num = 0;
11
+ if (num < 0)
12
+ num = 0;
13
+ if (num > max)
14
+ num = max;
15
+ onChange(Object.assign(Object.assign({}, value), { [key]: num }));
16
+ };
17
+ return (_jsxs(Stack, Object.assign({ direction: "row", spacing: 1 }, { children: [_jsx(StyledInput, { type: "number", value: value.r, onChange: handleChange('r', 255), inputProps: { min: 0, max: 255, style: { textAlign: 'center' } }, variant: "outlined", size: "small" }), _jsx(StyledInput, { type: "number", value: value.g, onChange: handleChange('g', 255), inputProps: { min: 0, max: 255, style: { textAlign: 'center' } }, variant: "outlined", size: "small" }), _jsx(StyledInput, { type: "number", value: value.b, onChange: handleChange('b', 255), inputProps: { min: 0, max: 255, style: { textAlign: 'center' } }, variant: "outlined", size: "small" }), _jsx(StyledInput, { type: "number", value: value.a, onChange: handleChange('a', 100), inputProps: { min: 0, max: 100, style: { textAlign: 'center' } }, variant: "outlined", sx: {
18
+ '& .MuiOutlinedInput-root': {
19
+ pr: 1,
20
+ },
21
+ }, InputProps: {
22
+ endAdornment: (_jsx(InputAdornment, Object.assign({ position: "end", sx: { m: 0 } }, { children: _jsx(Typography, Object.assign({ component: "span", display: "inline-block", fontSize: 12, fontWeight: 500 }, { children: "%" })) }))),
23
+ }, size: "small" })] })));
24
+ };
25
+ export default RGBAFields;
@@ -1,14 +1,25 @@
1
1
  /// <reference types="react" />
2
- export declare const StyledCloseButtonWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
3
- export declare const StyledColorWidgetWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
2
+ export declare const StyledCloseButtonWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
3
+ export declare const StyledColorWidgetWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
4
  ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
5
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
6
- export declare const Footer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
5
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
6
+ export declare const Footer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
7
7
  ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
8
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
9
- export declare const ConfirmButton: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
8
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
9
+ export declare const ConfirmButton: import("@emotion/styled").StyledComponent<import("@mui/material/Button").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
10
10
  ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
11
- }, "disabled" | "color" | "style" | "className" | "classes" | "tabIndex" | "children" | "sx" | "variant" | "size" | "fullWidth" | "href" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "startIcon"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
12
- export declare const CancelButton: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
11
+ }, "disabled" | "color" | "style" | "className" | "classes" | "tabIndex" | "children" | "sx" | "variant" | "size" | "fullWidth" | "href" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "startIcon"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
12
+ export declare const CancelButton: import("@emotion/styled").StyledComponent<import("@mui/material/Button").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
13
13
  ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
14
- }, "disabled" | "color" | "style" | "className" | "classes" | "tabIndex" | "children" | "sx" | "variant" | "size" | "fullWidth" | "href" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "startIcon"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
14
+ }, "disabled" | "color" | "style" | "className" | "classes" | "tabIndex" | "children" | "sx" | "variant" | "size" | "fullWidth" | "href" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "startIcon"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
15
+ export declare const ColorSchemeButton: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
16
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
17
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
18
+ active?: boolean | undefined;
19
+ }, {}, {}>;
20
+ export declare const ColorSchemeList: import("@emotion/styled").StyledComponent<import("@mui/material/MenuList").MenuListOwnProps & import("@mui/material").ListOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & {
21
+ ref?: ((instance: HTMLUListElement | null) => void) | import("react").RefObject<HTMLUListElement> | null | undefined;
22
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "autoFocus" | "children" | "sx" | "variant" | "dense" | "subheader" | "disablePadding" | "autoFocusItem" | "disabledItemsFocusable" | "disableListWrap"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
23
+ export declare const StyledInput: import("@emotion/styled").StyledComponent<{
24
+ variant?: import("@mui/material/TextField").TextFieldVariants | undefined;
25
+ } & Omit<import("@mui/material/TextField").FilledTextFieldProps | import("@mui/material/TextField").OutlinedTextFieldProps | import("@mui/material/TextField").StandardTextFieldProps, "variant"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
@@ -1,5 +1,8 @@
1
- import { Box, Button } from '@mui/material';
2
1
  import { styled } from '@mui/material/styles';
2
+ import Box from '@mui/material/Box';
3
+ import Button from '@mui/material/Button';
4
+ import TextField from '@mui/material/TextField';
5
+ import MenuList from '@mui/material/MenuList';
3
6
  export const StyledCloseButtonWrapper = styled('button')({
4
7
  background: 'transparent',
5
8
  border: 'none',
@@ -14,7 +17,7 @@ export const StyledCloseButtonWrapper = styled('button')({
14
17
  });
15
18
  export const StyledColorWidgetWrapper = styled(Box)(({ theme }) => ({
16
19
  boxShadow: '0px 8px 30px rgba(0, 0, 0, 0.16)',
17
- minWidth: 264,
20
+ width: 264,
18
21
  backgroundColor: '#ffffff',
19
22
  padding: '12px',
20
23
  borderRadius: theme.spacing(1),
@@ -83,3 +86,47 @@ export const CancelButton = styled(Button)(({ theme }) => ({
83
86
  background: 'transparent',
84
87
  },
85
88
  }));
89
+ export const ColorSchemeButton = styled(Box, {
90
+ shouldForwardProp: (prop) => prop !== 'active',
91
+ })(({ theme, active }) => (Object.assign({ display: 'flex', justifyContent: 'space-between', alignItems: 'center', color: theme.palette.text.primary, border: '1px solid #F2F2F2', fontSize: 12, fontWeight: 500, backgroundColor: 'transparent', padding: '4px 8px', borderRadius: '4px', minWidth: 70, cursor: 'pointer' }, (active && {
92
+ border: '1px solid #1F88D0',
93
+ boxShadow: '0px 0px 4px 0px #1F88D080',
94
+ }))));
95
+ export const ColorSchemeList = styled(MenuList)({
96
+ backgroundColor: '#ffffff',
97
+ borderRadius: '4px',
98
+ boxShadow: '0px 8px 30px 0px #00000029',
99
+ minWidth: 70,
100
+ '& .MuiMenuItem-root': {
101
+ fontSize: 12,
102
+ fontWeight: 500,
103
+ padding: '4px 8px',
104
+ },
105
+ });
106
+ export const StyledInput = styled(TextField)(({ theme }) => ({
107
+ '& .MuiOutlinedInput-root': {
108
+ fontSize: '12px',
109
+ fontWeight: 500,
110
+ borderRadius: '4px',
111
+ '& input': {
112
+ padding: '4px',
113
+ '&::-webkit-outer-spin-button, &::-webkit-inner-spin-button': {
114
+ WebkitAppearance: 'none',
115
+ margin: 0,
116
+ },
117
+ '&[type=number]': {
118
+ MozAppearance: 'textfield',
119
+ },
120
+ },
121
+ '& .MuiOutlinedInput-notchedOutline': {
122
+ borderColor: theme.palette.divider,
123
+ borderWidth: '1px',
124
+ },
125
+ '&:hover, &.Mui-focused': {
126
+ '& .MuiOutlinedInput-notchedOutline': {
127
+ borderColor: theme.palette.divider,
128
+ borderWidth: '1px',
129
+ },
130
+ },
131
+ },
132
+ }));
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { JSONTitleBarProps } from './type';
3
- declare function JSONTitleBar({ title, onClose, onMaximize, maximized, id, onMouseHover, onMouseLeave, onRequestClick, isRequestExpanded, showRequestIcon, isHovered, }: JSONTitleBarProps): import("react/jsx-runtime").JSX.Element;
3
+ declare function JSONTitleBar({ title, onClose, onMaximize, maximized, id, onMouseHover, onMouseLeave, onRequestClick, isRequestExpanded, showRequestIcon, isHovered, }: Readonly<JSONTitleBarProps>): import("react/jsx-runtime").JSX.Element;
4
4
  declare const _default: import("react").MemoExoticComponent<typeof JSONTitleBar>;
5
5
  export default _default;
@@ -4,6 +4,6 @@ import Toolbar, { StyledHeaderWrapperStyled } from '../../../Toolbar';
4
4
  import { CloseIcon, ExpandButton, MaximizeIcon } from '../../../ToolbarIcon';
5
5
  import { jsonIcon } from '../../../../constants/index.js';
6
6
  function JSONTitleBar({ title, onClose, onMaximize, maximized = false, id, onMouseHover, onMouseLeave, onRequestClick, isRequestExpanded = false, showRequestIcon = false, isHovered = false, }) {
7
- return (_jsx(StyledHeaderWrapperStyled, Object.assign({ id: id, maximized: maximized || false, sandboxMode: false }, { children: _jsx(Toolbar, { isHovered: true, onMouseEnter: onMouseHover, onMouseLeave: onMouseLeave, isMaximized: maximized, title: title, icon: jsonIcon, leftActions: _jsxs(_Fragment, { children: [_jsx(CloseIcon, { onClick: onClose }), _jsx(MaximizeIcon, { isMaximized: maximized, onClick: onMaximize }), showRequestIcon && (_jsx(ExpandButton, Object.assign({ onClick: onRequestClick, isExpanded: isRequestExpanded, isHovered: isHovered }, { children: "Request" })))] }) }) })));
7
+ return (_jsx(StyledHeaderWrapperStyled, Object.assign({ id: id, maximized: maximized || false }, { children: _jsx(Toolbar, { isHovered: true, onMouseEnter: onMouseHover, onMouseLeave: onMouseLeave, isMaximized: maximized, title: title, icon: jsonIcon, leftActions: _jsxs(_Fragment, { children: [_jsx(CloseIcon, { onClick: onClose }), _jsx(MaximizeIcon, { isMaximized: maximized, onClick: onMaximize }), showRequestIcon && (_jsx(ExpandButton, Object.assign({ onClick: onRequestClick, isExpanded: isRequestExpanded, isHovered: isHovered }, { children: "Request" })))] }) }) })));
8
8
  }
9
9
  export default memo(JSONTitleBar);
@@ -0,0 +1,10 @@
1
+ import { type ComponentPropsWithoutRef } from 'react';
2
+ import { ListLayoutStyled } from './styles';
3
+ interface ListLayoutProps extends ComponentPropsWithoutRef<typeof ListLayoutStyled> {
4
+ }
5
+ declare function ListLayout({ children, ...props }: Readonly<ListLayoutProps>): import("react/jsx-runtime").JSX.Element;
6
+ declare namespace ListLayout {
7
+ var displayName: string;
8
+ }
9
+ declare const _default: import("react").MemoExoticComponent<typeof ListLayout>;
10
+ export default _default;
@@ -0,0 +1,20 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { memo } from 'react';
14
+ import { ListLayoutStyled } from './styles';
15
+ function ListLayout(_a) {
16
+ var { children } = _a, props = __rest(_a, ["children"]);
17
+ return (_jsx(ListLayoutStyled, Object.assign({ component: "article", "data-testid": "ListLayout" }, props, { children: children })));
18
+ }
19
+ ListLayout.displayName = 'ListLayout';
20
+ export default memo(ListLayout);
@@ -0,0 +1,2 @@
1
+ import ListLayout from './ListLayout';
2
+ export default ListLayout;
@@ -0,0 +1,2 @@
1
+ import ListLayout from './ListLayout';
2
+ export default ListLayout;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare const ListLayoutStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
3
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
4
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
@@ -0,0 +1,9 @@
1
+ import Box from '@mui/material/Box';
2
+ import { styled } from '@mui/material/styles';
3
+ export const ListLayoutStyled = styled(Box)(() => ({
4
+ flex: 1,
5
+ position: 'relative',
6
+ display: 'flex',
7
+ flexDirection: 'column',
8
+ height: '100%',
9
+ }));
@@ -29,7 +29,6 @@ export const LeftExpandIcon = styled(motion.span)(({ theme }) => ({
29
29
  fontSize: '10px',
30
30
  lineHeight: 1,
31
31
  color: theme.palette.text.secondary,
32
- fontWeight: 'bold',
33
32
  userSelect: 'none',
34
33
  }));
35
34
  export const RightExpandIcon = styled(motion.span)(({ theme }) => ({
@@ -44,7 +43,6 @@ export const RightExpandIcon = styled(motion.span)(({ theme }) => ({
44
43
  fontSize: '10px',
45
44
  lineHeight: 1,
46
45
  color: theme.palette.text.secondary,
47
- fontWeight: 'bold',
48
46
  userSelect: 'none',
49
47
  }));
50
48
  export const ExpandedSection = styled(motion.div)(({ side }) => (Object.assign(Object.assign(Object.assign({ position: 'absolute', display: 'flex', alignItems: 'center' }, (side === 'left' ? { right: '100%', flexDirection: 'row-reverse', transformOrigin: 'right center' } : {})), (side === 'right' ? { left: '100%', flexDirection: 'row', transformOrigin: 'left center' } : {})), { top: '50%', transform: 'translateY(-50%)', gap: 0, pointerEvents: 'auto', overflow: 'visible' })));
@@ -9,12 +9,12 @@ export declare const StyledInput: import("@emotion/styled").StyledComponent<{
9
9
  color?: string | undefined;
10
10
  content?: string | undefined;
11
11
  translate?: "yes" | "no" | undefined;
12
+ name?: string | undefined;
12
13
  value?: string | number | readonly string[] | undefined;
13
14
  list?: string | undefined;
14
15
  form?: string | undefined;
15
16
  slot?: string | undefined;
16
17
  title?: string | undefined;
17
- name?: string | undefined;
18
18
  className?: string | undefined;
19
19
  pattern?: string | undefined;
20
20
  defaultChecked?: boolean | undefined;
@@ -1,3 +1,3 @@
1
1
  import { ChipProps } from './type';
2
- declare const StatusChip: ({ children, unknownText, copyText, ...props }: ChipProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const StatusChip: ({ children, unknownText, copyText, expandDirection, chipStyles, ...props }: ChipProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default StatusChip;
@@ -15,15 +15,15 @@ import { useTranslation } from 'react-i18next';
15
15
  import { AnimatePresence, motion } from 'framer-motion';
16
16
  import { copyText as copyTextHandler } from '../../utils/index.js';
17
17
  import { copyIcon, greenCheckIcon } from '../../constants/index.js';
18
- import { unknownGeographyColors } from './constants';
19
18
  import { ChipStyled, Wrapper, CopyWrapper } from './style';
19
+ import { emptyStatusChipColors } from '../../constants/index.js';
20
20
  const StatusChip = (_a) => {
21
- var { children, unknownText, copyText } = _a, props = __rest(_a, ["children", "unknownText", "copyText"]);
21
+ var { children, unknownText, copyText, expandDirection = 'right', chipStyles } = _a, props = __rest(_a, ["children", "unknownText", "copyText", "expandDirection", "chipStyles"]);
22
22
  const [showCopy, setShowCopy] = useState(false);
23
23
  const { t } = useTranslation();
24
24
  const isSelected = props.isSelected;
25
25
  if (!children) {
26
- return (_jsx(ChipStyled, Object.assign({}, unknownGeographyColors, props, { isSelected: false, sx: (theme) => ({ borderColor: theme.palette.divider }) }, { children: unknownText ? t(unknownText) : t('unknown') })));
26
+ return (_jsx(ChipStyled, Object.assign({}, emptyStatusChipColors, props, { isSelected: false, sx: (theme) => ({ borderColor: theme.palette.divider }) }, { children: unknownText ? t(unknownText) : t('unknown') })));
27
27
  }
28
28
  const handleCopy = (e) => {
29
29
  e.stopPropagation();
@@ -38,12 +38,15 @@ const StatusChip = (_a) => {
38
38
  };
39
39
  }
40
40
  };
41
- return (_jsxs(motion.div, Object.assign({ style: { position: 'relative' }, animate: { zIndex: isSelected ? 3 : 0 } }, { children: [_jsx(ChipStyled, Object.assign({}, props, { sx: { visibility: 'hidden', pointerEvents: 'none' } }, { children: _jsx(Wrapper, { children: children }) })), _jsx(ChipStyled, Object.assign({}, props, { isSelected: isSelected, style: { position: 'absolute', top: 0, left: 0, zIndex: isSelected ? 3 : 0 } }, { children: _jsxs(motion.div, Object.assign({ layout: "size", style: { display: 'flex', gap: '4px' }, animate: {
42
- paddingRight: isSelected && copyText ? 12 : 0,
43
- }, transition: { delay: isSelected ? 0 : 0.2, duration: 0.2 } }, { children: [_jsx(Wrapper, { children: children }), _jsx(AnimatePresence, { children: isSelected && copyText && (_jsx(CopyWrapper, { children: _jsx(motion.img, { initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 }, transition: { delay: isSelected ? 0.2 : 0, duration: 0.1 }, onClick: handleCopy, src: showCopy ? greenCheckIcon : copyIcon, style: {
44
- height: 12,
45
- width: 12,
46
- objectFit: 'contain',
47
- } }) })) })] })) }))] })));
41
+ const isCopyActive = isSelected && copyText;
42
+ return (_jsxs(motion.div, Object.assign({ style: { position: 'relative' }, animate: { zIndex: isSelected ? 3 : 0 } }, { children: [_jsx(ChipStyled, Object.assign({}, props, { sx: { visibility: 'hidden', pointerEvents: 'none' } }, { children: _jsx(Wrapper, { children: children }) })), _jsx(motion.div, Object.assign({ style: { position: 'absolute', top: 0, zIndex: isSelected ? 3 : 0 }, animate: {
43
+ left: isCopyActive && expandDirection === 'left' ? -12 : 0,
44
+ }, transition: { delay: isSelected ? 0 : 0.2, duration: 0.2 } }, { children: _jsx(ChipStyled, Object.assign({}, props, { isSelected: isSelected }, chipStyles, { children: _jsxs(motion.div, Object.assign({ layout: "size", style: { display: 'flex', gap: '4px' }, animate: {
45
+ paddingRight: isCopyActive ? 12 : 0,
46
+ }, transition: { delay: isSelected ? 0 : 0.2, duration: 0.2 } }, { children: [_jsx(Wrapper, { children: children }), _jsx(AnimatePresence, { children: isCopyActive && (_jsx(CopyWrapper, { children: _jsx(motion.img, { initial: { opacity: 0, x: -5 }, animate: { opacity: 1, x: 0 }, exit: { opacity: 0, x: -2 }, transition: { delay: 0.2, duration: 0.1 }, onClick: handleCopy, src: showCopy ? greenCheckIcon : copyIcon, style: {
47
+ height: 12,
48
+ width: 12,
49
+ objectFit: 'contain',
50
+ } }) })) })] })) })) }))] })));
48
51
  };
49
52
  export default StatusChip;
@@ -8,9 +8,13 @@ export declare const ChipStyled: import("@emotion/styled").StyledComponent<impor
8
8
  disabled?: boolean | undefined;
9
9
  padding?: string | undefined;
10
10
  unknownText?: string | undefined;
11
+ minWidth?: string | undefined;
11
12
  maxWidth?: string | undefined;
12
13
  isSelected?: boolean | undefined;
13
14
  copyText?: string | undefined;
15
+ expandDirection?: "left" | "right" | undefined;
16
+ chipStyles?: object | undefined;
17
+ disableAnimation?: boolean | undefined;
14
18
  } & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
15
19
  ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
16
20
  }, keyof import("@mui/material/OverridableComponent").CommonProps | keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & {
@@ -1,10 +1,19 @@
1
1
  import Box from '@mui/material/Box';
2
2
  import { styled } from '@mui/material/styles';
3
3
  export const ChipStyled = styled(Box, {
4
- shouldForwardProp: (prop) => !['textColor', 'bgColor', 'borderColor', 'disabled', 'padding', 'maxWidth', 'isSelected'].includes(prop),
5
- })(({ theme, isSelected, textColor = theme.palette.text.primary, bgColor = '#EFF1F2', borderColor = '#EFF1F2', disabled = false, padding, maxWidth, }) => {
6
- return Object.assign({ display: 'flex', alignItems: 'center', gap: '4px', height: '18px', padding: padding || '0px 9.5px', borderRadius: '30px', border: `1px solid ${borderColor}`, backgroundColor: bgColor, color: textColor, cursor: disabled ? 'not-allowed' : 'pointer', opacity: disabled ? 0.5 : 1, whiteSpace: 'nowrap', fontSize: '11px', minWidth: '67px', maxWidth: maxWidth || 'none', width: 'fit-content', overflow: 'hidden', textOverflow: maxWidth ? 'ellipsis' : 'unset', boxSizing: 'border-box', borderColor: theme.palette.common.white }, (isSelected && {
7
- boxShadow: 'rgb(242, 242, 242) 7px 0px 8px 2px',
4
+ shouldForwardProp: (prop) => !['textColor', 'bgColor', 'borderColor', 'disabled', 'minWidth', 'padding', 'maxWidth', 'isSelected', 'disableAnimation'].includes(prop),
5
+ })(({ theme, isSelected, textColor = theme.palette.text.primary, bgColor = '#EFF1F2', borderColor = '#EFF1F2', disabled = false, padding, minWidth, maxWidth, disableAnimation, }) => {
6
+ return Object.assign(Object.assign({ display: 'flex', justifyContent: 'center', alignItems: 'center', gap: '4px', height: '18px', padding: padding || '0px 9.5px', borderRadius: '30px', border: `1px solid ${borderColor}`, backgroundColor: bgColor, color: textColor, cursor: disabled ? 'not-allowed' : 'pointer', opacity: disabled ? 0.5 : 1, whiteSpace: 'nowrap', fontSize: '11px', minWidth: minWidth || '67px', maxWidth: maxWidth || 'none', width: 'fit-content', overflow: 'hidden', textOverflow: maxWidth ? 'ellipsis' : 'unset', boxSizing: 'border-box' }, (isSelected && {
7
+ boxShadow: 'white 7px 0px 8px 2px',
8
+ })), (disableAnimation && {
9
+ transition: 'none !important',
10
+ animation: 'none !important',
11
+ transform: 'none !important',
12
+ '& *': {
13
+ transition: 'none !important',
14
+ animation: 'none !important',
15
+ transform: 'none !important',
16
+ },
8
17
  }));
9
18
  });
10
19
  export const Wrapper = styled(Box)(() => ({
@@ -12,7 +21,6 @@ export const Wrapper = styled(Box)(() => ({
12
21
  alignItems: 'center',
13
22
  justifyContent: 'center',
14
23
  gap: '4px',
15
- minWidth: 46,
16
24
  textAlign: 'center',
17
25
  }));
18
26
  export const CopyWrapper = styled(Box)(() => ({
@@ -7,7 +7,11 @@ export type ChipProps = PropsWithChildren<{
7
7
  disabled?: boolean;
8
8
  padding?: string;
9
9
  unknownText?: string;
10
+ minWidth?: string;
10
11
  maxWidth?: string;
11
12
  isSelected?: boolean;
12
13
  copyText?: string;
14
+ expandDirection?: 'left' | 'right';
15
+ chipStyles?: object;
16
+ disableAnimation?: boolean;
13
17
  } & BoxProps>;
@@ -5,7 +5,8 @@ export interface StatusChipWithCopyProps extends StatusChipProps {
5
5
  copyText?: string;
6
6
  chipIndex: number;
7
7
  selectionProps: SelectionProps;
8
+ chipStyles?: object;
8
9
  }
9
- declare function StatusChipWithCopy({ children, copyText, chipIndex, selectionProps: { onClick, rowIndex, colIndex, selectedId }, ...reset }: StatusChipWithCopyProps): import("react/jsx-runtime").JSX.Element;
10
+ declare function StatusChipWithCopy({ children, copyText, chipIndex, selectionProps: { onClick, rowIndex, colIndex, selectedId }, ...rest }: StatusChipWithCopyProps): import("react/jsx-runtime").JSX.Element;
10
11
  declare const _default: import("react").MemoExoticComponent<typeof StatusChipWithCopy>;
11
12
  export default _default;
@@ -14,9 +14,9 @@ import { memo, useMemo } from 'react';
14
14
  import StatusChip from '../StatusChip';
15
15
  import { checkIsSelected } from './utils';
16
16
  function StatusChipWithCopy(_a) {
17
- var { children, copyText, chipIndex, selectionProps: { onClick, rowIndex, colIndex, selectedId } } = _a, reset = __rest(_a, ["children", "copyText", "chipIndex", "selectionProps"]);
17
+ var { children, copyText, chipIndex, selectionProps: { onClick, rowIndex, colIndex, selectedId } } = _a, rest = __rest(_a, ["children", "copyText", "chipIndex", "selectionProps"]);
18
18
  const isSelected = useMemo(() => checkIsSelected({ rowIndex, colIndex, selectedId, chipIndex }), [rowIndex, colIndex, selectedId, chipIndex]);
19
- return (_jsx(StatusChip, Object.assign({}, reset, { copyText: copyText, onClick: (e) => {
19
+ return (_jsx(StatusChip, Object.assign({}, rest, { copyText: copyText, onClick: (e) => {
20
20
  onClick === null || onClick === void 0 ? void 0 : onClick(e, chipIndex);
21
21
  }, isSelected: isSelected }, { children: children })));
22
22
  }
@@ -33,7 +33,7 @@ export const PercentageContainer = styled('div')(({ theme, percentage, isCapture
33
33
  gap: theme.spacing(0.5),
34
34
  }));
35
35
  export const PiePercentage = styled('div')(({ percentage, isCapture, theme }) => ({
36
- background: `conic-gradient(${isCapture ? theme.palette.info.dark : '#656565'} ${percentage}.00%, transparent 0.00%)`,
36
+ background: `conic-gradient(${isCapture ? theme.palette.info.dark : '#656565'} ${percentage}%, transparent 0.00%)`,
37
37
  borderRadius: '50%',
38
38
  width: '8.333px',
39
39
  height: '8.333px',
@@ -28,4 +28,5 @@ export declare const actionIcons: {
28
28
  users: string;
29
29
  brand: string;
30
30
  clipboard: string;
31
+ viewApi: string;
31
32
  };