gantri-components 2.33.1 → 2.34.0-beta.2

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 (71) hide show
  1. package/dist/components/aspect-ratio/aspect-ratio.styles.d.ts +1 -2
  2. package/dist/components/badge/badge.styles.d.ts +1 -1
  3. package/dist/components/box/box.styles.d.ts +1 -3
  4. package/dist/components/box/box.types.d.ts +4 -21
  5. package/dist/components/button/button.styles.d.ts +1 -2
  6. package/dist/components/cell/cell.styles.d.ts +1 -3
  7. package/dist/components/grid/grid.styles.d.ts +1 -3
  8. package/dist/components/icon/generated/ui-control/ExlamationCircleFilled.d.ts +3 -0
  9. package/dist/components/icon/generated/ui-control/ExlamationCircleFilled24.d.ts +3 -0
  10. package/dist/components/index.d.ts +1 -0
  11. package/dist/components/modal/modal.styles.d.ts +2 -4
  12. package/dist/components/paging/index.d.ts +1 -0
  13. package/dist/components/paging/paging.d.ts +5 -0
  14. package/dist/components/paging/paging.presets.d.ts +2 -0
  15. package/dist/components/paging/paging.styles.d.ts +5 -0
  16. package/dist/components/paging/paging.types.d.ts +6 -0
  17. package/dist/components/table/components/table-actions-wrapper/components/search/index.d.ts +1 -0
  18. package/dist/components/table/components/table-actions-wrapper/components/search/search.d.ts +2 -0
  19. package/dist/components/table/components/table-actions-wrapper/components/search/search.styles.d.ts +1 -0
  20. package/dist/components/table/components/table-actions-wrapper/components/search/search.types.d.ts +7 -0
  21. package/dist/components/table/components/table-actions-wrapper/components/sort/helpers/get-sort-mapping/get-sort-mapping.d.ts +3 -0
  22. package/dist/components/table/components/table-actions-wrapper/components/sort/helpers/get-sort-mapping/get-sort-mapping.types.d.ts +2 -0
  23. package/dist/components/table/components/table-actions-wrapper/components/sort/helpers/get-sort-mapping/index.d.ts +1 -0
  24. package/dist/components/table/components/table-actions-wrapper/components/sort/index.d.ts +1 -0
  25. package/dist/components/table/components/table-actions-wrapper/components/sort/sort.d.ts +2 -0
  26. package/dist/components/table/components/table-actions-wrapper/components/sort/sort.styles.d.ts +2 -0
  27. package/dist/components/table/components/table-actions-wrapper/components/sort/sort.types.d.ts +24 -0
  28. package/dist/components/table/components/table-actions-wrapper/index.d.ts +1 -0
  29. package/dist/components/table/components/table-actions-wrapper/table-actions-wrapper.d.ts +30 -0
  30. package/dist/components/table/components/table-footer/index.d.ts +1 -0
  31. package/dist/components/table/components/table-footer/table-footer.d.ts +3 -0
  32. package/dist/components/table/components/table-footer/table-footer.types.d.ts +5 -0
  33. package/dist/components/table/components/table-header/index.d.ts +1 -0
  34. package/dist/components/table/components/table-header/table-header.d.ts +3 -0
  35. package/dist/components/table/components/table-header/table-header.types.d.ts +5 -0
  36. package/dist/components/table/components/table-row/hooks/use-drag-and-drop/index.d.ts +1 -0
  37. package/dist/components/table/components/table-row/hooks/use-drag-and-drop/use-drag-and-drop.d.ts +7 -0
  38. package/dist/components/table/components/table-row/hooks/use-drag-and-drop/use-drag-and-drop.types.d.ts +10 -0
  39. package/dist/components/table/components/table-row/index.d.ts +1 -0
  40. package/dist/components/table/components/table-row/table-row.constants.d.ts +10 -0
  41. package/dist/components/table/components/table-row/table-row.d.ts +3 -0
  42. package/dist/components/table/components/table-row/table-row.styles.d.ts +4 -0
  43. package/dist/components/table/components/table-row/table-row.types.d.ts +12 -0
  44. package/dist/components/table/helpers/add-missing-ids/index.d.ts +3 -0
  45. package/dist/components/table/index.d.ts +1 -0
  46. package/dist/components/table/table.d.ts +5 -0
  47. package/dist/components/table/table.presets.d.ts +2 -0
  48. package/dist/components/table/table.styles.d.ts +3 -0
  49. package/dist/components/table/table.types.d.ts +32 -0
  50. package/dist/global/index.d.ts +0 -1
  51. package/dist/helpers/format-as-locale-number/format-as-locale-number.d.ts +6 -0
  52. package/dist/helpers/format-as-locale-number/format-as-locale-number.types.d.ts +3 -0
  53. package/dist/helpers/format-as-locale-number/index.d.ts +1 -0
  54. package/dist/helpers/mark-sticky-elements/__tests__/mark-sticky-elements.test.d.ts +1 -0
  55. package/dist/helpers/mark-sticky-elements/__tests__/setup.d.ts +2 -0
  56. package/dist/helpers/mark-sticky-elements/helpers/get-intersection-observer-callback/__tests__/get-intersection-observer-callback.test.d.ts +1 -0
  57. package/dist/helpers/mark-sticky-elements/helpers/get-intersection-observer-callback/get-intersection-observer-callback.d.ts +2 -0
  58. package/dist/helpers/mark-sticky-elements/helpers/get-intersection-observer-callback/get-intersection-observer-callback.types.d.ts +8 -0
  59. package/dist/helpers/mark-sticky-elements/helpers/get-intersection-observer-callback/index.d.ts +1 -0
  60. package/dist/helpers/mark-sticky-elements/index.d.ts +1 -0
  61. package/dist/helpers/mark-sticky-elements/mark-sticky-elements.constants.d.ts +2 -0
  62. package/dist/helpers/mark-sticky-elements/mark-sticky-elements.d.ts +26 -0
  63. package/dist/helpers/mark-sticky-elements/mark-sticky-elements.types.d.ts +28 -0
  64. package/dist/index.cjs.js +1 -1
  65. package/dist/index.d.ts +1 -7
  66. package/dist/index.esm.js +1 -1
  67. package/dist/index.umd.js +1 -1
  68. package/dist/styles/theme.d.ts +1 -16
  69. package/dist/types/resolution-aware-prop.type.d.ts +1 -5
  70. package/package.json +4 -1
  71. package/dist/global/constants.d.ts +0 -92
@@ -2,7 +2,6 @@ import { DefaultTheme } from 'styled-components';
2
2
  import { Property } from 'csstype';
3
3
  import { ResolutionAwareProp } from '../types/resolution-aware-prop.type';
4
4
  import { ButtonVariant } from '../components/button/button.types';
5
- import { BoxDimension } from '../components/box/box.types';
6
5
  export type PaletteColor = 'blue_100' | 'blue_200' | 'blue_300' | 'blue_400' | 'blue_500' | 'blue_800' | 'blue_900' | 'gold_100' | 'gold_200' | 'gold_300' | 'gold_400' | 'gold_500' | 'green_100' | 'green_200' | 'green_300' | 'green_400' | 'green_500' | 'green_800' | 'green_900' | 'monochrome_050' | 'monochrome_100' | 'monochrome_200' | 'monochrome_300' | 'monochrome_400' | 'monochrome_500' | 'monochrome_600' | 'monochrome_700' | 'monochrome_800' | 'monochrome_900' | 'monochrome_black' | 'monochrome_white' | 'pink_300' | 'pink_400' | 'pink_500' | 'red_100' | 'red_200' | 'red_300' | 'red_400' | 'red_500' | 'red_800' | 'red_900' | 'translucent_black_t1' | 'translucent_black_t2' | 'translucent_cream' | 'translucent_white' | 'yellow_100' | 'yellow_200' | 'yellow_300' | 'yellow_400' | 'yellow_500' | 'yellow_800' | 'yellow_900' | 'lime_100' | 'lime_200' | 'lime_300' | 'lime_400' | 'lime_500' | string;
7
6
  export declare const palette: Record<PaletteColor, string>;
8
7
  declare module 'styled-components' {
@@ -122,19 +121,6 @@ declare module 'styled-components' {
122
121
  headerHeight: Property.Height;
123
122
  maxWidth: string;
124
123
  spacing: {
125
- '.5x': string;
126
- '10x': string;
127
- '11x': string;
128
- '12x': string;
129
- '24x': string;
130
- '2x': string;
131
- '3x': string;
132
- '4x': string;
133
- '5x': string;
134
- '6x': string;
135
- '7x': string;
136
- '8x': string;
137
- '9x': string;
138
124
  s0: string;
139
125
  s1: string;
140
126
  s2: string;
@@ -142,7 +128,6 @@ declare module 'styled-components' {
142
128
  s4: string;
143
129
  s5: string;
144
130
  s6: string;
145
- x: string;
146
131
  };
147
132
  };
148
133
  fonts: {
@@ -193,7 +178,7 @@ export declare const lightTheme: DefaultTheme;
193
178
  export declare const darkTheme: DefaultTheme;
194
179
  export declare const getThemeColor: (color: PaletteColor, currentTheme?: DefaultTheme) => string;
195
180
  export declare const getThemeProductColor: (color: ProductColorCode, currentTheme?: DefaultTheme) => string;
196
- export declare const getThemeSpacing: (property: BoxDimension | string, currentTheme?: DefaultTheme) => string;
181
+ export declare const getThemeSpacing: (property: string, currentTheme?: DefaultTheme) => string;
197
182
  export declare const getButtonsColors: (variant: ButtonVariant, theme?: DefaultTheme) => {
198
183
  background: string;
199
184
  backgroundActive: string;
@@ -4,8 +4,4 @@ export interface ResolutionAwarePropBase<T> {
4
4
  md?: T;
5
5
  sm?: T;
6
6
  }
7
- export type ResolutionAwareProp<T> = T | {
8
- lg?: T;
9
- md?: T;
10
- sm?: T;
11
- };
7
+ export type ResolutionAwareProp<T> = T extends boolean ? boolean | ResolutionAwarePropBase<T> | any : T | ResolutionAwarePropBase<T>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gantri-components",
3
- "version": "2.33.1",
3
+ "version": "2.34.0-beta.2",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "umd": "dist/index.umd.js",
@@ -126,12 +126,15 @@
126
126
  },
127
127
  "dependencies": {
128
128
  "@cloudinary/url-gen": "^1.7.0",
129
+ "@tanstack/react-table": "^8.9.1",
129
130
  "@types/lodash": "^4.14.182",
130
131
  "@types/react-dom": "^17.0.17",
131
132
  "formik": "^2.2.9",
132
133
  "intersection-observer": "^0.12.2",
133
134
  "lodash.capitalize": "^4.2.1",
134
135
  "lodash.isobject": "^3.0.2",
136
+ "react-dnd": "^16.0.1",
137
+ "react-dnd-html5-backend": "^16.0.1",
135
138
  "react-i18next": "^11.18.5",
136
139
  "react-input-mask": "^2.0.4",
137
140
  "react-spring": "^9.4.4",
@@ -1,92 +0,0 @@
1
- export declare const storyBookSpacingArgType: {
2
- control: {
3
- type: string;
4
- };
5
- options: string[];
6
- };
7
- export declare const storyBookSpacingArgs: {
8
- horizontalMargin: {
9
- control: {
10
- type: string;
11
- };
12
- options: string[];
13
- };
14
- horizontalPadding: {
15
- control: {
16
- type: string;
17
- };
18
- options: string[];
19
- };
20
- margin: {
21
- control: {
22
- type: string;
23
- };
24
- options: string[];
25
- };
26
- marginBottom: {
27
- control: {
28
- type: string;
29
- };
30
- options: string[];
31
- };
32
- marginLeft: {
33
- control: {
34
- type: string;
35
- };
36
- options: string[];
37
- };
38
- marginRight: {
39
- control: {
40
- type: string;
41
- };
42
- options: string[];
43
- };
44
- marginTop: {
45
- control: {
46
- type: string;
47
- };
48
- options: string[];
49
- };
50
- padding: {
51
- control: {
52
- type: string;
53
- };
54
- options: string[];
55
- };
56
- paddingBottom: {
57
- control: {
58
- type: string;
59
- };
60
- options: string[];
61
- };
62
- paddingLeft: {
63
- control: {
64
- type: string;
65
- };
66
- options: string[];
67
- };
68
- paddingRight: {
69
- control: {
70
- type: string;
71
- };
72
- options: string[];
73
- };
74
- paddingTop: {
75
- control: {
76
- type: string;
77
- };
78
- options: string[];
79
- };
80
- verticalMargin: {
81
- control: {
82
- type: string;
83
- };
84
- options: string[];
85
- };
86
- verticalPadding: {
87
- control: {
88
- type: string;
89
- };
90
- options: string[];
91
- };
92
- };