@trackunit/react-components 0.0.78 → 0.0.80

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 +36 -22
  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.
@@ -2437,7 +2451,7 @@ const FormGroup = ({
2437
2451
  }));
2438
2452
  };
2439
2453
  const FormGroupRoot = tw.label`
2440
- tu-formgroup
2454
+ tu-form-group
2441
2455
  `; // TODO: Update and use Label component instead
2442
2456
 
2443
2457
  const StyledTitle = tw.span`
@@ -2448,16 +2462,16 @@ const StyledTitle = tw.span`
2448
2462
  mb-1
2449
2463
  `;
2450
2464
  const ContainerBefore = tw.div`
2451
- tu-formGroup-container-before
2465
+ tu-form-group__container-before
2452
2466
  `;
2453
2467
  const ContainerAfter = tw.div`
2454
- tu-formGroup-container-after
2468
+ tu-form-group__container-after
2455
2469
  ${({
2456
2470
  $isInvalid
2457
- }) => $isInvalid ? tws`tu-formGroup-container-after--invalid` : null}
2471
+ }) => $isInvalid ? tws`tu-form-group__container-after--invalid` : null}
2458
2472
  `;
2459
2473
  const HelpAddon = tw.span`
2460
- tu-formGroup-helpAddon
2474
+ tu-form-group__help-addon
2461
2475
  `;
2462
2476
 
2463
2477
  /**
@@ -2727,16 +2741,16 @@ const MenuItem = ({
2727
2741
  }));
2728
2742
  };
2729
2743
  const Container$2 = tw.div`
2730
- group tu-menuItem
2744
+ group tu-menu-item
2731
2745
  `;
2732
2746
  const Content = tw.div`
2733
- tu-menuItem__content
2747
+ tu-menu-item__content
2734
2748
  `;
2735
2749
  const Icon = tw.div`
2736
- tu-menuItem__icon
2750
+ tu-menu-item__icon
2737
2751
  `;
2738
2752
  const Label$1 = tw.div`
2739
- tu-menuItem__label
2753
+ tu-menu-item__label
2740
2754
  `;
2741
2755
 
2742
2756
  /**
@@ -2774,13 +2788,13 @@ const MenuList = _a => {
2774
2788
  });
2775
2789
  };
2776
2790
  const Wrapper = tw.div`
2777
- tu-menuList__wrapper
2791
+ tu-menu-list__wrapper
2778
2792
  `;
2779
2793
  const Container$1 = tw.div`
2780
- tu-menuList
2794
+ tu-menu-list
2781
2795
  `;
2782
2796
  const Divider = tw.div`
2783
- tu-menuList__divider
2797
+ tu-menu-list__divider
2784
2798
  `;
2785
2799
 
2786
2800
  /**
@@ -2832,7 +2846,7 @@ const ModalBackdrop = ({
2832
2846
  });
2833
2847
  };
2834
2848
  const Backdrop = tw(animated.div)`
2835
- tu-modal--backdrop
2849
+ tu-modal-backdrop
2836
2850
  `;
2837
2851
 
2838
2852
  /** Preferred usage is with useModal(), so the modal is placed at highest level. */
@@ -2890,10 +2904,10 @@ const getCardMaxWidth = () => ({
2890
2904
  }) => {
2891
2905
  maxWidth = maxWidth ? maxWidth : "full";
2892
2906
  const widths = {
2893
- slim: tws`tu-modal-card--slim`,
2894
- narrow: tws`tu-modal-card--narrow`,
2895
- wide: tws`tu-modal-card--wide`,
2896
- normal: tws`tu-modal-card--normal`,
2907
+ slim: tws`tu-modal__card--slim`,
2908
+ narrow: tws`tu-modal__card--narrow`,
2909
+ wide: tws`tu-modal__card--wide`,
2910
+ normal: tws`tu-modal__card--normal`,
2897
2911
  full: ""
2898
2912
  };
2899
2913
  return widths[maxWidth];
@@ -3555,10 +3569,10 @@ const RadioItem = ({
3555
3569
  }));
3556
3570
  };
3557
3571
  const CustomFlex = tw.div`
3558
- tu-radioitem_custom_flex
3572
+ tu-radioitem__custom-flex
3559
3573
  `;
3560
3574
  const InputWrapper = tw.div`
3561
- tu-radioitem_wrapper
3575
+ tu-radioitem__wrapper
3562
3576
  `;
3563
3577
  const Input = tw.input`
3564
3578
  tu-radioitem
@@ -3945,8 +3959,8 @@ const getSizeModifierClass = () => ({
3945
3959
  $withXIcon
3946
3960
  }) => {
3947
3961
  const tagSizeModifierClass = {
3948
- default: $withXIcon ? tws`tu-tag--withIcon ` : tws` `,
3949
- small: $withXIcon ? tws`tu-tag--small tu-tag--withIcon` : tws`tu-tag--small`
3962
+ default: $withXIcon ? tws`tu-tag--with-icon ` : tws` `,
3963
+ small: $withXIcon ? tws`tu-tag--small tu-tag--with-icon` : tws`tu-tag--small`
3950
3964
  };
3951
3965
  return tagSizeModifierClass[$size];
3952
3966
  };
@@ -4238,7 +4252,7 @@ const TimelineElement = ({
4238
4252
  "data-testid": `${dataTestId}`
4239
4253
  }, {
4240
4254
  children: [jsx("div", Object.assign({
4241
- className: tws`tu-timeline-element-dot`
4255
+ className: tws`tu-timeline-element__dot`
4242
4256
  }, {
4243
4257
  children: dot
4244
4258
  })), jsx("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-components",
3
- "version": "0.0.78",
3
+ "version": "0.0.80",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "UNLICENSED",
6
6
  "dependencies": {