gantri-components 3.0.0-beta.5 → 3.0.0-beta.51

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 (111) hide show
  1. package/README.md +1 -1
  2. package/dist/components/box/box.types.d.ts +1 -1
  3. package/dist/components/dropdown-menu/dropdown-menu.d.ts +1 -1
  4. package/dist/components/dropdown-menu/dropdown-menu.types.d.ts +2 -0
  5. package/dist/components/flex/flex.types.d.ts +3 -1
  6. package/dist/components/icon/generated/ui-control/LinesTwoDots.d.ts +3 -0
  7. package/dist/components/icon/generated/ui-control/LinesTwoDots24.d.ts +3 -0
  8. package/dist/components/icon/generated/ui-control/XSmall.d.ts +3 -0
  9. package/dist/components/icon/generated/ui-control/XSmall24.d.ts +3 -0
  10. package/dist/components/icon/generated/ui-control/index.d.ts +4 -0
  11. package/dist/components/icon/generated/work/SdCardFilledExclamation.d.ts +3 -0
  12. package/dist/components/icon/generated/work/SdCardFilledExclamation24.d.ts +3 -0
  13. package/dist/components/icon/generated/work/SdCardOutline.d.ts +3 -0
  14. package/dist/components/icon/generated/work/SdCardOutline24.d.ts +3 -0
  15. package/dist/components/icon/generated/work/index.d.ts +4 -0
  16. package/dist/components/icon/icon.type.d.ts +1 -1
  17. package/dist/components/index.d.ts +1 -0
  18. package/dist/components/multi-select-list/index.d.ts +1 -0
  19. package/dist/components/multi-select-list/multi-select-list.d.ts +5 -0
  20. package/dist/components/multi-select-list/multi-select-list.presets.d.ts +2 -0
  21. package/dist/components/multi-select-list/multi-select-list.styles.d.ts +2 -0
  22. package/dist/components/multi-select-list/multi-select-list.types.d.ts +11 -0
  23. package/dist/components/overlay/overlay.types.d.ts +1 -0
  24. package/dist/components/search-field/search-field.d.ts +1 -1
  25. package/dist/components/search-field/search-field.styles.d.ts +1 -0
  26. package/dist/components/search-field/search-field.types.d.ts +13 -3
  27. package/dist/components/table/components/cell-reorder-wrapper/cell-reorder-wrapper.types.d.ts +2 -2
  28. package/dist/components/table/components/custom-columns-toggle/components/index.d.ts +1 -0
  29. package/dist/components/table/components/custom-columns-toggle/components/user-preferences-toggle/components/index.d.ts +3 -0
  30. package/dist/components/table/components/custom-columns-toggle/components/user-preferences-toggle/components/preference-item-drag-handle/index.d.ts +1 -0
  31. package/dist/components/table/components/custom-columns-toggle/components/user-preferences-toggle/components/preference-item-drag-handle/preference-item-drag-handle.d.ts +4 -0
  32. package/dist/components/table/components/custom-columns-toggle/components/user-preferences-toggle/components/preference-item-drag-handle/preference-item-drag-handle.styles.d.ts +1 -0
  33. package/dist/components/table/components/custom-columns-toggle/components/user-preferences-toggle/components/preference-item-overlay/index.d.ts +1 -0
  34. package/dist/components/table/components/custom-columns-toggle/components/user-preferences-toggle/components/preference-item-overlay/preference-item-overlay.d.ts +5 -0
  35. package/dist/components/table/components/custom-columns-toggle/components/user-preferences-toggle/components/preference-item-overlay/preference-item-overlay.styles.d.ts +1 -0
  36. package/dist/components/table/components/custom-columns-toggle/components/user-preferences-toggle/components/sortable-preference-item/SortablePreferenceItem.types.d.ts +4 -0
  37. package/dist/components/table/components/custom-columns-toggle/components/user-preferences-toggle/components/sortable-preference-item/index.d.ts +1 -0
  38. package/dist/components/table/components/custom-columns-toggle/components/user-preferences-toggle/components/sortable-preference-item/sortable-preference-item.d.ts +3 -0
  39. package/dist/components/table/components/custom-columns-toggle/components/user-preferences-toggle/components/sortable-preference-item/sortable-preference-item.styles.d.ts +1 -0
  40. package/dist/components/table/components/custom-columns-toggle/components/user-preferences-toggle/components/sortable.d.ts +4 -0
  41. package/dist/components/table/components/custom-columns-toggle/components/user-preferences-toggle/components/user-preferences-modal/index.d.ts +1 -0
  42. package/dist/components/table/components/custom-columns-toggle/components/user-preferences-toggle/components/user-preferences-modal/user-preferences-modal.d.ts +2 -0
  43. package/dist/components/table/components/custom-columns-toggle/components/user-preferences-toggle/components/user-preferences-modal/user-preferences-modal.styles.d.ts +6 -0
  44. package/dist/components/table/components/custom-columns-toggle/components/user-preferences-toggle/components/user-preferences-modal/user-preferences-modal.types.d.ts +10 -0
  45. package/dist/components/table/components/custom-columns-toggle/components/user-preferences-toggle/index.d.ts +1 -0
  46. package/dist/components/table/components/custom-columns-toggle/components/user-preferences-toggle/user-preferences-toggle.d.ts +3 -0
  47. package/dist/components/table/components/custom-columns-toggle/components/user-preferences-toggle/user-preferences-toggle.styles.d.ts +4 -0
  48. package/dist/components/table/components/custom-columns-toggle/components/user-preferences-toggle/user-preferences-toggle.types.d.ts +12 -0
  49. package/dist/components/table/components/custom-columns-toggle/custom-columns-toggle.adapters.d.ts +3 -0
  50. package/dist/components/table/components/custom-columns-toggle/custom-columns-toggle.d.ts +7 -0
  51. package/dist/components/table/components/custom-columns-toggle/custom-columns-toggle.helpers.d.ts +15 -0
  52. package/dist/components/table/components/custom-columns-toggle/custom-columns-toggle.styles.d.ts +3 -0
  53. package/dist/components/table/components/custom-columns-toggle/custom-columns-toggle.types.d.ts +23 -0
  54. package/dist/components/table/components/custom-columns-toggle/helpers/get-custom-column-initial-visibility/get-custom-column-initial-visibility.d.ts +30 -0
  55. package/dist/components/table/components/custom-columns-toggle/helpers/get-custom-column-initial-visibility/index.d.ts +1 -0
  56. package/dist/components/table/components/custom-columns-toggle/helpers/get-custom-column-options/get-custom-column-options.d.ts +8 -0
  57. package/dist/components/table/components/custom-columns-toggle/helpers/get-custom-column-options/get-custom-column-options.types.d.ts +6 -0
  58. package/dist/components/table/components/custom-columns-toggle/helpers/get-custom-column-options/index.d.ts +1 -0
  59. package/dist/components/table/components/custom-columns-toggle/helpers/index.d.ts +2 -0
  60. package/dist/components/table/components/custom-columns-toggle/hooks/index.d.ts +1 -0
  61. package/dist/components/table/components/custom-columns-toggle/hooks/use-detect-scroll/index.d.ts +1 -0
  62. package/dist/components/table/components/custom-columns-toggle/hooks/use-detect-scroll/use-detect-scroll.d.ts +4 -0
  63. package/dist/components/table/components/custom-columns-toggle/hooks/use-detect-scroll/use-detect-scroll.types.d.ts +9 -0
  64. package/dist/components/table/components/custom-columns-toggle/index.d.ts +1 -0
  65. package/dist/components/table/components/custom-columns-wrapper/custom-columns-wrapper.d.ts +1 -1
  66. package/dist/components/table/components/custom-columns-wrapper/custom-columns-wrapper.styles.d.ts +0 -1
  67. package/dist/components/table/components/custom-columns-wrapper/custom-columns-wrapper.types.d.ts +5 -5
  68. package/dist/components/table/components/custom-columns-wrapper/hooks/index.d.ts +1 -1
  69. package/dist/components/table/components/custom-columns-wrapper/hooks/use-detect-scroll/index.d.ts +1 -0
  70. package/dist/components/table/components/custom-columns-wrapper/hooks/use-detect-scroll/use-detect-scroll.d.ts +4 -0
  71. package/dist/components/table/components/custom-columns-wrapper/hooks/use-detect-scroll/use-detect-scroll.types.d.ts +9 -0
  72. package/dist/components/table/components/index.d.ts +1 -1
  73. package/dist/components/table/components/table-actions-wrapper/components/search/search.styles.d.ts +4 -1
  74. package/dist/components/table/components/table-actions-wrapper/components/search/search.types.d.ts +5 -1
  75. package/dist/components/table/components/table-actions-wrapper/table-actions-wrapper.types.d.ts +2 -5
  76. package/dist/components/table/components/table-header/table-header.types.d.ts +5 -2
  77. package/dist/components/table/components/table-row/helpers/get-row-component-props/get-row-component-props.d.ts +267 -0
  78. package/dist/components/table/components/table-row/helpers/get-row-component-props/index.d.ts +1 -0
  79. package/dist/components/table/components/table-row/table-row.types.d.ts +2 -2
  80. package/dist/components/table/components/table-row-cells/table-row-cells.types.d.ts +6 -3
  81. package/dist/components/table/components/table-row-overlay/table-row-overlay.types.d.ts +2 -1
  82. package/dist/components/table/hooks/index.d.ts +2 -2
  83. package/dist/components/table/hooks/use-drag-and-drop-rows/index.d.ts +1 -0
  84. package/dist/components/table/hooks/use-drag-and-drop-rows/use-drag-and-drop-rows.d.ts +9 -0
  85. package/dist/components/table/hooks/use-drag-and-drop-rows/use-drag-and-drop-rows.types.d.ts +9 -0
  86. package/dist/components/table/hooks/use-track-sticky-cells/helpers/get-is-sticky/get-is-sticky.d.ts +2 -0
  87. package/dist/components/table/hooks/use-track-sticky-cells/helpers/get-is-sticky/get-is-sticky.types.d.ts +5 -0
  88. package/dist/components/table/hooks/use-track-sticky-cells/helpers/get-is-sticky/index.d.ts +1 -0
  89. package/dist/components/table/hooks/use-track-sticky-cells/helpers.d.ts +2 -0
  90. package/dist/components/table/hooks/use-track-sticky-cells/use-track-sticky-cells.d.ts +1 -6
  91. package/dist/components/table/hooks/use-track-sticky-cells/use-track-sticky-cells.helpers.d.ts +6 -0
  92. package/dist/components/table/hooks/use-track-sticky-cells/use-track-sticky-cells.types.d.ts +4 -5
  93. package/dist/components/table/index.d.ts +0 -2
  94. package/dist/components/table/table.adapters.d.ts +16 -0
  95. package/dist/components/table/table.helpers.d.ts +9 -0
  96. package/dist/components/table/table.styles.d.ts +3 -0
  97. package/dist/components/table/table.types.d.ts +20 -6
  98. package/dist/components/table/use-drag-and-drop-rows/index.d.ts +1 -0
  99. package/dist/components/table/use-drag-and-drop-rows/use-drag-and-drop-rows.d.ts +14 -0
  100. package/dist/components/table/use-drag-and-drop-rows/use-drag-and-drop-rows.types.d.ts +9 -0
  101. package/dist/components/tabs/components/tab/tab.types.d.ts +2 -1
  102. package/dist/components/tabs/components/tab-panel/tab-panel.types.d.ts +1 -0
  103. package/dist/components/tabs/components/tabs-list/tabs-list.types.d.ts +1 -0
  104. package/dist/components/tooltip/tooltip.types.d.ts +1 -0
  105. package/dist/index.cjs.js +1 -1
  106. package/dist/index.d.ts +1 -1
  107. package/dist/index.esm.js +1 -1
  108. package/dist/index.umd.js +1 -1
  109. package/dist/styles/index.d.ts +1 -1
  110. package/dist/styles/theme.d.ts +7 -0
  111. package/package.json +3 -2
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  ## Adding new icons
4
4
 
5
5
  1. From [Figma](https://www.figma.com/file/7XptZJEfgLsGIjLT4PAFXY/Gantri-DS-%7C-Atoms?node-id=1%3A9456&t=BvL578PsHUyfuJYh-1), right click on icon from sidebar (Make sure you have the right element selected. They should be 16x16 or 24x24) and click `Copy/Paste as > Copy as SVG`.
6
- 2. Create a new .svg file in the `/assets/icons/__APPROPRIATE_CATEGORY_FOLDER__/` directory with the same name as what appears in [Figma](https://www.figma.com/file/7XptZJEfgLsGIjLT4PAFXY/Gantri-DS-%7C-Atoms?node-id=1%3A9456&t=BvL578PsHUyfuJYh-1) minus `ic_` and `_16` (example: `ic_corner_16` and `ic_corner_24` become `corner` and `corner_24`).
6
+ 2. Create a new .svg file in the `/src/assets/icons/__APPROPRIATE_CATEGORY_FOLDER__/` directory with the same name as what appears in [Figma](https://www.figma.com/file/7XptZJEfgLsGIjLT4PAFXY/Gantri-DS-%7C-Atoms?node-id=1%3A9456&t=BvL578PsHUyfuJYh-1) minus `ic_` and `_16` (example: `ic_corner_16` and `ic_corner_24` become `corner` and `corner_24`).
7
7
  3. Look at each new svg file and verify that the viewbox is `viewbox="0 0 16 16"` or `viewbox="0 0 24 24"`, as applicable. Update any that are not the appropriate value. If the icons do not look correct when complete, you can try reverting the change or talk to the designers about correcting them.
8
8
  4. Update `fill` attributes to reference value `"currentColor"`. `stroke` attributes should also be updated. Be careful to check that the updated icon matches the original icon. Send the icon back to the designers to correct if there are any issues.
9
9
  5. Remove IDs and masks. Be careful to check that the updated icon matches the original icon. Send the icon back to the designers to correct if there are any issues.
@@ -9,7 +9,7 @@ type DeprecatedSize = 's1' | 's2' | 's3' | 's4' | 's5' | 's6';
9
9
  /**
10
10
  *
11
11
  */
12
- export type BoxDimension = DeprecatedSize | '.5x' | 'x' | '2x' | '3x' | '4x' | '5x' | '6x' | '7x' | '8x' | '9x' | '10x' | '11x' | '12x' | '16x' | '18x' | '24x' | 'unset' | null | '0' | `${number}px` | `${number}rem` | `${number}vw` | `${number}%` | `calc(${string})`;
12
+ export type BoxDimension = DeprecatedSize | '.5x' | 'x' | '2x' | '3x' | '4x' | '5x' | '6x' | '7x' | '8x' | '9x' | '10x' | '11x' | '12x' | '13x' | '14x' | '15x' | '16x' | '17x' | '18x' | '19x' | '20x' | '24x' | 'unset' | null | '0' | `${number}px` | `${number}rem` | `${number}vw` | `${number}%` | `calc(${string})`;
13
13
  type AllowedBoxDimension<T> = T extends BoxDimension ? T : never;
14
14
  export interface ResolutionAwarePropBase<T> {
15
15
  lg?: AllowedBoxDimension<T>;
@@ -1,5 +1,5 @@
1
1
  import { DropdownMenuProps } from './dropdown-menu.types';
2
2
  export declare const DropdownMenu: {
3
- <T>(props: DropdownMenuProps<T>): JSX.Element;
3
+ <T extends Record<any, any>>(props: DropdownMenuProps<T>): JSX.Element;
4
4
  defaultProps: Partial<DropdownMenuProps<Record<string, unknown>>>;
5
5
  };
@@ -21,6 +21,8 @@ export interface DropdownMenuProps<T = Record<string, unknown>> {
21
21
  renderItem?: (item: T) => Maybe<ReactNode>;
22
22
  searchType?: 'startsWith' | 'contains' | 'endsWith';
23
23
  searchable?: boolean;
24
+ /** Optionally provide to highlight multiple items as selected. */
25
+ selectedItems?: T[];
24
26
  value?: string | number;
25
27
  width?: Property.Width<string | number>;
26
28
  }
@@ -1,12 +1,14 @@
1
1
  import { Property } from 'csstype';
2
- import { BoxProps } from '../box/box.types';
2
+ import { BoxDimension, BoxProps } from '../box/box.types';
3
3
  import { ResolutionAwareProp } from '../../types/resolution-aware-prop.type';
4
4
  export interface FlexProps extends BoxProps {
5
5
  alignItems?: ResolutionAwareProp<Property.AlignItems>;
6
+ columnGap?: ResolutionAwareProp<BoxDimension>;
6
7
  direction?: ResolutionAwareProp<any>;
7
8
  gap?: ResolutionAwareProp<Property.Gap>;
8
9
  height?: ResolutionAwareProp<string>;
9
10
  justifyContent?: ResolutionAwareProp<Property.JustifyContent>;
11
+ rowGap?: ResolutionAwareProp<BoxDimension>;
10
12
  width?: ResolutionAwareProp<string>;
11
13
  wrap?: ResolutionAwareProp<Property.FlexWrap>;
12
14
  }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const SvgLinesTwoDots: React.NamedExoticComponent<object>;
3
+ export default SvgLinesTwoDots;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const SvgLinesTwoDots24: React.NamedExoticComponent<object>;
3
+ export default SvgLinesTwoDots24;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const SvgXSmall: React.NamedExoticComponent<object>;
3
+ export default SvgXSmall;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const SvgXSmall24: React.NamedExoticComponent<object>;
3
+ export default SvgXSmall24;
@@ -17,6 +17,8 @@ export { default as LinesThree } from './LinesThree';
17
17
  export { default as LinesThree24 } from './LinesThree24';
18
18
  export { default as LinesTwo } from './LinesTwo';
19
19
  export { default as LinesTwo24 } from './LinesTwo24';
20
+ export { default as LinesTwoDots } from './LinesTwoDots';
21
+ export { default as LinesTwoDots24 } from './LinesTwoDots24';
20
22
  export { default as Minus } from './Minus';
21
23
  export { default as Minus24 } from './Minus24';
22
24
  export { default as MinusCircle } from './MinusCircle';
@@ -39,3 +41,5 @@ export { default as ThreeDotsHorizontal } from './ThreeDotsHorizontal';
39
41
  export { default as ThreeDotsHorizontal24 } from './ThreeDotsHorizontal24';
40
42
  export { default as X } from './X';
41
43
  export { default as X24 } from './X24';
44
+ export { default as XSmall } from './XSmall';
45
+ export { default as XSmall24 } from './XSmall24';
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const SvgSdCardFilledExclamation: React.NamedExoticComponent<object>;
3
+ export default SvgSdCardFilledExclamation;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const SvgSdCardFilledExclamation24: React.NamedExoticComponent<object>;
3
+ export default SvgSdCardFilledExclamation24;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const SvgSdCardOutline: React.NamedExoticComponent<object>;
3
+ export default SvgSdCardOutline;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const SvgSdCardOutline24: React.NamedExoticComponent<object>;
3
+ export default SvgSdCardOutline24;
@@ -28,6 +28,10 @@ export { default as SandPaper } from './SandPaper';
28
28
  export { default as SandPaper24 } from './SandPaper24';
29
29
  export { default as SandPrimed } from './SandPrimed';
30
30
  export { default as SandPrimed24 } from './SandPrimed24';
31
+ export { default as SdCardFilledExclamation } from './SdCardFilledExclamation';
32
+ export { default as SdCardFilledExclamation24 } from './SdCardFilledExclamation24';
33
+ export { default as SdCardOutline } from './SdCardOutline';
34
+ export { default as SdCardOutline24 } from './SdCardOutline24';
31
35
  export { default as Sun } from './Sun';
32
36
  export { default as Sun24 } from './Sun24';
33
37
  export { default as TriangleRuler } from './TriangleRuler';
@@ -1,2 +1,2 @@
1
- export declare const IconsList: readonly ["actions:funnel", "actions:funnel_24", "actions:funnel_filled", "actions:funnel_filled_24", "actions:gear", "actions:gear_24", "actions:life_buoy", "actions:life_buoy_24", "actions:link", "actions:link_24", "actions:star", "actions:star_24", "actions:star_filled", "actions:star_filled_24", "actions:star_half", "actions:star_half_24", "actions:thumbs_up", "actions:thumbs_up_24", "actions:trash_can", "actions:trash_can_24", "alert:bell", "alert:bell_24", "alert:bell_filled", "alert:bell_filled_24", "alert:i_circle", "alert:i_circle_24", "alert:lightning_bolt", "alert:lightning_bolt_24", "alert:lightning_bolt_filled", "alert:lightning_bolt_filled_24", "alert:question_mark_circle", "alert:question_mark_circle_24", "alert:warning_triangle", "alert:warning_triangle_24", "animated:loader", "arrows:arrow_chevron_double_down", "arrows:arrow_chevron_double_down_24", "arrows:arrow_chevron_double_left", "arrows:arrow_chevron_double_left_24", "arrows:arrow_chevron_double_right", "arrows:arrow_chevron_double_right_24", "arrows:arrow_chevron_double_up", "arrows:arrow_chevron_double_up_24", "arrows:arrow_chevron_down", "arrows:arrow_chevron_down_24", "arrows:arrow_chevron_left", "arrows:arrow_chevron_left_24", "arrows:arrow_chevron_right", "arrows:arrow_chevron_right_24", "arrows:arrow_chevron_up", "arrows:arrow_chevron_up_24", "arrows:arrow_down", "arrows:arrow_down_24", "arrows:arrow_download", "arrows:arrow_download_24", "arrows:arrow_external", "arrows:arrow_external_24", "arrows:arrow_left", "arrows:arrow_left_24", "arrows:arrow_line_down", "arrows:arrow_line_down_24", "arrows:arrow_line_left", "arrows:arrow_line_left_24", "arrows:arrow_line_right", "arrows:arrow_line_right_24", "arrows:arrow_line_up", "arrows:arrow_line_up_24", "arrows:arrow_return", "arrows:arrow_right", "arrows:arrow_right_24", "arrows:arrow_rotate_two", "arrows:arrow_rotate_two_24", "arrows:arrow_triangle_down", "arrows:arrow_triangle_down_24", "arrows:arrow_triangle_left", "arrows:arrow_triangle_left_24", "arrows:arrow_triangle_right", "arrows:arrow_triangle_right_24", "arrows:arrow_triangle_up", "arrows:arrow_triangle_up_24", "arrows:arrow_triangle_updown", "arrows:arrow_triangle_updown_24", "arrows:arrow_triangle_updown_down_filled", "arrows:arrow_triangle_updown_down_filled_24", "arrows:arrow_triangle_updown_filled", "arrows:arrow_triangle_updown_filled_24", "arrows:arrow_triangle_updown_top_filled", "arrows:arrow_triangle_updown_top_filled_24", "arrows:arrow_up", "arrows:arrow_up_24", "arrows:arrow_updown", "arrows:arrow_updown_24", "arrows:arrow_updown_filled", "arrows:arrow_updown_filled_24", "arrows:arrow_upload", "arrows:arrow_upload_24", "data:chart_bar", "data:chart_bar_24", "docs:document_blank", "docs:document_blank_24", "docs:pencil", "docs:pencil_24", "location:house", "location:house_24", "location:location_california", "location:location_california_24", "location:location_pin", "location:location_pin_24", "logos:logo_affirm", "logos:logo_affirm_colored", "logos:logo_apple", "logos:logo_apple_text", "logos:logo_behance", "logos:logo_facebook", "logos:logo_gantri", "logos:logo_github", "logos:logo_google", "logos:logo_google_text", "logos:logo_instagram", "logos:logo_linkedin", "logos:logo_pinterest", "logos:logo_tiktok", "logos:logo_twitter", "logos:logo_yotpo", "logos:logo_youtube", "machine:difficulty_easy", "machine:difficulty_hard", "machine:difficulty_moderate", "machine:difficulty_multiple", "machine:laptop", "media:photo", "media:photo_24", "media:photo_filled", "media:photo_filled_24", "payment:cash", "payment:cash_24", "payment:credit_card", "payment:credit_card_24", "payment:gift_box", "payment:gift_box_24", "payment:gift_card", "payment:gift_card_24", "payment:shopping_bag", "payment:shopping_bag_24", "people:people", "people:people_24", "people:person", "people:person_24", "people:person_outline", "people:person_outline_24", "time:calendar", "time:calendar_24", "time:clock", "time:clock_24", "time:clock_filled", "time:clock_filled_24", "ui-control:award_ribbon", "ui-control:check_mark", "ui-control:check_mark_24", "ui-control:check_mark_circle_filled", "ui-control:check_mark_circle_filled_24", "ui-control:drag", "ui-control:email", "ui-control:email_24", "ui-control:exclamation_circle_filled", "ui-control:exclamation_circle_filled_24", "ui-control:globe", "ui-control:globe_24", "ui-control:grid", "ui-control:grid_24", "ui-control:left_quote", "ui-control:lines_three", "ui-control:lines_three_24", "ui-control:lines_two", "ui-control:lines_two_24", "ui-control:minus", "ui-control:minus_24", "ui-control:minus_circle", "ui-control:minus_circle_24", "ui-control:minus_circle_filled", "ui-control:minus_circle_filled_24", "ui-control:pause", "ui-control:pause_24", "ui-control:play", "ui-control:plus", "ui-control:plus_24", "ui-control:plus_circle", "ui-control:plus_circle_24", "ui-control:sound_off", "ui-control:sound_off_24", "ui-control:sound_on", "ui-control:three_dots_cluster", "ui-control:three_dots_cluster_24", "ui-control:three_dots_horizontal", "ui-control:three_dots_horizontal_24", "ui-control:x", "ui-control:x_24", "view:eye_open", "view:eye_open_24", "view:magnifying_glass", "view:magnifying_glass_24", "view:magnifying_glass_filled", "view:magnifying_glass_filled_24", "work:assemble", "work:assemble_24", "work:basket_filled", "work:basket_filled_24", "work:box", "work:box_24", "work:corner", "work:corner_24", "work:cube_outline", "work:cube_outline_24", "work:leaf", "work:leaf_24", "work:light_bulb", "work:light_bulb_24", "work:mask", "work:mask_24", "work:no_entry", "work:no_entry_24", "work:p_circle", "work:p_circle_24", "work:print_nozzle", "work:print_nozzle_24", "work:rfid_signal", "work:rfid_signal_24", "work:sand_painted", "work:sand_painted_24", "work:sand_paper", "work:sand_paper_24", "work:sand_primed", "work:sand_primed_24", "work:sun", "work:sun_24", "work:triangle_ruler", "work:triangle_ruler_24", "work:triangle_ruler_filled", "work:tumbler", "work:tumbler_24", "work:water_drop", "work:water_drop_24", "work:water_drop_dotted", "work:water_drop_dotted_24", "work:wrench", "work:wrench_24"];
1
+ export declare const IconsList: readonly ["actions:funnel", "actions:funnel_24", "actions:funnel_filled", "actions:funnel_filled_24", "actions:gear", "actions:gear_24", "actions:life_buoy", "actions:life_buoy_24", "actions:link", "actions:link_24", "actions:star", "actions:star_24", "actions:star_filled", "actions:star_filled_24", "actions:star_half", "actions:star_half_24", "actions:thumbs_up", "actions:thumbs_up_24", "actions:trash_can", "actions:trash_can_24", "alert:bell", "alert:bell_24", "alert:bell_filled", "alert:bell_filled_24", "alert:i_circle", "alert:i_circle_24", "alert:lightning_bolt", "alert:lightning_bolt_24", "alert:lightning_bolt_filled", "alert:lightning_bolt_filled_24", "alert:question_mark_circle", "alert:question_mark_circle_24", "alert:warning_triangle", "alert:warning_triangle_24", "animated:loader", "arrows:arrow_chevron_double_down", "arrows:arrow_chevron_double_down_24", "arrows:arrow_chevron_double_left", "arrows:arrow_chevron_double_left_24", "arrows:arrow_chevron_double_right", "arrows:arrow_chevron_double_right_24", "arrows:arrow_chevron_double_up", "arrows:arrow_chevron_double_up_24", "arrows:arrow_chevron_down", "arrows:arrow_chevron_down_24", "arrows:arrow_chevron_left", "arrows:arrow_chevron_left_24", "arrows:arrow_chevron_right", "arrows:arrow_chevron_right_24", "arrows:arrow_chevron_up", "arrows:arrow_chevron_up_24", "arrows:arrow_down", "arrows:arrow_down_24", "arrows:arrow_download", "arrows:arrow_download_24", "arrows:arrow_external", "arrows:arrow_external_24", "arrows:arrow_left", "arrows:arrow_left_24", "arrows:arrow_line_down", "arrows:arrow_line_down_24", "arrows:arrow_line_left", "arrows:arrow_line_left_24", "arrows:arrow_line_right", "arrows:arrow_line_right_24", "arrows:arrow_line_up", "arrows:arrow_line_up_24", "arrows:arrow_return", "arrows:arrow_right", "arrows:arrow_right_24", "arrows:arrow_rotate_two", "arrows:arrow_rotate_two_24", "arrows:arrow_triangle_down", "arrows:arrow_triangle_down_24", "arrows:arrow_triangle_left", "arrows:arrow_triangle_left_24", "arrows:arrow_triangle_right", "arrows:arrow_triangle_right_24", "arrows:arrow_triangle_up", "arrows:arrow_triangle_up_24", "arrows:arrow_triangle_updown", "arrows:arrow_triangle_updown_24", "arrows:arrow_triangle_updown_down_filled", "arrows:arrow_triangle_updown_down_filled_24", "arrows:arrow_triangle_updown_filled", "arrows:arrow_triangle_updown_filled_24", "arrows:arrow_triangle_updown_top_filled", "arrows:arrow_triangle_updown_top_filled_24", "arrows:arrow_up", "arrows:arrow_up_24", "arrows:arrow_updown", "arrows:arrow_updown_24", "arrows:arrow_updown_filled", "arrows:arrow_updown_filled_24", "arrows:arrow_upload", "arrows:arrow_upload_24", "data:chart_bar", "data:chart_bar_24", "docs:document_blank", "docs:document_blank_24", "docs:pencil", "docs:pencil_24", "location:house", "location:house_24", "location:location_california", "location:location_california_24", "location:location_pin", "location:location_pin_24", "logos:logo_affirm", "logos:logo_affirm_colored", "logos:logo_apple", "logos:logo_apple_text", "logos:logo_behance", "logos:logo_facebook", "logos:logo_gantri", "logos:logo_github", "logos:logo_google", "logos:logo_google_text", "logos:logo_instagram", "logos:logo_linkedin", "logos:logo_pinterest", "logos:logo_tiktok", "logos:logo_twitter", "logos:logo_yotpo", "logos:logo_youtube", "machine:difficulty_easy", "machine:difficulty_hard", "machine:difficulty_moderate", "machine:difficulty_multiple", "machine:laptop", "media:photo", "media:photo_24", "media:photo_filled", "media:photo_filled_24", "payment:cash", "payment:cash_24", "payment:credit_card", "payment:credit_card_24", "payment:gift_box", "payment:gift_box_24", "payment:gift_card", "payment:gift_card_24", "payment:shopping_bag", "payment:shopping_bag_24", "people:people", "people:people_24", "people:person", "people:person_24", "people:person_outline", "people:person_outline_24", "time:calendar", "time:calendar_24", "time:clock", "time:clock_24", "time:clock_filled", "time:clock_filled_24", "ui-control:award_ribbon", "ui-control:check_mark", "ui-control:check_mark_24", "ui-control:check_mark_circle_filled", "ui-control:check_mark_circle_filled_24", "ui-control:drag", "ui-control:email", "ui-control:email_24", "ui-control:exclamation_circle_filled", "ui-control:exclamation_circle_filled_24", "ui-control:globe", "ui-control:globe_24", "ui-control:grid", "ui-control:grid_24", "ui-control:left_quote", "ui-control:lines_three", "ui-control:lines_three_24", "ui-control:lines_two", "ui-control:lines_two_24", "ui-control:lines_two_dots", "ui-control:lines_two_dots_24", "ui-control:minus", "ui-control:minus_24", "ui-control:minus_circle", "ui-control:minus_circle_24", "ui-control:minus_circle_filled", "ui-control:minus_circle_filled_24", "ui-control:pause", "ui-control:pause_24", "ui-control:play", "ui-control:plus", "ui-control:plus_24", "ui-control:plus_circle", "ui-control:plus_circle_24", "ui-control:sound_off", "ui-control:sound_off_24", "ui-control:sound_on", "ui-control:three_dots_cluster", "ui-control:three_dots_cluster_24", "ui-control:three_dots_horizontal", "ui-control:three_dots_horizontal_24", "ui-control:x", "ui-control:x_24", "ui-control:x_small", "ui-control:x_small_24", "view:eye_open", "view:eye_open_24", "view:magnifying_glass", "view:magnifying_glass_24", "view:magnifying_glass_filled", "view:magnifying_glass_filled_24", "work:assemble", "work:assemble_24", "work:basket_filled", "work:basket_filled_24", "work:box", "work:box_24", "work:corner", "work:corner_24", "work:cube_outline", "work:cube_outline_24", "work:leaf", "work:leaf_24", "work:light_bulb", "work:light_bulb_24", "work:mask", "work:mask_24", "work:no_entry", "work:no_entry_24", "work:p_circle", "work:p_circle_24", "work:print_nozzle", "work:print_nozzle_24", "work:rfid_signal", "work:rfid_signal_24", "work:sand_painted", "work:sand_painted_24", "work:sand_paper", "work:sand_paper_24", "work:sand_primed", "work:sand_primed_24", "work:sd_card_filled_exclamation", "work:sd_card_filled_exclamation_24", "work:sd_card_outline", "work:sd_card_outline_24", "work:sun", "work:sun_24", "work:triangle_ruler", "work:triangle_ruler_24", "work:triangle_ruler_filled", "work:tumbler", "work:tumbler_24", "work:water_drop", "work:water_drop_24", "work:water_drop_dotted", "work:water_drop_dotted_24", "work:wrench", "work:wrench_24"];
2
2
  export type IconType = typeof IconsList[number];
@@ -21,6 +21,7 @@ export * from './in-view';
21
21
  export * from './line';
22
22
  export * from './linear-progress';
23
23
  export * from './modal';
24
+ export * from './multi-select-list';
24
25
  export * from './overlay';
25
26
  export * from './pills';
26
27
  export * from './radio';
@@ -0,0 +1 @@
1
+ export * from './multi-select-list';
@@ -0,0 +1,5 @@
1
+ import { MultiSelectListProps } from './multi-select-list.types';
2
+ export declare const MultiSelectList: {
3
+ <Item extends Record<any, any>>(props: MultiSelectListProps<Item>): JSX.Element;
4
+ defaultProps: import("./multi-select-list.types").MultiSelectListDefaultProps<Record<string, unknown>>;
5
+ };
@@ -0,0 +1,2 @@
1
+ import { MultiSelectListDefaultProps } from './multi-select-list.types';
2
+ export declare const multiSelectListDefaultProps: MultiSelectListDefaultProps<Record<string, unknown>>;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const StyledFlexItem: 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>;
@@ -0,0 +1,11 @@
1
+ import { FlexProps } from '../flex/flex.types';
2
+ export interface MultiSelectListProps<Item extends Record<any, any>> extends Partial<MultiSelectListDefaultProps<Item>>, Partial<FlexProps> {
3
+ items: Item[];
4
+ labelPropertyTx?: (item?: Item) => string;
5
+ setItems: (newItems: Item[]) => void;
6
+ }
7
+ export interface MultiSelectListDefaultProps<Item extends Record<any, any>> {
8
+ clearButtonText?: string;
9
+ idProperty: keyof Item;
10
+ labelProperty: keyof Item | ((item?: Item) => string);
11
+ }
@@ -2,6 +2,7 @@ import { CSSProperties, ReactNode } from 'react';
2
2
  export interface OverlayProps {
3
3
  /** Trigger event interactions with this component causes `content` to render, as appropriate. */
4
4
  children?: ReactNode;
5
+ className?: string;
5
6
  /** Applied as inline styles to the `children` wrapper. */
6
7
  containerStyles?: CSSProperties;
7
8
  /** The component to show/hide. */
@@ -1,5 +1,5 @@
1
1
  import { SearchFieldProps } from './search-field.types';
2
2
  export declare const SearchField: {
3
- <T>(props: SearchFieldProps<T>): JSX.Element;
3
+ <T extends Record<any, any>>(props: SearchFieldProps<T>): JSX.Element;
4
4
  defaultProps: Partial<SearchFieldProps<any>>;
5
5
  };
@@ -1 +1,2 @@
1
1
  export declare const StyledSelect: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
2
+ export declare const StyledLoadingContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -6,8 +6,10 @@ import { BlurChangeEvent, DropdownChangeEvent } from '../dropdown';
6
6
  export interface SearchFieldProps<T = Record<string, unknown>> extends Omit<DropdownMenuProps<T>, 'items'> {
7
7
  borderless?: boolean;
8
8
  className?: string;
9
+ clearButtonText?: string;
9
10
  disabled?: boolean;
10
11
  dropdownPopupWidth?: Property.Width<string | number>;
12
+ enableSelectedItemsList?: boolean;
11
13
  errorMessage?: ErrorMessageType;
12
14
  filterFn?: (searchBy: string, item: T) => boolean;
13
15
  hideErrors?: boolean;
@@ -15,12 +17,16 @@ export interface SearchFieldProps<T = Record<string, unknown>> extends Omit<Drop
15
17
  /** Can optionally include `disabled: true` to any index to disable that item. */
16
18
  items?: T[];
17
19
  keyProperty?: (option?: T) => string;
18
- labelPosition?: 'top' | 'left';
19
20
  labelText?: string;
20
21
  labelTx?: string;
22
+ /**
23
+ * System will start searching after user has input n digits
24
+ * There will be no dropdown shown initially, until user enters the n digits and systems begins search.
25
+ * */
26
+ minSearchLength?: number;
21
27
  name?: string;
22
28
  onBlur?: (event: BlurChangeEvent) => void;
23
- onChange?: (event: DropdownChangeEvent<T>) => void;
29
+ onChange?: (event: DropdownChangeEvent<T> | DropdownChangeEvent<T[keyof T][]>) => void;
24
30
  onFocus?: (event: FocusEvent<HTMLDivElement>) => void;
25
31
  onOpen?: () => void;
26
32
  onTextChange?: (value: string) => void;
@@ -29,7 +35,9 @@ export interface SearchFieldProps<T = Record<string, unknown>> extends Omit<Drop
29
35
  placeholderTxValues?: {
30
36
  [key: string]: string;
31
37
  };
32
- renderPlaceholder?: (option?: T) => JSX.Element;
38
+ processing?: boolean;
39
+ processingText?: string;
40
+ processingTx?: string;
33
41
  resetSelectionOnDisabled?: boolean;
34
42
  /**
35
43
  * If internal, the component will search over the provided list of items,
@@ -37,6 +45,8 @@ export interface SearchFieldProps<T = Record<string, unknown>> extends Omit<Drop
37
45
  * the new items must be provided after.
38
46
  * */
39
47
  searchMode?: 'internal' | 'external';
48
+ selectedItemsList?: (keyof T)[];
40
49
  style?: CSSProperties;
41
50
  variant?: 'line' | 'filled';
51
+ labelPosition?: 'top' | 'left';
42
52
  }
@@ -1,10 +1,10 @@
1
1
  import { PropsWithChildren, ReactNode } from 'react';
2
2
  import { RowData } from '@tanstack/react-table';
3
- import { ReorderingProps } from '../../table.types';
3
+ import { RowReorderingProps } from '../../table.types';
4
4
  export type CellReorderWrapperProps<TData extends RowData> = PropsWithChildren<{
5
5
  FirstColumnContent: JSX.Element | ReactNode;
6
6
  /** Rendered when `reordering` is provided, but `reordering.isAvailable === false`. */
7
7
  FirstColumnFallback: JSX.Element | ReactNode;
8
8
  index: number;
9
- reordering: ReorderingProps<TData> | undefined;
9
+ reordering: RowReorderingProps<TData> | undefined;
10
10
  }>;
@@ -0,0 +1 @@
1
+ export * from './user-preferences-toggle';
@@ -0,0 +1,3 @@
1
+ export * from './preference-item-overlay';
2
+ export * from './sortable-preference-item';
3
+ export * from './user-preferences-modal';
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ export declare const PreferenceItemDragHandle: FC<{
3
+ id: string;
4
+ }>;
@@ -0,0 +1 @@
1
+ export declare const StyledContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ import { CustomColumnOption } from '../../../../custom-columns-toggle.types';
3
+ export declare const PreferenceItemOverlay: FC<{
4
+ data: CustomColumnOption;
5
+ }>;
@@ -0,0 +1 @@
1
+ export declare const StyledContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -0,0 +1,4 @@
1
+ export interface SortablePreferenceItemProps {
2
+ id: string;
3
+ reorderEnable: boolean;
4
+ }
@@ -0,0 +1,3 @@
1
+ import { FC, PropsWithChildren } from 'react';
2
+ import { SortablePreferenceItemProps } from './SortablePreferenceItem.types';
3
+ export declare const SortablePreferenceItem: FC<PropsWithChildren<SortablePreferenceItemProps>>;
@@ -0,0 +1 @@
1
+ export declare const StyledContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -0,0 +1,4 @@
1
+ import { FC, PropsWithChildren } from 'react';
2
+ export declare const Sortable: FC<PropsWithChildren<{
3
+ id: string;
4
+ }>>;
@@ -0,0 +1,2 @@
1
+ import { UserPreferencesModalProps } from './user-preferences-modal.types';
2
+ export declare const UserPreferencesModal: (props: UserPreferencesModalProps) => JSX.Element;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export declare const StyledPreferencesPopUp: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
3
+ export declare const StyledHeading: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../../../../../../../grid/grid.types").GridProps & import("react").RefAttributes<import("../../../../../../../grid/grid.types").GridProps>>, import("styled-components").DefaultTheme, {}, never>;
4
+ export declare const StyledClickableIcon: import("styled-components").StyledComponent<import("react").FC<import("../../../../../../../icon/icon.types").IconProps>, import("styled-components").DefaultTheme, {}, never>;
5
+ export declare const StyledContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
6
+ export declare const StyledFooter: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -0,0 +1,10 @@
1
+ import { CustomColumnOption } from '../../../../custom-columns-toggle.types';
2
+ import { SyncState } from '../../../../../../table.types';
3
+ export interface UserPreferencesModalProps {
4
+ activeIndex: number;
5
+ checklistOptions: CustomColumnOption[];
6
+ onClose: () => Promise<void>;
7
+ onReset: () => Promise<void>;
8
+ syncState?: SyncState;
9
+ title: string;
10
+ }
@@ -0,0 +1,3 @@
1
+ import { UserPreferencesToggleProps } from './user-preferences-toggle.types';
2
+ /** Toggles a dialog where the user can save their preferences for the specified `page`. */
3
+ export declare const UserPreferencesToggle: (props: UserPreferencesToggleProps) => JSX.Element;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare const StyledButton: import("styled-components").StyledComponent<import("react").FC<import("../../../../../button/button.types").ButtonProps>, import("styled-components").DefaultTheme, {
3
+ 'data-is-active': boolean;
4
+ }, never>;
@@ -0,0 +1,12 @@
1
+ import { Dispatch, SetStateAction } from 'react';
2
+ import { CustomColumnOption } from '../../custom-columns-toggle.types';
3
+ import { SyncState } from '../../../../table.types';
4
+ export interface UserPreferencesToggleProps {
5
+ activeIndex: number;
6
+ checklistOptions: CustomColumnOption[];
7
+ isActive: boolean;
8
+ modalHeading: string;
9
+ onReset: () => Promise<void>;
10
+ setIsActive: Dispatch<SetStateAction<boolean>>;
11
+ syncState?: SyncState;
12
+ }
@@ -0,0 +1,3 @@
1
+ export declare const transformsRecordsIntoIds: (records: Array<{
2
+ id?: string | number;
3
+ }>) => string[];
@@ -0,0 +1,7 @@
1
+ import { RowData } from '@tanstack/react-table';
2
+ import { CustomColumnsWrapperProps } from './custom-columns-toggle.types';
3
+ export declare const CustomColumnsToggle: <TData extends RowData<{
4
+ [key: string]: unknown;
5
+ id?: string | number | undefined;
6
+ subRows?: any[] | undefined;
7
+ }>>(props: CustomColumnsWrapperProps<TData>) => JSX.Element;
@@ -0,0 +1,15 @@
1
+ import { Column, RowData, Table } from '@tanstack/react-table';
2
+ import { CustomColumnOption } from './custom-columns-toggle.types';
3
+ export interface GetCustomColumnOptionsArgs<TData extends RowData> {
4
+ table: Table<TData>;
5
+ }
6
+ export declare const getCustomColumnOptions: <TData extends RowData<{
7
+ [key: string]: unknown;
8
+ id?: string | number | undefined;
9
+ subRows?: any[] | undefined;
10
+ }>>(args: GetCustomColumnOptionsArgs<TData>) => CustomColumnOption[];
11
+ export declare const transformColumnsIntoVisibilityState: <TData extends RowData<{
12
+ [key: string]: unknown;
13
+ id?: string | number | undefined;
14
+ subRows?: any[] | undefined;
15
+ }>>(columns: Column<TData, unknown>[]) => {};
@@ -0,0 +1,3 @@
1
+ export declare const StyledToggleWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
2
+ isScrolling: boolean;
3
+ }, never>;
@@ -0,0 +1,23 @@
1
+ import { RowData, Table } from '@tanstack/react-table';
2
+ import { Dispatch, SetStateAction } from 'react';
3
+ import { SyncState } from '../../table.types';
4
+ export interface CustomColumnsWrapperProps<TData extends RowData> {
5
+ isActive: boolean;
6
+ isScrolling: boolean;
7
+ setIsActive: Dispatch<SetStateAction<boolean>>;
8
+ syncState?: SyncState;
9
+ table: Table<TData>;
10
+ }
11
+ export interface CustomColumnsProps<TData extends RowData> {
12
+ disabledColumns: (keyof TData | string)[];
13
+ hiddenColumns: (keyof TData | string)[];
14
+ onUpdateHiddenColumns: (columnsToHide: string[]) => Promise<void>;
15
+ }
16
+ export interface CustomColumnOption {
17
+ checked: boolean;
18
+ disabled: boolean;
19
+ id: string;
20
+ label: string;
21
+ onChange: (event: unknown) => void;
22
+ reorderable: boolean;
23
+ }
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Used to mark the starting hidden columns when using custom columns.
3
+ *
4
+ * @example
5
+ * const [hiddenColumns, setHiddenColumns] = useState<string[]>(STARTING_HIDDEN_COLUMNS);
6
+ * const initialColumnVisibility = getCustomColumnInitialVisibility(hiddenColumns);
7
+ * const [columnVisibility, setColumnVisibility] = useState(initialColumnVisibility);
8
+ *
9
+ * return (
10
+ * <TableComponent
11
+ * data={tableData}
12
+ * columns={tableColumns}
13
+ * options={{
14
+ * state: {
15
+ * columnVisibility,
16
+ * },
17
+ * onColumnVisibilityChange: setColumnVisibility,
18
+ * }}
19
+ * customColumns={{
20
+ * disabledColumns: [DISABLED_COLUMNS],
21
+ * onUpdateHiddenColumns: async columns => {
22
+ * // REQUEST API HIDE COLUMNS
23
+ * setHiddenColumns(columns);
24
+ * },
25
+ * hiddenColumns: hiddenColumns,
26
+ * }}
27
+ * />
28
+ * )
29
+ */
30
+ export declare const getCustomColumnInitialVisibility: (hiddenColumns: string[]) => {};
@@ -0,0 +1 @@
1
+ export * from './get-custom-column-initial-visibility';
@@ -0,0 +1,8 @@
1
+ import { RowData } from '@tanstack/react-table';
2
+ import { CustomColumnOption } from '../../custom-columns-toggle.types';
3
+ import { GetCustomColumnOptionsArgs } from './get-custom-column-options.types';
4
+ export declare const getCustomColumnOptions: <TData extends RowData<{
5
+ [key: string]: unknown;
6
+ id?: string | number | undefined;
7
+ subRows?: any[] | undefined;
8
+ }>>(args: GetCustomColumnOptionsArgs<TData>) => CustomColumnOption[];
@@ -0,0 +1,6 @@
1
+ import { RowData, Table } from '@tanstack/react-table';
2
+ import { CustomColumnsProps } from '../../custom-columns-toggle.types';
3
+ export interface GetCustomColumnOptionsArgs<TData extends RowData> {
4
+ customColumns: CustomColumnsProps<TData> | undefined;
5
+ table: Table<TData>;
6
+ }
@@ -0,0 +1 @@
1
+ export * from './get-custom-column-options';
@@ -0,0 +1,2 @@
1
+ export * from './get-custom-column-initial-visibility';
2
+ export * from './get-custom-column-options';
@@ -0,0 +1 @@
1
+ export * from './use-detect-scroll';
@@ -0,0 +1 @@
1
+ export * from './use-detect-scroll';
@@ -0,0 +1,4 @@
1
+ import { UseDetectScrollProps } from './use-detect-scroll.types';
2
+ export declare const useDetectScroll: (props: UseDetectScrollProps) => {
3
+ isScrolling: boolean;
4
+ };
@@ -0,0 +1,9 @@
1
+ export interface UseDetectScrollProps {
2
+ /** Time after scrolling has stopped before acting on it. */
3
+ delay?: number;
4
+ direction: 'horizontal' | 'vertical';
5
+ element: HTMLElement | null;
6
+ enabled?: boolean;
7
+ onEndScrolling?: () => void;
8
+ onStartScrolling?: () => void;
9
+ }
@@ -0,0 +1 @@
1
+ export * from './custom-columns-toggle';
@@ -1,6 +1,6 @@
1
1
  import { RowData } from '@tanstack/react-table';
2
2
  import { CustomColumnsWrapperProps } from './custom-columns-wrapper.types';
3
- export declare const CustomColumnsWrapper: <TData extends RowData<{
3
+ export declare const CustomColumnsToggle: <TData extends RowData<{
4
4
  [key: string]: unknown;
5
5
  id?: string | number | undefined;
6
6
  subRows?: any[] | undefined;
@@ -1,4 +1,3 @@
1
- export declare const StyledTableContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
2
1
  export declare const StyledToggleWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
3
2
  isScrolling: boolean;
4
3
  }, never>;
@@ -1,5 +1,9 @@
1
1
  import { RowData, Table } from '@tanstack/react-table';
2
- import { PropsWithChildren } from 'react';
2
+ export interface CustomColumnsWrapperProps<TData extends RowData> {
3
+ customColumns: CustomColumnsProps<TData> | undefined;
4
+ isScrolling: boolean;
5
+ table: Table<TData>;
6
+ }
3
7
  export interface CustomColumnsProps<TData extends RowData> {
4
8
  disabledColumns: (keyof TData | string)[];
5
9
  hiddenColumns: (keyof TData | string)[];
@@ -12,7 +16,3 @@ export interface CustomColumnOption {
12
16
  onChange: (event: unknown) => void;
13
17
  value: string;
14
18
  }
15
- export type CustomColumnsWrapperProps<TData extends RowData> = PropsWithChildren<{
16
- customColumns: CustomColumnsProps<TData> | undefined;
17
- table: Table<TData>;
18
- }>;