@trackunit/react-components 0.0.49 → 0.0.50
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.
- package/common/CommonProps.d.ts +0 -2
- package/common/useContainerProps.d.ts +8 -0
- package/components/NumberField/NumberField.d.ts +0 -1
- package/components/NumberInput/NumberInput.d.ts +2 -2
- package/components/TextInput/TextInput.d.ts +2 -2
- package/components/alert/Alert.d.ts +6 -7
- package/components/badge/Badge.d.ts +8 -9
- package/components/baseInput/BaseInput.d.ts +0 -8
- package/components/buttons/button/Button.d.ts +0 -6
- package/components/buttons/icon-button/IconButton.d.ts +0 -3
- package/components/buttons/shared/ButtonProps.d.ts +0 -7
- package/components/buttons/shared/helpers.d.ts +10 -0
- package/components/buttons/star-button/StarButton.d.ts +6 -0
- package/components/card/Card.d.ts +7 -3
- package/components/card/CardBody.d.ts +5 -4
- package/components/card/CardFooter.d.ts +2 -2
- package/components/card/CardHeader.d.ts +4 -13
- package/components/card/DensityContainer.d.ts +10 -11
- package/components/chart/Chart.d.ts +5 -10
- package/components/checkbox/CheckIcon.d.ts +11 -3
- package/components/checkbox/Checkbox.d.ts +0 -6
- package/components/checkbox/IndeterminateIcon.d.ts +6 -0
- package/components/collapse/Collapse.d.ts +6 -3
- package/components/copyableText/CopyableText.d.ts +6 -3
- package/components/dateField/DateField.d.ts +2 -6
- package/components/dayPicker/DayPicker.d.ts +18 -0
- package/components/dayPicker/DayPickerPopover.d.ts +6 -0
- package/components/dayPicker/DayRangePicker.d.ts +6 -0
- package/components/dayPicker/useLocale.d.ts +6 -0
- package/components/formGroup/FormGroup.d.ts +8 -6
- package/components/heading/Heading.d.ts +6 -4
- package/components/icon/Icon.d.ts +12 -10
- package/components/indicator/Indicator.d.ts +7 -5
- package/components/label/Label.d.ts +8 -4
- package/components/legendItem/LegendItem.d.ts +6 -0
- package/components/menu/MenuButton.d.ts +6 -0
- package/components/menu/MenuItem.d.ts +6 -4
- package/components/menu/MenuList.d.ts +6 -3
- package/components/modal/Modal.d.ts +0 -4
- package/components/modal/ModalBackdrop.d.ts +6 -0
- package/components/modal/useModal.d.ts +6 -0
- package/components/multiRowTableCell/MultiRowTableCell.d.ts +4 -4
- package/components/pageHeading/PageHeading.d.ts +6 -3
- package/components/popover/PopoverList.d.ts +6 -0
- package/components/popover/PopoverListItem.d.ts +6 -0
- package/components/popover/PopoverTitle.d.ts +6 -0
- package/components/popover/usePopover.d.ts +6 -0
- package/components/prompt/Prompt.d.ts +13 -3
- package/components/radioGroup/RadioGroup.d.ts +6 -8
- package/components/radioGroup/RadioItem.d.ts +6 -2
- package/components/select/CreatableSelect.d.ts +6 -0
- package/components/select/FieldContainer.d.ts +6 -0
- package/components/select/Select.d.ts +6 -0
- package/components/select/shared.d.ts +15 -9
- package/components/skeletonLines/SkeletonLines.d.ts +0 -5
- package/components/spacer/Spacer.d.ts +6 -2
- package/components/spinner/Spinner.d.ts +6 -0
- package/components/text/Text.d.ts +6 -10
- package/components/textArea/TextArea.d.ts +0 -54
- package/components/textField/TextField.d.ts +0 -2
- package/components/textField/TextLenghtIndicator.d.ts +13 -0
- package/components/tip/Tip.d.ts +8 -3
- package/components/toggle/Toggle.d.ts +0 -26
- package/components/tooltip/Tooltip.d.ts +6 -9
- package/hooks/useDebounce.d.ts +7 -0
- package/hooks/useLocalStorage.d.ts +7 -0
- package/hooks/useTimeout.d.ts +6 -0
- package/index.js +445 -39
- package/layout/helper/MinTopFullContentLayout.d.ts +6 -0
- package/layout/responsive/FilterListMapLayout.d.ts +6 -3
- package/layout/responsive/FullWidthRepeatingLayout.d.ts +8 -5
- package/layout/responsive/GridArea.d.ts +3 -1
- package/layout/responsive/IntrinsicallyResponsiveGrid.d.ts +12 -8
- package/layout/responsive/TitleNavContentLayout.d.ts +8 -2
- package/layout/responsive/TwoColumnLayout.d.ts +8 -2
- package/package.json +1 -1
|
@@ -8,5 +8,11 @@ import { CommonProps } from "../../common/CommonProps";
|
|
|
8
8
|
interface IMinTopFullContentLayoutProps extends CommonProps {
|
|
9
9
|
children: ReactNode;
|
|
10
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* The MinTopFullContentLayout component.
|
|
13
|
+
*
|
|
14
|
+
* @param {IMinTopFullContentLayoutProps} props - The props for the MinTopFullContentLayout component
|
|
15
|
+
* @returns {JSX.Element} MinTopFullContentLayout component
|
|
16
|
+
*/
|
|
11
17
|
export declare const MinTopFullContentLayout: ({ children, className, dataTestId }: IMinTopFullContentLayoutProps) => JSX.Element;
|
|
12
18
|
export {};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
interface IProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
}
|
|
2
5
|
/**
|
|
3
6
|
* Responsive layout component setting up three grid areas
|
|
4
7
|
* one for filtering, (result-)list and (result-map)
|
|
@@ -11,9 +14,9 @@
|
|
|
11
14
|
* - map
|
|
12
15
|
* on screens < mediaQuery.xxl
|
|
13
16
|
*
|
|
17
|
+
*
|
|
18
|
+
* @param {IProps} props - The props for the FilterListMapLayout component
|
|
19
|
+
* @returns {JSX.Element} FilterListMapLayout component
|
|
14
20
|
*/
|
|
15
|
-
interface IProps {
|
|
16
|
-
children: React.ReactNode;
|
|
17
|
-
}
|
|
18
21
|
export declare const FilterListMapLayout: ({ children }: IProps) => JSX.Element;
|
|
19
22
|
export {};
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/**
|
|
3
|
-
* Layout component with repeating full width areas, default one height fraction each but option to use content height instead
|
|
4
|
-
* Row min height can optionally be set here or managed by children
|
|
5
|
-
* Scrolling happens if/when children's a min-height is reached
|
|
6
|
-
*/
|
|
7
2
|
declare type RowSizing = "Equal" | "MinContent" | "Unmanaged";
|
|
8
3
|
interface IFullWidthRepeatingLayoutProps {
|
|
9
4
|
children: React.ReactNode;
|
|
@@ -12,5 +7,13 @@ interface IFullWidthRepeatingLayoutProps {
|
|
|
12
7
|
dataTestId?: string;
|
|
13
8
|
className?: string;
|
|
14
9
|
}
|
|
10
|
+
/**
|
|
11
|
+
* Layout component with repeating full width areas, default one height fraction each but option to use content height instead
|
|
12
|
+
* Row min height can optionally be set here or managed by children
|
|
13
|
+
* Scrolling happens if/when children's a min-height is reached
|
|
14
|
+
*
|
|
15
|
+
* @param {IFullWidthRepeatingLayoutProps} props - The props for the FullWidthRepeatingLayout component
|
|
16
|
+
* @returns {JSX.Element} FullWidthRepeatingLayout component
|
|
17
|
+
*/
|
|
15
18
|
export declare const FullWidthRepeatingLayout: ({ children, rowSizing, rowMinHeight, dataTestId, className, }: IFullWidthRepeatingLayoutProps) => JSX.Element;
|
|
16
19
|
export {};
|
|
@@ -6,7 +6,9 @@ interface GridAreaProps extends CommonProps {
|
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
8
|
* Simply applies a Grid Area to the element
|
|
9
|
-
*
|
|
9
|
+
*
|
|
10
|
+
* @param {GridAreaProps} props - The props for the GridArea component
|
|
11
|
+
* @returns {JSX.Element} GridArea component
|
|
10
12
|
*/
|
|
11
13
|
export declare const GridArea: ({ area, dataTestId, className, children }: GridAreaProps) => JSX.Element;
|
|
12
14
|
export {};
|
|
@@ -4,23 +4,27 @@ declare type ColumnWidth = "slim" | "narrow" | "normal" | "wide";
|
|
|
4
4
|
declare type Space = "inherit" | "auto" | "none" | "tiny" | "mini" | "small" | "medium" | "large" | "giant" | "enormous";
|
|
5
5
|
declare type Occupation = "auto-fill" | "auto-fit";
|
|
6
6
|
interface IIntrinsicallyResponsiveGridProps extends CommonProps {
|
|
7
|
+
/**
|
|
8
|
+
* The children to be laid out
|
|
9
|
+
*/
|
|
7
10
|
children: React.ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* Default "auto-fill" stretch a little, till there's room for another column.
|
|
13
|
+
* Optionally set "auto-fit" to stretch children to fit entire container width,
|
|
14
|
+
*/
|
|
8
15
|
occupation?: Occupation;
|
|
9
16
|
minColumnWidth?: ColumnWidth;
|
|
17
|
+
/**
|
|
18
|
+
* The gap size between children
|
|
19
|
+
*/
|
|
10
20
|
gap?: Space;
|
|
11
21
|
}
|
|
12
22
|
/**
|
|
13
23
|
* A grid container that has a flexible number of columns.
|
|
14
24
|
* Adds more columns if constraints allow it, otherwise wraps to next row
|
|
15
25
|
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* @prop occupation = "auto-fill" - stretch a little, till there's room for another column. Optionally set "auto-fit" to stretch children to fit entire container width,
|
|
19
|
-
* @prop minColumnWidth = "normal" - "small" | "normal" | "large"
|
|
20
|
-
* @prop gap = "auto" - the gap size between children,
|
|
21
|
-
* @prop dataTestId,
|
|
22
|
-
* @prop className ,
|
|
23
|
-
|
|
26
|
+
* @param {IIntrinsicallyResponsiveGridProps} props - The props for the IntrinsicallyResponsiveGrid component
|
|
27
|
+
* @returns {JSX.Element} IntrinsicallyResponsiveGrid component
|
|
24
28
|
*/
|
|
25
29
|
export declare const IntrinsicallyResponsiveGrid: ({ children, occupation, minColumnWidth, gap, dataTestId, className, }: IIntrinsicallyResponsiveGridProps) => JSX.Element;
|
|
26
30
|
export {};
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
interface
|
|
2
|
+
interface TitleNavContentLayoutProps {
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
}
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* The TitleNavContentLayout.
|
|
7
|
+
*
|
|
8
|
+
* @param {TitleNavContentLayoutProps} props - The props for the TitleNavContentLayout component
|
|
9
|
+
* @returns {JSX.Element} TitleNavContentLayout component
|
|
10
|
+
*/
|
|
11
|
+
export declare const TitleNavContentLayout: ({ children }: TitleNavContentLayoutProps) => JSX.Element;
|
|
6
12
|
export {};
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
interface
|
|
2
|
+
interface TwoColumnLayoutProps {
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
}
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* TwoColumnLayout.
|
|
7
|
+
*
|
|
8
|
+
* @param {TwoColumnLayoutProps} props - The props for the TwoColumnLayout component
|
|
9
|
+
* @returns {JSX.Element} TwoColumnLayout component
|
|
10
|
+
*/
|
|
11
|
+
export declare const TwoColumnLayout: ({ children }: TwoColumnLayoutProps) => JSX.Element;
|
|
6
12
|
export {};
|