@clickhouse/click-ui 0.0.124 → 0.0.126

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.
@@ -8731,6 +8731,7 @@ const Accordion = ({
8731
8731
  color,
8732
8732
  icon,
8733
8733
  iconSize,
8734
+ gap,
8734
8735
  children,
8735
8736
  ...delegated
8736
8737
  }) => /* @__PURE__ */ jsxRuntimeExports.jsx($1bf158f521e1b1b4$export$be92b6f5f03c0fe9, { type: "single", collapsible: true, ...delegated, children: /* @__PURE__ */ jsxRuntimeExports.jsxs($1bf158f521e1b1b4$export$6d08773d2e66f8f2, { value: "item", children: [
@@ -8739,8 +8740,9 @@ const Accordion = ({
8739
8740
  /* @__PURE__ */ jsxRuntimeExports.jsx(AccordionIconWrapper, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: "chevron-right", size: iconSize || size2, "aria-label": "accordion icon" }) }),
8740
8741
  icon ? /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: icon, size: iconSize || size2 }) : null
8741
8742
  ] }),
8742
- /* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: title })
8743
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { size: size2, children: title })
8743
8744
  ] }),
8745
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Spacer, { size: gap }),
8744
8746
  /* @__PURE__ */ jsxRuntimeExports.jsx(AccordionContent, { children })
8745
8747
  ] }) });
8746
8748
  const AccordionTrigger = styled($1bf158f521e1b1b4$export$41fb9f06171c75f4).withConfig({
@@ -16934,7 +16936,7 @@ const useSelectionActions = ({
16934
16936
  let action = null;
16935
16937
  if (moveAnchor) {
16936
16938
  if (selection.type === "rows") {
16937
- const row = clamp2(selection.anchorRow + rowDiff, 0, rowCount - 1);
16939
+ const row = clamp2(selection.anchorRow + rowDiff, 0, rowCount + rowStart - 1);
16938
16940
  action = {
16939
16941
  type: "shiftRowSelection",
16940
16942
  row,
@@ -16948,7 +16950,7 @@ const useSelectionActions = ({
16948
16950
  event
16949
16951
  };
16950
16952
  } else if (selection.type === "rectangle") {
16951
- const row = clamp2(selection.anchor.row + rowDiff, 0, rowCount - 1);
16953
+ const row = clamp2(selection.anchor.row + rowDiff, 0, rowCount + rowStart - 1);
16952
16954
  const column = clamp2(selection.anchor.column + columnDiff, 0, columnCount - 1);
16953
16955
  action = {
16954
16956
  type: "shiftSelection",
@@ -16958,7 +16960,7 @@ const useSelectionActions = ({
16958
16960
  };
16959
16961
  }
16960
16962
  } else {
16961
- const row = clamp2(focus.row + rowDiff, 0, rowCount - 1);
16963
+ const row = clamp2(focus.row + rowDiff, 0, rowCount + rowStart - 1);
16962
16964
  const column = clamp2(focus.column + columnDiff, 0, columnCount - 1);
16963
16965
  action = {
16964
16966
  type: "normal",
@@ -16971,7 +16973,7 @@ const useSelectionActions = ({
16971
16973
  onSelection(action);
16972
16974
  }
16973
16975
  return action;
16974
- }, [onSelection, columnCount, rowCount, selection, focus]);
16976
+ }, [onSelection, columnCount, rowCount, selection, focus, rowStart]);
16975
16977
  const getSelectionType = useCallback((args) => {
16976
16978
  if (args.type === "all") {
16977
16979
  const isSelected = cellRectSelected(selection, 0, rowStart, columnCount - 1, rowCount + rowStart - 1);
@@ -32164,8 +32166,23 @@ const InputElement = styled.input.withConfig({
32164
32166
  color: ${theme2.click.field.color.placeholder.default};
32165
32167
  }
32166
32168
  `);
32167
- const TextAreaElement = styled.textarea.withConfig({
32169
+ const NumberInputElement = styled(InputElement).withConfig({
32168
32170
  componentId: "sc-1pvd2nj-2"
32171
+ })(["", ""], ({
32172
+ $hideControls
32173
+ }) => `
32174
+ ${$hideControls ? `
32175
+ &::-webkit-outer-spin-button,
32176
+ &::-webkit-inner-spin-button {
32177
+ -webkit-appearance: none;
32178
+ margin: 0;
32179
+ }
32180
+
32181
+ -moz-appearance: textfield;
32182
+ ` : ""}
32183
+ `);
32184
+ const TextAreaElement = styled.textarea.withConfig({
32185
+ componentId: "sc-1pvd2nj-3"
32169
32186
  })(["background:transparent;border:none;outline:none;width:100%;color:inherit;font:inherit;resize:none;", ""], ({
32170
32187
  theme: theme2
32171
32188
  }) => `
@@ -32176,10 +32193,10 @@ const TextAreaElement = styled.textarea.withConfig({
32176
32193
  }
32177
32194
  `);
32178
32195
  styled(InputWrapper).withConfig({
32179
- componentId: "sc-1pvd2nj-3"
32196
+ componentId: "sc-1pvd2nj-4"
32180
32197
  })(["resize:vertical;overflow:auto;color:red;"]);
32181
32198
  const IconButton = styled.button.withConfig({
32182
- componentId: "sc-1pvd2nj-4"
32199
+ componentId: "sc-1pvd2nj-5"
32183
32200
  })(["background:transparent;color:inherit;border:none;padding:0;outline:none;&:not(:disabled){cursor:pointer;}", ""], ({
32184
32201
  theme: theme2,
32185
32202
  $show
@@ -32188,7 +32205,7 @@ const IconButton = styled.button.withConfig({
32188
32205
  visibility: ${$show ? "visible" : "hidden"};
32189
32206
  `);
32190
32207
  styled.svg.withConfig({
32191
- componentId: "sc-1pvd2nj-5"
32208
+ componentId: "sc-1pvd2nj-6"
32192
32209
  })(["", ""], ({
32193
32210
  theme: theme2
32194
32211
  }) => `
@@ -32208,6 +32225,7 @@ const NumberField = forwardRef(({
32208
32225
  onChange: onChangeProp,
32209
32226
  orientation,
32210
32227
  dir,
32228
+ hideControls,
32211
32229
  ...props
32212
32230
  }, ref) => {
32213
32231
  const defaultId = useId();
@@ -32215,7 +32233,7 @@ const NumberField = forwardRef(({
32215
32233
  onChangeProp(e.target.value, e);
32216
32234
  };
32217
32235
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(InputWrapper, { disabled, id: id ?? defaultId, label, error: error2, orientation, dir, children: [
32218
- /* @__PURE__ */ jsxRuntimeExports.jsx(InputElement, { ref, type: "number", id: id ?? defaultId, disabled, onChange, ...props }),
32236
+ /* @__PURE__ */ jsxRuntimeExports.jsx(NumberInputElement, { ref, type: "number", id: id ?? defaultId, disabled, onChange, $hideControls: hideControls, ...props }),
32219
32237
  loading && /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: "loading-animated", size: "sm" })
32220
32238
  ] });
32221
32239
  });
@@ -32366,7 +32384,7 @@ const Pagination = ({
32366
32384
  ] }),
32367
32385
  /* @__PURE__ */ jsxRuntimeExports.jsxs(Container, { gap: "xxs", fillWidth: false, children: [
32368
32386
  /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton$1, { icon: "chevron-left", type: "ghost", disabled: currentPage === 1, onClick: onPrevClick, "data-testid": "prev-btn" }),
32369
- /* @__PURE__ */ jsxRuntimeExports.jsx(Container, { maxWidth: "50px", fillWidth: false, children: /* @__PURE__ */ jsxRuntimeExports.jsx(NumberField, { onChange, value: currentPage, loading: false, onKeyDown, min: 1, max: totalPages, onFocus: onPageNumberFocus, onBlur: onPageNumberBlur }) }),
32387
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Container, { maxWidth: "50px", fillWidth: false, children: /* @__PURE__ */ jsxRuntimeExports.jsx(NumberField, { onChange, value: currentPage, loading: false, onKeyDown, min: 1, max: totalPages, onFocus: onPageNumberFocus, hideControls: true, onBlur: onPageNumberBlur }) }),
32370
32388
  !!totalPages && /* @__PURE__ */ jsxRuntimeExports.jsxs(Text, { component: "div", color: "muted", size: "sm", children: [
32371
32389
  "of ",
32372
32390
  formatNumber(totalPages)
@@ -37908,7 +37926,7 @@ const TableRow = styled.tr.withConfig({
37908
37926
  `);
37909
37927
  const TableData = styled.td.withConfig({
37910
37928
  componentId: "sc-1q458rb-4"
37911
- })(["overflow:hidden;", " @media (max-width:768px){width:auto;min-width:40%;padding:", " ", ";}"], ({
37929
+ })(["overflow:hidden;", " @media (max-width:768px){width:auto;min-width:40%;", "}"], ({
37912
37930
  theme: theme2,
37913
37931
  $size
37914
37932
  }) => `
@@ -37917,9 +37935,9 @@ const TableData = styled.td.withConfig({
37917
37935
  padding: ${theme2.click.table.body.cell.space[$size].y} ${theme2.click.table.body.cell.space[$size].x};
37918
37936
  `, ({
37919
37937
  theme: theme2
37920
- }) => theme2.click.table.body.cell.space.sm.y, ({
37921
- theme: theme2
37922
- }) => theme2.click.table.body.cell.space.sm.x);
37938
+ }) => `
37939
+ padding: ${theme2.click.table.body.cell.space.sm.y} ${theme2.click.table.body.cell.space.sm.x};
37940
+ `);
37923
37941
  const StyledColGroup = styled.colgroup.withConfig({
37924
37942
  componentId: "sc-1q458rb-5"
37925
37943
  })(["@media (max-width:768px){display:none;}"]);
@@ -37993,9 +38011,6 @@ const TableRowCloseButton = styled.button.withConfig({
37993
38011
  }) => `
37994
38012
  ${$isDeleted ? "transform: rotate(45deg)" : ""};
37995
38013
  `);
37996
- const TableText = styled.div.withConfig({
37997
- componentId: "sc-1q458rb-17"
37998
- })(["overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"]);
37999
38014
  const TableBodyRow = ({
38000
38015
  headers,
38001
38016
  items,
@@ -38020,7 +38035,7 @@ const TableBodyRow = ({
38020
38035
  ...cellProps
38021
38036
  }, cellIndex) => /* @__PURE__ */ jsxRuntimeExports.jsxs(TableData, { $size: size2, ...cellProps, children: [
38022
38037
  headers[cellIndex] && /* @__PURE__ */ jsxRuntimeExports.jsx(MobileHeader, { children: headers[cellIndex].label }),
38023
- /* @__PURE__ */ jsxRuntimeExports.jsx(TableText, { children: label })
38038
+ /* @__PURE__ */ jsxRuntimeExports.jsx(EllipsisContent, { component: "div", children: label })
38024
38039
  ] }, `table-cell-${cellIndex}`)),
38025
38040
  actionsList.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(ActionsList, { $size: size2, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(ActionsContainer, { children: [
38026
38041
  actionsList.includes("editAction") && /* @__PURE__ */ jsxRuntimeExports.jsx(EditButton, { as: IconButton$1, type: "ghost", disabled: isDisabled || isDeleted || !isEditable, icon: "pencil", onClick: onEdit, "data-testid": "table-row-edit" }),
@@ -38029,10 +38044,10 @@ const TableBodyRow = ({
38029
38044
  ] });
38030
38045
  };
38031
38046
  const SpanedTableData = styled(TableData).withConfig({
38032
- componentId: "sc-1q458rb-18"
38047
+ componentId: "sc-1q458rb-17"
38033
38048
  })(["text-align:center;"]);
38034
38049
  const CustomTableDataMessage = styled.div.withConfig({
38035
- componentId: "sc-1q458rb-19"
38050
+ componentId: "sc-1q458rb-18"
38036
38051
  })(["display:flex;gap:0.5rem;justify-content:center;"]);
38037
38052
  const LoadingData = () => {
38038
38053
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
@@ -38119,7 +38134,7 @@ const Table = forwardRef(({
38119
38134
  ] });
38120
38135
  });
38121
38136
  const StyledTable = styled.table.withConfig({
38122
- componentId: "sc-1q458rb-20"
38137
+ componentId: "sc-1q458rb-19"
38123
38138
  })(["width:100%;border-spacing:0;overflow:hidden;table-layout:fixed;", " @media (max-width:768px){border:none;table-layout:auto;}"], ({
38124
38139
  theme: theme2
38125
38140
  }) => `
@@ -8748,6 +8748,7 @@ var __publicField = (obj, key, value) => {
8748
8748
  color,
8749
8749
  icon,
8750
8750
  iconSize,
8751
+ gap,
8751
8752
  children,
8752
8753
  ...delegated
8753
8754
  }) => /* @__PURE__ */ jsxRuntimeExports.jsx($1bf158f521e1b1b4$export$be92b6f5f03c0fe9, { type: "single", collapsible: true, ...delegated, children: /* @__PURE__ */ jsxRuntimeExports.jsxs($1bf158f521e1b1b4$export$6d08773d2e66f8f2, { value: "item", children: [
@@ -8756,8 +8757,9 @@ var __publicField = (obj, key, value) => {
8756
8757
  /* @__PURE__ */ jsxRuntimeExports.jsx(AccordionIconWrapper, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: "chevron-right", size: iconSize || size2, "aria-label": "accordion icon" }) }),
8757
8758
  icon ? /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: icon, size: iconSize || size2 }) : null
8758
8759
  ] }),
8759
- /* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: title })
8760
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { size: size2, children: title })
8760
8761
  ] }),
8762
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Spacer, { size: gap }),
8761
8763
  /* @__PURE__ */ jsxRuntimeExports.jsx(AccordionContent, { children })
8762
8764
  ] }) });
8763
8765
  const AccordionTrigger = styled($1bf158f521e1b1b4$export$41fb9f06171c75f4).withConfig({
@@ -16951,7 +16953,7 @@ var __publicField = (obj, key, value) => {
16951
16953
  let action = null;
16952
16954
  if (moveAnchor) {
16953
16955
  if (selection.type === "rows") {
16954
- const row = clamp2(selection.anchorRow + rowDiff, 0, rowCount - 1);
16956
+ const row = clamp2(selection.anchorRow + rowDiff, 0, rowCount + rowStart - 1);
16955
16957
  action = {
16956
16958
  type: "shiftRowSelection",
16957
16959
  row,
@@ -16965,7 +16967,7 @@ var __publicField = (obj, key, value) => {
16965
16967
  event
16966
16968
  };
16967
16969
  } else if (selection.type === "rectangle") {
16968
- const row = clamp2(selection.anchor.row + rowDiff, 0, rowCount - 1);
16970
+ const row = clamp2(selection.anchor.row + rowDiff, 0, rowCount + rowStart - 1);
16969
16971
  const column = clamp2(selection.anchor.column + columnDiff, 0, columnCount - 1);
16970
16972
  action = {
16971
16973
  type: "shiftSelection",
@@ -16975,7 +16977,7 @@ var __publicField = (obj, key, value) => {
16975
16977
  };
16976
16978
  }
16977
16979
  } else {
16978
- const row = clamp2(focus.row + rowDiff, 0, rowCount - 1);
16980
+ const row = clamp2(focus.row + rowDiff, 0, rowCount + rowStart - 1);
16979
16981
  const column = clamp2(focus.column + columnDiff, 0, columnCount - 1);
16980
16982
  action = {
16981
16983
  type: "normal",
@@ -16988,7 +16990,7 @@ var __publicField = (obj, key, value) => {
16988
16990
  onSelection(action);
16989
16991
  }
16990
16992
  return action;
16991
- }, [onSelection, columnCount, rowCount, selection, focus]);
16993
+ }, [onSelection, columnCount, rowCount, selection, focus, rowStart]);
16992
16994
  const getSelectionType = React.useCallback((args) => {
16993
16995
  if (args.type === "all") {
16994
16996
  const isSelected = cellRectSelected(selection, 0, rowStart, columnCount - 1, rowCount + rowStart - 1);
@@ -32181,8 +32183,23 @@ var __publicField = (obj, key, value) => {
32181
32183
  color: ${theme2.click.field.color.placeholder.default};
32182
32184
  }
32183
32185
  `);
32184
- const TextAreaElement = styled.textarea.withConfig({
32186
+ const NumberInputElement = styled(InputElement).withConfig({
32185
32187
  componentId: "sc-1pvd2nj-2"
32188
+ })(["", ""], ({
32189
+ $hideControls
32190
+ }) => `
32191
+ ${$hideControls ? `
32192
+ &::-webkit-outer-spin-button,
32193
+ &::-webkit-inner-spin-button {
32194
+ -webkit-appearance: none;
32195
+ margin: 0;
32196
+ }
32197
+
32198
+ -moz-appearance: textfield;
32199
+ ` : ""}
32200
+ `);
32201
+ const TextAreaElement = styled.textarea.withConfig({
32202
+ componentId: "sc-1pvd2nj-3"
32186
32203
  })(["background:transparent;border:none;outline:none;width:100%;color:inherit;font:inherit;resize:none;", ""], ({
32187
32204
  theme: theme2
32188
32205
  }) => `
@@ -32193,10 +32210,10 @@ var __publicField = (obj, key, value) => {
32193
32210
  }
32194
32211
  `);
32195
32212
  styled(InputWrapper).withConfig({
32196
- componentId: "sc-1pvd2nj-3"
32213
+ componentId: "sc-1pvd2nj-4"
32197
32214
  })(["resize:vertical;overflow:auto;color:red;"]);
32198
32215
  const IconButton = styled.button.withConfig({
32199
- componentId: "sc-1pvd2nj-4"
32216
+ componentId: "sc-1pvd2nj-5"
32200
32217
  })(["background:transparent;color:inherit;border:none;padding:0;outline:none;&:not(:disabled){cursor:pointer;}", ""], ({
32201
32218
  theme: theme2,
32202
32219
  $show
@@ -32205,7 +32222,7 @@ var __publicField = (obj, key, value) => {
32205
32222
  visibility: ${$show ? "visible" : "hidden"};
32206
32223
  `);
32207
32224
  styled.svg.withConfig({
32208
- componentId: "sc-1pvd2nj-5"
32225
+ componentId: "sc-1pvd2nj-6"
32209
32226
  })(["", ""], ({
32210
32227
  theme: theme2
32211
32228
  }) => `
@@ -32225,6 +32242,7 @@ var __publicField = (obj, key, value) => {
32225
32242
  onChange: onChangeProp,
32226
32243
  orientation,
32227
32244
  dir,
32245
+ hideControls,
32228
32246
  ...props
32229
32247
  }, ref) => {
32230
32248
  const defaultId = React.useId();
@@ -32232,7 +32250,7 @@ var __publicField = (obj, key, value) => {
32232
32250
  onChangeProp(e.target.value, e);
32233
32251
  };
32234
32252
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(InputWrapper, { disabled, id: id ?? defaultId, label, error: error2, orientation, dir, children: [
32235
- /* @__PURE__ */ jsxRuntimeExports.jsx(InputElement, { ref, type: "number", id: id ?? defaultId, disabled, onChange, ...props }),
32253
+ /* @__PURE__ */ jsxRuntimeExports.jsx(NumberInputElement, { ref, type: "number", id: id ?? defaultId, disabled, onChange, $hideControls: hideControls, ...props }),
32236
32254
  loading && /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: "loading-animated", size: "sm" })
32237
32255
  ] });
32238
32256
  });
@@ -32383,7 +32401,7 @@ var __publicField = (obj, key, value) => {
32383
32401
  ] }),
32384
32402
  /* @__PURE__ */ jsxRuntimeExports.jsxs(Container, { gap: "xxs", fillWidth: false, children: [
32385
32403
  /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton$1, { icon: "chevron-left", type: "ghost", disabled: currentPage === 1, onClick: onPrevClick, "data-testid": "prev-btn" }),
32386
- /* @__PURE__ */ jsxRuntimeExports.jsx(Container, { maxWidth: "50px", fillWidth: false, children: /* @__PURE__ */ jsxRuntimeExports.jsx(NumberField, { onChange, value: currentPage, loading: false, onKeyDown, min: 1, max: totalPages, onFocus: onPageNumberFocus, onBlur: onPageNumberBlur }) }),
32404
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Container, { maxWidth: "50px", fillWidth: false, children: /* @__PURE__ */ jsxRuntimeExports.jsx(NumberField, { onChange, value: currentPage, loading: false, onKeyDown, min: 1, max: totalPages, onFocus: onPageNumberFocus, hideControls: true, onBlur: onPageNumberBlur }) }),
32387
32405
  !!totalPages && /* @__PURE__ */ jsxRuntimeExports.jsxs(Text, { component: "div", color: "muted", size: "sm", children: [
32388
32406
  "of ",
32389
32407
  formatNumber(totalPages)
@@ -37925,7 +37943,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
37925
37943
  `);
37926
37944
  const TableData = styled.td.withConfig({
37927
37945
  componentId: "sc-1q458rb-4"
37928
- })(["overflow:hidden;", " @media (max-width:768px){width:auto;min-width:40%;padding:", " ", ";}"], ({
37946
+ })(["overflow:hidden;", " @media (max-width:768px){width:auto;min-width:40%;", "}"], ({
37929
37947
  theme: theme2,
37930
37948
  $size
37931
37949
  }) => `
@@ -37934,9 +37952,9 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
37934
37952
  padding: ${theme2.click.table.body.cell.space[$size].y} ${theme2.click.table.body.cell.space[$size].x};
37935
37953
  `, ({
37936
37954
  theme: theme2
37937
- }) => theme2.click.table.body.cell.space.sm.y, ({
37938
- theme: theme2
37939
- }) => theme2.click.table.body.cell.space.sm.x);
37955
+ }) => `
37956
+ padding: ${theme2.click.table.body.cell.space.sm.y} ${theme2.click.table.body.cell.space.sm.x};
37957
+ `);
37940
37958
  const StyledColGroup = styled.colgroup.withConfig({
37941
37959
  componentId: "sc-1q458rb-5"
37942
37960
  })(["@media (max-width:768px){display:none;}"]);
@@ -38010,9 +38028,6 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
38010
38028
  }) => `
38011
38029
  ${$isDeleted ? "transform: rotate(45deg)" : ""};
38012
38030
  `);
38013
- const TableText = styled.div.withConfig({
38014
- componentId: "sc-1q458rb-17"
38015
- })(["overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"]);
38016
38031
  const TableBodyRow = ({
38017
38032
  headers,
38018
38033
  items,
@@ -38037,7 +38052,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
38037
38052
  ...cellProps
38038
38053
  }, cellIndex) => /* @__PURE__ */ jsxRuntimeExports.jsxs(TableData, { $size: size2, ...cellProps, children: [
38039
38054
  headers[cellIndex] && /* @__PURE__ */ jsxRuntimeExports.jsx(MobileHeader, { children: headers[cellIndex].label }),
38040
- /* @__PURE__ */ jsxRuntimeExports.jsx(TableText, { children: label })
38055
+ /* @__PURE__ */ jsxRuntimeExports.jsx(EllipsisContent, { component: "div", children: label })
38041
38056
  ] }, `table-cell-${cellIndex}`)),
38042
38057
  actionsList.length > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(ActionsList, { $size: size2, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(ActionsContainer, { children: [
38043
38058
  actionsList.includes("editAction") && /* @__PURE__ */ jsxRuntimeExports.jsx(EditButton, { as: IconButton$1, type: "ghost", disabled: isDisabled || isDeleted || !isEditable, icon: "pencil", onClick: onEdit, "data-testid": "table-row-edit" }),
@@ -38046,10 +38061,10 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
38046
38061
  ] });
38047
38062
  };
38048
38063
  const SpanedTableData = styled(TableData).withConfig({
38049
- componentId: "sc-1q458rb-18"
38064
+ componentId: "sc-1q458rb-17"
38050
38065
  })(["text-align:center;"]);
38051
38066
  const CustomTableDataMessage = styled.div.withConfig({
38052
- componentId: "sc-1q458rb-19"
38067
+ componentId: "sc-1q458rb-18"
38053
38068
  })(["display:flex;gap:0.5rem;justify-content:center;"]);
38054
38069
  const LoadingData = () => {
38055
38070
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
@@ -38136,7 +38151,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
38136
38151
  ] });
38137
38152
  });
38138
38153
  const StyledTable = styled.table.withConfig({
38139
- componentId: "sc-1q458rb-20"
38154
+ componentId: "sc-1q458rb-19"
38140
38155
  })(["width:100%;border-spacing:0;overflow:hidden;table-layout:fixed;", " @media (max-width:768px){border:none;table-layout:auto;}"], ({
38141
38156
  theme: theme2
38142
38157
  }) => `
@@ -3,17 +3,19 @@ import * as RadixAccordion from "@radix-ui/react-accordion";
3
3
  import { IconSize } from '../../components/Icon/types';
4
4
  import { IconName } from '../../components';
5
5
  type Size = "sm" | "md" | "lg";
6
+ type Gap = "sm" | "md" | "lg";
6
7
  type Color = "default" | "link";
7
8
  export interface AccordionProps extends SizeProp, Omit<RadixAccordion.AccordionSingleProps, "type" | "collapsible"> {
8
9
  title: string;
9
10
  color?: Color;
10
11
  icon?: IconName;
11
12
  iconSize?: IconSize;
13
+ gap?: Gap;
12
14
  children: React.ReactNode;
13
15
  }
14
16
  interface SizeProp {
15
17
  size?: Size;
16
18
  }
17
- declare const SidebarAccordion: import("styled-components").StyledComponent<({ title, size, color, icon, iconSize, children, ...delegated }: AccordionProps) => import("react/jsx-runtime").JSX.Element, import("styled-components").DefaultTheme, {}, never>;
18
- declare const AccordionToExport: import("styled-components").StyledComponent<({ title, size, color, icon, iconSize, children, ...delegated }: AccordionProps) => import("react/jsx-runtime").JSX.Element, import("styled-components").DefaultTheme, {}, never>;
19
+ declare const SidebarAccordion: import("styled-components").StyledComponent<({ title, size, color, icon, iconSize, gap, children, ...delegated }: AccordionProps) => import("react/jsx-runtime").JSX.Element, import("styled-components").DefaultTheme, {}, never>;
20
+ declare const AccordionToExport: import("styled-components").StyledComponent<({ title, size, color, icon, iconSize, gap, children, ...delegated }: AccordionProps) => import("react/jsx-runtime").JSX.Element, import("styled-components").DefaultTheme, {}, never>;
19
21
  export { AccordionToExport as Accordion, SidebarAccordion };
@@ -11,6 +11,9 @@ export interface WrapperProps {
11
11
  }
12
12
  export declare const InputWrapper: ({ id, label, error, disabled, children, orientation, dir, resize, }: WrapperProps) => import("react/jsx-runtime").JSX.Element;
13
13
  export declare const InputElement: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {}, never>;
14
+ export declare const NumberInputElement: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {
15
+ $hideControls?: boolean | undefined;
16
+ }, never>;
14
17
  export declare const TextAreaElement: import("styled-components").StyledComponent<"textarea", import("styled-components").DefaultTheme, {}, never>;
15
18
  export declare const TextAreaWrapper: import("styled-components").StyledComponent<({ id, label, error, disabled, children, orientation, dir, resize, }: WrapperProps) => import("react/jsx-runtime").JSX.Element, import("styled-components").DefaultTheme, {}, never>;
16
19
  export declare const IconButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
@@ -6,5 +6,6 @@ export interface NumberFieldProps extends Omit<WrapperProps, "id" | "children">,
6
6
  onChange: (inputValue: string, e?: ChangeEvent<HTMLInputElement>) => void;
7
7
  orientation?: "vertical" | "horizontal";
8
8
  dir?: "start" | "end";
9
+ hideControls?: boolean;
9
10
  }
10
11
  export declare const NumberField: import("react").ForwardRefExoticComponent<NumberFieldProps & import("react").RefAttributes<HTMLInputElement>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clickhouse/click-ui",
3
- "version": "0.0.124",
3
+ "version": "0.0.126",
4
4
  "description": "Official ClickHouse design system react library",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",