@trackunit/react-components 0.0.108-alpha-01a8ce128.0 → 0.0.109

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.
@@ -18,4 +18,4 @@ export interface CopyableTextProps extends CommonProps {
18
18
  * @param {CopyableTextProps} props - The props for the CopyableText component
19
19
  * @returns {JSX.Element} CopyableText component
20
20
  */
21
- export declare const CopyableText: ({ text, alternativeText, dataTestId }: CopyableTextProps) => JSX.Element;
21
+ export declare const CopyableText: ({ text, alternativeText, dataTestId, className }: CopyableTextProps) => JSX.Element;
@@ -17,6 +17,7 @@ export interface DayPickerProps {
17
17
  * Set the language
18
18
  */
19
19
  language: string;
20
+ max?: number;
20
21
  }
21
22
  /**
22
23
  * The DayPicker component is used when the user needs to select a date.
@@ -7,6 +7,7 @@ export interface DayRangePickerProps {
7
7
  dataTestId?: string;
8
8
  disabledDays?: Matcher | Matcher[];
9
9
  language: string;
10
+ max?: number;
10
11
  }
11
12
  /**
12
13
  * The DayRangePicker component should be used when the user needs to select a range of dates.
@@ -14,4 +15,4 @@ export interface DayRangePickerProps {
14
15
  * @param {DayRangePickerProps} props - The props for the DayRangePicker component
15
16
  * @returns {JSX.Element} DayRangePicker component
16
17
  */
17
- export declare const DayRangePicker: ({ onRangeSelect, selectedDays, disabledDays, dataTestId, language, }: DayRangePickerProps) => JSX.Element;
18
+ export declare const DayRangePicker: ({ onRangeSelect, selectedDays, disabledDays, dataTestId, language, max, }: DayRangePickerProps) => JSX.Element;
package/index.js CHANGED
@@ -1702,7 +1702,8 @@ const StyledCollapsible = tw.div`
1702
1702
  const CopyableText = ({
1703
1703
  text,
1704
1704
  alternativeText,
1705
- dataTestId
1705
+ dataTestId,
1706
+ className
1706
1707
  }) => {
1707
1708
  var _a;
1708
1709
 
@@ -1716,6 +1717,7 @@ const CopyableText = ({
1716
1717
  };
1717
1718
 
1718
1719
  return jsx(StyledCopyableText, Object.assign({
1720
+ className: className,
1719
1721
  "data-testid": dataTestId,
1720
1722
  onClick: handleOnClick,
1721
1723
  onAnimationEnd: () => setAnimating(false),
@@ -2510,7 +2512,8 @@ const DayRangePicker = ({
2510
2512
  selectedDays,
2511
2513
  disabledDays,
2512
2514
  dataTestId,
2513
- language
2515
+ language,
2516
+ max
2514
2517
  }) => {
2515
2518
  const locale = useLocale(language);
2516
2519
  const onSelect = useCallback(range => {
@@ -2537,7 +2540,8 @@ const DayRangePicker = ({
2537
2540
  defaultMonth: selectedDays && selectedDays.from,
2538
2541
  locale: locale,
2539
2542
  disabled: disabledDays,
2540
- className: "custom-day-picker range-picker"
2543
+ className: "custom-day-picker range-picker",
2544
+ max: max
2541
2545
  })
2542
2546
  }));
2543
2547
  };
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { CommonProps } from "../../common/CommonProps";
3
- interface GridAreaProps extends CommonProps {
3
+ export interface GridAreaProps extends CommonProps {
4
4
  area: string;
5
5
  children: React.ReactNode;
6
6
  }
@@ -11,4 +11,3 @@ interface GridAreaProps extends CommonProps {
11
11
  * @returns {JSX.Element} GridArea component
12
12
  */
13
13
  export declare const GridArea: ({ area, dataTestId, className, children }: GridAreaProps) => JSX.Element;
14
- export {};
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@trackunit/react-components",
3
- "version": "0.0.108-alpha-01a8ce128.0",
3
+ "version": "0.0.109",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "dependencies": {
7
- "@trackunit/css-core": "0.0.49-alpha-01a8ce128.0",
8
- "@trackunit/tailwind-styled-components": "0.0.43-alpha-01a8ce128.0",
7
+ "@trackunit/css-core": "0.0.48",
8
+ "@trackunit/tailwind-styled-components": "0.0.42",
9
9
  "react": "17.0.1",
10
- "@trackunit/ui-design-tokens": "0.0.42-alpha-01a8ce128.0",
10
+ "@trackunit/ui-design-tokens": "0.0.41",
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.44-alpha-01a8ce128.0",
17
+ "@trackunit/ui-icons": "0.0.43",
18
18
  "react-useportal": "^1.0.16",
19
19
  "react-helmet": "^6.1.0",
20
20
  "@popperjs/core": "^2.11.4",