@trackunit/react-components 0.0.195 → 0.0.198

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.
@@ -2,7 +2,6 @@ import * as React from "react";
2
2
  import { CommonProps } from "../../common";
3
3
  import { FormGroupProps } from "../FormGroup/FormGroup";
4
4
  import { TextAreaProps } from "../TextArea/TextArea";
5
- import "../TextArea/TextArea.css";
6
5
  declare type FormGroupExposedProps = Pick<FormGroupProps, "label" | "tip" | "helpText" | "helpAddon">;
7
6
  export interface TextAreaFieldProps extends TextAreaProps, FormGroupExposedProps, CommonProps {
8
7
  /**
@@ -18,6 +18,7 @@ interface TimeLineElementProps extends CommonProps {
18
18
  header?: React.ReactNode;
19
19
  children: React.ReactNode;
20
20
  dot?: React.ReactNode;
21
+ onClick?: () => void;
21
22
  }
22
23
  /**
23
24
  * TimelineElement - entry on a timeline - rendered with an icon on the timeline
@@ -26,5 +27,5 @@ interface TimeLineElementProps extends CommonProps {
26
27
  * @param {TimeLineElementProps} props the props
27
28
  * @returns {JSX.Element} component
28
29
  */
29
- export declare const TimelineElement: ({ date, children, className, dataTestId, dot, header, }: TimeLineElementProps) => JSX.Element;
30
+ export declare const TimelineElement: ({ date, children, className, dataTestId, dot, header, onClick, }: TimeLineElementProps) => JSX.Element;
30
31
  export {};
package/index.css CHANGED
@@ -354,31 +354,6 @@
354
354
  }
355
355
  }
356
356
 
357
- .tu-textarea {
358
- @apply tu-input-base
359
- block
360
- overflow-auto
361
- appearance-none
362
- px-3
363
- py-2
364
- bg-transparent
365
- text-base
366
- text-slate-900
367
- placeholder-slate-400
368
- focus-visible:outline-none
369
- w-full
370
- h-20
371
- transition;
372
-
373
- &--invalid {
374
- @apply tu-input--invalid;
375
- }
376
-
377
- &--disabled {
378
- @apply tu-input--disabled;
379
- }
380
- }
381
-
382
357
  /* CSS related to the toggle component */
383
358
  .tu-toggle {
384
359
  @apply rounded-full
package/index.js CHANGED
@@ -422,6 +422,9 @@ const Root$6 = tw.span`
422
422
  case "unknown":
423
423
  return tws`tu-icon--unknown`;
424
424
 
425
+ case "white":
426
+ return tws`text-white`;
427
+
425
428
  default:
426
429
  return "tu-icon--default";
427
430
  }
@@ -4850,14 +4853,16 @@ const TimelineElement = ({
4850
4853
  }),
4851
4854
  header = `${format(date, "MMM d, yyyy")} (${formatDistance(date, new Date(), {
4852
4855
  addSuffix: true
4853
- })})`
4856
+ })})`,
4857
+ onClick
4854
4858
  }) => {
4855
4859
  var _a;
4856
4860
 
4857
4861
  return jsxs("li", Object.assign({
4858
4862
  className: `${tws`tu-timeline-element`}${(_a = " " + className) !== null && _a !== void 0 ? _a : ""} `,
4859
4863
  "data-date": `${date}`,
4860
- "data-testid": `${dataTestId}`
4864
+ "data-testid": `${dataTestId}`,
4865
+ onClick: () => onClick && onClick()
4861
4866
  }, {
4862
4867
  children: [jsx("div", Object.assign({
4863
4868
  className: tws`tu-timeline-element__dot`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-components",
3
- "version": "0.0.195",
3
+ "version": "0.0.198",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "dependencies": {