linear-react-components-ui 1.1.3-beta.2 → 1.1.4-beta.0

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 (77) hide show
  1. package/lib/@types/Align.d.ts +1 -1
  2. package/lib/@types/ButtonTypes.d.ts +1 -1
  3. package/lib/@types/ColorStyles.d.ts +1 -1
  4. package/lib/@types/DataCombo.d.ts +1 -1
  5. package/lib/@types/Icon.d.ts +1 -1
  6. package/lib/@types/LabelStyles.d.ts +1 -1
  7. package/lib/@types/Period.d.ts +1 -1
  8. package/lib/@types/PermissionAttr.d.ts +1 -1
  9. package/lib/@types/PointerEvents.d.ts +1 -1
  10. package/lib/@types/Position.d.ts +1 -1
  11. package/lib/@types/PositionAlert.d.ts +1 -1
  12. package/lib/@types/Size.d.ts +1 -1
  13. package/lib/@types/SizePixels.d.ts +1 -1
  14. package/lib/@types/StorageMock.d.ts +1 -1
  15. package/lib/alerts/Message.d.ts +1 -1
  16. package/lib/alerts/Message.js +50 -7
  17. package/lib/alerts/types.d.ts +2 -1
  18. package/lib/assets/styles/alerts.scss +4 -7
  19. package/lib/assets/styles/table.scss +7 -0
  20. package/lib/avatar/types.d.ts +1 -1
  21. package/lib/badge/types.d.ts +1 -1
  22. package/lib/buttons/DefaultButton.js +0 -1
  23. package/lib/buttons/types.d.ts +1 -1
  24. package/lib/calendar/types.d.ts +1 -1
  25. package/lib/checkbox/types.d.ts +1 -1
  26. package/lib/dialog/types.d.ts +1 -1
  27. package/lib/drawer/types.d.ts +1 -1
  28. package/lib/dropdown/types.d.ts +1 -1
  29. package/lib/fieldset/types.d.ts +1 -1
  30. package/lib/form/Field.d.ts +1 -1
  31. package/lib/form/types.d.ts +1 -1
  32. package/lib/gridlayout/types.d.ts +1 -1
  33. package/lib/hint/types.d.ts +1 -1
  34. package/lib/icons/types.d.ts +1 -1
  35. package/lib/inputs/base/types.d.ts +1 -1
  36. package/lib/inputs/color/types.d.ts +1 -1
  37. package/lib/inputs/date/types.d.ts +1 -1
  38. package/lib/inputs/file/types.d.ts +1 -1
  39. package/lib/inputs/mask/types.d.ts +1 -1
  40. package/lib/inputs/multiSelect/types.d.ts +1 -1
  41. package/lib/inputs/number/types.d.ts +1 -1
  42. package/lib/inputs/period/types.d.ts +1 -1
  43. package/lib/inputs/select/types.d.ts +1 -1
  44. package/lib/inputs/text/types.d.ts +1 -1
  45. package/lib/inputs/textarea/types.d.ts +1 -1
  46. package/lib/inputs/types.d.ts +1 -1
  47. package/lib/internals/types.d.ts +1 -1
  48. package/lib/labelMessages/types.d.ts +1 -1
  49. package/lib/labels/types.d.ts +1 -1
  50. package/lib/list/Item.js +10 -4
  51. package/lib/list/types.d.ts +1 -1
  52. package/lib/menus/float/index.d.ts +10 -10
  53. package/lib/menus/float/types.d.ts +1 -1
  54. package/lib/menus/sidenav/types.d.ts +1 -1
  55. package/lib/panel/types.d.ts +1 -1
  56. package/lib/popover/types.d.ts +1 -1
  57. package/lib/progress/types.d.ts +1 -1
  58. package/lib/radio/types.d.ts +1 -1
  59. package/lib/shortcuts/types.d.ts +1 -1
  60. package/lib/skeleton/types.d.ts +1 -1
  61. package/lib/spinner/types.d.ts +1 -1
  62. package/lib/split/helpers.d.ts +1 -1
  63. package/lib/split/types.d.ts +1 -1
  64. package/lib/table/HeaderColumn.d.ts +1 -1
  65. package/lib/table/HeaderColumn.js +13 -3
  66. package/lib/table/types.d.ts +2 -1
  67. package/lib/tabs/types.d.ts +1 -1
  68. package/lib/toolbar/types.d.ts +1 -1
  69. package/lib/tooltip/types.d.ts +1 -1
  70. package/lib/treetable/Row.d.ts +1 -1
  71. package/lib/treetable/helpers.d.ts +1 -1
  72. package/lib/treetable/index.d.ts +2 -2
  73. package/lib/treeview/types.d.ts +1 -1
  74. package/lib/{types.d-DvJcBS8L.d.ts → types.d-73cece43.d.ts} +1 -1
  75. package/lib/uitour/types.d.ts +1 -1
  76. package/package.json +4 -4
  77. package/.eslintcache +0 -1
@@ -1,6 +1,6 @@
1
1
  import { ITableHeaderProps } from './types.js';
2
2
  import 'react';
3
3
 
4
- declare const HeaderColumn: ({ customClass, style, children, textAlign, visible, id, rowSpan, colSpan, }: ITableHeaderProps) => JSX.Element | null;
4
+ declare const HeaderColumn: ({ customClass, style, children, textAlign, visible, id, rowSpan, colSpan, isMenuColumn, }: ITableHeaderProps) => JSX.Element | null;
5
5
 
6
6
  export { HeaderColumn as default };
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _react = _interopRequireWildcard(require("react"));
8
+ var _icons = _interopRequireDefault(require("../icons"));
8
9
  var _skeleton = _interopRequireDefault(require("../skeleton"));
9
10
  var _helpers = _interopRequireDefault(require("./helpers"));
10
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -19,7 +20,8 @@ const HeaderColumn = _ref => {
19
20
  visible = true,
20
21
  id,
21
22
  rowSpan,
22
- colSpan
23
+ colSpan,
24
+ isMenuColumn = false
23
25
  } = _ref;
24
26
  const {
25
27
  skeletonize,
@@ -27,18 +29,26 @@ const HeaderColumn = _ref => {
27
29
  skeletonInHeader,
28
30
  skeletonInRows = 10
29
31
  } = (0, _react.useContext)(_helpers.default);
32
+ const getChildren = function () {
33
+ let childrenIsMenuColum = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
34
+ if (!childrenIsMenuColum) return children;
35
+ return /*#__PURE__*/_react.default.createElement(_icons.default, {
36
+ name: "menu4",
37
+ size: 22
38
+ });
39
+ };
30
40
  if (!visible) return null;
31
41
  return /*#__PURE__*/_react.default.createElement("th", {
32
42
  id: id,
33
43
  rowSpan: rowSpan,
34
44
  colSpan: colSpan,
35
- className: "headercolumn ".concat(customClass, " text-align-").concat(textAlign),
45
+ className: "headercolumn ".concat(customClass, " text-align-").concat(textAlign, " ").concat(isMenuColumn && 'menu-column'),
36
46
  style: style
37
47
  }, skeletonize && (skeletonInHeader || !skeletonInRows) && !vertical ? /*#__PURE__*/_react.default.createElement(_skeleton.default, {
38
48
  height: style && style.height ? undefined : 16,
39
49
  style: {
40
50
  marginBottom: 0
41
51
  }
42
- }) : children);
52
+ }) : getChildren(isMenuColumn));
43
53
  };
44
54
  var _default = exports.default = HeaderColumn;
@@ -27,6 +27,7 @@ interface ITableHeaderProps extends TableHTMLAttributes<HTMLTableElement> {
27
27
  id?: string;
28
28
  rowSpan?: number;
29
29
  colSpan?: number;
30
+ isMenuColumn?: boolean;
30
31
  }
31
32
  interface ITableBodyProps extends TableHTMLAttributes<HTMLTableElement> {
32
33
  children?: ReactNode;
@@ -93,4 +94,4 @@ type TableElement = {
93
94
  };
94
95
  };
95
96
 
96
- export type { ITableBodyProps, ITableContext, ITableHeaderProps, ITableProps, ITableRowContext, ITableRowProps, TableElement };
97
+ export { ITableBodyProps, ITableContext, ITableHeaderProps, ITableProps, ITableRowContext, ITableRowProps, TableElement };
@@ -94,4 +94,4 @@ interface PanelProps {
94
94
  onEndReachedThreshold?: number;
95
95
  }
96
96
 
97
- export type { DropdownProps, ITabsPros, MenuProps, PanelProps, TabProps, TabsContextType, TabsProviderProps };
97
+ export { DropdownProps, ITabsPros, MenuProps, PanelProps, TabProps, TabsContextType, TabsProviderProps };
@@ -43,4 +43,4 @@ interface IToolBarGroup {
43
43
  children: ReactNode;
44
44
  }
45
45
 
46
- export type { IButtonBarProps, ILabelBarProps, IToolBarGroup, IToolbarProps };
46
+ export { IButtonBarProps, ILabelBarProps, IToolBarGroup, IToolbarProps };
@@ -14,4 +14,4 @@ interface ITooltipProps {
14
14
  textError?: string;
15
15
  }
16
16
 
17
- export type { ITooltipProps };
17
+ export { ITooltipProps };
@@ -1,4 +1,4 @@
1
- import { I as ITreeTableRow } from '../types.d-DvJcBS8L.js';
1
+ import { I as ITreeTableRow } from '../types.d-73cece43.js';
2
2
  import 'react';
3
3
  import '../table/types.js';
4
4
 
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { a as ITreeTableProps } from '../types.d-DvJcBS8L.js';
2
+ import { a as ITreeTableProps } from '../types.d-73cece43.js';
3
3
  import '../table/types.js';
4
4
 
5
5
  declare const TreeTableContext: React.Context<ITreeTableProps>;
@@ -1,5 +1,5 @@
1
- import { a as ITreeTableProps } from '../types.d-DvJcBS8L.js';
2
- export { b as IRowElementsValidations, R as RowItem } from '../types.d-DvJcBS8L.js';
1
+ import { a as ITreeTableProps } from '../types.d-73cece43.js';
2
+ export { b as IRowElementsValidations, R as RowItem } from '../types.d-73cece43.js';
3
3
  import 'react';
4
4
  import '../table/types.js';
5
5
 
@@ -101,4 +101,4 @@ interface IDataMock {
101
101
  itens: ItensMock[];
102
102
  }
103
103
 
104
- export type { IDataMock, INodeElementsValidations, INodeValidationProps, ITreeHeaderProps, ITreeNodeProps, ITreeViewContext, ITreeviewProps, IValidator, NodeItem };
104
+ export { IDataMock, INodeElementsValidations, INodeValidationProps, ITreeHeaderProps, ITreeNodeProps, ITreeViewContext, ITreeviewProps, IValidator, NodeItem };
@@ -43,4 +43,4 @@ interface ITreeTableRow extends ITableRowProps {
43
43
  rowLevel: number;
44
44
  }
45
45
 
46
- export type { ITreeTableRow as I, RowItem as R, ITreeTableProps as a, IRowElementsValidations as b };
46
+ export { ITreeTableRow as I, RowItem as R, ITreeTableProps as a, IRowElementsValidations as b };
@@ -35,4 +35,4 @@ interface IUITourProps {
35
35
  onStepChange?: (target: HTMLElement) => void;
36
36
  }
37
37
 
38
- export type { CurrentStep, Effect, ElementEffect, IUITourProps, StepDimensions, UITourData };
38
+ export { CurrentStep, Effect, ElementEffect, IUITourProps, StepDimensions, UITourData };
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "linear-react-components-ui",
3
- "version": "1.1.3-beta.2",
3
+ "version": "1.1.4-beta.0",
4
4
  "description": "Linear Sistemas ReactJs Components",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.cjs",
7
7
  "scripts": {
8
8
  "lib": "babel src/lib/ -d lib/ --extensions \".js,.jsx,.ts,.tsx\" --ignore **/*.spec.tsx && babel src/lib/assets -d lib/assets --copy-files && npm run lib:types",
9
- "lib:types": "NODE_OPTIONS='--max-old-space-size=16384' tsup --dts-only --dts --external react",
9
+ "lib:types": "tsup --dts-only --dts --external react",
10
10
  "demo": "node scripts/start.js",
11
11
  "demo:prod": "webpack --config ./config/webpack.config.js --mode production",
12
12
  "check:js": "eslint ./src/** --ext=.jsx,.js,.tsx,.ts --cache",
@@ -108,8 +108,8 @@
108
108
  "sass": "1.74.1",
109
109
  "sass-loader": "14.1.0",
110
110
  "style-loader": "3.3.4",
111
- "tsup": "8.0.1",
112
- "typescript": "5.3.3",
111
+ "tsup": "6.6.0",
112
+ "typescript": "4.9.5",
113
113
  "webpack": "5.90.0",
114
114
  "webpack-cli": "5.1.4",
115
115
  "webpack-dev-server": "4.15.1",