@jetbrains/ring-ui-built 7.0.31 → 7.0.32

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.
@@ -50,6 +50,7 @@ export interface TableProps<T extends SelectionItem> extends FocusSensorAddProps
50
50
  stickyHeaderOffset?: string | undefined;
51
51
  renderEmpty?: (() => ReactNode) | null | undefined;
52
52
  RowComponent: typeof Row;
53
+ customLoader?: ((loaderClassName?: string) => ReactNode) | null | undefined;
53
54
  }
54
55
  /**
55
56
  * Interactive table with selection and keyboard navigation support.
@@ -199,7 +199,8 @@ class Table extends PureComponent {
199
199
  onItemDoubleClick,
200
200
  onItemClick,
201
201
  renderEmpty,
202
- RowComponent
202
+ RowComponent,
203
+ customLoader
203
204
  } = this.props;
204
205
  // NOTE: Do not construct new object per render because it causes all rows rerendering
205
206
  const columnsArray = typeof columns === 'function' ? columns(null) : columns;
@@ -327,7 +328,7 @@ class Table extends PureComponent {
327
328
  })
328
329
  }), loading && jsx("div", {
329
330
  className: style.loadingOverlay,
330
- children: jsx(Loader, {
331
+ children: customLoader ? customLoader(loaderClassName) : jsx(Loader, {
331
332
  className: loaderClassName
332
333
  })
333
334
  })]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetbrains/ring-ui-built",
3
- "version": "7.0.31",
3
+ "version": "7.0.32",
4
4
  "description": "JetBrains UI library",
5
5
  "author": {
6
6
  "name": "JetBrains"
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,73 +0,0 @@
1
- import { b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
2
- import { jsxs, jsx } from 'react/jsx-runtime';
3
- import figma from '@figma/code-connect';
4
- import chevronDownIcon from '@jetbrains/icons/chevron-down';
5
- import { Button } from '../button/button.js';
6
- import { ControlsHeight } from '../global/controls-height.js';
7
- import ButtonGroup from './button-group.js';
8
- import 'core-js/modules/web.dom-collections.iterator.js';
9
- import 'react';
10
- import 'classnames';
11
- import '@jetbrains/icons/chevron-12px-down';
12
- import 'util-deprecate';
13
- import '../icon/icon.js';
14
- import '../icon/icon__constants.js';
15
- import '../_helpers/icon__svg.js';
16
- import 'core-js/modules/es.regexp.exec.js';
17
- import 'core-js/modules/es.string.replace.js';
18
- import 'core-js/modules/es.string.starts-with.js';
19
- import '../global/memoize.js';
20
- import 'core-js/modules/es.weak-map.js';
21
- import '../link/clickableLink.js';
22
- import '../_helpers/button__classes.js';
23
- import 'core-js/modules/es.promise.js';
24
- import 'core-js/modules/es.string.split.js';
25
- import '../global/data-tests.js';
26
- import '../control-label/control-label.js';
27
- import '../control-help/control-help.js';
28
- import '../_helpers/caption.js';
29
-
30
- figma.connect(ButtonGroup, 'https://www.figma.com/design/HY6d4uE1xxaQXCMG9fe6Y2/RingUI?node-id=9954%3A528', {
31
- props: {
32
- height: figma.enum('Size', {
33
- S: ControlsHeight.S,
34
- M: ControlsHeight.M,
35
- L: ControlsHeight.L
36
- }),
37
- disabled: figma.enum('State', {
38
- Disabled: true
39
- }),
40
- primary: figma.enum('Variant', {
41
- Main: true
42
- }),
43
- success: figma.enum('Variant', {
44
- Green: true
45
- }),
46
- error: figma.enum('Variant', {
47
- 'Red solid': true
48
- }),
49
- secondary: figma.enum('Variant', {
50
- Gray: true
51
- }),
52
- danger: figma.enum('Variant', {
53
- 'Red outlined': true
54
- }),
55
- ghost: figma.enum('Variant', {
56
- Ghost: true
57
- }),
58
- inline: figma.enum('Variant', {
59
- Text: true
60
- })
61
- },
62
- variant: {
63
- Type: 'Split'
64
- },
65
- example: props => jsxs(ButtonGroup, {
66
- children: [jsx(Button, _objectSpread2(_objectSpread2({}, props), {}, {
67
- children: 'Button'
68
- })), jsx(Button, _objectSpread2(_objectSpread2({}, props), {}, {
69
- icon: chevronDownIcon
70
- }))]
71
- }),
72
- imports: ['import Button from "@jetbrains/ring-ui/components/button/button"', 'import {ControlsHeight} from "@jetbrains/ring-ui/components/global/controls-height"', 'import chevronDownIcon from "@jetbrains/icons/chevron-down"']
73
- });