@trackunit/react-components 0.0.132 → 0.0.135
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.
|
@@ -14,7 +14,7 @@ export interface CardHeaderProps extends CommonProps {
|
|
|
14
14
|
*/
|
|
15
15
|
headingVariant?: HeadingVariant;
|
|
16
16
|
/** Adds an extra heading below the main heading. */
|
|
17
|
-
subHeading?: string;
|
|
17
|
+
subHeading?: string | React.ReactNode;
|
|
18
18
|
/**
|
|
19
19
|
* Items to render next to the heading
|
|
20
20
|
*/
|
package/index.js
CHANGED
|
@@ -1368,7 +1368,7 @@ const Container$7 = tw.div`
|
|
|
1368
1368
|
tu-card__header
|
|
1369
1369
|
`;
|
|
1370
1370
|
const HeadingContainer = tw.div`
|
|
1371
|
-
tu-card__header-heading-container
|
|
1371
|
+
tu-card__header-heading-container
|
|
1372
1372
|
`;
|
|
1373
1373
|
|
|
1374
1374
|
/**
|
|
@@ -2781,42 +2781,6 @@ const Label$1 = tw.span`
|
|
|
2781
2781
|
text-sm
|
|
2782
2782
|
`;
|
|
2783
2783
|
|
|
2784
|
-
/**
|
|
2785
|
-
* The MenuButton component.
|
|
2786
|
-
*
|
|
2787
|
-
* @param {IMobileButton} props - The props for the MenuButton component
|
|
2788
|
-
* @returns {JSX.Element} MenuButton component
|
|
2789
|
-
*/
|
|
2790
|
-
|
|
2791
|
-
const MenuButton = ({
|
|
2792
|
-
onClick,
|
|
2793
|
-
className,
|
|
2794
|
-
dataTestId
|
|
2795
|
-
}) => {
|
|
2796
|
-
return jsx(MobileIconButton, {
|
|
2797
|
-
icon: jsx(Icon$1, {
|
|
2798
|
-
name: "DotsHorizontalIcon",
|
|
2799
|
-
size: "small"
|
|
2800
|
-
}),
|
|
2801
|
-
size: "small",
|
|
2802
|
-
circular: true,
|
|
2803
|
-
onClick: onClick,
|
|
2804
|
-
className: className,
|
|
2805
|
-
"data-testid": dataTestId
|
|
2806
|
-
});
|
|
2807
|
-
};
|
|
2808
|
-
const MobileIconButton = tw(IconButton)`
|
|
2809
|
-
!text-gray-800
|
|
2810
|
-
!bg-white
|
|
2811
|
-
active:outline-gray-400
|
|
2812
|
-
active:!shadow-none
|
|
2813
|
-
focus:!shadow-none
|
|
2814
|
-
shadow-lg
|
|
2815
|
-
!border
|
|
2816
|
-
!border-solid
|
|
2817
|
-
!border-gray-300
|
|
2818
|
-
`;
|
|
2819
|
-
|
|
2820
2784
|
/**
|
|
2821
2785
|
* The MenuItem component is used to display a menu, primarily meant to be used in a list form.
|
|
2822
2786
|
*
|
|
@@ -5385,4 +5349,4 @@ const Layout = tw.div`
|
|
|
5385
5349
|
tu-layout-TwoColumnLayout
|
|
5386
5350
|
`;
|
|
5387
5351
|
|
|
5388
|
-
export { ActionButton, Alert, AnimatedPopover, Badge, BaseInput, Button, Card, CardBody, CardFooter, CardHeader, Chart, Checkbox, Collapse, CopyableText, CreatableSelect, DateField, DateInput, DayPicker, DayPickerPopover, DayRangePicker, DensityContainer, FilterListMapLayout, FormGroup, FullWidthRepeatingLayout, GridArea, Heading, Icon$1 as Icon, IconButton, Indicator$1 as Indicator, IntrinsicallyResponsiveGrid, Label$3 as Label, LegendItem,
|
|
5352
|
+
export { ActionButton, Alert, AnimatedPopover, Badge, BaseInput, Button, Card, CardBody, CardFooter, CardHeader, Chart, Checkbox, Collapse, CopyableText, CreatableSelect, DateField, DateInput, DayPicker, DayPickerPopover, DayRangePicker, DensityContainer, FilterListMapLayout, FormGroup, FullWidthRepeatingLayout, GridArea, Heading, Icon$1 as Icon, IconButton, Indicator$1 as Indicator, IntrinsicallyResponsiveGrid, Label$3 as Label, LegendItem, MenuItem, MenuList, MinTopFullContentLayout, Modal, ModalBackdrop, MultiSelectMenuItem, NumberField, NumberInput, PageHeading, PopoverLifecycle, PopoverList, PopoverListItem, PopoverTitle, Prompt, ROLE_CARD, RadioGroup, RadioItem, Select, SingleSelectMenuItem, SkeletonLines, Spacer, Spinner, StarButton, Tag, Text$1 as Text, TextArea, TextAreaField, TextField, TextInput, Timeline, TimelineElement, Tip, TitleNavContentLayout, Toggle, Tooltip, TwoColumnLayout, ValueBar, activityColors, colors, criticalityColors, docs, generalColors, getOrderedOptions, getValueBarColorByValue, intentColors, isMultiValue, useContainerProps, useCustomComponents, useDebounce, useLocalStorage, useModal, usePopover, usePrompt, useTimeout };
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.135",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@trackunit/css-core": "0.0.48",
|
|
8
|
-
"@trackunit/tailwind-styled-components": "0.0.
|
|
8
|
+
"@trackunit/tailwind-styled-components": "0.0.43",
|
|
9
9
|
"react": "17.0.1",
|
|
10
|
-
"@trackunit/ui-design-tokens": "0.0.
|
|
10
|
+
"@trackunit/ui-design-tokens": "0.0.42",
|
|
11
11
|
"echarts-for-react": "^3.0.2",
|
|
12
12
|
"uuid": "^8.3.2",
|
|
13
13
|
"@react-spring/web": "^9.4.5",
|
|
14
14
|
"react-use": "^17.3.2",
|
|
15
15
|
"react-day-picker": "^8.0.3",
|
|
16
16
|
"date-fns": "^2.28.0",
|
|
17
|
-
"@trackunit/ui-icons": "0.0.
|
|
17
|
+
"@trackunit/ui-icons": "0.0.45",
|
|
18
18
|
"react-useportal": "^1.0.16",
|
|
19
19
|
"react-helmet": "^6.1.0",
|
|
20
20
|
"@popperjs/core": "^2.11.4",
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
interface IMobileButton {
|
|
3
|
-
onClick: () => void;
|
|
4
|
-
className?: string;
|
|
5
|
-
dataTestId?: string;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* The MenuButton component.
|
|
9
|
-
*
|
|
10
|
-
* @param {IMobileButton} props - The props for the MenuButton component
|
|
11
|
-
* @returns {JSX.Element} MenuButton component
|
|
12
|
-
*/
|
|
13
|
-
export declare const MenuButton: ({ onClick, className, dataTestId }: IMobileButton) => JSX.Element;
|
|
14
|
-
export {};
|