@teamturing/react-kit 2.16.2 → 2.17.0

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.
package/dist/index.js CHANGED
@@ -977,7 +977,7 @@ layout$1.width;
977
977
  layout$1.minWidth;
978
978
  layout$1.minHeight;
979
979
  layout$1.maxWidth;
980
- layout$1.maxHeight;
980
+ var maxHeight = layout$1.maxHeight;
981
981
  layout$1.size;
982
982
  layout$1.verticalAlign;
983
983
  layout$1.display;
@@ -7094,7 +7094,7 @@ const BaseActionList = styled__default.default.ul`
7094
7094
 
7095
7095
  ${sx}
7096
7096
  `;
7097
- var index$b = Object.assign(ActionList, {
7097
+ var index$c = Object.assign(ActionList, {
7098
7098
  Item: ActionListItem,
7099
7099
  SectionDivider: ActionListSectionDivider,
7100
7100
  SectionHeader: ActionListSectionHeader
@@ -16365,7 +16365,7 @@ const BaseAvatar = styled__default.default(Image)`
16365
16365
  })}
16366
16366
  ${sx}
16367
16367
  `;
16368
- var index$a = /*#__PURE__*/React.forwardRef(Avatar);
16368
+ var index$b = /*#__PURE__*/React.forwardRef(Avatar);
16369
16369
 
16370
16370
  const Tooltip = ({
16371
16371
  children,
@@ -16753,7 +16753,7 @@ const BreadcrumbsItemWrapper = styled__default.default.span`
16753
16753
  }
16754
16754
  }
16755
16755
  `;
16756
- var index$9 = Object.assign(Breadcrumbs, {
16756
+ var index$a = Object.assign(Breadcrumbs, {
16757
16757
  Item: BreadcrumbsItem
16758
16758
  });
16759
16759
 
@@ -17290,7 +17290,7 @@ const BaseCheckbox = styled__default.default(UnstyledCheckbox)`
17290
17290
 
17291
17291
  ${sx}
17292
17292
  `;
17293
- var index$8 = /*#__PURE__*/React.forwardRef(Checkbox);
17293
+ var index$9 = /*#__PURE__*/React.forwardRef(Checkbox);
17294
17294
 
17295
17295
  const Chip = ({
17296
17296
  children,
@@ -17502,6 +17502,14 @@ const DatagridBody = ({
17502
17502
  const BaseDatagridBody = styled__default.default.div`
17503
17503
  width: inherit;
17504
17504
 
17505
+ & > div:not(:last-child) {
17506
+ border-bottom-width: ${forcePixelValue(1)};
17507
+ border-bottom-style: solid;
17508
+ border-bottom-color: ${({
17509
+ theme
17510
+ }) => theme.colors['border/neutral']};
17511
+ }
17512
+
17505
17513
  ${sx}
17506
17514
  `;
17507
17515
 
@@ -17574,6 +17582,28 @@ const DatagridRow = ({
17574
17582
  const BaseDatagridRow = Grid$1;
17575
17583
  const DatagridRowWrapper = Space;
17576
17584
 
17585
+ const DatagridSubheader = ({
17586
+ ...props
17587
+ }) => /*#__PURE__*/jsxRuntimeExports.jsx(DataGridSubheaderWrapper, {
17588
+ ...props
17589
+ });
17590
+ const DataGridSubheaderWrapper = styled__default.default.div`
17591
+ padding: ${({
17592
+ theme
17593
+ }) => `${forcePixelValue(theme.space[2])} ${forcePixelValue(theme.space[4])}`};
17594
+ background-color: ${({
17595
+ theme
17596
+ }) => theme.colors.surface};
17597
+
17598
+ border-bottom-width: ${forcePixelValue(1)};
17599
+ border-bottom-style: solid;
17600
+ border-bottom-color: ${({
17601
+ theme
17602
+ }) => theme.colors['border/neutral']};
17603
+
17604
+ ${sx};
17605
+ `;
17606
+
17577
17607
  const Datagrid = ({
17578
17608
  children,
17579
17609
  sx,
@@ -17582,12 +17612,13 @@ const Datagrid = ({
17582
17612
  const [relocatableComponentsObject, restConmponents] = useRelocation({
17583
17613
  children,
17584
17614
  config: {
17585
- header: DatagridHeader
17615
+ header: DatagridHeader,
17616
+ subHeader: DatagridSubheader
17586
17617
  }
17587
17618
  });
17588
17619
  return /*#__PURE__*/jsxRuntimeExports.jsxs(DatagridWrapper, {
17589
17620
  sx: sx,
17590
- children: [relocatableComponentsObject.header, /*#__PURE__*/jsxRuntimeExports.jsx(BaseDatagrid, {
17621
+ children: [relocatableComponentsObject.header, relocatableComponentsObject.subHeader, /*#__PURE__*/jsxRuntimeExports.jsx(BaseDatagrid, {
17591
17622
  ...props,
17592
17623
  children: restConmponents
17593
17624
  })]
@@ -17612,8 +17643,9 @@ const DatagridWrapper = styled__default.default.div`
17612
17643
  const BaseDatagrid = styled__default.default.div`
17613
17644
  width: inherit;
17614
17645
  `;
17615
- var index$7 = Object.assign(Datagrid, {
17646
+ var index$8 = Object.assign(Datagrid, {
17616
17647
  Header: DatagridHeader,
17648
+ Subheader: DatagridSubheader,
17617
17649
  Body: DatagridBody,
17618
17650
  Row: DatagridRow,
17619
17651
  Cell: DatagridCell
@@ -18718,7 +18750,7 @@ const BaseDialog = styled__default.default.div(() => ({
18718
18750
  overflow: 'hidden',
18719
18751
  margin: 'auto'
18720
18752
  }), sx);
18721
- var index$6 = /*#__PURE__*/React.forwardRef(Dialog);
18753
+ var index$7 = /*#__PURE__*/React.forwardRef(Dialog);
18722
18754
 
18723
18755
  const useDialogHandler = () => {
18724
18756
  const [isOpen, setIsOpen] = React.useState(false);
@@ -18871,6 +18903,7 @@ const Overlay = ({
18871
18903
  size = 'm',
18872
18904
  ignoreOutsideClickRefs = [],
18873
18905
  dismissFocusRef,
18906
+ maxHeight = forcePixelValue(600),
18874
18907
  ...props
18875
18908
  }, ref) => {
18876
18909
  const overlayRef = React.useRef(null);
@@ -18923,6 +18956,7 @@ const Overlay = ({
18923
18956
  return isOpen ? /*#__PURE__*/jsxRuntimeExports.jsx(BaseOverlay, {
18924
18957
  ref: overlayRef,
18925
18958
  size: size,
18959
+ maxHeight: maxHeight,
18926
18960
  ...props,
18927
18961
  role: 'dialog',
18928
18962
  children: children
@@ -18947,16 +18981,21 @@ const BaseOverlay = styled__default.default.div`
18947
18981
  prop: 'size',
18948
18982
  variants: {
18949
18983
  s: {
18950
- width: forcePixelValue(256)
18984
+ width: forcePixelValue(180)
18951
18985
  },
18952
18986
  m: {
18953
- width: forcePixelValue(320)
18987
+ width: forcePixelValue(256)
18954
18988
  },
18955
18989
  l: {
18956
- width: forcePixelValue(480)
18990
+ width: forcePixelValue(320)
18991
+ },
18992
+ auto: {
18993
+ width: 'auto'
18957
18994
  }
18958
18995
  }
18959
18996
  })}
18997
+
18998
+ ${maxHeight}
18960
18999
  ${sx}
18961
19000
  `;
18962
19001
  var Overlay$1 = /*#__PURE__*/React.forwardRef(Overlay);
@@ -20273,7 +20312,7 @@ const computePosition = (reference, floating, options) => {
20273
20312
  });
20274
20313
  };
20275
20314
 
20276
- var index$5 = typeof document !== 'undefined' ? React.useLayoutEffect : React.useEffect;
20315
+ var index$6 = typeof document !== 'undefined' ? React.useLayoutEffect : React.useEffect;
20277
20316
 
20278
20317
  // Fork of `fast-deep-equal` that only does the comparisons we need and compares
20279
20318
  // functions
@@ -20338,7 +20377,7 @@ function roundByDPR(element, value) {
20338
20377
 
20339
20378
  function useLatestRef(value) {
20340
20379
  const ref = React__namespace.useRef(value);
20341
- index$5(() => {
20380
+ index$6(() => {
20342
20381
  ref.current = value;
20343
20382
  });
20344
20383
  return ref;
@@ -20423,7 +20462,7 @@ function useFloating(options) {
20423
20462
  }
20424
20463
  });
20425
20464
  }, [latestMiddleware, placement, strategy, platformRef]);
20426
- index$5(() => {
20465
+ index$6(() => {
20427
20466
  if (open === false && dataRef.current.isPositioned) {
20428
20467
  dataRef.current.isPositioned = false;
20429
20468
  setData(data => ({
@@ -20433,13 +20472,13 @@ function useFloating(options) {
20433
20472
  }
20434
20473
  }, [open]);
20435
20474
  const isMountedRef = React__namespace.useRef(false);
20436
- index$5(() => {
20475
+ index$6(() => {
20437
20476
  isMountedRef.current = true;
20438
20477
  return () => {
20439
20478
  isMountedRef.current = false;
20440
20479
  };
20441
20480
  }, []);
20442
- index$5(() => {
20481
+ index$6(() => {
20443
20482
  if (referenceEl) referenceRef.current = referenceEl;
20444
20483
  if (floatingEl) floatingRef.current = floatingEl;
20445
20484
  if (referenceEl && floatingEl) {
@@ -20862,43 +20901,80 @@ const PaginationTruncationIndicator = styled__default.default.div`
20862
20901
 
20863
20902
  ${sx}
20864
20903
  `;
20865
- var index$4 = Object.assign(Pagination, {
20904
+ var index$5 = Object.assign(Pagination, {
20866
20905
  Page: PaginationPage,
20867
20906
  PageDirection: PaginationPageDirection,
20868
20907
  TruncationIndicator: PaginationTruncationIndicator
20869
20908
  });
20870
20909
 
20871
20910
  const Pill = ({
20872
- text,
20911
+ children,
20873
20912
  size = 'm',
20874
- variant = 'secondary',
20913
+ variant = 'outlined',
20914
+ disabled = false,
20875
20915
  leadingVisual: LeadingVisual,
20876
- onRemove,
20916
+ trailingVisual: TrailingVisual,
20917
+ onRemove: propOnRemove,
20877
20918
  removeIcon: RemoveIcon = SvgClose,
20878
20919
  ...props
20879
- }, ref) => /*#__PURE__*/jsxRuntimeExports.jsxs(BasePill, {
20880
- ref: ref,
20881
- size: size,
20882
- variant: variant,
20883
- hasLeadingVisual: !isNullable(LeadingVisual),
20884
- hasRemoveButton: !isNullable(onRemove),
20885
- ...props,
20886
- children: [typeof LeadingVisual !== 'string' && reactIsExports.isValidElementType(LeadingVisual) ? /*#__PURE__*/jsxRuntimeExports.jsx(LeadingVisual, {}) : LeadingVisual, /*#__PURE__*/jsxRuntimeExports.jsx("span", {
20887
- title: text,
20888
- children: text
20889
- }), onRemove ? /*#__PURE__*/jsxRuntimeExports.jsx(UnstyledButton, {
20890
- type: 'button',
20891
- onClick: onRemove,
20892
- "aria-label": 'Remove Pill',
20893
- children: /*#__PURE__*/jsxRuntimeExports.jsx(RemoveIcon, {})
20894
- }) : null]
20895
- });
20896
- const BasePill = styled__default.default.span`
20920
+ }, ref) => {
20921
+ const handleRemove = React.useCallback(event => {
20922
+ propOnRemove?.(event);
20923
+ }, [propOnRemove]);
20924
+ const handleRemoveClick = React.useCallback(event => {
20925
+ if (disabled) return;
20926
+ handleRemove(event);
20927
+ }, [handleRemove, disabled]);
20928
+ const handleRemoveKeydown = React.useCallback(event => {
20929
+ if (disabled) return;
20930
+ if ([' ', 'Enter'].includes(event.key)) {
20931
+ handleRemove(event);
20932
+ }
20933
+ }, [handleRemove, disabled]);
20934
+ return /*#__PURE__*/jsxRuntimeExports.jsxs(BasePill, {
20935
+ ref: ref,
20936
+ size: size,
20937
+ variant: variant,
20938
+ hasLeadingVisual: !isNullable(LeadingVisual),
20939
+ hasRemoveButton: !isNullable(propOnRemove),
20940
+ disabled: disabled,
20941
+ ...props,
20942
+ children: [typeof LeadingVisual !== 'string' && reactIsExports.isValidElementType(LeadingVisual) ? /*#__PURE__*/jsxRuntimeExports.jsx(LeadingVisual, {}) : LeadingVisual, /*#__PURE__*/jsxRuntimeExports.jsx("span", {
20943
+ title: children?.toString(),
20944
+ children: children
20945
+ }), typeof TrailingVisual !== 'string' && reactIsExports.isValidElementType(TrailingVisual) ? /*#__PURE__*/jsxRuntimeExports.jsx(TrailingVisual, {}) : TrailingVisual, propOnRemove ? /*#__PURE__*/jsxRuntimeExports.jsx("div", {
20946
+ onClick: e => {
20947
+ e.preventDefault();
20948
+ handleRemoveClick(e);
20949
+ e.stopPropagation();
20950
+ },
20951
+ onKeyDown: e => {
20952
+ if ([' ', 'Enter'].includes(e.key)) {
20953
+ e.preventDefault();
20954
+ e.stopPropagation();
20955
+ handleRemoveKeydown(e);
20956
+ return;
20957
+ }
20958
+ },
20959
+ "aria-label": 'Remove Pill',
20960
+ role: 'button',
20961
+ "aria-disabled": disabled,
20962
+ tabIndex: disabled ? -1 : 0,
20963
+ children: /*#__PURE__*/jsxRuntimeExports.jsx(RemoveIcon, {})
20964
+ }) : null]
20965
+ });
20966
+ };
20967
+ const BasePill = styled__default.default(UnstyledButton)`
20897
20968
  display: inline-flex;
20898
20969
  align-items: center;
20899
20970
  border-radius: ${({
20900
20971
  theme
20901
- }) => forcePixelValue(theme.radii.xxs)};
20972
+ }) => forcePixelValue(theme.radii.xs)};
20973
+ column-gap: ${({
20974
+ theme
20975
+ }) => forcePixelValue(theme.space[2])};
20976
+
20977
+ transition: background-color 100ms;
20902
20978
 
20903
20979
  & span {
20904
20980
  max-width: 240px;
@@ -20907,93 +20983,95 @@ const BasePill = styled__default.default.span`
20907
20983
  white-space: pre;
20908
20984
  word-break: break-all;
20909
20985
  }
20910
- & > button {
20986
+
20987
+ &:focus-visible {
20988
+ outline-color: ${({
20989
+ theme
20990
+ }) => theme.colors['border/focused']};
20991
+ outline-style: solid;
20992
+ outline-width: ${forcePixelValue(2)};
20993
+ outline-offset: ${({
20994
+ theme
20995
+ }) => forcePixelValue(theme.space[0.5])};
20996
+ }
20997
+
20998
+ & > div {
20911
20999
  display: flex;
20912
- transition: background-color 100ms;
20913
21000
  border-radius: ${({
20914
21001
  theme
20915
- }) => forcePixelValue(theme.radii.full)};
21002
+ }) => forcePixelValue(theme.radii.xxs)};
21003
+ }
21004
+ & > div:focus-visible {
21005
+ outline-color: ${({
21006
+ theme
21007
+ }) => theme.colors['border/focused']};
21008
+ outline-style: solid;
21009
+ outline-width: ${forcePixelValue(2)};
21010
+ outline-offset: ${({
21011
+ theme
21012
+ }) => forcePixelValue(theme.space[-0.5])};
20916
21013
  }
20917
21014
 
20918
21015
  ${({
20919
21016
  theme,
20920
- hasLeadingVisual,
20921
21017
  hasRemoveButton
20922
21018
  }) => variant({
20923
21019
  prop: 'size',
20924
21020
  variants: {
20925
- l: {
20926
- 'pl': hasLeadingVisual || hasRemoveButton ? 2 : 3,
20927
- 'pr': hasRemoveButton ? 0.5 : hasLeadingVisual ? 2 : 3,
20928
- 'py': 1,
20929
- 'fontSize': theme.fontSizes.s,
20930
- 'fontWeight': theme.fontWeights.medium,
20931
- 'lineHeight': theme.lineHeights[2],
20932
- 'columnGap': 1,
20933
- '& svg': {
20934
- minWidth: 16,
20935
- height: 16,
20936
- color: theme.colors['icon/primary']
20937
- },
20938
- '& button': {
20939
- p: 1
20940
- }
20941
- },
20942
21021
  m: {
20943
- 'pl': hasLeadingVisual || hasRemoveButton ? 2 : 3,
20944
- 'pr': hasRemoveButton ? 1 : hasLeadingVisual ? 2 : 3,
20945
- 'py': 1,
20946
- 'fontSize': theme.fontSizes.xs,
20947
- 'fontWeight': theme.fontWeights.medium,
20948
- 'lineHeight': theme.lineHeights[2],
20949
- 'columnGap': 0.5,
20950
- '& svg': {
20951
- minWidth: 16,
20952
- height: 16,
20953
- color: theme.colors['icon/primary']
20954
- },
20955
- '& button': {
20956
- p: 0.5
20957
- }
20958
- },
20959
- s: {
20960
- 'pl': 2,
20961
- 'pr': hasRemoveButton ? 1 : 2,
20962
- 'py': 0.5,
21022
+ 'pl': 3,
21023
+ 'pr': !hasRemoveButton ? 3 : 1,
21024
+ 'height': forcePixelValue(32),
20963
21025
  'fontSize': theme.fontSizes.xxs,
20964
21026
  'fontWeight': theme.fontWeights.medium,
20965
21027
  'lineHeight': theme.lineHeights[2],
20966
- 'columnGap': 0.5,
21028
+ 'columnGap': 1,
20967
21029
  '& svg': {
20968
21030
  minWidth: 12,
20969
- height: 12,
20970
- color: theme.colors['icon/primary']
21031
+ height: 12
20971
21032
  },
20972
- '& button': {
20973
- p: 0.5
21033
+ '& > div': {
21034
+ p: 1
20974
21035
  }
20975
21036
  }
20976
21037
  }
20977
21038
  })}
20978
21039
  ${({
20979
- theme
21040
+ theme,
21041
+ disabled
20980
21042
  }) => variant({
20981
21043
  prop: 'variant',
20982
21044
  variants: {
20983
- secondary: {
20984
- 'color': theme.colors['text/primary'],
20985
- 'backgroundColor': theme.colors['bg/secondary'],
20986
- '& button': {
20987
- '&:hover': {
20988
- backgroundColor: theme.colors['bg/secondary/hovered']
21045
+ outlined: {
21046
+ 'backgroundColor': theme.colors['bg/neutral/subtler'],
21047
+ 'borderWidth': 1,
21048
+ 'borderStyle': 'solid',
21049
+ 'borderColor': theme.colors['border/neutral'],
21050
+ 'color': 'text/neutral/subtle',
21051
+ '& svg': {
21052
+ color: theme.colors['icon/neutral/bolder']
21053
+ },
21054
+ '&:hover': {
21055
+ backgroundColor: theme.colors['bg/neutral/subtler/hovered']
21056
+ },
21057
+ '&:active': {
21058
+ backgroundColor: theme.colors['bg/neutral/subtler/pressed']
21059
+ },
21060
+ ...(disabled ? {
21061
+ 'cursor': 'not-allowed',
21062
+ 'backgroundColor': theme.colors['bg/disabled'],
21063
+ 'color': theme.colors['text/disabled'],
21064
+ '& svg': {
21065
+ color: theme.colors['icon/disabled']
20989
21066
  }
20990
- }
21067
+ } : {})
20991
21068
  }
20992
21069
  }
20993
21070
  })}
21071
+
20994
21072
  ${sx}
20995
21073
  `;
20996
- var index$3 = /*#__PURE__*/React.forwardRef(Pill);
21074
+ var index$4 = /*#__PURE__*/React.forwardRef(Pill);
20997
21075
 
20998
21076
  const Select = ({
20999
21077
  children,
@@ -21023,8 +21101,8 @@ const Select = ({
21023
21101
  'color': 'text/neutral',
21024
21102
  '& > svg': {
21025
21103
  display: 'block',
21026
- width: 20,
21027
- height: 20,
21104
+ width: 16,
21105
+ height: 16,
21028
21106
  color: 'icon/neutral/bold'
21029
21107
  }
21030
21108
  },
@@ -21165,7 +21243,7 @@ const SelectWrapper = styled__default.default.div`
21165
21243
  ${props => props.hasLeadingVisual && styled.css`
21166
21244
  padding-left: ${forcePixelValue(props.theme.space[5])};
21167
21245
  select {
21168
- padding-left: ${forcePixelValue(props.theme.space[3])};
21246
+ padding-left: ${forcePixelValue(props.theme.space[2])};
21169
21247
  }
21170
21248
  `}
21171
21249
 
@@ -21212,7 +21290,7 @@ const BaseSelect = styled__default.default(UnstyledSelect)`
21212
21290
  text-overflow: ellipsis;
21213
21291
  `;
21214
21292
  const SelectOption = styled__default.default.option``;
21215
- var index$2 = Object.assign( /*#__PURE__*/React.forwardRef(Select), {
21293
+ var index$3 = Object.assign( /*#__PURE__*/React.forwardRef(Select), {
21216
21294
  Option: SelectOption
21217
21295
  });
21218
21296
 
@@ -22439,7 +22517,7 @@ const Tab = ({
22439
22517
  })
22440
22518
  });
22441
22519
  };
22442
- var index$1 = Object.assign(Tab, {
22520
+ var index$2 = Object.assign(Tab, {
22443
22521
  Item: TabItem
22444
22522
  });
22445
22523
 
@@ -22593,7 +22671,57 @@ const BaseTextarea = styled__default.default(UnstyledTextarea)`
22593
22671
  resize: none;
22594
22672
  `;
22595
22673
 
22596
- const TextInput = /*#__PURE__*/React.forwardRef(({
22674
+ const TextInputTrailingAction = ({
22675
+ icon: Icon,
22676
+ disabled,
22677
+ ...props
22678
+ }, ref) => /*#__PURE__*/jsxRuntimeExports.jsx(BaseTextInputTrailingAction, {
22679
+ ref: ref,
22680
+ ...props,
22681
+ disabled: disabled,
22682
+ "aria-disabled": disabled,
22683
+ children: /*#__PURE__*/jsxRuntimeExports.jsx(Icon, {})
22684
+ });
22685
+ const BaseTextInputTrailingAction = styled__default.default(UnstyledButton)`
22686
+ display: inline-flex;
22687
+ padding: ${({
22688
+ theme
22689
+ }) => forcePixelValue(theme.space[2])};
22690
+ background-color: ${({
22691
+ theme
22692
+ }) => theme.colors['bg/neutral/subtler']};
22693
+ border-radius: ${({
22694
+ theme
22695
+ }) => forcePixelValue(theme.radii.full)};
22696
+
22697
+ & svg {
22698
+ width: ${forcePixelValue(16)};
22699
+ height: ${forcePixelValue(16)};
22700
+ color: ${({
22701
+ theme
22702
+ }) => theme.colors['icon/neutral/bolder']};
22703
+ }
22704
+
22705
+ &:hover {
22706
+ background-color: ${({
22707
+ theme
22708
+ }) => theme.colors['bg/neutral/subtler/hovered']};
22709
+ }
22710
+
22711
+ &[aria-disabled='true'] {
22712
+ cursor: not-allowed;
22713
+ & svg {
22714
+ color: ${({
22715
+ theme
22716
+ }) => theme.colors['icon/disabled']};
22717
+ }
22718
+ }
22719
+
22720
+ ${sx}
22721
+ `;
22722
+ var TextInputTrailingAction$1 = /*#__PURE__*/React.forwardRef(TextInputTrailingAction);
22723
+
22724
+ const TextInput = ({
22597
22725
  type = 'text',
22598
22726
  disabled,
22599
22727
  validationStatus,
@@ -22621,8 +22749,8 @@ const TextInput = /*#__PURE__*/React.forwardRef(({
22621
22749
  'color': color$1['text/neutral'],
22622
22750
  '& > svg': {
22623
22751
  display: 'block',
22624
- width: 20,
22625
- height: 20,
22752
+ width: 16,
22753
+ height: 16,
22626
22754
  color: color$1['icon/neutral/bold']
22627
22755
  }
22628
22756
  },
@@ -22646,8 +22774,8 @@ const TextInput = /*#__PURE__*/React.forwardRef(({
22646
22774
  'color': color$1['text/neutral'],
22647
22775
  '& > svg': {
22648
22776
  display: 'block',
22649
- width: 24,
22650
- height: 24,
22777
+ width: 16,
22778
+ height: 16,
22651
22779
  color: color$1['icon/neutral/bold']
22652
22780
  }
22653
22781
  },
@@ -22656,7 +22784,7 @@ const TextInput = /*#__PURE__*/React.forwardRef(({
22656
22784
  }) : null]
22657
22785
  })]
22658
22786
  });
22659
- });
22787
+ };
22660
22788
  const TextInputWrapper = styled__default.default.div`
22661
22789
  position: relative;
22662
22790
  width: ${forcePixelValue('100%')};
@@ -22753,17 +22881,25 @@ const TextInputWrapper = styled__default.default.div`
22753
22881
  ${props => props.hasLeadingVisual && styled.css`
22754
22882
  padding-left: ${forcePixelValue(props.theme.space[5])};
22755
22883
  input {
22756
- padding-left: ${forcePixelValue(props.theme.space[3])};
22884
+ padding-left: ${forcePixelValue(props.theme.space[2])};
22757
22885
  }
22758
22886
  `}
22759
22887
 
22760
- ${props => (props.hasTrailingVisual || props.hasTrailingAction) && styled.css`
22888
+ ${props => props.hasTrailingVisual && styled.css`
22889
+ padding-right: ${forcePixelValue(props.theme.space[5])};
22890
+ `}
22891
+
22892
+ ${props => props.hasTrailingAction && styled.css`
22761
22893
  padding-right: ${forcePixelValue(props.theme.space[3])};
22894
+ `}
22895
+
22896
+ ${props => (props.hasTrailingVisual || props.hasTrailingAction) && styled.css`
22762
22897
  input {
22763
- padding-right: ${forcePixelValue(props.theme.space[3])};
22898
+ padding-right: ${forcePixelValue(props.theme.space[2])};
22764
22899
  }
22765
22900
  `}
22766
22901
 
22902
+
22767
22903
  transition: color 100ms, background-color 100ms;
22768
22904
  &:after {
22769
22905
  transition: border-color 100ms;
@@ -22791,7 +22927,7 @@ const BaseInput = styled__default.default(UnstyledInput)`
22791
22927
  }) => forcePixelValue(theme.space['4'])};
22792
22928
  padding-right: ${({
22793
22929
  theme
22794
- }) => forcePixelValue(theme.space['4'])};
22930
+ }) => forcePixelValue(theme.space['5'])};
22795
22931
  padding-bottom: ${({
22796
22932
  theme
22797
22933
  }) => forcePixelValue(theme.space['4'])};
@@ -22799,6 +22935,9 @@ const BaseInput = styled__default.default(UnstyledInput)`
22799
22935
  theme
22800
22936
  }) => forcePixelValue(theme.space['5'])};
22801
22937
  `;
22938
+ var index$1 = Object.assign( /*#__PURE__*/React.forwardRef(TextInput), {
22939
+ TrailingAction: TextInputTrailingAction$1
22940
+ });
22802
22941
 
22803
22942
  const theme = {
22804
22943
  breakpoints,
@@ -23229,16 +23368,16 @@ const useOutsideClick = ({
23229
23368
  });
23230
23369
  };
23231
23370
 
23232
- exports.ActionList = index$b;
23371
+ exports.ActionList = index$c;
23233
23372
  exports.AnimatePresence = AnimatePresence;
23234
- exports.Avatar = index$a;
23235
- exports.Breadcrumbs = index$9;
23373
+ exports.Avatar = index$b;
23374
+ exports.Breadcrumbs = index$a;
23236
23375
  exports.Button = Button;
23237
- exports.Checkbox = index$8;
23376
+ exports.Checkbox = index$9;
23238
23377
  exports.Chip = Chip;
23239
- exports.Datagrid = index$7;
23378
+ exports.Datagrid = index$8;
23240
23379
  exports.DescriptionList = DescriptionList;
23241
- exports.Dialog = index$6;
23380
+ exports.Dialog = index$7;
23242
23381
  exports.DialogHandler = DialogHandler;
23243
23382
  exports.EnigmaUI = index;
23244
23383
  exports.GradientText = GradientText;
@@ -23251,16 +23390,16 @@ exports.ItemList = ItemList;
23251
23390
  exports.MotionView = MotionView;
23252
23391
  exports.Overlay = Overlay$1;
23253
23392
  exports.OverlayPopper = OverlayPopper;
23254
- exports.Pagination = index$4;
23255
- exports.Pill = index$3;
23256
- exports.Select = index$2;
23393
+ exports.Pagination = index$5;
23394
+ exports.Pill = index$4;
23395
+ exports.Select = index$3;
23257
23396
  exports.Space = Space;
23258
23397
  exports.Spinner = Spinner;
23259
23398
  exports.Stack = Stack$1;
23260
23399
  exports.StyledIcon = StyledIcon;
23261
- exports.Tab = index$1;
23400
+ exports.Tab = index$2;
23262
23401
  exports.Text = Text;
23263
- exports.TextInput = TextInput;
23402
+ exports.TextInput = index$1;
23264
23403
  exports.Textarea = Textarea;
23265
23404
  exports.ThemeProvider = ThemeProvider;
23266
23405
  exports.Toast = Toast;
@@ -1,4 +1,5 @@
1
1
  import styled from 'styled-components';
2
+ import { forcePixelValue } from '../../utils/forcePixelValue.js';
2
3
  import { sx } from '../../utils/styled-system/index.js';
3
4
  import { j as jsxRuntimeExports } from '../../node_modules/react/jsx-runtime.js';
4
5
 
@@ -10,6 +11,14 @@ const DatagridBody = ({
10
11
  const BaseDatagridBody = styled.div`
11
12
  width: inherit;
12
13
 
14
+ & > div:not(:last-child) {
15
+ border-bottom-width: ${forcePixelValue(1)};
16
+ border-bottom-style: solid;
17
+ border-bottom-color: ${({
18
+ theme
19
+ }) => theme.colors['border/neutral']};
20
+ }
21
+
13
22
  ${sx}
14
23
  `;
15
24