@ssa-ui-kit/core 3.23.1 → 3.24.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 (45) hide show
  1. package/dist/ai/source-map.md +155 -52
  2. package/dist/components/Calendar/Calendar.d.ts +130 -0
  3. package/dist/components/Calendar/CalendarContext.d.ts +25 -0
  4. package/dist/components/Calendar/CalendarEventDetails.d.ts +80 -0
  5. package/dist/components/Calendar/components/CalendarToolbar.d.ts +20 -0
  6. package/dist/components/Calendar/components/DayView.d.ts +14 -0
  7. package/dist/components/Calendar/components/EventDetailsLayer.d.ts +17 -0
  8. package/dist/components/Calendar/components/EventSlot.d.ts +17 -0
  9. package/dist/components/Calendar/components/HighlightBadge.d.ts +5 -0
  10. package/dist/components/Calendar/components/MonthView.d.ts +19 -0
  11. package/dist/components/Calendar/components/MoreEventsPopover.d.ts +16 -0
  12. package/dist/components/Calendar/components/TaskCheckbox.d.ts +8 -0
  13. package/dist/components/Calendar/components/useEventClick.d.ts +10 -0
  14. package/dist/components/Calendar/consts.d.ts +47 -0
  15. package/dist/components/Calendar/index.d.ts +2 -0
  16. package/dist/components/Calendar/styles.d.ts +137 -0
  17. package/dist/components/Calendar/types.d.ts +383 -0
  18. package/dist/components/Calendar/utils.d.ts +116 -0
  19. package/dist/components/NestedTable/NestedTableContext.d.ts +3 -3
  20. package/dist/components/NestedTable/components/NestedTable.d.ts +37 -4
  21. package/dist/components/NestedTable/components/NestedTableCell.d.ts +2 -3
  22. package/dist/components/NestedTable/components/NestedTableCellBase.d.ts +16 -0
  23. package/dist/components/NestedTable/components/NestedTableCellHeader.d.ts +36 -0
  24. package/dist/components/NestedTable/components/index.d.ts +1 -0
  25. package/dist/components/NestedTable/consts.d.ts +5 -0
  26. package/dist/components/NestedTable/hooks/useNestedTableContext.d.ts +1 -1
  27. package/dist/components/NestedTable/types.d.ts +31 -0
  28. package/dist/components/Table/ColumnFreezeContext.d.ts +27 -0
  29. package/dist/components/Table/ColumnFreezeMenu.d.ts +33 -0
  30. package/dist/components/Table/TableBase.d.ts +8 -1
  31. package/dist/components/Table/hooks/useColumnFreeze.d.ts +44 -0
  32. package/dist/components/Table/index.d.ts +2 -0
  33. package/dist/components/Table/types.d.ts +97 -2
  34. package/dist/components/Table/utils.d.ts +21 -0
  35. package/dist/components/TableCellHeader/TableCellHeader.d.ts +2 -1
  36. package/dist/components/TableCellHeader/types.d.ts +17 -0
  37. package/dist/components/TableContainer/TableContainer.d.ts +50 -0
  38. package/dist/components/TableContainer/index.d.ts +2 -0
  39. package/dist/components/TableContainer/types.d.ts +21 -0
  40. package/dist/components/index.d.ts +6 -2
  41. package/dist/index.js +3948 -352
  42. package/dist/index.mjs +3711 -121
  43. package/dist/tsbuildcache +1 -1
  44. package/dist/types/emotion.d.ts +2 -0
  45. package/package.json +3 -3
@@ -0,0 +1,50 @@
1
+ import { TableContainerProps } from './types';
2
+ /**
3
+ * TableContainer - The scroll area around a table
4
+ *
5
+ * Caps the table at the width of its parent and, with `maxHeight`, at a
6
+ * height, scrolling whatever does not fit. It is what frozen columns and a
7
+ * sticky header stick to, but it is just as useful around a plain wide
8
+ * table.
9
+ *
10
+ * It draws the white, 20px-rounded card the table sits on, so the scrollbars
11
+ * stay inside the card. Override the look with `css` or `className`.
12
+ *
13
+ * @category Components
14
+ * @subcategory Data Display
15
+ *
16
+ * @example
17
+ * ```tsx
18
+ * // A wide table that scrolls sideways
19
+ * <TableContainer>
20
+ * <Table>{children}</Table>
21
+ * </TableContainer>
22
+ * ```
23
+ *
24
+ * @example
25
+ * ```tsx
26
+ * // Frozen first column and header in a 480px-tall scroll area
27
+ * <TableContainer maxHeight={480}>
28
+ * <Table stickyHeader defaultFrozenColumns={{ start: [0] }} freezeControls>
29
+ * {children}
30
+ * </Table>
31
+ * </TableContainer>
32
+ * ```
33
+ *
34
+ * @example
35
+ * ```tsx
36
+ * // A different card
37
+ * <TableContainer css={{ borderRadius: 8, background: 'transparent' }}>
38
+ * <Table>{children}</Table>
39
+ * </TableContainer>
40
+ * ```
41
+ *
42
+ * @see {@link Table} - `frozenColumns`, `freezeControls` and `stickyHeader`
43
+ *
44
+ * @accessibility
45
+ * - A plain `div`; give it `tabIndex={0}`, a `role="region"` and an
46
+ * `aria-label` when the table has no focusable content, so keyboard users
47
+ * can still scroll it
48
+ */
49
+ declare const TableContainer: import("react").ForwardRefExoticComponent<TableContainerProps & import("react").RefAttributes<HTMLDivElement>>;
50
+ export default TableContainer;
@@ -0,0 +1,2 @@
1
+ export { default } from './TableContainer';
2
+ export type { TableContainerProps } from './types';
@@ -0,0 +1,21 @@
1
+ import { CSSProperties, HTMLAttributes } from 'react';
2
+ import { CommonProps } from '../../types/emotion';
3
+ /**
4
+ * Props for the {@link TableContainer} component.
5
+ *
6
+ * @example
7
+ * ```tsx
8
+ * <TableContainer maxHeight={480}>
9
+ * <Table stickyHeader>{children}</Table>
10
+ * </TableContainer>
11
+ * ```
12
+ */
13
+ export interface TableContainerProps extends CommonProps, HTMLAttributes<HTMLDivElement> {
14
+ /**
15
+ * Tallest the container gets before the table scrolls vertically. Any CSS
16
+ * value: a number of pixels, `'60vh'`, or `'100%'` to fill a parent that
17
+ * has a height of its own. Unbounded when omitted, so only horizontal
18
+ * overflow scrolls.
19
+ */
20
+ maxHeight?: CSSProperties['maxHeight'];
21
+ }
@@ -57,11 +57,13 @@ export * from './Filters';
57
57
  export * from './FiltersMultiSelect';
58
58
  export * as JsonSchema from './JsonSchemaForm';
59
59
  export { default as Table } from './Table';
60
- export { ColumnResizeHandle, useColumnResize, useColumnResizeContext, } from './Table';
61
- export type { ColumnResizeApi, ColumnResizeHandleProps, ColumnResizeMode, ColumnResizeOptions, ResizeHandleProps, TableProps, UseColumnResizeOptions, } from './Table';
60
+ export { ColumnFreezeMenu, ColumnResizeHandle, useColumnFreezeContext, useColumnResize, useColumnResizeContext, } from './Table';
61
+ export type { ColumnFreezeApi, ColumnFreezeMenuProps, ColumnFreezeOptions, ColumnId, ColumnResizeApi, ColumnResizeHandleProps, ColumnResizeMode, ColumnResizeOptions, FrozenColumns, ResizeHandleProps, TableProps, UseColumnResizeOptions, } from './Table';
62
62
  export { default as TableBody } from './TableBody';
63
63
  export { default as TableCell } from './TableCell';
64
64
  export { default as TableCellHeader } from './TableCellHeader';
65
+ export { default as TableContainer } from './TableContainer';
66
+ export type { TableContainerProps } from './TableContainer';
65
67
  export * from './TableFilters';
66
68
  export { default as TableHead } from './TableHead';
67
69
  export { default as TableRow } from './TableRow';
@@ -105,6 +107,8 @@ export * from './Charts';
105
107
  export * from './ImageItem';
106
108
  export * from './Carousel';
107
109
  export type * from './Carousel/types';
110
+ export * from './Calendar';
111
+ export type * from './Calendar/types';
108
112
  export { default as ResponsiveImage } from './ResponsiveImage';
109
113
  export * from './ResponsiveImage';
110
114
  export type * from './ResponsiveImage/types';