@trackunit/react-components 0.0.77 → 0.0.79

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 (2) hide show
  1. package/index.js +14 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -2031,6 +2031,17 @@ const DateField = forwardRef(({
2031
2031
  type: "solid",
2032
2032
  onClick: !disabled ? onShow : undefined,
2033
2033
  forwardedRef: targetRef
2034
+ }),
2035
+ actions: selectedDay && jsx(RemoveValueContainer, {
2036
+ children: jsx(Button, Object.assign({
2037
+ intent: "tertiary",
2038
+ onClick: () => setSelectedDay(undefined)
2039
+ }, {
2040
+ children: jsx(Icon$1, {
2041
+ name: "XIcon",
2042
+ size: "small"
2043
+ })
2044
+ }))
2034
2045
  })
2035
2046
  }), jsx(AnimatedPopover, Object.assign({
2036
2047
  ref: popoverRef,
@@ -2052,6 +2063,9 @@ const DateField = forwardRef(({
2052
2063
  }))]
2053
2064
  });
2054
2065
  });
2066
+ const RemoveValueContainer = tw.div`
2067
+ tu-date__remove
2068
+ `;
2055
2069
 
2056
2070
  /**
2057
2071
  * The PopoverListItem component.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-components",
3
- "version": "0.0.77",
3
+ "version": "0.0.79",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "UNLICENSED",
6
6
  "dependencies": {