@synerise/ds-table 1.9.11 → 1.9.12

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 (231) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/Cell/Action/ActionCell.d.ts +2 -2
  3. package/dist/Cell/Action/ActionCell.js +15 -18
  4. package/dist/Cell/Action/ActionCell.styles.d.ts +2 -2
  5. package/dist/Cell/Action/ActionCell.styles.js +10 -11
  6. package/dist/Cell/Action/ActionCell.types.d.ts +2 -2
  7. package/dist/Cell/Action/ActionCell.types.js +1 -1
  8. package/dist/Cell/AvatarLabel/AvatarLabel.d.ts +2 -2
  9. package/dist/Cell/AvatarLabel/AvatarLabel.js +32 -43
  10. package/dist/Cell/AvatarLabel/AvatarLabel.styles.d.ts +13 -13
  11. package/dist/Cell/AvatarLabel/AvatarLabel.styles.js +27 -28
  12. package/dist/Cell/AvatarLabel/AvatarLabel.types.d.ts +2 -2
  13. package/dist/Cell/AvatarLabel/AvatarLabel.types.js +1 -1
  14. package/dist/Cell/Copyable/Copyable.styles.d.ts +2 -2
  15. package/dist/Cell/Copyable/Copyable.styles.js +9 -15
  16. package/dist/Cell/Copyable/Copyable.types.d.ts +1 -1
  17. package/dist/Cell/Copyable/Copyable.types.js +1 -1
  18. package/dist/Cell/Copyable/CopyableCell.d.ts +2 -2
  19. package/dist/Cell/Copyable/CopyableCell.js +23 -27
  20. package/dist/Cell/Editable/EditableCell.d.ts +2 -2
  21. package/dist/Cell/Editable/EditableCell.js +26 -39
  22. package/dist/Cell/Editable/EditableCell.styles.d.ts +2 -2
  23. package/dist/Cell/Editable/EditableCell.styles.js +9 -7
  24. package/dist/Cell/Editable/EditableCell.types.d.ts +1 -1
  25. package/dist/Cell/Editable/EditableCell.types.js +1 -1
  26. package/dist/Cell/FlagLabel/FlagLabelCell.d.ts +2 -2
  27. package/dist/Cell/FlagLabel/FlagLabelCell.js +15 -14
  28. package/dist/Cell/FlagLabel/FlagLabelCell.styles.d.ts +1 -1
  29. package/dist/Cell/FlagLabel/FlagLabelCell.styles.js +6 -3
  30. package/dist/Cell/FlagLabel/FlagLabelCell.types.d.ts +2 -2
  31. package/dist/Cell/FlagLabel/FlagLabelCell.types.js +1 -1
  32. package/dist/Cell/IconLabel/IconLabel.d.ts +2 -2
  33. package/dist/Cell/IconLabel/IconLabel.js +14 -15
  34. package/dist/Cell/IconLabel/IconLabel.styles.d.ts +1 -1
  35. package/dist/Cell/IconLabel/IconLabel.styles.js +7 -6
  36. package/dist/Cell/IconLabel/IconLabel.types.d.ts +3 -3
  37. package/dist/Cell/IconLabel/IconLabel.types.js +1 -1
  38. package/dist/Cell/IconTooltipCell/IconTooltipCell.d.ts +2 -2
  39. package/dist/Cell/IconTooltipCell/IconTooltipCell.js +18 -23
  40. package/dist/Cell/IconTooltipCell/IconTooltipCell.styles.d.ts +2 -2
  41. package/dist/Cell/IconTooltipCell/IconTooltipCell.styles.js +9 -11
  42. package/dist/Cell/IconTooltipCell/IconTooltipCell.types.d.ts +4 -4
  43. package/dist/Cell/IconTooltipCell/IconTooltipCell.types.js +1 -1
  44. package/dist/Cell/InputNumber/InputNumberCell.d.ts +2 -2
  45. package/dist/Cell/InputNumber/InputNumberCell.js +10 -17
  46. package/dist/Cell/InputNumber/InputNumberCell.styles.d.ts +1 -1
  47. package/dist/Cell/InputNumber/InputNumberCell.styles.js +9 -5
  48. package/dist/Cell/InputNumber/InputNumberCell.types.d.ts +2 -2
  49. package/dist/Cell/InputNumber/InputNumberCell.types.js +1 -1
  50. package/dist/Cell/LabelsWithShowMore/LabelsWithShowMore.d.ts +3 -3
  51. package/dist/Cell/LabelsWithShowMore/LabelsWithShowMore.js +29 -40
  52. package/dist/Cell/LabelsWithShowMore/LabelsWithShowMore.styles.d.ts +3 -3
  53. package/dist/Cell/LabelsWithShowMore/LabelsWithShowMore.styles.js +11 -8
  54. package/dist/Cell/LabelsWithShowMore/LabelsWithShowMore.types.d.ts +2 -2
  55. package/dist/Cell/LabelsWithShowMore/LabelsWithShowMore.types.js +1 -1
  56. package/dist/Cell/LabelsWithShowMore/Modal/Modal.d.ts +2 -2
  57. package/dist/Cell/LabelsWithShowMore/Modal/Modal.js +35 -64
  58. package/dist/Cell/LabelsWithShowMore/Modal/Modal.types.d.ts +3 -3
  59. package/dist/Cell/LabelsWithShowMore/Modal/Modal.types.js +1 -1
  60. package/dist/Cell/Star/StarCell.d.ts +45 -45
  61. package/dist/Cell/Star/StarCell.js +25 -31
  62. package/dist/Cell/Star/StarCell.styles.d.ts +2 -2
  63. package/dist/Cell/Star/StarCell.styles.js +11 -9
  64. package/dist/Cell/Star/StarCell.types.d.ts +2 -2
  65. package/dist/Cell/Star/StarCell.types.js +1 -1
  66. package/dist/Cell/StatusLabel/StatusLabel.d.ts +2 -2
  67. package/dist/Cell/StatusLabel/StatusLabel.js +17 -19
  68. package/dist/Cell/StatusLabel/StatusLabel.styles.d.ts +2 -2
  69. package/dist/Cell/StatusLabel/StatusLabel.styles.js +9 -9
  70. package/dist/Cell/StatusLabel/StatusLabel.types.d.ts +3 -3
  71. package/dist/Cell/StatusLabel/StatusLabel.types.js +1 -1
  72. package/dist/Cell/TagIcon/TagIcon.d.ts +2 -2
  73. package/dist/Cell/TagIcon/TagIcon.js +9 -13
  74. package/dist/Cell/TagIcon/TagIcon.styles.d.ts +1 -1
  75. package/dist/Cell/TagIcon/TagIcon.styles.js +7 -6
  76. package/dist/Cell/TagIcon/TagIcon.types.d.ts +2 -2
  77. package/dist/Cell/TagIcon/TagIcon.types.js +1 -1
  78. package/dist/Cell/TagsGroup/TagsGroup.d.ts +2 -2
  79. package/dist/Cell/TagsGroup/TagsGroup.js +22 -39
  80. package/dist/Cell/TagsGroup/TagsGroup.styles.d.ts +2 -2
  81. package/dist/Cell/TagsGroup/TagsGroup.styles.js +30 -9
  82. package/dist/Cell/TagsGroup/TagsGroup.types.d.ts +2 -2
  83. package/dist/Cell/TagsGroup/TagsGroup.types.js +1 -1
  84. package/dist/Cell/index.d.ts +12 -12
  85. package/dist/Cell/index.js +28 -14
  86. package/dist/ColumnSortMenu/SortIcons.d.ts +2 -2
  87. package/dist/ColumnSortMenu/SortIcons.js +26 -38
  88. package/dist/ColumnSortMenu/SortRender.styles.d.ts +34 -34
  89. package/dist/ColumnSortMenu/SortRender.styles.js +13 -10
  90. package/dist/ColumnSortMenu/SortRenderer.d.ts +2 -2
  91. package/dist/ColumnSortMenu/SortRenderer.js +74 -108
  92. package/dist/ColumnSortMenu/TitleWithSort.d.ts +2 -2
  93. package/dist/ColumnSortMenu/TitleWithSort.js +19 -16
  94. package/dist/ColumnSortMenu/columnWithSortButtons.d.ts +1 -2
  95. package/dist/ColumnSortMenu/columnWithSortButtons.js +26 -43
  96. package/dist/ColumnSortMenu/groupedColumnsSort.d.ts +3 -3
  97. package/dist/ColumnSortMenu/groupedColumnsSort.js +33 -28
  98. package/dist/ColumnSortMenu/replaceSortButtons.d.ts +1 -1
  99. package/dist/ColumnSortMenu/replaceSortButtons.js +14 -15
  100. package/dist/ColumnSortMenu/useSortState.d.ts +1 -1
  101. package/dist/ColumnSortMenu/useSortState.js +95 -93
  102. package/dist/DefaultTable/DefaultTable.d.ts +2 -2
  103. package/dist/DefaultTable/DefaultTable.js +147 -148
  104. package/dist/FilterTrigger/FilterTrigger.d.ts +2 -2
  105. package/dist/FilterTrigger/FilterTrigger.js +42 -67
  106. package/dist/FilterTrigger/FilterTrigger.styles.d.ts +53 -53
  107. package/dist/FilterTrigger/FilterTrigger.styles.js +19 -32
  108. package/dist/FilterTrigger/FilterTrigger.types.d.ts +1 -1
  109. package/dist/FilterTrigger/FilterTrigger.types.js +1 -1
  110. package/dist/GroupTable/GroupTable.d.ts +3 -4
  111. package/dist/GroupTable/GroupTable.js +97 -118
  112. package/dist/GroupTable/GroupTable.styles.d.ts +25 -25
  113. package/dist/GroupTable/GroupTable.styles.js +40 -37
  114. package/dist/GroupTable/GroupTable.types.d.ts +1 -1
  115. package/dist/GroupTable/GroupTable.types.js +9 -6
  116. package/dist/GroupTable/GroupTableBody/GroupTableBody.d.ts +1 -1
  117. package/dist/GroupTable/GroupTableBody/GroupTableBody.js +83 -107
  118. package/dist/GroupTable/GroupTableBody/GroupTableBody.types.d.ts +3 -3
  119. package/dist/GroupTable/GroupTableBody/GroupTableBody.types.js +1 -1
  120. package/dist/GroupTable/GroupTableHeader/GroupTableHeader.d.ts +1 -1
  121. package/dist/GroupTable/GroupTableHeader/GroupTableHeader.js +25 -28
  122. package/dist/GroupTable/GroupTableHeader/GroupTableHeader.types.js +1 -1
  123. package/dist/InfiniteScroll/BackToTopButton.d.ts +2 -2
  124. package/dist/InfiniteScroll/BackToTopButton.js +7 -15
  125. package/dist/InfiniteScroll/BackToTopButton.styles.d.ts +34 -34
  126. package/dist/InfiniteScroll/BackToTopButton.styles.js +11 -9
  127. package/dist/InfiniteScroll/ErrorItem.d.ts +1 -1
  128. package/dist/InfiniteScroll/ErrorItem.js +19 -23
  129. package/dist/InfiniteScroll/ErrorItem.styles.d.ts +1 -1
  130. package/dist/InfiniteScroll/ErrorItem.styles.js +6 -3
  131. package/dist/InfiniteScroll/InfiniteLoaderItem.d.ts +2 -2
  132. package/dist/InfiniteScroll/InfiniteLoaderItem.js +33 -28
  133. package/dist/InfiniteScroll/InfiniteLoaderItem.styles.d.ts +1 -1
  134. package/dist/InfiniteScroll/InfiniteLoaderItem.styles.js +7 -4
  135. package/dist/InfiniteScroll/InfiniteLoaderItem.types.d.ts +1 -1
  136. package/dist/InfiniteScroll/InfiniteLoaderItem.types.js +1 -1
  137. package/dist/InfiniteScroll/LoadingItem.d.ts +1 -1
  138. package/dist/InfiniteScroll/LoadingItem.js +10 -10
  139. package/dist/InfiniteScroll/NoMoreItem.d.ts +1 -1
  140. package/dist/InfiniteScroll/NoMoreItem.js +10 -10
  141. package/dist/InfiniteScroll/OuterListElement.d.ts +1 -1
  142. package/dist/InfiniteScroll/OuterListElement.js +45 -58
  143. package/dist/InfiniteScroll/constants.js +4 -1
  144. package/dist/InfiniteScroll/utils.d.ts +1 -1
  145. package/dist/InfiniteScroll/utils.js +15 -12
  146. package/dist/ItemsMenu/ItemsMenu.d.ts +2 -2
  147. package/dist/ItemsMenu/ItemsMenu.js +7 -6
  148. package/dist/ItemsMenu/ItemsMenu.styles.d.ts +1 -1
  149. package/dist/ItemsMenu/ItemsMenu.styles.js +6 -3
  150. package/dist/ItemsMenu/ItemsMenu.types.d.ts +1 -1
  151. package/dist/ItemsMenu/ItemsMenu.types.js +1 -1
  152. package/dist/RowSelection/RowSelectionColumn.d.ts +3 -3
  153. package/dist/RowSelection/RowSelectionColumn.js +77 -81
  154. package/dist/RowSelection/RowSelectionColumn.types.d.ts +3 -3
  155. package/dist/RowSelection/RowSelectionColumn.types.js +1 -1
  156. package/dist/RowSelection/index.js +4 -1
  157. package/dist/Table.d.ts +2 -4
  158. package/dist/Table.js +94 -129
  159. package/dist/Table.styles.d.ts +23 -23
  160. package/dist/Table.styles.js +86 -110
  161. package/dist/Table.types.d.ts +7 -7
  162. package/dist/Table.types.js +1 -1
  163. package/dist/TableHeader/TableHeader.d.ts +2 -2
  164. package/dist/TableHeader/TableHeader.js +91 -129
  165. package/dist/TableHeader/TableHeader.types.d.ts +2 -2
  166. package/dist/TableHeader/TableHeader.types.js +1 -1
  167. package/dist/TableHeader/TableLimit/TableLimit.d.ts +2 -2
  168. package/dist/TableHeader/TableLimit/TableLimit.js +44 -36
  169. package/dist/TableHeader/TableLimit/TableLimit.styles.d.ts +4 -4
  170. package/dist/TableHeader/TableLimit/TableLimit.styles.js +15 -13
  171. package/dist/TableHeader/TableLimit/TableLimit.types.d.ts +3 -3
  172. package/dist/TableHeader/TableLimit/TableLimit.types.js +1 -1
  173. package/dist/TableHeader/TableLimit/index.js +4 -2
  174. package/dist/TableHeader/TableSelection.d.ts +2 -2
  175. package/dist/TableHeader/TableSelection.js +163 -180
  176. package/dist/TableHeader/TableSelection.types.d.ts +1 -1
  177. package/dist/TableHeader/TableSelection.types.js +1 -1
  178. package/dist/TreeTable/TreeTable.d.ts +2 -3
  179. package/dist/TreeTable/TreeTable.js +51 -78
  180. package/dist/TreeTable/TreeTable.styles.d.ts +5 -5
  181. package/dist/TreeTable/TreeTable.styles.js +21 -20
  182. package/dist/VirtualTable/VirtualTable.d.ts +3 -3
  183. package/dist/VirtualTable/VirtualTable.js +342 -411
  184. package/dist/VirtualTable/VirtualTable.styles.d.ts +8 -8
  185. package/dist/VirtualTable/VirtualTable.styles.js +30 -40
  186. package/dist/VirtualTable/VirtualTable.types.d.ts +4 -4
  187. package/dist/VirtualTable/VirtualTable.types.js +1 -1
  188. package/dist/VirtualTable/VirtualTableRow.d.ts +4 -4
  189. package/dist/VirtualTable/VirtualTableRow.js +103 -111
  190. package/dist/VirtualTable/constants.js +8 -3
  191. package/dist/assets/style/index-tn0RQdqM.css +0 -0
  192. package/dist/constants/Table.constants.js +11 -6
  193. package/dist/constants/TableSkeleton.constants.d.ts +1 -1
  194. package/dist/constants/TableSkeleton.constants.js +48 -100
  195. package/dist/hooks/useBulkSelection/index.js +4 -1
  196. package/dist/hooks/useBulkSelection/useBulkSelection.d.ts +1 -1
  197. package/dist/hooks/useBulkSelection/useBulkSelection.js +55 -40
  198. package/dist/hooks/useRowKey/index.js +4 -1
  199. package/dist/hooks/useRowKey/useRowKey.js +11 -11
  200. package/dist/hooks/useRowStar/index.js +4 -2
  201. package/dist/hooks/useRowStar/useRowStar.d.ts +1 -1
  202. package/dist/hooks/useRowStar/useRowStar.js +54 -62
  203. package/dist/hooks/useRowStar/useRowStar.types.d.ts +2 -2
  204. package/dist/hooks/useRowStar/useRowStar.types.js +1 -1
  205. package/dist/index.d.ts +4 -4
  206. package/dist/index.js +18 -9
  207. package/dist/modules.d.js +1 -1
  208. package/dist/modules.d.ts +0 -0
  209. package/dist/utils/calculateColumnWidths.d.ts +1 -1
  210. package/dist/utils/calculateColumnWidths.js +17 -16
  211. package/dist/utils/calculatePixels.js +11 -12
  212. package/dist/utils/columnWithCellTooltip.d.ts +1 -1
  213. package/dist/utils/columnWithCellTooltip.js +18 -15
  214. package/dist/utils/getChildrenColumnName.js +6 -3
  215. package/dist/utils/getRecordSelectionStatus.d.ts +1 -1
  216. package/dist/utils/getRecordSelectionStatus.js +11 -7
  217. package/dist/utils/getSkeletonProps.d.ts +1 -1
  218. package/dist/utils/getSkeletonProps.js +26 -36
  219. package/dist/utils/getValueFromPath.js +9 -6
  220. package/dist/utils/index.js +23 -9
  221. package/dist/utils/isGrouped.d.ts +1 -1
  222. package/dist/utils/isGrouped.js +6 -3
  223. package/dist/utils/isRecordSelectable.d.ts +1 -1
  224. package/dist/utils/isRecordSelectable.js +10 -6
  225. package/dist/utils/locale.d.ts +3 -3
  226. package/dist/utils/locale.js +115 -111
  227. package/package.json +31 -31
  228. package/dist/Cell/TagsGroup/TagsGroup.spec.d.ts +0 -1
  229. package/dist/ColumnSortMenu/__spec__/groupedColumnsSort.spec.d.ts +0 -1
  230. package/dist/VirtualTable/VirtualTable.spec.d.ts +0 -1
  231. package/dist/utils/__specs__/getValueFromPath.spec.d.ts +0 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.9.12](https://github.com/synerise/synerise-design/compare/@synerise/ds-table@1.9.11...@synerise/ds-table@1.9.12) (2026-03-24)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-table
9
+
6
10
  ## [1.9.11](https://github.com/synerise/synerise-design/compare/@synerise/ds-table@1.9.10...@synerise/ds-table@1.9.11) (2026-03-20)
7
11
 
8
12
  **Note:** Version bump only for package @synerise/ds-table
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- import { type ActionCellProps } from './ActionCell.types';
1
+ import { default as React } from 'react';
2
+ import { ActionCellProps } from './ActionCell.types';
3
3
  declare const _default: React.MemoExoticComponent<({ children, gapSize, contentAlign, ...htmlAttributes }: ActionCellProps) => React.JSX.Element>;
4
4
  export default _default;
@@ -1,19 +1,16 @@
1
- var _excluded = ["children", "gapSize", "contentAlign"];
2
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
4
- import React from 'react';
5
- import * as S from './ActionCell.styles';
6
- var DEFAULT_GAP_SIZE = 24;
7
- var ActionCell = function ActionCell(_ref) {
8
- var children = _ref.children,
9
- _ref$gapSize = _ref.gapSize,
10
- gapSize = _ref$gapSize === void 0 ? DEFAULT_GAP_SIZE : _ref$gapSize,
11
- _ref$contentAlign = _ref.contentAlign,
12
- contentAlign = _ref$contentAlign === void 0 ? 'right' : _ref$contentAlign,
13
- htmlAttributes = _objectWithoutPropertiesLoose(_ref, _excluded);
14
- return /*#__PURE__*/React.createElement(S.ActionCell, _extends({
15
- gapSize: gapSize,
16
- contentAlign: contentAlign
17
- }, htmlAttributes), children);
1
+ import { jsx } from "react/jsx-runtime";
2
+ import React from "react";
3
+ import { ActionCell as ActionCell$1 } from "./ActionCell.styles.js";
4
+ const DEFAULT_GAP_SIZE = 24;
5
+ const ActionCell = ({
6
+ children,
7
+ gapSize = DEFAULT_GAP_SIZE,
8
+ contentAlign = "right",
9
+ ...htmlAttributes
10
+ }) => {
11
+ return /* @__PURE__ */ jsx(ActionCell$1, { gapSize, contentAlign, ...htmlAttributes, children });
12
+ };
13
+ const ActionCell_default = React.memo(ActionCell);
14
+ export {
15
+ ActionCell_default as default
18
16
  };
19
- export default /*#__PURE__*/React.memo(ActionCell);
@@ -1,5 +1,5 @@
1
- import { type ContentAlign } from './ActionCell.types';
2
- export declare const ActionCell: import("styled-components").StyledComponent<"div", any, {
1
+ import { ContentAlign } from './ActionCell.types';
2
+ export declare const ActionCell: import('styled-components').StyledComponent<"div", any, {
3
3
  gapSize: number;
4
4
  contentAlign: ContentAlign;
5
5
  }, never>;
@@ -1,14 +1,13 @@
1
- import styled from 'styled-components';
2
- var align = {
3
- left: 'flex-start',
4
- right: 'flex-end',
5
- center: 'center'
1
+ import styled from "styled-components";
2
+ const align = {
3
+ left: "flex-start",
4
+ right: "flex-end",
5
+ center: "center"
6
6
  };
7
- export var ActionCell = styled.div.withConfig({
7
+ const ActionCell = /* @__PURE__ */ styled.div.withConfig({
8
8
  displayName: "ActionCellstyles__ActionCell",
9
9
  componentId: "sc-d77fu5-0"
10
- })(["display:flex;align-items:center;justify-content:", ";gap:", ";"], function (props) {
11
- return align[props.contentAlign];
12
- }, function (props) {
13
- return props.gapSize + "px";
14
- });
10
+ })(["display:flex;align-items:center;justify-content:", ";gap:", ";"], (props) => align[props.contentAlign], (props) => `${props.gapSize}px`);
11
+ export {
12
+ ActionCell
13
+ };
@@ -1,5 +1,5 @@
1
- import { type ReactNode } from 'react';
2
- import { type WithHTMLAttributes } from '@synerise/ds-utils';
1
+ import { ReactNode } from 'react';
2
+ import { WithHTMLAttributes } from '@synerise/ds-utils';
3
3
  export type ContentAlign = 'left' | 'right' | 'center';
4
4
  export type ActionCellProps = WithHTMLAttributes<HTMLDivElement, {
5
5
  children: ReactNode | ReactNode[];
@@ -1 +1 @@
1
- export {};
1
+
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- import { type AvatarLabelProps } from './AvatarLabel.types';
1
+ import { default as React } from 'react';
2
+ import { AvatarLabelProps } from './AvatarLabel.types';
3
3
  declare const AvatarLabel: ({ avatar, avatarAction, avatarLink, title, labels, icon, ellipsis, maxWidth, avatarSize, loader, disabled, ...htmlAttributes }: AvatarLabelProps) => React.JSX.Element;
4
4
  export default AvatarLabel;
@@ -1,54 +1,43 @@
1
- var _excluded = ["avatar", "avatarAction", "avatarLink", "title", "labels", "icon", "ellipsis", "maxWidth", "avatarSize", "loader", "disabled"];
2
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
4
- import React from 'react';
5
- import { v4 as uuid } from 'uuid';
6
- import * as S from './AvatarLabel.styles';
7
- var AvatarLabel = function AvatarLabel(_ref) {
8
- var avatar = _ref.avatar,
9
- avatarAction = _ref.avatarAction,
10
- avatarLink = _ref.avatarLink,
11
- title = _ref.title,
12
- labels = _ref.labels,
13
- icon = _ref.icon,
14
- ellipsis = _ref.ellipsis,
15
- maxWidth = _ref.maxWidth,
16
- avatarSize = _ref.avatarSize,
17
- loader = _ref.loader,
18
- disabled = _ref.disabled,
19
- htmlAttributes = _objectWithoutPropertiesLoose(_ref, _excluded);
20
- var titleEllipsisProps = ellipsis ? {
1
+ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
+ import { v4 } from "uuid";
3
+ import { Icon, Avatar, Description, Title, Labels, Label, Loader, AvatarLabel as AvatarLabel$1, AvatarLink } from "./AvatarLabel.styles.js";
4
+ const AvatarLabel = ({
5
+ avatar,
6
+ avatarAction,
7
+ avatarLink,
8
+ title,
9
+ labels,
10
+ icon,
11
+ ellipsis,
12
+ maxWidth,
13
+ avatarSize,
14
+ loader,
15
+ disabled,
16
+ ...htmlAttributes
17
+ }) => {
18
+ const titleEllipsisProps = ellipsis ? {
21
19
  ellipsis: {
22
20
  tooltip: title
23
21
  }
24
22
  } : {};
25
- var handleLinkClick = function handleLinkClick(event) {
23
+ const handleLinkClick = (event) => {
26
24
  if (event.metaKey || event.ctrlKey) {
27
25
  event.stopPropagation();
28
26
  } else if (avatarAction) {
29
27
  event.preventDefault();
30
28
  }
31
29
  };
32
- var cellContent = /*#__PURE__*/React.createElement(React.Fragment, null, icon && /*#__PURE__*/React.createElement(S.Icon, null, icon), /*#__PURE__*/React.createElement(S.Avatar, {
33
- clickable: Boolean(avatarAction)
34
- }, avatar), /*#__PURE__*/React.createElement(S.Description, null, /*#__PURE__*/React.createElement(S.Title, _extends({}, titleEllipsisProps, {
35
- hasEllipsis: ellipsis,
36
- maxWidth: maxWidth,
37
- avatarSize: avatarSize
38
- }), title), labels && /*#__PURE__*/React.createElement(S.Labels, {
39
- ellipsis: Boolean(ellipsis),
40
- maxWidth: maxWidth
41
- }, labels == null ? void 0 : labels.map(function (label) {
42
- return /*#__PURE__*/React.createElement(S.Label, {
43
- key: uuid()
44
- }, label);
45
- })), loader && /*#__PURE__*/React.createElement(S.Loader, null, loader)));
46
- return /*#__PURE__*/React.createElement(S.AvatarLabel, _extends({}, htmlAttributes, {
47
- isDisabled: disabled,
48
- onClick: avatarAction
49
- }), avatarLink ? /*#__PURE__*/React.createElement(S.AvatarLink, {
50
- href: avatarLink,
51
- onClick: handleLinkClick
52
- }, cellContent) : cellContent);
30
+ const cellContent = /* @__PURE__ */ jsxs(Fragment, { children: [
31
+ icon && /* @__PURE__ */ jsx(Icon, { children: icon }),
32
+ /* @__PURE__ */ jsx(Avatar, { clickable: Boolean(avatarAction), children: avatar }),
33
+ /* @__PURE__ */ jsxs(Description, { children: [
34
+ /* @__PURE__ */ jsx(Title, { ...titleEllipsisProps, hasEllipsis: ellipsis, maxWidth, avatarSize, children: title }),
35
+ labels && /* @__PURE__ */ jsx(Labels, { ellipsis: Boolean(ellipsis), maxWidth, children: labels?.map((label) => /* @__PURE__ */ jsx(Label, { children: label }, v4())) }),
36
+ loader && /* @__PURE__ */ jsx(Loader, { children: loader })
37
+ ] })
38
+ ] });
39
+ return /* @__PURE__ */ jsx(AvatarLabel$1, { ...htmlAttributes, isDisabled: disabled, onClick: avatarAction, children: avatarLink ? /* @__PURE__ */ jsx(AvatarLink, { href: avatarLink, onClick: handleLinkClick, children: cellContent }) : cellContent });
40
+ };
41
+ export {
42
+ AvatarLabel as default
53
43
  };
54
- export default AvatarLabel;
@@ -1,27 +1,27 @@
1
- export declare const AvatarLabel: import("styled-components").StyledComponent<"div", any, {
1
+ export declare const AvatarLabel: import('styled-components').StyledComponent<"div", any, {
2
2
  onClick?: () => void;
3
3
  isDisabled?: boolean;
4
4
  }, never>;
5
- export declare const Avatar: import("styled-components").StyledComponent<"div", any, {
5
+ export declare const Avatar: import('styled-components').StyledComponent<"div", any, {
6
6
  clickable: boolean;
7
7
  }, never>;
8
- export declare const Description: import("styled-components").StyledComponent<"div", any, {}, never>;
9
- export declare const AvatarLink: import("styled-components").StyledComponent<"a", any, {}, never>;
10
- export declare const Title: import("styled-components").StyledComponent<({ size, className, children, ellipsis, style, }: {
11
- size?: import("@synerise/ds-typography").TextSize;
12
- ellipsis?: import("@synerise/ds-typography/dist/Ellipsis").EllipsisProps;
13
- children?: import("react").ReactNode;
8
+ export declare const Description: import('styled-components').StyledComponent<"div", any, {}, never>;
9
+ export declare const AvatarLink: import('styled-components').StyledComponent<"a", any, {}, never>;
10
+ export declare const Title: import('styled-components').StyledComponent<({ size, className, children, ellipsis, style, }: {
11
+ size?: import('@synerise/ds-typography').TextSize;
12
+ ellipsis?: import('@synerise/ds-typography/dist/Ellipsis').EllipsisProps;
13
+ children?: import('react').ReactNode;
14
14
  className?: string;
15
- style?: import("react").CSSProperties;
15
+ style?: import('react').CSSProperties;
16
16
  }) => React.JSX.Element, any, {
17
17
  hasEllipsis?: boolean;
18
18
  maxWidth: number | undefined;
19
19
  avatarSize?: string | "large";
20
20
  }, never>;
21
- export declare const Labels: import("styled-components").StyledComponent<"span", any, {
21
+ export declare const Labels: import('styled-components').StyledComponent<"span", any, {
22
22
  ellipsis: boolean;
23
23
  maxWidth: number | undefined;
24
24
  }, never>;
25
- export declare const Label: import("styled-components").StyledComponent<"span", any, {}, never>;
26
- export declare const Icon: import("styled-components").StyledComponent<"div", any, {}, never>;
27
- export declare const Loader: import("styled-components").StyledComponent<"div", any, {}, never>;
25
+ export declare const Label: import('styled-components').StyledComponent<"span", any, {}, never>;
26
+ export declare const Icon: import('styled-components').StyledComponent<"div", any, {}, never>;
27
+ export declare const Loader: import('styled-components').StyledComponent<"div", any, {}, never>;
@@ -1,50 +1,49 @@
1
- import styled, { css } from 'styled-components';
2
- import { Text } from '@synerise/ds-typography';
3
- export var AvatarLabel = styled.div.withConfig({
1
+ import styled, { css } from "styled-components";
2
+ import { Text } from "@synerise/ds-typography";
3
+ const AvatarLabel = /* @__PURE__ */ styled.div.withConfig({
4
4
  displayName: "AvatarLabelstyles__AvatarLabel",
5
5
  componentId: "sc-1485c9p-0"
6
- })(["display:inline-flex;min-width:0;align-items:center;justify-content:flex-start;max-width:100%;", ";", ";"], function (props) {
7
- return props.isDisabled && 'opacity: 0.4';
8
- }, function (props) {
9
- return props.onClick !== undefined ? 'cursor: pointer' : '';
10
- });
11
- export var Avatar = styled.div.withConfig({
6
+ })(["display:inline-flex;min-width:0;align-items:center;justify-content:flex-start;max-width:100%;", ";", ";"], (props) => props.isDisabled && "opacity: 0.4", (props) => props.onClick !== void 0 ? "cursor: pointer" : "");
7
+ const Avatar = /* @__PURE__ */ styled.div.withConfig({
12
8
  displayName: "AvatarLabelstyles__Avatar",
13
9
  componentId: "sc-1485c9p-1"
14
- })(["margin-right:16px;display:flex;align-items:center;justify-content:center;", ";"], function (props) {
15
- return props.clickable ? 'cursor: pointer' : '';
16
- });
17
- export var Description = styled.div.withConfig({
10
+ })(["margin-right:16px;display:flex;align-items:center;justify-content:center;", ";"], (props) => props.clickable ? "cursor: pointer" : "");
11
+ const Description = /* @__PURE__ */ styled.div.withConfig({
18
12
  displayName: "AvatarLabelstyles__Description",
19
13
  componentId: "sc-1485c9p-2"
20
14
  })(["display:flex;min-width:0;flex-direction:column;align-items:flex-start;justify-content:center;max-width:100%;"]);
21
- export var AvatarLink = styled.a.withConfig({
15
+ const AvatarLink = /* @__PURE__ */ styled.a.withConfig({
22
16
  displayName: "AvatarLabelstyles__AvatarLink",
23
17
  componentId: "sc-1485c9p-3"
24
18
  })(["display:flex;min-width:0;color:inherit;&:hover,&:active,&:focus{text-decoration:none;color:inherit;}"]);
25
- export var Title = styled(Text).withConfig({
19
+ const Title = /* @__PURE__ */ styled(Text).withConfig({
26
20
  displayName: "AvatarLabelstyles__Title",
27
21
  componentId: "sc-1485c9p-4"
28
- })(["font-size:14px;line-height:20px;color:", ";font-weight:500;", ";"], function (props) {
29
- return props.theme.palette['grey-700'];
30
- }, function (props) {
31
- return Boolean(props.ellipsis) && css(["max-width:", ";"], props.maxWidth ? props.maxWidth + "px" : '100%');
32
- });
33
- export var Labels = styled.span.withConfig({
22
+ })(["font-size:14px;line-height:20px;color:", ";font-weight:500;", ";"], (props) => props.theme.palette["grey-700"], (props) => Boolean(props.ellipsis) && css(["max-width:", ";"], props.maxWidth ? `${props.maxWidth}px` : "100%"));
23
+ const Labels = /* @__PURE__ */ styled.span.withConfig({
34
24
  displayName: "AvatarLabelstyles__Labels",
35
25
  componentId: "sc-1485c9p-5"
36
- })(["font-size:13px;line-height:1.38;font-weight:400;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;max-width:100%;color:", ";"], function (props) {
37
- return props.theme.palette['grey-700'];
38
- });
39
- export var Label = styled.span.withConfig({
26
+ })(["font-size:13px;line-height:1.38;font-weight:400;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;max-width:100%;color:", ";"], (props) => props.theme.palette["grey-700"]);
27
+ const Label = /* @__PURE__ */ styled.span.withConfig({
40
28
  displayName: "AvatarLabelstyles__Label",
41
29
  componentId: "sc-1485c9p-6"
42
30
  })([""]);
43
- export var Icon = styled.div.withConfig({
31
+ const Icon = /* @__PURE__ */ styled.div.withConfig({
44
32
  displayName: "AvatarLabelstyles__Icon",
45
33
  componentId: "sc-1485c9p-7"
46
34
  })(["margin-right:8px;"]);
47
- export var Loader = styled.div.withConfig({
35
+ const Loader = /* @__PURE__ */ styled.div.withConfig({
48
36
  displayName: "AvatarLabelstyles__Loader",
49
37
  componentId: "sc-1485c9p-8"
50
- })([""]);
38
+ })([""]);
39
+ export {
40
+ Avatar,
41
+ AvatarLabel,
42
+ AvatarLink,
43
+ Description,
44
+ Icon,
45
+ Label,
46
+ Labels,
47
+ Loader,
48
+ Title
49
+ };
@@ -1,5 +1,5 @@
1
- import { type ReactElement, type ReactNode } from 'react';
2
- import type { WithHTMLAttributes } from '@synerise/ds-utils';
1
+ import { ReactElement, ReactNode } from 'react';
2
+ import { WithHTMLAttributes } from '@synerise/ds-utils';
3
3
  export type AvatarLabelProps = WithHTMLAttributes<HTMLDivElement, {
4
4
  avatar: ReactElement;
5
5
  avatarAction?: () => void;
@@ -1 +1 @@
1
- export {};
1
+
@@ -1,2 +1,2 @@
1
- export declare const CopyableValue: import("styled-components").StyledComponent<"div", any, {}, never>;
2
- export declare const Copyable: import("styled-components").StyledComponent<"div", any, {}, never>;
1
+ export declare const CopyableValue: import('styled-components').StyledComponent<"div", any, {}, never>;
2
+ export declare const Copyable: import('styled-components').StyledComponent<"div", any, {}, never>;
@@ -1,20 +1,14 @@
1
- import styled from 'styled-components';
2
- import { IconContainer } from '@synerise/ds-icon';
3
- export var CopyableValue = styled.div.withConfig({
1
+ import styled from "styled-components";
2
+ import { IconContainer } from "@synerise/ds-icon";
3
+ const CopyableValue = /* @__PURE__ */ styled.div.withConfig({
4
4
  displayName: "Copyablestyles__CopyableValue",
5
5
  componentId: "sc-bj73sz-0"
6
6
  })(["overflow:hidden;white-space:nowrap;text-overflow:ellipsis;"]);
7
- export var Copyable = styled.div.withConfig({
7
+ const Copyable = /* @__PURE__ */ styled.div.withConfig({
8
8
  displayName: "Copyablestyles__Copyable",
9
9
  componentId: "sc-bj73sz-1"
10
- })(["display:flex;align-items:center;justify-content:space-between;&:hover{color:", ";", "{opacity:1;visibility:visible;}}", "{opacity:0;visibility:hidden;svg{fill:", ";color:", ";}&:hover{svg{fill:", ";color:", ";}}}"], function (props) {
11
- return props.theme.palette['grey-800'];
12
- }, IconContainer, IconContainer, function (props) {
13
- return props.theme.palette['grey-400'];
14
- }, function (props) {
15
- return props.theme.palette['grey-400'];
16
- }, function (props) {
17
- return props.theme.palette['blue-600'];
18
- }, function (props) {
19
- return props.theme.palette['blue-600'];
20
- });
10
+ })(["display:flex;align-items:center;justify-content:space-between;&:hover{color:", ";", "{opacity:1;visibility:visible;}}", "{opacity:0;visibility:hidden;svg{fill:", ";color:", ";}&:hover{svg{fill:", ";color:", ";}}}"], (props) => props.theme.palette["grey-800"], IconContainer, IconContainer, (props) => props.theme.palette["grey-400"], (props) => props.theme.palette["grey-400"], (props) => props.theme.palette["blue-600"], (props) => props.theme.palette["blue-600"]);
11
+ export {
12
+ Copyable,
13
+ CopyableValue
14
+ };
@@ -1,4 +1,4 @@
1
- import { type WithHTMLAttributes } from '@synerise/ds-utils';
1
+ import { WithHTMLAttributes } from '@synerise/ds-utils';
2
2
  export type CopyableCellProps = WithHTMLAttributes<HTMLDivElement, {
3
3
  value: string;
4
4
  confirmMessage: string;
@@ -1 +1 @@
1
- export {};
1
+
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- import { type CopyableCellProps } from './Copyable.types';
1
+ import { default as React } from 'react';
2
+ import { CopyableCellProps } from './Copyable.types';
3
3
  declare const CopyableCell: ({ value, confirmMessage, tooltipTimeout, ...htmlAttributes }: CopyableCellProps) => React.JSX.Element;
4
4
  export default CopyableCell;
@@ -1,32 +1,28 @@
1
- var _excluded = ["value", "confirmMessage", "tooltipTimeout"];
2
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
3
- import React, { useEffect, useState } from 'react';
4
- import CopyIcon from '@synerise/ds-copy-icon';
5
- import * as S from './Copyable.styles';
6
- var DEFAULT_TIMEOUT = 2000;
7
- var CopyableCell = function CopyableCell(_ref) {
8
- var value = _ref.value,
9
- confirmMessage = _ref.confirmMessage,
10
- _ref$tooltipTimeout = _ref.tooltipTimeout,
11
- tooltipTimeout = _ref$tooltipTimeout === void 0 ? DEFAULT_TIMEOUT : _ref$tooltipTimeout,
12
- htmlAttributes = _objectWithoutPropertiesLoose(_ref, _excluded);
13
- var _useState = useState(false),
14
- tooltipOpen = _useState[0],
15
- setTooltipOpen = _useState[1];
16
- useEffect(function () {
17
- var timer = setTimeout(function () {
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import { useState, useEffect } from "react";
3
+ import CopyIcon from "@synerise/ds-copy-icon";
4
+ import { Copyable, CopyableValue } from "./Copyable.styles.js";
5
+ const DEFAULT_TIMEOUT = 2e3;
6
+ const CopyableCell = ({
7
+ value,
8
+ confirmMessage,
9
+ tooltipTimeout = DEFAULT_TIMEOUT,
10
+ ...htmlAttributes
11
+ }) => {
12
+ const [tooltipOpen, setTooltipOpen] = useState(false);
13
+ useEffect(() => {
14
+ const timer = setTimeout(() => {
18
15
  setTooltipOpen(false);
19
16
  }, tooltipTimeout);
20
- return function () {
21
- return clearTimeout(timer);
22
- };
17
+ return () => clearTimeout(timer);
23
18
  }, [tooltipOpen, setTooltipOpen, tooltipTimeout]);
24
- return /*#__PURE__*/React.createElement(S.Copyable, htmlAttributes, /*#__PURE__*/React.createElement(S.CopyableValue, null, value), /*#__PURE__*/React.createElement(CopyIcon, {
25
- copyValue: value,
26
- placement: "left",
27
- texts: {
19
+ return /* @__PURE__ */ jsxs(Copyable, { ...htmlAttributes, children: [
20
+ /* @__PURE__ */ jsx(CopyableValue, { children: value }),
21
+ /* @__PURE__ */ jsx(CopyIcon, { copyValue: value, placement: "left", texts: {
28
22
  copiedTooltip: confirmMessage
29
- }
30
- }));
23
+ } })
24
+ ] });
25
+ };
26
+ export {
27
+ CopyableCell as default
31
28
  };
32
- export default CopyableCell;
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- import { type EditableCellProps } from './EditableCell.types';
1
+ import { default as React } from 'react';
2
+ import { EditableCellProps } from './EditableCell.types';
3
3
  declare const EditableCell: ({ value, onChange, placeholder, ...htmlAttributes }: EditableCellProps) => React.JSX.Element;
4
4
  export default EditableCell;
@@ -1,43 +1,30 @@
1
- var _excluded = ["value", "onChange", "placeholder"];
2
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
3
- import React, { useCallback, useMemo, useState } from 'react';
4
- import Icon, { EditNolineS } from '@synerise/ds-icon';
5
- import { Input } from '@synerise/ds-input';
6
- import * as S from './EditableCell.styles';
7
- var EditableCell = function EditableCell(_ref) {
8
- var value = _ref.value,
9
- onChange = _ref.onChange,
10
- placeholder = _ref.placeholder,
11
- htmlAttributes = _objectWithoutPropertiesLoose(_ref, _excluded);
12
- var _useState = useState(false),
13
- editMode = _useState[0],
14
- setEditMode = _useState[1];
15
- var _useState2 = useState(value || ''),
16
- editValue = _useState2[0],
17
- setEditValue = _useState2[1];
18
- var enterEditMode = useCallback(function () {
1
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
+ import { useState, useCallback, useMemo } from "react";
3
+ import Icon, { EditNolineS } from "@synerise/ds-icon";
4
+ import { Input } from "@synerise/ds-input";
5
+ import { Value, EditableCell as EditableCell$1 } from "./EditableCell.styles.js";
6
+ const EditableCell = ({
7
+ value,
8
+ onChange,
9
+ placeholder,
10
+ ...htmlAttributes
11
+ }) => {
12
+ const [editMode, setEditMode] = useState(false);
13
+ const [editValue, setEditValue] = useState(value || "");
14
+ const enterEditMode = useCallback(() => {
19
15
  setEditMode(true);
20
16
  }, [setEditMode]);
21
- var render = useMemo(function () {
22
- return editMode ? /*#__PURE__*/React.createElement(Input, {
23
- value: editValue,
24
- autoFocus: true,
25
- resetMargin: true,
26
- placeholder: placeholder,
27
- onChange: function onChange(event) {
28
- return setEditValue(event.target.value);
29
- },
30
- onBlur: function onBlur() {
31
- setEditMode(false);
32
- onChange(editValue);
33
- }
34
- }) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(S.Value, {
35
- asPlaceholder: !value
36
- }, value || placeholder), /*#__PURE__*/React.createElement(Icon, {
37
- onClick: enterEditMode,
38
- component: /*#__PURE__*/React.createElement(EditNolineS, null)
39
- }));
17
+ const render = useMemo(() => {
18
+ return editMode ? /* @__PURE__ */ jsx(Input, { value: editValue, autoFocus: true, resetMargin: true, placeholder, onChange: (event) => setEditValue(event.target.value), onBlur: () => {
19
+ setEditMode(false);
20
+ onChange(editValue);
21
+ } }) : /* @__PURE__ */ jsxs(Fragment, { children: [
22
+ /* @__PURE__ */ jsx(Value, { asPlaceholder: !value, children: value || placeholder }),
23
+ /* @__PURE__ */ jsx(Icon, { onClick: enterEditMode, component: /* @__PURE__ */ jsx(EditNolineS, {}) })
24
+ ] });
40
25
  }, [editMode, value, enterEditMode, editValue, setEditValue, onChange, placeholder]);
41
- return /*#__PURE__*/React.createElement(S.EditableCell, htmlAttributes, render);
26
+ return /* @__PURE__ */ jsx(EditableCell$1, { ...htmlAttributes, children: render });
27
+ };
28
+ export {
29
+ EditableCell as default
42
30
  };
43
- export default EditableCell;
@@ -1,4 +1,4 @@
1
- export declare const EditableCell: import("styled-components").StyledComponent<"div", any, {}, never>;
2
- export declare const Value: import("styled-components").StyledComponent<"span", any, {
1
+ export declare const EditableCell: import('styled-components').StyledComponent<"div", any, {}, never>;
2
+ export declare const Value: import('styled-components').StyledComponent<"span", any, {
3
3
  asPlaceholder: boolean;
4
4
  }, never>;
@@ -1,12 +1,14 @@
1
- import styled from 'styled-components';
2
- import { IconContainer } from '@synerise/ds-icon';
3
- export var EditableCell = styled.div.withConfig({
1
+ import styled from "styled-components";
2
+ import { IconContainer } from "@synerise/ds-icon";
3
+ const EditableCell = /* @__PURE__ */ styled.div.withConfig({
4
4
  displayName: "EditableCellstyles__EditableCell",
5
5
  componentId: "sc-ahr0lx-0"
6
6
  })(["display:flex;align-items:center;justify-content:flex-start;&:hover{", "{opacity:1;visibility:visible;}}", "{transition:all 0.3s ease;opacity:0;visibility:hidden;}"], IconContainer, IconContainer);
7
- export var Value = styled.span.withConfig({
7
+ const Value = /* @__PURE__ */ styled.span.withConfig({
8
8
  displayName: "EditableCellstyles__Value",
9
9
  componentId: "sc-ahr0lx-1"
10
- })(["color:", ";"], function (props) {
11
- return props.asPlaceholder ? props.theme.palette['grey-400'] : 'inherit';
12
- });
10
+ })(["color:", ";"], (props) => props.asPlaceholder ? props.theme.palette["grey-400"] : "inherit");
11
+ export {
12
+ EditableCell,
13
+ Value
14
+ };
@@ -1,4 +1,4 @@
1
- import { type WithHTMLAttributes } from '@synerise/ds-utils';
1
+ import { WithHTMLAttributes } from '@synerise/ds-utils';
2
2
  export type EditableCellProps = WithHTMLAttributes<HTMLDivElement, {
3
3
  value?: string;
4
4
  onChange: (newValue: string) => void;
@@ -1 +1 @@
1
- export {};
1
+
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- import { type FlagLabelProps } from './FlagLabelCell.types';
1
+ import { default as React } from 'react';
2
+ import { FlagLabelProps } from './FlagLabelCell.types';
3
3
  declare const FlagLabelCell: ({ countryCode, label, ...htmlAttributes }: FlagLabelProps) => React.JSX.Element;
4
4
  export default FlagLabelCell;