gantri-components 2.40.0-beta.8 → 2.40.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 (25) hide show
  1. package/dist/components/table/components/table-row/hooks/use-drag-and-drop/use-drag-and-drop.types.d.ts +3 -0
  2. package/dist/components/table/components/table-row/table-row.types.d.ts +3 -0
  3. package/dist/components/table/hooks/use-move-row/use-move-row.d.ts +3 -0
  4. package/dist/components/table/hooks/use-track-sticky-cells/use-track-sticky-cells.d.ts +6 -1
  5. package/dist/components/table/hooks/use-track-sticky-cells/use-track-sticky-cells.types.d.ts +4 -3
  6. package/dist/components/table/table.types.d.ts +1 -0
  7. package/dist/index.cjs.js +1 -1
  8. package/dist/index.d.ts +1 -1
  9. package/dist/index.esm.js +1 -1
  10. package/dist/index.umd.js +1 -1
  11. package/dist/styles/base.d.ts +5 -1
  12. package/dist/styles/index.d.ts +1 -1
  13. package/dist/styles/theme.d.ts +10 -5
  14. package/package.json +1 -1
  15. package/dist/components/icon/generated/ui-control/ExlamationCircleFilled.d.ts +0 -3
  16. package/dist/components/icon/generated/ui-control/ExlamationCircleFilled24.d.ts +0 -3
  17. package/dist/components/paging/__tests__/paging.test.d.ts +0 -1
  18. package/dist/components/paging/index.d.ts +0 -1
  19. package/dist/components/paging/paging.d.ts +0 -5
  20. package/dist/components/paging/paging.presets.d.ts +0 -2
  21. package/dist/components/paging/paging.styles.d.ts +0 -3
  22. package/dist/components/paging/paging.types.d.ts +0 -13
  23. package/dist/components/table/components/table-actions-wrapper/components/sort/helpers/get-sort-mapping/get-sort-mapping.d.ts +0 -3
  24. package/dist/components/table/components/table-actions-wrapper/components/sort/helpers/get-sort-mapping/get-sort-mapping.types.d.ts +0 -2
  25. package/dist/components/table/components/table-actions-wrapper/components/sort/helpers/get-sort-mapping/index.d.ts +0 -1
@@ -1 +1,5 @@
1
- export declare const GlobalStyle: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;
1
+ export declare const GlobalStyle: import("styled-components").GlobalStyleComponent<{
2
+ boldFamily?: string | undefined;
3
+ defaultFamily?: string | undefined;
4
+ includeFonts?: boolean | undefined;
5
+ }, import("styled-components").DefaultTheme>;
@@ -1,4 +1,4 @@
1
- export { getButtonsColors, getThemeColor, getThemeSpacing, palette, lightTheme, darkTheme, } from './theme';
1
+ export { getButtonsColors, getThemeColor, getThemeSpacing, palette, lightTheme, darkTheme, createTheme, } from './theme';
2
2
  export { type PaletteColor as Color } from './theme';
3
3
  export { ThemeProvider } from './theme-provider';
4
4
  export * from './animations';
@@ -7,14 +7,14 @@ export type PaletteColor = 'blue_100' | 'blue_200' | 'blue_300' | 'blue_400' | '
7
7
  export declare const palette: Record<PaletteColor, string>;
8
8
  declare module 'styled-components' {
9
9
  interface FontInfo {
10
- family: string;
10
+ family?: string;
11
11
  fontWeight?: Property.FontWeight;
12
- lineHeight: string;
12
+ lineHeight?: string;
13
13
  lineHeightMedium?: string;
14
- lineHeightSmaller: string;
15
- size: string;
14
+ lineHeightSmaller?: string;
15
+ size?: string;
16
16
  sizeMedium?: string;
17
- sizeSmaller: string;
17
+ sizeSmaller?: string;
18
18
  }
19
19
  interface DefaultTheme {
20
20
  border: string;
@@ -161,6 +161,7 @@ declare module 'styled-components' {
161
161
  p2: FontInfo;
162
162
  p3: FontInfo;
163
163
  regularFontFamily: string;
164
+ useCssVariablesForFontFamily?: boolean;
164
165
  };
165
166
  name: 'dark' | 'light';
166
167
  shadow: {
@@ -229,3 +230,7 @@ export declare const getButtonsColors: (variant: ButtonVariant, theme?: DefaultT
229
230
  processingIconColorOpaque: string;
230
231
  borderProcessing?: undefined;
231
232
  };
233
+ export declare const createTheme: (config: {
234
+ theme: 'light' | 'dark';
235
+ typography?: Partial<Omit<DefaultTheme['fonts'], 'useCssVariablesForFontFamily'>>;
236
+ }) => DefaultTheme;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gantri-components",
3
- "version": "2.40.0-beta.8",
3
+ "version": "2.40.0",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "umd": "dist/index.umd.js",
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const SvgExlamationCircleFilled: React.NamedExoticComponent<object>;
3
- export default SvgExlamationCircleFilled;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const SvgExlamationCircleFilled24: React.NamedExoticComponent<object>;
3
- export default SvgExlamationCircleFilled24;
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export { Paging } from './paging';
@@ -1,5 +0,0 @@
1
- import { PagingComponentProps } from './paging.types';
2
- export declare const Paging: {
3
- (props: PagingComponentProps): JSX.Element;
4
- defaultProps: Partial<import("./paging.types").PagingProps>;
5
- };
@@ -1,2 +0,0 @@
1
- import { PagingProps } from './paging.types';
2
- export declare const pagingDefaultProps: Partial<PagingProps>;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const StyledFlex: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../flex/flex.types").FlexProps & import("react").RefAttributes<import("../flex/flex.types").FlexProps>>, import("styled-components").DefaultTheme, {}, never>;
3
- export declare const StyledPagingButton: import("styled-components").StyledComponent<import("react").FC<import("../button/button.types").ButtonProps>, import("styled-components").DefaultTheme, {}, never>;
@@ -1,13 +0,0 @@
1
- import { OnConfirmInteraction } from '../table/components/table-actions-wrapper/hooks/use-confirm-interaction/use-confirm-interaction.types';
2
- export interface PagingProps {
3
- currentPage: number;
4
- onPageChange: (page: number) => void;
5
- /** Total number of pages. */
6
- pageCount: number;
7
- /** Total number of returned results. */
8
- total: number;
9
- }
10
- export interface PagingComponentProps extends PagingProps {
11
- confirmAllInteractions: boolean;
12
- onConfirmInteraction: OnConfirmInteraction;
13
- }
@@ -1,3 +0,0 @@
1
- import { TableSortField } from '../../sort.types';
2
- import { SortMapping } from './get-sort-mapping.types';
3
- export declare const getSortMapping: <SortingField = string>(sortingOptions?: TableSortField<SortingField>[]) => SortMapping<SortingField>;
@@ -1,2 +0,0 @@
1
- import { SortInfo } from '../../../../table.props';
2
- export type SortMapping<SortingField = string> = Record<string, SortInfo<SortingField>>;